/* Unatech Technology Solutions: site stylesheet
   Layout concept: an engineering drawing sheet. White sheet, faint drafting grid behind heroes,
   mono "title-block" labels, the logo's three-colour bar as the one recurring mark.
   Bold moment: the hero schematic. Everything around it stays quiet. */

:root {
  /* colour: taken from the logo (navy wordmark, blue/sky middle slab, sun/amber bottom slab) */
  --bg: #ffffff;
  --surface: #f3f6fa;
  --surface-2: #e8eef6;
  --line: #d6dfea;
  --ink: #17233a;
  --muted: #586377;
  --heading: #0a3578;
  --accent: #1478c0;
  --accent-ink: #ffffff;
  --sky: #3cbcf0;
  --sun: #f8de0a;
  --amber: #f8b810;
  --navy: #0a3578;
  --btn: #0a3578;
  --btn-hover: #1478c0;
  --band: #0a3578;
  --band-ink: #eef3fa;
  --band-muted: #a8b9d3;
  --grid: rgba(20, 120, 192, 0.075);
  --chip-d: #f8de0a;
  --chip-d-ink: #3a3000;
  --chip-b: #d8f1fc;
  --chip-b-ink: #0a3578;
  --chip-qm: #e8edf3;
  --chip-qm-ink: #4c576a;
  --placeholder: #dfe7f1;

  /* type */
  --f-display: "Montserrat", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.35rem, 1.1rem + 0.9vw, 1.6rem);
  --step-3: clamp(1.7rem, 1.25rem + 1.8vw, 2.35rem);
  --step-4: clamp(2.1rem, 1.4rem + 2.9vw, 3.35rem);

  --wrap: 1200px;
  --radius: 3px;
  --header-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1220; --surface: #0f1a2c; --surface-2: #152338; --line: #23344f;
    --ink: #e3e9f2; --muted: #9ba8bc; --heading: #d4e3f7; --accent: #4fa8e8; --accent-ink: #06101f;
    --btn: #2a73c2; --btn-hover: #3c8fdc; --band: #0d1b33; --band-ink: #e3e9f2; --band-muted: #8ea1bf;
    --grid: rgba(79, 168, 232, 0.08); --chip-b: #12334f; --chip-b-ink: #bfe6fa; --chip-qm: #1b2a40; --chip-qm-ink: #a9b6c9;
    --placeholder: #16263e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1220; --surface: #0f1a2c; --surface-2: #152338; --line: #23344f;
  --ink: #e3e9f2; --muted: #9ba8bc; --heading: #d4e3f7; --accent: #4fa8e8; --accent-ink: #06101f;
  --btn: #2a73c2; --btn-hover: #3c8fdc; --band: #0d1b33; --band-ink: #e3e9f2; --band-muted: #8ea1bf;
  --grid: rgba(79, 168, 232, 0.08); --chip-b: #12334f; --chip-b-ink: #bfe6fa; --chip-qm: #1b2a40; --chip-qm-ink: #a9b6c9;
  --placeholder: #16263e;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--heading); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--heading); line-height: 1.15; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 600; letter-spacing: -0.005em; }
h4 { font-size: var(--step-0); font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--btn); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 12px; }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.measure { max-width: 66ch; }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.muted { color: var(--muted); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 4px; flex: none;
  background: linear-gradient(90deg, var(--sun) 0 30%, var(--navy) 30% 78%, var(--sky) 78% 100%);
}
:root[data-theme="dark"] .eyebrow::before { background: linear-gradient(90deg, var(--sun) 0 30%, var(--accent) 30% 78%, var(--sky) 78% 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow::before { background: linear-gradient(90deg, var(--sun) 0 30%, var(--accent) 30% 78%, var(--sky) 78% 100%); } }

.mono { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.02em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 13px 22px; border-radius: var(--radius); text-decoration: none;
  border: 1.5px solid var(--btn); background: var(--btn); color: #fff;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn.ghost { background: transparent; color: var(--heading); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.textlink { font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink:hover .arrow { transform: translateX(3px); }
.textlink .arrow { transition: transform 0.15s ease; }

/* ---------- header ---------- */
.topbar { height: 5px; background: linear-gradient(90deg, var(--sun) 0 16%, var(--navy) 16% 86%, var(--sky) 86% 100%); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: auto; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.16em; font-size: 1.15rem; color: var(--heading); }
.brand-sub { font-family: var(--f-display); font-weight: 400; font-size: 0.68rem; letter-spacing: 0.06em; color: var(--muted); margin-top: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav a.nav-link, .nav .nav-group > button {
  font-family: var(--f-display); font-weight: 500; font-size: 0.9rem; color: var(--ink);
  text-decoration: none; padding: 10px 12px; border-radius: var(--radius); display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
}
.nav a.nav-link:hover, .nav .nav-group > button:hover { color: var(--accent); }
.nav a.nav-link[aria-current="page"], .nav .nav-group.is-current > button { color: var(--heading); box-shadow: inset 0 -3px 0 var(--sky); }
.nav-group { position: relative; }
.nav-group .chev { width: 10px; height: 10px; transition: transform 0.15s ease; }
.nav-menu {
  list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(10, 30, 60, 0.12); padding: 8px; display: none;
}
.nav-group:hover .nav-menu, .nav-group:focus-within .nav-menu, .nav-group.open .nav-menu { display: block; }
.nav-menu a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); border-radius: var(--radius); }
.nav-menu a:hover { background: var(--surface); color: var(--heading); }
.nav-menu a strong { display: block; font-family: var(--f-display); font-weight: 600; font-size: 0.92rem; color: var(--heading); }
.nav-menu a span { display: block; font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.nav .btn { margin-left: 10px; padding: 10px 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; color: var(--heading); font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; cursor: pointer; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line);
         padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px)); flex-direction: column; align-items: stretch; max-height: calc(100vh - 80px); overflow-y: auto; }
  .site-header.menu-open .nav { display: flex; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a.nav-link, .nav .nav-group > button { width: 100%; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1rem; }
  .nav a.nav-link[aria-current="page"], .nav .nav-group.is-current > button { box-shadow: none; color: var(--accent); }
  .nav-menu { position: static; display: block; border: 0; box-shadow: none; padding: 4px 0 8px 12px; min-width: 0; }
  .nav .btn { margin: 16px 0 0; justify-content: center; }
  .nav-group .chev { display: none; }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 7vw, 96px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: var(--step-0); }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }

/* drafting grid used behind heroes */
.sheet {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  border-bottom: 1px solid var(--line);
}

/* ---------- hero ---------- */
.hero { padding-block: clamp(44px, 6vw, 84px) clamp(40px, 5vw, 72px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-copy .lead { max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-figure { min-width: 0; }
.cred-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.cred-strip span { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; display: inline-flex; gap: 8px; align-items: center; }
.cred-strip span::before { content: ""; width: 7px; height: 7px; background: var(--sky); flex: none; }
.cred-strip span:nth-child(2)::before { background: var(--sun); }
.cred-strip span:nth-child(3)::before { background: var(--accent); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .figure-frame .schematic { min-width: 540px; } }

.page-hero { padding-block: clamp(44px, 6vw, 80px) clamp(36px, 4.5vw, 60px); }
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero .lead { max-width: 64ch; color: var(--ink); }
.page-hero.split .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(28px, 4vw, 56px); }
.page-hero.split .copy { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .page-hero.split .wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- schematic (inline SVG diagrams) ---------- */
.schematic { width: 100%; height: auto; display: block; overflow: visible; }
.figure-frame { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(12px, 2vw, 20px); overflow-x: auto; }
.figure-frame.flat { background: transparent; border: 0; padding: 0; }
.figure-caption { font-family: var(--f-mono); font-size: 0.75rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.02em; }
.s-frame { fill: none; stroke: var(--line); stroke-width: 1; }
.s-box { fill: var(--bg); stroke: var(--heading); stroke-width: 1.4; }
.s-box.soft { fill: var(--surface); stroke: var(--line); }
.s-box.dash { fill: none; stroke: var(--muted); stroke-dasharray: 5 4; stroke-width: 1.1; }
.s-box.navy { fill: var(--navy); stroke: var(--navy); }
.s-box.sky { fill: var(--chip-b); stroke: var(--accent); stroke-width: 1.2; }
.s-box.sun { fill: var(--sun); stroke: var(--amber); }
.s-fill-surface { fill: var(--surface); }
.s-line { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.s-line.muted { stroke: var(--muted); stroke-width: 1.2; }
.s-line.dash { stroke-dasharray: 5 4; }
.s-line.bus { stroke: var(--heading); stroke-width: 3; }
.s-arrow { fill: var(--accent); }
.s-t { font-family: var(--f-display); font-weight: 600; font-size: 13px; fill: var(--heading); }
.s-t.sm { font-size: 11.5px; }
.s-t.lg { font-size: 16px; }
.s-t.white { fill: #ffffff; }
.s-t.ink { fill: #1d2433; }
.s-m { font-family: var(--f-mono); font-size: 9.5px; fill: var(--muted); letter-spacing: 0.04em; }
.s-m.white { fill: #c9d6ea; }
.s-m.accent { fill: var(--accent); }
.s-chip-d { fill: var(--chip-d); }
.s-chip-b { fill: var(--chip-b); stroke: var(--accent); stroke-width: 0.8; }
.s-chip-qm { fill: var(--chip-qm); }
.s-ct { font-family: var(--f-mono); font-size: 8.5px; font-weight: 500; letter-spacing: 0.05em; }
.s-ct.d { fill: var(--chip-d-ink); }
.s-ct.b { fill: var(--chip-b-ink); }
.s-ct.qm { fill: var(--chip-qm-ink); }
.s-pulse { fill: var(--sun); stroke: var(--amber); stroke-width: 1; }
.s-titleblock { fill: var(--surface); stroke: var(--line); }
@media (prefers-reduced-motion: reduce) { .s-pulse-anim { display: none; } }

/* ---------- tiles, lists ---------- */
.tile {
  display: grid; gap: 12px; align-content: start;
  padding: 26px 24px 24px; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  min-width: 0;
}
a.tile:hover { border-color: var(--accent); color: var(--ink); }
.section.alt .tile { background: var(--bg); }
.tile .tag { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tile p { color: var(--muted); font-size: 0.97rem; }
.tile .textlink { margin-top: 4px; }
.tile-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--heading); border-radius: var(--radius); color: var(--heading); }
.tile-mark svg { width: 18px; height: 18px; }

.checks { list-style: none; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 24px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 11px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.dashes { list-style: none; display: grid; gap: 8px; }
.dashes li { position: relative; padding-left: 20px; }
.dashes li::before { content: ""; position: absolute; left: 0; top: 0.78em; width: 10px; height: 2px; background: var(--sky); }

.workproducts { display: flex; flex-wrap: wrap; gap: 6px; }
.workproducts span { font-family: var(--f-mono); font-size: 0.74rem; padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--ink); background: var(--surface); }
.section.alt .workproducts span { background: var(--bg); }

/* split rows */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
.split > * { min-width: 0; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: minmax(0, 1fr); } }
.stack { display: grid; gap: 16px; align-content: start; }
.stack.lg { gap: 22px; }

/* figures row */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.figures > div { padding: 24px 20px; display: grid; gap: 6px; align-content: start; border-left: 1px solid var(--line); }
.figures > div:first-child { border-left: 0; padding-left: 0; }
.figures .num { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); color: var(--heading); line-height: 1; font-variant-numeric: tabular-nums; }
.figures .lbl { color: var(--muted); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 860px) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .figures > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* practice blocks (consulting page) */
.practice { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 60px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.practice:first-of-type { border-top: 0; }
.practice > * { min-width: 0; }
.practice .head { display: grid; gap: 14px; align-content: start; }
.practice .head p { color: var(--muted); }
.practice .body { display: grid; gap: 20px; align-content: start; }
.practice .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.practice h4 { font-family: var(--f-mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
@media (max-width: 860px) { .practice { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .practice .cols { grid-template-columns: minmax(0, 1fr); } }

/* sub-nav for long pages */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.subnav a { font-family: var(--f-display); font-weight: 500; font-size: 0.85rem; white-space: nowrap; padding: 13px 12px; text-decoration: none; color: var(--muted); }
.subnav a:hover { color: var(--heading); }
@media (max-width: 1040px) { .subnav { top: calc(env(safe-area-inset-top, 0px) + 64px); } }

/* case studies */
.case { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 3.5vw, 52px); padding-block: 36px; border-top: 1px solid var(--line); }
.case:first-child { border-top: 0; padding-top: 0; }
.case > * { min-width: 0; }
.case .meta { display: grid; gap: 12px; align-content: start; }
.case .meta dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 6px 0 0; font-size: 0.9rem; }
.case .meta dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.case .meta dd { margin: 0; color: var(--ink); }
.case .body { display: grid; gap: 14px; align-content: start; }
.case .body p { color: var(--ink); }
@media (max-width: 860px) { .case { grid-template-columns: minmax(0, 1fr); } }

/* chips row */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-family: var(--f-mono); font-size: 0.8rem; padding: 7px 12px; border: 1px solid var(--line); border-radius: 2px; background: var(--bg); color: var(--ink); }

/* table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.spec { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 620px; }
table.spec th, table.spec td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--surface); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td:first-child { font-family: var(--f-display); font-weight: 600; color: var(--heading); white-space: nowrap; }
.status { font-family: var(--f-mono); font-size: 0.74rem; padding: 3px 8px; border-radius: 2px; white-space: nowrap; display: inline-block; }
.status.ok { background: var(--chip-b); color: var(--chip-b-ink); }
.status.road { background: var(--chip-qm); color: var(--chip-qm-ink); }

/* callout + band */
.callout { border-left: 4px solid var(--sun); background: var(--surface); padding: 20px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout p { color: var(--ink); }
.band { background: var(--band); color: var(--band-ink); }
.band h2, .band h3 { color: #ffffff; }
.band .eyebrow { color: var(--sky); }
.band .eyebrow::before { background: linear-gradient(90deg, var(--sun) 0 30%, #ffffff 30% 78%, var(--sky) 78% 100%) !important; }
.band p { color: var(--band-muted); }
.band .btn { background: var(--sun); border-color: var(--sun); color: #1d1a00; }
.band .btn:hover { background: #ffffff; border-color: #ffffff; color: var(--navy); }
.band .btn.ghost { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.35); }
.band .btn.ghost:hover { border-color: #ffffff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 32px; align-items: center; padding-block: clamp(48px, 6vw, 76px); }
.cta-band .copy { display: grid; gap: 14px; }
.cta-band .contact-card { display: grid; gap: 4px; padding: 20px 22px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: var(--radius); background: var(--band); }
.cta-band .contact-card strong { font-family: var(--f-display); color: #ffffff; font-size: 1.05rem; }
.cta-band .contact-card span { color: var(--band-muted); font-size: 0.92rem; }
.cta-band .contact-card .addr { font-family: var(--f-mono); color: #ffffff; font-size: 0.88rem; margin-top: 8px; user-select: all; }
.cta-band .contact-card .btn { margin-top: 14px; justify-content: center; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: minmax(0, 1fr); } }

/* image slots (Reby replaces the files; layout never depends on the picture) */
.photo { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--placeholder); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ratio, 16 / 9); }

/* media cards */
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .media-grid { grid-template-columns: minmax(0, 1fr); } }
.media-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); text-decoration: none; color: var(--ink); min-width: 0; }
a.media-card:hover { border-color: var(--accent); color: var(--ink); }
.media-thumb { aspect-ratio: 16 / 9; background: var(--navy); position: relative; display: grid; place-items: center; overflow: hidden; }
.media-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-thumb .kind { position: absolute; left: 12px; top: 12px; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; background: var(--sun); color: #1d1a00; padding: 3px 8px; border-radius: 2px; }
.media-thumb .glyph { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; }
.media-thumb .glyph svg { width: 20px; height: 20px; fill: #fff; }
.media-thumb .art { position: absolute; inset: 0; opacity: 0.22; background-image: linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 22px 22px; }
.media-body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.media-body .meta { font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); letter-spacing: 0.04em; }
.media-body h3 { font-size: 1.08rem; }
.media-body p { color: var(--muted); font-size: 0.93rem; }
.media-body .go { font-family: var(--f-display); font-weight: 600; font-size: 0.88rem; color: var(--accent); margin-top: 4px; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filter button { font-family: var(--f-display); font-weight: 500; font-size: 0.86rem; padding: 8px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 2px; cursor: pointer; }
.filter button[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: #fff; }

/* forms */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .form .row { grid-template-columns: minmax(0, 1fr); } }
.form label { display: grid; gap: 6px; font-family: var(--f-display); font-weight: 500; font-size: 0.88rem; color: var(--heading); }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 13px; width: 100%; }
.form textarea { min-height: 150px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--sky); outline-offset: 0; border-color: var(--accent); }
.form .note { font-size: 0.88rem; color: var(--muted); }
.form-status { padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 0.95rem; }
.copyrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copyrow code { font-family: var(--f-mono); font-size: 0.95rem; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); user-select: all; color: var(--ink); }
.copybtn { font-family: var(--f-display); font-weight: 600; font-size: 0.82rem; padding: 8px 12px; border: 1px solid var(--line); background: var(--bg); color: var(--heading); border-radius: var(--radius); cursor: pointer; }

/* offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.offices > div { border-top: 3px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.offices > div:first-child { border-top-color: var(--navy); }
.offices > div:nth-child(2) { border-top-color: var(--sky); }
.offices strong { font-family: var(--f-display); color: var(--heading); }
.offices span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 560px) { .offices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.site-footer { background: var(--band); color: var(--band-ink); }
.site-footer .wrap { padding-block: 56px 28px; display: grid; gap: 40px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 0.7fr)); gap: 32px; }
.foot-top > * { min-width: 0; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-brand img { width: 190px; }
.foot-brand p { color: var(--band-muted); font-size: 0.93rem; max-width: 40ch; }
.site-footer h4 { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 9px; }
.site-footer a { color: var(--band-ink); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--sun); }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.82rem; color: var(--band-muted); }
.foot-bar { width: 120px; height: 4px; background: linear-gradient(90deg, var(--sun) 0 30%, #ffffff 30% 78%, var(--sky) 78% 100%); }
@media (max-width: 860px) { .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---------- drawn background art (assets/img/bg-*.svg, generated by _build/gen_art.py) ---------- */
.sheet { position: relative; isolation: isolate; overflow: hidden; }
.sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../img/bg-traces.svg") right -80px center / auto 120% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 20%, #000 70%);
}
.band, .site-footer { position: relative; isolation: isolate; overflow: hidden; }
.band::before, .site-footer::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  right: -60px; top: 50%; width: 720px; height: 420px; transform: translateY(-50%);
  background: url("../img/bg-cubes-navy.svg") center / contain no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.site-footer::before { top: 0; transform: none; opacity: 0.18; }
@media (max-width: 860px) { .band::before, .site-footer::before { opacity: 0.15; } .sheet::before { opacity: 0.5; } }
