/* ==========================================================================
   McOwen Donald Electrical: "Light switch" design (v2)
   Native CSS, no build step. Light + dark via prefers-color-scheme.
   Palette: cool paper + graphite ink + ONE accent, safety yellow (--volt).
   Text on yellow is always ink. Yellow-family text on paper uses --volt-ink.
   Type: Archivo (variable width + weight) for display, Geist for text.
   Radius system: buttons 14px, tabs 16/11px, cards 22px, inputs 12px, chips pill.
   Z-index scale: dock 40, nav 50, menu 60, skip link 100.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f0f1ee;
  --paper-2: #e4e6e2;
  --card: #fafaf8;
  --ink: #16171a;
  --ink-2: #3d3f44;
  --ink-3: #62656b;
  --line: rgb(22 23 26 / 0.12);
  --line-strong: rgb(22 23 26 / 0.24);
  --edge: #16171a;            /* outlines and hard shadows */
  --night: #0f1012;           /* the power-cut block */
  --dim: #2a2b2e;             /* the hero with the lights off: dimmed, not black */
  --volt: #ffcc12;            /* the one accent */
  --volt-hover: #ffd94a;
  --volt-ink: #6b5000;        /* yellow-family text/icons on paper (AA) */
  --volt-soft: #fbefb8;
  --field-bg: #fdfdfc;
  --danger: #b42323;
  --shadow-tint: 22 23 26;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.5, 0.64, 1);
  --pad-x: clamp(16px, 4vw, 48px);
  --section-y: clamp(80px, 10vw, 150px);
  --nav-h: 72px;
  --edge-x: max(var(--pad-x), calc((100vw - 1320px) / 2 + var(--pad-x)));

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111214;
    --paper-2: #17181b;
    --card: #1c1d21;
    --ink: #eeefec;
    --ink-2: #c1c3c7;
    --ink-3: #9c9fa5;
    --line: rgb(255 255 255 / 0.1);
    --line-strong: rgb(255 255 255 / 0.2);
    --edge: #000;
    --night: #08090a;
    --dim: #070708;             /* dark mode: off must stay darker than the lit page */
    --volt-ink: #ffd84a;
    --volt-soft: #2d2710;
    --field-bg: #141518;
    --danger: #ff9191;
    --shadow-tint: 0 0 0;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: "Geist", system-ui, -apple-system, sans-serif;
  font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--volt-ink); outline-offset: 3px; border-radius: 8px; }
.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--pad-x); }
.sr-only { position: absolute; 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: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 16px; }

/* ---------- Type ---------- */
.h2 {
  font-family: "Archivo", "Geist", sans-serif;
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem);
  font-weight: 800; font-stretch: 78%;
  line-height: 0.95; letter-spacing: -0.015em;
  text-wrap: balance;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--volt-ink); margin-bottom: 18px;
}
.lead { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; margin-top: 22px; }

/* Masked word reveal for headings */
.w { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.w > span { display: inline-block; }
html.motion [data-split] .w > span { transform: translateY(105%); transition: transform 0.9s var(--ease-out) calc(var(--i) * 50ms); }
html.motion [data-split].is-in .w > span { transform: none; }

/* Generic reveal */
html.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(24px); }
html.motion [data-reveal] { transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0ms); }

/* Image wipe: photos open from the bottom edge like a roller blind */
/* (the clip sits on the image, not the frame: a fully clipped frame never counts as "visible") */
html.motion [data-wipe] img { clip-path: inset(100% 0 0 0); transform: scale(1.12); transition: clip-path 1.1s var(--ease-out), transform 1.6s var(--ease-out); }
html.motion [data-wipe].is-in img { clip-path: inset(0 0 0 0); transform: none; }

/* ---------- Links & buttons (outlined, hard shadow, presses down on click) ---------- */
.link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 650; color: var(--ink); text-decoration: none; }
/* Underline the words only, never the arrow */
.link > span, .link--btn { text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.link i { transition: transform 0.45s var(--spring); }
.link:hover i { transform: translateX(4px); }
.link--btn { background: none; border: 0; cursor: pointer; padding: 6px 0; }

.btn {
  --tx: 0px; --ty: 0px; --lx: 0px; --ly: 0px; --sh: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 50px; padding: 0 22px;
  border-radius: 14px; border: 2px solid var(--edge);
  font-size: 15.5px; font-weight: 650; letter-spacing: -0.01em;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transform: translate(var(--tx), var(--ty)) translate(var(--lx), var(--ly));
  transition: transform 0.5s var(--spring), box-shadow 0.25s var(--ease-out), background-color 0.2s, color 0.2s;
}
.btn i { font-size: 1.15em; }
.btn--sm { height: 44px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn--lg { height: 58px; padding: 0 26px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn--volt { background: var(--volt); color: #16171a; box-shadow: var(--sh) var(--sh) 0 var(--edge); }
.btn--volt:hover { --lx: -2px; --ly: -2px; --sh: 6px; background: var(--volt-hover); }
.btn--volt:active { --lx: 3px; --ly: 3px; --sh: 1px; transition-duration: 0.08s; }
.btn--line { background: transparent; color: inherit; border-color: currentColor; }
.btn--line:hover { background: rgb(127 127 127 / 0.12); }
.btn--line:active { --lx: 1px; --ly: 1px; }

.icon-btn {
  width: 54px; height: 54px; border-radius: 14px; border: 2px solid var(--edge);
  display: grid; place-items: center; cursor: pointer; font-size: 20px;
  background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--edge);
  transition: transform 0.4s var(--spring), box-shadow 0.2s;
}
.icon-btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--edge); }
.icon-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--edge); }
.icon-btn--volt { background: var(--volt); color: #16171a; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background 1.1s var(--ease-out), color 0.8s var(--ease-out), border-color 1.1s;
}
html[data-power="off"] .nav:not(.is-scrolled) { background: var(--dim); color: #eceae4; border-color: rgb(255 255 255 / 0.08); }
.nav__bar { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
html[data-power="off"] .nav:not(.is-scrolled) .brand__mark { border-radius: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
@media (prefers-color-scheme: dark) { .brand__mark { border-radius: 10px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); } }
.brand__word { display: grid; font-family: "Archivo", sans-serif; font-weight: 800; font-stretch: 85%; font-size: 21px; letter-spacing: -0.01em; line-height: 1; }
.brand__word small { font-family: "Geist", sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.7; margin-top: 3px; }
.nav__links { display: flex; gap: 2px; margin-inline: auto; }
.nav__links a { display: block; padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 550; text-decoration: none; transition: background 0.2s; }
.nav__links a:hover { background: rgb(127 127 127 / 0.14); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; font-variant-numeric: tabular-nums; }
.nav__phone i { font-size: 18px; }
.nav__toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 12px; border: 0; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--spring); }
.nav__toggle span:first-child { top: 20px; }
.nav__toggle span:last-child { top: 27px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.menu {
  position: absolute; top: calc(var(--nav-h) + 8px); left: var(--pad-x); right: var(--pad-x); z-index: 60;
  padding: 16px; border-radius: 22px; background: var(--card); color: var(--ink);
  border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  animation: menuIn 0.45s var(--ease-out);
}
.menu ul { display: grid; margin-bottom: 12px; }
.menu a:not(.btn) { display: block; padding: 12px; font-family: "Archivo", sans-serif; font-size: 26px; font-weight: 800; font-stretch: 80%; text-decoration: none; border-radius: 12px; }
.menu .btn { width: 100%; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Hero (signature: the light switch) ---------- */
.hero {
  position: relative; overflow: clip;
  min-height: calc(100dvh - var(--nav-h));
  display: grid; align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(56px, 7vw, 96px);
  background: var(--paper); color: var(--ink);
  transition: background 1.1s var(--ease-out), color 0.8s var(--ease-out);  /* lights on: one smooth fade-up, like a dimmer */
}
html[data-power="off"] .hero { background: var(--dim); color: #eceae4; transition-duration: 0.35s; }

.hero__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__title {
  font-family: "Archivo", sans-serif;
  font-size: clamp(3.2rem, 1rem + 6.2vw, 7.4rem);
  font-weight: 860; font-stretch: 96%;
  line-height: 0.86; letter-spacing: -0.02em; text-transform: uppercase;
  display: grid;
  transition: font-stretch 1s var(--ease-out) 0.45s, font-weight 1s var(--ease-out) 0.45s, color 0.3s;
}
html[data-power="off"] .hero__title { font-weight: 300; font-stretch: 64%; color: rgb(236 234 228 / 0.42); transition: font-stretch 0.35s, font-weight 0.35s, color 0.3s; }
.hero__line { display: block; }
.hero__volt {
  display: inline-block; margin-top: 0.06em; padding: 0.02em 0.14em 0.04em;
  background: var(--volt); color: #16171a; border-radius: 0.08em;
  transform: rotate(-2deg); box-shadow: 0.05em 0.05em 0 var(--edge);
  transition: background 0.8s var(--ease-out) 0.25s, color 0.8s var(--ease-out) 0.25s, box-shadow 0.8s var(--ease-out) 0.25s;
}
html[data-power="off"] .hero__volt { background: #25262a; color: rgb(236 234 228 / 0.42); box-shadow: none; }
.hero__sub { max-width: 40ch; margin-top: 30px; font-size: clamp(1.08rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; opacity: 0.86; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
html[data-power="off"] .hero .btn--volt { --edge: #000; }

.hero__stage { position: relative; }
.hero__media {
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 4.6; max-height: calc(100dvh - var(--nav-h) - 96px); width: 100%;
  border-radius: 22px; background: #000;
  box-shadow: 0 40px 80px -40px rgb(var(--shadow-tint) / 0.6);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
/* Lights off = a real photo of the same room at night, cross-faded over the lit one */
.hero__off { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease-out); }
html[data-power="off"] .hero__off { opacity: 1; transition-duration: 0.4s; }
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 55% at 50% 0%, rgb(255 214 120 / 0.42), transparent 70%);
  mix-blend-mode: soft-light; opacity: 1; transition: opacity 0.6s;
}
html[data-power="off"] .hero__glow { opacity: 0; }

/* The switch: a white UK plate with two screws and a rocker */
.switch-wrap { position: absolute; left: -46px; bottom: 34px; display: grid; justify-items: start; gap: 12px; }
.switch {
  position: relative; width: 112px; height: 112px; padding: 0; cursor: pointer;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center;
  border-radius: 14px; border: 0;
  background: linear-gradient(160deg, #ffffff, #e9e9e4);
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgb(0 0 0 / 0.08), 0 2px 0 rgb(0 0 0 / 0.12), 0 22px 40px -16px rgb(0 0 0 / 0.55);
  transition: transform 0.4s var(--spring);
}
.switch:hover { transform: scale(1.03); }
.switch:active { transform: scale(0.97); }
.switch__screw { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c9c9c3); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); position: relative; }
.switch__screw::after { content: ""; position: absolute; left: 1.5px; right: 1.5px; top: 50%; height: 1.2px; margin-top: -0.6px; background: rgb(0 0 0 / 0.35); transform: rotate(35deg); }
.switch__rocker {
  position: relative; width: 44px; height: 68px; border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1ec 48%, #d9d9d2 52%, #ecece6 100%);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.15);
  transition: background 0.18s, transform 0.18s;
  transform: perspective(200px) rotateX(10deg);
}
/* UK switches are on when the bottom is pressed in */
.switch[aria-checked="true"] .switch__rocker { background: linear-gradient(180deg, #ecece6 0%, #d9d9d2 48%, #f1f1ec 52%, #ffffff 100%); transform: perspective(200px) rotateX(-10deg); }
.switch__dot { position: absolute; left: 50%; bottom: 10px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #c8c8c0; transition: background 0.2s, box-shadow 0.2s; }
.switch[aria-checked="true"] .switch__dot { background: var(--volt); box-shadow: 0 0 0 2px rgb(255 204 18 / 0.3); }
.switch__hint { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 650; padding: 5px 12px 5px 8px; border-radius: 999px; background: #fff; color: #16171a; box-shadow: 0 8px 20px -10px rgb(0 0 0 / 0.5); }
.switch__hint i { font-size: 18px; color: #6b5000; }
.switch__hint-on { display: none; }
html:not([data-power="off"]) .switch__hint-on { display: inline; }
html:not([data-power="off"]) .switch__hint-off { display: none; }
html.motion[data-power="off"] .switch { animation: nudge 2.4s var(--ease-out) 1s infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 78% { transform: rotate(-4deg); } 86% { transform: rotate(3deg); } 94% { transform: rotate(-1deg); } }

/* ---------- Hazard-tape areas strip (the one marquee) ---------- */
.tape { padding-block: clamp(28px, 4vw, 48px); overflow: clip; }
.tape__band {
  margin-inline: -3vw; transform: rotate(-1.6deg);
  background: var(--volt); color: #16171a;
  border-block: 10px solid transparent;
  border-image: repeating-linear-gradient(135deg, #16171a 0 14px, #ffcc12 14px 28px) 10;
  padding-block: 14px; overflow: hidden;
}
.tape__row {
  display: flex; align-items: center; width: max-content;
  font-family: "Archivo", sans-serif; font-weight: 850; font-stretch: 78%;
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.6rem); text-transform: uppercase; letter-spacing: 0.01em; white-space: nowrap;
}
.tape__row > * { margin-right: 0.5em; }
.tape__row i { font-size: 0.7em; }
@media (prefers-reduced-motion: no-preference) {
  .tape__row { animation: tape 60s linear infinite; }
  @supports (animation-timeline: view()) {
    .tape__row { animation: tape-scroll linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes tape { to { transform: translateX(-50%); } }
@keyframes tape-scroll { from { transform: translateX(0); } to { transform: translateX(-30%); } }

/* ---------- Who we help (tabs morph between panels) ---------- */
.help { padding-block: calc(var(--section-y) * 0.6) var(--section-y); }
.help__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.tabs {
  position: relative; display: inline-flex; padding: 5px; gap: 4px;
  border: 2px solid var(--edge); border-radius: 16px; background: var(--card);
  box-shadow: 4px 4px 0 var(--edge);
}
.tabs__pill {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  border-radius: 11px; background: var(--volt);
  transform: translateX(var(--px, 5px)); width: var(--pw, 0px);
  transition: transform 0.55s var(--spring), width 0.55s var(--spring);
}
.tabs__btn {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 18px; border: 0; border-radius: 11px; background: none; cursor: pointer;
  font-weight: 650; font-size: 15.5px; color: var(--ink-2); transition: color 0.3s;
}
.tabs__btn[aria-selected="true"] { color: #16171a; }
.tabs__btn i { font-size: 19px; }
.panel { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.panel__img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.panel__img img { width: 100%; height: 100%; object-fit: cover; }
html.motion .panel.is-entering .panel__img { animation: wipe-in 0.8s var(--ease-out) both; }
html.motion .panel.is-entering .panel__copy > * { animation: rise-in 0.7s var(--ease-out) both; }
html.motion .panel.is-entering .panel__copy > :nth-child(2) { animation-delay: 0.08s; }
html.motion .panel.is-entering .panel__copy > :nth-child(3) { animation-delay: 0.16s; }
@keyframes wipe-in { from { clip-path: inset(0 100% 0 0 round 22px); } to { clip-path: inset(0 0 0 0 round 22px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } }
.panel__lead { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.checks { display: grid; gap: 12px; margin: 26px 0 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 16.5px; }
.checks i { font-size: 22px; color: var(--volt-ink); flex: none; margin-top: 1px; }

/* Landlord package card: rows switch on like breakers */
.cert {
  margin: 26px 0 28px; border: 2px solid var(--edge); border-radius: 18px; overflow: hidden;
  background: var(--card); box-shadow: 5px 5px 0 var(--edge);
}
.cert__strip { height: 12px; background: repeating-linear-gradient(135deg, var(--volt) 0 12px, #16171a 12px 24px); }
.cert__title { padding: 18px 22px 6px; font-family: "Archivo", sans-serif; font-size: 22px; font-weight: 800; font-stretch: 85%; }
.cert__title span { font-family: "Geist", sans-serif; font-size: 14px; font-weight: 550; color: var(--ink-3); margin-left: 6px; }
.cert__list { padding: 0 22px 12px; }
.cert__list li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px dashed var(--line-strong); font-weight: 550; }
.brk { position: relative; flex: none; width: 20px; height: 32px; border-radius: 6px; background: var(--volt); box-shadow: inset 0 0 0 1.5px rgb(0 0 0 / 0.25); }
.brk span { position: absolute; left: 3px; right: 3px; top: 3px; height: 13px; border-radius: 4px; background: #16171a; }
html.motion .brk { background: var(--paper-2); transition: background 0.3s; }
html.motion .brk span { transform: translateY(13px); transition: transform 0.45s var(--spring); }
html.motion .cert.is-in .brk { background: var(--volt); }
html.motion .cert.is-in .brk span { transform: none; }
html.motion .cert.is-in li:nth-child(1) :is(.brk, .brk span) { transition-delay: 0.35s; }
html.motion .cert.is-in li:nth-child(2) :is(.brk, .brk span) { transition-delay: 0.55s; }
html.motion .cert.is-in li:nth-child(3) :is(.brk, .brk span) { transition-delay: 0.75s; }
html.motion .cert.is-in li:nth-child(4) :is(.brk, .brk span) { transition-delay: 0.95s; }

/* ---------- Services reel (pinned horizontal pan on desktop) ---------- */
.reel { position: relative; background: var(--paper-2); }
.reel__pin { padding-block: clamp(64px, 8vw, 110px) 40px; overflow: hidden; }
.reel__head { margin-bottom: clamp(28px, 4vw, 48px); }
.reel__viewport { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-padding-inline: var(--edge-x); }
.reel__viewport::-webkit-scrollbar { display: none; }
.reel__track { display: flex; gap: 22px; width: max-content; padding: 6px var(--edge-x) 14px; }
.svc {
  scroll-snap-align: start; flex: none; width: min(500px, 82vw);
  display: grid; grid-template-rows: auto 1fr;
  background: var(--card); border: 2px solid var(--edge); border-radius: 22px; overflow: hidden;
  box-shadow: 6px 6px 0 var(--edge);
}
.svc__img { height: clamp(180px, 30vh, 300px); overflow: hidden; border-bottom: 2px solid var(--edge); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.svc:hover .svc__img img { transform: scale(1.05); }
.svc__body { padding: 24px 26px 26px; display: grid; align-content: start; gap: 10px; }
.svc__icon { font-size: 28px; color: var(--volt-ink); }
.svc h3 { font-family: "Archivo", sans-serif; font-size: clamp(1.6rem, 1.3rem + 0.8vw, 2.1rem); font-weight: 800; font-stretch: 82%; line-height: 1; letter-spacing: -0.01em; }
.svc p { color: var(--ink-2); max-width: 42ch; }
.svc--end { background: var(--volt); color: #16171a; align-content: center; }
.svc--end .svc__body { padding: 36px 32px; gap: 14px; }
.svc--end .svc__icon, .svc--end p { color: #16171a; }
.svc--end .btn { justify-self: start; margin-top: 8px; background: #16171a; color: var(--volt); --edge: #16171a; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { font-size: 13.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); color: var(--ink-2); }
.reel__foot { margin-top: 22px; }
.reel__wire { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.reel__current { display: block; height: 100%; background: var(--volt); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
/* Pinned mode (JS adds .is-pinned on wide screens with motion allowed) */
.reel.is-pinned .reel__pin { position: sticky; top: var(--nav-h); height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; align-content: center; padding-block: clamp(20px, 3vh, 48px) 24px; }
.reel.is-pinned .reel__viewport { overflow: visible; scroll-snap-type: none; }
.reel.is-pinned .reel__track { transform: translateX(var(--rx, 0px)); will-change: transform; }

/* ---------- Wiring diagram (process) ---------- */
.wiring { padding-block: var(--section-y); }
.wiring__board { position: relative; margin-top: clamp(40px, 5vw, 72px); }
.wiring__svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.wiring__svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wiring__base { stroke: var(--line-strong); stroke-width: 4; }
.wiring__live { stroke: var(--volt); stroke-width: 4; }
.wiring__spark { fill: var(--volt); opacity: 0; transition: opacity 0.3s; filter: drop-shadow(0 0 6px rgb(255 204 18 / 0.8)); }
.wiring__svg.is-flowing .wiring__spark { opacity: 1; }
.wiring__steps { position: relative; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(80px, 12vw, 180px); row-gap: 24px; }
.wstep { display: flex; gap: 20px; align-items: flex-start; max-width: 460px; }
.wstep:nth-child(odd) { grid-column: 1; justify-self: end; flex-direction: row-reverse; text-align: right; }
.wstep:nth-child(even) { grid-column: 2; margin-top: 90px; }
.wstep:nth-child(3) { margin-top: -40px; }
.wstep:nth-child(4) { margin-top: 50px; }
.wstep__node {
  position: relative; z-index: 1; flex: none;
  width: 58px; height: 58px; border-radius: 16px;
  display: grid; place-items: center; font-size: 25px;
  background: var(--card); border: 2px solid var(--line-strong); color: var(--ink-3);
  transition: background 0.35s, color 0.35s, border-color 0.35s, box-shadow 0.5s, transform 0.5s var(--spring);
}
.wstep.is-lit .wstep__node { background: var(--volt); border-color: var(--edge); color: #16171a; box-shadow: 4px 4px 0 var(--edge); transform: translate(-2px, -2px); }
.wstep h3 { font-family: "Archivo", sans-serif; font-size: clamp(1.5rem, 1.2rem + 0.8vw, 2rem); font-weight: 800; font-stretch: 82%; line-height: 1.05; margin-top: 4px; }
.wstep p { margin-top: 8px; color: var(--ink-2); }

/* ---------- About ---------- */
.about { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: 0 var(--section-y); }
.about__img { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper-2); }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.ticks i { font-size: 22px; color: var(--volt-ink); }
.sticker {
  position: absolute; left: calc(var(--pad-x) - 12px); top: -26px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 14px; border: 2px solid #16171a;
  background: var(--volt); color: #16171a; box-shadow: 4px 4px 0 #16171a;
  font-family: "Archivo", sans-serif; font-weight: 850; font-stretch: 85%; font-size: 20px; text-transform: uppercase;
  transform: rotate(-6deg);
}
html.motion .sticker { transform: rotate(-6deg) scale(0); transition: transform 0.7s var(--spring) 0.6s; }
html.motion .about:has(.about__img.is-in) .sticker { transform: rotate(-6deg) scale(1); }

/* ---------- Intro film (the play pill grows into the player) ---------- */
.film { padding-block: calc(var(--section-y) * 0.35) var(--section-y); }
.film__head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.film__poster {
  --fs: 1;
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit;
  border-radius: 22px;
  transform: scale(var(--fs));
  transform-origin: 50% 0%;
}
.film__poster:focus-visible { outline-offset: 8px; }
.film__frame {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 22px; background: var(--night);
  border: 2px solid var(--edge); box-shadow: 8px 8px 0 var(--edge);
}
.film__frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.film__poster:hover .film__frame img { transform: scale(1.03); }
.film__cta {
  position: absolute; right: clamp(14px, 2.6vw, 32px); bottom: clamp(14px, 2.6vw, 32px); z-index: 1;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 7px 22px 7px 7px; border-radius: 999px;
  background: #16171a; color: #f3f2ee; border: 2px solid #000; box-shadow: 4px 4px 0 #000;
  font-size: 16px; font-weight: 650; letter-spacing: -0.01em;
  transition: transform 0.5s var(--spring), box-shadow 0.2s;
}
.film__poster:hover .film__cta { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; }
.film__poster:active .film__cta { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; transition-duration: 0.08s; }
.film__play {
  width: 50px; height: 50px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 20px;
  background: var(--volt); color: #16171a;
  transition: transform 0.5s var(--spring);
}
.film__play i { margin-left: 3px; }
.film__poster:hover .film__play { transform: scale(1.08); }
.film__time { opacity: 0.7; font-weight: 500; font-variant-numeric: tabular-nums; }

html.has-modal { overflow: hidden; }
.film-modal {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: transparent; overflow: hidden;
}
.film-modal[open] { display: grid; place-items: center; }
.film-modal::backdrop { background: rgb(8 9 10 / 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.film-modal__inner { position: relative; width: min(1280px, 92vw, calc(84dvh * 16 / 9)); aspect-ratio: 16 / 9; transform-origin: 0 0; will-change: transform; }
.film-modal video { display: block; width: 100%; height: 100%; border-radius: 22px; background: #08090a; }
.film-modal__close { position: absolute; top: -70px; right: 0; }
.film-modal__end {
  position: absolute; inset: 0; border-radius: 22px;
  display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center;
  background: rgb(8 9 10 / 0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #f3f2ee; --edge: #000;
}
.film-modal__end p {
  font-family: "Archivo", "Geist", sans-serif; font-weight: 800; font-stretch: 78%;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3.4rem); line-height: 0.95; letter-spacing: -0.015em;
}
.film-modal__end .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .film-modal[open]::backdrop { animation: film-fade-in 0.22s ease-out; }
  .film-modal.is-closing::backdrop { animation: film-fade-out 0.5s ease-in forwards; }
  .film-modal__close { transition: opacity 0.3s ease 0.1s, transform 0.4s var(--spring), box-shadow 0.2s; }
  .film-modal.is-morphing .film-modal__close, .film-modal.is-closing .film-modal__close { opacity: 0; transition-delay: 0s; }
  .film-modal__end:not([hidden]) { animation: film-fade-in 0.5s ease-out; }
}
@keyframes film-fade-in { from { opacity: 0; } }
@keyframes film-fade-out { to { opacity: 0; } }

/* "Loading video" label: shown only while the video waits for data */
.film-modal__loading {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1;
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  padding: 10px 16px; border-radius: 999px; pointer-events: none;
  background: rgb(8 9 10 / 0.72); color: #f3f2ee; font-size: 14.5px; font-weight: 550;
  opacity: 0; transition: opacity 0.25s;
}
.film-modal.is-loading .film-modal__loading { opacity: 1; transition-delay: 0.35s; }
.film-modal__pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--volt); }
@media (prefers-reduced-motion: no-preference) {
  .film-modal.is-loading .film-modal__pulse { animation: film-pulse 1s ease-in-out infinite alternate; }
}
@keyframes film-pulse { from { opacity: 0.35; transform: scale(0.8); } to { opacity: 1; transform: scale(1.15); } }

/* ---------- Reviews (spring stack) ---------- */
.reviews { background: var(--paper-2); padding-block: var(--section-y); overflow: clip; }
.reviews__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.reviews__nav { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.reviews__count { margin-left: 8px; font-weight: 650; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.stack { position: relative; height: 340px; margin-right: 56px; }
.rev {
  --k: 0;
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 22px;
  padding: 34px; border-radius: 22px;
  background: var(--card); border: 2px solid var(--edge); box-shadow: 6px 6px 0 var(--edge);
  transform: translate(calc(var(--k) * 14px), calc(var(--k) * 12px)) rotate(calc(var(--k) * 1.6deg));
  z-index: calc(10 - var(--k));
  opacity: clamp(0, 3 - var(--k), 1);
  transition: transform 0.7s var(--spring), opacity 0.4s;
}
.rev:not(.is-top) { pointer-events: none; }
.stars { display: flex; gap: 3px; color: #e2a400; font-size: 18px; }
.rev blockquote { flex: 1; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.4rem); line-height: 1.45; font-weight: 550; letter-spacing: -0.015em; }
.rev figcaption { display: flex; align-items: center; gap: 12px; }
.rev figcaption strong { display: block; font-size: 15.5px; font-weight: 650; }
.rev figcaption span:last-child { font-size: 14px; color: var(--ink-3); line-height: 1.35; }
.avatar { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--volt); color: #16171a; font-size: 14px; font-weight: 750; border: 2px solid var(--edge); }

/* ---------- Advice (bank of switches) ---------- */
.advice { padding-block: var(--section-y); }
.tips { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 64px); }
.tip {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: 30px; border-radius: 22px; min-height: 230px;
  background: var(--card); border: 2px solid var(--line-strong);
}
.tip:nth-child(3) { grid-column: 6 / 9; }
.tip:nth-child(4) { grid-column: 9 / 13; }
.tip--big { grid-column: 1 / 6; grid-row: span 2; background: #16171a; color: #eeefec; border-color: #16171a; }
.tip--big p:not(.tip__fig) { color: rgb(238 239 236 / 0.78); }
.tip--volt { grid-column: 6 / 13; background: var(--volt); color: #16171a; border-color: #16171a; }
.tip--volt p { color: rgb(22 23 26 / 0.8); }
.tip--volt .tip__fig { color: #16171a; }
.tip--photo { grid-column: 1 / 13; min-height: 320px; padding: 0; border: 0; color: #f3f3f0; }
.tip--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
.tip--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(10 10 12 / 0.88) 0%, rgb(10 10 12 / 0.55) 45%, transparent 75%); }
.tip__over { position: relative; z-index: 1; padding: 34px; max-width: 520px; display: grid; gap: 10px; margin-top: auto; }
.tip--photo .tip__over p { color: rgb(243 243 240 / 0.9); }
.tip h3 { font-size: 21px; font-weight: 680; letter-spacing: -0.02em; line-height: 1.2; }
.tip p { color: var(--ink-2); max-width: 46ch; }
.tip__icon { font-size: 32px; color: var(--volt-ink); margin-bottom: auto; }
.tip--photo .tip__icon { color: var(--volt); margin-bottom: 6px; }
.tip__fig { font-family: "Archivo", sans-serif; font-size: clamp(4rem, 2rem + 6vw, 8rem) !important; font-weight: 850; font-stretch: 80%; line-height: 0.85; letter-spacing: -0.02em; margin-bottom: auto; }
.tip--big .tip__fig { color: var(--volt); }
/* Each tip has a small toggle that flicks on as the card appears */
.tip__toggle { position: absolute; top: 22px; right: 22px; width: 42px; height: 24px; border-radius: 999px; background: var(--volt-ink); }
.tip__toggle span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.3); transform: translateX(18px); }
.tip--big .tip__toggle { background: var(--volt); }
.tip--volt .tip__toggle { background: #16171a; }
html.motion .tip .tip__toggle { background: rgb(127 127 127 / 0.3); transition: background 0.3s calc(var(--d, 0ms) + 0.4s); }
html.motion .tip .tip__toggle span { transform: none; transition: transform 0.45s var(--spring) calc(var(--d, 0ms) + 0.4s); }
html.motion .tip.is-in .tip__toggle { background: var(--volt-ink); }
html.motion .tip--big.is-in .tip__toggle { background: var(--volt); }
html.motion .tip--volt.is-in .tip__toggle { background: #16171a; }
html.motion .tip.is-in .tip__toggle span { transform: translateX(18px); }


/* ---------- FAQ (plain answers for search engines and AI assistants) ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(32px, 6vw, 96px); align-items: start; padding-block: var(--section-y);
  border-image: conic-gradient(var(--paper-2) 0 0) fill 0 // 0 100vw; clip-path: inset(0 -100vw); }  /* full-width tinted band */
.faq__head .btn { margin-top: 28px; }
.faq__head { position: sticky; top: calc(var(--nav-h) + 32px); }
.faq__list { display: grid; gap: 12px; }
.faq__item { border: 2px solid var(--line-strong); border-radius: 18px; background: var(--card); transition: border-color 0.3s, box-shadow 0.3s; }
.faq__item[open] { border-color: var(--edge); box-shadow: 5px 5px 0 var(--edge); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-size: 17.5px; font-weight: 650; letter-spacing: -0.015em; line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline-offset: -3px; border-radius: 16px; }
.faq__item summary i {
  flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: var(--paper-2); transition: transform 0.45s var(--spring), background 0.3s;
}
.faq__item[open] summary i { transform: rotate(45deg); background: var(--volt); color: #16171a; }
.faq__answer { padding: 0 22px 22px; }
.faq__answer p { color: var(--ink-2); max-width: 62ch; }
html.motion .faq__item[open] .faq__answer { animation: rise-in 0.45s var(--ease-out); }

/* ---------- Emergency: call McOwen Donald (the one deliberate dark block) ---------- */
.outage { background: var(--night); color: #eceae4; padding-block: clamp(88px, 10vw, 140px); }
.outage__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.outage__title { font-family: "Archivo", sans-serif; font-size: clamp(3.8rem, 2rem + 7vw, 8.5rem); font-weight: 860; font-stretch: 78%; line-height: 0.88; text-transform: uppercase; }
.outage__lead { margin: 24px 0 36px; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); color: rgb(236 234 228 / 0.8); max-width: 42ch; }
.outage__call { display: inline-flex; align-items: center; gap: 18px; color: var(--volt); text-decoration: none; white-space: nowrap; font-family: "Archivo", sans-serif; font-size: clamp(2rem, 1.1rem + 3.4vw, 4.2rem); font-weight: 850; font-stretch: 88%; line-height: 1; font-variant-numeric: tabular-nums; }
.outage__call:hover { color: var(--volt-hover); }
.outage__ring { position: relative; width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--volt); color: #16171a; }
.outage__ring::before, .outage__ring::after { content: ""; position: absolute; inset: 0; border-radius: 18px; border: 2px solid rgb(255 204 18 / 0.7); }
@media (prefers-reduced-motion: no-preference) {
  .outage__ring::before { animation: ring 2.4s var(--ease-out) infinite; }
  .outage__ring::after { animation: ring 2.4s var(--ease-out) 1.2s infinite; }
}
@keyframes ring { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.8); opacity: 0; } }
.outage__list { display: grid; gap: 10px; }
.outage__list li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; border-radius: 16px; background: rgb(255 255 255 / 0.05); border: 1px solid rgb(255 255 255 / 0.1); font-size: 17px; font-weight: 520; }
.outage__list i { font-size: 24px; color: var(--volt); flex: none; margin-top: 1px; }
.outage__list strong { display: block; color: #fff; font-weight: 650; }
.outage__list span { color: rgb(236 234 228 / 0.78); line-height: 1.45; }
.outage__note { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.12); color: rgb(236 234 228 / 0.76); }
.outage__note a { color: #fff; font-weight: 650; text-underline-offset: 4px; }

/* ---------- Booking (job sheet) ---------- */
.book { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; padding-block: var(--section-y); }
.contact-list { display: grid; gap: 4px; margin-top: 28px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; }
.contact-list i { font-size: 21px; color: var(--volt-ink); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.book__img { margin-top: 32px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 10.5; }
.book__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.form {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--card); border: 2px solid var(--edge); border-radius: 22px; overflow: hidden;
  box-shadow: 8px 8px 0 var(--edge);
}
.form__strip { height: 14px; background: repeating-linear-gradient(135deg, var(--volt) 0 14px, #16171a 14px 28px); }
.form__title { display: flex; align-items: center; gap: 10px; padding: 22px clamp(22px, 3vw, 40px) 0; font-family: "Archivo", sans-serif; font-size: 15px; font-weight: 800; font-stretch: 90%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.form__title i { font-size: 20px; color: var(--volt-ink); }
.form__body { padding: 18px clamp(22px, 3vw, 40px) clamp(24px, 3vw, 36px); }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.field label { font-size: 14.5px; font-weight: 650; color: var(--ink); }
.optional { color: var(--ink-3); font-weight: 500; margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 0 16px;
  border-radius: 12px; border: 2px solid var(--line-strong);
  background: var(--field-bg); color: var(--ink); font: inherit; font-size: 16px;
  transition: border-color 0.2s, box-shadow 0.2s; -webkit-appearance: none; appearance: none;
}
.field textarea { padding: 14px 16px; resize: vertical; min-height: 116px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 4px 4px 0 var(--volt); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select i { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--ink-2); }
.field__err { font-size: 13.5px; font-weight: 600; color: var(--danger); }
.field__err:empty { display: none; }
.field__help { font-size: 13.5px; color: var(--ink-3); }
.field.has-error input, .field.has-error select { border-color: var(--danger); }
.btn__spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgb(22 23 26 / 0.25); border-top-color: #16171a; animation: spin 0.7s linear infinite; }
.is-loading .btn__spinner { display: block; }
.is-loading { pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error { margin-top: 14px; font-size: 14.5px; font-weight: 600; color: var(--danger); text-align: center; }
.form__error a { color: inherit; font-weight: 700; }
.form__privacy { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--ink-3); }
.form__privacy a { color: var(--ink); font-weight: 650; text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.form__done { text-align: center; padding: 56px 24px; outline: none; }
.form__done-icon { display: inline-grid; font-size: 64px; color: var(--volt-ink); animation: pop 0.8s var(--spring); }
.form__done h3 { margin-top: 12px; font-family: "Archivo", sans-serif; font-size: 30px; font-weight: 800; font-stretch: 85%; }
.form__done p { margin: 10px auto 18px; color: var(--ink-2); max-width: 34ch; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } }

/* ---------- Footer (giant wordmark widens as it scrolls in) ---------- */
.footer { border-top: 2px solid var(--edge); padding-top: 72px; overflow: clip; }
.footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 40px; }
.footer__brand p { margin-top: 18px; color: var(--ink-2); max-width: 36ch; }
.footer__col { display: grid; align-content: start; gap: 2px; }
.footer__col h3 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.footer__col a, .footer__col span { color: var(--ink-2); text-decoration: none; padding: 5px 0; font-size: 15px; }
.footer__col a:hover { color: var(--ink); }
.footer__col span a { padding: 0; }
.footer__col a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.footer__word {
  margin-top: 48px; text-align: center; white-space: nowrap;
  font-family: "Archivo", sans-serif; font-weight: 900; font-stretch: 112%;
  font-size: clamp(2.6rem, 0.4rem + 9vw, 11rem); line-height: 0.82; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: -0.1em;
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .footer__word { animation: word-wide linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  }
}
@keyframes word-wide { from { font-stretch: 62%; font-weight: 300; } to { font-stretch: 112%; font-weight: 900; } }
.footer__base {
  position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 22px 28px; border-top: 2px solid var(--edge);
  font-size: 14px; color: var(--ink-3); background: var(--paper);
}
.footer__base a { text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }

/* Spark logo: particles assemble into the bolt once */
.spark-logo { position: relative; display: inline-grid; }
.spark-logo canvas { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; transform: translate(-50%, -50%); pointer-events: none; transition: opacity 0.7s var(--ease-out); }
.spark-logo.is-done canvas { opacity: 0; }
html.motion .spark-logo:not(.is-done) .spark-logo__bolt { opacity: 0; }
.spark-logo__bolt { transition: opacity 0.5s var(--ease-out); }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom));
  display: none; gap: 8px; padding: 8px; border-radius: 18px;
  background: var(--card); color: var(--ink); border: 2px solid var(--edge); box-shadow: 4px 4px 0 var(--edge);
  transform: translate(-50%, 170%); transition: transform 0.6s var(--spring);
}
.dock.is-visible { transform: translate(-50%, 0); }
.dock .btn { height: 48px; }
.dock .btn--line { border-color: var(--line-strong); }

/* ---------- Legal page (privacy) ---------- */
.legal { padding-block: clamp(72px, 10vw, 120px) var(--section-y); }
.legal__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.legal__date { margin-top: 16px; font-size: 14.5px; color: var(--ink-3); }
.legal__grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 2px; }
.legal__toc a { padding: 8px 14px; border-radius: 10px; font-size: 15px; font-weight: 550; color: var(--ink-2); text-decoration: none; transition: background 0.2s, color 0.2s; }
.legal__toc a:hover { background: var(--paper-2); color: var(--ink); }
.legal__toc a.is-current { background: var(--volt); color: #16171a; font-weight: 650; }
.legal__body { max-width: 68ch; }
.legal__body section { scroll-margin-top: calc(var(--nav-h) + 32px); }
.legal__body section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.legal__body h2 { font-family: "Archivo", sans-serif; font-size: clamp(1.5rem, 1.3rem + 0.7vw, 1.9rem); font-weight: 800; font-stretch: 85%; line-height: 1.1; }
.legal__body p, .legal__body ul { margin-top: 14px; color: var(--ink-2); }
.legal__body strong { color: var(--ink); font-weight: 650; }
.legal__body a:not(.btn) { color: var(--ink); text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal__body ul li { position: relative; padding-left: 22px; margin-top: 10px; }
.legal__body ul li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--volt); }
.legal__uses li { padding: 16px 18px 16px 44px !important; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.legal__uses li::before { left: 20px !important; top: 1.5em !important; }
.legal__callout { margin-top: 24px; padding: 24px; border-radius: 22px; background: var(--card); border: 2px solid var(--edge); box-shadow: 5px 5px 0 var(--edge); }
.legal__callout p { margin-top: 0 !important; }
.legal__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.page-legal .nav { background: color-mix(in srgb, var(--paper) 92%, transparent) !important; color: var(--ink) !important; border-color: var(--line) !important; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav__links { display: none; }
  .nav__phone { margin-left: auto; }
  .nav__toggle { display: block; margin-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero__grid, .panel, .about, .reviews__grid, .outage__grid, .book { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero__media { aspect-ratio: 4 / 4.2; max-height: none; }
  .switch-wrap { left: auto; right: 14px; top: auto; bottom: 16px; justify-items: end; }  /* keeps the pendants and face clear */
  .switch { width: 96px; height: 96px; }
  .switch__hint { flex-direction: row-reverse; padding: 5px 8px 5px 12px; }
  .switch__hint i { transform: scaleX(-1); }
  .tips { grid-template-columns: 1fr 1fr; }
  .tip, .tip:nth-child(3), .tip:nth-child(4), .tip--big, .tip--volt, .tip--photo { grid-column: auto; grid-row: auto; }
  .tip--big, .tip--volt, .tip--photo { grid-column: 1 / -1; }
  .wiring__steps { grid-template-columns: 1fr; row-gap: 36px; }
  .wstep, .wstep:nth-child(odd), .wstep:nth-child(even), .wstep:nth-child(3), .wstep:nth-child(4) { grid-column: 1; justify-self: start; flex-direction: row; text-align: left; margin-top: 0; max-width: none; }
  .about { padding-top: 24px; }
  .sticker { top: -6px; }
  .stack { height: 360px; margin-right: 48px; }
  .form { position: static; }
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .nav__phone, .nav__cta { display: none; }
  .nav__toggle { margin-left: auto; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .hero__stage { margin-top: 20px; }
  .help__head .tabs { display: flex; width: 100%; }
  .tabs__btn { flex: 1; justify-content: center; padding: 0 6px; font-size: 14.5px; }
  .tabs__btn i { display: none; }
  .tips { grid-template-columns: 1fr; }
  .tip { padding: 24px; min-height: 0; }
  .tip--photo { padding: 0; min-height: 420px; }
  .tip--photo img { object-position: 72% 30%; }
  .tip--photo::after { background: linear-gradient(0deg, rgb(10 10 12 / 0.94) 0%, rgb(10 10 12 / 0.78) 45%, rgb(10 10 12 / 0.1) 80%); }
  .tip__over { padding: 24px; }
  .tip__fig { margin-top: 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .rev { padding: 24px; }
  .stack { height: 380px; }
  .footer { padding-bottom: 96px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { display: none; }
  .page-legal .footer { padding-bottom: 0; }
  .dock { display: flex; }
  .film__frame { box-shadow: 5px 5px 0 var(--edge); }
  .film__cta { padding: 5px; }
  .film__label, .film__time { display: none; }
  .film__play { width: 46px; height: 46px; font-size: 18px; }
  .film-modal__inner { width: 100vw; }
  .film-modal video, .film-modal__end { border-radius: 0; }
  .film-modal__close { top: -66px; right: 12px; }
}

/* ==========================================================================
   Reduced motion: lights already on, nothing pins, loops or flickers.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
}
