/* Layout: single column bands, drawing-sheet feel; mono labels like a title block, signal yellow used once per screen. */
:root {
  --bg: #f4f6f7;
  --surface: #ffffff;
  --ink: #13212e;
  --muted: #4f5d69;
  --line: #d5dce1;
  --accent: #0f5c8c;
  --signal: #f2b632;
  --dark: #13212e;
  --dark-ink: #e9eef2;
  --dark-muted: #a9b6c1;
  --f-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1820; --surface: #16222d; --ink: #e6ecf0; --muted: #a3b0bb; --line: #2a3a47;
    --accent: #6fb6e6; --dark: #0a1118; --dark-ink: #e6ecf0; --dark-muted: #a3b0bb; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1820; --surface: #16222d; --ink: #e6ecf0; --muted: #a3b0bb; --line: #2a3a47;
  --accent: #6fb6e6; --dark: #0a1118; --dark-ink: #e6ecf0; --dark-muted: #a3b0bb; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--f-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-stretch: 85%; line-height: 1.15; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 65ch; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1140px; margin: 0 auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: 64px; }
.eyebrow, .label, .proj-sector, .title-block span, .std span {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow { margin-bottom: .8em; }
.lede { font-size: 1.15rem; color: var(--muted); }
.sel { user-select: all; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; background: var(--dark); color: var(--signal); padding: 6px 9px; border-radius: 3px; }
.brand-text { display: flex; flex-direction: column; font-weight: 600; line-height: 1.2; }
.brand-text small { font-family: var(--f-mono); font-weight: 400; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
nav a:hover { border-color: var(--line); }
nav a[aria-current="page"] { border-color: var(--signal); }

/* Buttons */
.btn { display: inline-block; background: var(--signal); color: #13212e; font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 3px; border: 2px solid var(--signal); }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.band-dark .btn.ghost { color: var(--dark-ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5em; }
.text-link { font-weight: 600; }

/* Hero */
.hero { position: relative; background: var(--dark); color: var(--dark-ink); overflow: hidden; }
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--dark) 20%, transparent 95%); }
.hero-copy { position: relative; padding-block: 96px 88px; }
.hero h1 { max-width: 17ch; color: #fff; }
.hero .lede { color: var(--dark-muted); max-width: 58ch; }
.hero .eyebrow { color: var(--signal); }
.hero .btn.ghost { color: var(--dark-ink); border-color: rgba(255,255,255,.35); }

/* Bands */
.band { background: var(--surface); border-bottom: 1px solid var(--line); }
.band-dark { background: var(--dark); color: var(--dark-ink); border: 0; }
.band-dark .eyebrow { color: var(--signal); }
.band-dark p { color: var(--dark-muted); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; padding-block: 0; }
.facts > div { padding: 28px 20px 28px 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts > div + div { padding-left: 20px; }
.facts > div:last-child { border-right: 0; }
.facts strong { font-family: var(--f-display); font-stretch: 85%; font-size: 1.9rem; line-height: 1.1; }
.facts span { color: var(--muted); font-size: .95rem; }
.avail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.avail > div { min-width: 0; max-width: 640px; }
.avail h2 { color: #fff; }

/* Split */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.split-text { min-width: 0; }
.split-img { margin: 0; }
.split-img img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ticks { list-style: none; padding: 0; }
.ticks li { padding-left: 1.6em; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7em; height: .7em; background: var(--signal); }

/* Sectors */
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.sector-grid > div { padding: 22px 20px 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.sector-grid p { color: var(--muted); font-size: .97rem; }

/* Page head */
.page-head { padding-block: 64px 24px; }
.page-head h1 { max-width: 22ch; }

/* Services */
.service-list { display: flex; flex-direction: column; gap: 0; padding-bottom: 32px; }
.service { display: grid; grid-template-columns: 340px 1fr; gap: 40px; padding-block: 40px; border-top: 1px solid var(--line); align-items: start; }
.service > div { min-width: 0; }
.service img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.service ul { columns: 2 260px; column-gap: 32px; }
.std { font-family: var(--f-mono); font-size: .85rem; color: var(--ink); border-left: 3px solid var(--signal); padding-left: 12px; }
.std span { display: block; }
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.terms > div { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: 4px; }
.terms p { margin: 6px 0 0; }

/* Projects */
.group-head { margin-top: 40px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin: 20px 0 32px; }
.proj { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 20px; min-width: 0; }
.proj-sector { margin-bottom: 6px; }
.proj ul { margin: 0; color: var(--muted); font-size: .95rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px; min-width: 0; }
.big { font-family: var(--f-display); font-stretch: 85%; font-size: 1.6rem; font-weight: 700; margin: 6px 0 18px; overflow-wrap: anywhere; }
.cred { margin-top: 64px; }
.cred-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; border-top: 2px solid var(--ink); padding-top: 24px; }
.cred-grid > div { min-width: 0; }

/* Footer */
.site-foot { background: var(--surface); border-top: 1px solid var(--line); font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-block: 40px; }
.foot-grid > div { min-width: 0; }
.foot-name { font-weight: 600; margin-bottom: 4px; }
.foot-grid .label { margin-right: 6px; }
.title-block { border: 1px solid var(--ink); font-family: var(--f-mono); font-size: .82rem; align-self: start; }
.title-block div { padding: 6px 10px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.title-block div:last-child { border-bottom: 0; }

@media (max-width: 760px) {
  .split, .service { grid-template-columns: 1fr; gap: 20px; }
  .split-img { order: -1; }
  .facts > div, .facts > div + div { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
  .hero-copy { padding-block: 64px 56px; }
  .section { padding-block: 48px; }
  body { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
