:root {
  --paper: #F3F6F7; --wash: #E9EFF1; --card: #FFFFFF;
  --ink: #16283A; --slate: #51677C; --hairline: #D9E3E8;
  --needle: #C8402E; --needle-deep: #A93323; --meridian: #2E5E86;
  --display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  font-family: var(--body); font-size: 1.04rem; line-height: 1.68; color: var(--ink);
  background:
    linear-gradient(var(--hairline) 1px, transparent 1px) 0 -1px / 100% 88px,
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px) -1px 0 / 88px 100%,
    var(--paper);
}
::selection { background: var(--needle); color: #fff; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
a { color: var(--meridian); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--needle-deep); }
:focus-visible { outline: 2px solid var(--needle); outline-offset: 3px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

.wrap { max-width: 68rem; margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow { font-family: var(--mono); font-size: 0.76rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--needle); display: flex; align-items: center; gap: 0.7rem; }
.eyebrow::after { content: ""; height: 1px; width: 3rem; background: var(--needle); opacity: 0.5; }
.eyebrow .dim { color: var(--slate); }

/* Nav */
header.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.nav-inner { max-width: 76rem; margin: 0 auto; padding: 0.9rem var(--gutter); display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: flex; align-items: center; gap: 0.6rem; font-family: var(--display); font-weight: 800; font-size: 1.22rem; color: var(--ink); text-decoration: none; }
.wordmark svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--needle-deep); }
.nav-links .btn { display: inline-block; font-weight: 600; font-size: 0.86rem; color: #fff; background: var(--ink); padding: 0.45rem 1rem; border: 1px solid var(--ink); border-radius: 3px; text-decoration: none; white-space: nowrap; transition: background 160ms ease, color 160ms ease; }
.nav-links .btn::after { content: "→"; font-family: var(--mono); display: inline-block; margin-left: 0.45em; transition: transform 160ms ease, color 160ms ease; }
.nav-links .btn:hover { background: transparent; color: var(--ink); }
.nav-links .btn:hover::after { color: var(--needle); transform: translateX(3px); }
@media (max-width: 760px) { .nav-links li.hide-sm { display: none; } }

/* Hero */
.svc-hero { padding-block: clamp(3rem, 8vh, 5rem) clamp(2rem, 5vh, 3rem); }
.svc-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; margin-top: 1rem; max-width: 20ch; }
.svc-hero .standfirst { color: var(--slate); font-size: 1.12rem; margin-top: 1.1rem; max-width: 60ch; }
.svc-hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; align-items: center; }
.btn-primary { display: inline-block; font-weight: 600; font-size: 0.95rem; color: #fff; background: var(--needle); padding: 0.7rem 1.35rem; border: 1px solid var(--needle); border-radius: 3px; text-decoration: none; transition: background 160ms ease; }
.btn-primary:hover { background: var(--needle-deep); border-color: var(--needle-deep); color: #fff; }
.price-tag { font-family: var(--mono); font-size: 0.82rem; color: var(--slate); letter-spacing: 0.04em; }

section { padding-block: clamp(2.6rem, 6vh, 4rem); }
section h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); font-weight: 700; margin-top: 0.8rem; }
section .lead { color: var(--slate); margin-top: 0.9rem; max-width: 62ch; }
section p { max-width: 62ch; }

/* Deliverables grid */
.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 2rem; }
.deliverables .item { background: var(--card); padding: 1.5rem 1.4rem 1.7rem; transition: background 180ms ease; }
.deliverables .item:hover { background: var(--wash); }
.deliverables h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.deliverables p { font-size: 0.94rem; color: var(--slate); }
@media (max-width: 900px) { .deliverables { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .deliverables { grid-template-columns: 1fr; } }

/* Diagram */
.diagram-wrap { margin-top: 1.8rem; background: var(--card); border: 1px solid var(--hairline); border-radius: 4px; padding: 1.2rem; overflow-x: auto; }
.diagram-wrap svg { display: block; min-width: 660px; width: 100%; height: auto; }
.diagram-caption { font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); margin-top: 0.8rem; }

/* Steps */
.steps { margin-top: 1.8rem; display: grid; counter-reset: step; }
.step { display: grid; grid-template-columns: 4.5rem minmax(0, 15rem) 1fr; gap: 1.4rem; padding-block: 1.3rem; border-top: 1px solid var(--hairline); counter-increment: step; align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--hairline); }
.step::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.82rem; color: var(--needle); font-weight: 500; }
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { font-size: 0.95rem; color: var(--slate); }
@media (max-width: 760px) { .step { grid-template-columns: 2.6rem 1fr; } .step p { grid-column: 2; } }

/* Signals */
.signals { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem 1.8rem; margin-top: 1.6rem; }
.signals li { padding-left: 1.4rem; position: relative; font-size: 0.97rem; }
.signals li::before { content: "▸"; position: absolute; left: 0; color: var(--needle); font-size: 0.72rem; top: 0.35em; }
@media (max-width: 700px) { .signals { grid-template-columns: 1fr; } }

/* Fact row */
.facts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 1.8rem; }
.facts-row div { background: var(--card); padding: 1.3rem 1.4rem; }
.facts-row .k { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--slate); display: block; }
.facts-row .v { font-family: var(--display); font-weight: 700; font-size: 1.15rem; display: block; margin-top: 0.35rem; }
@media (max-width: 700px) { .facts-row { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 46rem; margin-top: 1.6rem; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary { font-family: var(--display); font-weight: 700; font-size: 1.02rem; padding-block: 1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--needle); flex-shrink: 0; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1.1rem; font-size: 0.96rem; color: var(--slate); }

/* Related services */
.related { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.related a { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.04em; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.42rem 0.95rem; transition: background 150ms ease, border-color 150ms ease; }
.related a:hover { background: var(--wash); border-color: var(--needle); color: var(--ink); }

/* CTA */
.cta-box { margin-top: 2.4rem; background: var(--ink); border-radius: 4px; padding: 2rem 2rem 2.2rem; color: #EAF0F4; }
.cta-box h2 { color: #fff; margin-top: 0; font-size: 1.5rem; }
.cta-box p { color: #A9BCCA; margin-top: 0.6rem; font-size: 0.98rem; }
.cta-box .btn-primary { margin-top: 1.2rem; }

footer { border-top: 1px solid var(--hairline); margin-top: 3rem; }
.footer-inner { max-width: 76rem; margin: 0 auto; padding: 1.6rem var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
footer p { font-size: 0.85rem; color: var(--slate); }
footer .coords { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; }
