/* A is the approved main design. B and C are review alternatives. */
:root {
  --bg: #f6f5f1;
  --surface: #fdfdfc;
  --surface-2: #e8efeb;
  --text: #24343b;
  --muted: #56666d;
  --border: #d3dcd6;
  --control-border: #7f8e87;
  --accent: #176b67;
  --accent-hover: #10534f;
  --accent-soft: #e2ede7;
  --on-accent: #ffffff;
  --ok: #24613e;
  --warn: #934414;
  --radius: 16px;
  --max: 74rem;
  --step--1: 0.9rem;
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1: clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem);
  --step-2: clamp(1.55rem, 1.3rem + 0.75vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.55rem + 2.3vw, 3.65rem);
  --space-5: clamp(3rem, 2rem + 3vw, 5.5rem);
  color-scheme: light;
}
html[data-variant="B"] {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #e8eef8;
  --text: #20324c;
  --muted: #50617b;
  --border: #cfd9e8;
  --control-border: #7d8da3;
  --accent: #245aa8;
  --accent-hover: #17447f;
  --accent-soft: #e2eafa;
  --radius: 10px;
}
html[data-variant="C"] {
  --bg: #f8f4ed;
  --surface: #fffcf7;
  --surface-2: #efe8de;
  --text: #333c37;
  --muted: #60655d;
  --border: #dcd4c8;
  --control-border: #8c8e80;
  --accent: #536344;
  --accent-hover: #3e4c31;
  --accent-soft: #e7ebdd;
  --radius: 3px;
}
body { line-height: 1.7; }
main { overflow: clip; }
main p:not(.lead) { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
h1 { line-height: 1.12; font-weight: 650; letter-spacing: -0.045em; }
h2 { line-height: 1.2; font-weight: 650; }
h3 { line-height: 1.3; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100% - 3rem, var(--max)); }
.banner { padding: 0.5rem 1.5rem; font-size: 0.875rem; background: var(--accent-soft); color: var(--accent-hover); }
.site-header { background: var(--bg); }
.site-header .wrap { padding-block: 1.2rem; }
.brand { font-size: 1.05rem; letter-spacing: -0.03em; }
.brand img { width: 30px; height: 30px; }
.nav { gap: 1.4rem; }
.nav a { font-size: 0.9rem; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 0.45em; }
.btn { padding: 0.8rem 1.25rem; border-width: 1px; border-radius: 8px; min-height: 46px; text-align: center; line-height: 1.4; }
.btn--small { min-height: 42px; padding: 0.65rem 1rem; }
.btn--ghost { border-color: var(--control-border); background: var(--surface); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.hero .lead { line-height: 1.65; margin-top: 1.5rem; }
.hero h1 { max-width: 20ch; }
.section > .wrap > h2 { margin-bottom: 1rem; }
.section > .wrap > .lead { margin-bottom: 2rem; }
.section--alt { border-block: 1px solid var(--border); }
.card { padding: clamp(1.4rem, 1rem + 1vw, 2rem); gap: 0.2rem; box-shadow: 0 4px 18px rgb(36 52 59 / 3%); }
.card h3 { letter-spacing: -0.02em; }
.card > a:last-child { padding-top: 1rem; font-weight: 600; }
.strip { background: transparent; }
.strip ul { font-family: var(--font-sans); font-size: 0.875rem; gap: 0.6rem 2rem; padding-inline: 1.5rem; }
.tag { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; }
.figure { margin-inline: 0; }
.table-wrap { border: 1px solid var(--border); border-radius: var(--radius); }
table { line-height: 1.6; }
th, td { padding: 1rem; }
.form { width: 100%; padding: clamp(1rem, 2vw, 2rem); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.form label { font-size: 0.95rem; }
.form input, .form select, .form textarea { font-size: 1rem; min-width: 0; max-width: 100%; border-color: var(--control-border); background: var(--bg); }
.form select { appearance: none; padding-right: 2.6rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2356666d' stroke-width='1.7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form button { width: 100%; }
details { padding: 1.2rem 1.4rem; }
summary { min-height: 32px; }
.site-footer { background: var(--surface); line-height: 1.8; }
.site-footer a { text-decoration-color: var(--border); }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); align-items: center; gap: clamp(2rem, 4vw, 5rem); padding-block: clamp(3rem, 5vw, 6rem); }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--accent); font-size: 0.875rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1.3rem; }
.hero-study { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 16px 48px rgb(36 52 59 / 5%); }
.study-caption { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.study-caption p { margin: 0; font-weight: 600; font-size: 0.9rem; }
.study-caption span { font-size: 0.875rem; color: var(--muted); }
.study-graph { color: var(--accent); width: 100%; height: auto; margin-block: 0.5rem; }
.study-graph text { font-family: var(--font-sans); fill: var(--text); font-size: 15px; }
.study-graph .graph-node { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.5; }
.study-graph .graph-core { fill: var(--accent); }
.study-graph .core-label { fill: var(--on-accent); font-weight: 600; }
.study-steps { display: grid; gap: 0.8rem; }
.study-step { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.7rem; border-top: 1px solid var(--border); padding-top: 0.8rem; font-size: 0.875rem; }
.study-step strong { color: var(--accent); }
.study-step span { color: var(--muted); }
.home-services .grid { margin-top: 1.7rem; }
.grid--3:has(> .card:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html[data-variant="B"] .home-hero { grid-template-columns: 1fr; text-align: center; max-width: 64rem; gap: 2.5rem; }
html[data-variant="B"] .home-hero h1 { margin-inline: auto; max-width: 23ch; font-weight: 750; }
html[data-variant="B"] .home-hero .lead { margin-inline: auto; max-width: 48rem; }
html[data-variant="B"] .home-hero .actions { justify-content: center; }
html[data-variant="B"] .hero-study { display: grid; grid-template-columns: 0.9fr 1.6fr; align-items: center; gap: 2rem; text-align: left; padding: 1.3rem 1.7rem; border-radius: 10px; }
html[data-variant="B"] .study-graph { display: none; }
html[data-variant="B"] .study-caption { display: block; border-bottom: 0; padding-bottom: 0; }
html[data-variant="B"] .study-caption p { font-size: 1.2rem; }
html[data-variant="B"] .study-steps { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
html[data-variant="B"] .study-step { display: block; border-top: 0; border-left: 1px solid var(--border); padding: 0 0 0 1rem; }
html[data-variant="B"] .study-step strong { display: block; }
html[data-variant="B"] .home-services .grid { grid-template-columns: 1.1fr 1fr; }
html[data-variant="B"] .home-services .card:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr auto; align-items: center; gap: 2rem; background: var(--accent-soft); padding: 2rem; }
html[data-variant="B"] .home-services .grid:has(> .card:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-variant="B"] .home-services .card:first-child h3 { font-size: 2rem; }
html[data-variant="B"] .home-services .card:first-child > :last-child { margin-top: 0; padding-top: 0; }
html[data-variant="C"] h1, html[data-variant="C"] h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.035em; }
html[data-variant="C"] .home-hero { grid-template-columns: 1.5fr 0.65fr; gap: 5rem; }
html[data-variant="C"] .home-hero h1 { font-size: clamp(2.8rem, 2rem + 2.4vw, 4.5rem); max-width: 21ch; }
html[data-variant="C"] .hero-study { background: transparent; border: 0; border-left: 1px solid var(--control-border); border-radius: 0; box-shadow: none; padding: 0 0 0 2rem; }
html[data-variant="C"] .study-caption { display: block; border: 0; }
html[data-variant="C"] .study-caption p { font-family: Georgia, serif; font-size: 1.65rem; font-weight: 400; }
html[data-variant="C"] .study-caption span { display: block; padding-top: 0.6rem; }
html[data-variant="C"] .study-graph { display: none; }
html[data-variant="C"] .study-step { grid-template-columns: 1fr; gap: 0.2rem; padding-block: 0.7rem; }
html[data-variant="C"] .home-services .grid { display: block; }
html[data-variant="C"] .home-services .card { display: grid; grid-template-columns: 1fr 1.35fr auto; align-items: start; gap: 2rem; border: 0; border-top: 1px solid var(--control-border); border-radius: 0; box-shadow: none; background: transparent; padding: 1.8rem 0; }
html[data-variant="C"] .home-services .card > :last-child { margin-top: 0; padding-top: 0; }
html[data-variant="C"] .card { box-shadow: none; }
html[data-variant="C"] .btn { border-radius: 3px; }
.design-preview-bar { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 1rem; padding: 0.6rem; border: 1px solid #82938b; border-radius: 12px; background: #24343b; color: #ffffff; box-shadow: 0 6px 24px rgb(0 0 0 / 18%); max-width: calc(100vw - 1.5rem); }
.design-preview-bar button { color: #24343b; background: #ffffff; border: 0; border-radius: 6px; padding: 0.65rem; min-height: 44px; font: inherit; font-size: 0.875rem; cursor: pointer; }
.design-preview-bar output { min-width: 10rem; text-align: center; line-height: 1.4; font-size: 0.875rem; }
.design-preview-bar small { display: block; font-size: 0.75rem; color: #dce6e1; }
body.has-design-preview { padding-bottom: 6.5rem; }
@media (max-width: 850px) {
  .site-header .wrap { gap: 1rem; }
  .nav { width: 100%; justify-content: space-between; gap: 0.7rem; }
  .home-hero, html[data-variant="C"] .home-hero { grid-template-columns: 1fr; gap: 2.5rem; }
  .home-hero h1 { max-width: 23ch; }
  .hero-study { max-width: 36rem; width: 100%; }
  html[data-variant="B"] .hero-study { margin-inline: auto; grid-template-columns: 1fr; gap: 1rem; }
  html[data-variant="B"] .home-services .card:first-child { grid-template-columns: 1fr 1fr; gap: 1rem; }
  html[data-variant="B"] .home-services .card:first-child > :last-child { grid-column: 2; }
  html[data-variant="C"] .home-services .card { grid-template-columns: 1fr 1.5fr; gap: 0.5rem 1.5rem; }
  html[data-variant="C"] .home-services .card > :last-child { grid-column: 2; }
  html[data-variant="C"] .hero-study { border-left: 0; border-top: 1px solid var(--control-border); padding: 1.5rem 0 0; max-width: none; }
  html[data-variant="C"] .study-steps { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}
@media (max-width: 580px) {
  .wrap { width: min(100% - 2.5rem, var(--max)); }
  .nav { flex-wrap: wrap; justify-content: flex-start; gap: 0.7rem 1.1rem; }
  .nav .btn { margin-left: auto; }
  .nav a { min-height: 32px; display: inline-flex; align-items: center; }
  .home-hero { padding-block: 2.5rem; }
  .hero .lead { margin-top: 1.1rem; }
  .actions { gap: 0.75rem; }
  .grid--2, .grid--3, html[data-variant="B"] .home-services .grid { grid-template-columns: minmax(0, 1fr); }
  .grid--3:has(> .card:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
  html[data-variant="B"] .home-services .grid:has(> .card:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
  html[data-variant="B"] .home-services .card:first-child { display: flex; gap: 0.2rem; padding: 1.5rem; }
  html[data-variant="B"] .home-services .card:first-child > :last-child { padding-top: 1rem; }
  html[data-variant="B"] .home-services .card:first-child h3 { font-size: var(--step-1); }
  html[data-variant="C"] .home-services .card { display: block; }
  html[data-variant="C"] .home-services .card > :last-child { display: inline-block; margin-top: 0.5rem; }
  .study-caption { align-items: flex-start; }
  .study-caption span { text-align: right; }
  html[data-variant="B"] .study-steps, html[data-variant="C"] .study-steps { grid-template-columns: 1fr; gap: 0.5rem; }
  html[data-variant="C"] .study-caption span { text-align: left; }
  .form { padding: 1rem; }
  .design-preview-bar { gap: 0.4rem; bottom: 0.6rem; }
  .design-preview-bar output { min-width: 8.5rem; }
  .design-preview-bar button { padding: 0.6rem; font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
@media print { .design-preview-bar, .hero-study { display: none; } body.has-design-preview { padding-bottom: 0; } }
