/* Amped Electric Inc: "The 2 AM phone call". Night-blue dark, dusk violet accent. */

:root {
  --night: #0d1524;
  --night-deep: #070d18;
  --panel: #152238;
  --hairline: #2b3d5e;
  --paper: #ece4d0;
  --muted: #8f99ae;
  --accent: #8a63f2;
  --accent-soft: rgba(138, 99, 242, 0.14);
  --accent-glow: rgba(138, 99, 242, 0.45);
  --porch: #f5dfae;
  --radius: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.44rem);
  --step-2: clamp(1.44rem, 1.25rem + 0.95vw, 1.9rem);
  --step-3: clamp(1.75rem, 1.4rem + 1.75vw, 2.5rem);
  --step-4: clamp(2.2rem, 1.7rem + 2.6vw, 3.4rem);
  --step-6: clamp(3rem, 1.8rem + 6vw, 6rem);
  --hero: clamp(3.4rem, 2rem + 9vw, 8.5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

/* grain */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(7, 13, 24, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.wordmark {
  font-family: "Erica One", system-ui, sans-serif;
  font-size: 1.5rem; letter-spacing: 0.02em; color: var(--paper); text-decoration: none;
}
.wm-dot { color: var(--accent); }
.site-nav { display: flex; gap: 26px; }
.site-nav a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 600;
  transition: color 180ms ease-out;
}
.site-nav a:hover { color: var(--paper); }
.header-call {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--night-deep); background: var(--accent);
  font-weight: 800; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem);
  font-variant-numeric: tabular-nums; text-decoration: none;
  padding: 10px 20px; border-radius: 6px;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out;
}
.header-call:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--accent-glow); }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero-ambient {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 8%, rgba(138, 99, 242, 0.16), transparent 65%),
    radial-gradient(560px 380px at 88% 90%, rgba(43, 61, 94, 0.5), transparent 60%);
}
.hero-grid {
  position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 22px;
}
.porch-dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  background: var(--porch); opacity: 0.25;
  transition: opacity 600ms ease-out, box-shadow 600ms ease-out;
}
.porch-dot.lit { opacity: 1; box-shadow: 0 0 14px 4px rgba(245, 223, 174, 0.55); }
.hero-title {
  font-family: "Erica One", system-ui, sans-serif;
  font-size: var(--hero); line-height: 0.98; letter-spacing: 0.01em;
  text-wrap: balance; margin-bottom: 24px; color: var(--paper);
}
.glow-line { color: var(--accent); text-shadow: 0 0 34px var(--accent-glow); }
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.mask > span { display: inline-block; transform: translateY(112%); }
.js .mask > span { animation: rise 0.75s var(--ease) forwards; }
.mask:nth-child(1) > span { animation-delay: 0.05s; }
.hero-title .mask:nth-of-type(2) > span { animation-delay: 0.16s; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { font-size: var(--step-1); color: var(--muted); max-width: 34ch; margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; text-decoration: none;
  padding: 16px 30px; border-radius: 6px; min-height: 56px;
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, background 180ms ease-out;
}
.btn-primary { background: var(--accent); color: var(--night-deep); font-variant-numeric: tabular-nums; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-ghost { border: 1px solid var(--hairline); color: var(--paper); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.trust-row {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-size: 0.92rem; color: var(--muted); font-weight: 600;
}
.trust-row li { display: flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

.hero-photo { margin: 0; position: relative; }
.hero-photo img {
  border-radius: var(--radius); border: 1px solid var(--hairline);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(138, 99, 242, 0.25), 0 0 44px rgba(138, 99, 242, 0.18);
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
}
.hero-photo figcaption, .promise-photo figcaption {
  font-size: 0.75rem; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em;
}

/* ---------- stats ---------- */
.stats { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--night-deep); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; }
.stat { text-align: center; }
.stat-num {
  display: block; font-family: "Erica One", system-ui, sans-serif;
  font-size: var(--step-4); color: var(--accent); font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px var(--accent-glow);
}
.stat-label { color: var(--muted); font-size: 0.92rem; font-weight: 600; }

/* ---------- cord divider ---------- */
.cord-divider { padding: 8px 0; }
.cord-divider svg { display: block; width: 100%; height: 44px; }
.cord-path {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; opacity: 0.75;
  stroke-dasharray: 4700; stroke-dashoffset: 4700;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.cord-divider.drawn .cord-path { stroke-dashoffset: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section-title {
  font-family: "Erica One", system-ui, sans-serif;
  font-size: var(--step-4); line-height: 1.04; text-wrap: balance;
  margin-bottom: 14px; letter-spacing: 0.01em;
}
.section-title em { font-family: Georgia, "Times New Roman", serif; font-style: italic; color: var(--accent); }
.lede { color: var(--muted); font-size: var(--step-1); max-width: 62ch; margin-bottom: 8px; }

.service-rows { list-style: none; margin-top: 40px; border-top: 1px solid var(--hairline); }
.service-rows li {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px; align-items: baseline;
  padding: 24px 8px; border-bottom: 1px solid var(--hairline);
  transition: background 180ms ease-out, padding-left 180ms ease-out;
}
.service-rows li:hover { background: var(--accent-soft); padding-left: 18px; }
.row-num { font-family: "Erica One", system-ui, sans-serif; color: var(--accent); font-size: 1.25rem; }
.service-rows h3 { font-size: var(--step-2); line-height: 1.15; margin-bottom: 4px; }
.service-rows p { color: var(--muted); }
.rows-note { margin-top: 22px; color: var(--muted); font-weight: 600; }

/* promise */
.promise { background: var(--night-deep); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.promise-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.promise-photo { margin: 0; }
.promise-photo img { border-radius: var(--radius); border: 1px solid var(--hairline); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.promise-list { list-style: none; margin: 26px 0 30px; display: grid; gap: 12px; }
.promise-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 600; }
.promise-list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }

/* review */
.pull-quote { margin-top: 40px; border-left: 3px solid var(--accent); padding: 8px 0 8px 30px; }
.pull-quote p { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: var(--step-2); line-height: 1.4; margin-bottom: 16px; }
.pull-quote footer { color: var(--muted); font-size: 0.92rem; }

/* photo band */
.photo-band { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.js .photo-band img { animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
.photo-band-scrim { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(7, 13, 24, 0.55), rgba(7, 13, 24, 0.72)); }
.photo-band-line {
  position: relative; z-index: 1; text-align: center;
  font-family: "Erica One", system-ui, sans-serif; font-size: var(--step-3);
  max-width: 22ch; text-wrap: balance; padding: 0 24px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

/* faq */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--hairline); border-radius: 10px; background: var(--panel); overflow: hidden; }
.faq summary {
  cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.6rem; color: var(--accent); flex: none;
  transition: transform 200ms ease-out;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* final cta */
.final-cta { position: relative; background: var(--night-deep); border-top: 1px solid var(--hairline); padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; overflow: hidden; }
.wipe {
  position: absolute; inset: 0; background: var(--accent); opacity: 0.1;
  transform: scaleX(0); transform-origin: left;
}
.js .wipe.go { animation: wipesweep 1.1s var(--ease) forwards; }
@keyframes wipesweep { 0% { transform: scaleX(0); } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.eyebrow-light { justify-content: center; }
.cta-title { font-family: "Erica One", system-ui, sans-serif; font-size: var(--step-6); line-height: 1; text-wrap: balance; margin-bottom: 26px; }
.cta-title em { font-family: Georgia, serif; font-style: italic; color: var(--accent); }
.cta-number {
  display: inline-block; font-variant-numeric: tabular-nums; font-weight: 800;
  font-size: clamp(2rem, 1.4rem + 4.5vw, 4rem); color: var(--accent);
  text-decoration: none; margin-bottom: 30px; letter-spacing: 0.01em;
  text-shadow: 0 0 40px var(--accent-glow);
  transition: transform 180ms ease-out;
}
.cta-number:hover { transform: scale(1.03); }
.btn-big { font-size: 1.2rem; padding: 18px 46px; }
.cta-note { margin-top: 24px; color: var(--muted); }

/* footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 54px 0 110px; background: var(--night); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-word { font-family: "Erica One", system-ui, sans-serif; font-size: 1.6rem; margin-bottom: 12px; }
.site-footer p { color: var(--muted); font-size: 0.95rem; }
.footer-head { font-weight: 800; color: var(--paper); margin-bottom: 8px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer a { color: var(--paper); font-weight: 700; }
.footer-fine { margin-top: 10px; font-size: 0.85rem; }

/* mobile call bar */
.mobile-callbar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 55;
  display: none; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--night-deep);
  font-weight: 800; font-size: 1.1rem; text-decoration: none; font-variant-numeric: tabular-nums;
  padding: 16px; border-radius: 10px; min-height: 56px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55), 0 0 24px var(--accent-glow);
}

/* scroll reveals */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity 550ms var(--ease), transform 550ms var(--ease); }

/* responsive */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo img { aspect-ratio: 16 / 10; }
  .promise-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .mobile-callbar { display: inline-flex; }
  .header-call span { display: none; }
  .header-call { padding: 10px 14px; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .mask > span { animation: none; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.in { transition: none; }
  .js .photo-band img { animation: none; }
  .js .wipe.go { animation: none; }
  .cord-path { transition: none; stroke-dashoffset: 0; }
  .porch-dot { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
