:root {
  --ink: #0d2931;
  --ink-soft: #36555d;
  --paper: #f7f4ed;
  --white: #fffdf8;
  --line: #cbd6d5;
  --teal: #1d6670;
  --teal-pale: #dfeceb;
  --orange: #c96635;
  --orange-text: #9b4520;
  --orange-pale: #f6e5d9;
  --max: 1120px;
  --shadow: 0 18px 55px rgba(13, 41, 49, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.65;
}
a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--orange-text); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 10; background: var(--white); padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand span { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--white); background: var(--ink); border-radius: .65rem; font-size: .8rem; letter-spacing: .06em; }
.brand strong { font-size: .92rem; letter-spacing: .08em; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem .9rem; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-size: .88rem; }
.site-header nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--orange); }
.breadcrumbs { max-width: var(--max); margin: .3rem auto 0; padding: 0 1.5rem; color: var(--ink-soft); font-size: .8rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.breadcrumbs li + li::before { content: "/"; margin-right: .35rem; color: #70878c; }

main { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem 6rem; }
.hero { margin: 1.6rem 0 2rem; padding: clamp(2.2rem, 7vw, 5.8rem) clamp(1.4rem, 6vw, 5.2rem); color: var(--white); background: var(--ink); border-radius: 1.4rem; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; width: 18rem; height: 18rem; border-radius: 50%; right: -7rem; top: -8rem; background: #174650; }
.hero::after { content: ""; position: absolute; width: 5rem; height: 5rem; border-radius: 50%; right: 4rem; top: 3rem; background: var(--orange); }
.hero h1 { position: relative; z-index: 1; max-width: 900px; margin: .5rem 0 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 6vw, 5.5rem); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.hero .button { position: relative; z-index: 1; margin-top: 1.5rem; color: var(--ink); background: var(--white); }
.hero .button:hover { color: var(--white); background: var(--teal); }
.eyebrow, .kicker { margin: 0; color: #e7a67f; font-size: .78rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.lede { max-width: 850px; margin: 2rem auto 3rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.6vw, 2rem); line-height: 1.4; color: var(--ink-soft); }

section { margin-top: 5rem; }
h2, h3 { line-height: 1.15; }
h2 { max-width: 800px; margin: .45rem 0 1.5rem; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.025em; }
h3 { margin: .35rem 0 .75rem; font-size: 1.25rem; }
.notice { max-width: 900px; margin: 2.5rem auto; padding: 1.2rem 1.35rem; border-left: .35rem solid var(--orange); background: var(--orange-pale); border-radius: .2rem .8rem .8rem .2rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { min-height: 100%; padding: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.card p { color: var(--ink-soft); }
.card a { font-weight: 700; }
.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; padding: 3rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split p:first-child { margin-top: 0; }
.source-note { font-size: .86rem; color: var(--ink-soft); }
.next-panel { padding: clamp(1.5rem, 5vw, 3.5rem); background: var(--teal-pale); border-radius: 1.1rem; }
.button { display: inline-block; padding: .75rem 1rem; color: var(--white); background: var(--ink); border-radius: .6rem; text-decoration: none; font-weight: 700; }
.button:hover { color: var(--white); background: var(--teal); }
.button.secondary { color: var(--ink); background: transparent; border: 1px solid var(--ink); }
.button.secondary:hover { color: var(--white); background: var(--ink); }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3.2rem 1fr; gap: .25rem 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; color: var(--orange); font-weight: 800; letter-spacing: .08em; }
.steps strong, .steps span { grid-column: 2; }
.steps span { color: var(--ink-soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 1rem; background: var(--white); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
th { color: var(--white); background: var(--ink); font-size: .85rem; letter-spacing: .03em; }
tr:last-child td { border-bottom: 0; }
.layer-list { border-top: 1px solid var(--line); }
.layer-list article { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.layer-list article > span { color: var(--orange); font-weight: 800; }
.layer-list h3, .layer-list p { margin-top: 0; }
.layer-list p { color: var(--ink-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat-grid article { padding: 1.4rem; background: var(--ink); color: var(--white); border-radius: 1rem; }
.stat-grid strong { display: block; color: #f0a979; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; line-height: 1; }
.stat-grid span { display: block; margin-top: .8rem; color: #d8e3e4; font-size: .9rem; }
.check-list, .link-list { padding-left: 1.2rem; }
.check-list li, .link-list li { margin-bottom: .65rem; }

.form-shell { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.intake-form { padding: clamp(1.25rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.form-status { margin: 0 0 1.5rem; padding: 1rem; color: var(--ink); background: var(--orange-pale); border-radius: .7rem; }
.form-status[data-tone="error"] { color: #7d241e; background: #fbe0dc; }
.form-status[data-tone="success"] { color: #145b45; background: #dcefe6; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.intake-form label { display: grid; gap: .4rem; margin-bottom: 1rem; color: var(--ink); font-size: .9rem; font-weight: 750; }
.intake-form input, .intake-form select, .intake-form textarea { width: 100%; min-height: 3rem; padding: .7rem .8rem; color: var(--ink); background: #fff; border: 1px solid #8da1a5; border-radius: .45rem; font: inherit; font-weight: 400; }
.intake-form textarea { resize: vertical; }
.intake-form .consent-row { grid-template-columns: 1.25rem 1fr; gap: .7rem; align-items: start; font-weight: 400; }
.intake-form .consent-row input { width: 1.1rem; min-height: 1.1rem; margin-top: .3rem; }
.intake-form button[disabled] { cursor: not-allowed; opacity: .64; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

footer { padding: 3rem max(1.5rem, calc((100vw - var(--max)) / 2 + 1.5rem)); color: #d6e3e4; background: var(--ink); display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
footer p { max-width: 720px; color: #aac0c4; }
footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; }
footer a { color: #f5f1e8; }
.copyright { grid-column: 1 / -1; padding-top: 1rem; border-top: 1px solid #34525a; font-size: .8rem; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .site-header { align-items: flex-start; flex-direction: column; }
  .site-header nav { justify-content: flex-start; }
  .hero::after { right: 1rem; top: 1rem; width: 3rem; height: 3rem; }
  .card-grid, .stat-grid, .split, .form-shell { grid-template-columns: 1fr; }
  section { margin-top: 3.5rem; }
  footer { grid-template-columns: 1fr; }
  .copyright { grid-column: 1; }
}

@media (max-width: 520px) {
  main { padding-inline: 1rem; }
  .site-header { padding-inline: 1rem; }
  .breadcrumbs { padding-inline: 1rem; }
  .site-header nav { gap: .25rem .65rem; }
  .site-header nav a { font-size: .78rem; }
  .hero { border-radius: 1rem; }
  .hero h1 { font-size: 2.45rem; }
  .lede { font-size: 1.3rem; }
  .steps li { grid-template-columns: 2.7rem 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}

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