/* ==========================================================================
   JD Electrical — "Live Wire" design system  v1.0 (locked 6 Nov 2026)
   One stylesheet for every page. Plain CSS, no framework, no build step.
   Docs: DESIGN-SYSTEM.md · Live pattern library: /design-system.html
   Rules: animate transform/opacity only · orange is for action, current
   and key numbers · small orange text on light backgrounds uses --orange-ink
   ========================================================================== */

/* ---------- 00. Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Archivo"; src: url(../fonts/archivo-var.woff2) format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; 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; }

/* ---------- 01. Tokens ---------- */
:root {
  /* Colour — brand */
  --orange: #FC3401;               /* CTAs, current, key numbers. Text on it: --ink (5.1:1) */
  --orange-hot: #FF5A2B;           /* glow / hover only, never text */
  --orange-ink: #C42800;           /* small orange text on light bg (5.8:1 on white) */
  --ink: #111111;
  --white: #FFFFFF;
  --grey: #F3F3F3;
  /* Colour — support */
  --ink-2: #181818;                /* raised dark surface */
  --ink-3: #222222;
  --ink-0: #0B0B0B;                /* footer */
  --grey-2: #E6E6E6;
  --muted: #5E5E5E;                /* secondary text on light (6.4:1) */
  --muted-dark: #A6A6A6;           /* secondary text on dark (7.9:1) */
  --text-dark: #D6D6D6;            /* body text on dark */
  --line: rgba(17,17,17,.12);
  --line-dark: rgba(255,255,255,.12);
  --glow: rgba(252,52,1,.18);

  /* Type */
  --f-display: "Archivo", system-ui, sans-serif;
  --f-body: "Archivo", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --step--1: clamp(.82rem, .79rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2.1rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3.2rem);
  --step-4: clamp(2.5rem, 1.8rem + 3.6vw, 5.2rem);
  --step-hero: clamp(2.3rem, 1.2rem + 3.4vw, 4.4rem);      /* homepage H1 */
  --step-page: clamp(2.2rem, 1.3rem + 3vw, 4rem);          /* inner-page H1 */

  /* Space (4px base) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section-y: clamp(72px, 8vw, 120px);
  --section-y-tight: clamp(48px, 6vw, 88px);

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;                   /* default container */
  --max-narrow: 760px;             /* long-form reading */
  --max-wide: 1440px;
  --header-h: 72px;

  /* Shape & depth */
  --radius: 4px;                   /* buttons, inputs — the logo's cut ends */
  --radius-card: 6px;
  --radius-panel: 8px;
  --shadow-lift: 0 24px 40px -24px rgba(0,0,0,.35);
  --shadow-deep: 0 40px 80px -30px rgba(0,0,0,.8);

  /* Motion */
  --ease: cubic-bezier(.2,.7,.1,1);
  --dur-fast: .2s;
  --dur: .35s;
  --dur-slow: .8s;

  /* Layers */
  --z-nav: 49; --z-header: 50; --z-bar: 45; --z-progress: 60; --z-review: 70;
}

/* ---------- 02. Base ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 64ch; }
h1,h2,h3,h4 { font-family: var(--f-display); margin: 0; line-height: 1.02; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: var(--step-4); font-variation-settings: "wdth" 118; }
h2 { font-size: var(--step-3); font-variation-settings: "wdth" 112; margin-bottom: .45em; }
h3 { font-size: var(--step-1); font-variation-settings: "wdth" 108; font-weight: 700; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- 03. Utilities ---------- */
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:var(--s-4); top:-60px; z-index:100; background:var(--orange); color:var(--ink); padding:10px var(--s-4); font-weight:700; }
.skip:focus { top: var(--s-3); }
.accent { color: var(--orange); }
.muted { color: var(--muted); }
.dark .muted, .hero .muted, .page-hero .muted { color: var(--muted-dark); }
.lede { font-size: var(--step-1); line-height: 1.45; max-width: 52ch; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }  /* form honeypot */

/* Mono label — the "rating plate" voice */
.label { font-family: var(--f-mono); font-size: .76rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1.4rem; color: var(--muted); }
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--muted-dark); }
.node { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--glow); flex: none; }
.eyebrow .idx { color: var(--orange-ink); }
.dark .eyebrow .idx, .hero .eyebrow .idx, .page-hero .eyebrow .idx { color: var(--orange); }

/* ---------- 04. Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: calc(var(--max-narrow) + 2 * var(--gutter)); }
.wrap--wide { max-width: var(--max-wide); }
.section { position: relative; padding: var(--section-y) 0; }
.section--tight { padding: var(--section-y-tight) 0; }
.section--flush-top { padding-top: 0; }
.section.soft + .section.soft,
.section.dark + .section.dark,
.section.rail-section:not(.soft):not(.dark) + .section.rail-section:not(.soft):not(.dark) { padding-top: 0; }
.dark { background: var(--ink); color: var(--white); }
.dark p, .page-hero p { color: var(--text-dark); }   /* heroes are dark surfaces too */
.soft { background: var(--grey); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split--60 { grid-template-columns: 1.2fr .8fr; }
.split--40 { grid-template-columns: .8fr 1.2fr; }
.split--end { align-items: end; }
.split--center { align-items: center; }
.split > *, .grid > *, .page-hero__inner > *, .hero__inner > * { min-width: 0; }   /* stop wide content (tables, carousels) blowing out grid columns */
.sticky { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.section-head { margin-bottom: var(--s-7); }
.section-head.split { margin-bottom: 0; }
.grid { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.stack > * + * { margin-top: var(--s-4); }
@media (max-width: 960px) {
  .split, .split--60, .split--40 { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ---------- 05. Buttons & links ---------- */
.btn {
  --bg: var(--orange); --fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: .65em;
  padding: 1em 1.5em; border: 0; border-radius: var(--radius);
  background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  font: 700 1rem/1 var(--f-display); font-variation-settings: "wdth" 110; letter-spacing: .01em;
  overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn::after { /* current sweep */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(252,52,1,.65); }
.btn:hover::after { transform: translateX(120%); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn .plug { width: 18px; height: 14px; flex: none; }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange); }
.btn--dark { --bg: var(--ink); --fg: var(--white); }
.btn--sm { padding: .75em 1.1em; font-size: .92rem; }
.btn--block { width: 100%; justify-content: center; margin-top: 20px; padding-top: 1.15em; padding-bottom: 1.15em; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: 2rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em; font-weight: 700; text-decoration: none;
  min-height: 44px; padding: var(--s-2) 0 10px;
  background: linear-gradient(var(--orange), var(--orange)) 0 calc(100% - 6px) / 100% 1.5px no-repeat;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.links { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 1.6rem; }

/* ---------- 06. Header, navigation, mobile menu ---------- */
.energy-bar { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-progress); }
.energy-bar i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--orange); }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); height: var(--header-h); color: var(--white);
  background: rgba(17,17,17,.9); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-dark); transition: background .3s, border-color .3s;
}
.site-header.is-top { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; } /* set by JS over a dark hero only */
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-1); margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav a, .nav button.nav-top {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px var(--s-3); border-radius: var(--radius);
  color: var(--white); text-decoration: none; background: none; border: 0; cursor: pointer; font: 600 .95rem/1 var(--f-body);
}
.nav a:hover, .nav button.nav-top:hover, .nav [aria-expanded="true"] { color: var(--orange); }
.nav-top.is-current, .nav > ul > li > a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--orange); }   /* current section */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px; padding: 10px; margin: 0; list-style: none;
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius-card); box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--dur-fast), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* hover bridge across the gap */
.has-menu:hover .menu, .has-menu:focus-within .menu, .menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; justify-content: space-between; width: 100%; padding: var(--s-3); }
.menu a small { font-family: var(--f-mono); font-size: .68rem; color: var(--muted-dark); letter-spacing: .08em; }
.menu a:hover { background: rgba(255,255,255,.05); }
.menu a[aria-current="page"] { color: var(--orange); }
.header-phone { font-family: var(--f-mono); font-size: .85rem; text-decoration: none; white-space: nowrap; color: var(--white); padding: 14px var(--s-1); }
.header-phone:hover { color: var(--orange); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--white); cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; margin: 4px auto; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav, .header-phone, .site-header .header-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 560px) { .brand img { height: 36px; } }

.mobile-nav {
  position: fixed; inset: 0; z-index: var(--z-nav); background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + var(--s-5)) var(--gutter) 40px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); transition: clip-path .5s var(--ease); visibility: hidden;
}
.mobile-nav.is-open { clip-path: inset(0); visibility: visible; }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { border-bottom: 1px solid var(--line-dark); }
.mobile-nav a { display: flex; justify-content: space-between; padding: var(--s-4) 0; text-decoration: none; font: 700 1.25rem/1.2 var(--f-display); font-variation-settings: "wdth" 110; }
.mobile-nav .sub a { font: 500 1rem/1.2 var(--f-body); padding: var(--s-3) 0 var(--s-3) 18px; color: var(--text-dark); }
.mobile-nav a[aria-current="page"] { color: var(--orange); }
.mobile-nav .group { margin-top: 28px; color: var(--muted-dark); }
.mobile-nav__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mobile-nav__cta .btn { justify-content: center; padding: 1em .8em; font-size: .95rem; }
.mobile-nav__more { margin-top: 28px !important; }
@media (max-width: 380px) { .mobile-nav__cta { grid-template-columns: 1fr; } }

/* ---------- 07. Heroes ---------- */
/* Shared dark hero surface: grid paper, glow, circuit */
.hero, .page-hero { position: relative; background: var(--ink); color: var(--white); overflow: hidden; isolation: isolate; }
.hero__grid {
  position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: linear-gradient(var(--line-dark) 1px, transparent 1px), linear-gradient(90deg, var(--line-dark) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero__glow { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -25vmax; top: -20vmax; background: radial-gradient(circle, rgba(252,52,1,.22), transparent 60%); pointer-events: none; }
.hero__circuit { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0 48%, #000 68%); -webkit-mask-image: linear-gradient(90deg, transparent 0 48%, #000 68%); } /* keep current away from the headline */
.hero__circuit path { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 1.5; }
.hero__circuit .pulse { stroke: var(--orange); stroke-width: 2; stroke-dasharray: 40 900; stroke-linecap: round; animation: pulse 6s linear infinite; filter: drop-shadow(0 0 6px var(--orange)); }
.hero__circuit .pulse:nth-of-type(2n) { animation-duration: 8s; animation-delay: -3s; }
.hero__circuit .pulse:nth-of-type(3n) { animation-duration: 10s; animation-delay: -5s; }
.is-paused .hero__circuit .pulse, .is-paused .console__live::before { animation-play-state: paused; }

/* Homepage hero (full height) */
.hero { min-height: 100svh; padding: calc(var(--header-h) + var(--s-6)) 0 0; display: flex; flex-direction: column; }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 80px); align-items: center; flex: 1; }
.hero__copy { padding-bottom: var(--s-2); }
.hero h1 { font-size: var(--step-hero); font-variation-settings: "wdth" 112; }
.hero .lede, .page-hero .lede { margin-top: 1.4rem; color: var(--text-dark); }

/* H1 line-rise reveal (CSS only, runs without JS) */
.h1-lines .line { display: block; overflow: hidden; }
.h1-lines .line > span { display: inline-block; transform: translateY(105%); animation: rise .9s var(--ease) forwards; }
.h1-lines .line:first-child > span { white-space: nowrap; }
.h1-lines .line:nth-child(2) > span { animation-delay: .08s; }
.h1-lines .line:nth-child(3) > span { animation-delay: .16s; }
.h1-lines .line--sub { font-size: .5em; margin-top: .45em; line-height: 1.15; }
.h1-lines .accent { display: inline; }

/* Review line above the H1, credentials below the CTAs */
.hero-proof { display: block; min-height: 44px; margin-bottom: 1.4rem; padding: 10px 0; line-height: 1.5; color: #E6E6E6; text-decoration: none; font-size: .95rem; }
.hero-proof__stars { color: var(--orange); letter-spacing: .12em; font-size: 1rem; margin-right: var(--s-2); }
.hero-proof b { font-weight: 700; color: var(--white); }
.hero-proof__sep { color: var(--muted-dark); margin: 0 .5em; }
.hero-proof:hover b { color: var(--orange); }
.creds { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 1.6rem 0 0; padding: 0; color: #E6E6E6; }
.creds li { display: inline-flex; align-items: center; gap: var(--s-2); }
.creds svg { width: 16px; height: 16px; color: var(--orange); flex: none; }

/* Hero install photo (desktop) + compact photo band (mobile) */
.hero-media { position: relative; margin: 0; justify-self: end; width: min(100%, 500px); }
.hero-media picture, .hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-panel); }
.hero-media picture { position: relative; overflow: hidden; box-shadow: var(--shadow-deep); }
.hero-media picture::after, .hero-band__img::after { /* tie the photo into the dark hero */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(17,17,17,0) 55%, rgba(17,17,17,.55)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.hero-media__cap { position: absolute; z-index: 2; top: var(--s-4); right: var(--s-4); display: inline-flex; align-items: center; gap: var(--s-2); padding: var(--s-2) 10px;
  background: rgba(17,17,17,.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 3px; color: #E6E6E6; font-size: .68rem; }
.hero-media__cap .node { width: 7px; height: 7px; box-shadow: none; }
.hero-band { display: none; }
@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; flex: 0; }
  .hero-media { display: none; }
  .hero-band { display: block; position: relative; margin: var(--s-6) 0 0; padding-bottom: var(--s-6); }
  .hero-band__img { position: relative; border-radius: var(--radius-panel); overflow: hidden; }
  .hero-band__img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
  .hero-band .hero-media__cap { top: auto; bottom: calc(var(--s-6) + var(--s-3)); right: var(--s-3); }
}
@media (max-width: 1180px) { .console--mini { left: var(--s-4); } }
/* Short laptop screens: keep the route selector above the fold */
@media (min-width: 961px) and (max-height: 820px) {
  .hero { padding-top: calc(var(--header-h) + var(--s-4)); }
  .hero h1 { font-size: clamp(2.3rem, 1rem + 3vw, 3.6rem); }
  .hero .lede { font-size: 1.15rem; margin-top: 1rem; }
  .hero .btn-row { margin-top: 1.4rem; }
  .hero-proof { margin-bottom: .6rem; }
  .creds { margin-top: 1.1rem; }
  .hero-media { width: min(100%, 400px); }
}
@media (max-width: 560px) { .hero-proof { font-size: .88rem; } }

/* Inner-page hero (compact). Variants: --split (with media), --text (copy only) */
.page-hero { padding: calc(var(--header-h) + var(--s-7)) 0 var(--s-8); }
.page-hero__inner { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero--split .page-hero__inner { grid-template-columns: 1.15fr .85fr; }
.page-hero h1 { font-size: var(--step-page); font-variation-settings: "wdth" 114; max-width: 18ch; }
.page-hero--text h1 { max-width: 22ch; }
.page-hero .btn-row { margin-top: var(--s-6); }
.page-hero .hero-media { width: min(100%, 460px); }
.page-hero .hero-media picture, .page-hero .hero-media img { aspect-ratio: 5 / 4; }
.page-hero__aside { justify-self: end; width: min(100%, 420px); }   /* for a spec plate or readout instead of a photo */
@media (max-width: 960px) {
  .page-hero { padding: calc(var(--header-h) + var(--s-6)) 0 var(--s-7); }
  .page-hero--split .page-hero__inner { grid-template-columns: 1fr; }
  .page-hero .hero-media { display: block; justify-self: stretch; width: 100%; }   /* inner pages keep their photo on mobile */
  .page-hero .hero-media picture, .page-hero .hero-media img { aspect-ratio: 16 / 10; }
  .page-hero__aside { justify-self: stretch; width: 100%; }
}

/* Breadcrumb (inner pages) */
.breadcrumb { margin: 0 0 var(--s-5); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; color: var(--muted-dark); }
.breadcrumb li { display: inline-flex; align-items: center; gap: var(--s-2); }
.breadcrumb li + li::before { content: "/"; color: rgba(255,255,255,.3); }
.breadcrumb a { text-decoration: none; padding: 6px 0; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 08. Electrical elements ---------- */
/* Wire rail: fills as a section scrolls past (JS sets --p and --o) */
.rail-section { position: relative; }
.rail { position: absolute; left: max(calc((100vw - var(--max)) / 2 + var(--gutter) - 28px), 6px); top: 0; bottom: 0; width: 2px; pointer-events: none; }
.rail::before { content: ""; position: absolute; inset: 0; background: var(--line); }
.dark .rail::before { background: var(--line-dark); }
.rail i { position: absolute; left: 0; top: 0; width: 2px; height: 100%; background: var(--orange); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
.rail b { position: absolute; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--orange); top: calc(var(--p, 0) * 100%); box-shadow: 0 0 0 4px rgba(252,52,1,.2), 0 0 18px var(--orange); transform: translateY(-50%); opacity: var(--o, 0); }
@media (max-width: 760px) { .rail { display: none; } }

/* Switchboard route selector + toggle */
.switchboard { margin-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line-dark); display: grid; grid-template-columns: repeat(3, 1fr); }
.switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 26px clamp(16px, 2vw, 28px); text-decoration: none; color: var(--white); border-right: 1px solid var(--line-dark); transition: background .3s; }
.switch:first-child { padding-left: 0; }
.switch:last-child { border-right: 0; }
.switch:hover, .switch:focus-visible { background: rgba(255,255,255,.03); }
.switch__txt b { display: block; font: 800 1.2rem/1.1 var(--f-display); font-variation-settings: "wdth" 112; }
.switch__txt span { color: var(--muted-dark); font-size: .9rem; }
.toggle { flex: none; width: 54px; height: 30px; border-radius: 30px; border: 1.5px solid rgba(255,255,255,.35); position: relative; transition: background .3s, border-color .3s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 21px; height: 21px; border-radius: 50%; background: var(--white); transition: transform var(--dur) var(--ease); }
.switch:hover .toggle, .switch:focus-visible .toggle, .is-on > .toggle { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 20px rgba(252,52,1,.6); }
.switch:hover .toggle::after, .switch:focus-visible .toggle::after, .is-on > .toggle::after { transform: translateX(24px); background: var(--ink); }
@media (min-width: 961px) and (max-height: 820px) { .switch { padding-top: 18px; padding-bottom: 18px; } }
@media (max-width: 960px) {
  .switchboard { grid-template-columns: 1fr; }
  .switch { border-right: 0; border-bottom: 1px solid var(--line-dark); padding-left: 0; padding-right: 0; }
}

/* Console / readout (illustrative only — never carries a business claim) */
.console { position: relative; border: 1px solid var(--line-dark); border-radius: var(--radius-panel); padding: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); backdrop-filter: blur(6px); }
.console__head { display: flex; justify-content: space-between; color: var(--muted-dark); margin-bottom: 18px; }
.console__live { color: var(--orange); display: inline-flex; gap: var(--s-2); align-items: center; }
.console__live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: blink 1.4s infinite; }
.console__live.is-done { color: var(--white); } .console__live.is-done::before { animation: none; }
.console__note { margin-top: 14px; font-size: .72rem; color: #8a8a8a; font-family: var(--f-mono); }
.readout { font-family: var(--f-mono); }
.readout__big { font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem); font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--white); }
.readout__big small { font-size: .38em; color: var(--muted-dark); margin-left: var(--s-1); }
.battery { margin-top: var(--s-4); height: 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: 2px; position: relative; }
.battery::after { content: ""; position: absolute; right: -6px; top: 3px; width: 4px; height: 6px; background: rgba(255,255,255,.3); border-radius: 0 2px 2px 0; }
.battery i { display: block; height: 100%; width: 100%; background: repeating-linear-gradient(90deg, var(--orange) 0 10px, transparent 10px 12px); transform-origin: 0 50%; transform: scaleX(var(--soc, .2)); transition: transform .4s linear; }
.console--mini { position: absolute; z-index: 2; left: -40px; bottom: var(--s-6); width: 230px; padding: var(--s-4) 18px;
  background: rgba(17,17,17,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: rgba(255,255,255,.16); }
.console--mini .console__head { margin-bottom: 10px; font-size: .62rem; gap: 10px; }
.console--mini .readout__big { font-size: 2.6rem; }
.console--mini .battery { margin-top: 10px; }
.console--mini .console__note { margin-top: var(--s-2); font-size: .62rem; }

/* Process — current travelling a wire. Dark by default; --light for light sections */
.circuit-steps { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); gap: var(--s-5); margin-top: 56px; list-style: none; padding: 0; }
.circuit-steps::before, .circuit-steps::after { content: ""; position: absolute; top: 17px; left: 18px; right: 18px; height: 2px; background: var(--line-dark); }
.circuit-steps::after { background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--orange); }
.step { position: relative; z-index: 1; }
.step__node { width: 36px; height: 36px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: var(--ink); display: grid; place-items: center; font-family: var(--f-mono); font-size: .8rem; transition: border-color .4s, background .4s, color .4s; }
.step.is-live .step__node { border-color: var(--orange); background: var(--orange); color: var(--ink); box-shadow: 0 0 20px rgba(252,52,1,.6); }
.step h3 { margin: 22px 0 var(--s-2); }
.step p { font-size: .95rem; }
.circuit-steps + .btn-row { margin-top: var(--s-7); }
.circuit-steps--light::before { background: var(--line); }
.circuit-steps--light .step__node { background: var(--white); border-color: rgba(17,17,17,.25); color: var(--ink); }
.soft .circuit-steps--light .step__node { background: var(--grey); }
@media (max-width: 900px) {
  .circuit-steps { grid-template-columns: 1fr; gap: 28px; padding-left: 56px; }
  .circuit-steps::before, .circuit-steps::after { top: 18px; bottom: 18px; left: 17px; right: auto; width: 2px; height: auto; }
  .circuit-steps::after { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); }
  .step__node { position: absolute; left: -56px; top: 0; }
  .step h3 { margin-top: var(--s-1); }
}

/* Consumer-unit circuit schedule (breakers switch on in sequence; JS adds .is-on) */
.board { margin-top: var(--s-7); border: 1.5px solid var(--ink); border-radius: var(--radius-panel); background: var(--white); overflow: hidden; }
.board__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1.5px solid var(--ink); }
.board__rail { display: grid; grid-template-columns: repeat(var(--ways, 8), 1fr); }
.mcb { position: relative; padding: 18px 14px 22px; border-right: 1px solid var(--line); text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 14px; min-height: 230px; background: linear-gradient(var(--white), var(--grey)); }
.mcb:last-child { border-right: 0; }
.mcb__way { color: var(--muted); }
.mcb__body { width: 34px; height: 64px; border-radius: var(--radius); background: var(--ink); position: relative; margin: 0 auto; box-shadow: inset 0 0 0 3px #2a2a2a; }
.mcb__lever { position: absolute; left: 7px; right: 7px; height: 24px; top: 34px; border-radius: 2px; background: #E9E9E9; transition: transform var(--dur) var(--ease), background .3s; }
.mcb:hover .mcb__lever, .mcb:focus-visible .mcb__lever, .mcb.is-on .mcb__lever { transform: translateY(-28px); background: var(--orange); box-shadow: 0 0 14px rgba(252,52,1,.7); }
.mcb__state { text-align: center; color: var(--muted); }
.mcb__state::after { content: "Off"; }
.mcb:hover .mcb__state, .mcb:focus-visible .mcb__state, .mcb.is-on .mcb__state { color: var(--orange-ink); }
.mcb:hover .mcb__state::after, .mcb:focus-visible .mcb__state::after, .mcb.is-on .mcb__state::after { content: "On"; }
.mcb__name { font-weight: 700; font-size: .98rem; line-height: 1.2; margin-top: auto; }
/* Hover/focus once the board is live: the breaker trips and resets, the cell lights up, the name gets an arrow (it's a link) */
.mcb { transition: background-color var(--dur) var(--ease); }
.mcb::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease); }
.mcb:hover, .mcb:focus-visible { background: linear-gradient(#FFF6F3, #FDECE6); }
.mcb:hover::after, .mcb:focus-visible::after { transform: scaleX(1); }
.mcb:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.mcb.is-on:hover .mcb__lever, .mcb.is-on:focus-visible .mcb__lever { animation: mcb-flick .55s var(--ease); }
.mcb.is-on:hover .mcb__state::after, .mcb.is-on:focus-visible .mcb__state::after { animation: mcb-state .55s steps(1); }
.mcb__name::after { content: " →"; display: inline-block; opacity: 0; transform: translateX(-4px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); color: var(--orange-ink); }
.mcb:hover .mcb__name::after, .mcb:focus-visible .mcb__name::after { opacity: 1; transform: none; }
@keyframes mcb-flick { 0% { transform: translateY(-28px); } 30% { transform: translateY(0); background: #E9E9E9; box-shadow: none; } 55% { transform: translateY(0); background: #E9E9E9; box-shadow: none; } 100% { transform: translateY(-28px); } }
@keyframes mcb-state { 0% { content: "On"; } 25% { content: "Off"; } 60% { content: "On"; } }
@media (max-width: 960px) { .board__rail { grid-template-columns: repeat(4, 1fr); } .mcb:nth-child(4n) { border-right: 0; } .mcb:nth-child(-n+4) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .board__rail { grid-template-columns: repeat(2, 1fr); } .mcb { min-height: 200px; } .mcb:nth-child(2n) { border-right: 0; } .mcb:nth-child(-n+6) { border-bottom: 1px solid var(--line); } }

/* Load-management diagram */
.loadviz { margin: 0; border: 1px solid var(--line-dark); border-radius: var(--radius-panel); padding: var(--s-5); background: var(--ink-2); }
.loadviz__head { display: flex; justify-content: space-between; color: var(--muted-dark); margin-bottom: 22px; }
.loadviz__supply { display: flex; align-items: center; gap: var(--s-3); padding: 14px; border: 1px dashed rgba(255,255,255,.25); border-radius: var(--radius); font-family: var(--f-mono); font-size: .85rem; }
.loadviz__supply b { color: var(--orange); font-weight: 500; }
.bays { display: grid; gap: 10px; margin-top: var(--s-4); }
.bay { display: grid; grid-template-columns: 70px 1fr 64px; gap: var(--s-3); align-items: center; font-family: var(--f-mono); font-size: .8rem; color: var(--muted-dark); }
.bay__bar { height: 10px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.bay__bar i { display: block; height: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--w, .5)); transition: transform 1.2s var(--ease); }
.bay__kw { text-align: right; color: var(--white); }
.loadviz__foot { margin-top: 18px; font-size: .8rem; color: var(--muted-dark); }

/* Crop-mark frame: the photography treatment. Use on any real JD photo. */
.frame, .work__frame { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--ink-2); }
.frame img, .work__frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform var(--dur-slow) var(--ease); }
.frame::before, .frame::after, .work__frame::before, .work__frame::after {
  content: ""; position: absolute; z-index: 1; width: 22px; height: 22px; border: 1.5px solid var(--orange); pointer-events: none; }
.frame::before, .work__frame::before { top: var(--s-3); left: var(--s-3); border-right: 0; border-bottom: 0; }
.frame::after, .work__frame::after { bottom: var(--s-3); right: var(--s-3); border-left: 0; border-top: 0; }
.frame--4x5, .work__frame { aspect-ratio: 4 / 5; }
.frame--16x10 { aspect-ratio: 16 / 10; }
.frame--1x1 { aspect-ratio: 1; }
/* Outset marks, for a hero photo on a dark surface */
.hero-media::before, .hero-media::after { content: ""; position: absolute; z-index: 2; width: 26px; height: 26px; border: 2px solid var(--orange); pointer-events: none; }
.hero-media::before { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.hero-media::after { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* ---------- 09. Cards ---------- */
/* Generic content card — light by default, works on .soft and .dark */
.card { position: relative; display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card);
  color: var(--ink); text-decoration: none; transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }
.card .link-arrow { margin-top: auto; align-self: flex-start; }
a.card:hover, .card--link:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.card__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.card__led { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); transition: background .3s, box-shadow .3s; }
a.card:hover .card__led { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.dark .card { background: var(--ink-2); border-color: var(--line-dark); color: var(--white); }
.dark .card p { color: var(--muted-dark); }
.dark a.card:hover { border-color: rgba(255,255,255,.4); }

/* Spec plate — a rating plate for prices, specs and key facts */
.spec-plate { border: 1.5px solid var(--ink); border-radius: var(--radius-card); background: var(--white); color: var(--ink); overflow: hidden; }
.spec-plate__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: var(--ink); color: var(--white); }
.spec-plate__price { padding: 26px 20px 22px; border-bottom: 1.5px solid var(--ink); }
.spec-plate__price .from { color: var(--muted); }
.spec-plate__price .num { font: 800 clamp(3.4rem, 2.6rem + 3vw, 5rem)/1 var(--f-display); font-variation-settings: "wdth" 120; letter-spacing: -.03em; }
.spec-plate dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.spec-plate dl div { padding: var(--s-4) 20px; border-bottom: 1px solid var(--line); }
.spec-plate dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec-plate dt { color: var(--muted); }
.spec-plate dd { margin: var(--s-1) 0 0; font-weight: 700; }
.spec-plate dd.dd--plain { text-transform: none; letter-spacing: .02em; overflow-wrap: anywhere; }
.spec-plate__foot { padding: var(--s-4) 20px; background: var(--grey); display: flex; gap: var(--s-3); align-items: flex-start; font-size: .95rem; }
.spec-plate__foot b { color: var(--orange-ink); font-family: var(--f-mono); }
/* Sequenced plate (process steps): each step lights in turn when the plate scrolls into view (JS adds .is-on) */
.spec-plate--sequence dl div { position: relative; transition: background var(--dur) var(--ease); }
.spec-plate--sequence dt::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--grey-2); vertical-align: 1px; transition: background var(--dur), box-shadow var(--dur); }
.spec-plate--sequence dd { transition: color var(--dur); }
.js .spec-plate--sequence:not(.is-done) div:not(.is-on) dd { color: #6E6E6E; }
.spec-plate--sequence div.is-on dt::before, .spec-plate--sequence.is-done dt::before { background: var(--orange); box-shadow: 0 0 8px var(--orange); }
.spec-plate--sequence div.is-on { background: #FFF6F2; }

/* Product unit cards inside the rack carousel */
.rack-wrap { position: relative; margin-top: 40px; }
.rack { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4.3); gap: var(--s-3);
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: var(--s-2) 0 20px; margin: calc(var(--s-2) * -1) 0 0; scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.rack::-webkit-scrollbar { display: none; }
.rack:focus-visible { outline-offset: 6px; }
.rack-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 64px; width: 56px; pointer-events: none; background: linear-gradient(90deg, rgba(243,243,243,0), var(--grey)); transition: opacity .3s; }
.rack-wrap.at-end::after { opacity: 0; }
.rack-ctrl { display: flex; align-items: center; gap: 10px; margin-top: var(--s-3); }
.rack-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); cursor: pointer; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast); }
.rack-btn svg { width: 18px; height: 18px; }
.rack-btn:hover:not(:disabled) { background: var(--orange); border-color: var(--orange); }
.rack-btn:disabled { opacity: .3; cursor: default; }
.rack-progress { flex: 1; height: 2px; background: var(--grey-2); margin: 0 var(--s-4); position: relative; overflow: hidden; }
.rack-progress i { position: absolute; inset: 0; background: var(--orange); transform-origin: 0 50%; transform: scaleX(var(--p, .57)); transition: transform .3s var(--ease); }
.rack-count { color: var(--muted); min-width: 9ch; text-align: right; }
.rack-note { margin-top: 10px; font-size: .68rem; }
@media (max-width: 1100px) { .rack { grid-auto-columns: calc((100% - 36px) / 3.3); } }
@media (max-width: 760px)  { .rack { grid-auto-columns: calc((100% - 24px) / 2.2); } }
@media (max-width: 480px)  { .rack { grid-auto-columns: 82%; } }
.unit { scroll-snap-align: start; min-width: 0; position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px;
  display: flex; flex-direction: column; min-height: 300px; transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur); }
.unit:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: var(--shadow-lift); }
.unit__led { width: 8px; height: 8px; border-radius: 50%; background: var(--grey-2); transition: background .3s, box-shadow .3s; }
.unit:hover .unit__led { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.unit__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.unit h3 { margin: 28px 0 var(--s-2); font-size: 1.45rem; }
.grid > .unit { height: 100%; }
.grid > .unit dl { grid-template-columns: 1fr; }   /* product cards outside the rack: one spec per line */
.grid > .unit dd { white-space: normal; overflow-wrap: anywhere; }
.unit p { font-size: .95rem; color: var(--muted); }
.unit dl { margin: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.unit dt { color: var(--muted); font-size: .68rem; }
.unit dd { margin: 2px 0 0; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.unit dd.accent { color: var(--orange-ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 40px; }
.stats--2 { grid-template-columns: 1fr 1fr; margin-top: 0; }
.stat { padding: 28px var(--s-5) 28px 0; border-right: 1px solid var(--line); }
.stat + .stat { padding-left: var(--s-5); }
.stat:last-child { border-right: 0; }
.stat__num { font: 800 clamp(3rem, 2.4rem + 3vw, 5rem)/1 var(--f-display); font-variation-settings: "wdth" 120; letter-spacing: -.03em; }
.stat__num .accent { font-size: .6em; }
@media (max-width: 960px) {
  .stats:not(.stats--2) { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: var(--s-5) 0; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Review panel + recent-work row */
.review-panel { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4); align-items: center; margin-top: var(--s-6); padding: var(--s-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); }
.review-panel__slot { min-height: 120px; display: flex; flex-direction: column; justify-content: center; padding: 20px; border-radius: var(--radius); background: repeating-linear-gradient(135deg, var(--grey) 0 10px, #ECECEC 10px 20px); }
.review-panel__slot p { margin: 0; }
.review-panel__slot--widget { display: block; min-height: 0; padding: 0; background: none; grid-column: 1 / -1; }
.review-panel__slot--widget iframe { display: block; border: 0; min-height: 360px; }   /* the widget script resizes it to fit */
.review-panel__slot .label { margin-bottom: 6px; }
.work { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); margin-top: var(--s-5); }
.work--4 { grid-template-columns: repeat(4, 1fr); }
.work--grid { grid-template-columns: repeat(4, 1fr); row-gap: var(--s-5); }   /* portfolio: a wrapping grid, never a swipe row */
.work__item figcaption { overflow-wrap: anywhere; }
.work__item { margin: 0; }
.work__item:hover .work__frame img { transform: scale(1.04); }
.work__item figcaption { margin-top: 10px; color: var(--ink); }
.dark .work__item figcaption { color: var(--white); }
@media (max-width: 760px) {
  .review-panel { grid-template-columns: 1fr; }
  .review-panel__links .btn { width: 100%; justify-content: center; }
  .work { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .work::-webkit-scrollbar { display: none; }
  .work__item { scroll-snap-align: start; }
}

/* ---------- 10. Content components (inner pages) ---------- */
/* Tick list — benefits, inclusions, "why us". .ticks--light for light sections */
.ticks, .assure { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li, .assure li { position: relative; padding-left: 26px; color: var(--text-dark); }
.ticks li::before, .assure li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.ticks b, .assure a { color: var(--white); font-weight: 700; }
.ticks--light li { color: var(--ink); }
.ticks--light b { color: var(--ink); }
.ticks--cols { grid-template-columns: repeat(2, 1fr); gap: 12px 32px; }
@media (max-width: 560px) { .ticks--cols { grid-template-columns: 1fr; } }

/* Feature rows — numbered points with a node, for "why choose us" or inclusions */
.features { display: grid; gap: 0; margin: var(--s-6) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.features > li { display: grid; grid-template-columns: 56px 1fr; gap: var(--s-4); padding: var(--s-5) 0; border-bottom: 1px solid var(--line); }
.features .idx { font-family: var(--f-mono); font-size: .8rem; color: var(--orange-ink); padding-top: .25em; }
.features h3 { margin-bottom: var(--s-2); }
.features p { margin: 0; color: var(--muted); }
.dark .features { border-color: var(--line-dark); }
.dark .features > li { border-color: var(--line-dark); }
.dark .features .idx { color: var(--orange); }
.dark .features p { color: var(--muted-dark); }

/* Prose — long-form copy (FAQ answers, grants detail, service descriptions) */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin: 2em 0 .5em; }
.prose h3 { margin: 1.6em 0 .4em; }
.prose p { max-width: none; margin-bottom: 0; }   /* keep the 1em gap from ".prose > * + *" */
.prose ul, .prose ol { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--orange-ink); }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.dark .prose li::marker { color: var(--orange); }

/* Callout — a fact that matters (grant figure, eligibility, caveat) */
.callout { position: relative; padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 6px); background: var(--grey); border-radius: var(--radius-card); }
.callout::before { content: ""; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 3px; background: var(--orange); border-radius: 2px; }
.callout .label { color: var(--orange-ink); display: block; margin-bottom: var(--s-2); }
.callout p:last-child { margin-bottom: 0; }
.soft .callout { background: var(--white); }
.dark .callout { background: var(--ink-2); }
.dark .callout .label { color: var(--orange); }

/* Compare table — rating-plate table for products and grants. Wrap in .table-wrap (scrolls on mobile) */
.table-wrap { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: var(--radius-card); background: var(--white); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .95rem; }
.compare--wide { min-width: 1040px; font-size: .9rem; }   /* many text columns, e.g. manufacturer spec tables */
.compare a { color: inherit; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.compare.compare--wide { table-layout: fixed; }
.compare.compare--wide .num, .compare.compare--wide .src { white-space: normal; }
.compare .src { white-space: nowrap; }
.compare caption { text-align: left; padding: 14px 20px; background: var(--ink); color: var(--white); font: 500 .76rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.compare th, .compare td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 .7rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--grey); }
.compare tbody th { font-weight: 700; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody tr:hover > * { background: #FAFAFA; }
.compare .num { font-family: var(--f-mono); font-weight: 500; white-space: nowrap; }
.compare .hl { color: var(--orange-ink); font-weight: 700; }

/* FAQ accordion — native <details>, no JS. Pair with FAQPage JSON-LD */
.faq { border-top: 1px solid var(--line); }
.faq__group + .faq__group { margin-top: var(--s-7); }
.faq__group > .label { display: block; margin-bottom: var(--s-3); color: var(--muted); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); padding: 20px 0; min-height: 44px;
  font: 700 var(--step-1)/1.25 var(--f-display); font-variation-settings: "wdth" 106; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .toggle { border-color: rgba(17,17,17,.3); }
.faq summary .toggle::after { background: var(--ink); }
.faq details[open] summary .toggle { background: var(--orange); border-color: var(--orange); }
.faq details[open] summary .toggle::after { transform: translateX(24px); }
.faq summary:hover { color: var(--orange-ink); }
.faq__a { padding: 0 0 var(--s-5); max-width: 68ch; color: var(--muted); }
.faq__a p:last-child { margin-bottom: 0; }
.dark .faq, .dark .faq details { border-color: var(--line-dark); }
.dark .faq summary .toggle { border-color: rgba(255,255,255,.35); }
.dark .faq summary .toggle::after { background: var(--white); }
.dark .faq details[open] summary .toggle::after { background: var(--ink); }
.dark .faq summary:hover { color: var(--orange); }
.dark .faq__a { color: var(--muted-dark); }

/* CTA band — a mid-page prompt between sections */
.cta-band { position: relative; overflow: hidden; isolation: isolate; background: var(--ink); color: var(--white); border-radius: var(--radius-panel); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr auto; gap: var(--s-6); align-items: center; }
.cta-band::before { content: ""; position: absolute; z-index: -1; right: -20%; top: -60%; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgba(252,52,1,.25), transparent 60%); }
.cta-band h2 { font-size: var(--step-2); margin: 0 0 .3em; }
.cta-band p { margin: 0; color: var(--text-dark); }
.cta-band .btn-row { margin-top: 0; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* Accreditations, approvals & brands strip. Four groups that must stay separate:
   OZEV authorisation · registered/qualified · manufacturer-approved installer · other chargers we fit (no partnership implied).
   Real logos only, on white plates, in original colours (accreditation marks must not be recoloured).
   Use once per page, directly under the hero. Source of truth: _partials/partners.html; wording: BUSINESS-FACTS.md */
.partners { background: var(--grey); border-bottom: 1px solid var(--line); padding: var(--s-6) 0; }
.partners__groups { display: grid; grid-template-columns: 1.1fr 2.3fr 3fr 3.8fr; gap: var(--s-5); }
.partners__group + .partners__group { border-left: 1px solid var(--line); padding-left: var(--s-5); }
.partners__title { margin: 0 0 12px; color: var(--muted); display: flex; align-items: center; gap: 10px; line-height: 1.4; font-size: var(--step--1); white-space: nowrap; }
.partners__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.partners__list li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 72px; display: grid; place-items: center; padding: 10px 12px; }
.partners__list img { max-height: 46px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.partners__link { display: grid; place-items: center; width: 100%; height: 100%; border-radius: inherit; }
.partners__list li:has(.partners__link) { transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.partners__list li:has(.partners__link):hover { border-color: var(--ink); transform: translateY(-2px); }
.partners__link:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
[id^="charger-"] { scroll-margin-top: 96px; }
.partners__text a, .partners__badge { display: grid; justify-items: center; gap: 2px; text-decoration: none; color: var(--ink); text-align: center; }
.partners__badge b { color: var(--ink); }
.partners__text b { font: 800 1.25rem/1 var(--f-display); font-variation-settings: "wdth" 112; letter-spacing: .02em; }
.partners__text span { font: 500 .6rem/1.15 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.partners__list li.partners__text { padding: 6px 8px; }
.partners__text a:hover b, .partners__text a:focus-visible b { color: var(--orange-ink); }
@media (max-width: 1100px) {
  .partners__groups { grid-template-columns: 1fr; gap: var(--s-4); }
  .partners__group + .partners__group { border-left: 0; padding-left: 0; }
  .partners__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) { .partners__list { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); } .partners__list--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partners__list--4 img { max-width: 72%; max-height: 36px; } .partners__list li { height: 64px; } }

/* Route fork (hub pages): the rail splits into two branches, each ending on a route card.
   Built from the existing card + rail vocabulary; the SVG is decorative. */
.route-fork { margin-top: var(--s-6); }
.route-fork__wire { display: block; width: 100%; height: 64px; margin-bottom: -1px; }
.route-fork__wire path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.route-fork__wire .hot { stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 14 600; }
.route-fork__wire circle { fill: var(--orange); }
.route-fork .card { min-height: 100%; }
.card--media { padding-top: var(--s-3); }
.card--media .frame { margin: 0 calc(var(--s-3) - var(--s-5)) var(--s-2); }
a.card--media:hover .frame img { transform: scale(1.04); }
.route-fork .card h3 { font-size: var(--step-2); }
@media (max-width: 560px) { .route-fork__wire { display: none; } }
@media (max-width: 960px) and (min-width: 761px) { .work--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 960px) { .work.work--grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .work.work--grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; } }

/* Credentials board (About): four separate kinds of credential on one rating-plate grid.
   1 government authorisation · 2 registration & qualifications · 3 manufacturer approvals · 4 brands fitted. Never merge them. */
.creds-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--s-6); border: 1.5px solid var(--ink); border-radius: var(--radius-card); background: var(--white); overflow: hidden; }
.creds-board__item { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); }
.creds-board__item:nth-child(odd) { border-right: 1px solid var(--line); }
.creds-board__item:nth-last-child(-n+2) { border-bottom: 0; }
.creds-board__k { display: flex; align-items: center; gap: var(--s-2); margin: 0 0 var(--s-3); color: var(--muted); }
.creds-board__k .idx { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: .7rem; letter-spacing: 0; }
.creds-board__item h3 { margin-bottom: var(--s-2); }
.creds-board__item p { color: var(--muted); }
.creds-board__item .ticks { margin-top: var(--s-3); }
.card .stat__num { margin: var(--s-2) 0 0; }
@media (max-width: 760px) {
  .creds-board { grid-template-columns: 1fr; }
  .creds-board__item:nth-child(odd) { border-right: 0; }
  .creds-board__item:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .creds-board__item:last-child { border-bottom: 0; }
}

/* ---------- 11. Coverage ---------- */
.towns { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.towns li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 30px; font-weight: 600; font-size: .95rem; background: var(--white); }
.postcode { display: flex; margin-top: 28px; max-width: 460px; border: 1.5px solid var(--ink); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.postcode input { flex: 1; min-width: 0; border: 0; padding: var(--s-4); font: 600 1rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.postcode input:focus { outline: none; }
.postcode:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.postcode .btn { border-radius: 0; }
.postcode-status { margin-top: var(--s-3); min-height: 1.2em; }
.coverage-map { position: relative; aspect-ratio: 1 / .85; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--white); overflow: hidden; }
.coverage-map svg { width: 100%; height: 100%; }
.coverage-map--counties { aspect-ratio: 1 / .78; }   /* four-county service-area illustration: no pins, no towns */
.coverage-map .map-flag { position: absolute; right: var(--s-3); top: var(--s-3); font: 500 .68rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--white); padding: 6px var(--s-2); border: 1px solid var(--line); border-radius: 3px; }

/* ---------- 12. Forms (dark surface) ---------- */
.quote-form { position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field--full { grid-column: 1 / -1; }
.field label { color: var(--muted-dark); }
.field .opt { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-weight: 400; color: #8A8A8A; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px var(--s-4); border-radius: var(--radius); border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.04); color: var(--white); font: 500 1rem/1.4 var(--f-body); transition: border-color var(--dur-fast), background var(--dur-fast); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); background: rgba(252,52,1,.06); }
.field [aria-invalid="true"] { border-color: var(--orange); background: rgba(252,52,1,.08); }
.form-note { font-size: .85rem; color: var(--muted-dark); margin-top: 14px; }
.form-note a { color: var(--white); }
.form-status { margin-top: 14px; font-family: var(--f-mono); font-size: .85rem; color: var(--orange); min-height: 1.2em; }
.contact-lines { list-style: none; padding: 0; margin: var(--s-6) 0 0; border-top: 1px solid var(--line-dark); }
.contact-lines li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--line-dark); }
.contact-lines a { display: inline-block; text-decoration: none; font-weight: 700; padding: 10px 0; margin: -10px 0; }
.contact-lines a:hover { color: var(--orange); }
/* Choice group (radio pills): property_type on every quote form */
.choice-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.choice-group legend { color: var(--muted-dark); padding: 0; margin-bottom: var(--s-2); }
.choices { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.choice { position: relative; display: inline-flex; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); background: rgba(255,255,255,.04); color: var(--white); font-weight: 600; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.choice span::before { content: ""; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; border: 1.5px solid var(--muted-dark); transition: background var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast); }
.choice:hover span { border-color: rgba(255,255,255,.5); }
.choice input:checked + span { border-color: var(--orange); background: rgba(252,52,1,.1); }
.choice input:checked + span::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 8px var(--orange); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.choice-group[aria-invalid="true"] .choice span { border-color: var(--orange); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- 13. Footer ---------- */
.site-footer { background: var(--ink-0); color: #CFCFCF; padding: 80px 0 var(--s-6); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-logo { height: 48px; width: auto; }
.footer-title { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-dark); font-weight: 500; line-height: 1.02; font-variation-settings: normal; margin: 0 0 var(--s-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1); }
.site-footer a { text-decoration: none; }
.site-footer ul a, .footer-bottom a { display: inline-block; padding: 5px 0; }
.site-footer a:hover, .site-footer a[aria-current="page"] { color: var(--orange); }
.site-footer .muted { color: var(--muted-dark); }
.footer-bottom { margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-4); color: #8A8A8A; font-size: .82rem; }
/* Footer signage: SVG text locked to the container width, so it never crops */
.footer-word { display: block; width: 100%; height: auto; margin: 72px 0 0; overflow: visible; }
.footer-word text { font-family: var(--f-display); font-weight: 900; font-size: 118px; font-stretch: 125%; font-variation-settings: "wdth" 125; }
.fw-base { fill: url(#fw-fill); stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.fw-live { fill: rgba(252,52,1,.18); stroke: var(--orange); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(252,52,1,.8)); }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- 14. Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-bar); display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-2);
    padding: 10px var(--s-4) calc(10px + env(safe-area-inset-bottom)); background: rgba(17,17,17,.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line-dark); color: var(--white);
    transform: translateY(110%); transition: transform var(--dur) var(--ease); }
  .action-bar.is-visible { transform: none; }
  .action-bar .btn { justify-content: center; padding: .95em .8em; }
  .site-footer { padding-bottom: var(--s-9); }
}

/* ---------- 15. Review mode (design stage only — remove at launch) ---------- */
[data-confirm] { position: relative; }
.review-on [data-confirm] { background: rgba(255,214,0,.22); outline: 1.5px dashed #E0B800; outline-offset: 2px; border-radius: 2px; }
.review-on [data-confirm]:hover::after {
  content: "CONFIRM: " attr(data-confirm); position: absolute; left: 0; top: calc(100% + 6px); z-index: 30;
  background: #FFD600; color: #111; font: 500 .72rem/1.3 var(--f-mono); padding: 6px var(--s-2); border-radius: 3px; width: max-content; max-width: 280px; white-space: normal; letter-spacing: 0; text-transform: none; }
.review-ui { position: fixed; right: var(--s-4); bottom: var(--s-4); z-index: var(--z-review); display: none; flex-direction: column; align-items: flex-end; gap: var(--s-2); max-width: min(360px, calc(100vw - 32px)); }
.review-mode .review-ui { display: flex; }   /* staging / previews only: site.js adds .review-mode off jd-electrical.com */
.review-toggle { display: inline-flex; align-items: center; gap: var(--s-2); background: #FFD600; color: #111; border: 0; border-radius: 30px; padding: 10px 14px; cursor: pointer;
  font: 600 .75rem var(--f-mono); letter-spacing: .06em; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
.review-list { background: #FFFBE6; color: #111; border: 1.5px solid #E0B800; border-radius: var(--radius-card); padding: 14px var(--s-4); max-height: 50vh; overflow: auto; font-size: .85rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.review-list ol { margin: var(--s-2) 0 0; padding-left: 22px; }
.review-list li { margin: 0 0 6px; padding-left: 2px; }
.review-list button { all: unset; display: inline; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.review-list button:focus-visible { outline: 2px solid #111; }
.review-list small { color: #6b5a00; font-family: var(--f-mono); }
.review-toggle { white-space: nowrap; }
.review-toggle i { font-style: normal; }
.review-list__c { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px dashed #E0B800; }
.review-on [data-status="client-stated"] { outline: 1.5px dashed #2F6FDB; outline-offset: 3px; border-radius: 2px; background: rgba(47,111,219,.08); }
.review-on [data-status="client-stated"]:hover::after { content: "Client-stated: awaiting confirmation"; position: absolute; z-index: 5; margin-top: 4px; padding: 4px 8px; background: #2F6FDB; color: #fff; font: 500 .68rem var(--f-mono); letter-spacing: .04em; border-radius: 3px; white-space: nowrap; }
@media (max-width: 760px) { .review-ui { bottom: 84px; right: var(--s-3); } }

/* Cookie choice (added by site.js; analytics load only after Accept) */
.consent { position: fixed; left: 50%; bottom: var(--s-5, 24px); transform: translateX(-50%); z-index: 2147483647;   /* above the GHL chat widget, which uses the max */
  width: min(760px, calc(100vw - 32px)); display: grid; gap: var(--s-4); padding: 28px 32px;
  background: var(--ink); color: #fff; border: 1px solid #333; border-top: 4px solid var(--orange); border-radius: var(--radius-card);
  font-size: 1.05rem; line-height: 1.55; box-shadow: 0 30px 80px -10px rgba(0,0,0,.75); }
.consent__title { margin: 0; font-size: 1.4rem; line-height: 1.2; color: #fff; }
.consent p { margin: 0; color: #e8e8e8; }
.consent a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.consent__btns { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.consent__btns .btn { flex: 1 1 200px; justify-content: center; padding: 1em 1.4em; font-size: 1rem; }
.consent__reject { --bg: #fff; --fg: var(--ink); }   /* as prominent as Accept: rejecting must be as easy as accepting (ICO) */
.link-btn { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.link-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 760px) { .consent { bottom: 84px; padding: 20px; gap: var(--s-3); font-size: .98rem; max-height: calc(100vh - 110px); overflow: auto; } .consent__title { font-size: 1.2rem; } }

/* ---------- 16. Motion ---------- */
/* Reveal on scroll — only hides content when JS is running (html.js) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .08s; } .rv-d2 { transition-delay: .16s; } .rv-d3 { transition-delay: .24s; }
/* Pointer glow on dark zones (fine pointers only; JS sets --mx/--my) */
.glow-zone { position: relative; }
.glow-zone::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(252,52,1,.10), transparent 40%); opacity: 0; transition: opacity .4s; }
.glow-zone:hover::before { opacity: 1; }
@keyframes pulse { from { stroke-dashoffset: 940; } to { stroke-dashoffset: 0; } }
@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- 17. Reduced motion ---------- */
/* Lightbox (/portfolio): native <dialog>, full-frame photo. Links fall back to the image file without JS. */
a.work__open { display: block; color: inherit; cursor: zoom-in; }
a.work__open:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.work__open .zoom-ico { position: absolute; right: var(--s-3); top: var(--s-3); z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(17,17,17,.72); color: var(--white); opacity: 0; transform: scale(.9); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); pointer-events: none; }
.work__open:hover .zoom-ico, .work__open:focus-visible .zoom-ico { opacity: 1; transform: none; }
.lightbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10,10,10,.96); color: var(--white); overflow: hidden; }
.lightbox::backdrop { background: rgba(10,10,10,.94); }
.lightbox[open] { display: grid; grid-template-columns: 100%; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--gutter); }
.lightbox__count { color: #BDBDBD; }
.lightbox__stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(16px, 7vw, 96px); }
.lightbox__img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-card); background: var(--ink-2); }
.lightbox__cap { display: block; margin: 0; max-width: none; padding: 14px var(--gutter) 20px; text-align: center; color: #E6E6E6; }
.lightbox__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(17,17,17,.6); color: var(--white); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.lightbox__btn:hover { border-color: var(--orange); background: var(--ink); }
.lightbox__btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lightbox__btn svg { width: 18px; height: 18px; }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: clamp(8px, 2vw, 28px); } .lightbox__next { right: clamp(8px, 2vw, 28px); }
@media (max-width: 760px) { .lightbox__stage { padding: 0 8px; } .lightbox__prev, .lightbox__next { top: auto; bottom: 8px; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
  .h1-lines .line > span { transform: none; }
  .hero__circuit .pulse, .fw-live, .route-fork__wire .hot { display: none; }
}
