/*
Theme Name: SGC Integrators
Theme URI: https://sgcintegrators.com/
Author: SGC Integrators
Description: Custom one-page theme for SGC Integrators — low voltage & security solutions. Dark "Signal Grid" aesthetic: Inter + JetBrains Mono, cyan accent, technical grid motifs. Homepage layout lives in template-parts/content-home.php.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sgc-integrators
*/

/* ============================================================
   SGC Integrators — Low Voltage & Security Solutions
   Style system reproduced from the base44 "Signal Grid" design
   ============================================================ */

:root {
  --bg:        #101114;
  --bg-2:      #0a0c10;
  --bg-3:      #08090c;
  --panel:     rgba(255, 255, 255, 0.02);
  --panel-2:   rgba(255, 255, 255, 0.04);
  --line:      #2b2d31;
  --line-soft: rgba(255, 255, 255, 0.06);

  --text:      #f6f6f9;
  --mist:      #f4f4f9;
  --muted:     #8e9299;
  --muted-2:   rgba(142, 146, 153, 0.5);

  --accent:       #06b6d4;
  --accent-strong:#22c9e6;
  --accent-dim:   rgba(6, 182, 212, 0.20);
  --accent-faint: rgba(6, 182, 212, 0.08);

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Roboto Mono", monospace;

  --container: 1200px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(5rem, 12vw, 8.5rem);
  --announce-h: 46px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 640px) { :root { --announce-h: 76px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #04222a; }

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

/* ---------- helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
}
.eyebrow--muted { color: var(--muted); }
.eyebrow--muted::before { background: var(--muted); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head h2 {
  margin-top: 1.25rem;
  font-size: clamp(2rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.section-head p {
  margin-top: 1.25rem;
  color: var(--muted);
  max-width: 42rem;
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
}

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 0;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn:active { transform: translateY(1px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--muted);
  border-color: var(--line);
}
.btn--ghost:hover {
  background: var(--accent-faint);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--accent);
  color: #04222a;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: calc(var(--announce-h) + 1rem); }

/* ---------- announcement bar ---------- */
.announce {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--announce-h);
  padding: .55rem 1.25rem;
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12pt;
  line-height: 1.4;
  text-align: center;
}
.announce__msg { margin: 0; max-width: 60rem; }
.announce__label {
  font-family: var(--font-mono);
  font-size: 10pt;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  margin-right: .55rem;
}
.announce__label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: .5rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  vertical-align: 1px;
}

/* scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset: var(--announce-h) 0 auto 0;
  z-index: 100;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(16, 17, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand__mark {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--accent);
}
.brand__mark svg { width: 100%; height: 100%; display: block; overflow: visible; }
.bm-ring { fill: none; stroke: currentColor; stroke-width: 1.4; }
.bm-ring--inner { stroke-width: 1; opacity: 0.4; }
.bm-chev { fill: currentColor; opacity: 0.26; }
.bm-chev--prime { opacity: 0.85; }
.bm-chevrons {
  transform-origin: 12px 12px;
  transition: transform 3.6s cubic-bezier(0.4, 0, 0.1, 1);
}
.brand:hover .bm-chevrons { transform: rotate(360deg); }
@media (prefers-reduced-motion: reduce) {
  .bm-chevrons { transition: none; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav a {
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav .btn { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: background .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform .25s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: calc(72px + var(--announce-h)) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1rem var(--pad-x) 2rem;
    transform: translateY(-120%);
    transition: transform .35s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: .8rem;
  }
  .nav .btn { margin-top: 1.25rem; justify-content: center; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 760px;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 620px at 72% 8%, var(--accent-faint), transparent 60%),
    linear-gradient(180deg, rgba(15,17,21,0.35), rgba(15,17,21,0.7) 55%, var(--bg) 100%),
    var(--bg-2);
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 60% 0%, #000 30%, transparent 78%);
}
.hero__scan {
  position: absolute;
  left: 0; right: 0; top: 22%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-dim), transparent);
}
.hero .container { position: relative; z-index: 2; }

.hero h1 {
  margin-top: 1.6rem;
  font-size: clamp(2.75rem, 8.4vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  margin-top: 1.75rem;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}
.hero__actions {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  position: absolute;
  left: var(--pad-x);
  bottom: 2rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .8rem;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero__meta .chevron {
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  animation: nudge 1.8s var(--ease) infinite;
}
@keyframes nudge {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50%      { transform: rotate(45deg) translate(3px, 3px); }
}
.hero__coords {
  position: absolute;
  right: var(--pad-x);
  bottom: 2rem;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .18em;
  color: var(--muted-2);
  text-align: right;
}

/* ============================================================
   Stats strip
   ============================================================ */
.stats {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
}
.stats .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat__num {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mist);
}
.stat__label {
  margin-top: .4rem;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats .container { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============================================================
   Section shells
   ============================================================ */
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: color-mix(in srgb, var(--bg-2) 78%, transparent); border-block: 1px solid var(--line); }

/* ---------- Solution matrix ---------- */
.matrix { border-top: 1px solid var(--line); }
.matrix__row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.1fr) auto;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}
.matrix__row:hover {
  background: var(--panel);
  padding-left: 1rem;
}
.matrix__num {
  font-family: var(--font-mono);
  font-size: .9rem;
  color: var(--muted-2);
  transition: color .25s var(--ease);
}
.matrix__row:hover .matrix__num { color: var(--accent); }
.matrix__title {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.matrix__desc { color: var(--muted); font-size: .95rem; }
.matrix__icon { color: var(--accent); justify-self: end; }
.matrix__icon svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .matrix__row {
    grid-template-columns: 3rem 1fr;
    grid-template-areas:
      "num  icon"
      "title title"
      "desc desc";
    gap: .5rem 1rem;
  }
  .matrix__num { grid-area: num; }
  .matrix__icon { grid-area: icon; }
  .matrix__title { grid-area: title; margin-top: .25rem; }
  .matrix__desc { grid-area: desc; }
  .matrix__row:hover { padding-left: 0; }
}

/* ---------- Territory ---------- */
.territory__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4.5rem);
  align-items: center;
}
.county-list {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.county-list li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.county-list li span { color: var(--accent); font-size: .7rem; }
.map-wrap {
  position: relative;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 50% 40%, var(--accent-faint), transparent 70%),
    var(--bg-3);
  padding: 1.25rem;
}
.map-wrap::before {
  content: "SIGNAL GRID / SOCAL";
  position: absolute;
  top: .75rem; left: 1rem;
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .25em;
  color: var(--muted-2);
}
.map-wrap svg { width: 100%; height: auto; }
.map-node circle.pulse {
  transform-origin: center;
  animation: pulse 3s ease-out infinite;
}
@keyframes pulse {
  0%   { r: 4; opacity: .9; }
  70%  { r: 20; opacity: 0; }
  100% { r: 20; opacity: 0; }
}
.map-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  fill: var(--muted);
  text-transform: uppercase;
}
.map-hub { fill: var(--accent); }
.map-dot { fill: var(--accent-strong); }
.map-link { stroke: var(--accent); stroke-width: 1; opacity: .35; }
.map-grid-line { stroke: var(--line-soft); stroke-width: 1; }

@media (max-width: 820px) {
  .territory__grid { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */
.about__body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 2.5rem;
}
.about__body p + p { margin-top: 0; }

.feature-grid {
  margin-top: clamp(3rem, 7vw, 4.5rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.feature {
  background: var(--bg);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: background .25s var(--ease);
}
.feature:hover { background: var(--panel-2); }
.feature__icon { color: var(--accent); margin-bottom: 1rem; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: .5rem;
}
.feature p { color: var(--muted); font-size: .9rem; }

@media (max-width: 900px) {
  .about__body { grid-template-columns: 1fr; gap: 1.25rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2rem, 6vw, 4.5rem);
}
.contact__info { border-top: 1px solid var(--line); }
.info-row {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.info-row dt {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .35rem;
}
.info-row dd { font-size: .98rem; }
.info-row dd small { display: block; color: var(--muted); font-size: .82rem; }

.form {
  border: 1px solid var(--line);
  background: var(--bg-3);
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.form__field { margin-bottom: 1.1rem; }
.form__field label {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form__field input,
.form__field select,
.form__field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .8rem .9rem;
  font-size: .95rem;
  transition: border-color .2s var(--ease);
}
.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form__field textarea { resize: vertical; min-height: 120px; }
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form .btn { width: 100%; justify-content: center; margin-top: .5rem; }
.form .btn:disabled { opacity: .6; cursor: progress; }

/* honeypot — hidden from people, offered to bots */
.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* post-submit notice */
.form__alert {
  margin-bottom: 1.5rem;
  padding: .85rem 1rem;
  font-size: .85rem;
  line-height: 1.5;
  border: 1px solid;
}
.form__alert a { text-decoration: underline; }
.form__alert--ok {
  border-color: var(--accent);
  background: var(--accent-faint);
  color: var(--accent-strong);
}
.form__alert--err {
  border-color: #c2410c;
  background: rgba(194, 65, 12, .12);
  color: #fb923c;
}

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .form__row { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line);
  background: var(--bg-3);
  overflow: hidden;
  white-space: nowrap;
}
.ticker__track {
  display: inline-flex;
  gap: 2.5rem;
  padding: .9rem 0;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  animation: marquee 32s linear infinite;
}
.ticker__track span::after { content: " /"; color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

.site-footer {
  background: var(--bg-2);
  padding-block: clamp(3rem, 8vw, 5rem);
}
.site-footer .container { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand h2 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.footer-brand p { margin-top: 1rem; color: var(--muted); max-width: 26rem; font-size: .9rem; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.footer-col a { font-size: .88rem; color: var(--text); transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-col li:not(:has(a)) { font-size: .88rem; color: var(--muted); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-bottom nav { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ============================================================
   Contact Form 7 / WPForms / Fluent Forms — match theme inputs
   (only applies if you swap the built-in form for a plugin shortcode)
   ============================================================ */
.form .wpcf7-form-control-wrap,
.form .wpforms-field { display: block; }
.form .wpcf7 label,
.form .wpforms-field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .5rem;
}
.form .wpcf7 input[type="text"],
.form .wpcf7 input[type="email"],
.form .wpcf7 input[type="tel"],
.form .wpcf7 textarea,
.form .wpcf7 select,
.form .wpforms-field input,
.form .wpforms-field textarea,
.form .wpforms-field select,
.form .frm_form_field input,
.form .frm_form_field textarea,
.form .frm_form_field select,
.form .ff-el-form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .8rem .9rem;
  font-size: .95rem;
  color: var(--text);
}
.form .wpcf7 input:focus,
.form .wpcf7 textarea:focus,
.form .wpcf7 select:focus,
.form .wpforms-field input:focus,
.form .wpforms-field textarea:focus,
.form .ff-el-form-control:focus {
  outline: none;
  border-color: var(--accent);
}
.form .wpcf7 .wpcf7-submit,
.form .wpforms-submit,
.form .frm_button_submit,
.form .ff-btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 0;
  padding: .85rem 1.4rem;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.form .wpcf7-response-output {
  margin: 1rem 0 0;
  border: 0;
  padding: 0;
  font-size: .82rem;
  color: var(--muted);
}

/* If the nav is driven by Appearance → Menus, normalise the list markup */
.nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li { display: contents; }
@media (max-width: 880px) {
  .nav ul, .nav li { display: block; }
}

/* ============================================================
   Background EKG — subtle vertical heartbeat trace
   Fixed layer behind all content (z-index -1). Non-alt sections
   are transparent so it shows through; alt sections are ~78%
   opaque so it only whispers. Honors prefers-reduced-motion.
   ============================================================ */
.ekg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}
.ekg__trace {
  position: absolute;
  top: 0;
  left: clamp(10px, 6vw, 96px);
  width: clamp(120px, 22vw, 260px);
  height: 100%;
  color: var(--accent);
  opacity: 0.16;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 86%, transparent 100%);
}
.ekg__line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.45));
}
.ekg__scroll { animation: ekg-scroll 15s linear infinite; }
@keyframes ekg-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-800px); }
}
.ekg__scan {
  fill: none;
  stroke: #93efff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 22 800;
  opacity: 0.65;
  animation: ekg-scan 3.6s linear infinite;
}
@keyframes ekg-scan {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -800; }
}
@media (prefers-reduced-motion: reduce) {
  .ekg__scroll { animation: none; }
  .ekg__scan { display: none; }
}
