/* ==========================================================================
   DEBupte Electric, Inc. — site styles
   Palette pulled from the logo: deep navy field + lightning-bolt yellow.
   Type: Big Shoulders Display (signage), Archivo (body), JetBrains Mono (spec labels)
   ========================================================================== */

:root {
  --navy-950: #050e22;
  --navy-900: #081735;
  --navy-800: #0b2150;
  --navy-700: #0e2f72;
  --navy-600: #12409a;
  --volt: #ffcf1a;
  --volt-deep: #e9a800;
  --volt-soft: #fff4c7;
  --paper: #f5f2ea;
  --paper-2: #ebe6d9;
  --ink: #0a1430;
  --ink-soft: #3c4663;
  --line: rgba(10, 20, 48, 0.14);
  --line-dark: rgba(255, 255, 255, 0.12);

  --font-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --font-body: "Archivo", "Helvetica Neue", Helvetica, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0 0 0.45em;
}
h1 { font-size: clamp(3rem, 9vw, 7.5rem); font-weight: 900; }
h2 { font-size: clamp(2.3rem, 5.5vw, 4.25rem); }
h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.05; }

:focus-visible { outline: 3px solid var(--volt); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--volt); color: var(--ink); padding: 10px 16px;
  font-weight: 700; text-decoration: none; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

.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;
}

/* ---------- Small type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: currentColor;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--volt); }

.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.on-dark .lede, .hero .lede, .page-hero .lede, .section--dark .lede, .section--deep .lede { color: rgba(255, 255, 255, 0.78); }

.volt { color: var(--volt); }
.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px currentColor;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--volt); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px;
  font-family: var(--font-display);
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  color: var(--fg); background: var(--bg);
  border: 2px solid var(--bg);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  box-shadow: 4px 4px 0 var(--navy-950);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--navy-950); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--navy-950); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--ghost {
  --bg: transparent; --fg: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--volt); color: var(--volt); box-shadow: none; transform: none; }
.btn--navy { --bg: var(--navy-800); --fg: #fff; box-shadow: 4px 4px 0 var(--volt); }
.btn--navy:hover { box-shadow: 6px 6px 0 var(--volt); }

.text-link {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 3px solid var(--volt); padding-bottom: 2px;
}
.text-link svg { width: 18px; height: 18px; flex: none; }
.text-link:hover { color: var(--navy-600); }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 38px;
}
.topbar a { text-decoration: none; color: #fff; }
.topbar a:hover { color: var(--volt); }
.topbar span, .topbar a { white-space: nowrap; }
.topbar__left { display: flex; gap: 22px; }
.topbar__right { display: flex; gap: 22px; }
.topbar .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--volt); margin-right: 8px; box-shadow: 0 0 0 0 rgba(255, 207, 26, 0.7); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 207, 26, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255, 207, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 207, 26, 0); }
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 23, 53, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line-dark);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.brand img { width: 58px; height: 58px; transition: transform 0.5s var(--ease); }
.brand:hover img { transform: rotate(-12deg); }
.brand__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.65rem;
  letter-spacing: 0.02em; text-transform: uppercase; line-height: 0.9;
}
.brand__name span { color: var(--volt); }
.brand__sub {
  display: block; font-family: var(--font-mono); font-size: 0.62rem;
  letter-spacing: 0.2em; color: rgba(255, 255, 255, 0.6); margin-top: 5px; font-weight: 500;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav__list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.nav__list a {
  display: block; padding: 10px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
}
.nav__list a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px;
  background: var(--volt); transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav__list a:hover { color: #fff; }
.nav__list a:hover::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: #fff; }
.nav__cta { margin-left: 14px; padding: 12px 18px; font-size: 1.05rem; box-shadow: none; }
.nav__cta:hover { box-shadow: none; transform: none; background: #fff; border-color: #fff; }

.nav-toggle {
  display: none;
  background: none; border: 2px solid rgba(255, 255, 255, 0.3); border-radius: var(--radius);
  width: 48px; height: 48px; padding: 0; color: #fff; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 22px; height: 2px; background: currentColor;
  transform: translateX(-50%); transition: transform 0.25s var(--ease), opacity 0.2s;
  content: "";
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); background: var(--volt); }
.nav-open .nav-toggle span::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); background: var(--volt); }

/* ---------- Hazard stripe divider ---------- */
.stripe {
  height: 14px;
  background: repeating-linear-gradient(-45deg, var(--volt) 0 18px, var(--navy-950) 18px 36px);
}

/* ---------- Circuit-trace background texture ---------- */
.traces {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' fill='none' stroke='%231a3d86' stroke-width='1.4'%3E%3Cpath d='M0 40h70l20 20h60l20-20h70M0 140h40l30 30h90l20-20h60M120 0v40M200 60v80l20 20v80M40 140v100M90 60v50l-20 20'/%3E%3Ccircle cx='120' cy='40' r='4' fill='%231a3d86'/%3E%3Ccircle cx='200' cy='60' r='4'/%3E%3Ccircle cx='40' cy='140' r='4' fill='%231a3d86'/%3E%3Ccircle cx='160' cy='170' r='4'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(18, 64, 154, 0.55), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-950));
  color: #fff;
  padding: clamp(64px, 10vw, 130px) 0 clamp(150px, 16vw, 210px);
}
.hero::after {
  /* the diagonal split from the logo */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(70px, 9vw, 130px);
  background: var(--paper);
  clip-path: polygon(0 100%, 100% 8%, 100% 100%);
}
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(32px, 5vw, 70px); align-items: center; }
.hero h1 { margin-bottom: 0.3em; }
.hero h1 .line { display: block; }
.hero h1 .since {
  font-size: 0.42em; letter-spacing: 0.06em; color: var(--volt);
  display: flex; align-items: center; gap: 16px; margin-bottom: 10px;
}
.hero h1 .since::after { content: ""; flex: 0 0 72px; height: 4px; background: var(--volt); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.hero__bolt {
  position: absolute; z-index: 1; right: -6%; top: 6%; width: min(56vw, 760px); opacity: 0.11;
  transform: rotate(-8deg);
}

/* staggered page-load reveal */
.rise { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease) forwards; }
.rise.d1 { animation-delay: 0.08s; }
.rise.d2 { animation-delay: 0.2s; }
.rise.d3 { animation-delay: 0.34s; }
.rise.d4 { animation-delay: 0.5s; }
.rise.d5 { animation-delay: 0.66s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Nameplate (signature element) ---------- */
.nameplate {
  position: relative;
  background: linear-gradient(160deg, #d9dde6 0%, #b9c0cf 45%, #e6e9ef 55%, #aab2c3 100%);
  color: var(--navy-950);
  border-radius: 6px;
  padding: 30px 30px 24px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 -2px 0 rgba(0, 0, 0, 0.15),
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.25);
  transform: rotate(1.5deg);
}
.nameplate::before {
  /* brushed-metal grain */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 3px);
}
.nameplate__screw {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f2f4f8, #7d879b 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}
.nameplate__screw::after {
  content: ""; position: absolute; left: 2px; right: 2px; top: 50%; height: 2px; margin-top: -1px;
  background: rgba(0, 0, 0, 0.45); transform: rotate(35deg);
}
.nameplate__screw.tl { top: 10px; left: 10px; }
.nameplate__screw.tr { top: 10px; right: 10px; }
.nameplate__screw.bl { bottom: 10px; left: 10px; }
.nameplate__screw.br { bottom: 10px; right: 10px; }
.nameplate__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  border-bottom: 2px solid var(--navy-950); padding-bottom: 12px; margin: 0 6px 14px;
}
.nameplate__title {
  font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; line-height: 0.95;
  text-transform: uppercase;
}
.nameplate__title small { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 600; letter-spacing: 0.18em; margin-top: 6px; }
.nameplate__warn {
  flex: none; width: 46px; height: 40px;
}
.nameplate dl { margin: 0 6px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-family: var(--font-mono); font-size: 0.8rem; }
.nameplate dt { text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; opacity: 0.7; }
.nameplate dd { margin: 0; font-weight: 700; text-align: right; }
.nameplate__big {
  margin: 18px 6px 0; padding: 14px 16px; background: var(--navy-950); color: var(--volt);
  border-radius: 3px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.nameplate__big strong { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 0.8; }
.nameplate__big span { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; text-align: right; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--tight { padding: clamp(50px, 7vw, 90px) 0; }
.section--dark { background: var(--navy-900); color: #fff; overflow: hidden; }
.section--deep { background: var(--navy-950); color: #fff; overflow: hidden; }
.section--paper2 { background: var(--paper-2); }
.section__head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(40px, 6vw, 70px); }
.section__head p { margin: 0; }

/* stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 22px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.85; color: var(--navy-800); display: flex; align-items: flex-start; gap: 2px;
}
.stat__num sup { font-size: 0.45em; color: var(--volt-deep); margin-top: 0.1em; }
.stat__label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 12px; }

/* split feature (commercial/residential teasers) */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.split__panel {
  position: relative; overflow: hidden; padding: clamp(48px, 7vw, 90px) clamp(24px, 5vw, 70px);
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff; text-decoration: none;
  isolation: isolate;
}
.split__panel--com { background: var(--navy-800); }
.split__panel--res { background: var(--navy-950); }
.split__panel .split__icon {
  position: absolute; z-index: -1; right: -40px; top: -20px; width: 70%; max-width: 380px;
  color: rgba(255, 255, 255, 0.06); transition: transform 0.7s var(--ease), color 0.4s;
}
.split__panel:hover .split__icon { transform: rotate(-6deg) scale(1.06); color: rgba(255, 207, 26, 0.12); }
.split__num { font-family: var(--font-mono); color: var(--volt); font-size: 0.8rem; letter-spacing: 0.2em; margin-bottom: auto; padding-bottom: 60px; }
.split__panel h3 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); line-height: 0.92; }
.split__panel p { color: rgba(255, 255, 255, 0.75); max-width: 44ch; }
.split__more {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.08em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 10px; color: var(--volt); margin-top: 8px;
}
.split__more svg { width: 20px; transition: transform 0.25s var(--ease); }
.split__panel:hover .split__more svg { transform: translateX(6px); }

/* quote block */
.quote {
  position: relative; max-width: 980px; margin: 0 auto; text-align: left;
}
.quote__mark {
  font-family: var(--font-display); font-weight: 900; font-size: 12rem; line-height: 0.6;
  color: var(--volt); display: block; height: 80px;
}
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 700; text-transform: none;
  font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.12; letter-spacing: 0.005em;
}
.quote figcaption {
  margin-top: 28px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  display: flex; align-items: center; gap: 14px;
}
.quote figcaption::before { content: ""; width: 40px; height: 2px; background: var(--volt); }

/* why-us / feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.card {
  padding: 34px 28px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background 0.3s;
}
.card:nth-child(3n) { border-right: 0; }
.card:hover { background: #fff; }
.card__icon {
  width: 54px; height: 54px; border-radius: 50%; background: var(--navy-800); color: var(--volt);
  display: grid; place-items: center; margin-bottom: 22px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.65rem; }
.card p { color: var(--ink-soft); margin: 0; font-size: 1rem; }
.card__idx { position: absolute; top: 30px; right: 26px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); opacity: 0.6; }
.section--dark .card, .section--deep .card { border-color: var(--line-dark); }
.section--dark .cards, .section--deep .cards { border-top-color: var(--volt); }
.section--dark .card:hover, .section--deep .card:hover { background: rgba(255, 255, 255, 0.04); }
.section--dark .card p, .section--deep .card p { color: rgba(255, 255, 255, 0.72); }
.section--dark .card__idx, .section--deep .card__idx { color: rgba(255, 255, 255, 0.6); }
.section--dark .card__icon, .section--deep .card__icon { background: var(--volt); color: var(--navy-950); }

/* service list (commercial/residential pages) */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.service {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px; padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service:nth-child(1), .service:nth-child(2) { border-top: 2px solid var(--ink); }
.service__no { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--volt-deep); }
.service h3 { font-size: 1.55rem; margin-bottom: 6px; }
.service p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

/* process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 900; font-size: 4.2rem; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--volt); display: block; margin-bottom: 14px;
}
.step::after { content: ""; position: absolute; top: 0; left: 0; right: -20px; height: 2px; background: linear-gradient(90deg, var(--volt), rgba(255, 207, 26, 0.15)); }
.step:last-child::after { right: 0; }
.step h3 { font-size: 1.5rem; }
.step p { color: rgba(255, 255, 255, 0.72); font-size: 0.98rem; margin: 0; }

/* page hero (interior pages) */
.page-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 90% 0%, rgba(18, 64, 154, 0.5), transparent 60%),
    var(--navy-900);
  padding: clamp(60px, 9vw, 110px) 0 clamp(110px, 13vw, 160px);
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(50px, 6vw, 90px);
  background: var(--paper); clip-path: polygon(0 100%, 100% 10%, 100% 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); max-width: 14ch; }
.page-hero .lede { margin-top: 18px; }
.crumbs { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); margin-bottom: 22px; }
.crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.crumbs a:hover { color: var(--volt); }
.crumbs span { margin: 0 10px; color: var(--volt); }

/* two-column prose */
.prose-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(36px, 6vw, 90px); align-items: start; }
.prose h2 { margin-bottom: 0.4em; }
.prose p { color: var(--ink-soft); }
.prose strong { color: var(--ink); }

/* checklist */
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 3px;
  background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23050e22' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* timeline (about) */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 118px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--volt), rgba(255, 207, 26, 0.1)); }
.timeline li { display: grid; grid-template-columns: 100px 1fr; gap: 46px; padding: 0 0 38px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 111px; top: 10px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy-950); border: 3px solid var(--volt);
}
.timeline__year { font-family: var(--font-display); font-weight: 900; font-size: 2.2rem; line-height: 1; color: var(--volt); text-align: right; }
.timeline h3 { font-size: 1.5rem; margin-bottom: 6px; }
.timeline p { margin: 0; color: rgba(255, 255, 255, 0.72); }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 5vw, 70px); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.info-list li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: center; }
.info-list .ico { width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: var(--volt); display: grid; place-items: center; }
.info-list .ico svg { width: 22px; height: 22px; }
.info-list small { display: block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.info-list a, .info-list strong { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-decoration: none; letter-spacing: 0.02em; line-height: 1.15; display: inline-block; }
.info-list a:hover { color: var(--navy-600); }
.info-list address { font-style: normal; font-weight: 600; line-height: 1.45; }

/* form */
.form-panel {
  background: #fff; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px);
  box-shadow: 10px 10px 0 var(--navy-800); border: 2px solid var(--navy-800);
}
.form-panel h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 14px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper);
  transition: border-color 0.2s, background 0.2s; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); background: #fff; }
.field input:user-invalid, .field textarea:user-invalid { border-color: #c0392b; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 10px 16px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--paper);
  font-family: var(--font-body); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 600;
}
.radio-row input { accent-color: var(--navy-800); width: 16px; height: 16px; }
.radio-row label:has(input:checked) { border-color: var(--navy-800); background: var(--volt-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 18px 0 0; }
.form-actions { margin-top: 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.alert {
  display: none; padding: 16px 18px; border-radius: var(--radius); margin-bottom: 22px; font-weight: 600;
  border-left: 6px solid;
}
.alert.show { display: block; }
.alert--ok { background: #e8f6ec; border-color: #1e8e4a; color: #10502a; }
.alert--err { background: #fdecea; border-color: #c0392b; color: #7a1d14; }

/* testimonials */
.tgrid { columns: 3 320px; column-gap: 24px; }
.tcard {
  break-inside: avoid; margin: 0 0 24px; background: #fff; padding: 30px 28px 26px;
  border-radius: var(--radius); border: 1px solid var(--line); position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tcard:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(5, 14, 34, 0.45); }
.tcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--volt); border-radius: var(--radius) 0 0 var(--radius); }
.tcard--dark { background: var(--navy-800); color: #fff; border-color: transparent; }
.tcard--dark p { color: rgba(255, 255, 255, 0.85); }
.tcard__stars { display: flex; gap: 3px; color: var(--volt-deep); margin-bottom: 14px; }
.tcard--dark .tcard__stars { color: var(--volt); }
.tcard__stars svg { width: 18px; height: 18px; }
.tcard blockquote { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.6; }
.tcard figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcard cite { font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tag { font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 9px; border-radius: 2px; background: var(--paper-2); color: var(--ink-soft); }
.tcard--dark .tag { background: rgba(255, 255, 255, 0.1); color: var(--volt); }

.filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter button {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 20px; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--radius); cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.filter button[aria-pressed="true"], .filter button:hover { background: var(--ink); color: var(--volt); }

/* CTA band */
.cta {
  position: relative; overflow: hidden; background: var(--volt); color: var(--navy-950);
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta::before {
  content: ""; position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; opacity: 0.12;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23050e22'%3E%3Cpath d='M13.5 1 4 13.5h6.5L9 23l10-13h-6.8z'/%3E%3C/svg%3E") center/contain no-repeat;
  transform: rotate(14deg);
}
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; position: relative; }
.cta h2 { margin: 0; max-width: 16ch; }
.cta__phone {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.6rem); text-decoration: none;
  line-height: 1; display: block; margin-bottom: 14px; letter-spacing: 0.01em;
}
.cta__phone:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.cta .btn { box-shadow: 4px 4px 0 var(--navy-950); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, 0.72); padding: 80px 0 0; font-size: 0.97rem; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 60px; position: relative; z-index: 1; }
.site-footer h4 { font-size: 1.25rem; color: #fff; letter-spacing: 0.1em; margin-bottom: 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer a { text-decoration: none; color: rgba(255, 255, 255, 0.82); }
.site-footer a:hover { color: var(--volt); }
.footer-brand img { width: 92px; height: 92px; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; }
.footer-badge {
  display: inline-flex; gap: 10px; align-items: center; border: 1px solid rgba(255, 207, 26, 0.5); color: var(--volt);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 12px; border-radius: 2px;
}
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase; line-height: 0.78;
  font-size: clamp(4rem, 17vw, 15rem); letter-spacing: -0.01em; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  margin: 0 0 -0.08em; text-align: center; user-select: none; pointer-events: none;
}
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; position: relative; z-index: 1; background: var(--navy-950); }
.footer-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- 404 ---------- */
.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-page .code { font-family: var(--font-display); font-weight: 900; font-size: clamp(8rem, 30vw, 18rem); line-height: 0.8; color: transparent; -webkit-text-stroke: 3px var(--volt); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list a { padding: 10px 10px; font-size: 1rem; }
  .nav__list a::after { left: 10px; right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + 38px) 0 0 0; z-index: 99;
    background: var(--navy-950);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 26px var(--gutter) 40px; gap: 0;
    transform: translateX(100%); transition: transform 0.4s var(--ease); visibility: hidden;
    overflow-y: auto;
  }
  .nav-open .nav { transform: none; visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { font-size: 2.2rem; padding: 12px 0; border-bottom: 1px solid var(--line-dark); }
  .nav__list a::after { display: none; }
  .nav__list a[aria-current="page"] { color: var(--volt); }
  .nav__cta { margin: 26px 0 0; justify-content: center; font-size: 1.3rem; padding: 18px; }
  .nav-open { overflow: hidden; }

  .hero .wrap, .prose-grid, .contact-grid, .section__head { grid-template-columns: 1fr; }
  .section__head { gap: 18px; }
  .hero__card { max-width: 440px; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__panel { min-height: 420px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr 1fr; }
  .card:nth-child(3n) { border-right: 1px solid var(--line); }
  .card:nth-child(2n) { border-right: 0; }
  .section--dark .card:nth-child(3n), .section--deep .card:nth-child(3n) { border-right-color: var(--line-dark); }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .step::after { right: 0; }
}

@media (max-width: 700px) {
  .topbar__left .hide-sm, .topbar__right .hide-sm { display: none; }
  .topbar { font-size: 0.66rem; letter-spacing: 0.04em; }
  .brand__name { font-size: 1.35rem; }
  .brand img { width: 48px; height: 48px; }
  .brand__sub { font-size: 0.55rem; letter-spacing: 0.14em; }
  .services { grid-template-columns: 1fr; }
  .service:nth-child(2) { border-top: 0; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .timeline::before { left: 70px; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 36px; }
  .timeline li::before { left: 63px; }
  .timeline__year { font-size: 1.6rem; }
  .nameplate { transform: none; }
  .nameplate__big strong { font-size: 2.8rem; }
  .quote__mark { font-size: 8rem; height: 56px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .rise, .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .site-header, .cta, .site-footer, .nav-toggle { display: none !important; }
  .hero, .page-hero, .section--dark, .section--deep { background: #fff !important; color: #000 !important; }
}
