/* Layout: dark titanium page. The hero is a turning-movement count diagram; every section below leads with a drawing and one line of text. Deliberately single dark theme (the brand). */
:root {
  --bg: #0F1215;          /* dark titanium */
  --surface: #161A1F;
  --surface-2: #1E242A;
  --road: #29313A;        /* road surface in drawings */
  --line: #2F3842;
  --fg: #EEF1F4;
  --muted: #A7B1BC;
  --accent: #93AAC3;      /* Apple Blue Titanium, lightened for a dark page */
  --titanium: #3E4D5F;    /* Blue Titanium estimate (body colour) */
    --sage: #81B29A;        /* secondary, used for flow and "good" */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --max: 1140px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 10; background: var(--bg);
}
.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { font-family: var(--font-display); font-size: 24px; text-decoration: none; }
.brand span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-links a.btn { color: var(--bg); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 600 15px/1 var(--font-body); text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: #AEC1D6; }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* Hero */
.hero { background: radial-gradient(70% 80% at 80% 30%, color-mix(in srgb, var(--titanium) 55%, transparent), transparent 70%), linear-gradient(160deg, #161B21, #232C36 55%, #13171C); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; padding-block: 72px 80px; }
.hero h1 { font-size: clamp(48px, 7vw, 84px); line-height: .98; margin-top: 20px; }
.hero h1 em { color: var(--accent); }
.lede { font-size: 19px; color: var(--muted); max-width: 30em; margin-top: 22px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.tmc { min-width: 0; }
.tmc svg { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.tmc figcaption { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 8px; }

/* Drawing classes, all from tokens */
.d-road { fill: var(--road); }
.d-surface { fill: var(--surface); }
.d-surface2 { fill: var(--surface-2); }
.d-box { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.d-accent { fill: var(--accent); }
.d-accent-soft { fill: var(--accent); fill-opacity: .18; }
.d-sage { fill: var(--sage); }
.d-muted { fill: var(--muted); }
.s-accent { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.s-sage { fill: none; stroke: var(--sage); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s-lane { fill: none; stroke: var(--muted); stroke-opacity: .45; stroke-width: 2; stroke-dasharray: 10 10; }
.s-line { fill: none; stroke: var(--line); stroke-width: 1.5; }
.s-stall { fill: none; stroke: var(--muted); stroke-opacity: .4; stroke-width: 1.5; }
.t-mono { fill: var(--fg); font: 500 13px var(--font-mono); }
.t-small { fill: var(--muted); font: 500 10.5px var(--font-mono); letter-spacing: .04em; }
.t-head { fill: var(--muted); font: 500 10px var(--font-mono); letter-spacing: .1em; }
.flow { stroke-dasharray: 5 7; animation: flow 1.3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.car-e { animation: drive-e 7s linear infinite; }
.car-s { animation: drive-s 6s linear infinite 1.5s; }
@keyframes drive-e { from { transform: translateX(0); } to { transform: translateX(470px); } }
@keyframes drive-s { from { transform: translateY(0); } to { transform: translateY(470px); } }

/* Sections */
section.band { padding-block: 88px; }
section.band + section.band { border-top: 1px solid var(--line); }
.sec-head { display: grid; gap: 14px; max-width: 40em; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.02; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.svc { min-width: 0; display: grid; gap: 12px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 24px; }
.svc .ill { background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.svc .ill svg { display: block; width: 100%; height: auto; }
.svc h3 { font-size: 21px; font-weight: 600; padding-inline: 10px; margin-top: 6px; }
.svc p { color: var(--muted); font-size: 15.5px; padding-inline: 10px; }
.more { margin-top: 32px; }
.more a { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
.more a:hover { text-decoration: underline; }

/* Method */
.method { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; position: relative; }
.method::before { content: ""; position: absolute; top: 36px; left: 36px; right: calc((100% - 48px) / 3 - 36px); border-top: 2px dashed var(--line); }
.step { min-width: 0; display: grid; gap: 10px; align-content: start; position: relative; }
.step-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--accent); }
.step:nth-child(2) .step-ico { color: var(--sage); }
.step-ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 19px; font-weight: 600; margin-top: 8px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 26em; }

/* Who */
.who { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.who li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 15px; }
.who li svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* CTA */
.cta { background: radial-gradient(60% 120% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%), var(--surface); border-top: 1px solid var(--line); }
.cta .wrap { display: grid; justify-items: center; text-align: center; gap: 18px; padding-block: 88px; }
.cta h2 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1; }
.cta p { color: var(--muted); font-size: 18px; max-width: 30em; }
.mail { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; font-size: 15px; color: var(--muted); }
.mail a { color: var(--fg); font-family: var(--font-mono); font-size: 14.5px; }
.copy { font: 500 13px var(--font-body); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; }
.copy:hover { border-color: var(--muted); }

footer { border-top: 1px solid var(--line); padding-block: 26px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 48px 56px; }
  section.band { padding-block: 64px; }
  .method { grid-template-columns: 1fr; gap: 28px; }
  .method::before { display: none; }
  .step { grid-template-columns: 72px 1fr; column-gap: 18px; }
  .step-ico { grid-row: span 2; }
  .step h3 { margin-top: 10px; }
}
@media (max-width: 640px) {
  .services { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .flow, .car-e, .car-s { animation: none; }
}

/* ---- Inner pages ---- */
.nav-links a[aria-current="page"] { color: var(--fg); }

.page-hero { background: radial-gradient(60% 90% at 85% 20%, color-mix(in srgb, var(--titanium) 50%, transparent), transparent 70%), linear-gradient(160deg, #161B21, #1F272F 60%, #13171C); border-bottom: 1px solid var(--line); }
.page-hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 64px 60px; }
.page-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: 1; margin-top: 18px; }
.page-hero h1 em { color: var(--accent); }
.page-hero .lede { margin-top: 18px; }
.page-hero .art { min-width: 0; }
.page-hero .art svg { display: block; width: 100%; max-width: 460px; height: auto; margin-inline: auto; }

/* Services detail rows */
.svc-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.svc-row + .svc-row { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .ill { order: 2; }
.svc-row .ill { min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.svc-row .ill svg { display: block; width: 100%; height: auto; }
.svc-row .body { min-width: 0; display: grid; gap: 14px; }
.svc-row h2 { font-size: clamp(32px, 3.6vw, 42px); line-height: 1.05; }
.svc-row .body > p { color: var(--muted); }
.items { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; margin: 8px 0 0; }
.items div { min-width: 0; border-top: 1px solid var(--line); padding-top: 12px; }
.items dt { font-weight: 600; font-size: 15.5px; }
.items dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* Standards columns */
.cols3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.col-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.col-card h3 { font-size: 13px; font-family: var(--font-mono); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 14px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; }

/* Industries */
.ind-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.ind { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 24px; display: grid; gap: 14px; align-content: start; }
.ind .ill { background: var(--surface-2); border-radius: 12px; overflow: hidden; }
.ind .ill svg { display: block; width: 100%; height: auto; }
.ind .in { padding-inline: 10px; display: grid; gap: 12px; }
.ind h2 { font-size: 30px; line-height: 1.05; }
.ind .in > p { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: ""; width: 14px; height: 14px; margin-top: 4px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 3.5px, transparent 4px); border: 1.5px solid var(--accent); box-sizing: border-box; }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.story .text { min-width: 0; display: grid; gap: 18px; font-size: 18px; color: var(--muted); max-width: 34em; }
.story .text p:first-child { color: var(--fg); font-size: 21px; line-height: 1.5; }
.compare { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.compare svg { display: block; width: 100%; height: auto; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.values li { min-width: 0; display: grid; gap: 10px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.values svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.values h3 { font-size: 18px; font-weight: 600; }
.values p { color: var(--muted); font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.form-card, .side-card { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.form-card h2, .side-card h2 { font-size: 30px; line-height: 1.05; margin-bottom: 14px; }
.side { display: grid; gap: 20px; }
.side-card .mail { justify-content: flex-start; }
.include { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.include li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-size: 15.5px; }
.include .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; }
.include svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 920px) {
  .page-hero .wrap, .svc-row, .story, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-hero .wrap { padding-block: 44px 48px; }
  .svc-row:nth-child(even) .ill { order: 0; }
  .cols3, .values { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ind-grid, .items { grid-template-columns: 1fr; }
}
.s-surf { fill: none; stroke: var(--surface); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.t-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
