/* Dynamic Build UK — site styles
   Layout concept: photo-led, full-bleed project imagery with drawing-style
   spec callouts (mono labels, cyan dimension lines) — the site reads like a
   well-organised set of construction drawings, not a template. */
:root {
  --ink: #222222;          /* DBUK logo black */
  --cyan: #00A2E1;         /* DBUK logo cyan */
  --cyan-text: #00759F;    /* cyan darkened for small text on light grounds */
  --graphite: #33373B;     /* supporting dark grey */
  --graphite-2: #2A2D30;
  --mist: #EAEAEA;         /* supporting light grey (site header) */
  --paper: #F5F6F6;
  --white: #FFFFFF;
  --muted: #5E6368;
  --muted-on-dark: #B7BCC1;
  --line: #D6D9DB;
  --line-dark: #464B50;
  --ok: #1E8E5A;

  --f-display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1240px;
  --radius: 4px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }
.section.tight { padding-block: clamp(40px, 5vw, 72px); }
.bg-paper { background: var(--paper); }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: var(--white); }
.bg-graphite { background: var(--graphite); color: var(--white); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 78%; font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; text-transform: uppercase; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-stretch: 85%; }
h4 { font-size: 1.05rem; font-stretch: 90%; letter-spacing: 0.02em; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--muted); }
.bg-ink .muted, .bg-graphite .muted, .hero .muted { color: var(--muted-on-dark); }
.cyan { color: var(--cyan); }
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.6rem; }
.measure { max-width: 64ch; }

/* Eyebrow with a dimension line: |——— LABEL */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan-text);
}
.bg-ink .eyebrow, .bg-graphite .eyebrow, .hero .eyebrow, .dark .eyebrow { color: var(--cyan); }
.eyebrow::before {
  content: ""; width: 40px; height: 9px; flex: none;
  border-left: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat;
}
.spec { font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-display); font-stretch: 85%; font-weight: 700; font-size: 0.98rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 24px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #29B6EC; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--graphite); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.btn .arrow { transition: transform .18s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.textlink { font-weight: 600; color: var(--cyan-text); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.bg-ink .textlink, .bg-graphite .textlink, .dark .textlink { color: var(--cyan); }

/* ---------- Review bar ---------- */
.review-bar { background: #FFF4C2; color: #3D3300; font-size: 0.86rem; padding-block: 8px; border-bottom: 1px solid #E8D98A; }
.review-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
.review-bar button { font: inherit; font-weight: 700; background: none; border: 1px solid currentColor; border-radius: 3px; padding: 3px 10px; cursor: pointer; color: inherit; }
.review-notes { background: #FFFBE6; color: #3D3300; border-bottom: 1px solid #E8D98A; font-size: 0.9rem; }
.review-notes ul { margin: 0; padding: 14px 0 16px 20px; display: grid; gap: 6px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo-mark { width: 40px; height: 40px; }
.logo-word { font-family: var(--f-display); font-weight: 800; font-stretch: 80%; font-size: 1.28rem; letter-spacing: 0.02em; line-height: 0.95; text-transform: uppercase; }
.logo-word span { display: block; font-size: 0.64rem; letter-spacing: 0.34em; color: var(--cyan-text); font-stretch: 100%; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a:not(.btn), .nav .dd > button { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; padding: 10px 11px; white-space: nowrap; border-radius: 3px; background: none; border: 0; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.nav > a:not(.btn):hover, .nav .dd > button:hover, .nav > a[aria-current="page"], .nav .dd.current > button { color: var(--cyan-text); }
.nav > a[aria-current="page"], .nav .dd.current > button { box-shadow: inset 0 -2px 0 var(--cyan); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 6px); left: -8px; min-width: 300px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.12); padding: 8px; display: none; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; text-decoration: none; border-radius: 3px; }
.dd-menu a:hover { background: var(--paper); }
.dd-menu a strong { display: block; font-family: var(--f-display); font-stretch: 88%; text-transform: uppercase; letter-spacing: 0.03em; font-size: 0.95rem; }
.dd-menu a small { color: var(--muted); font-size: 0.85rem; line-height: 1.35; display: block; }
.dd-menu .ext small::after { content: " ↗"; }
.header-cta { margin-left: 8px; padding: 12px 18px; white-space: nowrap; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 2px solid var(--ink); border-radius: 3px; padding: 8px 12px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; color: var(--ink); }
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .dd-menu { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 6px 12px; min-width: 0; }
  .header-cta { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,22,.88) 0%, rgba(20,21,22,.62) 48%, rgba(20,21,22,.15) 100%), linear-gradient(0deg, rgba(20,21,22,.55), rgba(20,21,22,0) 45%); }
.hero .wrap { position: relative; padding-block: clamp(72px, 11vw, 150px) clamp(48px, 7vw, 88px); }
.hero-inner { max-width: 760px; }
.hero h1 { margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .lead { margin-top: 22px; color: #E4E7EA; }
.hero .btn-row { margin-top: 32px; }
.hero-callout { position: absolute; right: var(--gutter); bottom: 28px; display: grid; gap: 6px; text-align: right; }
.hero-callout .spec { color: #CFE9F5; background: rgba(20,21,22,.55); padding: 5px 9px; border-left: 2px solid var(--cyan); }
@media (max-width: 760px) { .hero-callout { display: none; } }
.hero.sub .wrap { padding-block: clamp(64px, 9vw, 120px) clamp(40px, 6vw, 72px); }
.hero.sub h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); }
.crumbs { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); }
.crumbs a { text-decoration: none; color: var(--muted-on-dark); }
.crumbs a:hover { color: var(--white); }

/* ---------- Route chooser (who are you) ---------- */
.router { margin-top: -1px; background: var(--ink); color: var(--white); border-top: 1px solid var(--line-dark); }
.router .wrap { display: grid; grid-template-columns: 220px repeat(3, 1fr); gap: 0; }
.router-q { padding: 26px 20px 26px 0; font-family: var(--f-display); font-stretch: 80%; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1.05; align-self: center; }
.router a { display: grid; gap: 4px; padding: 24px 22px; text-decoration: none; border-left: 1px solid var(--line-dark); transition: background .18s; }
.router a:hover { background: var(--graphite); }
.router a .spec { color: var(--cyan); }
.router a strong { font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .02em; }
.router a span.muted { font-size: 0.92rem; }
@media (max-width: 900px) { .router .wrap { grid-template-columns: 1fr; } .router a { border-left: 0; border-top: 1px solid var(--line-dark); padding-inline: 0; } .router-q { padding: 22px 0 14px; } }

/* ---------- Numbers strip ---------- */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.numbers > div { padding: 22px 20px 6px 0; border-right: 1px solid var(--line); }
.numbers > div:last-child { border-right: 0; }
.numbers > div + div { padding-left: 20px; }
.numbers b { display: block; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; text-transform: uppercase; }
.numbers span { display: block; margin-top: 8px; color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 820px) { .numbers { grid-template-columns: 1fr 1fr; } .numbers > div:nth-child(2) { border-right: 0; } .numbers > div:nth-child(3) { padding-left: 0; } .numbers > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- Generic grids ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.top { align-items: start; }
.split > * { min-width: 0; }
.split-60 { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 900px) { .split, .split-60 { grid-template-columns: 1fr; } }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px 40px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > div { min-width: 0; }
.section-head h2 { margin-top: 14px; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }
.photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .tag { position: absolute; left: 12px; bottom: 12px; background: rgba(34,34,34,.86); color: var(--white); padding: 5px 9px; border-left: 2px solid var(--cyan); }
.ratio-43 { aspect-ratio: 4/3; }
.ratio-32 { aspect-ratio: 3/2; }
.ratio-169 { aspect-ratio: 16/9; }
.ratio-45 { aspect-ratio: 4/5; }

/* ---------- Tier cards ---------- */
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tier { display: grid; grid-template-rows: auto 1fr; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tier .photo { border-radius: 0; aspect-ratio: 16/9; }
.tier-body { padding: 26px 26px 28px; display: grid; gap: 14px; align-content: start; }
.tier-body .spec { color: var(--cyan-text); }
.tier-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tier-body li { padding-left: 22px; position: relative; }
.tier-body li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 12px; height: 2px; background: var(--cyan); }
.tier-body .btn-row { margin-top: 6px; }
.tier-note { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; padding: 18px 22px; border: 1px dashed var(--line); border-radius: var(--radius); }
@media (max-width: 820px) { .tiers { grid-template-columns: 1fr; } }

/* ---------- Integration diagram ---------- */
.integrate { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); }
.integrate > div { background: var(--ink); padding: 22px 20px; min-height: 132px; display: grid; align-content: space-between; gap: 18px; }
.integrate .spec { color: var(--cyan); }
.integrate strong { font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; font-size: 1.12rem; letter-spacing: .02em; }
.integrate .core { grid-column: span 2; grid-row: span 2; background: var(--cyan); color: var(--ink); align-content: center; justify-items: start; }
.integrate .core .spec { color: var(--ink); }
.integrate .core strong { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-stretch: 75%; line-height: 1; }
@media (max-width: 820px) { .integrate { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---------- Journey ---------- */
.journey { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; counter-reset: step; border-top: 2px solid var(--ink); }
.journey li { list-style: none; padding: 18px 16px 0 0; position: relative; }
.journey li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.journey .spec { color: var(--cyan-text); }
.journey strong { display: block; margin-top: 8px; font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; font-size: 1.08rem; line-height: 1.1; }
.journey p { margin-top: 8px; color: var(--muted); font-size: 0.93rem; line-height: 1.45; }
.journey .num { display: block; margin-bottom: 6px; font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--ink); }
ol.journey { margin: 0; padding: 0; }
@media (max-width: 1000px) { .journey { grid-template-columns: repeat(3, 1fr); } .journey li:nth-child(4) { border-left: 0; padding-left: 0; } .journey li:nth-child(n+4) { margin-top: 26px; } }
@media (max-width: 560px) { .journey { grid-template-columns: 1fr; } .journey li, .journey li + li { border-left: 0; padding-left: 0; } .journey li + li { margin-top: 18px; border-top: 1px solid var(--line); } }

/* ---------- Compare table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 0.97rem; }
.compare th, .compare td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-family: var(--f-mono); font-weight: 500; font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); width: 26%; }
.bg-ink .compare th, .bg-ink .compare td { border-color: var(--line-dark); }
.bg-ink .compare thead th { border-color: var(--cyan); }
.bg-ink .compare tbody th { color: var(--muted-on-dark); }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.features > div { background: var(--white); padding: 26px 24px; display: grid; gap: 10px; align-content: start; }
.bg-paper .features > div { background: var(--paper); }
.features .spec { color: var(--cyan-text); }
.features h3 { font-size: 1.2rem; }
.features p { color: var(--muted); font-size: 0.97rem; }
.features.two { grid-template-columns: 1fr 1fr; }
.features.four { grid-template-columns: repeat(4, 1fr); }
.bg-ink .features, .bg-graphite .features { background: var(--line-dark); border-color: var(--line-dark); }
.bg-ink .features > div { background: var(--ink); }
.bg-graphite .features > div { background: var(--graphite); }
.bg-ink .features p, .bg-graphite .features p { color: var(--muted-on-dark); }
.bg-ink .features .spec, .bg-graphite .features .spec { color: var(--cyan); }
@media (max-width: 980px) { .features, .features.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features, .features.two, .features.four { grid-template-columns: 1fr; } }

/* ---------- Project cards / filters ---------- */
.filters { display: grid; gap: 14px; margin-bottom: 28px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-row .spec { width: 92px; color: var(--muted); flex: none; }
.chip { font-family: var(--f-display); font-stretch: 88%; font-weight: 700; font-size: 0.86rem; text-transform: uppercase; letter-spacing: .05em; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip .count { font-family: var(--f-mono); font-weight: 400; opacity: .6; margin-left: 4px; }
.filter-summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.filter-summary button { background: none; border: 0; padding: 0; font: inherit; color: var(--cyan-text); font-weight: 600; cursor: pointer; text-decoration: underline; }
@media (max-width: 560px) { .filter-row .spec { width: 100%; } }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
@media (max-width: 980px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .projects-grid { grid-template-columns: 1fr; } }
.pcard { display: grid; gap: 12px; align-content: start; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.pcard .photo { aspect-ratio: 4/3; }
.pcard .photo img { transition: transform .5s; }
.pcard:hover .photo img { transform: scale(1.04); }
.pcard h3 { font-size: 1.3rem; }
.pcard .meta { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); background: var(--white); }
.pill.sys { border-color: var(--cyan); color: var(--cyan-text); }
.pcard .fact { font-size: 0.95rem; color: var(--muted); }
.empty-state { grid-column: 1 / -1; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Project drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,21,22,.6); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100%); background: var(--white); z-index: 81; overflow-y: auto; box-shadow: -20px 0 50px rgba(0,0,0,.25); padding-bottom: env(safe-area-inset-bottom, 0px); }
.drawer-close { position: sticky; top: 0; display: flex; justify-content: flex-end; padding: 12px; z-index: 2; pointer-events: none; }
.drawer-close button { pointer-events: auto; background: var(--ink); color: var(--white); border: 0; border-radius: 3px; padding: 10px 14px; cursor: pointer; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.drawer-hero { margin-top: -56px; aspect-ratio: 16/10; }
.drawer-hero img { width: 100%; height: 100%; object-fit: cover; }
.drawer-body { padding: 28px clamp(20px, 4vw, 40px) 40px; display: grid; gap: 22px; }
.drawer-body dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin: 0; }
.drawer-body dl > div { background: var(--paper); padding: 12px 14px; }
.drawer-body dt { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.drawer-body dd { margin: 4px 0 0; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs img { aspect-ratio: 4/3; object-fit: cover; border-radius: 3px; }
@media (max-width: 560px) { .drawer-body dl { grid-template-columns: 1fr 1fr; } }

/* ---------- Estimator ---------- */
.estimator { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); color: var(--ink); }
.est-inputs { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; align-content: start; }
.est-output { background: var(--ink); color: var(--white); padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px; align-content: start; }
.est-output .range { font-family: var(--f-display); font-stretch: 75%; font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.est-output .spec { color: var(--cyan); }
.est-output ul { margin: 0; padding-left: 18px; color: var(--muted-on-dark); font-size: 0.93rem; display: grid; gap: 4px; }
.est-output .fine { font-size: 0.82rem; color: var(--muted-on-dark); border-top: 1px solid var(--line-dark); padding-top: 14px; }
@media (max-width: 880px) { .estimator { grid-template-columns: 1fr; } }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; gap: 2px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; line-height: 1.25; }
.seg label small { font-weight: 400; color: var(--muted); font-size: 0.82rem; }
.seg input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--paper); }
.seg input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }
.field-label { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; display: flex; justify-content: space-between; gap: 10px; }
.field-label output { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--cyan); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0,162,225,.3); }
.form textarea { min-height: 120px; resize: vertical; }
.dropzone { border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 20px; text-align: center; background: var(--paper); cursor: pointer; }
.dropzone.drag { border-color: var(--cyan); background: #E6F6FC; }
.dropzone input { display: none; }
.dropzone ul { list-style: none; margin: 10px 0 0; padding: 0; font-size: 0.9rem; color: var(--muted); }
.check { display: flex !important; grid-template-columns: none; gap: 10px !important; font-weight: 400 !important; align-items: flex-start; }
.check input { width: auto; margin-top: 5px; }
.form-done { padding: 24px; border-left: 3px solid var(--ok); background: #EEF8F2; border-radius: var(--radius); }

/* ---------- Guide capture ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide { display: grid; gap: 10px; padding: 22px; border: 1px solid var(--line-dark); border-radius: var(--radius); align-content: start; }
.guide .spec { color: var(--cyan); }
.guide h3 { font-size: 1.15rem; }
.guide p { color: var(--muted-on-dark); font-size: 0.93rem; }
@media (max-width: 880px) { .guides { grid-template-columns: 1fr; } }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.inline-form input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 13px 14px; border-radius: var(--radius); border: 1.5px solid var(--line-dark); background: var(--graphite-2); color: var(--white); }
.inline-form input::placeholder { color: var(--muted-on-dark); }

/* ---------- Quote / proof ---------- */
.bigquote { font-family: var(--f-display); font-stretch: 80%; font-weight: 700; text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.08; text-wrap: balance; }
.bigquote em { font-style: normal; color: var(--cyan); }
.logos { display: flex; flex-wrap: wrap; gap: 10px; }
.logos span { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 0.9rem; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; color: var(--graphite); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; color: var(--white); background: var(--ink); overflow: hidden; }
.cta-band .bgimg { position: absolute; inset: 0; opacity: .28; }
.cta-band .bgimg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .wrap { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: end; padding-block: clamp(56px, 8vw, 104px); }
.cta-band .contact-lines { display: grid; gap: 8px; font-size: 1.05rem; }
.cta-band .contact-lines b { font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); display: block; }
@media (max-width: 820px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: #1A1B1C; color: var(--muted-on-dark); font-size: 0.95rem; }
.site-footer .wrap { padding-block: 56px 32px; display: grid; gap: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { color: var(--white); margin-bottom: 12px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--white); }
.site-footer .logo-word { color: var(--white); }
.site-footer .logo-word span { color: var(--cyan); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid #333; padding-top: 22px; font-size: 0.85rem; }
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Assistant ---------- */
.assist-btn { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); border: 2px solid var(--cyan); border-radius: 999px; padding: 12px 18px 12px 14px; cursor: pointer; font-family: var(--f-display); font-stretch: 88%; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.assist-btn .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(0,162,225,.25); }
.assist { position: fixed; right: 18px; bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 71; width: min(390px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); background: var(--white); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.28); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; }
.assist-head { background: var(--ink); color: var(--white); padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.assist-head strong { font-family: var(--f-display); font-stretch: 85%; text-transform: uppercase; letter-spacing: .04em; }
.assist-head small { display: block; color: var(--muted-on-dark); font-size: 0.8rem; }
.assist-head button { background: none; border: 0; color: var(--white); font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 4px 8px; }
.assist-log { padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 10px; font-size: 0.94rem; line-height: 1.45; }
.msg.bot { background: var(--white); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 2px; }
.msg.me { background: var(--ink); color: var(--white); align-self: flex-end; border-bottom-right-radius: 2px; }
.msg a { color: var(--cyan-text); font-weight: 600; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { font: inherit; font-size: 0.84rem; border: 1px solid var(--cyan); color: var(--cyan-text); background: var(--white); border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.assist form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.assist form input { flex: 1; min-width: 0; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 6px; }
.assist form button { background: var(--cyan); border: 0; border-radius: 6px; padding: 0 14px; font-weight: 700; cursor: pointer; color: var(--ink); }

/* ---------- Cookie banner ---------- */
.cookie { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 69; width: min(420px, calc(100vw - 36px)); background: var(--white); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 18px 40px rgba(0,0,0,.18); padding: 18px; display: grid; gap: 12px; font-size: 0.92rem; }
.cookie .btn { padding: 10px 16px; font-size: 0.85rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--ink); margin-bottom: 36px; }
.tabs button { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1rem; padding: 14px 20px; border: 0; background: none; cursor: pointer; color: var(--muted); border-bottom: 4px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--cyan); }

/* ---------- Portal preview ---------- */
.portal { display: grid; grid-template-columns: 240px 1fr; min-height: 640px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper); }
.portal-side { background: var(--ink); color: var(--white); padding: 20px 14px; display: grid; gap: 4px; align-content: start; }
.portal-side button { text-align: left; background: none; border: 0; color: var(--muted-on-dark); padding: 10px 12px; border-radius: 4px; font: inherit; cursor: pointer; }
.portal-side button[aria-current="true"] { background: var(--graphite); color: var(--white); box-shadow: inset 3px 0 0 var(--cyan); }
.portal-main { padding: clamp(18px, 3vw, 32px); display: grid; gap: 22px; align-content: start; min-width: 0; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px; display: grid; gap: 14px; min-width: 0; }
.panel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kpi b { display: block; font-family: var(--f-display); font-stretch: 75%; font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--muted); font-size: 0.88rem; }
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stage-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.stage-list li:last-child { border-bottom: 0; }
.stage-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); }
.done .stage-dot { background: var(--ok); border-color: var(--ok); }
.now .stage-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(0,162,225,.2); }
.status { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 2px; }
.status.ok { background: #E4F4EA; color: #17613F; }
.status.due { background: #E6F6FC; color: #005E80; }
.status.wait { background: var(--mist); color: var(--muted); }
.progress { height: 8px; background: var(--mist); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--cyan); }
.doc-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.doc-row:last-child { border-bottom: 0; }
@media (max-width: 860px) { .portal { grid-template-columns: 1fr; } .portal-side { grid-auto-flow: column; overflow-x: auto; } .panel-grid { grid-template-columns: 1fr; } }

/* ---------- Misc ---------- */
.two-col-list { columns: 2; column-gap: 40px; padding-left: 18px; margin: 0; }
.two-col-list li { break-inside: avoid; margin-bottom: 6px; }
@media (max-width: 620px) { .two-col-list { columns: 1; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-family: var(--f-display); font-stretch: 88%; font-weight: 700; text-transform: uppercase; font-size: 1.08rem; letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--cyan-text); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--muted); max-width: 70ch; }
.badge-note { display: inline-block; font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: .06em; text-transform: uppercase; background: #FFF4C2; color: #5A4A00; padding: 2px 7px; border-radius: 2px; vertical-align: middle; }

.nav > a.header-cta { color: var(--ink); }
@media (max-width: 520px) { .integrate strong { font-size: 1rem; } .integrate > div { padding: 16px 14px; min-height: 110px; } }

/* Four skills */
.skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.skill { display: grid; gap: 10px; align-content: start; }
.skill .spec { color: var(--cyan-text); margin-top: 6px; }
.skill h3 { font-size: 1.35rem; }
.skill ul { list-style: none; margin: 4px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.skill li { padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 0.95rem; }
@media (max-width: 980px) { .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .skills { grid-template-columns: 1fr; } .skill .photo { display: none; } }
.est-output .gate-form label { color: var(--white); }
.est-output .gate-form input { background: var(--graphite-2); color: var(--white); border-color: var(--line-dark); }
.est-output h3 { color: var(--white); }

/* Starting points */
.router a.router-main { background: var(--cyan); color: var(--ink); }
.router a.router-main:hover { background: #29B6EC; }
.router a.router-main .spec, .router a.router-main .muted { color: var(--ink); }
/* Nine systems */
.nine { gap: clamp(24px, 4vw, 56px); }
.nine h3.cyan { color: var(--cyan); }
.systems-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px 24px; counter-reset: sys; }
.systems-list li { counter-increment: sys; border-top: 2px solid var(--cyan); padding-top: 10px; font-family: var(--f-display); font-stretch: 88%; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.systems-list li::before { content: counter(sys, decimal-leading-zero); display: block; font-family: var(--f-mono); font-weight: 400; font-size: .72rem; color: var(--cyan); margin-bottom: 4px; }
.systems-list li span { display: block; font-family: var(--f-body); text-transform: none; letter-spacing: 0; font-weight: 400; font-size: .9rem; color: var(--muted-on-dark); }
@media (max-width: 620px) { .systems-list { grid-template-columns: 1fr 1fr; } }
.ask-box { margin-top: 18px; border-left: 4px solid var(--cyan); padding: 4px 0 4px 16px; }
.ask-box h4 { color: var(--white); }
.ask-box p { color: var(--muted-on-dark); margin-top: 6px; }
/* Responsibilities */
.resp { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.resp li { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.resp strong { font-family: var(--f-display); font-stretch: 88%; text-transform: uppercase; letter-spacing: .02em; font-size: 1.08rem; }
.resp span { color: var(--muted); }
.resp li.key { background: var(--paper); border-left: 4px solid var(--cyan); padding-left: 16px; padding-right: 16px; }
.resp li.key strong { color: var(--cyan-text); }
@media (max-width: 900px) { .router a.router-main { padding-inline: 18px; margin-bottom: 4px; } }

.systems-list { counter-reset: sys var(--start, 0); }
.systems-list.add { --start: 6; }
.systems-list.add li { border-top-color: var(--muted-on-dark); color: var(--muted-on-dark); }
.systems-list.add li::before { color: var(--muted-on-dark); }

.pc-input { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius); width: 100%; text-transform: uppercase; }
.pc-input:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(0,162,225,.3); }
.logo-img { height: 46px; width: auto; display: block; }
@media (max-width: 520px) { .logo-img { height: 38px; } }

.pill.soon { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
.show-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.show-logos img { height: 64px; width: auto; max-width: 100%; background: #fff; padding: 6px; border-radius: 4px; }
.show-logos span { font-family: var(--f-display); font-stretch: 85%; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 0.9rem; padding: 12px 16px; border: 1px solid var(--line); border-radius: 3px; color: var(--graphite); }
.bg-ink .show-logos span, .dark .show-logos span { color: var(--white); border-color: var(--line-dark); }
