:root {
  --field: #edefea;
  --paper: #f7f8f5;
  --ink: #16191b;
  --ink-2: #4a5157;
  --line: #c9cec6;
  --contour: #b9c0b6;
  --signal: #d85a30;
  --signal-ink: #b4461f;
  --slate: #1f2a2e;
  --slate-2: #2b383d;
  --on-slate: #e8ece6;
  --on-slate-2: #a9b4b0;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }

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

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--field); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 34px; height: 30px; flex: none; }
.brand-word {
  font-family: var(--mono); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.16em; line-height: 1.15; white-space: nowrap;
}
.brand-word .d { color: var(--signal); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.nav .btn { color: var(--paper); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .brand-word { font-size: 0.8rem; letter-spacing: 0.12em; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--paper);
  border: 0; border-radius: 3px;
  font: 600 0.95rem/1 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--slate-2); }
.btn-signal { background: var(--signal); color: #fff; }
.btn-signal:hover { background: var(--signal-ink); }
.text-link { font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center; gap: clamp(24px, 5vw, 64px);
  padding-block: clamp(48px, 9vw, 112px);
}
.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.02em;
  font-weight: 760; font-variation-settings: "wdth" 72;
  max-width: 13ch;
}
.hero p.lede { margin: 0 0 32px; font-size: 1.2rem; color: var(--ink-2); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }

.map { position: relative; aspect-ratio: 640 / 520; }
.map svg { width: 100%; height: 100%; }
.map .c { fill: none; stroke: var(--contour); stroke-width: 1; }
.map .c-major { fill: none; stroke: #a3ab9f; stroke-width: 1.6; }
.map .route { fill: none; stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 7 7; stroke-linecap: round; }
.map .wp { fill: var(--field); stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; }
.map .wp-end { fill: var(--signal); }
.map text { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: var(--ink); }
.map text.sub { font-weight: 400; font-size: 13px; fill: var(--ink-2); }
.map .label-bg { fill: var(--field); }

@media (prefers-reduced-motion: no-preference) {
  .map .route { stroke-dashoffset: 0; animation: march 1.6s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -28; } }
}

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .map { max-width: 520px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.08; letter-spacing: -0.015em;
  font-weight: 740; font-variation-settings: "wdth" 78;
}
.section-head p { margin: 0; color: var(--ink-2); font-size: 1.1rem; }

/* Services: a ledger, not cards */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line);
}
.ledger h3 {
  margin: 0; font-size: 1.35rem; line-height: 1.2; font-weight: 700;
  font-variation-settings: "wdth" 88;
}
.ledger p { margin: 0; color: var(--ink-2); max-width: 58ch; }
@media (max-width: 700px) { .ledger li { grid-template-columns: 1fr; } }

.extras { margin-top: 36px; color: var(--ink-2); max-width: 70ch; }
.extras strong { color: var(--ink); font-weight: 600; }

/* Process: a route with waypoints (it is a real sequence) */
.route-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  counter-reset: wp;
}
.route-steps li { position: relative; padding: 52px 24px 0 0; counter-increment: wp; }
.route-steps li::before {
  content: ""; position: absolute; top: 15px; left: 0; right: 0;
  border-top: 2.5px dashed var(--signal);
}
.route-steps li:last-child::before { right: auto; width: 0; }
.route-steps .pin {
  position: absolute; top: 0; left: 0; width: 32px; height: 30px;
}
.route-steps .pin svg { width: 32px; height: 30px; }
.route-steps .pin polygon { fill: var(--paper); stroke: var(--signal); stroke-width: 2.5; stroke-linejoin: round; }
.route-steps li:last-child .pin polygon { fill: var(--signal); }
.route-steps .pin span {
  position: absolute; inset: 13px 0 0; text-align: center;
  font: 700 0.72rem/1 var(--sans); color: var(--ink);
}
.route-steps li:last-child .pin span { color: #fff; }
.route-steps h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 700; font-variation-settings: "wdth" 88; }
.route-steps p { margin: 0; color: var(--ink-2); font-size: 1rem; }
@media (max-width: 860px) {
  .route-steps { grid-template-columns: 1fr; gap: 28px; }
  .route-steps li { padding: 0 0 0 52px; }
  .route-steps li::before { top: 34px; bottom: -28px; left: 15px; right: auto; border-top: 0; border-left: 2.5px dashed var(--signal); }
  .route-steps li:last-child::before { display: none; }
}

/* Standards */
.standards {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 56px; margin: 0;
}
.standards div { border-left: 3px solid var(--signal); padding-left: 20px; }
.standards dt { font-weight: 700; font-size: 1.15rem; margin-bottom: 6px; }
.standards dd { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .standards { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 780px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font: 400 1.6rem/1 var(--sans); color: var(--signal);
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Contact ---------- */
.contact { background: var(--slate); color: var(--on-slate); border-top: 0; }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.contact h2 { color: #fff; }
.contact .section-head p { color: var(--on-slate-2); }
.contact .note { color: var(--on-slate-2); font-size: 0.95rem; }
.contact .note a { color: var(--on-slate); }
@media (max-width: 860px) { .contact .wrap { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--on-slate); }
.form .opt { font-weight: 400; color: var(--on-slate-2); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 46px; padding: 10px 12px;
  background: var(--slate-2); color: #fff;
  border: 1px solid #435156; border-radius: 3px;
  font: 400 1rem/1.4 var(--sans);
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--signal); outline-offset: 0; border-color: var(--signal); }
.form .hidden { position: absolute; left: -9999px; }
.form button { justify-self: start; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b9c0bc; font-size: 0.92rem; }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding-block: 28px;
}
.site-footer a { color: #e3e7e3; }

/* ---------- Simple pages ---------- */
.page { padding-block: clamp(56px, 9vw, 104px); min-height: 60vh; }
.page h1 {
  margin: 0 0 20px; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.05;
  font-weight: 760; font-variation-settings: "wdth" 76; letter-spacing: -0.015em;
}
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.3rem; margin: 36px 0 8px; font-variation-settings: "wdth" 88; }
.prose p, .prose li { color: var(--ink-2); }
.page .lede { font-size: 1.2rem; color: var(--ink-2); max-width: 46ch; margin: 0 0 28px; }
