/* ============================================================
   OMEGA ELECTRIC — design system
   Navy night-grid + bulb gold. Dark is home; light is daytime.
   ============================================================ */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  src: url('../assets/fonts/Archivo-Italic-var.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../assets/fonts/PlexMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plex Mono';
  src: url('../assets/fonts/PlexMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #070f22;
  --bg2: #0a1730;
  --panel: #0d1d3a;
  --panel-2: #102246;
  --line: rgba(158, 186, 255, 0.14);
  --line-strong: rgba(158, 186, 255, 0.26);
  --ink: #edf3ff;
  --muted: #a3b4d6;
  --faint: #6e7fa6;

  --gold: #ffc42e;
  --gold-2: #ffde7a;
  --amber: #e8a200;
  --accent-text: #ffc42e;
  --on-gold: #14264c;

  --blue: #3d7bff;
  --teal: #3ecfae;
  --red: #ff6b57;

  --sky-a: #050b1a;
  --sky-b: #0b1b3f;
  --sky-c: #172c60;
  --city: #081226;
  --city-far: #0e1d3f;
  --wire: #5f7ab8;
  --win-off: rgba(160, 185, 235, 0.13);
  --win-on: #ffd463;
  --mascot-shadow: drop-shadow(0 18px 34px rgba(4, 10, 26, 0.65)) drop-shadow(0 0 26px rgba(255, 196, 46, 0.22));

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 10px 30px rgba(2, 8, 22, 0.45);
  --glow-gold: 0 6px 26px rgba(255, 196, 46, 0.28);

  --font-d: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --font-m: 'Plex Mono', 'SFMono-Regular', Consolas, monospace;

  --nav-h: 76px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.9, 0.28, 1);
}

[data-theme="light"] {
  --bg: #faf6ec;
  --bg2: #f1ebdc;
  --panel: #ffffff;
  --panel-2: #fbf8f0;
  --line: rgba(24, 44, 90, 0.14);
  --line-strong: rgba(24, 44, 90, 0.26);
  --ink: #10203e;
  --muted: #4d5f84;
  --faint: #8492b0;

  --gold: #f5ae00;
  --gold-2: #ffcf4d;
  --amber: #d99500;
  --accent-text: #966600;
  --on-gold: #17284e;

  --sky-a: #dcebff;
  --sky-b: #f4ecdc;
  --sky-c: #ffe9bd;
  --city: #16294e;
  --city-far: #b9c8e6;
  --wire: #46598a;
  --win-off: rgba(12, 27, 58, 0.32);
  --win-on: rgba(12, 27, 58, 0.32);
  --mascot-shadow: drop-shadow(0 20px 30px rgba(23, 40, 78, 0.28));

  --shadow-1: 0 12px 30px rgba(35, 48, 84, 0.10);
  --glow-gold: 0 6px 22px rgba(217, 149, 0, 0.30);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-d);
  font-size: 17px;
  line-height: 1.65;
  font-variation-settings: 'wdth' 100;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  transition: background-color 0.45s ease, color 0.45s ease;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
section { scroll-margin-top: calc(var(--nav-h) + 8px); }

.mono {
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed; top: -60px; left: 18px; z-index: 300;
  background: var(--gold); color: var(--on-gold);
  padding: 10px 16px; border-radius: 10px; font-weight: 700;
  transition: top 0.25s ease;
}
.skip-link:focus-visible { top: 14px; }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 220;
  pointer-events: none;
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--gold-2));
  transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 750; font-variation-settings: 'wdth' 106;
  border-radius: var(--radius-sm);
  padding: 13px 24px; font-size: 15.5px; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease,
              background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  will-change: transform;
  white-space: nowrap;
}
.btn-solid {
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  color: var(--on-gold);
  box-shadow: var(--glow-gold);
}
.btn-solid:hover { box-shadow: 0 10px 34px rgba(255, 196, 46, 0.42); }
[data-theme="light"] .btn-solid:hover { box-shadow: 0 10px 30px rgba(217, 149, 0, 0.42); }
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--ink); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); display: inline-block; flex: none;
  box-shadow: 0 0 0 0 rgba(62, 207, 174, 0.5);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(62, 207, 174, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(62, 207, 174, 0); }
  100% { box-shadow: 0 0 0 0 rgba(62, 207, 174, 0); }
}

.stars { color: var(--gold); letter-spacing: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  width: min(1320px, calc(100% - 40px));
  margin-inline: auto;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 26px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mascot { width: 44px; height: auto; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35)); }
[data-theme="light"] .brand-mascot { filter: drop-shadow(0 3px 6px rgba(23, 40, 78, 0.25)); }
.brand-name { display: flex; flex-direction: column; line-height: 1; font-style: italic; text-transform: uppercase; }
.brand-name b { font-weight: 870; font-variation-settings: 'wdth' 122; font-size: 17px; letter-spacing: 0.02em; }
.brand-name i { font-weight: 720; font-variation-settings: 'wdth' 122; font-size: 9.5px; letter-spacing: 0.34em; color: var(--accent-text); margin-top: 3px; }

.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a {
  font-size: 15px; font-weight: 560; color: var(--muted);
  transition: color 0.2s ease;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.nav-phone { display: flex; align-items: center; gap: 9px; }
.nav-phone-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 740; font-size: 15px; font-variant-numeric: tabular-nums; }
.nav-phone-text small { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* Theme switch — a tiny wall switch */
.theme-switch { display: flex; align-items: center; gap: 8px; position: relative; }
.switch-plate {
  width: 46px; height: 26px; border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--bg2);
  display: inline-flex; align-items: center; padding: 3px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.switch-rocker {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateX(0);
  transition: transform 0.32s var(--ease);
}
[data-theme="light"] .switch-rocker { transform: translateX(20px); }
.switch-text { font-family: var(--font-m); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.theme-switch:hover .switch-plate { border-color: var(--gold); }

.nav-burger { display: none; width: 40px; height: 40px; position: relative; }
.nav-burger span {
  position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 18px 24px 26px;
}
.mobile-menu.openm { display: block; }
.mobile-menu > a {
  display: block; padding: 13px 2px; font-size: 18px; font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.mobile-menu-cta { display: grid; gap: 12px; margin-top: 18px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-sky {
  position: absolute; inset: 0; z-index: -4;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 58%, var(--sky-c) 100%);
  transition: background 0.5s ease;
}
[data-theme="light"] .hero-sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 420px at 78% 18%, rgba(255, 214, 110, 0.55), transparent 70%);
}
#fxCanvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }

.skyline {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: -3;
  height: clamp(200px, 30vh, 300px);
  pointer-events: none;
}
.skyline-svg { width: 100%; height: 100%; display: block; }
.bld { fill: var(--city); }
.bfar { fill: var(--city-far); opacity: 0.55; }
[data-theme="light"] .bfar { opacity: 0.8; }
.mast, .pyl { stroke: var(--city); stroke-width: 3; fill: none; stroke-linecap: round; }
.pylb { stroke: var(--city); stroke-width: 1.6; fill: none; }
.wire { stroke: var(--wire); stroke-width: 1.5; fill: none; opacity: 0.7; }
.beacon { fill: var(--red); opacity: 0.35; }
.skyline.live .beacon { animation: beacon 2.6s ease-in-out infinite; }
@keyframes beacon { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

.win { fill: var(--win-off); }
.skyline .win.lit {
  fill: var(--win-on);
  transition: fill 0.5s ease var(--d, 0s);
}
html.js .skyline:not(.live) .win.lit { fill: var(--win-off); }

/* wire pulse once the city is live (dark mode only — daytime wires stay quiet) */
[data-theme="dark"] .skyline.live .wire {
  stroke-dasharray: 10 150;
  stroke-dashoffset: 0;
  animation: wirepulse 5.5s linear infinite;
  stroke: var(--gold);
  opacity: 0.5;
}
@keyframes wirepulse { to { stroke-dashoffset: -320; } }

.hero-haze {
  position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg) 92%);
}

.mascot-wrap {
  position: absolute; z-index: 1;
  top: 18.5%; right: 6.5%;
  width: clamp(190px, 26vw, 445px);
  pointer-events: none;
  filter: var(--mascot-shadow);
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0) rotate(var(--mr, 0deg)) scale(var(--ms, 1));
  will-change: transform;
}
html.js .mascot-wrap { opacity: 0; }
html.js .mascot-wrap.go { opacity: 1; }
.mascot-wrap img { width: 100%; height: auto; }

.hero-inner {
  position: relative; z-index: 2;
  padding: calc(var(--nav-h) + 46px) 0 120px;
  max-width: 660px;
  margin-left: max(calc((100vw - var(--container)) / 2), 24px);
  margin-right: auto;
}
.hero-eyebrow { margin: 0 0 22px; }
.hero-eyebrow .mono { color: var(--accent-text); }

.hero-title {
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 7vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.012em;
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-right: 0.1em; }
.hero-title .w {
  display: inline-block;
  font-variation-settings: 'wdth' 116, 'wght' 800;
}
html.js .hero-title .w {
  opacity: 0;
  transform: translateY(0.55em);
  font-variation-settings: 'wdth' 68, 'wght' 420;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease),
              font-variation-settings 1.05s var(--ease);
  transition-delay: var(--wd, 0s);
}
html.js .hero.hero-ready .hero-title .w {
  opacity: 1;
  transform: translateY(0);
  font-variation-settings: 'wdth' 116, 'wght' 800;
}
.gold-i { color: var(--accent-text); }
[data-theme="dark"] .gold-i { text-shadow: 0 0 34px rgba(255, 196, 46, 0.4); }

.hero-sub { color: var(--muted); font-size: 18px; max-width: 55ch; margin-bottom: 34px; }
html.js .hero-sub, html.js .hero-cta, html.js .hero-proof, html.js .hero-eyebrow {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.js .hero.hero-ready .hero-sub { opacity: 1; transform: none; transition-delay: 0.55s; }
html.js .hero.hero-ready .hero-cta { opacity: 1; transform: none; transition-delay: 0.7s; }
html.js .hero.hero-ready .hero-proof { opacity: 1; transform: none; transition-delay: 0.85s; }
html.js .hero.hero-ready .hero-eyebrow { opacity: 1; transform: none; transition-delay: 0.1s; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 26px; color: var(--muted); font-size: 14px; font-weight: 550; }
.hero-proof li { display: flex; align-items: center; gap: 9px; }
.hero-proof li + li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); margin-right: 4px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--faint); z-index: 2;
}
.scroll-cue .mono { font-size: 10px; }
.scroll-cue-track {
  width: 22px; height: 34px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue-dot { width: 4px; height: 7px; border-radius: 3px; background: var(--gold); animation: cue 1.9s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--bg2);
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
  font-family: var(--font-m); font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track i { color: var(--gold); font-style: normal; font-family: var(--font-d); font-weight: 800; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections (shared) ---------- */
.section { padding-block: clamp(92px, 11vw, 148px); position: relative; }
.section-head { max-width: 730px; margin-bottom: clamp(44px, 6vw, 70px); }
.eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow .mono { color: var(--accent-text); }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); flex: none; }
.section-title {
  font-size: clamp(2rem, 4.3vw, 3.35rem);
  font-weight: 820; font-variation-settings: 'wdth' 106;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--accent-text); font-variation-settings: 'wdth' 106; }
.section-sub { color: var(--muted); font-size: 17.5px; max-width: 58ch; }

/* ---------- Services ---------- */
.services { background: var(--bg); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 60px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  transform-style: preserve-3d;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--gold-2));
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); background: var(--panel-2); }
.card:hover::before { transform: scaleX(1); }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg * { stroke-dasharray: 100; stroke-dashoffset: 0; }
.card:hover .card-icon svg * { animation: draw 0.8s var(--ease) forwards; }
@keyframes draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.card h3 { font-size: 18.5px; font-weight: 740; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card-tag {
  position: absolute; left: 24px; bottom: 20px;
  color: var(--faint); font-size: 10.5px;
  border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px;
}

/* ---------- Why ---------- */
.why { background: var(--bg2); }
.why-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: clamp(44px, 6vw, 84px); align-items: start; }
.why-points { display: grid; gap: 22px; }
.why-points li {
  position: relative; padding-left: 38px;
  color: var(--muted); font-size: 16px; line-height: 1.6;
}
.why-points li b { color: var(--ink); font-weight: 720; }
.why-points li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4.5 13.5h6L10 22l9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M13 2 4.5 13.5h6L10 22l9-12h-6z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.why-stats {
  position: sticky; top: calc(var(--nav-h) + 30px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: grid; grid-template-columns: 1fr 1fr;
}
.stat { padding: 26px 22px; }
.stat:nth-child(1) { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.stat:nth-child(2) { border-bottom: 1px solid var(--line); }
.stat:nth-child(3) { border-right: 1px solid var(--line); }
.stat-num {
  display: block;
  font-style: italic; font-weight: 830; font-variation-settings: 'wdth' 112;
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  color: var(--accent-text);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat .mono { color: var(--faint); font-size: 10.5px; }

/* ---------- Process ---------- */
.process-wrap { position: relative; max-width: 780px; padding-left: 78px; }
.spine { position: absolute; left: 26px; top: 6px; width: 8px; height: calc(100% - 12px); overflow: visible; }
.spine-bg { stroke: var(--line-strong); stroke-width: 2; }
.spine-fill {
  stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 100; stroke-dashoffset: 100;
  filter: drop-shadow(0 0 6px rgba(255, 196, 46, 0.55));
}
[data-theme="light"] .spine-fill { filter: none; }
.steps { display: grid; gap: clamp(44px, 6vw, 66px); }
.step { position: relative; }
.step-node {
  position: absolute; left: -56px; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--bg);
  transition: border-color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.step.energized .step-node {
  border-color: var(--gold); background: var(--gold);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 18%, transparent), 0 0 18px rgba(255, 196, 46, 0.55);
}
[data-theme="light"] .step.energized .step-node { box-shadow: 0 0 0 5px color-mix(in srgb, var(--gold) 22%, transparent); }
.step-num { color: var(--accent-text); display: inline-block; margin-bottom: 10px; }
.step h3 { font-size: 22px; font-weight: 770; margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { color: var(--muted); max-width: 56ch; }

/* ---------- Reviews ---------- */
.reviews { background: var(--bg2); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.review:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow-1); }
.review .stars { font-size: 15px; }
.review blockquote { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.review figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.review figcaption b { font-weight: 730; font-size: 15px; }
.review figcaption .mono { color: var(--faint); font-size: 10.5px; }

/* ---------- Emergency (always night) ---------- */
.emergency {
  position: relative;
  background:
    radial-gradient(700px 300px at 82% 0%, rgba(255, 196, 46, 0.10), transparent 65%),
    linear-gradient(180deg, #0a1730, #070f22);
  border-block: 1px solid rgba(158, 186, 255, 0.16);
  padding: clamp(58px, 7vw, 84px) 0;
}
.emergency-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.emergency-copy { display: flex; gap: 24px; align-items: flex-start; max-width: 720px; }
.emergency .bolt { width: 52px; height: 52px; flex: none; fill: #ffc42e; filter: drop-shadow(0 0 16px rgba(255, 196, 46, 0.6)); margin-top: 4px; }
.emergency.flicker .bolt { animation: flick 5.2s linear infinite; }
@keyframes flick {
  0%, 6.5%, 9%, 43%, 45.5%, 100% { opacity: 1; }
  7.5%, 44.5% { opacity: 0.25; }
  8.2%, 45% { opacity: 0.7; }
}
.emergency h2 {
  color: #edf3ff;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 820; font-variation-settings: 'wdth' 108;
  letter-spacing: -0.015em; margin-bottom: 12px;
}
.emergency h2 em { font-style: italic; color: #ffc42e; }
.emergency p { color: #a3b4d6; max-width: 60ch; }
.emergency .btn-solid { flex: none; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(44px, 6vw, 84px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 30px); margin-bottom: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 21px 2px;
  font-weight: 660; font-size: 17.5px;
  transition: color 0.2s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-text); }
.faq-x { position: relative; width: 16px; height: 16px; flex: none; }
.faq-x::before, .faq-x::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  background: var(--gold); border-radius: 2px;
  transition: transform 0.3s var(--ease);
}
.faq-x::before { width: 16px; height: 2px; }
.faq-x::after { width: 2px; height: 16px; }
.faq-item[open] .faq-x::after { transform: rotate(90deg); }
.faq-item .faq-body { overflow: hidden; }
.faq-item p { color: var(--muted); padding: 2px 2px 22px; max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { background: var(--bg2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(44px, 6vw, 84px); align-items: start; }
.contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; gap: 7px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 14px; padding: 19px 20px;
  transition: border-color 0.25s ease, transform 0.25s var(--ease);
}
a.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card .mono { color: var(--faint); font-size: 10.5px; }
.contact-card b { font-weight: 730; font-size: 15.5px; letter-spacing: -0.005em; overflow-wrap: anywhere; }

.quote-form {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(26px, 3.4vw, 38px);
  box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--font-m); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field .opt { color: var(--faint); text-transform: none; letter-spacing: 0.02em; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  color: var(--ink);
  padding: 13px 15px;
  font: inherit; font-size: 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 96px; }
.field select {
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffc42e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-note { color: var(--faint); font-size: 13px; margin-top: 14px; }
.quote-form .btn { margin-top: 6px; }
.quote-form.sent .form-row, .quote-form.sent .field,
.quote-form.sent .btn, .quote-form.sent .form-note { display: none; }
.form-success { text-align: left; padding: 14px 4px; }
.form-success h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.form-success h3 span { color: var(--accent-text); font-style: italic; }
.form-success p, .form-success a { color: var(--muted); }
.form-success a { color: var(--accent-text); font-weight: 700; }
.form-error { color: var(--red); font-size: 14.5px; margin-top: 14px; }
.form-error a { color: var(--red); font-weight: 700; text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); overflow: hidden; }
.footer-watermark {
  position: absolute; right: -4vw; bottom: -21vw;
  font-size: 46vw; line-height: 1;
  font-style: italic; font-weight: 870; font-variation-settings: 'wdth' 70;
  color: var(--ink); opacity: 0.035;
  pointer-events: none; user-select: none;
}
[data-theme="light"] .footer-watermark { opacity: 0.05; }
.footer-grid {
  position: relative;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  padding: clamp(60px, 8vw, 92px) 0 54px;
}
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 18px; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col .mono { color: var(--accent-text); margin-bottom: 6px; }
.footer-col a { color: var(--muted); font-size: 15px; transition: color 0.2s ease; width: fit-content; }
.footer-col a:hover { color: var(--ink); }
.footer-hours { color: var(--faint); font-size: 13.5px; }
.footer-bottom {
  position: relative;
  border-top: 1px solid var(--line);
  padding: 22px 0 30px;
  display: flex; flex-wrap: wrap; gap: 10px 30px; justify-content: space-between;
  color: var(--faint); font-size: 13.5px;
}
.footer-bottom .mono { color: var(--accent-text); font-size: 10.5px; }

/* ---------- Cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; border-radius: 50%;
  opacity: 0; transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent);
  transition: opacity 0.3s ease, width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), border-color 0.3s ease;
}
body.cursor-on .cursor-dot, body.cursor-on .cursor-ring { opacity: 1; }
body.cursor-hover .cursor-ring {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: var(--gold);
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-on { cursor: none; }
  body.cursor-on a, body.cursor-on button, body.cursor-on summary,
  body.cursor-on input, body.cursor-on select, body.cursor-on textarea, body.cursor-on label { cursor: none; }
}

/* ---------- Sparks (theme toggle / node bursts) ---------- */
.spark {
  position: fixed; z-index: 500; pointer-events: none;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 8px rgba(255, 196, 46, 0.8);
}

/* ---------- Reveal on scroll ---------- */
html.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  html.js .reveal, html.js .hero-sub, html.js .hero-cta, html.js .hero-proof, html.js .hero-eyebrow { opacity: 1; transform: none; }
  html.js .hero-title .w { opacity: 1; transform: none; font-variation-settings: 'wdth' 116, 'wght' 800; }
  html.js .mascot-wrap { opacity: 1; }
  .marquee-track { animation: none; }
  .spine-fill { stroke-dashoffset: 0; }
  .skyline .win.lit, html.js .skyline .win.lit { fill: var(--win-on); }
  .scroll-cue-dot, .live-dot { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .card { padding-bottom: 56px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .switch-text { display: none; }
  .why-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .why-stats { position: static; }
  .faq-grid .section-head { position: static; }
  .mascot-wrap { top: 15%; right: 5%; width: clamp(180px, 30vw, 330px); }
}
@media (max-width: 860px) {
  .nav-phone { display: none; }
  .emergency-inner { flex-direction: column; align-items: flex-start; }
  .hero-inner { padding-top: calc(var(--nav-h) + 26vw); padding-bottom: 150px; max-width: 100%; margin-right: 24px; }
  .mascot-wrap { top: calc(var(--nav-h) + 10px); right: 6%; width: clamp(150px, 38vw, 240px); }
  .reviews-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-actions .btn { display: none; }
  .nav-inner { gap: 14px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .process-wrap { padding-left: 46px; }
  .spine { left: 8px; }
  .step-node { left: -42px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-watermark { font-size: 76vw; bottom: -30vw; }
  .hero-cta .btn { width: 100%; }
  .scroll-cue { display: none; }
}
@media (max-width: 480px) {
  .container { width: calc(100% - 40px); }
  .hero-inner { margin-left: 20px; margin-right: 20px; }
  .stat { padding: 20px 16px; }
  .hero-proof { gap: 8px 18px; }
}
