/*
Theme Name: Royal Power
Theme URI: https://royalpower.co.za
Author: ADIB MARKETING
Author URI: https://adibmarketing.co.za
Description: Custom theme for Royal Power, South African solar PV and battery storage EPC (Kelvin, Sandton). The home page opens with the lights off and a wall switch to turn the site on; a lights switch in the header flips the whole site between light and dark. Interactive "a day on solar" energy-flow simulator with load shedding, savings calculator, credentials as a DB board, case-study projects (old URLs kept), three-step free feasibility form with bill uploads saved as Leads with statuses, contact form, styled WooCommerce backup-power shop with cart drawer, POPIA policy drafts, Elementor / Elementor Pro compatible, automatic page set-up on activation that keeps the old site's URLs.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 7.4
WC requires at least: 8.0
WC tested up to: 11.1
Update URI: false
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: royal-power
Tags: custom-logo, custom-menu, full-width-template, e-commerce, block-styles
*/

/* ==========================================================================
   1. Tokens
   The logo is pure black, so the palette is ink and white with greys
   derived from them; light itself is the accent. Contrast: muted #5E5E5E
   on white 6.3:1, on #F4F4F2 5.8:1; #A3A3A3 on ink 8.1:1.
   ========================================================================== */
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
}
@font-face {
	font-family: "Martian Mono";
	src: url("assets/fonts/martian-mono.woff2") format("woff2");
	font-weight: 100 800;
	font-stretch: 75% 112.5%;
	font-display: swap;
}

:root {
	--ink: #0A0A0A;
	--paper: #FFFFFF;
	--bg: #FFFFFF;
	--bg-soft: #F4F4F2;
	--card: #FFFFFF;
	--fg: #0A0A0A;
	--muted: #5E5E5E;
	--line: #E4E4E1;
	--line-2: #C9C9C6;
	--glow: rgba(255, 255, 255, .9);
	--shadow: 0 18px 50px -24px rgba(0, 0, 0, .28);

	--sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--fs-hero: clamp(2.7rem, 1.2rem + 6vw, 6.6rem);
	--fs-h1: clamp(2.3rem, 1.3rem + 3.8vw, 4.6rem);
	--fs-h2: clamp(1.9rem, 1.2rem + 2.5vw, 3.4rem);
	--fs-h3: clamp(1.15rem, 1.05rem + .45vw, 1.45rem);
	--fs-lead: clamp(1.08rem, 1rem + .35vw, 1.3rem);
	--fs-body: 1.0625rem;
	--fs-sm: .9375rem;
	--fs-xs: .8125rem;
	--fs-mono: .75rem;

	--wrap: 1280px;
	--gut: clamp(16px, 4vw, 40px);
	--sec: clamp(72px, 9vw, 140px);
	--hdr: 76px;
	--r: 2px;
	--ease: cubic-bezier(.2, .7, .2, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
}

/* Dark sections reuse the same names. */
.tone-ink,
.hdr-on-ink {
	--bg: #0A0A0A;
	--bg-soft: #141414;
	--card: #121212;
	--fg: #FFFFFF;
	--muted: #A3A3A3;
	--line: #262626;
	--line-2: #3C3C3C;
	--shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
}
.tone-ink { background: var(--bg); color: var(--fg); }
.tone-soft { background: var(--bg-soft); }

/* Lights off: the whole site goes dark (header switch, or the OS setting until chosen). */
:root[data-theme="dark"] {
	--bg: #0E0E0E;
	--bg-soft: #151515;
	--card: #141414;
	--fg: #F2F2F2;
	--muted: #A3A3A3;
	--line: #272727;
	--line-2: #3A3A3A;
	--shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
	color-scheme: dark;
}
:root[data-theme="dark"] .tone-ink { --bg: #000; --bg-soft: #0B0B0B; --card: #0D0D0D; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0E0E0E;
		--bg-soft: #151515;
		--card: #141414;
		--fg: #F2F2F2;
		--muted: #A3A3A3;
		--line: #272727;
		--line-2: #3A3A3A;
		--shadow: 0 18px 50px -20px rgba(0, 0, 0, .8);
		color-scheme: dark;
	}
	:root:not([data-theme="light"]) .tone-ink { --bg: #000; --bg-soft: #0B0B0B; --card: #0D0D0D; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 16px); }
html, body { overflow-x: clip; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--fg);
	font: 400 var(--fs-body)/1.6 var(--sans);
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}
img, svg, video { max-width: 100%; height: auto; display: block; }
img { border-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 760; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 span, h2 span { color: var(--muted); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd, figure { margin: 0; }
fieldset { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
legend { padding: 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
::selection { background: var(--fg); color: var(--bg); }
.mono { font-family: var(--mono); font-stretch: 87.5%; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.sr-only, .screen-reader-text { 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 { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--fg); color: var(--bg); padding: 12px 18px; font-weight: 700; text-decoration: none; transition: transform .2s; }
.skip:focus { transform: translateY(76px); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.prose-wrap { max-width: calc(820px + var(--gut) * 2); }
.sec { padding-block: var(--sec); position: relative; }
.main { display: block; min-height: 50vh; }
body.hdr-solid .main { padding-top: var(--hdr); }

.i { width: 22px; height: 22px; flex: none; }

/* ==========================================================================
   3. Components
   ========================================================================== */

/* Buttons: a flash of current runs across on hover. */
.btn {
	--b: var(--fg);
	--t: var(--bg);
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6em;
	min-height: 52px;
	padding: 0 1.45em;
	border: 1.5px solid var(--b);
	border-radius: var(--r);
	background: var(--b);
	color: var(--t);
	font-weight: 650;
	font-stretch: 108%;
	font-size: .97rem;
	letter-spacing: .005em;
	line-height: 1.15;
	text-align: center;
	text-decoration: none;
	transition: background-color .25s, color .25s, border-color .25s;
}
.btn::before {
	content: "";
	position: absolute;
	inset: -2px auto -2px 0;
	width: 45%;
	z-index: -1;
	background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--t) 28%, transparent), transparent);
	transform: translateX(-120%) skewX(-18deg);
}
.btn:hover::before { transform: translateX(330%) skewX(-18deg); transition: transform .75s var(--ease-io); }
.btn:hover { background: color-mix(in srgb, var(--b) 84%, var(--t)); }
.btn .i { width: 19px; height: 19px; }
.btn--line { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--line::before { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fg) 14%, transparent), transparent); }
.btn--line:hover { background: transparent; border-color: var(--fg); }
.btn--block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }

.tlink { display: inline-flex; align-items: center; gap: .5em; font-weight: 650; font-stretch: 108%; text-decoration: none; border-bottom: 1.5px solid var(--line-2); padding-bottom: 3px; transition: border-color .25s; }
.tlink .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.tlink:hover { border-color: var(--fg); }
.tlink:hover .i { transform: translateX(4px); }

/* Section heading */
.shead { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.shead__t { font-size: var(--fs-h2); }
.shead__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 640px; margin: 0; }
.shead .tlink { justify-self: start; }

/* Rails: the logo's rules, with current running along them. */
.rails { position: relative; height: 3px; width: min(100%, 300px); background: var(--line-2); overflow: hidden; margin-bottom: 28px; }
.rails::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 70px; background: var(--fg); transform: translateX(-100%); animation: rp-run 3.4s var(--ease-io) 1.2s infinite; }
.rails--draw { transform-origin: 0 50%; animation: rp-draw 1s var(--ease) both; }
@keyframes rp-run { to { transform: translateX(520%); } }
@keyframes rp-draw { from { transform: scaleX(0); } }

/* The open ring (O of POWER) */
.ring { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: butt; overflow: visible; }
.ring__gap { opacity: 0; transition: opacity .3s; }

/* Segmented control */
.seg { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 3px; gap: 3px; }
.seg > button, .seg > label { position: relative; }
.seg > button, .seg > label > span { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); font-weight: 600; border-radius: 1px; transition: background-color .2s, color .2s; cursor: pointer; }
.seg .i { width: 18px; height: 18px; }
.seg > label > input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg > button[aria-checked="true"], .seg > label > input:checked + span { background: var(--fg); color: var(--bg); }
.seg > label > input:focus-visible + span { outline: 2px solid var(--fg); outline-offset: 2px; }
.seg--3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.seg--3 > label > span { justify-content: center; width: 100%; }

/* Switch toggle */
.toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: var(--fs-sm); font-weight: 600; }
.toggle__track { position: relative; width: 46px; height: 26px; border: 1.5px solid var(--line-2); border-radius: var(--r); transition: background-color .25s, border-color .25s; }
.toggle__thumb { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; background: var(--fg); border-radius: 1px; transition: transform .3s var(--ease); }
.toggle[aria-checked="true"] .toggle__track { background: var(--fg); border-color: var(--fg); }
.toggle[aria-checked="true"] .toggle__thumb { background: var(--bg); transform: translateX(20px); }

/* Range */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; margin: 0; }
.range::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(var(--fg), var(--fg)) 0 / var(--fill, 50%) 100% no-repeat, var(--line-2); }
.range::-moz-range-track { height: 3px; background: var(--line-2); }
.range::-moz-range-progress { height: 3px; background: var(--fg); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10.5px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fg); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 3px solid var(--fg); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--fg); }

/* Panel */
.panel { background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 44px); }
.panel__t { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-bottom: 10px; }
.panel__lead { color: var(--muted); }
.panel__lead a { font-weight: 600; }

/* Forms */
.form { display: grid; gap: 22px; margin-top: 24px; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 18px; }
.field { display: grid; gap: 8px; margin: 0; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field > label, .tiles > legend, .upload > label:first-child { font-size: var(--fs-sm); font-weight: 650; }
.req { color: var(--muted); }
.field__hint { font-size: var(--fs-xs); color: var(--muted); }
.field input, .field textarea, .field select {
	width: 100%;
	min-height: 52px;
	padding: 12px 14px;
	border: 1.5px solid var(--line-2);
	border-radius: var(--r);
	background: var(--card);
	color: var(--fg);
	transition: border-color .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--muted); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--fg); box-shadow: 0 0 0 1px var(--fg); }
.select { position: relative; display: block; }
.select select { -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; width: 18px; height: 18px; }
.field.is-err input, .field.is-err textarea, .field.is-err select, .tiles.is-err .tile__box, .consent.is-err .consent__box { border-color: var(--fg); border-width: 2px; }
.ferr { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 650; margin: 0; }
.ferr .i { width: 16px; height: 16px; }

.tiles > legend { margin-bottom: 10px; }
.tiles .field__hint { display: block; margin: -4px 0 10px; }
.tiles__row { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { position: relative; }
.tile input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.tile__box { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 16px; border: 1.5px solid var(--line-2); border-radius: var(--r); font-size: var(--fs-sm); font-weight: 550; transition: border-color .2s, background-color .2s, color .2s; cursor: pointer; }
.tile:hover .tile__box { border-color: var(--fg); }
.tile input:checked + .tile__box { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.tile input:focus-visible + .tile__box { outline: 2px solid var(--fg); outline-offset: 2px; }
.tile .i { width: 20px; height: 20px; }
.tiles--big .tiles__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tiles--big .tile { display: flex; }
.tiles--big .tile__box { height: 100%; }
.tiles--big .tile__box { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 28px; min-height: 140px; padding: 18px; font-size: 1.05rem; font-weight: 650; font-stretch: 108%; width: 100%; }
.tiles--big .i { width: 30px; height: 30px; }

.consent { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: var(--fs-sm); color: var(--muted); cursor: pointer; }
.consent input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.consent__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--line-2); border-radius: var(--r); margin-top: 1px; transition: background-color .2s, border-color .2s; }
.consent__box .i { width: 15px; height: 15px; opacity: 0; color: var(--bg); stroke-width: 2.4; }
.consent input:checked + .consent__box { background: var(--fg); border-color: var(--fg); }
.consent input:checked + .consent__box .i { opacity: 1; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--fg); outline-offset: 2px; }
.consent a { color: var(--fg); }

.form__msg { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--fg); font-weight: 550; }
.form__msg[hidden] { display: none; }
.form__msg .i { flex: none; margin-top: 2px; }
.form__msg.is-ok { background: var(--fg); color: var(--bg); }
.form__msg p { margin: 0; }
.form.is-busy [type="submit"] { pointer-events: none; opacity: .7; }
.form.is-busy [type="submit"] span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: rp-spin .7s linear infinite; }
@keyframes rp-spin { to { transform: rotate(360deg); } }

/* Upload */
.upload { display: grid; gap: 8px; }
.upload__drop { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 92px; padding: 18px; border: 1.5px solid var(--line-2); border-radius: var(--r); background: var(--bg-soft); color: var(--muted); font-weight: 550; text-align: center; cursor: pointer; transition: border-color .2s, color .2s; }
.upload__drop:hover, .upload.is-drag .upload__drop { border-color: var(--fg); color: var(--fg); }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload__input:focus-visible + .upload__list, .upload__input:focus-visible ~ .upload__drop { outline: 2px solid var(--fg); }
.upload__list { list-style: none; display: grid; gap: 6px; font-size: var(--fs-sm); }
.upload__list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); }
.upload__list .mono { color: var(--muted); font-size: var(--fs-mono); }

/* Empty states */
.empty-state { display: grid; justify-items: center; text-align: center; gap: 14px; padding: clamp(40px, 7vw, 90px) 0; max-width: 560px; margin-inline: auto; }
.empty-state h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.empty-state p { color: var(--muted); }
.empty-state__ring { width: 64px; height: 64px; stroke-width: 1.6; }
.empty-state .btns { justify-content: center; }
.sform { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; border-bottom: 1.5px solid var(--line-2); padding-bottom: 8px; }
.sform input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 48px; font-size: 1.05rem; }
.sform input:focus { outline: none; }
.sform:focus-within { border-color: var(--fg); }
.sform .btn { min-height: 44px; }

/* Reveal on scroll */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.hdr { position: fixed; inset: 0 0 auto; z-index: 60; height: var(--hdr); color: var(--fg); transition: transform .45s var(--ease); }
.hdr::before { content: ""; position: absolute; inset: 0; background: var(--bg); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .35s; }
body:not(.hdr-solid) .hdr:not(.is-solid) { --bg: #0A0A0A; --bg-soft: #141414; --card: #121212; --fg: #FFFFFF; --muted: #A3A3A3; --line: #262626; --line-2: rgba(255, 255, 255, .34); }
.hdr.is-solid::before, body.hdr-solid .hdr::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.nav-open .hdr { transform: none; }
.hdr__row { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: block; flex: none; color: var(--fg); }
.brand__svg, .brand__img { width: 148px; height: auto; }
.logo path { transition: transform .9s var(--ease), opacity .6s; transform-box: fill-box; }
.logo__rule-top, .logo__rule-bottom { transform-origin: 50% 50%; }

.nav { flex: 1; display: flex; justify-content: center; }
.nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav__list > li { position: relative; }
.nav__list > li > a, .nav__parent { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 13px; font-size: .95rem; font-weight: 560; text-decoration: none; color: var(--fg); position: relative; }
.nav__parent .i, .nav__sub-toggle .i { width: 16px; height: 16px; transition: transform .25s; }
.nav__list > li > a::after, .nav__parent::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 8px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav__list > li > a:hover::after, .nav__parent:hover::after, .nav__list > .current-menu-item > a::after, .nav__list > .current-menu-ancestor > .nav__parent::after, .nav__list > .current-menu-parent > a::after { transform: scaleX(1); }
.nav__sub-toggle { display: inline-grid; place-items: center; width: 28px; height: 44px; margin-left: -10px; }
.dd { position: absolute; top: calc(100% + 6px); left: 50%; width: 600px; transform: translate(-50%, 8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; background: var(--card); color: var(--fg); border: 1px solid var(--line); box-shadow: var(--shadow); padding: 10px; }
.menu-item-has-children:hover > .dd, .menu-item-has-children.is-open > .dd { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.menu-item-has-children.is-open > .nav__parent .i { transform: rotate(180deg); }
.dd .sub-menu { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.dd a { display: grid; gap: 6px; align-content: start; height: 100%; padding: 16px; text-decoration: none; border-radius: var(--r); transition: background-color .2s; }
.dd a:hover, .dd .current-menu-item > a { background: var(--bg-soft); }
.dd .i { width: 26px; height: 26px; margin-bottom: 10px; }
.dd__t { font-weight: 680; font-stretch: 108%; }
.dd__d { font-size: var(--fs-xs); color: var(--muted); line-height: 1.45; }
/* WordPress menus without our markup */
.nav__list .sub-menu:not(.dd .sub-menu) { list-style: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.nav__list li:hover > .sub-menu:not(.dd .sub-menu), .nav__list li.is-open > .sub-menu:not(.dd .sub-menu) { opacity: 1; visibility: visible; transition-delay: 0s; }
.nav__list .sub-menu:not(.dd .sub-menu) a { display: block; padding: 10px 12px; text-decoration: none; }
.nav__extra { display: none; }

.hdr__tools { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; font-family: var(--mono); font-stretch: 87.5%; font-size: .82rem; text-decoration: none; }
.hdr__phone .i { width: 18px; height: 18px; }
.hdr__tools .btn { min-height: 44px; padding: 0 1.1em; font-size: .9rem; }
.hbtn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; color: var(--fg); border-radius: var(--r); transition: background-color .2s; }
.hbtn:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.hbtn--menu { display: none; }
.burger { position: relative; width: 22px; height: 12px; }
.burger span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { bottom: 0; }
.nav-open .burger span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-5px) rotate(-45deg); }
.cart-count { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--fg); color: var(--bg); font: 700 11px/18px var(--sans); text-align: center; }
.cart-count:empty { display: none; }

/* Lights switch (site light / dark) */
.lights { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; }
.lights__plate { position: relative; width: 22px; height: 32px; border: 1.5px solid var(--line-2); border-radius: 3px; display: grid; place-items: center; transition: border-color .2s; }
.lights__rocker { width: 10px; height: 18px; border: 1.5px solid currentColor; border-radius: 1px; background: linear-gradient(currentColor 0 50%, transparent 50%); transition: background-position .25s; background-size: 100% 200%; background-position: 0 100%; }
.lights[aria-checked="false"] .lights__rocker { background-position: 0 0; background-image: linear-gradient(transparent 0 50%, currentColor 50%); }
.lights__label { font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.lights:hover .lights__plate { border-color: var(--fg); }

/* ==========================================================================
   5. Page heads
   ========================================================================== */
.phead { position: relative; padding: calc(var(--hdr) + clamp(56px, 9vw, 130px)) 0 clamp(56px, 7vw, 100px); overflow: hidden; }
.phead__media { position: absolute; inset: 0; }
.phead__media img { width: 100%; height: 100%; object-fit: cover; opacity: .62; filter: grayscale(.2); }
.phead__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .92) 0%, rgba(10, 10, 10, .7) 45%, rgba(10, 10, 10, .25) 100%), linear-gradient(0deg, rgba(10, 10, 10, .85), transparent 40%); }
.phead__in { position: relative; }
.phead__t { font-size: var(--fs-h1); max-width: 15ch; }
.phead__t span { display: block; }
.phead__lead { margin-top: 24px; font-size: var(--fs-lead); color: var(--muted); max-width: 640px; }
.phead--photo .phead__lead { color: #D2D2D2; }
.phead--slim { padding-bottom: 40px; }
.phead--slim .phead__t { font-size: var(--fs-h2); }
.phead--post .phead__t { max-width: 22ch; font-size: clamp(2rem, 1.3rem + 3vw, 3.8rem); }
.crumbs { margin-top: 28px; font-size: var(--fs-xs); color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--fg); }

/* ==========================================================================
   6. Home hero and the lights-off intro
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: end; padding: calc(var(--hdr) + 48px) 0 clamp(48px, 9vh, 110px); overflow: hidden; color: #fff; }
.hero__media, .hero__shade, .hero__dark, .hero__flash { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.04); transition: filter 1.6s var(--ease), transform 2.4s var(--ease); }
.hero__shade { background: linear-gradient(90deg, rgba(8, 8, 8, .82) 0%, rgba(8, 8, 8, .55) 42%, rgba(8, 8, 8, 0) 75%), linear-gradient(0deg, rgba(8, 8, 8, .7) 0%, transparent 45%); }
.hero__dark { background: #030303; opacity: 0; pointer-events: none; }
.hero__flash { background: #fff; opacity: 0; pointer-events: none; mix-blend-mode: soft-light; }
.hero__in { position: relative; z-index: 2; }
.hero__t { font-size: var(--fs-hero); font-stretch: 118%; font-weight: 800; line-height: .96; letter-spacing: -.035em; max-width: 11ch; color: #fff; transition: color 1s var(--ease); }
.hero__t span { display: block; }
.hero__l1 { color: #fff; transition: color 1s var(--ease); }
.hero__l2 { color: #BDBDBD; transition: color 1s var(--ease); }
.hero__lead { margin: 28px 0 34px; max-width: 560px; font-size: var(--fs-lead); color: #DADADA; transition: color 1s var(--ease); }
.hero__btns { transition: opacity .8s var(--ease); }
.hero .btn { --b: #fff; --t: #0A0A0A; }
.hero .btn--line { color: #fff; border-color: rgba(255, 255, 255, .45); }
.hero .btn--line:hover { border-color: #fff; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 44px; font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); letter-spacing: .04em; text-transform: uppercase; color: #C8C8C8; transition: opacity .8s; }
.hero__facts li { display: flex; align-items: center; }
.hero__facts li + li::before { content: ""; width: 1px; height: 14px; background: rgba(255, 255, 255, .35); margin: 0 14px; }

.hero__switch { position: absolute; z-index: 4; right: var(--gut); bottom: clamp(48px, 9vh, 110px); display: grid; justify-items: center; gap: 12px; transition: transform 1.1s var(--ease); }
@media (min-width: 1360px) { .hero__switch { right: calc((100vw - var(--wrap)) / 2); } }
.wall { display: block; border-radius: 12px; }
.wall:focus-visible { outline-color: #fff; outline-offset: 6px; }
.wall__plate { display: grid; justify-items: center; align-content: space-between; width: 76px; height: 120px; padding: 9px 0; background: #ECECE9; border-radius: 9px; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 14px 30px -12px rgba(0, 0, 0, .7); transition: filter 1s var(--ease), box-shadow 1s; }
.wall__screw { width: 7px; height: 7px; border-radius: 50%; background: #CFCFCB; box-shadow: inset 0 0 0 1px #B4B4B0; position: relative; }
.wall__screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 3px; height: 1px; background: #9D9D99; transform: rotate(35deg); }
.wall__well { width: 40px; height: 66px; padding: 3px; background: #D9D9D5; border-radius: 4px; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .25); perspective: 140px; }
.wall__rocker { position: relative; display: block; width: 100%; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #FAFAF8 0%, #E9E9E5 50%, #D6D6D2 100%); transform: rotateX(-14deg); transform-origin: 50% 50%; transition: transform .22s cubic-bezier(.22, 1, .36, 1), background .22s; box-shadow: 0 1px 0 rgba(0, 0, 0, .15); }
.wall[aria-checked="false"] .wall__rocker { transform: rotateX(14deg); background: linear-gradient(180deg, #D6D6D2 0%, #E9E9E5 50%, #FAFAF8 100%); }
.wall__neon { position: absolute; left: 50%; bottom: 7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #BDBDB8; transition: background-color .3s, box-shadow .3s; }
.wall[aria-checked="false"] .wall__neon { background: #FFF; box-shadow: 0 0 6px 2px rgba(255, 255, 255, .85), 0 0 22px 6px rgba(255, 255, 255, .25); }
.wall:hover .wall__plate { box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 18px 36px -12px rgba(0, 0, 0, .8); }
.hero__hint { margin: 0; font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #CFCFCF; white-space: nowrap; }
.hero__hint-off { display: none; }

/* Lights off (first visit to the home page) */
.is-off .hero__dark { opacity: .95; }
.is-off .hero__media img { filter: grayscale(1) brightness(.7); transform: scale(1.08); }
.is-off .hero__t, .is-off .hero__l1, .is-off .hero__l2 { color: #1D1D1D; }
.is-off .hero__lead { color: #1A1A1A; }
.is-off .hero__btns, .is-off .hero__facts { opacity: .07; }
.is-off .hero__switch { transform: translate(var(--sx, 0), var(--sy, 0)) scale(1.35); }
.is-off .wall__plate { filter: brightness(.16); box-shadow: none; }
.is-off .hero__hint { color: #8A8A8A; }
.is-off .hero__hint-off { display: inline; }
.is-off .hero__hint-on { display: none; }
.is-off .hdr { opacity: .16; }
.is-off .hdr .logo__rule-top, .is-off .hdr .logo__rule-bottom { transform: scaleX(0); }
.is-off .wa-float, .is-off .dock { opacity: 0; pointer-events: none; }
.hdr, .wa-float, .dock { transition: opacity .8s var(--ease) .5s, transform .45s var(--ease); }

/* Power-up: flicker, then the house lights come on */
.is-powering .hero__dark { animation: rp-flicker 1.15s steps(1, end) forwards; }
.is-powering .hero__flash { animation: rp-flash 1.15s linear forwards; }
@keyframes rp-flicker {
	0% { opacity: .95; } 9% { opacity: .35; } 13% { opacity: .92; } 22% { opacity: .18; } 27% { opacity: .8; }
	38% { opacity: .06; } 43% { opacity: .55; } 55% { opacity: 0; } 100% { opacity: 0; }
}
@keyframes rp-flash {
	0%, 8% { opacity: 0; } 9% { opacity: .5; } 12% { opacity: 0; } 22% { opacity: .65; } 26% { opacity: 0; } 38% { opacity: .8; } 44% { opacity: .1; } 56% { opacity: .55; } 100% { opacity: 0; }
}

/* ==========================================================================
   7. Home sections
   ========================================================================== */

/* Paths */
.paths__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.path { transition: opacity .4s var(--ease); }
.paths__list:hover .path:not(:hover) { opacity: .55; }
.path__a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; color: #fff; text-decoration: none; background: #111; }
.path__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.35) brightness(.85); }
.path__a:hover .path__media img { transform: scale(1.05); filter: none; }
.path__a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 8, 8, .88) 0%, rgba(8, 8, 8, .25) 55%, rgba(8, 8, 8, 0) 100%); }
.path__body { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: 10px; padding: clamp(20px, 2.4vw, 32px); }
.path__t { display: flex; align-items: center; gap: 12px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.05; }
.path__t .i { width: 28px; height: 28px; }
.path__d { color: #D0D0D0; font-size: var(--fs-sm); max-width: 32ch; }
.path__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 650; font-size: var(--fs-sm); }
.path__go .i { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.path__a:hover .path__go .i { transform: translateX(5px); }

/* Energy flow */
.flow__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end; margin-bottom: 36px; }
.flow__head .shead { margin-bottom: 0; }
.flow__ctrl { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: flex-end; }
.flow__stage { border: 1px solid var(--line); background: #0D0D0D; }
.flow__svg { width: 100%; height: auto; }
.flow__svg .sky { fill: #fff; fill-opacity: calc(.012 + var(--day, .5) * .07); transition: fill-opacity .6s; }
.flow__svg .sun-path { stroke: #232323; stroke-width: 1.5; }
.flow__svg .sun { transition: opacity .5s; }
.flow__svg .sun__disc { fill: #fff; }
.flow__svg .sun__halo { fill: #fff; opacity: .1; }
.flow__svg .ground { stroke: #3A3A3A; stroke-width: 2; }
.flow__svg .pylon { fill: none; stroke: #7A7A7A; stroke-width: 2.4; stroke-linejoin: round; }
.flow__svg .box { fill: #151515; stroke: #7A7A7A; stroke-width: 2; }
.flow__svg .bat__cap { fill: #7A7A7A; }
.flow__svg .bat__lvl { fill: #fff; opacity: .85; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.flow__svg .inv__led { fill: #3A3A3A; transition: fill .3s; }
.flow__svg .is-live .inv__led { fill: #fff; }
.flow__svg .inv__vent { stroke: #555; stroke-width: 2; }
.flow__svg .house-body { fill: #0D0D0D; }
.flow__svg .house { fill: none; stroke: #9A9A9A; stroke-width: 2.6; stroke-linejoin: round; }
.flow__svg .win { fill: #fff; fill-opacity: var(--lit, 0); stroke: #6A6A6A; stroke-width: 2; transition: fill-opacity .5s; }
.flow__svg .door { fill: #141414; stroke: #6A6A6A; stroke-width: 2; }
.flow__svg .panels rect { fill: #1B1B1B; stroke: #A5A5A5; stroke-width: 1.6; transition: fill .5s; }
.flow__svg .panels.is-gen rect { fill: #4A4A4A; }
.flow__svg .wire { fill: none; stroke: #2B2B2B; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.flow__svg .cur { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 15; opacity: 0; transition: opacity .3s; animation: rp-current var(--dur, 1s) linear infinite; }
.flow__svg .cur.is-on { opacity: 1; }
.flow__svg .cur.is-rev { animation-direction: reverse; }
@keyframes rp-current { to { stroke-dashoffset: -15.1; } }
.flow__svg .labels text { fill: #8E8E8E; font: 500 13px var(--mono); text-anchor: middle; letter-spacing: .04em; text-transform: uppercase; }
.flow__svg .shed-badge { opacity: 0; transition: opacity .3s; }
.flow__svg .shed-badge rect { fill: #fff; }
.flow__svg .shed-badge text { fill: #0A0A0A; font: 600 12px var(--mono); text-anchor: middle; }
.flow.is-shed .shed-badge { opacity: 1; }
.flow.is-shed .pylon { stroke: #333; }
.flow__time { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--line); }
.flow__play { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--line-2); border-radius: 50%; color: var(--fg); }
.flow__play:hover { border-color: var(--fg); }
.flow__play .i { width: 18px; height: 18px; }
.flow__play .i-pause, .flow.is-playing .flow__play .i-play { display: none; }
.flow.is-playing .flow__play .i-pause { display: block; }
.flow__clock { font-size: 1.1rem; min-width: 5ch; text-align: right; }
.readouts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; border: 1px solid var(--line); border-top: 0; }
.readout { padding: 18px 20px; display: grid; gap: 6px; }
.readout + .readout { border-left: 1px solid var(--line); }
.readout dt { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); color: var(--muted); }
.readout dt .i { width: 17px; height: 17px; }
.readout dd { display: grid; gap: 2px; }
.readout dd .mono { font-size: clamp(1.2rem, 1rem + .8vw, 1.7rem); font-weight: 500; }
.readout__s { font-size: var(--fs-xs); color: var(--muted); min-height: 1.2em; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; }
.step { position: relative; padding-top: 18px; color: var(--muted); font-size: var(--fs-sm); transition: color .4s; }
.step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--line-2); }
.step::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--fg); transform: scaleX(0); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.step.is-active { color: var(--fg); }
.step.is-active::after { transform: scaleX(1); }
.step__n { display: block; font-size: var(--fs-mono); margin-bottom: 10px; }

/* Calculator */
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.calc__form { display: grid; gap: 30px; }
.calc__f { display: grid; gap: 12px; }
.calc__f > legend, .calc__l { font-size: var(--fs-sm); font-weight: 650; margin-bottom: 12px; }
.calc__l { margin-bottom: 0; }
.calc__bill { margin: 0; font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; }
.calc__bill span { color: var(--muted); margin-right: .1em; }
.calc__scale { display: flex; justify-content: space-between; font-size: var(--fs-mono); color: var(--muted); }
.calc__note { margin-top: 28px; font-size: var(--fs-xs); color: var(--muted); max-width: 52ch; }
.calc__out { position: relative; overflow: hidden; }
.calc__media { aspect-ratio: 16 / 7; overflow: hidden; }
.calc__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.calc__panel { padding: clamp(22px, 3vw, 40px); display: grid; gap: 14px; }
.calc__k { margin: 0; font-size: var(--fs-xs); color: var(--muted); font-family: var(--mono); font-stretch: 87.5%; text-transform: uppercase; letter-spacing: .06em; }
.calc__save { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
.calc__save .mono { font-size: clamp(2.6rem, 1.8rem + 3vw, 4.4rem); font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.calc__save small { color: var(--muted); font-size: var(--fs-sm); }
.calc__ten { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.calc__ten strong { color: var(--fg); font-weight: 500; }
.calc__spec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 8px 0 10px; }
.calc__spec > div { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.calc__spec > div:nth-child(odd) { padding-right: 14px; }
.calc__spec > div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }
.calc__spec > div[hidden] { display: none; }
.calc__spec dt { font-size: var(--fs-xs); color: var(--muted); }
.calc__spec dd { font-size: 1.12rem; }
.calc .btn { --b: #fff; --t: #0A0A0A; }

/* Projects */
.pfeat { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 0; text-decoration: none; border: 1px solid var(--line); background: var(--card); }
.pfeat__media { overflow: hidden; background: #111; min-height: 100%; }
.pfeat__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; transition: transform 1s var(--ease); }
.pfeat:hover .pfeat__media img { transform: scale(1.04); }
.pfeat__body { display: grid; gap: 16px; align-content: center; padding: clamp(22px, 3.4vw, 48px); }
.pfeat__k, .pitem__k, .case-head__k { font-size: var(--fs-mono); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.pfeat__t { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem); font-weight: 760; font-stretch: 112%; letter-spacing: -.025em; line-height: 1.04; }
.pfeat__x { color: var(--muted); }
.pfeat .tlink { justify-self: start; }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.fig { display: grid; gap: 4px; padding: 14px 12px 14px 0; }
.fig + .fig { padding-left: 14px; border-left: 1px solid var(--line); }
.fig__l { font-size: var(--fs-xs); color: var(--muted); }
.fig__v { font-size: clamp(1.25rem, 1rem + .9vw, 1.8rem); font-weight: 500; line-height: 1.1; }
.fig__v small { font-size: .55em; color: var(--muted); }
.prows { list-style: none; margin-top: 14px; border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 120px minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) 44px; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background-color .25s; }
.prow:hover { background: var(--bg-soft); }
.prow__img { aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.prow__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); transition: filter .4s; }
.prow:hover .prow__img img { filter: none; }
.prow__name { display: grid; gap: 4px; }
.prow__t { font-weight: 700; font-stretch: 110%; font-size: 1.1rem; }
.prow__k { font-size: var(--fs-xs); color: var(--muted); }
.prow__fig { display: grid; gap: 2px; }
.prow__fig .mono { font-size: 1.05rem; }
.prow__fig small { color: var(--muted); }
.prow__go { justify-self: end; display: grid; place-items: center; width: 44px; height: 44px; }
.prow__go .i { transition: transform .3s var(--ease); }
.prow:hover .prow__go .i { transform: translateX(4px); }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 44px; margin-top: clamp(40px, 5vw, 64px); }
.logos__t { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.logos__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 48px; }
.logos__list img { height: 40px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .3s, opacity .3s; }
.logos__list img:hover { filter: none; opacity: 1; }
:root[data-theme="dark"] .logos__list img { filter: grayscale(1) brightness(1.8); }

/* DB board */
.board { position: relative; border: 1px solid var(--line-2); background: #111; padding: clamp(18px, 3vw, 36px); }
.board::before { content: ""; position: absolute; inset: 10px; border: 1px solid #1E1E1E; pointer-events: none; }
.board__rail { position: absolute; left: clamp(18px, 3vw, 36px); right: clamp(18px, 3vw, 36px); top: calc(clamp(18px, 3vw, 36px) + 62px); height: 26px; background: #2A2A2A; }
.board__row { position: relative; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 0; }
.brk { display: grid; align-content: start; gap: 22px; padding: 0 clamp(8px, 1.2vw, 16px); }
.brk + .brk { border-left: 1px solid #1E1E1E; }
.brk__mod { position: relative; justify-self: center; display: grid; justify-items: center; align-content: space-between; width: 82px; height: 150px; padding: 12px 0 10px; background: #EBEBE8; border-radius: 3px; color: #0A0A0A; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .1); transition: filter .3s; }
.brk__mod:hover { filter: brightness(1.06); }
.brk__mod:focus-visible { outline-color: #fff; outline-offset: 4px; }
.brk__led { width: 8px; height: 8px; border-radius: 50%; background: #9C9C98; transition: background-color .25s, box-shadow .25s; }
.brk__lever { position: relative; width: 24px; height: 52px; background: #1A1A1A; border-radius: 2px; overflow: hidden; }
.brk__toggle { position: absolute; left: 3px; right: 3px; height: 22px; top: 27px; background: #F7F7F5; border-radius: 1px; transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.brk__tag { font-size: 11px; font-stretch: 75%; line-height: 1.2; text-align: center; padding: 0 3px; letter-spacing: -.01em; }
.brk.is-on .brk__toggle { transform: translateY(-24px); }
.brk.is-on .brk__led { background: #fff; box-shadow: 0 0 0 1.5px #0A0A0A, 0 0 10px 3px rgba(255, 255, 255, .9); }
.brk__t { transition: text-decoration-color .3s; text-decoration: underline 2px transparent; text-underline-offset: 6px; }
.brk.is-on .brk__t { text-decoration-color: currentColor; }
.brk__t { font-size: 1.02rem; font-weight: 700; font-stretch: 108%; letter-spacing: -.01em; margin-bottom: 8px; }
.brk__info p { font-size: var(--fs-sm); color: var(--muted); }

/* Process wire */
.wire { list-style: none; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 28px; }
.wire::before, .wire::after { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: var(--line-2); }
.wire::after { background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); transition: transform .2s linear; }
.wire__step { position: relative; display: grid; gap: 10px; align-content: start; }
.wire__node { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); transition: background-color .4s, border-color .4s, color .4s; margin-bottom: 14px; }
.wire__step.is-lit .wire__node { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.wire__n { font-size: var(--fs-mono); color: var(--muted); }
.wire__t { font-size: var(--fs-h3); }
.wire__step p { color: var(--muted); font-size: var(--fs-sm); }

/* Funding */
.funding__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.funding__grid .shead { margin-bottom: 28px; }
.funding__list { list-style: none; border-top: 3px solid var(--fg); border-bottom: 3px solid var(--fg); }
.funding__list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 6px 16px; padding: 28px 0; }
.funding__list li + li { border-top: 1px solid var(--line-2); }
.funding__n { grid-row: span 2; font-size: var(--fs-mono); color: var(--muted); padding-top: 6px; }
.funding__list h3 { font-size: var(--fs-h3); }
.funding__list p { color: var(--muted); }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--hdr) + 24px); }
.faq__ask { color: var(--muted); }
.faq__ask a { color: var(--fg); font-weight: 650; }
.faq__list { border-top: 1px solid var(--line-2); }
.qa { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 24px; align-items: center; min-height: 72px; padding: 18px 0; cursor: pointer; font-weight: 650; font-stretch: 106%; font-size: 1.08rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa__ic { position: relative; flex: none; width: 18px; height: 18px; }
.qa__ic::before, .qa__ic::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.qa__ic::after { transform: rotate(90deg); }
.qa[open] .qa__ic::after { transform: rotate(0); }
.qa__a { padding: 0 48px 24px 0; color: var(--muted); }
.qa[open] .qa__a { animation: rp-fade .4s var(--ease); }
@keyframes rp-fade { from { opacity: 0; transform: translateY(-6px); } }

/* News */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.post-card { display: grid; gap: 18px; align-content: start; }
.post-card__img { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--bg-soft); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-card__img img { transform: scale(1.04); }
.post-card__ph { display: grid; place-items: center; height: 100%; color: var(--line-2); }
.post-card__ph .ring { width: 56px; height: 56px; stroke-width: 1.4; }
.post-card__body { display: grid; gap: 10px; }
.post-card__meta { margin: 0; font-size: var(--fs-mono); color: var(--muted); }
.post-card__t { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
.post-card__t a { text-decoration: none; }
.post-card__t a:hover { text-decoration: underline; }
.post-card__x { color: var(--muted); font-size: var(--fs-sm); }

/* Closing CTA */
.cta { position: relative; overflow: hidden; padding-block: clamp(96px, 13vw, 190px); }
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.cta__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 10, 10, .9) 0%, rgba(10, 10, 10, .55) 60%, rgba(10, 10, 10, .2) 100%); }
.cta__in { position: relative; }
.cta__t { font-size: var(--fs-h1); max-width: 16ch; }
.cta__t span { display: block; font-size: .5em; letter-spacing: -.015em; margin-top: .4em; color: #C9C9C9; }
.cta__lead { margin: 24px 0 34px; max-width: 520px; color: #CFCFCF; font-size: var(--fs-lead); }
.cta .btn { --b: #fff; --t: #0A0A0A; }
.cta .btn--line { color: #fff; border-color: rgba(255, 255, 255, .45); }

/* Shop band uses the WooCommerce cards (woo.css). */
.shopband .products { margin: 0; }

/* ==========================================================================
   8. Inner pages
   ========================================================================== */

/* Solution pages */
.solution-cta { border-top: 1px solid var(--line); }
.solution-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; padding-block: 26px; }
.solution-cta__in p { margin: 0; font-size: var(--fs-lead); font-weight: 600; font-stretch: 106%; max-width: 44ch; }
.solution-cta .btn { --b: #fff; --t: #0A0A0A; }
.solution-cta .btn--line { color: #fff; border-color: #444; }
.features .wrap { display: grid; gap: clamp(56px, 8vw, 120px); }
.feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.feature--flip .feature__media { order: 2; }
.feature__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: 16px; justify-items: start; max-width: 520px; }
.feature__n { margin: 0; font-size: var(--fs-mono); color: var(--muted); }
.feature__t { font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.6rem); }
.feature__body p { color: var(--muted); font-size: 1.08rem; }

/* Considerations */
.consider__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.approach { display: grid; gap: 22px; }
.approach__i { padding-top: 18px; border-top: 3px solid var(--fg); }
.approach__i h3, .ruled__i h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.approach__i p, .ruled__i p, .ruled__i dd { color: var(--muted); }
.ruled { list-style: none; border-top: 1px solid var(--line-2); }
.ruled__i { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line-2); }
.ruled--dl .ruled__i { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); }
.ruled--dl dt { font-weight: 700; font-stretch: 108%; }
.ruled__i .i { width: 28px; height: 28px; }

/* About */
.about-intro__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose--lead p { font-size: 1.1rem; color: var(--muted); }
.facts { border-top: 3px solid var(--fg); }
.facts > div { padding: 22px 0; border-bottom: 1px solid var(--line-2); display: grid; gap: 6px; }
.facts dt { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.facts dd { font-weight: 600; font-size: 1.05rem; }
.grid3 { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.grid3__i { padding: 28px 0; border-top: 1px solid var(--line-2); }
.grid3__i .i { width: 28px; height: 28px; margin-bottom: 18px; }
.grid3__i h3 { font-size: var(--fs-h3); margin-bottom: 8px; }
.grid3__i p { color: var(--muted); font-size: var(--fs-sm); }
.safety__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.safety__media { aspect-ratio: 4 / 5; overflow: hidden; }
.safety__media img { width: 100%; height: 100%; object-fit: cover; }
.ticks { list-style: none; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.ticks .i { width: 20px; height: 20px; margin-top: 2px; }
.systems { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.system { padding: 28px clamp(16px, 2vw, 28px) 28px 0; display: grid; gap: 14px; align-content: start; }
.system + .system { padding-left: clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); }
.system .i { width: 32px; height: 32px; }
.system h3 { font-size: var(--fs-h3); }
.system ul { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: var(--fs-sm); }
.sig__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.sig__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sig__img figcaption { margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.team__list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); transition: filter .5s; margin-bottom: 18px; }
.person:hover img { filter: none; }
.person h3 { font-size: var(--fs-h3); }
.person__role { margin: 6px 0 10px; font-size: var(--fs-mono); color: var(--muted); text-transform: uppercase; }
.person p:last-child { color: var(--muted); font-size: var(--fs-sm); }

/* Meters (project figures) */
.meters { border-top: 1px solid var(--line); }
.meters__row { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.meter { padding: clamp(22px, 3vw, 40px) clamp(14px, 2vw, 28px); display: grid; gap: 8px; }
.meter:first-child { padding-left: 0; }
.meter + .meter { border-left: 1px solid var(--line); }
.meter dt { font-size: var(--fs-xs); color: var(--muted); }
.meter dd { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.meter__v { font-family: var(--mono); font-stretch: 87.5%; font-size: clamp(1.8rem, 1.3rem + 2vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meter__u { color: var(--muted); font-size: var(--fs-sm); }

/* Projects list */
.plist .wrap { display: grid; gap: clamp(40px, 5vw, 72px); }
.pitem { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pitem:nth-child(even) .pitem__media { order: 2; }
.pitem__media { display: block; overflow: hidden; background: #111; }
.pitem__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 1s var(--ease); }
.pitem:hover .pitem__media img { transform: scale(1.03); }
.pitem__body { display: grid; gap: 14px; justify-items: start; }
.pitem__t { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); }
.pitem__t a { text-decoration: none; }
.pitem__body > p { color: var(--muted); }
.pitem .figs { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pitem .fig:nth-child(3) { padding-left: 0; border-left: 0; }
.pitem .fig:nth-child(n+3) { border-top: 1px solid var(--line); }

/* Case study */
.case-head { position: relative; padding: calc(var(--hdr) + clamp(64px, 10vw, 140px)) 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.case-head__media { position: absolute; inset: 0; }
.case-head__media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.case-head__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 10, 10, .95) 0%, rgba(10, 10, 10, .55) 60%, rgba(10, 10, 10, .4) 100%); }
.case-head__in { position: relative; }
.case-head__k { margin-bottom: 18px; color: #BDBDBD; }
.case-head .phead__t { max-width: 18ch; }
.case__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.case__intro { font-size: var(--fs-lead); margin-bottom: clamp(32px, 4vw, 56px); }
.case__sec { padding-top: 26px; border-top: 3px solid var(--fg); margin-bottom: clamp(32px, 4vw, 56px); }
.case__sec h2 { font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); margin-bottom: 18px; }
.case__list { display: grid; gap: 18px; }
.case__list dt { font-weight: 700; font-stretch: 106%; margin-bottom: 4px; }
.case__list dd { color: var(--muted); }
.case__side { position: sticky; top: calc(var(--hdr) + 24px); display: grid; gap: 16px; }
.spec { border: 1px solid var(--line); padding: 22px; }
.spec__t { font-size: 1.1rem; margin-bottom: 14px; }
.spec dl > div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.spec dt { font-family: var(--mono); font-stretch: 87.5%; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.spec dd { font-size: var(--fs-sm); }
.spec--cta { display: grid; gap: 12px; border: 0; }
.spec--cta p { color: var(--muted); font-size: var(--fs-sm); }
.spec--cta .btn { --b: #fff; --t: #0A0A0A; }
.spec__ring { width: 34px; height: 34px; }

/* Survey + contact */
.survey__grid, .contact__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.progress { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 20px 0 6px; }
.progress li { padding-top: 12px; border-top: 3px solid var(--line-2); font-size: var(--fs-xs); color: var(--muted); font-weight: 600; transition: color .3s, border-color .3s; }
.progress li .mono { display: block; font-size: 11px; margin-bottom: 2px; }
.progress li.is-cur, .progress li.is-done { color: var(--fg); border-color: var(--fg); }
.fstep { display: grid; gap: 22px; }
.fstep__t { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 720; font-stretch: 108%; letter-spacing: -.015em; margin-bottom: 4px; }
.fstep__t .mono { font-size: var(--fs-mono); color: var(--muted); vertical-align: middle; margin-right: 6px; }
.fstep__nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; }
.fstep__nav .btn:only-child { margin-left: auto; }
.js .form--steps .fstep:not(.is-cur) { display: none; }
.js .form--steps .fstep.is-cur { animation: rp-fade .45s var(--ease); }
.no-js .fstep__nav [data-next], .no-js .fstep__nav [data-prev] { display: none; }
.no-js .form--steps .fstep + .fstep { padding-top: 26px; border-top: 1px solid var(--line); }
.survey__side { display: grid; gap: 22px; position: sticky; top: calc(var(--hdr) + 24px); }
.estimate { padding: 22px; display: grid; gap: 8px; }
.estimate__k { margin: 0; font-size: 11px; text-transform: uppercase; color: var(--muted); }
.estimate__v { margin: 0; font-size: 1.15rem; font-weight: 650; }
.estimate__n { margin: 0; font-size: var(--fs-xs); color: var(--muted); }
.survey__h { font-size: 1.25rem; }
.next { list-style: none; display: grid; gap: 16px; }
.next li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.next .mono { font-size: var(--fs-mono); color: var(--muted); padding-top: 3px; }
.next p { font-size: var(--fs-sm); }
.survey__free { display: flex; gap: 12px; align-items: center; margin: 0; font-weight: 650; padding: 18px 0; border-top: 3px solid var(--fg); border-bottom: 3px solid var(--fg); }
.survey__ring { width: 28px; height: 28px; flex: none; }
.survey__alt { display: grid; gap: 8px; }
.survey__alt p { margin: 0; color: var(--muted); font-size: var(--fs-sm); }
.survey__alt a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
.contact__ways { display: grid; gap: 0; border-top: 3px solid var(--fg); }
.way { display: grid; grid-template-columns: 28px 90px minmax(0, 1fr); gap: 14px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; transition: background-color .2s; }
a.way:hover .way__v { text-decoration: underline; }
.way .i { width: 22px; height: 22px; margin-top: 2px; }
.way__l { font-size: var(--fs-xs); color: var(--muted); padding-top: 3px; }
.way__v { font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.socials { list-style: none; display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; transition: border-color .2s, background-color .2s, color .2s; }
.socials a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.socials .i { width: 18px; height: 18px; }
.contact__ways .socials { margin-top: 22px; }
.map__frame { position: relative; height: clamp(320px, 42vw, 520px); background: var(--bg-soft); display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; padding: 20px; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
:root[data-theme="dark"] .map__frame iframe { filter: grayscale(1) invert(.9); }
.map__addr { margin: 0; font-size: var(--fs-sm); color: var(--muted); }

/* Prose (posts, policies, plain pages) */
.prose { font-size: 1.08rem; line-height: 1.7; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); margin-top: 1.8em; }
.prose h3 { font-size: 1.3rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose a { font-weight: 600; }
.prose img { height: auto; }
.prose blockquote { margin: 1.6em 0; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); font-size: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
.prose .wp-block-image, .prose figure { margin-block: 1.6em; }
.post-hero { margin-bottom: 40px; }
.post-hero img { width: 100%; }
.post-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin-top: 56px; padding: 28px; border-top: 3px solid var(--fg); border-bottom: 3px solid var(--fg); }
.post-cta h2 { font-size: 1.3rem; margin-bottom: 6px; }
.post-cta p { color: var(--muted); font-size: var(--fs-sm); }
.post-cta__ring { width: 40px; height: 40px; }
.post-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.post-nav__a { display: grid; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line-2); text-decoration: none; font-weight: 650; }
.post-nav__a .mono { font-size: var(--fs-mono); color: var(--muted); font-weight: 400; }
.post-nav__a--next { text-align: right; grid-column: 2; }
.post-nav__a:hover span:last-child { text-decoration: underline; }
.nav-links { display: flex; justify-content: center; gap: 6px; margin-top: 56px; }
.nav-links .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; }
.nav-links .page-numbers.current, .nav-links .page-numbers:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.nav-links .i { width: 18px; height: 18px; }
.page-builder { min-height: 40vh; }

/* 404 */
.nf { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--hdr) + 60px) 0 80px; }
.nf__in { display: grid; justify-items: start; gap: 20px; }
.nf__ring { width: 120px; height: 120px; stroke-width: 1.2; }
.nf__ring .ring__arc { animation: rp-blink 4s steps(1, end) infinite; }
@keyframes rp-blink { 0%, 86%, 92%, 100% { opacity: 1; } 88%, 95% { opacity: .2; } }
.nf__code { margin: 0; color: var(--muted); }
.nf__t { font-size: var(--fs-h1); max-width: 14ch; }
.nf__t span { display: block; }
.nf__lead { color: var(--muted); }
.nf__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.nf__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.nf__links a:hover { border-color: var(--fg); }

/* ==========================================================================
   9. Footer, dock, WhatsApp
   ========================================================================== */
.ftr { padding: clamp(64px, 8vw, 110px) 0 28px; }
.ftr__brand { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.ftr__logo { color: #fff; }
.ftr__logo .logo { width: min(100%, 560px); }
.ftr__line { margin: 0; color: var(--muted); max-width: 44ch; }
.ftr__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; padding-block: clamp(36px, 5vw, 56px); }
.ftr__h { font-family: var(--mono); font-stretch: 87.5%; font-size: var(--fs-mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 18px; }
.ftr__list { list-style: none; display: grid; gap: 4px; }
.ftr__list a { display: inline-flex; align-items: flex-start; gap: 10px; min-height: 36px; padding: 6px 0; text-decoration: none; overflow-wrap: anywhere; }
.ftr__list a:hover { text-decoration: underline; }
.ftr__contact .i { width: 18px; height: 18px; margin-top: 3px; color: var(--muted); }
.ftr__col--contact .socials { margin-top: 18px; }
.ftr__base { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--muted); }
.ftr__base p { margin: 0; }
.ftr__legal { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.ftr__legal a, .ftr__credit a { text-decoration: none; display: inline-block; padding: 6px 0; }
.ftr__legal a:hover, .ftr__credit a:hover { color: var(--fg); text-decoration: underline; }
.ftr__credit a { color: var(--fg); font-weight: 600; }

.dock { display: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #0A0A0A; color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); border: 1px solid #333; transition: transform .3s var(--ease), opacity .6s; }
.wa-float:hover { transform: translateY(-3px); }
.wa-float .i { width: 26px; height: 26px; }
.woocommerce-cart .wa-float, .woocommerce-checkout .wa-float { display: none; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1360px) {
	.hdr__phone { display: none; }
}
@media (max-width: 1180px) {
	.hbtn--menu { display: inline-grid; }
	[data-hdr-cta] { display: none; }
	.nav {
		position: fixed;
		inset: var(--hdr) 0 0;
		z-index: -1;
		display: block;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 18px var(--gut) 120px;
		background: #0A0A0A;
		color: #fff;
		--fg: #fff; --bg: #0A0A0A; --muted: #A3A3A3; --line: #262626; --line-2: #3C3C3C; --card: #121212; --bg-soft: #161616;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-10px);
		transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
	.nav-open .hdr::before { opacity: 1; }
	.nav-open .hdr { --bg: #0A0A0A; --fg: #fff; --line: #262626; --line-2: #3C3C3C; --muted: #A3A3A3; color: #fff; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); }
	.nav__list > li > a, .nav__parent { width: 100%; justify-content: space-between; min-height: 64px; padding: 0; font-size: clamp(1.4rem, 1.1rem + 1.5vw, 1.9rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.02em; }
	.nav__list > li > a::after, .nav__parent::after { display: none; }
	.nav__parent .i { width: 22px; height: 22px; }
	.dd { position: static; width: auto; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 16px; background: transparent; display: none; }
	.menu-item-has-children:hover > .dd { transform: none; }
	.menu-item-has-children.is-open > .dd { display: block; }
	.dd .sub-menu { grid-template-columns: minmax(0, 1fr); }
	.dd a { grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; }
	.dd .i { grid-row: span 2; margin: 0; width: 24px; height: 24px; }
	.nav__list .sub-menu:not(.dd .sub-menu) { position: static; opacity: 1; visibility: visible; box-shadow: none; border: 0; background: transparent; display: none; }
	.nav__list li.is-open > .sub-menu:not(.dd .sub-menu) { display: block; }
	.nav__extra { display: grid; gap: 26px; margin-top: 30px; }
	.nav__extra .btn { --b: #fff; --t: #0A0A0A; }
	.nav__contact { list-style: none; display: grid; gap: 2px; }
	.nav__contact a { display: flex; align-items: center; gap: 12px; min-height: 48px; text-decoration: none; color: #D6D6D6; overflow-wrap: anywhere; }
	.flow__head { grid-template-columns: minmax(0, 1fr); }
	.flow__ctrl { justify-content: flex-start; }
}
@media (max-width: 1024px) {
	.calc__grid, .funding__grid, .faq__grid, .consider__grid, .about-intro__grid, .safety__grid, .sig__grid, .case__grid, .survey__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
	.faq__side, .case__side, .survey__side { position: static; }
	.pfeat { grid-template-columns: minmax(0, 1fr); }
	.prow { grid-template-columns: 96px minmax(0, 1fr) repeat(2, minmax(0, .7fr)) 36px; }
	.prow__fig:nth-of-type(3) { display: none; }
	.board__row { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
	.brk:nth-child(3n+1) { border-left: 0; }
	.board__rail { display: none; }
	.systems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.system:nth-child(3) { padding-left: 0; border-left: 0; }
	.system:nth-child(n+3) { border-top: 1px solid var(--line); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.wire { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-left: 0; }
	.wire::before, .wire::after { left: 26px; right: auto; top: 26px; bottom: 26px; width: 2px; height: auto; }
	.wire::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
	.wire__step { grid-template-columns: 54px minmax(0, 1fr); column-gap: 20px; }
	.wire__node { grid-row: span 3; margin: 0; }
	.safety__media { aspect-ratio: 16 / 10; }
	.ftr__brand { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.feature, .pitem { grid-template-columns: minmax(0, 1fr); }
	.feature--flip .feature__media, .pitem:nth-child(even) .pitem__media { order: 0; }
	.posts, .team__list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.readouts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.readout:nth-child(3) { border-left: 0; }
	.readout:nth-child(n+3) { border-top: 1px solid var(--line); }
	.meters__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.meter:nth-child(odd) { padding-left: 0; border-left: 0; }
	.meter:nth-child(n+3) { border-top: 1px solid var(--line); }
	.ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ftr__col--contact { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
	:root { --hdr: 64px; }
	body { padding-bottom: 64px; }
	.brand__svg, .brand__img { width: 124px; }
	.lights__label { display: none; }
	.hero { align-items: end; padding-bottom: 214px; }
	.hero__shade { background: linear-gradient(0deg, rgba(8, 8, 8, .94) 0%, rgba(8, 8, 8, .78) 45%, rgba(8, 8, 8, .35) 75%, rgba(8, 8, 8, .15) 100%); }
	.hero__switch { right: 50%; bottom: 96px; transform: translateX(50%); grid-auto-flow: column; align-items: center; gap: 14px; }
	.is-off .hero__switch { transform: translate(calc(50% + var(--sx, 0px)), var(--sy, 0)) scale(1.3); }
	.hero__in { transition: opacity .9s var(--ease); }
	.is-off .hero__in { opacity: .08; }
	.wall__plate { width: 58px; height: 92px; padding: 7px 0; }
	.wall__well { width: 30px; height: 50px; }
	.hero__facts { margin-top: 28px; }
	.paths__list { grid-template-columns: minmax(0, 1fr); }
	.path__a { aspect-ratio: 16 / 11; }
	.paths__list:hover .path:not(:hover) { opacity: 1; }
	.form__grid { grid-template-columns: minmax(0, 1fr); }
	.tiles--big .tiles__row { grid-template-columns: minmax(0, 1fr); }
	.tiles--big .tile__box { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; }
	.posts, .team__list, .grid3 { grid-template-columns: minmax(0, 1fr); }
	.board__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.brk:nth-child(3n+1) { border-left: 1px solid #1E1E1E; }
	.brk:nth-child(odd) { border-left: 0; }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.prow { grid-template-columns: 80px minmax(0, 1fr) 30px; gap: 14px; }
	.prow__fig { display: none; }
	.figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.figs .fig:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
	.systems { grid-template-columns: minmax(0, 1fr); }
	.system { padding-left: 0 !important; border-left: 0 !important; }
	.system + .system { border-top: 1px solid var(--line); }
	.ruled--dl .ruled__i { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.way { grid-template-columns: 26px minmax(0, 1fr); }
	.way__l { grid-column: 2; padding: 0; }
	.way__v { grid-column: 2; }
	.post-cta { grid-template-columns: minmax(0, 1fr); text-align: left; }
	.post-nav { grid-template-columns: minmax(0, 1fr); }
	.post-nav__a--next { grid-column: auto; text-align: left; }
	.ftr__grid { grid-template-columns: minmax(0, 1fr); }
	.ftr__base { flex-direction: column; align-items: flex-start; }
	.flow__time { padding: 10px 12px; gap: 10px; }
	.flow__svg .labels text { font-size: 18px; }
	.seg > button, .seg > label > span { padding: 0 11px; }
	.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 64px; background: #0A0A0A; color: #fff; border-top: 1px solid #262626; padding-bottom: env(safe-area-inset-bottom); }
	.dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 600; text-decoration: none; }
	.dock a + a { border-left: 1px solid #262626; }
	.dock .i, .dock__ring { width: 21px; height: 21px; }
	.dock__cta { background: #fff; color: #0A0A0A; }
	.wa-float { display: none; }
	.woocommerce-cart body, body.woocommerce-cart, body.woocommerce-checkout { padding-bottom: 0; }
}
@media (max-width: 420px) {
	.hdr__row { gap: 10px; }
	.hdr__tools { gap: 2px; }
	.calc__spec { grid-template-columns: minmax(0, 1fr); }
	.calc__spec > div:nth-child(even) { padding-left: 0; border-left: 0; }
	.calc__spec > div:nth-child(odd) { padding-right: 0; }
	.seg--3 > label > span { padding: 0 6px; font-size: .85rem; }
}
@media (pointer: coarse) {
	.ftr__list a, .ftr__legal a, .ftr__credit a { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ==========================================================================
   11. Reduced motion: fades only, nothing travels or flickers.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
	.js .rv { transform: none; transition: opacity .4s; }
	.btn::before, .rails::after { display: none; }
	.flow__svg .cur { stroke-dasharray: none; opacity: 0; }
	.flow__svg .cur.is-on { opacity: .9; }
	.hero__media img, .path__media img, .pfeat__media img, .pitem__media img, .post-card__img img { transform: none !important; }
}

/* Printing: content only. */
@media print {
	.hdr, .dock, .wa-float, .ftr, .cta, .hero__switch { display: none !important; }
	.tone-ink { background: #fff; color: #000; }
	.main { padding: 0 !important; }
}
