/* Licensed under Spatial Sites key SS-094-6FA4ZL. Redistribution prohibited. https://spatialsites.co/licence */
/* WAE Power, on the Earthed kit. One ground at night (the hero, the board, the form and the ending), one in daylight
   paper (what Dan does, the work, the areas, the reviews). WAE orange is the only accent: the call to action, the
   active state, and the current in the wires. The token names below are the kit's; the values are the brand's. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --night: #0e0e10;
  --night-2: #17171a;
  --night-line: rgba(251, 248, 242, 0.14);
  --plaster: #f5f1ea;
  --plaster-2: #ebe5da;
  --ink: #121212;
  --muted: #5a5a5e;
  --muted-light: #aaa9ad;
  --line: rgba(18, 18, 18, 0.14);
  --paper: #fbf8f2;
  --brass: #fc8202; /* WAE Power's own orange, sampled from their logo (Drive, 5 Nov 2026) */
  --brass-deep: #a8500a;
  --current: #ffb36b;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --text: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --out: cubic-bezier(0.16, 1, 0.3, 1);
  --inout: cubic-bezier(0.65, 0, 0.35, 1);
  --t-hero: clamp(2.6rem, min(4.5vw, 8.4svh), 6.8rem);
  --t-h2: clamp(2.2rem, 4.6vw, 5.2rem);
  --t-h3: clamp(1.45rem, 2.3vw, 2.25rem);
  --t-body: 1.125rem;
  --t-small: 0.9375rem;
  --t-label: 0.75rem;
  --margin: clamp(16px, 4.2vw, 72px);
  --gutter: clamp(16px, 2vw, 32px);
  --bar: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--bar); }
/* Sideways overflow is clipped, never hidden: hidden makes the body a scroll container in an iPhone web view, and the
   pinned panels below then ride away with the page there. */
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 var(--t-body)/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
img, canvas { display: block; max-width: 100%; }
::selection { background: var(--brass); color: var(--ink); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 50; background: var(--brass); color: var(--ink); padding: 10px 14px; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 var(--margin); }
.ground-light { background: var(--plaster); color: var(--ink); position: relative; }
/* Plaster grain over the light ground, at a strength nobody notices until it is gone. */
.ground-light::before { content: ""; position: absolute; inset: 0; background: url("img/plaster.webp") center / 640px auto repeat; opacity: 0.35; mix-blend-mode: multiply; pointer-events: none; }
.ground-light > * { position: relative; }
.ground-dark { background: var(--night-2); color: var(--paper); position: relative; }
.ground-night { background: var(--night); color: var(--paper); position: relative; }

/* Type */
.kicker, .index, .field-k, .hero-hint, .slot-k, .send-k, .wall-step, .charge-label, .tag-k {
  font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
}
.index { display: flex; gap: 0.9em; align-items: baseline; margin: 0 0 1.4rem; color: var(--muted); }
.index span { color: var(--brass-deep); }
.ground-dark .index, .ground-night .index { color: var(--muted-light); }
.ground-dark .index span, .ground-night .index span { color: var(--brass); }
.h2 { font: 700 var(--t-h2)/0.92 var(--display); letter-spacing: -0.035em; margin: 0; text-wrap: balance; max-width: 15ch; }
.lede { font-size: 1.1875rem; line-height: 1.55; max-width: 52ch; margin: 1.6rem 0 0; text-wrap: pretty; color: var(--muted); }
.ground-dark .lede, .ground-night .lede { color: var(--muted-light); }
.chapter-head { padding-top: clamp(96px, 17vh, 200px); margin-bottom: clamp(48px, 8vh, 96px); }

/* Lines arrive from behind a mask, one after another (assets/app.js splits [data-lines] into lines). */
.line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.line > span { display: inline-block; transform: translateY(105%); transition: transform 0.9s var(--out); transition-delay: calc(var(--i, 0) * 80ms); }
.is-in .line > span, .line.is-in > span { transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--out), transform 0.8s var(--out); transition-delay: 160ms; }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Links and buttons */
.link { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.3s var(--out); padding-bottom: 2px; }
.link:hover, .link:focus-visible { background-size: 100% 1px; }
.link-light { color: var(--paper); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 22px; border-radius: 3px; text-decoration: none; font: 600 0.9375rem/1 var(--text); letter-spacing: 0.01em; border: 1px solid transparent; transition: background-color 0.2s, color 0.2s, transform 0.2s var(--out), border-color 0.2s; cursor: pointer; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--current); }
.btn-ghost { background: transparent; color: var(--paper); border-color: rgba(251, 248, 242, 0.5); }
.btn-ghost:hover { border-color: var(--paper); }
.btn:active { transform: translateY(1px); }

/* The bar */
.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--bar); display: flex; align-items: center; gap: 28px; padding: 0 var(--margin); color: var(--paper); transition: background-color 0.3s, color 0.3s, box-shadow 0.3s; }
.bar.is-light { background: rgba(242, 237, 229, 0.88); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.bar.is-dark { background: rgba(10, 14, 26, 0.72); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.mark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
/* The client's own logo (assets/brand/wae-logo.svg): its white parts take the bar's colour, the orange stays. */
.mark-sym { width: auto; height: 34px; flex: none; }
.mark-word { width: auto; height: 19px; flex: none; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: var(--t-small); }
.bar-cta { min-height: 44px; padding: 0 16px; }

/* The hero: the house at night */
.hero { position: relative; min-height: 100vh; min-height: 100svh; background: var(--night); color: var(--paper); overflow: hidden; overflow: clip; isolation: isolate; }
.scene { position: absolute; inset: 0; }
/* The ground the house stands on: the bottom of the night, so the sky's last light sits behind the street. */
.scene::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%; z-index: -1; background: linear-gradient(0deg, #08090d 0, #0b0c12 66%, rgba(11, 12, 18, 0.55) 80%, rgba(11, 12, 18, 0) 100%); pointer-events: none; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }
.street { position: absolute; left: -10%; width: 120%; max-width: none; bottom: 6%; z-index: -2; opacity: 0.7; filter: saturate(0.8) brightness(0.85); }
.house { position: absolute; right: 2.5vw; bottom: 2.5vh; width: min(60vw, (100svh - 110px) * 1.5); aspect-ratio: 1536 / 1024; z-index: 1; }
.house-img, .house-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.js .house-lit-static { display: none; }
.house-lit-static { opacity: 1; }
.rooms { position: absolute; inset: 0; }
.room { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 2px; }
.room:focus-visible { outline-offset: -3px; }
.rooms:not(.is-live) .room { pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; min-width: 190px; max-width: 260px; padding: 12px 14px; background: rgba(14, 14, 16, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(255, 179, 107, 0.4); border-radius: 3px; opacity: 0; transform: translate(-50%, calc(-100% - 10px)) translateY(6px); transition: opacity 0.2s, transform 0.3s var(--out); }
.tag.is-on { opacity: 1; transform: translate(-50%, calc(-100% - 10px)); }
.tag-name { font: 700 1.05rem/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 6px; }
.tag ul { list-style: none; margin: 0; padding: 0; font: 500 0.6875rem/1.7 var(--mono); letter-spacing: 0.06em; color: var(--current); }
.garden { position: absolute; left: -4vw; bottom: -1px; width: 38vw; aspect-ratio: 800 / 282; z-index: 2; background: url("img/garden.webp") 0 100% / 200% auto no-repeat; filter: blur(1px) brightness(0.72); pointer-events: none; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent 96%); mask-image: linear-gradient(90deg, #000 62%, transparent 96%); }
.glow { position: absolute; width: 7%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(255, 214, 140, 0.95) 0 8%, rgba(255, 190, 100, 0.45) 22%, rgba(255, 170, 80, 0) 70%); opacity: 0; transition: opacity 0.6s var(--out); mix-blend-mode: screen; }
.glow:nth-of-type(1) { left: 68.5%; top: 7%; }
.glow:nth-of-type(2) { display: none; }
.garden.is-lit .glow { opacity: 1; }

.hero-copy { position: relative; z-index: 4; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--bar) + 4vh) var(--margin) 10vh; width: calc(37vw + var(--margin)); }
.kicker { margin: 0 0 1.4rem; color: var(--muted-light); }
.hero-h { font: 700 var(--t-hero)/0.9 var(--display); letter-spacing: -0.04em; margin: 0; text-wrap: balance; }
.hero-lead { margin: 1.5rem 0 0; max-width: 34ch; color: #c9cbd3; font-size: 1.125rem; line-height: 1.5; text-wrap: pretty; }
.mains-row { display: flex; align-items: center; gap: 28px; margin-top: clamp(24px, 5vh, 48px); flex-wrap: wrap; }
.hero-ctas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mains { display: flex; align-items: center; gap: 18px; background: none; border: 0; padding: 0; cursor: pointer; color: var(--paper); text-align: left; -webkit-tap-highlight-color: transparent; }
.mains-plate { position: relative; width: clamp(104px, 10.5vw, 156px); aspect-ratio: 1; border-radius: 10px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.55)); transition: transform 0.2s var(--out); }
.mains:active .mains-plate { transform: scale(0.97); }
.mains-plate img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.12s linear; }
.mains-on { opacity: 0; }
.mains[aria-pressed="true"] .mains-on { opacity: 1; }
.mains[aria-pressed="true"] .mains-off { opacity: 0; }
/* The rocker's brass catches the light when the house comes on. */
.mains-plate::after { content: ""; position: absolute; left: 37%; right: 37%; top: 28%; bottom: 28%; border-radius: 4px; background: radial-gradient(ellipse at 50% 40%, rgba(255, 190, 120, 0.6), rgba(255, 170, 90, 0) 70%); opacity: 0; transition: opacity 0.5s var(--out); mix-blend-mode: screen; }
.mains[aria-pressed="true"] .mains-plate::after { opacity: 1; }
.mains-label { font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.mains-label::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.mains:hover .mains-label, .mains:focus-visible .mains-label { color: var(--current); }
.hero-hint { margin: 1.5rem 0 0; color: var(--muted-light); }
.js .hero-hint { opacity: 0; transition: opacity 0.6s; }
.js .hero-hint.is-in { opacity: 1; }

/* It has happened: the orange strip under the hero */
.now { background: var(--brass); color: var(--ink); padding: clamp(28px, 4vh, 44px) 0; }
.now-grid { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); align-items: start; }
.now h2 { font: 700 var(--t-h3)/1.05 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 14ch; text-wrap: balance; }
.now ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); counter-reset: now; }
.now li { counter-increment: now; display: grid; grid-template-columns: 2rem 1fr; gap: 10px; font-size: var(--t-small); line-height: 1.45; text-wrap: pretty; }
.now li::before { content: counter(now, decimal-leading-zero); font: 500 var(--t-label)/1.7 var(--mono); letter-spacing: 0.14em; }
.now a { font-weight: 600; }

/* 01 Services */
.svc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-bottom: clamp(96px, 17vh, 200px); }
.svc-list { grid-column: 1 / span 7; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-item { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0 var(--gutter); padding: 30px 0 28px; cursor: default; }
.svc-n { font: 500 var(--t-label)/2.6 var(--mono); letter-spacing: 0.14em; color: var(--muted); transition: color 0.2s; }
.svc-t { font: 700 var(--t-h3)/1 var(--display); letter-spacing: -0.03em; margin: 0; transition: transform 0.4s var(--out); }
.svc-p { grid-column: 2; margin: 0.8rem 0 0; max-width: 48ch; color: var(--muted); text-wrap: pretty; }
.svc-item.is-on .svc-n { color: var(--brass-deep); }
.svc-item.is-on .svc-t { transform: translateX(10px); }
.svc-thumb { display: none; }
.svc-panel { grid-column: 9 / span 4; position: relative; }
.svc-stage { position: sticky; top: calc(50vh - min(17vw, 260px)); width: 100%; aspect-ratio: 1; }
.svc-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: translateY(24px) rotate(-3deg) scale(0.96); transition: opacity 0.5s var(--out), transform 0.9s var(--out); filter: drop-shadow(0 30px 40px rgba(22, 24, 29, 0.22)); }
.svc-stage img.is-on { opacity: 1; transform: none; }

/* 02 The fuse board */
.board { padding-bottom: clamp(96px, 17vh, 200px); }
.board-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px var(--gutter); align-items: start; }
.cu { grid-column: 1 / span 7; position: relative; aspect-ratio: 1536 / 1024; }
.cu-canvas { width: 100%; height: 100%; }
.cu-hits { position: absolute; inset: 0; }
.cu-hit { position: absolute; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 3px; }
.cu-hit:hover { background: rgba(255, 179, 107, 0.14); }
.cu-label { position: absolute; display: flex; align-items: center; justify-content: center; font: 500 clamp(0.6875rem, 1vw, 1rem)/1 var(--mono); color: #3b3f47; pointer-events: none; }
.mini { grid-column: 8 / span 5; padding-top: 4%; }
.mini-house { position: relative; aspect-ratio: 1536 / 1024; }
.mini-img, .mini-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mini-says { margin: 18px 0 0; min-height: 3.2em; color: var(--muted-light); font-size: var(--t-small); max-width: 36ch; }
.mini-says strong { color: var(--paper); font-weight: 600; }
.circuits { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--gutter); border-top: 1px solid var(--night-line); }
.circuits li { border-bottom: 1px solid var(--night-line); }
.circuit { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px 0; min-height: 52px; background: none; border: 0; cursor: pointer; text-align: left; color: var(--paper); }
.circuit-n { font: 500 var(--t-label)/1 var(--mono); color: var(--muted-light); width: 1.6em; }
.circuit-name { flex: 1; font-size: var(--t-small); line-height: 1.25; }
.circuit-a { font: 500 var(--t-label)/1 var(--mono); color: var(--muted-light); }
.circuit-dot { width: 9px; height: 9px; border-radius: 50%; background: #3ec27a; box-shadow: 0 0 0 3px rgba(62, 194, 122, 0.18); transition: background-color 0.2s, box-shadow 0.2s; }
.circuit[aria-pressed="false"] .circuit-dot { background: #5a5a5e; box-shadow: none; }
.circuit[aria-pressed="false"] .circuit-name { color: var(--muted-light); }
.circuit:hover .circuit-name { color: var(--current); }

/* 03 The work */
.proc { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); padding-bottom: clamp(96px, 17vh, 200px); }
.proc-stage { grid-column: 6 / span 7; grid-row: 1; }
.wall { position: sticky; top: calc(var(--bar) + 6vh); aspect-ratio: 1448 / 1086; border-radius: 4px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(22, 24, 29, 0.45); }
.wall > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.7s var(--inout); }
.wall > img.on { opacity: 1; }
.wall-step { position: absolute; left: 16px; top: 14px; margin: 0; padding: 7px 10px; background: rgba(242, 237, 229, 0.9); border-radius: 2px; color: var(--ink); }
.tester { position: absolute; right: 3%; bottom: -6%; width: 38%; transform: translateY(120%) rotate(8deg); transition: transform 0.9s var(--out); filter: drop-shadow(0 26px 30px rgba(22, 24, 29, 0.35)); }
.tester.is-in { transform: translateY(0) rotate(0deg); }
.tester img { width: 100%; }
.lcd { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 6%; color: #1c2a1c; font: 500 clamp(0.42rem, 0.62vw, 0.7rem)/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.lcd span { display: flex; justify-content: space-between; opacity: 0.18; transition: opacity 0.2s; }
.lcd span.is-done { opacity: 1; }
.lcd b { font-weight: 500; }
.steps { grid-column: 1 / span 4; grid-row: 1; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step { min-height: 62vh; padding-top: 6vh; color: var(--muted); transition: color 0.4s; }
.step:last-child { min-height: 70vh; }
.step-n { font: 500 var(--t-label)/1 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
.step-t { font: 700 var(--t-h3)/1.05 var(--display); letter-spacing: -0.03em; margin: 14px 0 12px; color: var(--ink); opacity: 0.3; transition: opacity 0.4s; }
.step p { margin: 0; max-width: 38ch; text-wrap: pretty; }
.step.is-on .step-t { opacity: 1; }
.step.is-on .step-n { color: var(--brass-deep); }
.step.is-on { color: var(--ink); }

/* 04 Areas */
.areas { padding-bottom: clamp(96px, 16vh, 180px); overflow: hidden; overflow: clip; }
.road { position: relative; height: clamp(300px, 34vw, 480px); }
.towns { list-style: none; margin: 0; padding: 0 var(--margin); position: absolute; left: 0; right: 0; top: calc(78% - 6px); display: flex; justify-content: space-between; gap: 12px; }
.town { font: 700 clamp(1rem, 1.8vw, 1.6rem)/1 var(--display); letter-spacing: -0.02em; color: rgba(22, 24, 29, 0.24); transition: color 0.4s; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.town::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--plaster); border: 2px solid currentColor; transition: background-color 0.4s, box-shadow 0.4s; }
.town.is-on { color: var(--ink); }
.town.is-on::before { background: var(--brass); border-color: var(--brass); box-shadow: 0 0 0 6px rgba(240, 127, 26, 0.2); }
.van { position: absolute; left: 0; bottom: calc(22% - 0.5%); width: clamp(220px, 28vw, 460px); aspect-ratio: 1200 / 800; will-change: transform; margin-bottom: calc(clamp(220px, 28vw, 460px) * -0.11); }
.van img { width: 100%; height: 100%; }
.van-name { position: absolute; left: 9.8%; top: 23.2%; width: 22.7%; height: 14.8%; display: flex; align-items: center; justify-content: center; gap: 6%; font: 800 clamp(0.7rem, 1.9vw, 1.9rem)/1 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.van-name { gap: 5%; }
.van-sym { height: 80%; width: auto; flex: none; }
.van-word { width: 64%; height: auto; flex: none; }
.kerb { position: absolute; left: 0; right: 0; top: 78%; height: 2px; background: rgba(22, 24, 29, 0.18); }

/* 05 Reviews */
.proof { padding-bottom: clamp(96px, 16vh, 180px); }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.slot { margin: 0; border: 1px solid var(--line); border-left: 3px solid var(--brass); border-radius: 4px; padding: 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; background: rgba(251, 248, 242, 0.5); }
.slot-k { color: var(--brass-deep); font-style: normal; }
.slot p { margin: 0; color: var(--ink); font-size: 1.0625rem; line-height: 1.5; text-wrap: pretty; }

/* 06 Book */
.book { padding-bottom: clamp(96px, 16vh, 180px); }
.book-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gutter); }
.book .chapter-head { grid-column: 1 / span 5; }
.form { grid-column: 7 / span 6; padding-top: clamp(96px, 17vh, 200px); }
.chips { border: 0; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips legend { margin-bottom: 14px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--night-line); border-radius: 3px; font-size: var(--t-small); transition: background-color 0.2s, border-color 0.2s, color 0.2s; }
.chips input:hover + span { border-color: rgba(243, 238, 230, 0.4); }
.chips input:checked + span { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px var(--gutter); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field-k { color: var(--muted-light); }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--night-line); padding: 10px 0; min-height: 44px; color: var(--paper); border-radius: 0; transition: border-color 0.2s; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); }
.field input[type="file"] { padding: 8px 0; font-size: var(--t-small); color: var(--muted-light); cursor: pointer; }
.field input[type="file"]::file-selector-button { font: 600 var(--t-small)/1 var(--text); color: var(--paper); background: transparent; border: 1px solid var(--night-line); border-radius: 3px; padding: 9px 12px; margin-right: 12px; cursor: pointer; }
.send { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.send-switch { position: relative; width: 96px; aspect-ratio: 1; background: none; border: 0; padding: 0; cursor: pointer; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.5)); flex: none; }
.send-switch img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.12s linear; }
.send-on { opacity: 0; }
.send-switch.is-on .send-on { opacity: 1; }
.send-switch.is-on .send-off { opacity: 0; }
.send-switch:disabled { cursor: progress; }
.send-k { margin: 0; color: var(--paper); }
.send-msg { margin: 6px 0 0; color: var(--muted-light); font-size: var(--t-small); max-width: 40ch; }

/* The ending */
.ending { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6vh; padding: 14vh var(--margin) 10vh; text-align: center; overflow: hidden; overflow: clip; }
.ending-house { position: relative; width: min(820px, 90vw); aspect-ratio: 1536 / 1024; }
.ending-house img, .ending-house canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.ending-h { max-width: none; }
.ending-lede { margin: -2vh auto 0; text-align: center; }
.ending-ctas { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* The footer */
.foot { padding: 0 0 48px; overflow: hidden; overflow: clip; border-top: 1px solid var(--night-line); }
.foot-mark { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 40px); margin: 0; padding: 6vh var(--margin) 0; color: var(--paper); }
.foot-sym { height: clamp(88px, 15vw, 250px); width: auto; flex: none; }
.foot-words { display: grid; gap: clamp(8px, 1.4vw, 22px); flex: 1 1 auto; min-width: 0; max-width: 1100px; }
.foot-word, .foot-tag { display: block; height: auto; }
.foot-word { width: 100%; }
.foot-tag { width: 82%; margin-left: 4%; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); margin-top: 48px; font-size: var(--t-small); }
.foot-cols p { margin: 6px 0 0; }
.foot .fine { color: var(--muted-light); max-width: 34ch; }
.foot-fine { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; justify-content: space-between; gap: var(--gutter); flex-wrap: wrap; font-size: var(--t-small); }
.foot-fine .fine { max-width: 64ch; margin: 0; }
.foot-fine .credit { max-width: none; }
.foot-fine .credit a { color: var(--paper); }

/* Laptops and tablets on their side */
@media (max-width: 1180px) {
  .nav { display: none; }
  .bar-cta { margin-left: auto; }
  .svc-list { grid-column: 1 / span 7; }
  .svc-panel { grid-column: 8 / span 5; }
  .circuits { grid-template-columns: repeat(2, 1fr); }
}

/* Phones and tablets upright: one column, the house between the words and the switch. */
@media (max-width: 900px) {
  :root { --bar: 56px; --t-hero: clamp(2.5rem, 11vw, 4.4rem); }
  .bar { gap: 14px; }
  .mark { gap: 8px; }
  .mark-sym { height: 30px; }
  .mark-word { height: 15px; }
  .bar-cta { min-height: 44px; padding: 0 14px; font-size: 0.875rem; }
  .hero { display: grid; grid-template-columns: 100%; grid-template-areas: "kicker" "h" "lead" "scene" "mains"; align-content: start; }
  .scene { position: static; grid-area: scene; display: block; }
  .hero-copy { display: contents; }
  .hero-copy > .kicker { grid-area: kicker; }
  .hero-copy > .hero-h { grid-area: h; }
  .hero-copy > .hero-lead { grid-area: lead; }
  .hero-copy > * { padding-left: var(--margin); padding-right: var(--margin); position: relative; z-index: 4; }
  .kicker { margin: calc(var(--bar) + 22px) 0 12px; }
  .hero-h { margin: 0; }
  .hero-lead { margin: 12px 0 0; font-size: 1rem; }
  .house { position: relative; right: auto; bottom: auto; width: 100%; margin: 14px 0 0; }
  .street { bottom: auto; top: 46%; width: 210%; left: -55%; filter: saturate(0.8) brightness(0.85) blur(1px); }
  .garden { left: -20vw; bottom: 0; width: 120vw; z-index: 0; }
  .mains-row { grid-area: mains; margin: 0; padding-top: 6px; padding-bottom: 28px; gap: 18px; flex-direction: column; align-items: flex-start; }
  .mains-plate { width: 104px; }
  .hero-hint { display: none; }
  .tag { min-width: 170px; }
  .svc-list { grid-column: 1 / -1; }
  .svc-panel { display: none; }
  .svc-row { grid-template-columns: 1fr 96px; padding: 24px 0; }
  .svc-n { grid-column: 1; grid-row: 1; line-height: 1.4; }
  .svc-t { grid-column: 1; grid-row: 2; margin-top: 8px; }
  .svc-p { grid-column: 1 / -1; grid-row: 3; }
  .svc-thumb { display: block; grid-column: 2; grid-row: 1 / span 2; width: 96px; aspect-ratio: 1; object-fit: contain; align-self: center; }
  .svc-item.is-on .svc-t { transform: none; }
  .board-grid { gap: 28px; }
  .cu, .mini { grid-column: 1 / -1; }
  .mini { max-width: 520px; }
  .circuits { grid-template-columns: 1fr; }
  .proc-stage { grid-column: 1 / -1; position: sticky; top: var(--bar); z-index: 2; background: var(--plaster); padding: 10px 0 12px; }
  .wall { position: relative; top: auto; }
  .steps { grid-column: 1 / -1; grid-row: 2; }
  .step { min-height: 54vh; padding-top: 4vh; }
  .chapter-head { padding-top: 88px; margin-bottom: 40px; }
  .services, .board, .proof, .book, .areas { padding-bottom: 72px; }
  .road { height: calc(62vw * 0.6 + 128px); }
  .towns { top: calc(62vw * 0.6 + 14px); flex-wrap: wrap; justify-content: flex-start; gap: 16px 20px; }
  .town { flex-direction: row; gap: 8px; font-size: 1.05rem; }
  .kerb { top: calc(62vw * 0.6); }
  .van { width: 62vw; top: calc(62vw * 0.6 - 62vw * 0.557); bottom: auto; margin-bottom: 0; }
  .proc { padding-bottom: 64px; }
  .step:last-child { min-height: 46vh; }
  .slots { grid-template-columns: 1fr; }
  .slot { min-height: 150px; }
  .now-grid, .now ol { grid-template-columns: 1fr; gap: 18px; }
  .now h2 { max-width: none; }
  .book .chapter-head, .form { grid-column: 1 / -1; }
  .form { padding-top: 0; }
  .fields { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px var(--gutter); }
}

/* Upright, the sky keeps its own proportions across the top and fades into the night, rather than being blown up to
   cover a tall screen. */
@media (max-width: 900px) and (orientation: portrait) {
  .sky { inset: 0 auto auto -10%; width: 120%; max-width: none; height: auto; aspect-ratio: 1536 / 1024; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
}

/* A short window, as the in-app browsers give: keep the house and the switch in view. */
@media (max-width: 900px) and (max-height: 720px) {
  .hero-lead { display: none; }
  .kicker { margin-top: calc(var(--bar) + 12px); }
}

@media (prefers-reduced-motion: reduce) {
  .line > span, .js [data-reveal] { transition: none; transform: none; opacity: 1; }
  .svc-stage img, .tester, .wall > img { transition: none; }
}

/* 06 About WAE Power (5 Nov 2026): the company facts under the chapter head. */
.about { padding-bottom: clamp(80px, 13vh, 150px); }
.about-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px 40px; margin: 0; padding-top: 28px; border-top: 1px solid rgba(251, 248, 242, 0.18); }
.about-facts dt { color: var(--muted-light); }
.about-facts dd { margin: 0.5rem 0 0; font-size: 1.125rem; line-height: 1.45; color: var(--paper); }

/* Going live (11 Nov 2026): the form's anti-spam field and privacy line, the footer's legal links, and the
   privacy and cookie notices (privacy.html, cookies.html), set in the page's own tokens. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.send-note { margin: 18px 0 0; max-width: 52ch; color: var(--muted-light); font-size: var(--t-small); }
.foot-legal { display: flex; gap: 22px; }
.foot-legal .link { color: var(--paper); }

.legal-page .bar { background: rgba(10, 14, 26, 0.9); }
.legal { padding: calc(var(--bar) + clamp(48px, 9vh, 110px)) 0 clamp(80px, 12vh, 140px); }
.legal .wrap { max-width: 920px; }
.legal-h { font: 700 var(--t-h2)/0.95 var(--display); letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
.legal-date { margin: 1.1rem 0 0; color: var(--muted); font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.legal-lede { font-size: 1.1875rem; line-height: 1.55; margin: 2rem 0 0; max-width: 60ch; text-wrap: pretty; }
.legal h2 { font: 700 var(--t-h3)/1.05 var(--display); letter-spacing: -0.02em; margin: clamp(44px, 6vh, 64px) 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.legal h2 + * { margin-top: 1rem; }
.legal p, .legal li { max-width: 66ch; text-wrap: pretty; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 0.5rem; }
.legal .link { color: var(--brass-deep); background-size: 100% 1px; }
.legal .link:hover { color: var(--ink); }
.legal-table { width: 100%; border-collapse: collapse; margin-top: 1.2rem; font-size: var(--t-small); }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.legal-table th { font: 500 var(--t-label)/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .legal-table td { border: 0; padding: 2px 0; }
  .legal-table td:first-child { font-weight: 600; }
}
