/* demo-electrician-1 — "Dusk to light" */

:root {
  --ground: #0c0e11;
  --panel: #14171c;
  --panel-2: #181c22;
  --ink: #f3efe7;
  --muted: #a8aeb8;
  --line: rgba(243, 239, 231, 0.14);
  --accent: #ffb13d;
  --accent-dim: rgba(255, 177, 61, 0.14);
  --curtain: #07080a;
  --radius: 2px;
  --gutter: clamp(16px, 2.5vw, 32px);
  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --t-mega: clamp(2.6rem, 0.9rem + 8vw, 8.4rem);
  --t-xl: clamp(2rem, 1.2rem + 3.6vw, 4.6rem);
  --t-l: clamp(1.5rem, 1.2rem + 1.6vw, 2.6rem);
  --t-m: clamp(1.15rem, 1.05rem + 0.5vw, 1.5rem);
  --t-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --t-small: 0.8125rem;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f);
  font-size: var(--t-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--accent); color: #0c0e11; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p a, li a.inline { text-decoration: underline; text-underline-offset: 0.2em; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--accent); color: #0c0e11; padding: 10px 16px;
  font-weight: 600; border-radius: var(--radius);
  translate: 0 -200%; transition: translate 0.3s var(--ease);
}
.skip:focus-visible { translate: 0 0; }

.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
.display {
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.k { font-variant-numeric: tabular-nums; }
.meta {
  font-size: var(--t-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.lead { font-size: var(--t-m); line-height: 1.45; color: var(--ink); max-width: 36ch; }
.body-copy { color: var(--muted); max-width: 54ch; }

/* ---------- header ---------- */
.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.site-head.scrolled {
  background: rgba(12, 14, 17, 0.82);
  backdrop-filter: blur(14px);
  border-color: var(--line);
}
.site-head__row {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 32px);
  padding-block: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: 118%; text-transform: uppercase; letter-spacing: 0; font-size: 1rem; line-height: 1.1; }
.brand svg { width: 22px; height: 22px; flex: none; }
.brand .bolt { fill: var(--accent); }
.site-nav { display: flex; gap: clamp(14px, 1.8vw, 28px); margin-left: auto; }
.site-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted); padding-block: 4px;
  background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat;
  transition: background-size 0.45s var(--ease), color 0.3s;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.head-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.site-nav + .head-actions { margin-left: 0; }
.tel { font-weight: 600; font-size: 0.9rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.tel svg { width: 14px; height: 14px; fill: var(--accent); }
.tel:hover, .tel:focus-visible { color: var(--accent); }

/* buttons */
.btn {
  position: relative; isolation: isolate; overflow: clip;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  border: 1px solid var(--accent); color: var(--accent);
  transition: color 0.3s;
}
.btn .fill {
  position: absolute; inset: 0; z-index: -1; background: var(--accent);
  clip-path: circle(0% at 50% 50%);
}
.btn.is-filled, .btn:active { color: #0c0e11; }
.btn:active .fill { clip-path: circle(150% at 50% 50%); }
.btn--solid { background: var(--accent); color: #0c0e11; border-color: var(--accent); }
.btn--solid .fill { background: var(--ink); }
.btn--solid.is-filled, .btn--solid:active { color: #0c0e11; }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost .fill { background: var(--ink); }
.btn--ghost.is-filled, .btn--ghost:active { color: #0c0e11; }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:focus-visible { color: #0c0e11; }
  .btn:hover .fill, .btn:focus-visible .fill { clip-path: none; }
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: clip; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 115%; object-fit: cover; object-position: 62% 40%;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(12, 14, 17, 0.96) 0%, rgba(12, 14, 17, 0.45) 42%, rgba(12, 14, 17, 0.25) 100%),
    linear-gradient(100deg, rgba(12, 14, 17, 0.75) 0%, rgba(12, 14, 17, 0) 60%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: clamp(90px, 14vh, 150px) clamp(48px, 8vh, 90px); }
.hero h1 { font-size: var(--t-mega); max-width: 12ch; }
.hero h1 .wline { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .w { display: inline-block; }
.hero h1 .on {
  color: var(--accent);
  text-shadow: 0 0 calc(var(--glow, 0.5) * 34px) rgba(255, 177, 61, 0.55);
}
.hero__sub { margin-top: 24px; max-width: 46ch; color: var(--muted); font-size: var(--t-m); line-height: 1.45; }
.hero__ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot {
  margin-top: clamp(32px, 6vh, 64px); display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.scroll-hint { display: inline-flex; align-items: center; gap: 10px; }
.scroll-hint .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 18px; overflow: clip; background: var(--curtain); }
.marquee__track { display: flex; gap: 0; width: max-content; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.marquee__group span { font-weight: 700; font-stretch: 118%; text-transform: uppercase; font-size: clamp(1rem, 1.6vw, 1.4rem); }
.marquee__group .sep { color: var(--accent); font-size: 0.8em; }

/* ---------- section scaffold ---------- */
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(36px, 5vw, 72px); }
.section__head h2 { font-size: var(--t-xl); max-width: 16ch; }
.reveal-line { display: block; overflow: clip; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- services (pinned chapters) ---------- */
.services { background: var(--ground); }
.services__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 72px); align-items: start; }
.services__stage {
  position: sticky; top: 90px; aspect-ratio: 3 / 3.4; max-height: calc(100svh - 120px);
  border-radius: var(--radius); overflow: clip; background: var(--panel);
}
.services__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 0.7s var(--ease), scale 1.2s var(--ease);
  scale: 1.06;
}
.services__stage img.on { opacity: 1; scale: 1; }
.services__stage::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12, 14, 17, 0.55), transparent 45%);
}
.stage__meter {
  position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; gap: 8px;
}
.stage__meter i {
  width: 26px; height: 4px; border-radius: 2px; background: rgba(243, 239, 231, 0.25);
  transition: background 0.4s;
}
.stage__meter i.on { background: var(--accent); box-shadow: 0 0 10px rgba(255, 177, 61, 0.7); }
.chapter { padding-block: clamp(28px, 4vw, 56px); border-top: 1px solid var(--line); }
.chapter:first-of-type { border-top: 0; padding-top: 0; }
.chapter__no {
  font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent);
  font-size: 0.9rem; letter-spacing: 0.06em;
}
.chapter h3 { font-size: var(--t-l); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 0.95; margin-top: 10px; max-width: 14ch; }
.chapter p { margin-top: 16px; color: var(--muted); max-width: 46ch; }
.chapter ul { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chapter li {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 0.85rem; color: var(--ink); background: var(--panel);
}
.chapter__img { display: none; }

/* hero video sits over the still, hidden until it can play */
.hero__media video { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s; }
.hero__media video.playing { opacity: 1; }

/* duo cards (EV + generators) */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); margin-top: clamp(40px, 5vw, 72px); }
.duo__card { position: relative; display: block; border-radius: var(--radius); overflow: clip; aspect-ratio: 4 / 3.1; }
.duo__card img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease); }
.duo__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(12, 14, 17, 0.75), transparent 55%); }
.duo__label { position: absolute; left: 20px; bottom: 18px; z-index: 2; display: grid; gap: 4px; }
.duo__label strong { font-weight: 800; font-stretch: 118%; text-transform: uppercase; font-size: var(--t-m); }
@media (hover: hover) {
  .duo__card:hover img, .duo__card:focus-visible img { scale: 1.05; }
}
@media (max-width: 700px) { .duo { grid-template-columns: 1fr; } }

/* cursor-aware light on cards & chapters (desktop) */
@media (hover: hover) and (pointer: fine) {
  .lightcard { position: relative; }
  .lightcard::before {
    content: ""; position: absolute; inset: -1px; pointer-events: none; border-radius: inherit;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), var(--accent-dim), transparent 70%);
    opacity: 0; transition: opacity 0.4s;
  }
  .lightcard:hover::before { opacity: 1; }
}

/* ---------- counters ---------- */
.counters { background: var(--curtain); border-block: 1px solid var(--line); }
.counters__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gutter); padding-block: clamp(44px, 6vw, 80px); }
.counter .k { font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 800; font-stretch: 118%; line-height: 1; }
.counter .k em { font-style: normal; color: var(--accent); }
.counter p { margin-top: 10px; color: var(--muted); font-size: 0.9rem; max-width: 20ch; }
.counter--ph .k { color: var(--muted); }

/* ---------- emergency band ---------- */
.emergency { background: var(--accent); color: #140d02; overflow: clip; }
.emergency__inner { padding-block: clamp(64px, 9vw, 130px); }
.emergency h2 { font-size: var(--t-xl); max-width: 22ch; }
.emergency .display-line { font-size: var(--t-xl); }
.emergency p { margin-top: 20px; max-width: 52ch; color: rgba(20, 13, 2, 0.75); font-weight: 500; }
.emergency__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn--dark { border-color: #140d02; color: #140d02; }
.btn--dark .fill { background: #140d02; }
.btn--dark.is-filled, .btn--dark:active { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .btn--dark:hover, .btn--dark:focus-visible { color: var(--accent); }
}
.emergency .meta { color: rgba(20, 13, 2, 0.65); }

/* ---------- process (signature spine) ---------- */
.process { background: var(--ground); }
.process__spine { position: relative; max-width: 980px; margin-inline: auto; }
.process__svg {
  position: absolute; left: 50%; top: 0; height: 100%; width: 4px; translate: -50% 0;
  overflow: visible;
}
.process__svg .rail { stroke: rgba(243, 239, 231, 0.12); stroke-width: 2; }
.process__svg .live { stroke: var(--accent); stroke-width: 2.5; filter: drop-shadow(0 0 6px rgba(255, 177, 61, 0.8)); }
.step {
  position: relative; width: calc(50% - 44px); padding: clamp(20px, 2.6vw, 32px);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: clamp(36px, 5vw, 64px);
  transition: border-color 0.5s, box-shadow 0.5s;
}
.step:nth-child(odd) { margin-left: auto; }
.step::before {
  content: ""; position: absolute; top: 34px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--panel-2); border: 2px solid rgba(243, 239, 231, 0.3);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.step:nth-child(odd)::before { left: -51px; }
.step:nth-child(even)::before { right: -51px; }
.step.lit { border-color: rgba(255, 177, 61, 0.45); }
.step.lit::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px rgba(255, 177, 61, 0.8); }
.step h3 { font-size: var(--t-m); font-weight: 700; display: flex; align-items: baseline; gap: 12px; }
.step h3 .no { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 0.85em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 0.95rem; }

/* ---------- area band ---------- */
.area { position: relative; min-height: 72svh; display: flex; align-items: center; overflow: clip; }
.area__media { position: absolute; inset: 0; }
.area__media img { width: 100%; height: 125%; object-fit: cover; }
.area__scrim { position: absolute; inset: 0; background: linear-gradient(to right, rgba(12, 14, 17, 0.88) 0%, rgba(12, 14, 17, 0.35) 65%, rgba(12, 14, 17, 0.15)); }
.area__inner { position: relative; z-index: 2; padding-block: clamp(64px, 9vw, 120px); }
.area h2 { font-size: var(--t-xl); max-width: 14ch; }
.area p { margin-top: 18px; color: var(--ink); max-width: 44ch; }
.area .ph-note {
  margin-top: 26px; display: inline-block; border: 1px dashed rgba(243, 239, 231, 0.4);
  padding: 12px 18px; border-radius: var(--radius); color: var(--muted); font-size: 0.875rem;
  background: rgba(12, 14, 17, 0.55);
}

/* ---------- reviews placeholder ---------- */
.reviews__ph {
  border: 1px dashed rgba(243, 239, 231, 0.35); border-radius: var(--radius);
  padding: clamp(40px, 6vw, 80px); text-align: center; background: var(--panel);
}
.reviews__ph strong { display: block; font-size: var(--t-l); font-weight: 800; font-stretch: 118%; text-transform: uppercase; line-height: 1; }
.reviews__ph p { margin-top: 14px; color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* ---------- faq ---------- */
.faq { background: var(--curtain); border-block: 1px solid var(--line); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 90px); }
.faq h2 { font-size: var(--t-xl); position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 22px; font-weight: 600; font-size: var(--t-m);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 18px; height: 18px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; inset: 50% auto auto 0; width: 100%; height: 2px; background: var(--accent);
  translate: 0 -50%; transition: rotate 0.35s var(--ease);
}
.faq summary .plus::after { rotate: 90deg; }
.faq details[open] summary .plus::after { rotate: 0deg; }
.faq details p { color: var(--muted); padding-bottom: 24px; max-width: 58ch; }
.faq summary:hover, .faq summary:focus-visible { color: var(--accent); }

/* ---------- quote ---------- */
.quote__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 90px); align-items: start; }
.quote h2 { font-size: var(--t-xl); }
.quote .aside p { margin-top: 18px; color: var(--muted); max-width: 40ch; }
.quote .aside .tel-big {
  margin-top: 28px; display: inline-flex; align-items: center; gap: 12px;
  font-size: var(--t-l); font-weight: 800; font-stretch: 118%; color: var(--ink);
}
.quote .aside .tel-big:hover, .quote .aside .tel-big:focus-visible { color: var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--t-small); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 13px 14px; width: 100%;
  transition: border-color 0.3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__note { grid-column: 1 / -1; color: var(--muted); font-size: 0.8rem; }
.form__thanks { display: none; border: 1px solid rgba(255, 177, 61, 0.4); background: var(--panel); border-radius: var(--radius); padding: clamp(32px, 5vw, 56px); }
.form__thanks strong { font-size: var(--t-l); font-weight: 800; font-stretch: 118%; text-transform: uppercase; display: block; line-height: 1; }
.form__thanks p { margin-top: 14px; color: var(--muted); }
.quote.sent .form { display: none; }
.quote.sent .form__thanks { display: block; }

/* ---------- footer ---------- */
.site-foot { background: var(--curtain); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 110px); }
.foot-mark { font-size: clamp(2.2rem, 7.4vw, 7.6rem); line-height: 0.95; }
.foot-mark .amp { color: var(--accent); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; margin-top: clamp(32px, 5vw, 64px); padding-bottom: 28px; }
.foot-grid nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-grid a { color: var(--muted); background: linear-gradient(currentColor 0 0) left bottom / 0% 1px no-repeat; transition: background-size 0.45s var(--ease), color 0.3s; }
.foot-grid a:hover, .foot-grid a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.foot-legal { border-top: 1px solid var(--line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between; color: var(--muted); font-size: 0.8rem; }

/* ---------- 404 ---------- */
.err { min-height: 100svh; display: grid; place-content: center; text-align: center; padding: var(--gutter); }
.err h1 { font-size: clamp(6rem, 24vw, 20rem); line-height: 1; }
.err h1 span { color: var(--accent); text-shadow: 0 0 40px rgba(255, 177, 61, 0.5); }
.err p { margin-top: 10px; color: var(--muted); }
.err .btn { margin-top: 32px; justify-self: center; }

/* ---------- reveals (JS adds .in) ---------- */
.js [data-reveal] { opacity: 0; translate: 0 36px; }
.js [data-reveal].in { opacity: 1; translate: 0 0; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .site-nav { display: none; }
  .services__grid { grid-template-columns: 1fr; }
  .services__stage { display: none; }
  .chapter__img { display: block; border-radius: var(--radius); overflow: clip; margin-top: 20px; aspect-ratio: 4 / 3; }
  .chapter__img img { width: 100%; height: 100%; object-fit: cover; }
  .counters__grid { grid-template-columns: repeat(2, 1fr); gap: 32px var(--gutter); }
  .faq__grid, .quote__grid { grid-template-columns: 1fr; }
  .faq h2 { position: static; }
  .process__svg { left: 10px; }
  .step { width: calc(100% - 44px); margin-left: 44px !important; }
  .step:nth-child(odd)::before, .step:nth-child(even)::before { left: -40px; right: auto; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .hero__foot { flex-direction: column; align-items: flex-start; gap: 10px; }
  .tel span.hide-s { display: none; }
  .btn { padding: 13px 20px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.6rem); }
}

/* reduced motion: stop marquee, show everything */
@media (prefers-reduced-motion: reduce) {
  .marquee__track { transform: none !important; flex-wrap: wrap; width: auto; }
  .hero__media video { display: none; }
  .services__stage img { transition: none; }
}
