/* ==========================================================================
   Onexpertis site kit  ·  "Survey sheet"
   The visual language borrows from the documents an ELV integrator hands
   a client: survey drawings, equipment schedules and itemised quotes.
   Tokens are named by job, not by hue. See site-kit.html for usage rules.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Text */
  --ink: #13201e;          /* primary text, headings  (16.4:1 on white) */
  --ink-2: #3e4d4a;        /* secondary text          (8.9:1) */
  --ink-3: #5f6e6b;        /* captions, meta          (5.4:1) */

  /* Surfaces */
  --paper: #ffffff;
  --paper-2: #f2f4f3;      /* alternate band, table header */
  --line: #d5dbd9;         /* hairline rules */
  --line-2: #a9b4b1;       /* input borders, strong rules */

  /* Dark brand surface (solder-mask green) */
  --board: #0e2b27;
  --board-2: #163a35;
  --board-line: #2c4f49;
  --on-board: #ffffff;
  --on-board-2: #b9c9c5;   /* 8.8:1 on --board */

  /* Action (copper). Only for the primary action and its highlights. */
  --action: #b4532a;       /* white text on it: 5.0:1 */
  --action-hover: #96421f;
  --action-tint: #f7ebe4;
  --action-on-board: #e89a6c; /* copper used on --board: 5.9:1 */

  /* WhatsApp. Only for WhatsApp links. */
  --wa: #075e54;           /* white text on it: 7.7:1 */
  --wa-hover: #054a42;

  /* Feedback */
  --ok: #2e6b3c;
  --error: #b3261e;
  --focus: #13201e;

  /* Type */
  --font-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-display: clamp(2.375rem, 1.6rem + 2.6vw, 3.5rem);   /* 38 to 56 */
  --fs-h1: clamp(2.125rem, 1.6rem + 1.9vw, 3.125rem);      /* 34 to 50 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);         /* 28 to 40 */
  --fs-h3: 1.375rem;   /* 22 */
  --fs-h4: 1.125rem;   /* 18 */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem); /* 18 to 21 */
  --fs-body: 1.0625rem;  /* 17 */
  --fs-small: 0.9375rem; /* 15 */
  --fs-micro: 0.8125rem; /* 13, drawing labels and legal only */
  --heading-width: 84%;  /* Archivo wdth axis: semi-condensed */

  /* Space (4px base) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --gutter: clamp(20px, 4vw, 40px);
  --max: 1240px;
  --band-y: clamp(64px, 8.5vw, 120px);

  /* Shape: precise, small radii. No soft shadows. */
  --r-1: 2px;
  --r-2: 4px;
  --rule: 1px solid var(--line);
  --rule-strong: 1.5px solid var(--ink);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms;
  --t-med: 260ms;

  --header-h: 72px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body { margin: 0; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }

/* ---------- 3. Base ---------- */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}
h1, h2, h3, h4 {
  font-weight: 720;
  font-stretch: var(--heading-width);
  line-height: 1.12;
  letter-spacing: -0.008em;
  text-wrap: balance;
  color: inherit;
}
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
h4 { font-size: var(--fs-h4); line-height: 1.3; font-weight: 680; }
p { text-wrap: pretty; max-width: 68ch; }
p + p { margin-top: 1em; }
strong, b { font-weight: 650; }
small { font-size: var(--fs-small); }
code, kbd, .mono { font-family: var(--font-mono); font-size: .92em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--action); }
.band--board a:hover, .site-footer a:hover { color: var(--action-on-board); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: var(--r-1); }
::selection { background: var(--action-tint); color: var(--ink); }

.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.meta { font-size: var(--fs-small); color: var(--ink-3); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--s-3) var(--s-4); border-radius: var(--r-2);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); color: #fff; }

/* Prose for long-form content (guides, privacy, service detail copy) */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--ink-3); }

/* ---------- 4. Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap--narrow { max-width: 860px; }
.band { padding-block: var(--band-y); }
.band--s { padding-block: clamp(48px, 6vw, 80px); }
.band--alt { background: var(--paper-2); }
.band--ruled { border-top: var(--rule); }
.band--board { background: var(--board); color: var(--on-board); --focus: #ffffff; }
.band--board .lead, .band--board p, .band--board .meta { color: var(--on-board-2); }

.split { display: grid; gap: clamp(32px, 5vw, 80px); }
/* Grid children may shrink below their content width, so tables scroll instead of widening the page */
.split > *, .hero__grid > *, .page-hero__grid > *, .cta-band__grid > *, .index-groups > *, .svc-group > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: 5fr 7fr; }
  .split--rev { grid-template-columns: 7fr 5fr; }
  .split--even { grid-template-columns: 1fr 1fr; }
  .split--wide { grid-template-columns: 4fr 8fr; }
  .split--center { align-items: center; }
}

/* Section heading: heading left, intro right on wide screens. No eyebrow labels. */
.sec-head { display: grid; gap: var(--s-4); margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head p { color: var(--ink-2); }
.band--board .sec-head p { color: var(--on-board-2); }
@media (min-width: 960px) {
  .sec-head--split { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 80px); align-items: end; }
  .sec-head--split p { justify-self: start; }
}

.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.cluster { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--btn-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font-size: 1rem; font-weight: 640; font-stretch: 92%; letter-spacing: .005em; line-height: 1.1;
  color: var(--btn-fg); background: var(--btn-bg); border: 1.5px solid var(--btn-bd);
  border-radius: var(--r-2); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arrow { transition: transform var(--t-fast) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--action { --btn-bg: var(--action); }
.btn--action:hover { --btn-bg: var(--action-hover); }
.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-hover); }
.btn--line { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--line:hover { --btn-bg: var(--ink); --btn-fg: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--paper-2); --btn-fg: var(--ink); --btn-bd: var(--paper-2); }
.btn--line-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--line-light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--s { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); }
.btn--block { width: 100%; }

/* Text link with arrow */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 620; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- 6. Utility bar + header ---------- */
.utility { background: var(--board); color: var(--on-board-2); font-size: 14px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); min-height: 40px; }
.utility ul { display: flex; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }
.utility li { display: flex; align-items: center; gap: 6px; }
.utility svg { width: 15px; height: 15px; opacity: .8; }
.utility a { color: #fff; text-decoration: none; font-weight: 560; }
.utility a:hover { color: var(--action-on-board); text-decoration: underline; }
@media (max-width: 899px) { .utility { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 34px; height: 34px; }
.brand__name { font-size: 1.375rem; font-weight: 760; font-stretch: 84%; letter-spacing: -0.01em; line-height: 1; }
.brand__sub { display: block; font-size: 11.5px; font-weight: 560; font-stretch: 100%; letter-spacing: .02em; color: var(--ink-3); margin-top: 3px; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link {
  display: inline-flex; align-items: center; padding: 10px 12px; border-radius: var(--r-2);
  font-size: 1rem; font-weight: 580; text-decoration: none; color: var(--ink);
}
.nav__link:hover { color: var(--action); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--action); border-radius: 0; }
.nav__toggle {
  display: inline-grid; place-items: center; width: 28px; height: 36px; margin-left: -8px;
  background: none; border: 0; cursor: pointer; border-radius: var(--r-2); color: var(--ink);
}
.nav__toggle svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: var(--s-4); margin-left: var(--s-3); }
.header-phone { display: flex; flex-direction: column; text-decoration: none; line-height: 1.15; }
.header-phone span { font-size: 12.5px; color: var(--ink-3); }
.header-phone strong { font-size: 1rem; font-weight: 680; font-variant-numeric: tabular-nums; }
@media (max-width: 1199px) { .header-phone { display: none; } }

/* Mega menu */
.site-header .wrap { position: relative; }
@media (min-width: 1024px) { .nav__item--mega { position: static; } }
.mega {
  position: absolute; top: calc(100% - 1px); left: 0; right: 0; z-index: 60;
  background: #fff; border: var(--rule-strong); border-radius: 0 0 var(--r-2) var(--r-2);
  display: grid; grid-template-columns: repeat(4, 1fr) 1.05fr;
}
.mega[hidden] { display: none; }
.mega__group { padding: var(--s-5); border-right: var(--rule); }
.mega__group h3 { font-size: var(--fs-micro); font-weight: 650; font-stretch: 100%; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--s-3); }
.mega__group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.mega__group a { display: block; padding: 7px 0; font-weight: 580; text-decoration: none; line-height: 1.3; }
.mega__group a span { display: block; font-size: var(--fs-micro); font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.mega__group + .mega__group h3 { }
.mega__promo { background: var(--board); color: #fff; padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3); }
.mega__promo p { color: var(--on-board-2); font-size: var(--fs-small); }
.mega__promo .link-arrow { color: #fff; margin-top: auto; align-self: flex-start; }
.mega__promo h3 { font-size: 1.25rem; }
.mega__all { grid-column: 1 / -1; border-top: var(--rule); padding: var(--s-3) var(--s-5); display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-small); background: var(--paper-2); }
.mega__all a { font-weight: 620; }
/* Products: 8 groups in a 4 x 2 grid, no promo column */
.mega--products { grid-template-columns: repeat(4, 1fr); max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
.mega--products .mega__group { padding: var(--s-4) var(--s-5); }
.mega--products .mega__group:nth-child(4n) { border-right: 0; }
.mega--products .mega__group:nth-child(-n+4) { border-bottom: var(--rule); }
.mega--products .mega__group a { padding: 5px 0; }

.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: none; border: 1.5px solid var(--ink); border-radius: var(--r-2); font-weight: 620; cursor: pointer;
}
.menu-btn svg { width: 18px; height: 18px; }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .header-actions { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: #fff; overflow-y: auto;
    padding: var(--s-4) var(--gutter) 120px; margin: 0; display: none; border-top: var(--rule);
  }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: var(--rule); }
  .nav__link { flex: 1; padding: 16px 0; font-size: 1.125rem; }
  .nav__link[aria-current="page"] { box-shadow: none; color: var(--action); }
  .nav__toggle { width: 48px; height: 48px; margin: 0; }
  .mega { position: static; width: 100%; border: 0; grid-template-columns: 1fr; padding-bottom: var(--s-4); }
  .mega__group { border: 0; padding: var(--s-3) 0; }
  .mega--products { max-height: none; overflow: visible; }
  .mega--products .mega__group { border: 0 !important; padding: var(--s-3) 0; }
  .mega__promo { display: none; }
  .mega__all { display: none; }
  .nav__mobile-cta { display: grid !important; gap: var(--s-3); margin-top: var(--s-5); }
}
.nav__mobile-cta { display: none !important; }
body.nav-locked { overflow: hidden; }

/* ---------- 7. Plan symbols and legend codes ---------- */
.sym { width: 28px; height: 28px; flex: none; color: var(--ink); }
.code {
  display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 22px; padding: 0 5px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: .02em; line-height: 1;
  border: 1.5px solid currentColor; border-radius: var(--r-1); color: var(--ink);
}
.band--board .code { color: var(--on-board); }

/* ---------- 8. Hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px); border-bottom: var(--rule); }
.hero__grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: 6fr 6fr; } }
.hero h1 { font-size: var(--fs-display); line-height: 1.03; letter-spacing: -0.014em; max-width: 17ch; }
.hero .lead { margin-top: var(--s-5); }
.hero .cluster { margin-top: var(--s-6); }
.facts { display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-6); margin-top: var(--s-6); padding-top: var(--s-5); border-top: var(--rule); font-size: var(--fs-small); }
.facts dd { white-space: nowrap; }
.facts dt { color: var(--ink-3); font-size: var(--fs-micro); }
.facts dd { font-weight: 600; }

/* Inner page hero */
.page-hero { padding-block: clamp(32px, 4vw, 56px) clamp(48px, 6vw, 88px); border-bottom: var(--rule); }
.page-hero__grid { display: grid; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (min-width: 1024px) { .page-hero__grid { grid-template-columns: 7fr 5fr; } }
.page-hero h1 { margin-top: var(--s-5); max-width: 24ch; }
.page-hero .lead { margin-top: var(--s-5); }
.page-hero .cluster { margin-top: var(--s-6); }

/* Breadcrumbs */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; font-size: var(--fs-small); color: var(--ink-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--action); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); font-weight: 560; }

/* ---------- 9. Survey drawing (inline SVG) ---------- */
.drawing { margin: 0; }
.drawing svg { width: 100%; height: auto; background: #fff; border: var(--rule-strong); }
.drawing figcaption { margin-top: var(--s-3); font-size: var(--fs-small); color: var(--ink-3); max-width: 60ch; }
.dw-frame { fill: none; stroke: var(--ink); stroke-width: 1; }
.dw-grid { stroke: var(--line); stroke-width: .5; }
.dw-wall { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: square; }
.dw-wall-in { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: square; }
.dw-thin { fill: none; stroke: var(--ink); stroke-width: 1; }
.dw-faint { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dw-door { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.dw-room { font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; letter-spacing: .06em; fill: var(--ink-3); text-transform: uppercase; }
.dw-label { font-family: var(--font-mono); font-size: 9px; font-weight: 500; fill: var(--ink); }
.dw-text { font-family: var(--font-sans); font-size: 10px; fill: var(--ink); }
.dw-text-s { font-family: var(--font-sans); font-size: 8.5px; fill: var(--ink-3); }
.dw-title { font-family: var(--font-sans); font-size: 12px; font-weight: 750; fill: var(--ink); font-stretch: 84%; }
.dw-cone { fill: var(--action); fill-opacity: .13; stroke: var(--action); stroke-opacity: .55; stroke-width: .75; }
.dw-dev { fill: #fff; stroke: var(--ink); stroke-width: 1.25; }
.dw-dev-fill { fill: var(--ink); }
.dw-cam { fill: var(--action); }
.dw-route { fill: none; stroke: var(--action); stroke-width: 1.25; stroke-dasharray: 5 3; }
.dw-desk { fill: var(--paper-2); stroke: var(--line-2); stroke-width: .75; }
.dw-ap { fill: #fff; stroke: var(--ink); stroke-width: 1.25; }
.dw-ap-ring { fill: none; stroke: var(--ink-3); stroke-width: .6; stroke-dasharray: 2 2; }
.dw-dim { stroke: var(--ink-3); stroke-width: .75; fill: none; }
.dw-block-fill { fill: var(--paper-2); }

@media (prefers-reduced-motion: no-preference) {
  .drawing.is-animated .dw-cone { animation: cone-in .7s var(--ease) both; }
  .drawing.is-animated .dw-cone:nth-of-type(2) { animation-delay: .15s; }
  .drawing.is-animated .dw-cone:nth-of-type(3) { animation-delay: .3s; }
  .drawing.is-animated .dw-cone:nth-of-type(4) { animation-delay: .45s; }
  .drawing.is-animated .dw-cone:nth-of-type(5) { animation-delay: .6s; }
  .drawing.is-animated .dw-cone:nth-of-type(6) { animation-delay: .75s; }
  .drawing.is-animated .dw-route { animation: route-draw 2.4s .5s var(--ease) both; stroke-dasharray: 5 3; }
}
@keyframes cone-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes route-draw { from { stroke-dashoffset: 400; opacity: .2; } to { stroke-dashoffset: 0; opacity: 1; } }

/* ---------- 10. Service index (legend-style list, not cards) ---------- */
.index-groups { display: grid; gap: var(--s-7) clamp(32px, 5vw, 80px); }
@media (min-width: 960px) { .index-groups { grid-template-columns: 1fr 1fr; } }
.index-group h3 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); font-size: var(--fs-h4); padding-bottom: var(--s-3); border-bottom: var(--rule-strong); }
.index-group h3 span { font-size: var(--fs-micro); font-weight: 500; font-stretch: 100%; color: var(--ink-3); letter-spacing: 0; }
.index-list { list-style: none; padding: 0; margin: 0; }
.idx {
  display: grid; grid-template-columns: 40px 1fr 20px; gap: var(--s-4); align-items: start;
  padding: var(--s-4) var(--s-2) var(--s-4) 0; border-bottom: var(--rule); text-decoration: none; color: var(--ink);
  transition: background-color var(--t-fast) var(--ease), padding var(--t-med) var(--ease);
}
.idx:hover { background: var(--paper-2); color: var(--ink); padding-left: var(--s-3); }
.idx .sym { width: 32px; height: 32px; margin-top: 2px; }
.idx__name { display: block; font-size: 1.125rem; font-weight: 660; font-stretch: 90%; line-height: 1.3; }
.idx__desc { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 4px; }
.idx__arrow { width: 18px; height: 18px; margin-top: 4px; color: var(--ink-3); transition: transform var(--t-fast) var(--ease), color var(--t-fast); }
.idx:hover .idx__arrow { transform: translateX(3px); color: var(--action); }

/* ---------- 11. Title block (drawing title block used as a facts box) ---------- */
.titleblock { border: var(--rule-strong); background: #fff; font-size: var(--fs-small); }
.titleblock__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); background: var(--ink); color: #fff; }
.titleblock__head strong { font-weight: 680; font-stretch: 90%; font-size: 1rem; }
.titleblock__head span { font-family: var(--font-mono); font-size: 12px; color: var(--on-board-2); }
.titleblock dl { display: grid; grid-template-columns: 1fr 1fr; }
.titleblock dl > div { padding: var(--s-3) var(--s-4); border-top: var(--rule); }
.titleblock dl > div:nth-child(odd) { border-right: var(--rule); }
.titleblock dl > div.full { grid-column: 1 / -1; border-right: 0; }
.titleblock dt { font-size: var(--fs-micro); color: var(--ink-3); }
.titleblock dd { font-weight: 600; margin-top: 2px; line-height: 1.4; }
.titleblock__foot { border-top: var(--rule); padding: var(--s-4); display: grid; gap: var(--s-3); }

/* ---------- 12. Tables: spec, stages, matrix, BOQ ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec { font-size: var(--fs-small); border-top: var(--rule-strong); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: var(--rule); }
.spec thead th { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); padding-top: var(--s-3); }
.spec td:first-child, .spec th[scope="row"] { font-family: var(--font-mono); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.spec td { color: var(--ink-2); }
.spec tbody tr:hover td, .spec tbody tr:hover th { background: var(--paper-2); }
.band--board .spec { border-top-color: #fff; }
.band--board .spec th, .band--board .spec td { border-bottom-color: var(--board-line); }
.band--board .spec thead th { color: var(--on-board-2); }
.band--board .spec td { color: var(--on-board-2); }
.band--board .spec td:first-child, .band--board .spec th[scope="row"] { color: #fff; }
.band--board .spec tbody tr:hover td, .band--board .spec tbody tr:hover th { background: var(--board-2); }

/* Stages: stage / what we do / what you receive */
.stages { border-top: var(--rule-strong); }
.stage { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) 0; border-bottom: var(--rule); }
@media (min-width: 860px) { .stage { grid-template-columns: 3fr 5fr 4fr; } }
.stage h3 { font-size: var(--fs-h4); }
.stage p { color: var(--ink-2); font-size: var(--fs-small); }
.stage__out { font-size: var(--fs-small); }
.stage__out strong { display: block; font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.stages__head { display: none; }
@media (min-width: 860px) {
  .stages__head { display: grid; grid-template-columns: 3fr 5fr 4fr; gap: var(--s-6); padding: var(--s-3) 0; border-bottom: var(--rule); font-size: var(--fs-micro); color: var(--ink-3); font-weight: 600; }
  .stage__out strong { display: none; }
}

/* Matrix: systems x premises */
.matrix { font-size: var(--fs-small); border-top: var(--rule-strong); }
.matrix th, .matrix td { text-align: left; vertical-align: top; padding: var(--s-4) var(--s-4) var(--s-4) 0; border-bottom: var(--rule); }
.matrix thead th { font-size: var(--fs-small); font-weight: 680; font-stretch: 90%; color: var(--ink); padding-top: var(--s-3); }
.matrix tbody th { font-weight: 660; font-stretch: 90%; width: 18%; }
.matrix tbody th a { text-decoration: none; }
.matrix tbody th a:hover { text-decoration: underline; }
.matrix td { color: var(--ink-2); }
.matrix .none { color: var(--line-2); }
@media (max-width: 859px) {
  .matrix thead { display: none; }
  .matrix, .matrix tbody, .matrix tr, .matrix th, .matrix td { display: block; width: auto; }
  .matrix tr { padding: var(--s-4) 0; border-bottom: var(--rule-strong); }
  .matrix tbody th { padding: 0 0 var(--s-2); border: 0; font-size: 1.0625rem; }
  .matrix td { display: grid; grid-template-columns: 9.5em 1fr; gap: var(--s-3); padding: var(--s-2) 0; border-bottom: var(--rule); }
  .matrix td:last-child { border-bottom: 0; }
  .matrix td::before { content: attr(data-label); font-weight: 600; color: var(--ink); }
}

/* BOQ excerpt (what a quote looks like) */
.boq { border: var(--rule-strong); background: #fff; font-size: var(--fs-small); }
.boq__head { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4); border-bottom: var(--rule-strong); }
.boq__head strong { font-size: 1.0625rem; font-weight: 720; font-stretch: 86%; display: block; }
.boq__head span { color: var(--ink-3); font-size: var(--fs-micro); }
.boq__ref { font-family: var(--font-mono); font-size: 12px; text-align: right; color: var(--ink-2); }
.boq table th, .boq table td { padding: 10px var(--s-4); text-align: left; border-bottom: var(--rule); vertical-align: top; }
.boq thead th { font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); background: var(--paper-2); }
.boq td.num, .boq th.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--font-mono); font-size: 13px; }
.boq td .mono { font-size: 12.5px; color: var(--ink-2); display: block; }
.boq__foot { padding: var(--s-3) var(--s-4); font-size: var(--fs-micro); color: var(--ink-3); }

/* ---------- 13. System chain diagram ---------- */
.chain { display: grid; gap: 0; counter-reset: none; }
@media (min-width: 900px) { .chain { grid-auto-flow: column; grid-auto-columns: 1fr; } }
.chain__node { position: relative; padding: var(--s-4); border: var(--rule-strong); background: #fff; }
.chain__node + .chain__node { margin-top: 28px; }
@media (min-width: 900px) { .chain__node + .chain__node { margin-top: 0; margin-left: 36px; } }
.chain__node + .chain__node::before {
  content: ""; position: absolute; left: 50%; top: -29px; width: 0; height: 28px; border-left: 1.5px dashed var(--action);
}
@media (min-width: 900px) {
  .chain__node + .chain__node::before { left: -37px; top: 50%; width: 36px; height: 0; border-left: 0; border-top: 1.5px dashed var(--action); }
}
.chain__node .code { margin-bottom: var(--s-3); }
.chain__node strong { display: block; font-weight: 680; font-stretch: 90%; line-height: 1.3; }
.chain__node span { display: block; font-size: var(--fs-small); color: var(--ink-2); margin-top: 4px; line-height: 1.45; }
.chain__node--accent { border-color: var(--action); }

/* ---------- 14. Checklist (survey points), notes, lists ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: var(--rule-strong); }
@media (min-width: 860px) { .checks--2 { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 4vw, 64px); } }
.checks li { padding: var(--s-4) 0; border-bottom: var(--rule); }
.checks strong { display: block; font-weight: 660; font-stretch: 92%; font-size: 1.0625rem; margin-bottom: 4px; }
.checks p { font-size: var(--fs-small); color: var(--ink-2); }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-2); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--action); border-bottom: 2px solid var(--action); transform: rotate(-45deg); }
.band--board .ticks li::before { border-color: var(--action-on-board); }

.dash-list { list-style: none; padding: 0; margin: 0; }
.dash-list li { padding: 6px 0 6px 18px; position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 9px; border-top: 1.5px solid var(--ink-3); }

.note { border: var(--rule); background: var(--paper-2); padding: var(--s-4) var(--s-5); font-size: var(--fs-small); color: var(--ink-2); }
.note strong:first-child { color: var(--ink); }
.band--alt .note { background: #fff; }

/* Key/value list */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); }
.kv dt { color: var(--ink-3); }
.kv dd { font-weight: 560; }

/* ---------- 15. Scope examples (illustrative BOQ excerpts) ---------- */
.scopes { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .scopes { grid-template-columns: repeat(2, 1fr); } }
.scope { border-top: var(--rule-strong); padding-top: var(--s-4); }
.scope h3 { font-size: var(--fs-h4); }
.scope .meta { margin-top: 4px; }
.scope table { margin-top: var(--s-4); font-size: var(--fs-small); }
.scope td { padding: 8px 0; border-bottom: var(--rule); color: var(--ink-2); vertical-align: top; }
.scope td:last-child { text-align: right; font-family: var(--font-mono); font-size: 13px; color: var(--ink); white-space: nowrap; padding-left: var(--s-4); }

/* ---------- 16. Photo slots (honest placeholders for real site photos) ---------- */
.ph {
  position: relative; display: grid; align-content: end; margin: 0; overflow: hidden;
  aspect-ratio: var(--ph-ratio, 4 / 3); background-color: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(19,32,30,.07) 9px 10px);
  border: 1px solid var(--line-2);
}
.ph--wide { --ph-ratio: 16 / 9; }
.ph--tall { --ph-ratio: 4 / 5; }
.ph--square { --ph-ratio: 1 / 1; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph figcaption { position: relative; margin: var(--s-3); padding: var(--s-2) var(--s-3); background: #fff; border: 1px solid var(--line-2); font-size: var(--fs-micro); color: var(--ink-2); line-height: 1.4; max-width: 42ch; }
.ph figcaption b { color: var(--ink); font-weight: 650; }
.band--board .ph { background-color: var(--board-2); border-color: var(--board-line); background-image: repeating-linear-gradient(135deg, transparent 0 9px, rgba(255,255,255,.06) 9px 10px); }

/* Photos placed with {{img name}}: same frame and caption style as the slots they replace */
.photo { position: relative; margin: 0; overflow: hidden; aspect-ratio: var(--photo-ratio, 4 / 3); background: var(--paper-2); border: 1px solid var(--line-2); }
.photo picture, .photo img { display: block; width: 100%; height: 100%; }
.photo img { object-fit: cover; }
.photo--wide { --photo-ratio: 16 / 9; }
.photo--tall { --photo-ratio: 4 / 5; }
.photo--hero { --photo-ratio: 3 / 2; }
.photo figcaption { position: absolute; left: 0; bottom: 0; margin: var(--s-3); padding: var(--s-2) var(--s-3); background: #fff; border: 1px solid var(--line-2); font-size: var(--fs-micro); color: var(--ink-2); line-height: 1.4; max-width: 42ch; }
/* Product shots: whole product visible on white, not cropped */
.photo--product { background: #fff; }
.photo--product img { object-fit: contain; padding: var(--s-4); }
/* Blog post featured image (engine/lib/render.php) */
.post-figure { margin: 0 0 var(--s-6); border: 1px solid var(--line-2); background: var(--paper-2); }
.post-figure img { width: 100%; }
/* Hero right column: photo above the titleblock */
.page-hero__side { display: grid; gap: var(--s-4); align-content: start; }

/* ---------- 17. FAQ ---------- */
.faq { border-top: var(--rule-strong); }
.faq details { border-bottom: var(--rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-5);
  padding: var(--s-5) 0; cursor: pointer; list-style: none; font-size: 1.125rem; font-weight: 640; font-stretch: 92%; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-top: 5px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 1.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1.5px 14px no-repeat;
  transition: transform var(--t-med) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--action); }
.faq .faq__a { padding: 0 0 var(--s-5); color: var(--ink-2); max-width: 66ch; }
.faq .faq__a p + p { margin-top: .75em; }

/* ---------- 18. Forms ---------- */
.form { display: grid; gap: var(--s-5); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: var(--fs-small); font-weight: 620; color: var(--ink); padding: 0; }
.field .opt { font-weight: 400; color: var(--ink-3); }
.field .hint { font-size: var(--fs-micro); color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: #fff; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--r-2); font-size: 1rem; line-height: 1.4;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19,32,30,.15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); }
.field__error { display: none; font-size: var(--fs-micro); color: var(--error); font-weight: 560; }
.field.has-error .field__error { display: block; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: 4px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-2); font-size: var(--fs-small); font-weight: 560; background: #fff; transition: all var(--t-fast) var(--ease); }
.choice input:hover + span { border-color: var(--ink-3); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }
.form__foot .meta { max-width: 44ch; }
.form__status { padding: var(--s-4); border: 1.5px solid var(--ok); color: var(--ok); background: #eef5ef; font-weight: 560; font-size: var(--fs-small); }
.form__status[data-state="error"] { border-color: var(--error); color: var(--error); background: #fbeeed; }

/* Form on dark board */
.band--board .field label, .band--board .field legend { color: #fff; }
.band--board .field .hint, .band--board .field .opt { color: var(--on-board-2); }
.band--board .input, .band--board .select, .band--board .textarea { border-color: transparent; }
.band--board .field.has-error .input, .band--board .field.has-error .select, .band--board .field.has-error .textarea { border-color: #ffb4a8; box-shadow: 0 0 0 1px #ffb4a8; }
.band--board .field__error { color: #ffcfc7; }
.band--board .choice span { background: transparent; color: #fff; border-color: var(--board-line); }
.band--board .choice input:checked + span { background: #fff; color: var(--ink); border-color: #fff; }
.band--board .form__status { background: var(--board-2); color: #fff; border-color: var(--action-on-board); }

/* ---------- 19. CTA band ---------- */
.cta-band__grid { display: grid; gap: clamp(40px, 5vw, 80px); }
@media (min-width: 1024px) { .cta-band__grid { grid-template-columns: 5fr 7fr; } }
.cta-band h2 { max-width: 16ch; }
.cta-band .contact-lines { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.contact-line { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: start; }
.contact-line svg { width: 20px; height: 20px; margin-top: 3px; color: var(--action-on-board); }
.contact-line a { font-size: 1.25rem; font-weight: 680; font-stretch: 92%; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums; }
.contact-line a:hover { text-decoration: underline; }
.contact-line span { display: block; font-size: var(--fs-small); color: var(--on-board-2); }
.form-panel { background: var(--board-2); padding: clamp(24px, 3vw, 40px); border: 1px solid var(--board-line); }

/* ---------- 20. Brands row (text set, until approved logo files are supplied) ---------- */
.brands { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; padding: 0; margin: 0; }
.brands li { padding: 8px 14px; border: var(--rule); font-weight: 640; font-stretch: 90%; font-size: var(--fs-small); background: #fff; }
.band--board .brands li { background: transparent; border-color: var(--board-line); color: #fff; }

/* ---------- 21. People ---------- */
.people { display: grid; gap: var(--s-6); }
@media (min-width: 720px) { .people { grid-template-columns: repeat(2, 1fr); } }
.person { display: grid; grid-template-columns: 112px 1fr; gap: var(--s-4); align-items: start; }
.person .ph { --ph-ratio: 1 / 1; }
.person .ph figcaption { margin: 4px; padding: 2px 4px; font-size: 10px; }
/* Until there is a portrait: initials on the board colour. A real one goes in as
   <figure class="photo">{{img name}}</figure> in the same place. */
.person__initials { display: grid; place-items: center; width: 100%; aspect-ratio: 1 / 1; background: var(--board); color: #fff; font-size: 2rem; font-weight: 700; font-stretch: 84%; letter-spacing: .03em; }
.person .photo { --photo-ratio: 1 / 1; }
.person h3 { font-size: var(--fs-h4); }
.person p { font-size: var(--fs-small); color: var(--ink-2); margin-top: 4px; }
.person a { font-size: var(--fs-small); font-weight: 600; }

/* ---------- 22. Related links ---------- */
.related { display: grid; gap: 0; border-top: var(--rule-strong); }
@media (min-width: 720px) { .related { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 4vw, 64px); } }
@media (min-width: 1024px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 23. Footer ---------- */
.site-footer { background: var(--board); color: var(--on-board-2); font-size: var(--fs-small); --focus: #fff; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; gap: var(--s-6); padding-block: clamp(48px, 6vw, 80px) var(--s-7); border-bottom: 1px solid var(--board-line); }
@media (min-width: 960px) { .footer-top { grid-template-columns: 7fr 5fr; align-items: end; } }
.footer-top p.big { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 700; font-stretch: 84%; line-height: 1.15; color: #fff; max-width: 24ch; }
.footer-top .cluster { justify-content: flex-start; }
@media (min-width: 960px) { .footer-top .cluster { justify-content: flex-end; } }
.footer-cols { display: grid; gap: var(--s-6); padding-block: var(--s-7); }
@media (min-width: 720px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 4fr 5fr 3fr; } }
.footer-cols h2 { font-size: var(--fs-micro); font-weight: 650; font-stretch: 100%; letter-spacing: .04em; text-transform: uppercase; color: var(--on-board-2); margin-bottom: var(--s-4); }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-services ul { grid-template-columns: 1fr 1fr; column-gap: var(--s-5); }
.footer-nap address { font-style: normal; color: #fff; line-height: 1.55; }
.footer-nap .kv { margin-top: var(--s-4); }
.footer-nap .kv dt { color: var(--on-board-2); }
.footer-nap .kv dd { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-5); padding-block: var(--s-5); border-top: 1px solid var(--board-line); font-size: var(--fs-micro); }
.footer-base ul { display: flex; flex-wrap: wrap; gap: var(--s-5); list-style: none; margin: 0; padding: 0; }

/* ---------- 24. Floating WhatsApp (desktop) + mobile action bar ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 16px; background: var(--wa); color: #fff; border-radius: 26px;
  font-weight: 640; text-decoration: none; box-shadow: 0 2px 0 rgba(0,0,0,.12);
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.wa-float:hover { background: var(--wa-hover); color: #fff; transform: translateY(-1px); }
.wa-float svg { width: 22px; height: 22px; }
.action-bar { display: none; }
@media (max-width: 767px) {
  .wa-float { display: none; }
  body { padding-bottom: 64px; }
  .action-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1fr 1.25fr;
    background: #fff; border-top: 1px solid var(--line-2); padding-bottom: env(safe-area-inset-bottom);
  }
  .action-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; font-weight: 660; font-size: .9375rem; text-decoration: none; color: var(--ink); }
  .action-bar a + a { border-left: 1px solid var(--line); }
  .action-bar svg { width: 20px; height: 20px; }
  .action-bar .ab-wa svg { color: var(--wa); }
  .action-bar .ab-survey { background: var(--action); color: #fff; }
  .action-bar .ab-survey:hover { color: #fff; background: var(--action-hover); }
}

/* ---------- 24b. Services hub rows ---------- */
.svc-group { display: grid; gap: var(--s-5) clamp(32px, 5vw, 80px); padding-block: var(--s-7); border-top: var(--rule-strong); }
.svc-group:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 1024px) { .svc-group { grid-template-columns: 3fr 9fr; } }
.svc-group > header h2 { font-size: var(--fs-h3); }
.svc-group > header p { font-size: var(--fs-small); color: var(--ink-2); margin-top: var(--s-2); }
.svc-row { display: grid; gap: var(--s-3) var(--s-6); padding: var(--s-5) 0; border-bottom: var(--rule); }
.svc-row:first-child { padding-top: 0; }
@media (min-width: 860px) { .svc-row { grid-template-columns: 44px 5fr 4fr; } }
.svc-row .sym { width: 36px; height: 36px; }
.svc-row h3 { font-size: 1.25rem; }
.svc-row h3 a { text-decoration: none; }
.svc-row h3 a:hover { text-decoration: underline; }
.svc-row p { font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.svc-row .svc-kit { font-size: var(--fs-small); }
.svc-row .svc-kit strong { display: block; font-size: var(--fs-micro); font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
.svc-row .svc-kit .mono { font-size: 13px; }
.svc-row .link-arrow { margin-top: var(--s-3); font-size: var(--fs-small); }

/* Text-first comparison table */
.spec--text td:first-child, .spec--text th[scope="row"] { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 650; color: var(--ink); white-space: normal; }
.spec--text thead th { color: var(--ink); font-size: var(--fs-small); font-weight: 680; font-stretch: 90%; }
.spec--text th[scope="row"] { width: 22%; }
.spec td.mono-cell { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
@media (max-width: 699px) {
  .spec--stack thead { display: none; }
  .spec--stack, .spec--stack tbody, .spec--stack tr, .spec--stack th, .spec--stack td { display: block; width: auto !important; }
  .spec--stack tr { padding: var(--s-3) 0; border-bottom: var(--rule-strong); }
  .spec--stack th[scope="row"], .spec--stack td:first-child { border: 0; padding: 0 0 var(--s-2); font-size: 1rem; }
  .spec--stack td { display: grid; grid-template-columns: 8.5em 1fr; gap: var(--s-3); padding: 6px 0; border-bottom: var(--rule); }
  .spec--stack td::before { content: attr(data-label); font-weight: 600; color: var(--ink); font-family: var(--font-sans); }
  .spec--stack td:last-child { border-bottom: 0; }
}

/* Compact process strip */
.steps-mini { display: grid; gap: 0; border-top: var(--rule-strong); border-bottom: var(--rule); list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .steps-mini { grid-template-columns: repeat(5, 1fr); } }
.steps-mini li { padding: var(--s-4) var(--s-4) var(--s-4) 0; font-size: var(--fs-small); color: var(--ink-2); }
@media (max-width: 899px) { .steps-mini li + li { border-top: var(--rule); } }
@media (min-width: 900px) { .steps-mini li + li { padding-left: var(--s-4); border-left: var(--rule); } }
.steps-mini strong { display: block; color: var(--ink); font-weight: 660; font-stretch: 92%; font-size: 1rem; margin-bottom: 2px; }

/* Diagram figure (door elevation, rack elevation) */
.diagram { margin: 0; border: var(--rule-strong); background: #fff; padding: var(--s-4); }
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { margin-top: var(--s-3); padding-top: var(--s-3); border-top: var(--rule); font-size: var(--fs-micro); color: var(--ink-3); }
.parts { list-style: none; padding: 0; margin: 0; border-top: var(--rule-strong); }
.parts li { display: grid; grid-template-columns: 52px 1fr; gap: var(--s-3); padding: var(--s-3) 0; border-bottom: var(--rule); font-size: var(--fs-small); color: var(--ink-2); }
.parts li strong { display: block; color: var(--ink); font-weight: 650; font-size: 1rem; }
.parts .code { margin-top: 2px; }

/* Blog */
.post-list { list-style: none; padding: 0; margin: 0; border-top: var(--rule-strong); }
.post-list li { border-bottom: var(--rule); }
.post-list a { display: grid; gap: var(--s-2) var(--s-6); padding: var(--s-5) 0; text-decoration: none; color: var(--ink); transition: background-color var(--t-fast) var(--ease); }
@media (min-width: 860px) { .post-list a { grid-template-columns: 170px 1fr 24px; } }
.post-list a:hover { background: var(--paper-2); }
.post-list a:hover strong { color: var(--action); }
.post-list time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); padding-top: 4px; }
.post-list strong { display: block; font-size: 1.25rem; font-weight: 680; font-stretch: 88%; line-height: 1.3; }
.post-list p { font-size: var(--fs-small); color: var(--ink-2); margin-top: 6px; }
.post-list .cat { display: block; font-size: var(--fs-micro); color: var(--ink-3); margin-top: 8px; }
/* Blog list with featured image thumbnails */
.post-list__thumb { display: block; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--paper-2); border: 1px solid var(--line-2); }
.post-list__thumb picture, .post-list__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 860px) {
  .post-list a.has-thumb { grid-template-columns: 220px 1fr 24px; grid-template-rows: auto 1fr; align-items: start; }
  .post-list a.has-thumb .post-list__thumb { grid-column: 1; grid-row: 1 / span 2; }
  .post-list a.has-thumb time { grid-column: 2; grid-row: 1; padding-top: 0; }
  .post-list a.has-thumb > span:not(.post-list__thumb) { grid-column: 2; grid-row: 2; }
  .post-list a.has-thumb > svg { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
.post-list svg { width: 18px; height: 18px; margin-top: 6px; color: var(--ink-3); }
.article-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: var(--fs-small); color: var(--ink-3); }
.article-meta time { font-family: var(--font-mono); font-size: 13px; }
.prose table { font-size: var(--fs-small); border-top: var(--rule-strong); }
.prose th, .prose td { text-align: left; vertical-align: top; padding: var(--s-3) var(--s-4) var(--s-3) 0; border-bottom: var(--rule); }
.prose thead th { font-size: var(--fs-micro); color: var(--ink-3); font-weight: 600; }
.prose .note { margin-top: 1.5em; }
@media (max-width: 699px) { .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } .prose th, .prose td { min-width: 8em; } }

/* Industry sections */
.premises + .premises { border-top: var(--rule); }

/* ---------- 25. Misc page parts ---------- */
.map-frame { border: var(--rule-strong); aspect-ratio: 4 / 3; width: 100%; height: auto; background: var(--paper-2); }
.big-404 { font-size: clamp(5rem, 3rem + 10vw, 11rem); font-weight: 780; font-stretch: 70%; line-height: .9; letter-spacing: -0.02em; color: var(--line); }
.toc { border-top: var(--rule-strong); font-size: var(--fs-small); }
.toc a { display: block; padding: 10px 0; border-bottom: var(--rule); text-decoration: none; }
.toc a:hover { color: var(--action); }
@media (min-width: 1024px) { .sticky-col { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; } }
.compare th[scope="col"] { font-family: var(--font-sans); }
.updated { font-size: var(--fs-micro); color: var(--ink-3); }

/* ---------- 26. Site kit page only ---------- */
.kit-swatches { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.swatch { border: var(--rule); font-size: var(--fs-micro); }
.swatch__chip { height: 88px; border-bottom: var(--rule); }
.swatch__meta { padding: var(--s-3); display: grid; gap: 2px; }
.swatch__meta strong { font-size: var(--fs-small); font-weight: 650; }
.swatch__meta code { color: var(--ink-3); font-size: 12px; }
.kit-row { display: grid; gap: var(--s-5); padding: var(--s-6) 0; border-top: var(--rule); }
@media (min-width: 960px) { .kit-row { grid-template-columns: 3fr 9fr; } }
.kit-row > h3 { font-size: var(--fs-h4); }
.kit-row > div > .meta { margin-bottom: var(--s-4); }
.type-spec { display: grid; gap: var(--s-4); }
.type-spec > div { display: grid; gap: var(--s-2); padding-bottom: var(--s-4); border-bottom: var(--rule); }
@media (min-width: 860px) { .type-spec > div { grid-template-columns: 180px 1fr; align-items: baseline; } }
.type-spec code { font-size: 12px; color: var(--ink-3); }
.dodont { display: grid; gap: var(--s-5); }
@media (min-width: 860px) { .dodont { grid-template-columns: 1fr 1fr; } }
.dodont > div { border-top: var(--rule-strong); padding-top: var(--s-4); }
.dodont h4 { margin-bottom: var(--s-3); }
.dodont .no li::before { border: 0; width: 10px; height: 1.5px; background: var(--error); transform: none; top: .8em; }
.space-demo { display: flex; align-items: flex-end; gap: var(--s-3); flex-wrap: wrap; }
.space-demo div { background: var(--action-tint); border: 1px solid var(--action); }
.space-demo span { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: 4px; text-align: center; }
.kit-nav { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); padding: var(--s-4) 0; border-top: var(--rule); border-bottom: var(--rule); }
.kit-nav a { text-decoration: none; font-weight: 580; }

/* ---------- 27. Motion preferences + print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .utility, .site-header, .wa-float, .action-bar, .cta-band, .site-footer .footer-top { display: none !important; }
  body { padding: 0; }
  a { text-decoration: underline; }
}
