:root {
  --bg: #060708;
  --bg-soft: #0b0d10;
  --panel: #0f1216;
  --panel-2: #14181d;
  --line: rgba(255,255,255,.10);
  --line-bright: rgba(246,201,40,.38);
  --text: #f6f7f2;
  --muted: #9ba3ad;
  --yellow: #f6c928;
  --yellow-2: #ffd94f;
  --black: #050505;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.42);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(246,201,40,.07), transparent 28rem),
    radial-gradient(circle at 100% 40%, rgba(246,201,40,.035), transparent 36rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.muted { color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,7,8,.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.energy-line {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--yellow), transparent);
  background-size: 40% 100%;
  animation: energySweep 5s linear infinite;
}
.header-inner { min-height: 84px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; width: 66px; height: 66px; overflow: hidden; border-radius: 50%; }
.brand img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); }
.nav { display: flex; justify-content: center; gap: 8px; }
.nav a {
  color: #dfe4e8;
  padding: 12px 14px;
  font-size: .94rem;
  font-weight: 650;
  letter-spacing: .02em;
  border-radius: 10px;
  transition: .2s ease;
}
.nav a:hover { color: var(--yellow); background: rgba(255,255,255,.045); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 5px 0; transition: .2s ease; }
.mobile-nav-wrap { border-top: 1px solid var(--line); background: rgba(7,8,9,.97); }
.mobile-nav { padding-block: 12px 22px; display: grid; gap: 8px; }
.mobile-nav > a:not(.btn) { padding: 13px 2px; border-bottom: 1px solid rgba(255,255,255,.07); color: #dfe4e8; font-weight: 650; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  color: #0a0a08;
  background: linear-gradient(135deg, var(--yellow-2), var(--yellow));
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 12px 34px rgba(246,201,40,.16);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 16px 38px rgba(246,201,40,.24); }
.btn-ghost, .btn-outline { color: #fff; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.035); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--yellow); color: var(--yellow); }
.btn-lg { min-height: 54px; padding-inline: 23px; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.hero-grid, .page-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.95), transparent 92%);
}
.hero::before, .page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(246,201,40,.045), transparent 36%, transparent 68%, rgba(246,201,40,.025));
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 66px; padding-block: 92px 110px; }
.hero-copy h1, .page-hero h1 {
  margin: 16px 0 22px;
  max-width: 830px;
  font-size: clamp(3.1rem, 7vw, 6.7rem);
  line-height: .96;
  letter-spacing: -.055em;
  font-weight: 900;
}
.hero-copy h1 span { color: var(--yellow); text-shadow: 0 0 34px rgba(246,201,40,.14); }
.lead { max-width: 760px; color: #b7bec6; font-size: clamp(1.05rem, 2vw, 1.24rem); line-height: 1.72; }
.eyebrow, .section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 850;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(246,201,40,.45);
  animation: pulse 2s infinite;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.hero-meta span {
  color: #c9ced3;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .8rem;
  font-weight: 700;
}
.hero-visual { position: relative; }
.tech-frame {
  position: relative;
  min-height: 510px;
  border: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.008)),
    radial-gradient(circle at 50% 35%, rgba(246,201,40,.11), transparent 42%);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tech-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 5px, rgba(255,255,255,.012) 5px 6px);
  opacity: .5;
  animation: scan 8s linear infinite;
}
.tech-frame::after {
  content: "KEI // POWER SYSTEM";
  position: absolute;
  bottom: 20px;
  left: 24px;
  color: rgba(255,255,255,.28);
  font-size: .67rem;
  letter-spacing: .2em;
  font-weight: 800;
}
.tech-corner { position: absolute; width: 38px; height: 38px; border-color: var(--yellow); opacity: .8; }
.corner-a { top: 18px; left: 18px; border-top: 2px solid; border-left: 2px solid; }
.corner-b { top: 18px; right: 18px; border-top: 2px solid; border-right: 2px solid; }
.corner-c { bottom: 18px; left: 18px; border-bottom: 2px solid; border-left: 2px solid; }
.corner-d { bottom: 18px; right: 18px; border-bottom: 2px solid; border-right: 2px solid; }
.logo-stage { position: absolute; inset: 20px; display: grid; place-items: center; }
.logo-stage img {
  position: relative;
  z-index: 4;
  width: min(76%, 370px);
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(246,201,40,.10);
  filter: contrast(1.04) saturate(1.06);
}
.logo-ring {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(246,201,40,.24);
  box-shadow: 0 0 30px rgba(246,201,40,.035) inset;
}
.logo-ring-one { width: 79%; animation: spin 22s linear infinite; border-style: dashed; }
.logo-ring-two { width: 91%; animation: spinReverse 31s linear infinite; border-color: rgba(255,255,255,.10); }
.logo-ring-three { width: 61%; border-color: rgba(255,255,255,.08); }
.signal-row { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.signal-row span { display: block; width: 22px; height: 3px; border-radius: 99px; background: rgba(255,255,255,.14); }
.signal-row span:nth-child(2), .signal-row span:nth-child(3) { background: var(--yellow); box-shadow: 0 0 10px rgba(246,201,40,.45); }
.hero-orb { position: absolute; width: 420px; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .10; background: var(--yellow); pointer-events: none; }
.hero-orb-one { top: -210px; right: 14%; }
.hero-orb-two { bottom: -260px; left: -130px; opacity: .05; }
.hero-bottom-line { position: absolute; bottom: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(246,201,40,.65), transparent); }

.section { position: relative; padding: 96px 0; }
.intro-strip { padding: 72px 0; background: #090b0d; border-bottom: 1px solid rgba(255,255,255,.07); }
.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; }
.intro-grid h2, .section-heading h2, .signal-copy h2, .area-copy h2, .about-copy h2, .contact-intro h2, .cta-card h2, .split-copy h2 {
  margin: 10px 0 0;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.intro-grid p { margin: 0; color: var(--muted); font-size: 1.03rem; }
.section-heading { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 34px; }
.text-link { color: #dce1e5; font-weight: 800; white-space: nowrap; }
.text-link span, .service-card a span { color: var(--yellow); }
.text-link:hover { color: var(--yellow); }

.services-section { background: linear-gradient(180deg, #070809, #0b0d10 60%, #070809); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-card, .detail-card {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.014));
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.service-card::after, .detail-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% 25%;
  height: 180px;
  background: radial-gradient(circle, rgba(246,201,40,.16), transparent 68%);
  opacity: 0;
  transition: opacity .25s ease;
}
.service-card:hover, .detail-card:hover { transform: translateY(-4px); border-color: rgba(246,201,40,.32); background: rgba(255,255,255,.045); }
.service-card:hover::after, .detail-card:hover::after { opacity: 1; }
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #090909;
  background: var(--yellow);
  font-size: .79rem;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 38px;
  box-shadow: 0 0 24px rgba(246,201,40,.12);
}
.service-card h3, .detail-card h2 { margin: 0 0 11px; font-size: 1.35rem; line-height: 1.2; }
.service-card p, .detail-card p { color: var(--muted); margin: 0 0 22px; }
.service-card a { position: relative; z-index: 2; font-size: .9rem; font-weight: 800; color: #e9edef; }
.prototype-note { margin: 20px 0 0; color: #737b84; font-size: .82rem; }

.signal-section { overflow: hidden; }
.signal-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 74px; align-items: center; }
.signal-panel {
  min-height: 440px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 30px;
  background: linear-gradient(180deg, #0d1013, #08090b);
  padding: 22px;
  box-shadow: var(--shadow);
}
.signal-screen {
  position: relative;
  overflow: hidden;
  min-height: 396px;
  border: 1px solid rgba(246,201,40,.21);
  border-radius: 20px;
  background:
    linear-gradient(rgba(246,201,40,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(246,201,40,.035) 1px, transparent 1px),
    #090b0d;
  background-size: 30px 30px;
}
.signal-label { position: absolute; top: 18px; left: 20px; color: var(--yellow); font-size: .68rem; letter-spacing: .18em; font-weight: 800; }
.wave { position: absolute; left: 8%; right: 8%; height: 1px; top: 48%; background: rgba(246,201,40,.22); }
.wave::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -42px; height: 84px;
  background: linear-gradient(135deg, transparent 47%, var(--yellow) 48% 51%, transparent 52%) 0 0 / 72px 84px repeat-x;
  filter: drop-shadow(0 0 6px rgba(246,201,40,.38));
}
.wave-b { top: 55%; opacity: .25; transform: scaleY(.55); }
.meter-grid { position: absolute; left: 20px; right: 20px; bottom: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.meter-grid div { border-top: 1px solid rgba(255,255,255,.09); padding-top: 10px; }
.meter-grid span { display: block; color: #6f7881; font-size: .6rem; letter-spacing: .13em; }
.meter-grid b { color: #dfe4e8; font-size: .76rem; }
.signal-copy p { color: var(--muted); font-size: 1.02rem; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 26px 0 30px; }
.check-grid span { position: relative; padding-left: 22px; color: #d8dde1; font-weight: 700; font-size: .92rem; }
.check-grid span::before { content: ""; position: absolute; left: 0; top: .58em; width: 9px; height: 9px; border: 2px solid var(--yellow); transform: rotate(45deg); }

.area-section { background: #090b0d; border-block: 1px solid rgba(255,255,255,.06); }
.city-marquee { display: flex; gap: 9px; flex-wrap: wrap; }
.city-marquee span, .city-grid span {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
  color: #dce0e4;
  border-radius: 999px;
  padding: 11px 15px;
  font-weight: 750;
  font-size: .88rem;
}
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.process-step { padding: 32px 28px 8px 0; border-right: 1px solid var(--line); }
.process-step + .process-step { padding-left: 28px; }
.process-step:last-child { border-right: 0; }
.process-step > span { color: var(--yellow); font-size: .75rem; letter-spacing: .15em; font-weight: 900; }
.process-step h3 { font-size: 1.35rem; margin: 18px 0 9px; }
.process-step p { color: var(--muted); margin: 0; }

.cta-section { padding: 30px 0 96px; }
.cta-card {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
  border: 1px solid rgba(246,201,40,.24);
  border-radius: 28px;
  padding: 44px;
  background:
    linear-gradient(135deg, rgba(246,201,40,.075), transparent 45%),
    #0d1013;
}
.cta-card::after { content: "⚡"; position: absolute; right: 21%; top: 50%; transform: translateY(-50%); font-size: 10rem; color: rgba(246,201,40,.03); }
.cta-card p { color: var(--muted); margin-bottom: 0; }

.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid rgba(255,255,255,.07); }
.page-hero-inner { position: relative; z-index: 2; padding: 118px 0 88px; }
.page-hero h1 { max-width: 940px; font-size: clamp(2.9rem, 6vw, 5.5rem); }
.page-hero-compact .page-hero-inner { padding-bottom: 70px; }

.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.detail-card { min-height: 380px; }
.detail-card .service-icon { margin-bottom: 50px; }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.feature-list li { color: #d5dadf; font-size: .88rem; padding-left: 16px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .68em; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); }
.prototype-callout { margin-top: 18px; border-left: 3px solid var(--yellow); background: rgba(246,201,40,.05); padding: 16px 18px; color: #aeb5bc; font-size: .88rem; }

.area-layout, .about-layout, .contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.area-map-card {
  position: relative;
  min-height: 530px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 28px;
  background: #0b0d10;
  box-shadow: var(--shadow);
}
.map-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px); background-size: 36px 36px; }
.map-core { position: absolute; left: 50%; top: 50%; width: 160px; height: 160px; transform: translate(-50%,-50%); border-radius: 50%; border: 1px solid var(--yellow); display: grid; place-items: center; align-content: center; box-shadow: 0 0 70px rgba(246,201,40,.11); }
.map-core span { width: 10px; height: 10px; background: var(--yellow); border-radius: 50%; margin-bottom: 10px; box-shadow: 0 0 18px rgba(246,201,40,.6); }
.map-core b { font-size: .88rem; letter-spacing: .12em; }
.map-core small { color: #727a82; font-size: .55rem; letter-spacing: .16em; margin-top: 4px; }
.map-node { position: absolute; border: 1px solid rgba(255,255,255,.12); background: #101318; border-radius: 999px; padding: 7px 11px; color: #cfd4d9; font-size: .72rem; font-weight: 750; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.node-1 { left: 52%; bottom: 13%; } .node-2 { left: 26%; bottom: 30%; } .node-3 { right: 11%; top: 20%; } .node-4 { left: 58%; top: 18%; } .node-5 { left: 14%; top: 25%; }
.area-copy p, .about-copy p, .contact-intro p { color: var(--muted); }
.city-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0; }
.area-band { padding-top: 20px; }
.split-copy { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 40px; border: 1px solid rgba(255,255,255,.08); border-radius: 24px; background: #0d1013; }

.about-logo-card { position: relative; min-height: 520px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 30px; overflow: hidden; background: radial-gradient(circle, rgba(246,201,40,.08), transparent 45%), #090b0d; }
.about-logo-card img { position: relative; z-index: 2; width: min(74%, 380px); border-radius: 50%; }
.logo-halo { position: absolute; width: 68%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(246,201,40,.35); animation: spin 30s linear infinite; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.value-grid div { border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 16px; background: rgba(255,255,255,.025); }
.value-grid b { display: block; color: var(--yellow); font-size: .68rem; letter-spacing: .13em; margin-bottom: 6px; }
.value-grid span { font-weight: 720; font-size: .88rem; }

.contact-layout { align-items: start; }
.contact-intro { position: sticky; top: 118px; }
.contact-points { display: grid; gap: 10px; margin-top: 28px; }
.contact-points div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-points span { color: var(--yellow); font-size: .68rem; font-weight: 900; letter-spacing: .13em; }
.contact-points p { margin: 0; font-size: .92rem; }
.contact-form { display: grid; gap: 16px; border: 1px solid rgba(255,255,255,.09); border-radius: 24px; background: #0d1013; padding: 28px; box-shadow: var(--shadow); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: grid; gap: 8px; color: #dfe4e7; font-size: .83rem; font-weight: 760; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  color: #fff;
  background: #090b0d;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(246,201,40,.08); }
.contact-form select option { background: #111; }
.hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: -4px 0 0; color: #737b83; font-size: .74rem; }

.thanks-section { min-height: 70vh; display: grid; place-items: center; padding: 110px 0; }
.thanks-card { max-width: 760px; margin: 0 auto; text-align: center; border: 1px solid rgba(255,255,255,.09); border-radius: 28px; background: #0d1013; padding: 52px; box-shadow: var(--shadow); }
.thanks-bolt { width: 70px; height: 70px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; color: #0a0a08; background: var(--yellow); font-weight: 900; }
.thanks-card h1 { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.05; letter-spacing: -.045em; margin: 12px 0 18px; }
.thanks-card p { color: var(--muted); margin-bottom: 28px; }

.site-footer { border-top: 1px solid rgba(255,255,255,.08); background: #050607; padding: 58px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .55fr 1fr; gap: 50px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; }
.footer-brand img { width: 54px; height: 54px; border-radius: 50%; }
.footer-grid p { color: #7f878f; max-width: 520px; font-size: .88rem; }
.footer-grid h2 { color: #e8ecef; font-size: .78rem; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 12px; }
.footer-grid > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid > div:nth-child(2) a { color: #959da5; font-size: .88rem; margin-bottom: 7px; }
.footer-grid > div:nth-child(2) a:hover { color: var(--yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); margin-top: 34px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; color: #656d75; font-size: .74rem; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes energySweep { from { background-position: -50% 0; } to { background-position: 150% 0; } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(246,201,40,0); } 100% { box-shadow: 0 0 0 0 rgba(246,201,40,0); } }
@keyframes scan { from { transform: translateY(-3%); } 50% { transform: translateY(3%); } to { transform: translateY(-3%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; gap: 16px; }
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; justify-self: end; }
  .hero { min-height: auto; }
  .hero-inner, .signal-layout, .area-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 42px; }
  .hero-inner { padding-block: 78px 84px; }
  .hero-copy h1 { max-width: 760px; }
  .hero-visual { max-width: 660px; width: 100%; }
  .tech-frame { min-height: 480px; }
  .intro-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .signal-panel { order: 2; }
  .detail-grid { grid-template-columns: 1fr; }
  .area-map-card, .about-logo-card { min-height: 480px; }
  .contact-intro { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .header-inner { min-height: 72px; }
  .brand { width: 54px; height: 54px; }
  .section { padding: 72px 0; }
  .hero-inner { padding-block: 64px 72px; }
  .hero-copy h1, .page-hero h1 { font-size: clamp(2.7rem, 14vw, 4.5rem); }
  .lead { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .tech-frame { min-height: 390px; border-radius: 22px; }
  .section-heading, .cta-card, .split-copy { align-items: flex-start; flex-direction: column; }
  .service-grid, .process-grid, .field-row, .value-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .process-grid { border-top: 0; }
  .process-step, .process-step + .process-step { padding: 24px 0; border-right: 0; border-top: 1px solid var(--line); }
  .meter-grid { grid-template-columns: 1fr; }
  .meter-grid div:nth-child(2), .meter-grid div:nth-child(3) { display: none; }
  .check-grid, .feature-list { grid-template-columns: 1fr; }
  .page-hero-inner { padding: 82px 0 64px; }
  .detail-card { min-height: auto; }
  .area-map-card, .about-logo-card { min-height: 410px; }
  .map-core { width: 130px; height: 130px; }
  .map-node { font-size: .64rem; }
  .node-3 { right: 5%; }
  .cta-card { padding: 30px; }
  .cta-card .btn { width: 100%; }
  .contact-form { padding: 20px; }
  .thanks-card { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* v0.1.2 visual cleanup */
.header-inner {
  grid-template-columns: minmax(260px, auto) 1fr auto;
}

.brand {
  width: auto;
  height: auto;
  overflow: visible;
  border-radius: 0;
  gap: 12px;
  min-width: 250px;
}

.brand-mark {
  width: 58px;
  height: 52px;
  display: block;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: none;
  border-radius: 0;
}

.brand-type {
  display: grid;
  line-height: 1;
  gap: 5px;
  padding-left: 12px;
  border-left: 1px solid rgba(255,255,255,.24);
}

.brand-type strong {
  color: #fff;
  font-size: 1.02rem;
  letter-spacing: .075em;
  font-weight: 900;
}

.brand-type small {
  color: var(--yellow);
  font-size: .61rem;
  letter-spacing: .28em;
  font-weight: 850;
}

.hero {
  min-height: 680px;
}

.hero-inner {
  grid-template-columns: 1.08fr .92fr;
  gap: 72px;
  padding-block: 76px 88px;
}

.hero-copy h1 {
  max-width: 700px;
  font-size: clamp(2.9rem, 5.25vw, 5.05rem);
  line-height: .99;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(2.65rem, 5vw, 4.35rem);
  line-height: 1;
}

.intro-grid h2,
.section-heading h2,
.signal-copy h2,
.area-copy h2,
.about-copy h2,
.contact-intro h2,
.cta-card h2,
.split-copy h2 {
  font-size: clamp(1.85rem, 3.3vw, 3rem);
}

.brand-panel {
  position: relative;
  min-height: 410px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 24px;
  padding: 26px;
  background:
    radial-gradient(circle at 68% 42%, rgba(246,201,40,.09), transparent 34%),
    linear-gradient(145deg, #101318, #08090b 65%);
  box-shadow: var(--shadow);
}

.brand-panel::before {
  content: "";
  position: absolute;
  width: 250px;
  height: 1px;
  right: -45px;
  top: 90px;
  background: linear-gradient(90deg, transparent, var(--yellow));
  transform: rotate(-42deg);
  box-shadow: 0 0 18px rgba(246,201,40,.25);
}

.brand-panel::after {
  content: "";
  position: absolute;
  right: -95px;
  bottom: -95px;
  width: 260px;
  aspect-ratio: 1;
  border: 1px solid rgba(246,201,40,.16);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(246,201,40,.025),
    0 0 0 68px rgba(255,255,255,.018);
}

.brand-panel-grid {
  position: absolute;
  inset: 0;
  opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(135deg, #000, transparent 78%);
}

.brand-panel-topline,
.brand-panel-center,
.brand-panel-rule,
.brand-panel-stats {
  position: relative;
  z-index: 2;
}

.brand-panel-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #7f8790;
  font-size: .62rem;
  letter-spacing: .18em;
  font-weight: 800;
}

.brand-panel-topline b {
  color: var(--yellow);
}

.brand-panel-center {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: auto 0;
}

.brand-panel-center img {
  width: 112px;
  height: 90px;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.04) saturate(1.04);
}

.brand-panel-center > div {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  border-left: 1px solid rgba(255,255,255,.20);
}

.brand-panel-center strong {
  font-size: clamp(1.55rem, 2.6vw, 2.45rem);
  line-height: .95;
  letter-spacing: .06em;
  font-weight: 950;
}

.brand-panel-center span {
  color: var(--yellow);
  font-size: .74rem;
  letter-spacing: .32em;
  font-weight: 850;
}

.brand-panel-rule {
  height: 1px;
  background: linear-gradient(90deg, var(--yellow), rgba(246,201,40,.05));
  margin-bottom: 17px;
}

.brand-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  gap: 16px;
}

.brand-panel-stats div {
  min-width: 0;
}

.brand-panel-stats small {
  display: block;
  margin-bottom: 4px;
  color: #646d76;
  font-size: .55rem;
  letter-spacing: .16em;
  font-weight: 800;
}

.brand-panel-stats b {
  display: block;
  color: #dfe4e8;
  font-size: .75rem;
  font-weight: 760;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand {
    min-width: 0;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-copy {
    max-width: 780px;
  }

  .hero-visual {
    max-width: 720px;
  }
}

@media (max-width: 700px) {
  .brand-mark {
    width: 48px;
    height: 43px;
  }

  .brand-type strong {
    font-size: .84rem;
  }

  .brand-type small {
    font-size: .5rem;
    letter-spacing: .22em;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy h1,
  .page-hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  .brand-panel {
    min-height: 350px;
    padding: 22px;
  }

  .brand-panel-center {
    gap: 14px;
  }

  .brand-panel-center img {
    width: 82px;
    height: 70px;
  }

  .brand-panel-center > div {
    padding-left: 14px;
  }

  .brand-panel-center strong {
    font-size: 1.35rem;
  }

  .brand-panel-center span {
    font-size: .58rem;
    letter-spacing: .23em;
  }

  .brand-panel-stats {
    grid-template-columns: 1fr 1fr;
  }

  .brand-panel-stats div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .brand-type {
    gap: 3px;
    padding-left: 9px;
  }

  .brand-type strong {
    font-size: .72rem;
    letter-spacing: .04em;
  }

  .brand-type small {
    font-size: .44rem;
    letter-spacing: .16em;
  }

  .brand-mark {
    width: 43px;
    height: 39px;
  }
}

/* =========================================================
   v0.1.3 — Approved mockup homepage recreation
   ========================================================= */

.anchor-target {
  position: relative;
  top: -100px;
  visibility: hidden;
}

.home-page {
  background: #050607;
}

.mockup-header {
  background:
    linear-gradient(90deg, rgba(5,6,7,.98), rgba(8,10,12,.97)),
    #050607;
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: none;
}

.mockup-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .15;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

.mockup-header-inner {
  position: relative;
  z-index: 2;
  min-height: 116px;
  grid-template-columns: 360px 1fr auto;
  gap: 28px;
}

.approved-brand {
  display: inline-flex;
  align-items: center;
  width: 355px;
  max-width: 100%;
}

.approved-brand img {
  width: 100%;
  height: 88px;
  object-fit: cover;
  object-position: left center;
  display: block;
}

.mockup-nav {
  justify-content: center;
  gap: 24px;
}

.mockup-nav a {
  position: relative;
  padding: 16px 6px 18px;
  font-size: .96rem;
  font-weight: 650;
}

.mockup-nav a.active {
  color: var(--yellow);
}

.mockup-nav a.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 8px;
  height: 2px;
  background: var(--yellow);
}

.mockup-quote-btn {
  min-width: 210px;
  min-height: 56px;
  border-radius: 8px;
  font-size: 1rem;
}

.bolt-symbol {
  font-size: 1.65em;
  line-height: .8;
  font-weight: 900;
}

.mockup-hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-bottom: 1px solid rgba(246,201,40,.38);
  background: #050607;
}

.mockup-grid {
  position: absolute;
  inset: 0;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000 0 42%, transparent 68%);
}

.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  width: 66%;
  height: 100%;
  background-image: url("../img/hero-house.jpg");
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-darken {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050607 0%, rgba(5,6,7,.98) 25%, rgba(5,6,7,.77) 43%, rgba(5,6,7,.20) 64%, rgba(5,6,7,.05) 100%),
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.08));
}

.hero-copy-wrap {
  position: relative;
  z-index: 3;
}

.mockup-copy {
  width: min(690px, 52vw);
  padding: 74px 0 82px;
}

.hero-service-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  color: #d9dde1;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .72rem;
  font-weight: 600;
}

.hero-service-line i {
  color: #d9dde1;
  font-style: normal;
  opacity: .75;
}

.mockup-copy h1 {
  margin: 0 0 20px;
  max-width: 710px;
  font-size: clamp(3.05rem, 4.75vw, 5.25rem);
  line-height: .94;
  letter-spacing: -.045em;
  font-weight: 950;
}

.mockup-copy h1 span {
  display: block;
}

.mockup-copy .white-line {
  color: #fff;
}

.mockup-copy .yellow-line {
  color: #ffd900;
  text-shadow: 0 0 22px rgba(255,217,0,.10);
}

.mockup-copy > p {
  max-width: 570px;
  margin: 0;
  color: #f0f1f2;
  font-size: 1.05rem;
  line-height: 1.58;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
}

.mockup-copy .hero-actions {
  margin-top: 28px;
  gap: 14px;
}

.mockup-primary {
  min-width: 245px;
  min-height: 58px;
  border-radius: 7px;
}

.mockup-secondary {
  min-width: 220px;
  min-height: 58px;
  border-radius: 7px;
  border-color: rgba(255,215,0,.78);
  background: rgba(5,6,7,.74);
}

.hero-circuit-line {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: 28px;
  pointer-events: none;
}

.hero-circuit-line::before {
  content: "";
  position: absolute;
  left: 0;
  width: 35%;
  bottom: 0;
  height: 2px;
  background: #f4db00;
  box-shadow: 0 0 14px rgba(244,219,0,.42);
  clip-path: polygon(0 0, 88% 0, 92% 100%, 100% 100%, 100% 100%, 0 100%);
}

.hero-circuit-line::after {
  content: "";
  position: absolute;
  left: 33%;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #f4db00, rgba(244,219,0,.85));
  box-shadow: 0 0 12px rgba(244,219,0,.22);
}

.mockup-service-row {
  position: relative;
  padding: 16px 0 34px;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    #050607;
  background-size: 32px 32px;
}

.mockup-service-row::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 5% 0%, rgba(246,201,40,.05), transparent 28rem);
}

.mockup-service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mockup-service-card {
  position: relative;
  min-height: 190px;
  display: grid;
  grid-template-columns: 96px 1fr 24px;
  gap: 16px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
  background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.008));
  padding: 22px 18px;
  clip-path: polygon(8% 0, 100% 0, 100% 87%, 92% 100%, 0 100%, 0 13%);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.mockup-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246,201,40,.52);
  background: linear-gradient(180deg, rgba(246,201,40,.045), rgba(255,255,255,.012));
}

.hex-icon {
  width: 82px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 3px solid #f2db00;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  background: rgba(0,0,0,.28);
}

.hex-icon svg {
  width: 47px;
  height: 47px;
  fill: none;
  stroke: #f2db00;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hex-icon svg path {
  fill: none;
}

.card-copy h2 {
  margin: 0 0 7px;
  font-size: 1.15rem;
  line-height: 1.15;
}

.card-copy p {
  margin: 0;
  color: #aeb5bb;
  font-size: .84rem;
  line-height: 1.55;
}

.card-arrow {
  justify-self: end;
  color: #fff;
  font-size: 1.45rem;
}

.post-hero-section {
  padding-top: 86px;
}

@media (max-width: 1100px) {
  .mockup-header-inner {
    grid-template-columns: 300px 1fr auto;
  }

  .approved-brand {
    width: 300px;
  }

  .mockup-nav {
    gap: 12px;
  }

  .mockup-quote-btn {
    min-width: 180px;
  }

  .mockup-copy {
    width: min(660px, 59vw);
  }

  .hero-photo {
    width: 68%;
  }

  .mockup-service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .mockup-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 92px;
  }

  .approved-brand {
    width: 310px;
  }

  .approved-brand img {
    height: 76px;
  }

  .mockup-hero {
    min-height: 700px;
  }

  .hero-photo {
    width: 100%;
    height: 64%;
    top: auto;
    bottom: 0;
    background-position: center right;
  }

  .hero-darken {
    background:
      linear-gradient(180deg, #050607 0%, #050607 38%, rgba(5,6,7,.90) 53%, rgba(5,6,7,.24) 76%, rgba(5,6,7,.10) 100%),
      linear-gradient(90deg, rgba(5,6,7,.95), rgba(5,6,7,.18));
  }

  .mockup-grid {
    mask-image: linear-gradient(180deg, #000, transparent 74%);
  }

  .mockup-copy {
    width: 100%;
    max-width: 680px;
    padding: 54px 0 330px;
  }
}

@media (max-width: 700px) {
  .mockup-header-inner {
    min-height: 76px;
  }

  .approved-brand {
    width: 230px;
  }

  .approved-brand img {
    height: 60px;
  }

  .mockup-hero {
    min-height: 675px;
  }

  .mockup-copy {
    padding: 42px 0 300px;
  }

  .hero-service-line {
    gap: 10px;
    letter-spacing: .16em;
    font-size: .59rem;
    flex-wrap: wrap;
  }

  .mockup-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.15rem);
    line-height: .96;
  }

  .mockup-copy > p {
    max-width: 92%;
    font-size: .96rem;
  }

  .mockup-copy .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .mockup-primary,
  .mockup-secondary {
    width: 100%;
    min-width: 0;
  }

  .hero-photo {
    height: 48%;
    background-position: 67% center;
  }

  .hero-darken {
    background:
      linear-gradient(180deg, #050607 0%, #050607 44%, rgba(5,6,7,.90) 57%, rgba(5,6,7,.22) 82%, rgba(5,6,7,.08) 100%);
  }

  .mockup-service-grid {
    grid-template-columns: 1fr;
  }

  .mockup-service-card {
    min-height: 150px;
    grid-template-columns: 78px 1fr 20px;
  }

  .hex-icon {
    width: 68px;
  }

  .hex-icon svg {
    width: 39px;
    height: 39px;
  }
}

@media (max-width: 430px) {
  .approved-brand {
    width: 205px;
  }

  .approved-brand img {
    height: 54px;
  }

  .mockup-copy h1 {
    font-size: 2.58rem;
  }

  .hero-photo {
    height: 44%;
  }
}



/* =========================================================
   v0.1.4 — Approved mockup cleanup / fidelity pass
   ========================================================= */

.approved-home {
  background: #050607;
}

.approved-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #050607;
  border-bottom: 1px solid rgba(255,255,255,.14);
  backdrop-filter: none;
}

.approved-header::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .13;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 30px 30px;
}

.approved-header-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 40px), 1450px);
  min-height: 112px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(355px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 38px;
}

.kei-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 17px;
  min-width: 0;
}

.kei-brand-mark {
  width: 116px;
  height: 88px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center;
  display: block;
}

.kei-wordmark {
  display: grid;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.kei-wordmark strong {
  color: #fff;
  font-size: 2rem;
  line-height: .9;
  letter-spacing: .025em;
  font-weight: 950;
}

.kei-wordmark small {
  color: #f4dd00;
  font-size: .93rem;
  line-height: 1;
  letter-spacing: .25em;
  font-weight: 900;
}

.approved-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 31px;
}

.approved-nav a {
  position: relative;
  padding: 14px 0 18px;
  color: #e8e9ea;
  font-size: .98rem;
  font-weight: 650;
  border-radius: 0;
  background: none;
}

.approved-nav a:hover,
.approved-nav a.active {
  color: var(--yellow);
  background: none;
}

.approved-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 7px;
  height: 2px;
  background: var(--yellow);
}

.approved-header-cta {
  justify-self: end;
  min-width: 222px;
  min-height: 58px;
  border-radius: 8px;
  font-size: 1rem;
}

.approved-header-cta i,
.approved-primary i {
  font-size: 1.25rem;
}

.approved-hero {
  position: relative;
  min-height: 585px;
  overflow: hidden;
  background: #050607;
}

.approved-tech-grid {
  position: absolute;
  inset: 0;
  opacity: .24;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.036) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.036) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(90deg, #000 0 38%, rgba(0,0,0,.7) 46%, transparent 68%);
}

.approved-house-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 66%;
  height: 100%;
  background: url("../img/hero-house-clean.jpg") center right / cover no-repeat;
}

.approved-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #050607 0%,
      #050607 22%,
      rgba(5,6,7,.97) 31%,
      rgba(5,6,7,.82) 41%,
      rgba(5,6,7,.42) 53%,
      rgba(5,6,7,.08) 73%,
      rgba(5,6,7,.02) 100%),
    linear-gradient(180deg, rgba(5,6,7,.02), rgba(5,6,7,.08));
  pointer-events: none;
}

.approved-hero-content {
  position: relative;
  z-index: 3;
  width: min(calc(100% - 40px), 1450px);
  min-height: 585px;
  display: flex;
  align-items: center;
}

.approved-copy {
  width: min(760px, 55vw);
  padding: 58px 0 74px;
}

.approved-service-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 20px;
  color: #dfe3e6;
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .71rem;
  font-weight: 600;
}

.approved-service-line b {
  color: #c5c9cd;
  font-weight: 500;
}

.approved-copy h1 {
  margin: 0 0 18px;
  max-width: 790px;
  font-size: clamp(3.15rem, 4.15vw, 4.75rem);
  line-height: .96;
  letter-spacing: -.048em;
  font-weight: 950;
}

.approved-copy h1 > span {
  display: block;
  white-space: nowrap;
}

.approved-copy .hero-white {
  color: #fff;
}

.approved-copy .hero-yellow {
  color: #ffdd00;
  text-shadow: 0 0 24px rgba(255,221,0,.08);
}

.approved-copy > p {
  max-width: 590px;
  margin: 0;
  color: #f0f1f2;
  font-size: 1.03rem;
  line-height: 1.58;
  text-shadow: 0 2px 8px rgba(0,0,0,.58);
}

.approved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 27px;
}

.approved-primary,
.approved-secondary {
  min-height: 58px;
  border-radius: 7px;
  padding: 12px 27px;
  font-weight: 850;
}

.approved-primary {
  min-width: 246px;
}

.approved-secondary {
  min-width: 232px;
  color: #fff;
  border: 1px solid #e9d600;
  background: rgba(4,5,6,.76);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.approved-secondary:hover {
  color: var(--yellow);
  background: rgba(4,5,6,.91);
  transform: translateY(-2px);
}

.approved-circuit {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 88px;
  pointer-events: none;
  overflow: visible;
}

.approved-circuit path {
  fill: none;
  stroke: #f2db00;
  stroke-width: 2.3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 7px rgba(242,219,0,.72));
}

.approved-feature-bar {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.017) 1px, transparent 1px),
    #050607;
  background-size: 32px 32px;
  border-bottom: 1px solid rgba(255,255,255,.035);
}

.approved-feature-grid {
  width: min(calc(100% - 40px), 1450px);
  min-height: 222px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}

.approved-feature {
  min-width: 0;
  min-height: 142px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 24px;
  align-items: center;
  padding: 20px 28px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.17);
  background: transparent;
  clip-path: none;
  transition: background .2s ease, transform .2s ease;
}

.approved-feature:first-child {
  padding-left: 0;
}

.approved-feature:last-child {
  padding-right: 0;
  border-right: 0;
}

.approved-feature:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(246,201,40,.026), transparent);
}

.feature-icon-wrap {
  position: relative;
  width: 88px;
  height: 100px;
  display: grid;
  place-items: center;
  color: #f2db00;
  flex: 0 0 auto;
}

.feature-hex {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.feature-hex polygon {
  fill: rgba(3,4,5,.28);
  stroke: #f2db00;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 4px rgba(242,219,0,.10));
}

.feature-icon-wrap > i {
  position: relative;
  z-index: 2;
  font-size: 2.12rem;
  color: #f2db00;
}

.feature-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.feature-copy strong {
  color: #fff;
  font-size: 1.13rem;
  line-height: 1.18;
  font-weight: 820;
}

.feature-copy small {
  max-width: 220px;
  color: #c1c5c9;
  font-size: .88rem;
  line-height: 1.58;
}

.post-hero-section {
  padding-top: 86px;
}

@media (max-width: 1220px) {
  .approved-header-inner {
    grid-template-columns: minmax(320px, 1fr) auto minmax(190px, 1fr);
    gap: 24px;
  }

  .kei-brand-mark {
    width: 92px;
    height: 76px;
  }

  .kei-wordmark strong {
    font-size: 1.68rem;
  }

  .kei-wordmark small {
    font-size: .79rem;
  }

  .approved-nav {
    gap: 20px;
  }

  .approved-header-cta {
    min-width: 188px;
  }

  .approved-feature {
    grid-template-columns: 78px 1fr;
    gap: 17px;
    padding-inline: 18px;
  }

  .feature-icon-wrap {
    width: 72px;
    height: 84px;
  }

  .feature-icon-wrap > i {
    font-size: 1.72rem;
  }
}

@media (max-width: 980px) {
  .approved-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 88px;
  }

  .approved-nav,
  .approved-header-cta {
    display: none;
  }

  .approved-toggle {
    display: block;
    justify-self: end;
  }

  .kei-brand-mark {
    width: 78px;
    height: 64px;
  }

  .kei-wordmark strong {
    font-size: 1.5rem;
  }

  .kei-wordmark small {
    font-size: .68rem;
  }

  .approved-hero {
    min-height: 720px;
  }

  .approved-house-photo {
    width: 100%;
    height: 56%;
    top: auto;
    bottom: 0;
    background-position: 67% center;
  }

  .approved-hero-shade {
    background:
      linear-gradient(180deg,
        #050607 0%,
        #050607 39%,
        rgba(5,6,7,.94) 52%,
        rgba(5,6,7,.44) 73%,
        rgba(5,6,7,.10) 100%);
  }

  .approved-hero-content {
    min-height: 720px;
    align-items: flex-start;
  }

  .approved-copy {
    width: 100%;
    max-width: 760px;
    padding-top: 52px;
  }

  .approved-feature-grid {
    grid-template-columns: repeat(2, 1fr);
    padding-block: 12px;
  }

  .approved-feature {
    border-right: 1px solid rgba(255,255,255,.15);
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .approved-feature:nth-child(2n) {
    border-right: 0;
  }

  .approved-feature:nth-last-child(-n+2) {
    border-bottom: 0;
  }

  .approved-feature:first-child {
    padding-left: 18px;
  }

  .approved-feature:last-child {
    padding-right: 18px;
  }
}

@media (max-width: 700px) {
  .approved-header-inner {
    width: min(calc(100% - 28px), 1450px);
    min-height: 76px;
  }

  .kei-brand {
    gap: 10px;
  }

  .kei-brand-mark {
    width: 59px;
    height: 50px;
  }

  .kei-wordmark strong {
    font-size: 1.03rem;
    letter-spacing: .015em;
  }

  .kei-wordmark small {
    font-size: .52rem;
    letter-spacing: .20em;
  }

  .approved-hero {
    min-height: 690px;
  }

  .approved-hero-content {
    width: min(calc(100% - 28px), 1450px);
    min-height: 690px;
  }

  .approved-copy {
    padding-top: 38px;
  }

  .approved-service-line {
    gap: 9px;
    flex-wrap: wrap;
    font-size: .56rem;
    letter-spacing: .16em;
  }

  .approved-copy h1 {
    font-size: clamp(2.55rem, 12vw, 3.75rem);
    line-height: .97;
  }

  .approved-copy h1 > span {
    white-space: normal;
  }

  .approved-copy > p {
    max-width: 94%;
    font-size: .93rem;
  }

  .approved-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 325px;
  }

  .approved-primary,
  .approved-secondary {
    width: 100%;
    min-width: 0;
  }

  .approved-house-photo {
    height: 42%;
    background-position: 65% center;
  }

  .approved-circuit {
    height: 58px;
  }

  .approved-feature-grid {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 8px 0 20px;
  }

  .approved-feature {
    grid-template-columns: 82px 1fr;
    min-height: 128px;
    padding: 18px 0;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.13) !important;
  }

  .approved-feature:last-child {
    border-bottom: 0 !important;
  }

  .approved-feature:first-child,
  .approved-feature:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .feature-icon-wrap {
    width: 72px;
    height: 82px;
  }

  .feature-copy small {
    max-width: 260px;
  }
}

/* =========================================================
   v0.1.5 — Hero image / circuit-line refinement
   ========================================================= */

.approved-header {
  background: rgba(5, 6, 7, .74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.approved-header::before {
  opacity: .10;
}

.approved-house-photo {
  background-image: url("../img/hero-house-clean-v2.jpg");
  background-position: center center;
  width: 68%;
}

.approved-hero-shade {
  background:
    linear-gradient(90deg,
      rgba(5,6,7,.96) 0%,
      rgba(5,6,7,.95) 21%,
      rgba(5,6,7,.88) 32%,
      rgba(5,6,7,.67) 43%,
      rgba(5,6,7,.30) 56%,
      rgba(5,6,7,.05) 78%,
      rgba(5,6,7,.00) 100%),
    linear-gradient(180deg, rgba(5,6,7,.03), rgba(5,6,7,.06));
}

.approved-circuit {
  height: 92px;
}

.approved-circuit .circuit-glow {
  fill: none;
  stroke: rgba(255, 224, 0, .72);
  stroke-width: 6.5;
  vector-effect: non-scaling-stroke;
  filter: url(#circuitGlow);
}

.approved-circuit .circuit-main {
  fill: none;
  stroke: url(#circuitStroke);
  stroke-width: 2.2;
  vector-effect: non-scaling-stroke;
}

.approved-circuit .circuit-node {
  fill: #fff4a8;
  filter: url(#nodeGlow);
  opacity: .95;
}

.approved-circuit .circuit-node-left {
  r: 8;
}

.approved-circuit .circuit-node-mid {
  r: 6;
}

.approved-circuit .circuit-node-right {
  r: 5;
}

@media (max-width: 980px) {
  .approved-house-photo {
    width: 100%;
    height: 57%;
    background-position: 64% center;
  }

  .approved-header {
    background: rgba(5, 6, 7, .80);
  }

  .approved-hero-shade {
    background:
      linear-gradient(180deg,
        rgba(5,6,7,.97) 0%,
        rgba(5,6,7,.95) 38%,
        rgba(5,6,7,.88) 50%,
        rgba(5,6,7,.45) 72%,
        rgba(5,6,7,.08) 100%);
  }
}

@media (max-width: 700px) {
  .approved-circuit {
    height: 64px;
  }

  .approved-house-photo {
    height: 43%;
    background-position: 63% center;
  }
}

/* =========================================================
   v0.1.6 — Approved image integration + final circuit-line tweak
   ========================================================= */

.approved-house-photo {
  background-image: url("../img/hero-house-clean-v3.jpg");
  background-position: center center;
  width: 68%;
}

.approved-circuit {
  height: 96px;
}

.approved-circuit .circuit-glow {
  fill: none;
  stroke: rgba(255, 224, 0, .78);
  stroke-width: 7.2;
  vector-effect: non-scaling-stroke;
  filter: url(#circuitGlowV16);
}

.approved-circuit .circuit-main {
  fill: none;
  stroke: url(#circuitStrokeV16);
  stroke-width: 2.25;
  vector-effect: non-scaling-stroke;
}

.approved-circuit .circuit-node {
  fill: #fff7b7;
  filter: url(#nodeGlowV16);
  opacity: .98;
}

.approved-circuit .circuit-node-left {
  r: 8;
}

.approved-circuit .circuit-node-mid {
  r: 6;
}

.approved-circuit .circuit-node-right {
  r: 5;
}

@media (max-width: 980px) {
  .approved-house-photo {
    width: 100%;
    height: 57%;
    background-position: 64% center;
  }
}

@media (max-width: 700px) {
  .approved-circuit {
    height: 66px;
  }

  .approved-house-photo {
    height: 43%;
    background-position: 63% center;
  }
}



/* =========================================================
   v0.1.7 — Inner-page hero graphics + button icon pass
   ========================================================= */

/* Generic button icon spacing */
.btn {
  gap: 10px;
}
.btn i {
  font-size: .95em;
}
.header-cta i,
.mobile-nav .btn i,
.cta-card .btn i,
.split-copy .btn i,
.contact-form .btn i {
  margin-right: 2px;
}

/* HOME hero line cleanup */
.approved-hero {
  overflow: hidden;
}
.approved-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 96px;
  z-index: 5;
  background: #050607;
  clip-path: polygon(0 6%, 8% 76%, 37.4% 76%, 39.5% 90%, 69.25% 90%, 71.25% 92%, 100% 92%, 100% 100%, 0 100%);
}
.approved-circuit {
  z-index: 6;
  height: 96px;
}
.approved-circuit .circuit-glow {
  fill: none;
  stroke: rgba(255, 224, 0, .56);
  stroke-width: 4.4;
  vector-effect: non-scaling-stroke;
  filter: url(#circuitGlowV17);
}
.approved-circuit .circuit-main {
  fill: none;
  stroke: url(#circuitStrokeV17);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.approved-circuit .circuit-node {
  fill: #fff6ad;
  filter: url(#nodeGlowV17);
  opacity: .96;
}

/* INNER PAGE HEADER + HERO */
.site-header:not(.approved-header) .brand-type strong {
  font-size: .92rem;
  letter-spacing: .05em;
}
.site-header:not(.approved-header) .brand-type small {
  font-size: .56rem;
  letter-spacing: .23em;
}
.site-header:not(.approved-header) .header-cta {
  min-height: 48px;
  padding-inline: 18px;
}
.site-header:not(.approved-header) .nav a {
  font-size: .93rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: #070809;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .95;
  z-index: 0;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(6,7,8,.95) 0%, rgba(6,7,8,.92) 36%, rgba(6,7,8,.70) 56%, rgba(6,7,8,.32) 72%, rgba(6,7,8,.18) 100%),
    linear-gradient(180deg, rgba(6,7,8,.18), rgba(6,7,8,.48));
}
.page-grid {
  opacity: .22;
  z-index: 2;
}
.page-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}
.page-hero h1 {
  max-width: 840px;
  font-size: clamp(2.35rem, 4.2vw, 3.6rem);
  line-height: 1.02;
}
.page-hero .lead {
  max-width: 720px;
  color: #d9dee2;
  font-size: 1.02rem;
}
.services-hero::before {
  background-image: url("../img/hero-services-bg.jpg");
}
.service-area-hero::before {
  background-image: url("../img/hero-service-area-map.jpg");
}
.about-hero::before {
  background-image: url("../img/hero-about-bg.jpg");
}
.contact-hero::before {
  background-image: url("../img/hero-contact-bg.jpg");
}

/* Services detail cards: smaller and balanced 2 rows of 3 */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}
.detail-card {
  min-height: 100%;
  padding: 26px 22px 22px;
}
.detail-card h2 {
  font-size: 1.42rem;
}
.detail-card p {
  font-size: .97rem;
}
.feature-list {
  margin-top: 14px;
}
.feature-list li {
  font-size: .92rem;
}

/* Service-area map card upgrade */
.area-map-card {
  overflow: hidden;
  padding: 0;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.14);
  background: #090b0d;
}
.area-map-image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Slight polish for other hero sections */
.about-logo-card,
.contact-form,
.detail-card,
.cta-card,
.prototype-callout,
.area-map-card {
  backdrop-filter: blur(2px);
}

@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .page-hero {
    min-height: 390px;
  }
  .page-hero::after {
    background:
      linear-gradient(180deg, rgba(6,7,8,.90) 0%, rgba(6,7,8,.86) 46%, rgba(6,7,8,.58) 74%, rgba(6,7,8,.34) 100%);
  }
  .page-hero h1 {
    font-size: clamp(2.15rem, 5.5vw, 3.15rem);
  }
  .approved-hero::after {
    height: 96px;
  }
}
@media (max-width: 700px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 340px;
  }
  .page-hero h1 {
    font-size: clamp(1.95rem, 9vw, 2.7rem);
  }
  .page-hero .lead {
    font-size: .96rem;
  }
  .area-map-card,
  .area-map-image {
    min-height: 280px;
  }
  .approved-hero::after {
    height: 64px;
    clip-path: polygon(0 8%, 11% 76%, 50% 76%, 53% 92%, 100% 92%, 100% 100%, 0 100%);
  }
  .approved-circuit {
    height: 64px;
  }
}


/* =========================================================
   v0.1.8 — Selected images + exact mobile hero cutoff
   ========================================================= */

.approved-hero::after {
  display: none !important;
}
.approved-circuit {
  z-index: 7;
  height: 96px;
  overflow: visible;
}
.approved-circuit .circuit-mask {
  fill: #050607;
}
.approved-circuit .circuit-glow {
  fill: none;
  stroke: rgba(255, 224, 0, .48);
  stroke-width: 3.1;
  vector-effect: non-scaling-stroke;
  filter: url(#circuitGlowV18);
}
.approved-circuit .circuit-main {
  fill: none;
  stroke: url(#circuitStrokeV18);
  stroke-width: 1.15;
  vector-effect: non-scaling-stroke;
}
.approved-circuit .circuit-node {
  fill: #fff6ad;
  filter: url(#nodeGlowV18);
  opacity: .9;
}

/* Exact selected hero images */
.services-hero::before {
  background-image: url("../img/hero-services-selected.jpg");
  background-position: center right;
}
.service-area-hero::before {
  background-image: url("../img/hero-service-area-selected.jpg");
  background-position: center;
}
.about-hero::before {
  background-image: url("../img/hero-about-modesto.jpg");
  background-position: center;
}
.contact-hero::before {
  background-image: url("../img/hero-contact-selected.jpg");
  background-position: center right;
}

.services-hero::after,
.contact-hero::after {
  background:
    linear-gradient(90deg, rgba(6,7,8,.97) 0%, rgba(6,7,8,.91) 40%, rgba(6,7,8,.60) 62%, rgba(6,7,8,.24) 100%),
    linear-gradient(180deg, rgba(6,7,8,.15), rgba(6,7,8,.40));
}
.service-area-hero::after,
.about-hero::after {
  background:
    linear-gradient(90deg, rgba(6,7,8,.96) 0%, rgba(6,7,8,.88) 37%, rgba(6,7,8,.53) 61%, rgba(6,7,8,.22) 100%),
    linear-gradient(180deg, rgba(6,7,8,.12), rgba(6,7,8,.42));
}

/* Balanced 2 x 3 services grid. */
.detail-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.detail-grid > .anchor-target {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}
.detail-card {
  min-height: 0;
  height: 100%;
  padding: 24px 22px;
}
.detail-card .service-icon {
  margin-bottom: 28px;
}
.detail-card h2 {
  font-size: 1.30rem;
  line-height: 1.18;
}
.detail-card p {
  font-size: .92rem;
  line-height: 1.55;
}
.detail-card .feature-list {
  grid-template-columns: 1fr 1fr;
  gap: 7px 12px;
}
.detail-card .feature-list li {
  font-size: .84rem;
}

/* Smaller inner-page hero headings than the homepage. */
.page-hero h1 {
  font-size: clamp(2.15rem, 3.7vw, 3.25rem);
  max-width: 800px;
}
.page-hero .lead {
  max-width: 700px;
}
.area-map-image {
  object-position: center;
}
.btn i {
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .approved-circuit {
    height: 64px;
  }
  .approved-circuit .circuit-glow {
    stroke-width: 2.6;
  }
  .approved-circuit .circuit-main {
    stroke-width: 1.05;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .page-hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.55rem);
  }
  .services-hero::before,
  .contact-hero::before {
    background-position: 70% center;
  }
}


/* =========================================================
   v0.1.9 — Inner hero alignment + circuit artifact cleanup
   ========================================================= */

/* Re-center and better align inner-page hero content with the page body/cards. */
.page-hero-inner {
  width: min(calc(100% - 40px), var(--container)) !important;
  margin-inline: auto !important;
  padding-left: clamp(24px, 4.8vw, 64px);
  padding-right: 0;
}
.page-hero h1,
.page-hero .lead {
  max-width: 700px;
}
.page-hero .eyebrow {
  margin-left: 0;
}

/* Service Area now gets the Modesto streetscape as the top hero,
   while the detailed map remains lower on the page. */
.service-area-hero::before {
  background-image: url("../img/hero-about-modesto.jpg");
  background-position: center;
}
.about-hero::before {
  background-image: url("../img/hero-about-bg.jpg");
  background-position: center right;
}

/* Home circuit line cleanup: thinner single line, no seam artifacts. */
.approved-circuit {
  left: -1px;
  right: -1px;
  bottom: -1px;
  width: calc(100% + 2px);
  height: 96px;
  z-index: 8;
}
.approved-circuit .circuit-mask {
  fill: #050607;
  stroke: none;
}
.approved-circuit .circuit-glow,
.approved-circuit .circuit-main {
  stroke-linecap: round;
  stroke-linejoin: round;
}
.approved-circuit .circuit-glow {
  stroke: rgba(255, 224, 0, .42);
  stroke-width: 2.7;
  filter: url(#circuitGlowV19);
}
.approved-circuit .circuit-main {
  stroke: url(#circuitStrokeV19);
  stroke-width: 1.02;
}
.approved-circuit .circuit-node {
  fill: #fff6ad;
  opacity: .86;
  filter: url(#nodeGlowV19);
}

/* Remove the faint seam directly beneath the hero. */
.approved-feature-bar {
  position: relative;
  margin-top: -1px;
  border-top: 0;
}

/* Keep mobile aligned too. */
@media (max-width: 980px) {
  .page-hero-inner {
    padding-left: clamp(18px, 4vw, 36px);
  }
}
@media (max-width: 700px) {
  .page-hero-inner {
    width: min(calc(100% - 28px), var(--container)) !important;
    padding-left: 12px;
  }

  .approved-circuit {
    height: 64px;
  }
  .approved-circuit .circuit-glow {
    stroke-width: 2.2;
  }
  .approved-circuit .circuit-main {
    stroke-width: .96;
  }
}


/* =========================================================
   v0.1.10 — Service Area CTA nowrap fix
   ========================================================= */

.area-band .split-copy > .btn {
  flex: 0 0 auto;
  white-space: nowrap;
  min-width: 190px;
}

@media (max-width: 700px) {
  .area-band .split-copy > .btn {
    width: 100%;
    min-width: 0;
  }
}


/* =========================================================
   v0.1.11 — Contact hero background swap
   ========================================================= */

.contact-hero::before {
  background-image: url("../img/hero-contact-telephone.jpg");
  background-position: center right;
}


/* =========================================================
   v0.1.12 — Contact hero scale + transparent favicon
   ========================================================= */

.contact-hero::before {
  background-image: url("../img/hero-contact-telephone.jpg");
  background-color: #050607;
  background-size: auto 108%;
  background-position: right 52%;
  background-repeat: no-repeat;
}

@media (max-width: 980px) {
  .contact-hero::before {
    background-size: auto 100%;
    background-position: 72% center;
  }
}

@media (max-width: 700px) {
  .contact-hero::before {
    background-size: auto 92%;
    background-position: 68% center;
  }
}


/* =========================================================
   v0.1.13 — Contact fill + About hero + favicon refinement
   ========================================================= */

/* Contact: fill the entire hero again, like the approved preview. */
.contact-hero::before {
  background-image: url("../img/hero-contact-telephone.jpg");
  background-color: #050607;
  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
}

/* About: use the selected electrician / energized cable visual. */
.about-hero::before {
  background-image: url("../img/hero-about-electrician.jpg");
  background-position: center right;
  background-size: cover;
}

/* Keep text readable while letting more artwork remain visible. */
.contact-hero::after,
.about-hero::after {
  background:
    linear-gradient(90deg,
      rgba(6,7,8,.96) 0%,
      rgba(6,7,8,.90) 35%,
      rgba(6,7,8,.62) 56%,
      rgba(6,7,8,.28) 74%,
      rgba(6,7,8,.12) 100%),
    linear-gradient(180deg, rgba(6,7,8,.10), rgba(6,7,8,.30));
}

@media (max-width: 980px) {
  .contact-hero::before {
    background-size: cover;
    background-position: 68% center;
  }
  .about-hero::before {
    background-position: 72% center;
  }
}

@media (max-width: 700px) {
  .contact-hero::before {
    background-size: cover;
    background-position: 72% center;
  }
  .about-hero::before {
    background-position: 76% center;
  }
}


/* =========================================================
   v0.1.14 — Unified site header
   ========================================================= */

/* Every page now uses the exact approved homepage header system. */
body .approved-header .approved-header-inner {
  min-height: 112px;
}

body .approved-header .kei-brand-mark {
  width: 116px;
  height: 88px;
}

body .approved-header .kei-wordmark strong {
  font-size: 2rem;
}

body .approved-header .kei-wordmark small {
  font-size: .93rem;
}

body .approved-header .approved-header-cta {
  min-width: 222px;
  min-height: 58px;
}

@media (max-width: 1220px) {
  body .approved-header .kei-brand-mark {
    width: 92px;
    height: 76px;
  }
  body .approved-header .kei-wordmark strong {
    font-size: 1.68rem;
  }
  body .approved-header .kei-wordmark small {
    font-size: .79rem;
  }
  body .approved-header .approved-header-cta {
    min-width: 188px;
  }
}

@media (max-width: 980px) {
  body .approved-header .approved-header-inner {
    min-height: 88px;
  }
  body .approved-header .kei-brand-mark {
    width: 78px;
    height: 64px;
  }
  body .approved-header .kei-wordmark strong {
    font-size: 1.5rem;
  }
  body .approved-header .kei-wordmark small {
    font-size: .68rem;
  }
}

@media (max-width: 700px) {
  body .approved-header .approved-header-inner {
    min-height: 76px;
  }
  body .approved-header .kei-brand-mark {
    width: 59px;
    height: 50px;
  }
  body .approved-header .kei-wordmark strong {
    font-size: 1.03rem;
  }
  body .approved-header .kei-wordmark small {
    font-size: .52rem;
  }
}


/* =========================================================
   v0.1.15 — Selected page-image refresh
   ========================================================= */

/* Services hero: warm lightbulb visual */
.services-hero::before {
  background-image: url("../img/hero-services-lightbulb.jpg");
  background-position: center;
  background-size: cover;
}

/* Service Area hero: updated Modesto arch streetscape */
.service-area-hero::before {
  background-image: url("../img/hero-service-area-modesto-arch.jpg");
  background-position: center;
  background-size: cover;
}

/* About hero: tools / blueprint composition */
.about-hero::before {
  background-image: url("../img/hero-about-tools.jpg");
  background-position: center;
  background-size: cover;
}

/* Service Area content image: center the newly selected gold map cleanly */
.area-map-image {
  object-position: center;
}


/* =========================================================
   v0.1.16 — Phone CTA + Services lightbulb visibility
   ========================================================= */

/* Header phone button: slightly larger icon/type for better visual balance. */
body .approved-header .approved-header-cta {
  min-width: 196px;
  font-size: 1.08rem;
  font-weight: 900;
  gap: 12px;
}
body .approved-header .approved-header-cta i {
  font-size: 1.15rem;
}

/* Contact hero phone CTA */
.contact-hero-actions {
  margin-top: 24px;
}
.contact-call-btn {
  min-width: 190px;
  font-size: 1.02rem;
  gap: 11px;
}
.contact-call-btn i {
  font-size: 1.05rem;
}

/* Put the actual bulb on the open right side of the Services hero. */
.services-hero::before {
  background-image: url("../img/hero-services-lightbulb.jpg");
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
  transform-origin: center;
}

/* Keep the left side dark for text, but let the bulb read clearly on the right. */
.services-hero::after {
  background:
    linear-gradient(90deg,
      rgba(6,7,8,.98) 0%,
      rgba(6,7,8,.93) 34%,
      rgba(6,7,8,.72) 51%,
      rgba(6,7,8,.28) 69%,
      rgba(6,7,8,.07) 100%),
    linear-gradient(180deg, rgba(6,7,8,.06), rgba(6,7,8,.20));
}

@media (max-width: 980px) {
  body .approved-header .approved-header-cta {
    font-size: 1rem;
  }

  .services-hero::before {
    background-position: 58% center;
  }
}

@media (max-width: 700px) {
  .contact-call-btn {
    width: 100%;
    max-width: 320px;
  }

  .services-hero::before {
    background-position: 64% center;
  }
}


/* =========================================================
   v0.1.17 — Header Call Now button proportion fix
   ========================================================= */

body .approved-header .approved-header-cta {
  min-width: 0;
  min-height: 52px;
  padding: 12px 16px;
}

@media (max-width: 1220px) {
  body .approved-header .approved-header-cta {
    min-width: 0;
    padding: 11px 15px;
  }
}


/* =========================================================
   v0.1.19 — Opaque sticky header
   ========================================================= */

/* Keep the header solid black while scrolling so the compact logo's
   black image background blends cleanly instead of revealing page art. */
.approved-header {
  background: #050607 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Keep the subtle tech grid, but do not let content beneath show through. */
.approved-header::before {
  opacity: .08;
}


/* =========================================================
   v0.1.20 — Mobile hero typography refinement
   ========================================================= */

/* Let hero headlines scale down more naturally on smaller phones,
   with slightly more breathing room both horizontally and vertically. */
@media (max-width: 700px) {
  .approved-copy h1 {
    font-size: clamp(2rem, 9.4vw, 3.15rem);
    line-height: 1.06;
    letter-spacing: -0.02em;
  }

  .approved-copy h1 > span {
    line-height: inherit;
  }

  .page-hero h1 {
    font-size: clamp(1.8rem, 7.4vw, 2.4rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .section-heading h2,
  .intro-grid h2,
  .signal-copy h2,
  .area-copy h2,
  .about-copy h2,
  .contact-intro h2,
  .cta-card h2,
  .split-copy h2 {
    font-size: clamp(1.65rem, 7vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
  }
}

/* Extra-small phones get another small step down rather than holding
   the same oversized headline size. */
@media (max-width: 420px) {
  .approved-copy h1 {
    font-size: clamp(1.9rem, 9vw, 2.35rem);
    line-height: 1.07;
    letter-spacing: -0.015em;
  }

  .page-hero h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.05rem);
    line-height: 1.09;
    letter-spacing: -0.015em;
  }
}


/* =========================================================
   v0.1.21 — Footer tagline + original logo
   ========================================================= */

.footer-brand {
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  flex: 0 0 auto;
}

.footer-brand-copy {
  display: grid;
  gap: 5px;
  line-height: 1.05;
}

.footer-brand-copy strong {
  color: #f4f6f7;
  font-size: .98rem;
  font-weight: 850;
}

.footer-brand-copy small {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .footer-brand img {
    width: 60px;
    height: 60px;
  }

  .footer-brand-copy strong {
    font-size: .92rem;
  }

  .footer-brand-copy small {
    font-size: .62rem;
  }
}


/* =========================================================
   v0.1.22 — Restored approved simplified logo
   ========================================================= */

.kei-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0;
  min-width: 0;
}

.kei-brand-full {
  display: block;
  width: 470px;
  max-width: 100%;
  height: auto;
}

.footer-brand {
  display: inline-grid;
  align-items: start;
  gap: 12px;
  font-weight: 850;
}

.footer-brand img {
  display: block;
  width: min(100%, 340px);
  height: auto;
  border-radius: 0;
}

.footer-brand-copy {
  display: block;
}

.footer-brand-copy small {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 1220px) {
  .kei-brand-full {
    width: 390px;
  }
}

@media (max-width: 980px) {
  .kei-brand-full {
    width: 260px;
  }
}

@media (max-width: 700px) {
  .kei-brand-full {
    width: 215px;
  }

  .footer-brand img {
    width: min(100%, 260px);
  }

  .footer-brand-copy small {
    font-size: .62rem;
  }
}


/* =========================================================
   v0.1.23 — Cutout mark + live HTML wordmark restoration
   ========================================================= */

.kei-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 17px;
  min-width: 0;
}

.kei-brand-mark {
  display: block;
  width: 116px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  flex: 0 0 auto;
}

.kei-wordmark {
  display: grid;
  gap: 5px;
  line-height: 1;
  white-space: nowrap;
}

.kei-wordmark strong {
  color: #fff;
  font-size: 2rem;
  line-height: .9;
  letter-spacing: .025em;
  font-weight: 950;
}

.kei-wordmark small {
  color: #f4dd00;
  font-size: .93rem;
  line-height: 1;
  letter-spacing: .25em;
  font-weight: 900;
}

/* Footer: simplified mark + live text + tagline, matching the earlier cleaner layout. */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 850;
}

.footer-brand-mark {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.footer-brand-copy {
  display: grid;
  gap: 5px;
  line-height: 1.05;
}

.footer-brand-copy strong {
  color: #f4f6f7;
  font-size: .98rem;
  font-weight: 850;
}

.footer-brand-copy small {
  color: var(--yellow);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Neutralize the previous full-logo sizing rules. */
.kei-brand-full {
  display: none !important;
}

@media (max-width: 1220px) {
  .kei-brand-mark {
    width: 92px;
    height: 76px;
  }
  .kei-wordmark strong {
    font-size: 1.68rem;
  }
  .kei-wordmark small {
    font-size: .79rem;
  }
}

@media (max-width: 980px) {
  .kei-brand-mark {
    width: 78px;
    height: 64px;
  }
  .kei-wordmark strong {
    font-size: 1.5rem;
  }
  .kei-wordmark small {
    font-size: .68rem;
  }
}

@media (max-width: 700px) {
  .kei-brand {
    gap: 10px;
  }
  .kei-brand-mark {
    width: 59px;
    height: 50px;
  }
  .kei-wordmark strong {
    font-size: 1.03rem;
  }
  .kei-wordmark small {
    font-size: .52rem;
  }

  .footer-brand-mark {
    width: 52px;
    height: 52px;
  }
  .footer-brand-copy strong {
    font-size: .92rem;
  }
  .footer-brand-copy small {
    font-size: .62rem;
  }
}


/* =========================================================
   v0.1.24 — Footer brand proportions restored
   ========================================================= */

/* Match the earlier compact footer layout, but use the new simplified mark. */
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: auto;
  max-width: 100%;
}

/* Override the older full-logo image rule that was making this mark huge. */
.site-footer .footer-brand img.footer-brand-mark {
  width: 64px !important;
  height: 64px !important;
  max-width: 64px !important;
  min-width: 64px;
  object-fit: contain;
  border-radius: 0 !important;
  flex: 0 0 64px;
}

.site-footer .footer-brand-copy {
  display: grid;
  gap: 4px;
  line-height: 1;
  min-width: 0;
}

.site-footer .footer-brand-copy strong {
  display: block;
  color: #f4f6f7;
  font-size: .98rem;
  line-height: 1.05;
  font-weight: 850;
  white-space: nowrap;
}

.site-footer .footer-brand-copy small {
  display: block;
  color: var(--yellow);
  font-size: .66rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .site-footer .footer-brand img.footer-brand-mark {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    min-width: 58px;
    flex-basis: 58px;
  }

  .site-footer .footer-brand-copy strong {
    font-size: .92rem;
  }

  .site-footer .footer-brand-copy small {
    font-size: .61rem;
    letter-spacing: .07em;
  }
}
