/* Layout: steel header band, single readable column with spec-sheet style sections;
   one bold moment = the heat-tint "weld bead" stripe under the hero. */
:root {
  --bg: #eef0f1;
  --surface: #ffffff;
  --fg: #16191c;
  --muted: #56606a;
  --line: #cbd0d4;
  --band: #26323c;
  --band-fg: #eef2f5;
  --heat: #b4621a;
  --tint: #35598a;
  --fill-bg: #fff1a8;
  --fill-fg: #4a3a00;
  --fill-line: #b8890b;
  --ok: #2f7a4b;
  --err: #b0362c;
  --font-display: "Saira Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;
  --wrap: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121518; --surface: #1a1f24; --fg: #e7eaed; --muted: #9ba5ae; --line: #2f363d;
    --band: #0c0f12; --band-fg: #e7eaed; --heat: #e39a45; --tint: #82a8d8;
    --fill-bg: #4a3d0c; --fill-fg: #ffe9a3; --fill-line: #c9a227; --ok: #6cc28d; --err: #ef8a80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121518; --surface: #1a1f24; --fg: #e7eaed; --muted: #9ba5ae; --line: #2f363d;
  --band: #0c0f12; --band-fg: #e7eaed; --heat: #e39a45; --tint: #82a8d8;
  --fill-bg: #4a3d0c; --fill-fg: #ffe9a3; --fill-line: #c9a227; --ok: #6cc28d; --err: #ef8a80;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--tint); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--heat);
  outline-offset: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* ---------- Template helpers (delete before launch) ---------- */
.fill {
  background: var(--fill-bg);
  color: var(--fill-fg);
  outline: 1.5px dashed var(--fill-line);
  outline-offset: 1px;
  border-radius: 2px;
  padding: 0 .25em;
  font-style: normal;
}
.template-banner {
  background: var(--fill-bg);
  color: var(--fill-fg);
  border-bottom: 2px dashed var(--fill-line);
  font-size: .95rem;
}
.template-banner .wrap { padding-block: .75rem; display: grid; gap: .4rem; }
.template-banner strong { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.template-banner p { margin: 0; max-width: 70ch; }
.template-banner details summary { cursor: pointer; font-weight: 600; }
.template-banner ol { margin: .5rem 0 .25rem; padding-left: 1.3rem; display: grid; gap: .2rem; max-width: 70ch; }

/* ---------- Header ---------- */
.site-header { background: var(--band); color: var(--band-fg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .75rem 1.5rem; padding-block: 1rem;
}
.brand { color: var(--band-fg); text-decoration: none; display: flex; align-items: center; gap: .65rem; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.45rem;
  letter-spacing: .04em; text-transform: uppercase; line-height: 1;
}
.brand-name span { color: var(--heat); }
.nav { display: flex; gap: .35rem; flex-wrap: wrap; }
.nav a {
  color: var(--band-fg); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: .45rem .8rem; border-radius: var(--radius); border: 1px solid transparent;
}
.nav a:hover { border-color: color-mix(in srgb, var(--band-fg) 35%, transparent); }
.nav a[aria-current="page"] { border-color: var(--heat); color: var(--band-fg); }

/* ---------- Hero ---------- */
.hero { background: var(--band); color: var(--band-fg); }
.hero .wrap { padding-block: 2.5rem 3rem; display: grid; gap: 1rem; }
.eyebrow {
  font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--heat); margin: 0;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: .98; margin: 0;
  text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; max-width: 16ch;
}
.hero p.lede { margin: 0; max-width: 58ch; font-size: 1.15rem; color: color-mix(in srgb, var(--band-fg) 85%, var(--band)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

/* the heat-tint stripe: straw > bronze > purple > blue, like a stainless weld */
.bead {
  height: 10px;
  background: linear-gradient(90deg, #d9c27a 0%, #c99a4b 18%, #a8652e 36%, #7b3f5e 58%, #3f4f93 78%, #5f86b8 100%);
}

.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font: 600 1rem var(--font-body); text-decoration: none; cursor: pointer;
  padding: .75rem 1.25rem; border-radius: var(--radius); border: 2px solid var(--heat);
  background: var(--heat); color: #fff;
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: inherit; border-color: color-mix(in srgb, currentColor 40%, transparent); }

/* ---------- Sections ---------- */
main section { padding-block: 3rem; border-bottom: 1px solid var(--line); }
main section:last-of-type { border-bottom: 0; }
.section-head { display: grid; gap: .35rem; margin-bottom: 1.75rem; }
h2 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1; margin: 0; letter-spacing: .02em; text-wrap: balance;
}
h3 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); max-width: 62ch; }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem; display: grid; gap: .5rem; align-content: start; min-width: 0;
}
.service p { margin: 0; color: var(--muted); }
.service .code { font-family: var(--font-mono); font-size: .75rem; color: var(--tint); letter-spacing: .06em; text-transform: uppercase; }

.processes { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.processes li {
  font-family: var(--font-mono); font-size: .85rem; padding: .35rem .7rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.processes li b { font-weight: 500; color: var(--tint); }

/* Experience */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 1rem; margin-bottom: 2rem; }
.fact { border-top: 3px solid var(--heat); padding-top: .75rem; display: grid; gap: .15rem; }
.fact .num { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; line-height: 1; }
.fact .label { color: var(--muted); font-size: .95rem; }

.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem 3rem; }
.two-col > * { min-width: 0; }
.certs { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.certs li { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; align-items: baseline; }
.certs .tag {
  font-family: var(--font-mono); font-size: .75rem; background: var(--surface); border: 1px solid var(--line);
  padding: .15rem .45rem; border-radius: 3px; grid-row: span 2; align-self: start;
}
.certs small { color: var(--muted); grid-column: 2; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; border-left: 2px solid var(--line); }
.timeline li { padding-left: 1.1rem; position: relative; display: grid; gap: .1rem; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px;
  background: var(--bg); border: 2px solid var(--heat); border-radius: 50%;
}
.timeline .when { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.timeline p { margin: 0; color: var(--muted); }
h3.col-title { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 500; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.photo-slot {
  aspect-ratio: 4 / 3; max-width: 100%; border: 2px dashed var(--fill-line); background: var(--fill-bg); color: var(--fill-fg);
  border-radius: var(--radius); display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .9rem;
}

.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; }
.cta-band p { margin: 0; font-size: 1.15rem; font-weight: 500; max-width: 40ch; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 2.5rem; align-items: start; }
.contact-grid > * { min-width: 0; }
.direct { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.direct li { display: grid; gap: .1rem; }
.direct .k { font-family: var(--font-mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.direct .v { font-size: 1.15rem; font-weight: 500; overflow-wrap: anywhere; }

form.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 1rem; }
.field { display: grid; gap: .3rem; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .hint { color: var(--muted); font-size: .85rem; font-weight: 400; }
input, select, textarea {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .65rem .75rem; width: 100%;
}
textarea { min-height: 8rem; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.radios label { display: flex; align-items: center; gap: .4rem; font-weight: 400; }
.radios input { width: auto; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 0; padding: .75rem 1rem; border-radius: var(--radius); border: 1px solid currentColor; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }

/* ---------- Footer ---------- */
.site-footer { background: var(--band); color: color-mix(in srgb, var(--band-fg) 75%, var(--band)); font-size: .9rem; }
.site-footer .wrap { padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
