:root {
  --night: oklch(17% 0.022 258);
  --night-2: oklch(21% 0.026 258);
  --night-3: oklch(26% 0.03 258);
  --on-night: oklch(97% 0.005 250);
  --on-night-2: oklch(80% 0.016 255);
  --line-night: oklch(100% 0 0 / 0.13);

  --paper: oklch(97.8% 0.004 250);
  --paper-2: oklch(94.6% 0.008 250);
  --ink: oklch(20% 0.022 258);
  --ink-2: oklch(43% 0.02 258);
  --line: oklch(20% 0.022 258 / 0.14);

  --mech: oklch(70% 0.145 245);
  --elec: oklch(84% 0.15 88);
  --plumb: oklch(77% 0.14 168);
  --fire: oklch(69% 0.185 28);
  --civil: oklch(64% 0.03 258);
  --accent: oklch(52% 0.18 257);

  --pad: clamp(1.125rem, 4.5vw, 4rem);
  --r-lg: clamp(1.25rem, 2.4vw, 2rem);
  --r-md: 0.875rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --display: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
  --text: 'Red Hat Text', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--night-3) var(--night); background: var(--night); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--accent);
}
::selection { background: var(--elec); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p, ul, ol, dl, dd, fieldset, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
[id] { scroll-margin-top: 6rem; }

h1, h2, h3, .mail, .sector-list dt {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.032em; text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.3vw, 5.125rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 3.7vw, 3.375rem); line-height: 1.06; max-width: 18ch; }

.skip {
  position: fixed; left: 1rem; top: -5rem; z-index: 30;
  background: var(--on-night); color: var(--ink); padding: 0.75rem 1rem; border-radius: 999px; font-weight: 600;
}
.skip:focus { top: 1rem; }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  padding: 0.9375rem 1.5rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  background: var(--on-night); color: var(--ink);
  font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.15s var(--ease);
}
.btn svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s var(--ease); }
.btn:hover { background: var(--elec); }
.btn:hover svg { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn-small { padding: 0.625rem 1.125rem; font-size: 0.9375rem; }
.btn-ghost { background: transparent; color: var(--on-night); border-color: var(--line-night); }
.btn-ghost:hover { background: oklch(100% 0 0 / 0.08); border-color: oklch(100% 0 0 / 0.3); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn:disabled svg { animation: nudge 0.9s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateX(6px); } }

.text-link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; text-decoration-color: oklch(100% 0 0 / 0.35); transition: text-decoration-color 0.2s; }
.text-link:hover { text-decoration-color: var(--elec); }

.dot { display: inline-block; flex: none; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--c, currentColor); }
.d-civil, [data-sys="civil"] { --c: var(--civil); }
.d-mech, [data-sys="mech"] { --c: var(--mech); }
.d-elec, [data-sys="elec"] { --c: var(--elec); }
.d-plumb, [data-sys="plumb"] { --c: var(--plumb); }
.d-fire, [data-sys="fire"] { --c: var(--fire); }

/* ---------- navigation ---------- */
.nav {
  position: fixed; z-index: 20; top: 0.875rem; left: 50%; transform: translateX(-50%);
  width: min(72rem, calc(100% - 1.5rem));
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.125rem; border-radius: 999px;
  background: oklch(19% 0.024 258 / 0.78); color: var(--on-night);
  border: 1px solid var(--line-night);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px -12px oklch(10% 0.03 258 / 0.5);
}
.nav :focus-visible, .hero :focus-visible, .delivery :focus-visible, .viewer :focus-visible, .contact :focus-visible, .foot :focus-visible { outline-color: var(--elec); }
.brand { display: inline-flex; align-items: center; gap: 0.625rem; text-decoration: none; }
.defs { position: absolute; }
.brand svg, .brand img { display: block; height: 2.125rem; width: auto; fill: currentColor; }
.lost .brand img { height: 3rem; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  padding: 0.5rem 0.875rem; border-radius: 999px; font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  color: var(--on-night-2); transition: background-color 0.2s, color 0.2s;
}
.nav-links a:hover { background: oklch(100% 0 0 / 0.09); color: var(--on-night); }

/* ---------- hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 10fr) minmax(0, 11fr); align-items: center;
  column-gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(6.5rem, 11vw, 9rem) var(--pad) 0;
  background: var(--night); color: var(--on-night);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(52% 58% at 74% 46%, oklch(40% 0.11 255 / 0.5), transparent 72%),
    radial-gradient(40% 40% at 8% 100%, oklch(38% 0.08 168 / 0.22), transparent 70%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(oklch(100% 0 0 / 0.045) 1px, transparent 1px), linear-gradient(90deg, oklch(100% 0 0 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, black, transparent 78%); mask-image: radial-gradient(70% 70% at 70% 45%, black, transparent 78%);
}
.lede { margin-top: 1.5rem; max-width: 36ch; font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.5; color: var(--on-night-2); }
.hero-actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-stage { margin-right: calc(var(--pad) * -0.5); }
.model { width: 100%; height: auto; overflow: visible; }
.hero-stage .model { filter: drop-shadow(0 40px 50px oklch(8% 0.03 258 / 0.55)); }
.key { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem 0.5rem; margin-top: -1rem; padding-right: calc(var(--pad) * 0.5); }
.key a {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4375rem 0.8125rem; border-radius: 999px;
  font-size: 0.9375rem; font-weight: 500; text-decoration: none; color: var(--on-night-2);
  border: 1px solid var(--line-night); transition: background-color 0.2s, color 0.2s;
}
.key a:hover { background: oklch(100% 0 0 / 0.08); color: var(--on-night); }

.licence {
  grid-column: 1 / -1; margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: start;
  padding: 1.75rem 0 2.25rem; border-top: 1px solid var(--line-night);
}
.licence h2 { font-size: 1.125rem; line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; max-width: 20ch; }
.licence dl { display: grid; grid-template-columns: 1.1fr 0.7fr 2.2fr; gap: 1rem 1.5rem; }
.licence dt { font-size: 0.875rem; color: var(--on-night-2); }
.licence dd { margin-top: 0.125rem; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -0.01em; }

/* ---------- model drawing ---------- */
.model polygon, .model path, .model circle { vector-effect: non-scaling-stroke; }
.slab polygon { stroke: oklch(100% 0 0 / 0.16); stroke-width: 1; stroke-linejoin: round; }
.slab .t { fill: oklch(27% 0.035 258); }
.slab .a { fill: oklch(21% 0.03 258); }
.slab .b { fill: oklch(15% 0.024 258); }
.grid { fill: none; stroke: oklch(100% 0 0 / 0.08); stroke-width: 1; }
.col polygon { fill: oklch(100% 0 0 / 0.07); stroke: oklch(100% 0 0 / 0.3); stroke-width: 1; stroke-linejoin: round; }
.col-front polygon { fill: oklch(100% 0 0 / 0.025); stroke: oklch(100% 0 0 / 0.22); stroke-dasharray: 4 4; }
.soffit { fill: none; stroke: oklch(100% 0 0 / 0.24); stroke-width: 1; stroke-dasharray: 4 5; }

.sh { transition: opacity 0.6s var(--ease); }
.sh polygon { fill: oklch(8% 0.02 258 / 0.38); stroke: none; }
.sh path { fill: none; stroke: oklch(8% 0.02 258 / 0.38); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.sh path.thin { stroke-width: 3.5; }
.sys { transition: opacity 0.6s var(--ease), filter 0.6s var(--ease); }
.sys .bx polygon { stroke: color-mix(in oklch, var(--c), black 45%); stroke-width: 0.75; stroke-linejoin: round; }
.sys .t { fill: color-mix(in oklch, var(--c), white 22%); }
.sys .a { fill: color-mix(in oklch, var(--c), black 12%); }
.sys .b { fill: color-mix(in oklch, var(--c), black 38%); }
.sys .diffuser .t { fill: color-mix(in oklch, var(--c), white 55%); }
.pipe { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.pipe.thin { stroke-width: 3.5; }
.pipe-hi { fill: none; stroke: oklch(100% 0 0 / 0.4); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; transform: translate(-1px, -1.5px); }
.flow { fill: none; stroke: oklch(100% 0 0 / 0.85); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 2 30; opacity: 0; }
.drop { fill: none; stroke: var(--c); stroke-width: 2; }
.head { fill: var(--night); stroke: var(--c); stroke-width: 2; }
.conduit { fill: none; stroke: color-mix(in oklch, var(--c), black 20%); stroke-width: 2; stroke-linejoin: round; }
.lamp { fill: none; stroke: color-mix(in oklch, var(--c), white 55%); stroke-width: 7; stroke-linecap: round; }
.rung { fill: none; stroke: color-mix(in oklch, var(--c), black 40%); stroke-width: 1; }

.viewer[data-show="civil"] .sys,
.viewer[data-show="mech"] .sys:not([data-sys="mech"]),
.viewer[data-show="elec"] .sys:not([data-sys="elec"]),
.viewer[data-show="plumb"] .sys:not([data-sys="plumb"]),
.viewer[data-show="fire"] .sys:not([data-sys="fire"]) { opacity: 0.13; filter: grayscale(1); }
.viewer[data-show="civil"] .sh,
.viewer[data-show="mech"] .sh:not([data-sys="mech"]),
.viewer[data-show="elec"] .sh:not([data-sys="elec"]),
.viewer[data-show="plumb"] .sh:not([data-sys="plumb"]),
.viewer[data-show="fire"] .sh:not([data-sys="fire"]) { opacity: 0; }

.structure polygon, .structure path { transition: fill 0.6s var(--ease), stroke 0.6s var(--ease); }
.viewer[data-show="civil"] .slab .t { fill: oklch(52% 0.03 258); }
.viewer[data-show="civil"] .slab .a { fill: oklch(40% 0.03 258); }
.viewer[data-show="civil"] .slab .b { fill: oklch(31% 0.028 258); }
.viewer[data-show="civil"] .grid { stroke: oklch(100% 0 0 / 0.22); }
.viewer[data-show="civil"] .col polygon { fill: oklch(86% 0.012 258 / 0.55); stroke: oklch(100% 0 0 / 0.85); }
.viewer[data-show="civil"] .col-front polygon { fill: oklch(86% 0.012 258 / 0.22); stroke: oklch(100% 0 0 / 0.6); }
.viewer[data-show="civil"] .soffit { stroke: oklch(100% 0 0 / 0.6); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .flow { opacity: 1; animation: flow 1.5s linear infinite; }
  .hero .sys { animation: lower 1.1s var(--ease) backwards; }
  .hero .sys[data-sys="fire"] { animation-delay: 0.15s; }
  .hero .sys[data-sys="mech"] { animation-delay: 0.4s; }
  .hero .sys[data-sys="elec"] { animation-delay: 0.65s; }
  .hero .sys[data-sys="plumb"] { animation-delay: 0.9s; }
  .hero .sys .pipe, .hero .sys .pipe-hi { stroke-dasharray: 1; animation: route 1.4s var(--ease) backwards; animation-delay: inherit; }
  .hero-copy > * { animation: rise 0.9s var(--ease) backwards; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .settled .hero .sys, .settled .hero .sys .pipe, .settled .hero .sys .pipe-hi, .settled .hero-copy > * { animation: none; }
  @keyframes lower { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: none; } }
  @keyframes route { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes flow { to { stroke-dashoffset: -32; } }
}

/* ---------- shared section head ---------- */
.section-head {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1.25rem clamp(1.5rem, 5vw, 5rem);
  align-items: end; padding: clamp(4.5rem, 9vw, 8rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
}
.section-head p { max-width: 52ch; color: var(--ink-2); font-size: 1.125rem; }

/* ---------- systems ---------- */
.sys-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(1.5rem, 5vw, 5rem);
  align-items: start; padding: 0 var(--pad) clamp(3rem, 6vw, 5rem);
}
.sys-block { padding: clamp(2.5rem, 7vh, 4.5rem) 0; border-top: 1px solid var(--line); }
.sys-block h3 { display: flex; align-items: center; gap: 0.875rem; font-size: clamp(1.75rem, 2.9vw, 2.75rem); line-height: 1.05; }
.sys-block h3 .dot { width: 0.875rem; height: 0.875rem; box-shadow: 0 0 0 0 var(--c); transition: box-shadow 0.5s var(--ease); }
.sys-block.is-active h3 .dot { box-shadow: 0 0 0 6px color-mix(in oklch, var(--c), transparent 72%); }
.sys-block > p { margin-top: 1rem; max-width: 38ch; font-size: 1.125rem; color: var(--ink-2); }
.scope { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
.scope li { padding: 0.75rem 0; font-weight: 500; font-size: 1rem; line-height: 1.35; border-top: 1px solid var(--line); }

.viewer {
  position: sticky; top: 5.5rem;
  padding: clamp(1rem, 2vw, 1.5rem); border-radius: var(--r-lg);
  background: radial-gradient(70% 60% at 55% 45%, oklch(30% 0.07 255 / 0.7), transparent 75%), var(--night);
  color: var(--on-night);
  box-shadow: 0 30px 60px -30px oklch(17% 0.04 258 / 0.55);
}
.tabs { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.tab {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.875rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-night); background: transparent; color: var(--on-night-2);
  font: inherit; font-size: 0.9375rem; font-weight: 500; line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tab:hover { background: oklch(100% 0 0 / 0.08); color: var(--on-night); }
.tab.is-on { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
.tab.is-on .dot { box-shadow: 0 0 0 1px oklch(20% 0.02 258 / 0.35); }
.viewer .model { margin: -0.5rem 0 -1rem; }
.viewer-note { min-height: 3.2em; padding: 0 0.25rem; color: var(--on-night-2); font-size: 1rem; line-height: 1.5; max-width: 54ch; }

/* ---------- delivery ---------- */
.delivery {
  margin: clamp(1rem, 3vw, 2.5rem) clamp(0.5rem, 1.5vw, 1.25rem) 0; border-radius: var(--r-lg);
  background: var(--night); color: var(--on-night); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.delivery .section-head { padding-top: clamp(3.5rem, 7vw, 6rem); }
.delivery .section-head p { color: var(--on-night-2); }
.run { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); padding: 0 var(--pad); }
.run li { counter-increment: step; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--line-night); }
.run li::before {
  content: counter(step, decimal-leading-zero); display: block; margin-bottom: 2rem;
  font-family: var(--display); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0.02em; color: var(--elec);
}
.run h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); line-height: 1.15; letter-spacing: -0.022em; }
.run p { margin-top: 0.625rem; max-width: 36ch; color: var(--on-night-2); }

/* ---------- sectors ---------- */
.sector-list { padding: 0 var(--pad) clamp(4rem, 8vw, 7rem); }
.sector-list > div {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 0.375rem clamp(1.5rem, 5vw, 5rem);
  align-items: baseline; padding: 1.5rem 0; border-top: 1px solid var(--line);
}
.sector-list > div:last-child { border-bottom: 1px solid var(--line); }
.sector-list dt { font-weight: 500; font-size: clamp(1.375rem, 2.5vw, 2.25rem); line-height: 1.1; transition: transform 0.45s var(--ease), color 0.3s; }
.sector-list > div:hover dt { transform: translateX(0.75rem); color: var(--accent); }
.sector-list dd { color: var(--ink-2); max-width: 46ch; }

/* ---------- handover ---------- */
.handover {
  margin: 0 clamp(0.5rem, 1.5vw, 1.25rem) clamp(1rem, 3vw, 2.5rem); border-radius: var(--r-lg);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem clamp(1.5rem, 5vw, 5rem);
  align-items: start; padding: clamp(3rem, 6vw, 5.5rem) calc(var(--pad) - clamp(0.5rem, 1.5vw, 1.25rem)); background: var(--paper-2);
}
.handover-copy p { margin-top: 1.25rem; max-width: 42ch; color: var(--ink-2); font-size: 1.125rem; }
.pack li {
  display: flex; align-items: center; gap: 1rem; padding: 1.125rem 0;
  font-family: var(--display); font-weight: 500; letter-spacing: -0.018em; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.25;
  border-top: 1px solid var(--line);
}
.pack li:last-child { border-bottom: 1px solid var(--line); }
.pack svg { flex: none; width: 1.875rem; height: 1.875rem; padding: 0.375rem; border-radius: 50%; background: var(--ink); fill: none; stroke: var(--plumb); stroke-width: 2.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- contact ---------- */
.contact {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(1.5rem, 5vw, 5rem);
  align-items: start; padding: clamp(4.5rem, 9vw, 8rem) var(--pad) clamp(3rem, 6vw, 5rem);
  background: var(--night); color: var(--on-night); border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.contact-info > p { margin-top: 1.25rem; max-width: 40ch; color: var(--on-night-2); font-size: 1.125rem; }
.mail {
  display: inline-block; margin-top: 2.25rem; font-size: clamp(1.375rem, 2.3vw, 2rem); line-height: 1.2; overflow-wrap: anywhere;
  text-decoration: underline; text-decoration-color: var(--elec); text-decoration-thickness: 2px; text-underline-offset: 8px;
  transition: color 0.2s;
}
.mail:hover { color: var(--elec); }
.wa {
  display: flex; align-items: center; gap: 0.625rem; width: fit-content; margin-top: 1.25rem;
  font-weight: 600; font-size: 1.125rem; text-decoration: underline; text-decoration-color: var(--plumb);
  text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color 0.2s;
}
.wa svg { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: var(--plumb); stroke-width: 1.8; stroke-linejoin: round; }
.wa:hover { color: var(--plumb); }
.contact address { margin: 2.25rem 0 1rem; line-height: 1.65; color: var(--on-night-2); }

.enquiry {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 1rem;
  padding: clamp(1.25rem, 3vw, 2.5rem); border-radius: var(--r-lg);
  background: var(--night-2); border: 1px solid var(--line-night);
  caret-color: var(--elec);
}
.field { display: flex; flex-direction: column; gap: 0.4375rem; }
.field-wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 500; font-size: 0.9375rem; }
.field legend { margin-bottom: 0.5rem; }
.field label span, .field legend span { font-weight: 400; color: var(--on-night-2); }
.enquiry input:not([type="checkbox"]), .enquiry select, .enquiry textarea {
  width: 100%; padding: 0.8125rem 0.9375rem; border-radius: var(--r-md);
  border: 1px solid oklch(100% 0 0 / 0.2); background: var(--night); color: var(--on-night);
  font: inherit; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.enquiry select {
  appearance: none; -webkit-appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c3c9d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; background-size: 1.125rem;
}
.enquiry textarea { resize: vertical; min-height: 7.5rem; }
.enquiry input:not([type="checkbox"]):hover, .enquiry select:hover, .enquiry textarea:hover { border-color: oklch(100% 0 0 / 0.38); }
.enquiry input:not([type="checkbox"]):focus-visible, .enquiry select:focus-visible, .enquiry textarea:focus-visible {
  outline: none; border-color: var(--elec); box-shadow: 0 0 0 3px color-mix(in oklch, var(--elec), transparent 72%);
}
.enquiry input[aria-invalid="true"], .enquiry textarea[aria-invalid="true"] { border-color: var(--fire); }
.err { color: oklch(80% 0.13 28); font-size: 0.9375rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.check { position: relative; cursor: pointer; }
.check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check span {
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5625rem 1rem; border-radius: 999px; font-weight: 500;
  border: 1px solid oklch(100% 0 0 / 0.2); transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.check span::before { content: ''; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--c); transition: background-color 0.2s; }
.c-civil { --c: oklch(82% 0.02 258); } .c-mech { --c: var(--mech); } .c-elec { --c: var(--elec); }
.c-plumb { --c: var(--plumb); } .c-fire { --c: var(--fire); }
.check:hover span { border-color: oklch(100% 0 0 / 0.4); }
.check input:checked + span { background: var(--c); border-color: var(--c); color: var(--ink); font-weight: 600; }
.check input:checked + span::before { background: var(--ink); }
.check input:focus-visible + span { outline: 2px solid var(--elec); outline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.5rem; }
.hint { flex: 1 1 16rem; max-width: 36ch; font-size: 0.9375rem; color: var(--on-night-2); }
.form-status { padding: 1rem 1.125rem; border-radius: var(--r-md); font-weight: 500; line-height: 1.45; }
.form-status.is-ok { background: var(--plumb); color: var(--ink); }
.form-status.is-error { background: oklch(28% 0.06 28); color: oklch(93% 0.03 28); border: 1px solid var(--fire); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */
.foot { background: var(--night); color: var(--on-night); padding: 0 var(--pad); overflow: hidden; }
.foot-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  padding: 1.75rem 0; border-top: 1px solid var(--line-night); font-size: 0.9375rem;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.foot a { text-decoration: none; color: var(--on-night-2); transition: color 0.2s; }
.foot a:hover { color: var(--on-night); }
.foot-row p { color: var(--on-night-2); }
.foot-word { display: block; width: 100%; height: auto; margin: clamp(1.5rem, 4vw, 3.5rem) 0 clamp(1.5rem, 4vw, 3.5rem); fill: none; stroke: oklch(100% 0 0 / 0.2); stroke-width: 1; overflow: visible; }
.foot-word use { vector-effect: non-scaling-stroke; }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: 1.5rem; padding: var(--pad); background: var(--night); color: var(--on-night); }
.lost h1 { max-width: 14ch; }
.lost p { max-width: 40ch; color: var(--on-night-2); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .licence { grid-template-columns: minmax(0, 1fr); }
  .licence h2 { max-width: none; }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { margin: 1.5rem calc(var(--pad) * -0.6) 0; }
  .key { padding: 0 var(--pad); }
  .section-head, .sys-layout, .handover, .contact, .sector-list > div { grid-template-columns: minmax(0, 1fr); }
  .section-head { align-items: start; }
  .viewer { position: static; order: -1; }
  .sys-block { padding: 2.25rem 0; }
  .run { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .licence dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .licence dl > div:last-child { grid-column: 1 / -1; }
  .scope, .enquiry, .run { grid-template-columns: minmax(0, 1fr); }
  .run li { padding-bottom: 1.75rem; }
  .run li::before { margin-bottom: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}
