/* PrecisionConnect — demo build, DARK theme (Rick's brand: dark like his original site)
   Surfaces: near-black header/footer #070C0F · page #0C1519 · alt #101D25 · raised card #1A2C36
   Accents from the logo: teal #26C6B4 (arrow) · gold #E9C46A / #E2B23E (wordmark)
   Type: Inter (headings) · Lato (body) · Space Grotesk (buttons) · IBM Plex Mono (utility)
   Committed single (dark) theme — this brand's identity is dark by design. */

:root {
  --paper: #0C1519;    /* page ground / .sec */
  --alt:   #101D25;    /* .sec-alt sections + hero */
  --card:  #1A2C36;    /* raised surfaces: cards, tables, defs, chips */
  --deep:  #070C0F;    /* deepest: header, footer, CTA, callbar, metrics */
  --ink:   #EAF1F4;    /* primary text */
  --steel: #A2B6C2;    /* secondary text */
  --teal:  #58B9C6;    /* secondary teal text (mono tags, steps, wordmark) */
  --line:  #2A404A;    /* borders */
  --dim:   #16242C;    /* subtle fills, TO CONFIRM bg */
  --locate: #26C6B4;   /* logo arrow teal, brightened for dark ground */
  --teal-ink: #38D6C4; /* focus ring */
  --btn-bg: #E9C46A;   /* logo wordmark gold = site accent token */
  --gold-d: #E2B23E;
  --flag: #F17A76;     /* invoice flag red, brightened for dark */
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --disp: "Inter", "Helvetica Neue", Arial, sans-serif;
  --btnf: "Space Grotesk", var(--sans);
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

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

h1, h2, h3 { font-family: var(--disp); line-height: 1.15; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; max-width: 22ch; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 700; max-width: 30ch; }
h3 { font-size: 1.1rem; font-weight: 700; }

p, li, dd { color: var(--steel); }
p { max-width: 68ch; }
strong { color: var(--ink); }

a { color: var(--ink); text-decoration-color: rgba(234, 241, 244, 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--locate); }

:focus-visible {
  outline: 2px solid var(--teal-ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono { font-family: var(--mono); }

.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 24px; }

/* ---- skip link ---- */
.skip {
  position: absolute;
  left: -9999px;
  background: var(--ink);
  color: var(--deep);
  padding: 0.75rem 1.1rem;
  z-index: 200;
  font-weight: 600;
}
.skip:focus { position: fixed; left: 1rem; top: 1rem; }

/* ---- honeypot field (spam trap, contact form) ---- */
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- TO CONFIRM marker ---- */
.tc {
  font-family: var(--mono);
  font-size: 0.82em;
  background: var(--dim);
  color: #9FB2BE;
  border: 1px dashed #47606B;
  border-radius: 4px;
  padding: 0.1em 0.5em;
}

/* ---- signature: the locate line ---- */
.locate {
  height: 4px;
  width: 72px;
  background: var(--locate);
  position: relative;
  margin-bottom: 1.25rem;
}
.locate::after {
  content: "";
  position: absolute;
  right: -16px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--gold-d);
}

.sec-tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.sec-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-d);
  flex: none;
}

/* ---- header ---- */
.site-head {
  background: var(--deep);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.head-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
}
.brand {
  font-family: var(--disp);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.brand span { color: var(--teal); font-weight: 600; }
.brand::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--gold-d);
  margin-left: 7px;
  margin-top: 2px;
}
.nav { display: flex; gap: 1.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--steel);
  padding: 0.35rem 0.1rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--line); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--locate); }
.nav .nav-cta {
  background: var(--btn-bg);
  color: var(--deep);
  font-family: var(--btnf);
  padding: 0.5rem 0.95rem;
  border-radius: 6px;
  border-bottom: none;
  font-weight: 600;
}
.nav .nav-cta:hover { background: var(--gold-d); color: var(--deep); }
.head-phone {
  font-family: var(--mono);
  font-size: 0.88rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  white-space: nowrap;
}
.head-phone:hover { border-color: var(--locate); }
.nav-btn {
  display: none;
  margin-left: auto;
  font: 600 0.9rem var(--sans);
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.9rem;
  cursor: pointer;
}

@media (max-width: 920px) {
  .nav-btn { display: block; }
  .head-phone { display: none; }
  .nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 24px 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--locate); }
  .nav .nav-cta { margin-top: 0.8rem; text-align: center; }
}

/* ---- hero ---- */
.hero {
  background-color: var(--alt);
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 32px);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 3rem;
  position: relative;
  overflow: hidden;
}

/* ---- 3D network canvas (home hero; echoes the logo's node-and-arrow motif) ---- */
.hero-net {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  opacity: 0.55;
}
.hero > .wrap { position: relative; z-index: 1; }

/* ---- 3D tilt on hover (pointer devices; JS respects prefers-reduced-motion) ---- */
.tilt {
  transition: transform 0.18s ease;
  will-change: transform;
}
.hero-split { display: grid; gap: 2rem; align-items: center; grid-template-columns: 1fr; }
.hero-side { display: grid; gap: 1.25rem; justify-items: start; align-content: start; }
.logo-badge {
  display: none;
  background: #E6E6E6;
  border-radius: 10px;
  padding: 0.9rem;
  max-width: 320px;
  width: 100%;
}
.hero-logo { display: block; width: 100%; max-width: 300px; margin: 0 auto; }
@media (min-width: 960px) {
  .hero-split { grid-template-columns: 1fr 340px; align-items: start; }
  .hero-side { justify-items: center; }
  .logo-badge { display: block; }
}

.crumb {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.4rem;
}
.hero h1 { max-width: 24ch; }
.h1-sub {
  display: block;
  margin-top: 0.55rem;
  font-family: var(--disp);
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.25;
  color: var(--teal);
  max-width: none;
}
.answer {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--ink);
  border-left: 3px solid var(--locate);
  padding-left: 1.1rem;
  margin-top: 1.4rem;
  max-width: 62ch;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--steel);
}
.hero-facts span::before { content: "■ "; color: var(--gold-d); font-size: 0.6em; vertical-align: 2px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--deep);
  text-decoration: none;
  font-family: var(--btnf);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.5rem;
  border-radius: 6px;
  border: 1.5px solid var(--btn-bg);
}
.btn:hover { background: var(--gold-d); border-color: var(--gold-d); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--deep); }

/* ---- sections ---- */
.sec { padding: 3.2rem 0; }
.sec-alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec h2 { margin-bottom: 0.9rem; }
.sec h2 + p { margin-bottom: 1rem; }
.sec h3 { margin: 1.6rem 0 0.5rem; }
.sec p + p { margin-top: 0.9rem; }

/* ---- cards / grids ---- */
.grid2 { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); margin-top: 1.5rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
}
.card h3 { margin: 0 0 0.5rem; }
.card .mono-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.7rem;
}
.card p { font-size: 0.96rem; }
.card .more { display: inline-block; margin-top: 0.9rem; font-weight: 600; font-size: 0.93rem; color: var(--locate); }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; list-style: none; }
.chips li {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  color: var(--steel);
}

/* ---- pain-point "signs" list + trust badges ---- */
.signs { list-style: none; margin: 1.3rem 0; display: grid; gap: 0.65rem; max-width: 680px; }
.signs li { position: relative; padding-left: 1.6rem; color: var(--steel); }
.signs li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  background: var(--locate);
}
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.5rem; }
.trust-chips li {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--locate);
  border-radius: 4px;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-chips li::before { content: "\2713"; color: var(--locate); font-weight: 700; }

.callout {
  border-left: 3px solid var(--locate);
  background: rgba(38, 198, 180, 0.10);
  border-radius: 0 6px 6px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
  max-width: 70ch;
}
.callout p { color: var(--ink); }

/* ---- numbered steps ---- */
.steps { list-style: none; counter-reset: step; margin: 1.5rem 0; display: grid; gap: 1.1rem; max-width: 720px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  align-items: start;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--teal);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  text-align: center;
  padding: 0.4rem 0;
}
.steps li strong { display: block; margin-bottom: 0.15rem; }

/* ---- tables ---- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  margin: 1.5rem 0;
}
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.95rem; }
caption {
  text-align: left;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.8rem 1rem 0.2rem;
}
th {
  background: #22343E;
  color: var(--ink);
  text-align: left;
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
}
td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--steel); }
td:first-child { color: var(--ink); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

/* ---- definition blocks ---- */
.def {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.3rem 1.5rem;
  margin: 1.5rem 0;
  max-width: 760px;
}
.def dt {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  margin-top: 1.1rem;
}
.def dt:first-child { margin-top: 0; }
.def dd { margin-top: 0.25rem; font-size: 0.95rem; }

/* ---- invoice mock (home signature) ---- */
.invoice { padding: 0; overflow: hidden; max-width: 760px; margin: 1.5rem 0 0; }
.inv-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--steel);
}
.inv-row {
  display: grid;
  grid-template-columns: 2rem 1fr auto auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 1.2rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.inv-row:last-of-type { border-bottom: 0; }
.inv-row .no { font-family: var(--mono); font-size: 0.8rem; color: var(--steel); }
.inv-row .desc { color: var(--ink); }
.inv-row .desc small { display: block; color: var(--steel); font-size: 0.82rem; }
.redact {
  display: inline-block;
  width: 3.4em;
  height: 0.85em;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, #33454F 0 6px, #1E2E37 6px 10px);
  vertical-align: middle;
}
.flag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--flag);
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
  background: rgba(241, 122, 118, 0.12);
  white-space: nowrap;
}
.flag-ok { color: var(--steel); background: transparent; }
figure figcaption {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--steel);
  padding: 0.8rem 0 0;
}
@media (max-width: 560px) {
  .inv-row { grid-template-columns: 1.6rem 1fr; }
  .inv-row .amt, .inv-row .flag { grid-column: 2; justify-self: start; }
}

/* ---- headshot ---- */
.photo-ph {
  aspect-ratio: 4 / 5;
  max-width: 320px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.photo-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-lead { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) {
  .about-lead { grid-template-columns: 1fr; }
  .photo-ph { max-width: 260px; }
}

/* ---- forms ---- */
.form { display: grid; gap: 1.15rem; max-width: 640px; margin-top: 1.5rem; }
.form label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 0.35rem; color: var(--ink); }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #38525E;
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: var(--card);
}
.form input::placeholder, .form textarea::placeholder { color: #6E8592; }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: 1px solid var(--line); border-radius: 6px; padding: 1rem 1.2rem; }
.form legend { font-weight: 600; font-size: 0.95rem; padding: 0 0.4rem; }
.form .radio-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.55rem; }
.form .radio-row input { width: auto; }
.form .radio-row label { font-weight: 400; margin: 0; color: var(--steel); }
.form-note { font-family: var(--mono); font-size: 0.8rem; color: var(--steel); }
.form button { justify-self: start; cursor: pointer; }

/* ---- contact layout ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.nap { font-style: normal; }
.nap p { margin-top: 0.9rem; }
.nap .big {
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--locate);
  text-decoration: none;
  font-weight: 600;
}

/* ---- FAQ ---- */
.faq-item { max-width: 760px; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h2 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.faq-item p { font-size: 0.98rem; }
.faq-item p + p { margin-top: 0.7rem; }
.faq-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--teal);
  display: block;
  margin-bottom: 0.3rem;
}

/* ---- CTA band ---- */
.cta-band { background: var(--deep); padding: 3.2rem 0; border-top: 1px solid var(--line); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #C8D4E0; margin-top: 0.7rem; }
.cta-band .locate { margin-bottom: 1.1rem; }
.cta-band .btn-ghost { color: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--deep); }

/* ---- footer ---- */
.site-foot { background: var(--deep); color: #C8D4E0; padding: 3rem 0 1.5rem; border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; } }
.foot-brand { font-family: var(--disp); font-weight: 800; font-size: 1.1rem; color: #fff; }
.foot-brand::after { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--gold-d); margin-left: 6px; }
.site-foot p, .site-foot address, .site-foot li { color: #C8D4E0; font-size: 0.92rem; font-style: normal; }
.site-foot a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.4); }
.foot-h {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8FA3B8;
  margin-bottom: 0.7rem;
}
.site-foot ul { list-style: none; display: grid; gap: 0.4rem; }
.foot-legal {
  margin-top: 2.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.foot-legal p { font-size: 0.84rem; color: #8FA3B8; }

/* ---- sticky mobile call/text bar ---- */
.callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.callbar a {
  display: block;
  text-align: center;
  padding: 0.95rem 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.callbar .call { background: var(--card); color: #fff; }
.callbar .text { background: var(--btn-bg); color: var(--deep); }
@media (max-width: 767px) {
  .callbar { display: grid; }
  body { padding-bottom: 56px; }
}

/* ---- infrastructure metrics box (live ticker; JS respects prefers-reduced-motion) ---- */
.metrics {
  background: var(--deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.1rem 1.25rem 1.2rem;
  max-width: 340px;
  width: 100%;
}
.metrics-head {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8FA3B8;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--locate);
  flex: none;
  animation: live-pulse 1.6s ease-in-out infinite;
}
.live-label { color: var(--locate); }
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.metric { margin-top: 0.95rem; }
.metric-label { font-size: 0.78rem; line-height: 1.45; color: #8FA3B8; }
.metric-num {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.5rem;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 0.15rem;
  transition: color 0.4s ease;
}
.metric-num.tick { color: var(--locate); transition: none; }
.metric-unit {
  font-size: 0.68rem;
  color: var(--locate);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
