/* ============================================================
   VOLT & VALE ELECTRICAL — NEWPORT
   Brutalist control panel. Near-black, volt yellow, hairlines.
   ============================================================ */

:root {
  --ink: #0A0A0B;
  --volt: #E8FF2B;
  --white: #F4F4F2;
  --panel: #1B1B1E;
  --line: rgba(244, 244, 242, 0.12);
  --line-soft: rgba(244, 244, 242, 0.07);
  --dim: rgba(244, 244, 242, 0.55);
  --dimmer: rgba(244, 244, 242, 0.38);
  --glow: 0 0 18px rgba(232, 255, 43, 0.45), 0 0 64px rgba(232, 255, 43, 0.16);
  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

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

html {
  background: var(--ink);
  scrollbar-color: var(--panel) var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.5;
  min-width: 360px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--volt); color: var(--ink); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }

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

/* ---------- utilities ---------- */

.micro {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.7;
}

.readout {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--volt);
}

.skip-link {
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  transform: translateY(-110%);
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
  will-change: transform;
}
.site-nav.scrolled {
  background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem var(--pad);
  border-right: 1px solid var(--line-soft);
}
.brand-mark {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  background: var(--volt);
  padding: 0.25rem 0.45rem;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--dim);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.5rem);
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  color: var(--dim);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--volt);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--white); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-cta {
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: var(--volt);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: background 0.25s ease, color 0.25s ease;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--white); }

/* ---------- page shell + current line ---------- */

.page { position: relative; }

#main { position: relative; z-index: 1; }

.current-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.current-line polyline {
  fill: none;
  stroke: var(--volt);
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
#currentPath { stroke-width: 1.5; opacity: 0.8; }
#currentGlow { stroke-width: 7; opacity: 0.13; }

.pulse-dot {
  position: absolute;
  top: 0; left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 10px 3px rgba(232, 255, 43, 0.65), 0 0 44px 14px rgba(232, 255, 43, 0.22);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------- section scaffolding ---------- */

section {
  position: relative;
  min-height: 100svh;
  padding: clamp(5rem, 10vh, 8rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sec-head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 5vh, 4rem);
}
.sec-head .rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.sec-head .idx { color: var(--volt); }

.sec-title {
  font-size: clamp(2.4rem, 6.5vw, 5.75rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

/* striplight flicker glow state */
.lit { text-shadow: var(--glow); }

.texture {
  position: absolute;
  inset: 0;
  background-image: url("../assets/hero.jpg");
  background-size: cover;
  pointer-events: none;
}

/* ---------- 01 hero ---------- */

.hero {
  justify-content: space-between;
  padding-top: 6.5rem;
  overflow: hidden;
  background: var(--ink); /* solid fallback */
}

.hero-bg {
  position: absolute;
  inset: -4%;
  background: url("../assets/hero.jpg") center 38% / cover no-repeat;
  opacity: 0.36;
  filter: saturate(0.72) contrast(1.12) brightness(0.85);
  will-change: transform;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.82) 0%, rgba(10, 10, 11, 0.25) 45%, rgba(10, 10, 11, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 10, 11, 0.65) 0%, rgba(10, 10, 11, 0) 60%);
}

.hero-scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    180deg,
    rgba(244, 244, 242, 0.025) 0px,
    rgba(244, 244, 242, 0.025) 1px,
    transparent 1px,
    transparent 4px
  );
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 0; left: 0;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 255, 43, 0.13) 0%, rgba(232, 255, 43, 0) 65%);
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

.hero-top {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-top .readout { font-size: 0.8125rem; }

.hero-title {
  position: relative;
  font-size: clamp(2.7rem, 11.5vw, 11rem);
  line-height: 0.92;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: auto 0 0;
}
.hw { display: block; }
.js .hw { opacity: 0; }
.no-motion .hw { opacity: 1; }
.hw-volt { color: var(--volt); }

.hero-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-top: clamp(1.5rem, 4vh, 3rem);
  flex-wrap: wrap;
}
.hero-sub {
  max-width: 34rem;
  color: var(--dim);
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
}
.scroll-hint { color: var(--volt); white-space: nowrap; }

/* ---------- 02 capabilities ---------- */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.cap-item {
  position: relative;
  padding: clamp(1.5rem, 2.5vw, 2.5rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: clamp(14rem, 28vh, 19rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow: hidden;
}
.ci-1 { grid-column: span 7; }
.ci-2 { grid-column: span 5; }
.ci-3 { grid-column: span 4; }
.ci-4 { grid-column: span 8; }
.ci-5 { grid-column: span 6; }
.ci-6 { grid-column: span 6; }

.ci-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--volt);
}
.cap-item h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  text-transform: uppercase;
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}
.cap-item p:last-child {
  color: var(--dimmer);
  font-size: 0.9375rem;
  max-width: 32rem;
  margin-top: auto;
}

/* travelling current underline */
.cap-item::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--volt) 0%, rgba(232, 255, 43, 0.35) 100%);
  box-shadow: 0 0 14px rgba(232, 255, 43, 0.5);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}
.cap-item:hover::after { transform: scaleX(1); }
.cap-item:hover h3 { color: var(--volt); transform: translateX(0.35rem); }

/* ---------- 03 ev ---------- */

.ev { background: var(--ink); overflow: hidden; }
.ev .texture {
  background-position: 85% 20%;
  opacity: 0.07;
  filter: grayscale(1) brightness(0.9) contrast(1.3);
}

.ev-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
}

.ev-title {
  font-size: clamp(4rem, 14vw, 14rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px var(--volt);
}
@supports not (-webkit-text-stroke: 2px #000) {
  .ev-title { color: var(--volt); }
}
.charged .ev-title {
  color: var(--volt);
  -webkit-text-stroke: 2px var(--volt);
  text-shadow: var(--glow);
}

.ev-sub { color: var(--dim); max-width: 28rem; margin-bottom: 2rem; }

.ev-specs li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.ev-specs li:last-child { border-bottom: 1px solid var(--line); }
.ev-specs .readout { font-size: 1.1rem; }

.ev-meter { position: relative; margin-top: clamp(2.5rem, 7vh, 5rem); }
.ev-pct {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.4rem, 7vw, 6rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 1rem;
}
.charged .ev-pct { color: var(--volt); text-shadow: var(--glow); }
.ev-pct-sym { color: var(--volt); font-size: 0.5em; margin-left: 0.15em; }

.ev-bar {
  height: 3px;
  background: var(--panel);
  overflow: hidden;
}
.ev-bar i {
  display: block;
  height: 100%;
  background: var(--volt);
  box-shadow: 0 0 16px rgba(232, 255, 43, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}
.ev-meter-label { margin-top: 0.85rem; }

/* ---------- 04 certainty ---------- */

.certainty { background: var(--panel); overflow: hidden; }
.certainty .texture {
  background-position: 20% 70%;
  opacity: 0.06;
  filter: grayscale(1) brightness(0.7) contrast(1.5);
}

.manifesto {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 9.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.mword { display: block; }
.mword.safe.lit { color: var(--volt); }

.manifesto-sub {
  position: relative;
  color: var(--dim);
  max-width: 36rem;
  margin-top: clamp(2rem, 5vh, 3.5rem);
  margin-left: auto;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
}

/* ---------- 05 process ---------- */

.steps {
  position: relative;
  border-left: 1px solid var(--line);
  margin-left: clamp(0.25rem, 2vw, 2rem);
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.75rem, 4vh, 3rem) 0 clamp(1.75rem, 4vh, 3rem) clamp(1.75rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line-soft);
  max-width: 46rem;
}
.step:last-child { border-bottom: none; }

.node {
  position: absolute;
  left: -7px;
  top: clamp(2.1rem, 4.4vh, 3.4rem);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--dimmer);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.node.lit {
  background: var(--volt);
  border-color: var(--volt);
  box-shadow: 0 0 12px 3px rgba(232, 255, 43, 0.6), 0 0 40px 10px rgba(232, 255, 43, 0.18);
}

.step-idx {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  color: var(--volt);
  margin-bottom: 0.6rem;
}
.step h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.step p:last-child { color: var(--dimmer); max-width: 36rem; }

/* ---------- 06 proof ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin-bottom: clamp(3rem, 8vh, 5.5rem);
}
.stat {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat dt { margin-bottom: 1.1rem; }
.stat-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.9rem, 4.2vw, 3.6rem);
  line-height: 1;
  color: var(--volt);
}

.testimonials {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}
.testimonial {
  border-left: 2px solid var(--volt);
  padding-left: clamp(1.25rem, 2.5vw, 2rem);
}
.testimonial.t-offset { margin-top: clamp(2rem, 7vh, 5rem); }
.testimonial blockquote p {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  line-height: 1.4;
  font-weight: 500;
}
.testimonial figcaption { margin-top: 1.25rem; }

/* ---------- 07 areas ---------- */

.area-list { border-top: 1px solid var(--line); }

.area-row {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(0.85rem, 2vh, 1.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.ar-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--volt);
  letter-spacing: 0.12em;
}
.ar-name {
  font-size: clamp(2.1rem, 7vw, 6.25rem);
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  transition: color 0.3s ease, transform 0.45s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}
.ar-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--dim);
  white-space: nowrap;
}
.area-row:hover .ar-name {
  color: var(--volt);
  transform: translateX(1rem);
  text-shadow: var(--glow);
}

.areas-note { margin-top: 2rem; }

/* ---------- 08 contact / footer ---------- */

.contact {
  background: var(--panel);
  justify-content: flex-end;
  gap: clamp(2rem, 5vh, 3.5rem);
}

.cta-title {
  font-size: clamp(3rem, 10.5vw, 10rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  align-items: baseline;
  gap: clamp(1.5rem, 4vw, 4rem);
  flex-wrap: wrap;
}
.phone {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(1.7rem, 4.5vw, 3.75rem);
  color: var(--volt);
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease, text-shadow 0.3s ease;
}
.phone:hover, .phone:focus-visible {
  border-color: var(--volt);
  text-shadow: var(--glow);
}
.mail {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  letter-spacing: 0.06em;
  color: var(--dim);
  transition: color 0.3s ease;
}
.mail:hover, .mail:focus-visible { color: var(--volt); }

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  border-top: 1px solid var(--line);
  padding-top: clamp(1.75rem, 4vh, 3rem);
}
.foot-col h3 { margin-bottom: 0.85rem; font-weight: 400; }
.foot-col p { color: var(--dimmer); font-size: 0.9375rem; line-height: 1.7; }

.niceic-badge {
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid var(--volt);
  padding: 1.1rem 1.3rem;
}
.niceic-badge .readout { font-size: 1.3rem; letter-spacing: 0.18em; }

.foot-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.5rem;
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .ci-1, .ci-2, .ci-3, .ci-4 { grid-column: span 6; }
  .ev-layout { grid-template-columns: 1fr; align-items: start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nav-links { display: none; }
  .nav-brand { border-right: none; }
  .brand-name { display: none; }

  .cap-grid { grid-template-columns: 1fr; }
  .ci-1, .ci-2, .ci-3, .ci-4, .ci-5, .ci-6 { grid-column: span 1; }
  .cap-item { min-height: 0; }

  .testimonials { grid-template-columns: 1fr; }
  .testimonial.t-offset { margin-top: 0; }

  .area-row { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ar-code { grid-column: 2; }

  .hero-top { flex-direction: column; gap: 0.5rem; }
  .manifesto-sub { margin-left: 0; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .sec-head { gap: 0.75rem; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .js .hw { opacity: 1; }
  .pulse-dot, .hero-glow { display: none; }
}
