/* Hardline Security — site styles
   Plain CSS, no build step. Every color comes from the variables in :root below,
   so the whole palette can be changed in one place.
   Look: technical drawings on charcoal, with deep-navy bands. Crisp white type, royal-blue wiring, emerald for AI/live status. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see /fonts/LICENSE.txt) ---------- */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Plex Mono";
  src: url("/fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg: #14171c;           /* charcoal: page */
  --bg-alt: #1b1f26;       /* slate: alternate sections */
  --bg-deep: #0c1b3a;      /* deep navy: emphasis bands (why-wired, quote, footer, strip) */
  --surface: #1d222a;      /* figures, form */
  --field: #121519;        /* form inputs */
  --screen: #07090c;       /* the "camera view" drawing */

  /* Text */
  --fg: #f4f6f8;           /* crisp white */
  --fg-rgb: 244, 246, 248;
  --fg-2: #cbd1d9;         /* secondary body text */
  --muted: #98a1ad;        /* labels, captions (AA on all backgrounds above) */
  --body-dim: #aab2bd;     /* secondary paragraphs (7:1 on all backgrounds above) */

  /* Lines */
  --line: rgba(var(--fg-rgb), .12);
  --line-strong: rgba(var(--fg-rgb), .5);

  /* Accents */
  --accent: #2563eb;       /* royal blue: buttons */
  --accent-rgb: 37, 99, 235;
  --accent-hover: #1d4ed8;  /* darker on hover: white text stays above 4.5:1 */
  --on-accent: #ffffff;
  --accent-text: #7ca6ff;  /* blue for text/lines on dark backgrounds */
  --cable: #4f86f7;        /* cable runs in drawings */
  --pulse: #a9c4ff;        /* signal pulses on cables */
  --ai: #34d399;           /* emerald: AI detection, live/status */
  --ai-rgb: 52, 211, 153;
  --on-ai: #03251a;

  /* Motion */
  --ease-out: cubic-bezier(.23, 1, .32, 1);

  /* Logo mark */
  --mark-bg: var(--accent);
  --mark-h: #ffffff;
  --mark-x: var(--ai);

  /* Form messages */
  --ok-fg: #6ee7b7; --ok-bg: rgba(52, 211, 153, .1); --ok-line: rgba(52, 211, 153, .4);
  --err-fg: #fca5a5; --err-bg: rgba(248, 113, 113, .1); --err-line: rgba(248, 113, 113, .45);

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 64px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  padding-bottom: 64px; /* room for mobile call bar */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (min-width: 760px) { body { padding-bottom: 0; } }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-text); }
a[href^="tel:"] { white-space: nowrap; } /* never split a phone number across lines */
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1; font-weight: 800; font-stretch: 72%; letter-spacing: -.005em; }
h1, h2 { text-transform: uppercase; }
h1 { font-size: clamp(2.7rem, 5.3vw, 4.9rem); line-height: .92; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: .95; }
h3 { font-size: 1.6rem; font-weight: 750; font-stretch: 78%; line-height: 1.1; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 10px; top: 10px; z-index: 100; transform: translateY(-200%);
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { transform: none; color: var(--on-accent); }

.section-intro { max-width: 56ch; color: var(--body-dim); font-size: 1.125rem; }

/* ---------- Logo mark ---------- */
.brand-mark .mk-bg { fill: var(--mark-bg); }
.brand-mark .mk-h { fill: none; stroke: var(--mark-h); stroke-width: 3.4; }
.brand-mark .mk-x { fill: none; stroke: var(--mark-x); stroke-width: 3.4; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--fg); text-decoration: none; }
.brand:hover { color: var(--fg); }
.brand-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.brand-name { font-weight: 850; font-stretch: 75%; font-size: 1.35rem; letter-spacing: .01em; text-transform: uppercase; line-height: 1; }
.brand-name span { font-weight: 400; color: var(--muted); }

.site-nav { display: none; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--fg-2); text-decoration: none; font-size: .95rem; font-weight: 500; padding: 10px 0; position: relative; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 4px; height: 2px; background: var(--accent-text);
  transition: right .2s var(--ease-out);
}
.site-nav a:hover { color: var(--fg); }
@media (hover: hover) and (pointer: fine) { .site-nav a:hover::after { right: 0; } }

.header-call {
  margin-left: auto; display: inline-flex; flex-direction: column; justify-content: center;
  padding: 4px 14px; min-height: 44px; border-radius: var(--radius); border: 2px solid var(--accent);
  background: var(--accent); color: var(--on-accent); text-decoration: none; line-height: 1.15;
}
.header-call:hover { color: var(--on-accent); background: var(--accent-hover); border-color: var(--accent-hover); }
.header-call-label { display: none; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; }
.header-call-num { font-weight: 700; font-size: 1rem; }

@media (max-width: 400px) {
  .brand-name span { display: none; }
}
@media (max-width: 359px) {
  .header-inner { gap: 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.15rem; }
  .header-call { padding: 4px 10px; }
  .header-call-num { font-size: .9rem; }
}
@media (min-width: 600px) { .header-call-label { display: block; } }
@media (min-width: 960px) {
  .site-nav { display: flex; }
  .site-nav + .header-call { margin-left: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius);
  padding: 12px 20px; min-height: 48px;
  transition: background-color .15s, color .15s, border-color .15s, transform .14s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); } }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-lg { font-size: 1.08rem; padding: 16px 26px; min-height: 60px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-outline, .btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-outline:hover, .btn-ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 0; overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero::before { /* drafting grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(var(--fg-rgb), .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--fg-rgb), .055) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.hero { padding-bottom: clamp(40px, 5vw, 64px); }
.hero-top { display: grid; gap: 28px; align-items: end; margin-bottom: clamp(36px, 4.5vw, 56px); }
@media (min-width: 1000px) { .hero-top { grid-template-columns: 1.35fr 1fr; gap: 64px; } }
.hero h1 { margin: 0; max-width: 16ch; }
.h1-dim { color: var(--muted); }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); max-width: 46ch; color: var(--fg-2); margin-bottom: 28px; }
.lede strong { color: var(--fg); font-weight: 650; }

/* Hero entrance: once, on load */
@keyframes enter-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
[data-enter] .hero-top > * , [data-enter] .ai-figure, [data-enter] .proof { animation: enter-up .7s cubic-bezier(.2, .7, .2, 1) both; }
[data-enter] .hero-side { animation-delay: .12s; }
[data-enter] .ai-figure { animation-delay: .24s; }
[data-enter] .proof { animation-delay: .36s; }
@media (prefers-reduced-motion: reduce) { [data-enter] * { animation: none !important; } }
.cta-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .cta-row { flex-direction: row; flex-wrap: wrap; } }
.hero-sub { margin: 16px 0 0; }
.hero-sub a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--fg); }
.hero-sub a:hover { color: var(--accent-text); }

/* Fig. 1 — the cutaway drawing */
.hero-figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.figure-head {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 10px 16px; border-bottom: 1px solid var(--line);
}
.figure-head span { white-space: nowrap; }
@media (max-width: 479px) { .figure-head span + span { display: none; } }
.diagram { display: block; width: 100%; height: auto; padding: 12px 8px 0; }
.legend {
  list-style: none; margin: 0; padding: 14px 16px 16px; border-top: 1px solid var(--line);
  display: grid; gap: 6px 20px; grid-template-columns: 1fr;
  font-size: .9rem; color: var(--fg-2);
}
@media (min-width: 520px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend li { display: flex; gap: 10px; align-items: baseline; }
.legend span { font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--fg); border: 1px solid var(--line-strong); padding: 0 5px; line-height: 1.5; }
.legend li:nth-child(5) span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.diagram .d-line { fill: none; stroke: rgba(var(--fg-rgb), .88); stroke-width: 2; stroke-linejoin: round; }
.diagram .d-faint { fill: none; stroke: rgba(var(--fg-rgb), .22); stroke-width: 1.25; }
.diagram .d-hatch { stroke: rgba(var(--fg-rgb), .1); stroke-width: 1.25; }
.diagram .d-ground { stroke: rgba(var(--fg-rgb), .88); stroke-width: 2.6; }
.diagram .d-box { fill: rgba(var(--fg-rgb), .88); }
.diagram .d-port { stroke: var(--surface); stroke-width: 2.5; }
.diagram .d-led { fill: var(--ai); }
.diagram .d-wall { fill: rgba(var(--fg-rgb), .03); stroke: rgba(var(--fg-rgb), .88); stroke-width: 2; stroke-linejoin: round; }
.diagram .d-cap { fill: var(--surface); }
.diagram .d-glassfill { fill: rgba(124, 166, 255, .07); }
.diagram .d-cables-glow path { fill: none; stroke: var(--cable); stroke-width: 7; opacity: .35; stroke-linejoin: round; }
.diagram .d-cables path { fill: none; stroke: var(--cable); stroke-width: 2.25; stroke-linejoin: round; }
.diagram .d-pulses path {
  fill: none; stroke: var(--pulse); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 3 200; stroke-dashoffset: 3;
  animation: pulse 3.4s cubic-bezier(.45, 0, .55, 1) infinite;
}
.diagram .d-pulses path:nth-child(2) { animation-delay: -.9s; animation-duration: 3.8s; }
.diagram .d-pulses path:nth-child(3) { animation-delay: -2.1s; animation-duration: 4.2s; }
.diagram .d-pulses path:nth-child(4) { animation-delay: -1.5s; animation-duration: 3s; }
@keyframes pulse { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .diagram .d-pulses { display: none; } }
.diagram .d-cam { fill: var(--fg); }
.diagram .d-tag rect { fill: var(--surface); stroke: rgba(var(--fg-rgb), .7); stroke-width: 1.5; }
.diagram .d-tag text { font-family: var(--mono); font-size: 12px; font-weight: 500; fill: var(--fg); text-anchor: middle; }
.diagram .d-tag-dark rect { fill: var(--accent); stroke: var(--accent); }
.diagram .d-tag-dark text { fill: var(--on-accent); }

/* Proof strip under the hero */
.proof { display: grid; grid-template-columns: 1fr 1fr; margin: 0; }
.proof > div { padding: 18px 16px 4px 0; border-top: 2px solid var(--line-strong); }
.proof dt { font-weight: 750; font-stretch: 80%; font-size: 1.2rem; line-height: 1.2; margin-bottom: 6px; }
.proof dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.proof-note { margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
@media (min-width: 860px) {
  .proof { grid-template-columns: repeat(4, 1fr); }
  .proof > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-tint { background: var(--bg-alt); }
.section-dark { background: var(--bg-deep); }

/* Shared panel */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* The problem */
.problems { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 860px) { .problems { grid-template-columns: repeat(3, 1fr); } }
.problems .panel { padding: 28px 26px 30px; border-top: 2px solid var(--accent-text); }
.problems h3 { margin-bottom: 14px; }
.problems p { margin: 0; color: var(--body-dim); }
.problems-note { margin: 32px 0 0; color: var(--fg-2); font-size: 1.125rem; max-width: 60ch; }

/* What changes */
.outcomes { list-style: none; margin: 0; padding: 0; display: grid; border-top: 2px solid var(--line-strong); }
.outcomes li { padding: 24px 0 26px; border-bottom: 1px solid var(--line); }
.outcomes h3 { margin-bottom: 10px; }
.outcomes p { margin: 0; color: var(--body-dim); max-width: 40ch; }
@media (min-width: 960px) {
  .outcomes { grid-template-columns: repeat(3, 1fr); column-gap: 0; }
  .outcomes li { padding: 28px 28px 30px; }
  .outcomes li:nth-child(3n+1) { padding-left: 0; }
  .outcomes li:not(:nth-child(3n+1)) { border-left: 1px solid var(--line); }
}

/* Why wired */
.why-grid { display: grid; gap: 40px; align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
@media (min-width: 960px) { .why-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; } }
.why-copy h2 { margin-bottom: 24px; }
.why-statement { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.55; color: var(--fg-2); margin: 0; max-width: 46ch; }

.compare { width: 100%; border-collapse: collapse; border-bottom: 1px solid var(--line); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 20px 20px 22px; border-top: 1px solid var(--line); font-weight: 400; }
.compare thead th { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 14px; padding-bottom: 14px; border-top: 2px solid var(--line-strong); }
.compare thead td { border-top: 2px solid var(--line-strong); }
.compare tbody th { font-weight: 750; font-stretch: 80%; font-size: 1.2rem; color: var(--fg); line-height: 1.25; padding-left: 0; width: 26%; }
.compare td { color: var(--body-dim); }
.compare .col-wired { color: var(--fg); background: rgba(var(--accent-rgb), .12); border-left: 2px solid var(--accent-text); }
.compare thead .col-wired { color: var(--accent-text); }

@media (max-width: 759px) {
  .compare, .compare tbody { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare tr { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; border-top: 1px solid var(--line); padding: 18px 0 20px; }
  .compare tbody th { grid-column: 1 / -1; width: auto; border: 0; padding: 0 0 12px; }
  .compare td { border-top: 0; padding: 0; font-size: .97rem; }
  .compare td.col-wired { padding: 8px 10px 10px 12px; }
  .compare td::before {
    content: attr(data-label); display: block; margin-bottom: 4px;
    font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .compare td.col-wired::before { color: var(--accent-text); }
}

/* Section heads */
.section-head { display: grid; gap: 16px; margin-bottom: 44px; }
@media (min-width: 960px) { .section-head { grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: end; } .section-head .section-intro { margin: 0; } }
.section-head h2 { margin: 0; }
/* AI detection */
.ai-figure { margin: 0 0 clamp(36px, 4.5vw, 56px); }
.ai-stage { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .ai-stage { grid-template-columns: 1fr 300px; gap: 28px; } }
.cam-frame { border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--screen); }
.cam-view { display: block; width: 100%; height: auto; }
.cam-view .v-wall { fill: #171c25; stroke: rgba(var(--fg-rgb), .14); stroke-width: 1.5; }
.cam-view .v-win { fill: #0d1320; stroke: rgba(var(--fg-rgb), .18); stroke-width: 1.25; }
.cam-view .v-door { fill: #10151d; stroke: rgba(var(--fg-rgb), .3); stroke-width: 1.5; }
.cam-view .v-edge { stroke: rgba(var(--fg-rgb), .22); stroke-width: 1.5; }
.cam-view .v-stall { fill: none; stroke: rgba(var(--fg-rgb), .12); stroke-width: 2; }
.cam-view .v-trunk { stroke: #3a3328; stroke-width: 8; stroke-linecap: round; }
.cam-view .v-canopy { fill: #15241d; stroke: rgba(var(--fg-rgb), .12); stroke-width: 1.25; }
.cam-view .v-body { fill: #333b48; stroke: rgba(var(--fg-rgb), .25); stroke-width: 1.25; }
.cam-view .v-glass { fill: #0b111b; }
.cam-view .v-grille { fill: #161a21; }
.cam-view .v-plate { fill: #e6ebf2; }
.cam-view .v-tire { fill: #050608; }
.cam-view .v-lamp { fill: #f5f8ff; }
.cam-view .v-lamp-glow { fill: #dfe9ff; opacity: .8; }
.cam-view .v-person { fill: #dfe5ee; }
.cam-view .v-fill { fill: rgba(var(--ai-rgb), .08); }
.cam-view .v-bracket { fill: none; stroke: var(--ai); stroke-width: 2.5; }
.cam-view .v-bracket-thin { stroke-width: 1.75; }
.cam-view .v-zone { fill: rgba(var(--ai-rgb), .06); stroke: var(--ai); stroke-width: 1.5; stroke-dasharray: 6 4; }
.cam-view .v-zone-alert path { fill: rgba(var(--ai-rgb), .28); stroke: var(--ai); stroke-width: 2.5; }
.cam-view .v-ignore { fill: none; stroke: rgba(var(--fg-rgb), .3); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cam-view .v-wire { fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-dasharray: 10 6; }
.cam-view .v-wire-arrow { fill: none; stroke: var(--ai); stroke-width: 2.5; stroke-linecap: round; }
.cam-view .v-solid { fill: var(--ai); }
.cam-view .v-pill rect { fill: var(--ai); }
.cam-view .v-pill text { font-family: var(--mono); font-size: 11.5px; font-weight: 500; fill: var(--on-ai); letter-spacing: .03em; text-anchor: middle; }
.cam-view .v-pill-ghost rect { fill: var(--screen); stroke: rgba(var(--fg-rgb), .35); stroke-width: 1.25; }
.cam-view .v-pill-ghost text { fill: rgba(var(--fg-rgb), .7); }
.cam-view .v-pill-line rect { fill: var(--screen); stroke: var(--ai); stroke-width: 1.25; }
.cam-view .v-pill-line text { fill: var(--ai); }
/* Phones: the camera view renders at about half size, so grow the labels to stay readable.
   Each label scales from the side that keeps it inside the frame. */
@media (max-width: 599px) {
  .cam-view .v-pill { transform-box: fill-box; transform-origin: center; scale: 1.5; }
  .cam-view .v-pill-lx { transform-origin: left center; }
  .cam-view .v-pill-zone { transform-origin: right bottom; }
  .cam-view .v-pill-person { transform-origin: center top; translate: -40px 10px; } /* clear of the zone label */
  .cam-view .v-osd { font-size: 19px; }
}
.cam-view .v-osd { font-family: var(--mono); font-size: 13px; fill: rgba(var(--fg-rgb), .85); letter-spacing: .06em; }
.cam-view .v-rec { fill: #f87171; }

/* Phone with the alert feed */
.phone {
  background: var(--screen); border: 1px solid var(--line-strong); border-radius: 28px;
  padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 360px; justify-self: center;
}
.phone::before { content: ""; width: 64px; height: 5px; border-radius: 3px; background: rgba(var(--fg-rgb), .2); align-self: center; margin-bottom: 4px; }
.phone-clock { text-align: center; font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; color: var(--fg); margin: 2px 0 0; }
.phone-date { text-align: center; font-size: .8rem; color: var(--muted); margin: 0 0 10px; }
.phone-head { display: flex; justify-content: space-between; align-items: center; padding: 0 6px 4px; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.phone-live { display: inline-flex; align-items: center; gap: 6px; color: var(--ai); }
.phone-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.notifs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start;
  padding: 10px; border-radius: 12px; background: rgba(var(--fg-rgb), .06); border: 1px solid var(--line);
}
.notif-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(var(--ai-rgb), .14); }
.notif-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ai); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notif-body { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.notif-body b { font-size: .9rem; font-weight: 650; color: var(--fg); }
.notif-body > span { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.notif code { font-family: var(--mono); font-size: .74rem; color: var(--fg); background: rgba(var(--fg-rgb), .1); padding: 0 4px; border-radius: 3px; }
.notif time { font-family: var(--mono); font-size: .66rem; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.notif-urgent .notif-icon { background: var(--ai); }
.notif-urgent .notif-icon svg { stroke: var(--on-ai); }
@media (max-width: 899px) {
  .phone { padding-top: 12px; }
  .phone-clock, .phone-date { display: none; }
}

/* ----- AI animation: one 16s loop. Percent marks: 1% = 0.16s. -----
   1-12%   car drives in across the entrance line (line flashes, alert 1 at 9%)
   14-17%  vehicle box, then plate box (alert 2 at 20%)
   25-38%  person walks in; 40-44% person box, face box (alert 3 at 47%)
   54-70%  person walks to the back door; 71% zone triggers (alert 4 at 74%)
   80-89%  tree sways; "no alert" flashes; nothing is sent
   94-98%  everything fades, then the loop restarts */
.ai-figure { --loop: 16s; }
.ai-figure.is-live .cam-view *, .ai-figure.is-live .notif { animation-duration: var(--loop); animation-iteration-count: infinite; animation-fill-mode: both; animation-timing-function: ease-in-out; }
.ai-figure.is-paused .cam-view *, .ai-figure.is-paused .notif { animation-play-state: paused; }

.cam-view .v-car, .cam-view .v-walker, .cam-view .v-tree { transform-box: view-box; }
.cam-view .v-walker { transform-origin: 474px 292px; }
.cam-view .v-tree { transform-origin: 90px 176px; }
.ai-figure.is-live .v-car { animation-name: ai-car; }
.ai-figure.is-live .v-linex { animation-name: ai-linex; }
.ai-figure.is-live .v-det-veh { animation-name: ai-veh; }
.ai-figure.is-live .v-det-plate { animation-name: ai-plate; }
.ai-figure.is-live .v-walker { animation-name: ai-walker; animation-timing-function: linear; }
.ai-figure.is-live .v-det-person { animation-name: ai-person; }
.ai-figure.is-live .v-det-face { animation-name: ai-face; }
.ai-figure.is-live .v-zone-alert, .ai-figure.is-live .v-zone-alert-tag { animation-name: ai-zone; }
.ai-figure.is-live .v-tree { animation-name: ai-tree; }
.ai-figure.is-live .v-ignore-g { animation-name: ai-ignore; }
.ai-figure.is-live .v-rec { animation: ai-rec 1.4s steps(2, jump-none) infinite; }
.ai-figure.is-live .notif:nth-child(1) { animation-name: ai-n1; }
.ai-figure.is-live .notif:nth-child(2) { animation-name: ai-n2; }
.ai-figure.is-live .notif:nth-child(3) { animation-name: ai-n3; }
.ai-figure.is-live .notif:nth-child(4) { animation-name: ai-n4; }

@keyframes ai-car { 0%, 1% { transform: translate(-170px, 70px); opacity: 0; } 3% { opacity: 1; } 12%, 94% { transform: translate(0, 0); opacity: 1; } 98%, 100% { transform: translate(0, 0); opacity: 0; } }
@keyframes ai-linex { 0%, 5% { opacity: .6; } 6.5%, 11% { opacity: 1; } 15%, 100% { opacity: .6; } }
@keyframes ai-veh { 0%, 13% { opacity: 0; } 14%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ai-plate { 0%, 16% { opacity: 0; } 17%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ai-walker {
  0%, 24% { transform: translate(90px, 70px); opacity: 0; }
  26% { opacity: 1; }
  38%, 54% { transform: translate(0, 0); opacity: 1; }
  70%, 94% { transform: translate(69px, -142px) scale(.6); opacity: 1; }
  97%, 100% { transform: translate(69px, -142px) scale(.6); opacity: 0; }
}
@keyframes ai-person { 0%, 39% { opacity: 0; } 40%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes ai-face { 0%, 43% { opacity: 0; } 44%, 52% { opacity: 1; } 54%, 100% { opacity: 0; } }
@keyframes ai-zone { 0%, 70% { opacity: 0; } 71%, 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes ai-tree { 0%, 80% { transform: rotate(0); } 82% { transform: rotate(-5deg); } 84% { transform: rotate(4deg); } 86% { transform: rotate(-3deg); } 88% { transform: rotate(2deg); } 90%, 100% { transform: rotate(0); } }
@keyframes ai-ignore { 0%, 80% { opacity: .55; } 82%, 89% { opacity: 1; } 92%, 100% { opacity: .55; } }
@keyframes ai-rec { 50% { opacity: .2; } }
@keyframes ai-n1 { 0%, 8% { opacity: 0; transform: translateY(-8px); } 9.5% { opacity: 1; transform: none; border-color: var(--ai); } 18%, 94% { opacity: 1; transform: none; border-color: var(--line); } 97%, 100% { opacity: 0; } }
@keyframes ai-n2 { 0%, 19% { opacity: 0; transform: translateY(-8px); } 20.5% { opacity: 1; transform: none; border-color: var(--ai); } 30%, 94% { opacity: 1; transform: none; border-color: var(--line); } 97%, 100% { opacity: 0; } }
@keyframes ai-n3 { 0%, 46% { opacity: 0; transform: translateY(-8px); } 47.5% { opacity: 1; transform: none; border-color: var(--ai); } 57%, 94% { opacity: 1; transform: none; border-color: var(--line); } 97%, 100% { opacity: 0; } }
@keyframes ai-n4 { 0%, 73% { opacity: 0; transform: translateY(-8px); } 74.5% { opacity: 1; transform: none; border-color: var(--ai); } 86%, 94% { opacity: 1; transform: none; border-color: var(--line); } 97%, 100% { opacity: 0; } }

/* ---------- Story: a night with Hardline ----------
   The scene stays pinned while the four steps scroll past. main.js sets data-step="1".."4"
   on .story-visual and .is-active on the step in view; everything below keys off those.
   No JS: the scene shows step 2 and every step is fully visible. */
.story-grid { display: grid; gap: 24px; }
.story-visual { position: sticky; top: var(--header-h); z-index: 2; background: var(--bg-alt); padding: 8px 0 12px; }
.scene { position: relative; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #050a14; }
.scene-svg { display: block; width: 100%; height: auto; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 44vh; padding: 28px 0 28px 22px; border-left: 2px solid var(--line); transition: border-color .35s; }
.story-step h3 { margin-bottom: 12px; }
.story-step p:last-child { color: var(--fg-2); margin: 0; max-width: 44ch; }
.step-time { font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .08em; color: var(--accent-text); margin-bottom: 10px; }
.js-story .story-step.is-active { border-left-color: var(--accent-text); }
.js-story .story-step:not(.is-active) h3 { color: var(--fg-2); }
@media (min-width: 960px) {
  .story-grid { grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
  .story-visual { top: calc(var(--header-h) + 40px); padding: 0; background: none; }
  .story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 28px; }
  .story-step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 8px; }
}

/* scene artwork */
.scene .sc-hills { fill: #08101d; }
.scene .sc-curb { stroke: rgba(var(--fg-rgb), .25); stroke-width: 2; }
.scene .sc-stripe { stroke: rgba(var(--fg-rgb), .12); stroke-width: 3; }
.scene .sc-bldg { stroke: rgba(var(--fg-rgb), .14); stroke-width: 1.5; }
.scene .sc-cap { fill: #353e4e; }
.scene .sc-sign { fill: #10141b; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.25; }
.scene .sc-sign-line { stroke: rgba(var(--fg-rgb), .35); stroke-width: 3; stroke-linecap: round; }
.scene .sc-glass { fill: #0a0e15; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.25; }
.scene .sc-lit rect { fill: url(#sc-lit); }
.scene .sc-mullion { fill: none; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.5; }
.scene .sc-bay { fill: #151a22; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.25; }
.scene .sc-door { fill: #11151c; stroke: rgba(var(--fg-rgb), .3); stroke-width: 1.5; }
.scene .sc-knob { fill: rgba(var(--fg-rgb), .6); }
.scene .sc-wallpack { fill: #e6eeff; }
.scene .sc-zone-door { fill: rgba(var(--ai-rgb), .18); stroke: var(--ai); stroke-width: 2; }
.scene .sc-cam { fill: #e6ebf2; }
.scene .sc-car-body { fill: #3a4351; stroke: rgba(var(--fg-rgb), .25); stroke-width: 1.25; }
.scene .sc-car-glass { fill: #0b1220; }
.scene .sc-tire { fill: #050608; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.25; }
.scene .sc-headlight { fill: #f5f8ff; }
.scene .sc-person { fill: #dfe5ee; }
.scene .sc-fill { fill: rgba(var(--ai-rgb), .1); }
.scene .sc-bracket { fill: none; stroke: var(--ai); stroke-width: 2.5; }
.scene .sc-pill rect { fill: var(--ai); }
.scene .sc-pill text { font-family: var(--mono); font-size: 11px; font-weight: 500; fill: var(--on-ai); text-anchor: middle; }
.scene .sc-stars circle { fill: #fff; opacity: .7; }
.scene .sc-moon-disc { fill: #e8eefc; }
.scene .sc-dim { fill: #000; }

/* scene states (default = step 2, the no-JS view) */
.scene svg [class^="sc-"], .scene-card, .scene-clock span { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.sc-sky-dusk, .sc-sky-dawn, .sc-sun, .sc-lit, .sc-dim { opacity: 0; }
.story-visual[data-step="1"] .sc-sky-dusk { opacity: 1; }
.story-visual[data-step="1"] .sc-lit { opacity: 1; }
.story-visual[data-step="1"] .sc-stars { opacity: .25; }
.story-visual[data-step="1"] :is(.sc-car, .sc-person, .sc-det, .sc-zone, .sc-cone-ai) { opacity: 0; }
.story-visual[data-step="3"] .sc-dim { opacity: .5; }
.story-visual[data-step="4"] :is(.sc-sky-dawn, .sc-sun) { opacity: 1; }
.story-visual[data-step="4"] :is(.sc-stars, .sc-moon, .sc-person, .sc-det-person, .sc-zone, .sc-cone-ai) { opacity: 0; }
.story-visual[data-step="4"] .sc-dim { opacity: .35; }

.scene-clock {
  position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, .6); border: 1px solid var(--line);
  font-family: var(--mono); font-size: .75rem; font-weight: 500; color: var(--fg);
  display: grid;
}
.scene-clock span { grid-area: 1 / 1; opacity: 0; }
.story-visual[data-step="1"] .scene-clock [data-s="1"],
.story-visual[data-step="2"] .scene-clock [data-s="2"],
.story-visual[data-step="3"] .scene-clock [data-s="3"],
.story-visual[data-step="4"] .scene-clock [data-s="4"] { opacity: 1; }

.scene-card {
  position: absolute; right: 14px; bottom: 14px; width: min(300px, 64%);
  padding: 12px; border-radius: 14px; background: rgba(12, 15, 20, .96); border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(12px); pointer-events: none;
}
.story-visual[data-step="3"] .scene-alert, .story-visual[data-step="4"] .scene-clip { opacity: 1; transform: none; }
.sa-top { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-bottom: 10px; }
.sa-app { display: inline-flex; align-items: center; gap: 6px; color: var(--fg-2); }
.sa-app i { width: 7px; height: 7px; border-radius: 50%; background: var(--ai); }
.sa-main { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; line-height: 1.3; }
.sa-thumb { width: 64px; height: auto; display: block; }
.sa-main b { display: block; font-size: .92rem; font-weight: 650; }
.sa-main span { font-size: .8rem; color: var(--muted); }
.sa-actions { display: flex; gap: 8px; margin-top: 12px; }
.sa-btn { flex: 1; text-align: center; padding: 7px 8px; border-radius: 8px; background: rgba(var(--fg-rgb), .08); font-size: .82rem; font-weight: 600; }
.sa-btn-primary { background: var(--accent); color: var(--on-accent); }
.clip-meta { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin: -4px 0 10px; }
.clip-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.clip-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: var(--mono); font-size: .64rem; color: var(--muted); }
.clip-thumb svg { width: 100%; height: auto; display: block; }
.clip-plate, .clip-time { width: 100%; aspect-ratio: 48 / 40; display: grid; place-items: center; border-radius: 5px; font-family: var(--mono); font-size: .72rem; font-weight: 500; }
.clip-plate { background: #e6ebf2; color: #07090c; }
.clip-time { background: #07090c; color: var(--fg); }
@media (max-width: 599px) {
  .scene-card { right: 8px; bottom: 8px; width: 72%; padding: 9px; border-radius: 10px; }
  .sa-main { grid-template-columns: 44px 1fr; gap: 8px; }
  .sa-thumb { width: 44px; }
  .sa-main b { font-size: .8rem; } .sa-main span { font-size: .7rem; }
  .sa-actions { margin-top: 8px; } .sa-btn { padding: 4px 6px; font-size: .72rem; }
  .clip-meta { display: none; }
  .scene-clock { top: 8px; left: 8px; font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) { .scene svg [class^="sc-"], .scene-card, .scene-clock span, .story-step { transition: none; } }

/* Steps, joined by a cable line */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.steps li { position: relative; padding: 0 0 36px 44px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { /* vertical cable on mobile */
  content: ""; position: absolute; left: 7px; top: 8px; bottom: -8px; width: 2px; background: var(--cable);
}
.steps li:last-child::before { display: none; }
.step-node { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; background: var(--bg-alt); border: 2px solid var(--fg); }
.steps li:first-child .step-node { background: var(--accent-text); border-color: var(--accent-text); }
.step-num { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.steps li p:last-child { color: var(--body-dim); margin: 0; max-width: 34ch; }
@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { padding: 44px 0 0; }
  .steps li::before { left: 8px; right: -40px; top: 7px; bottom: auto; width: auto; height: 2px; }
  .steps li:last-child::before { display: block; right: 0; background: linear-gradient(90deg, var(--cable) 0 30%, transparent 30% 34%, var(--cable) 34% 38%, transparent 38% 42%, var(--cable) 42% 46%, transparent 46%); }
  .step-node { top: 0; }
}

.included {
  margin: clamp(40px, 5vw, 56px) 0 0; padding: 20px 24px; max-width: 80ch;
  border: 1px solid rgba(var(--accent-rgb), .45); background: rgba(var(--accent-rgb), .07); border-radius: var(--radius);
  color: var(--fg-2);
}
.included b { color: var(--fg); }

/* Service area */
.area { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) { .area { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; } }
.town-groups { display: grid; gap: 28px 32px; margin-top: 36px; }
@media (min-width: 560px) { .town-groups { grid-template-columns: 1fr 1fr; } }
.town-groups h3 { margin: 0; padding-bottom: 10px; border-bottom: 2px solid var(--line-strong); }
.town-list { list-style: none; margin: 0; padding: 0; }
@media (max-width: 559px) { .town-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.town-list li { padding: 7px 0; border-bottom: 1px solid var(--line); font-weight: 650; font-stretch: 85%; font-size: 1.08rem; line-height: 1.35; }
.town-list li.is-home { color: var(--accent-text); }
.town-list li.is-home::after { content: "Home base"; font-family: var(--mono); font-weight: 400; font-stretch: 100%; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 10px; }
.map-figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map { display: block; width: 100%; height: auto; }
.map .m-grid path { stroke: rgba(var(--fg-rgb), .05); stroke-width: 1; }
.map .m-runs path { stroke: var(--cable); stroke-width: 1.5; stroke-dasharray: 5 5; opacity: .75; }
.map .m-town circle { fill: var(--surface); stroke: var(--fg); stroke-width: 2.5; }
.map .m-rings circle { fill: none; stroke: rgba(var(--fg-rgb), .2); stroke-width: 1.25; stroke-dasharray: 2 4; }
.map .m-rings text { font-family: var(--mono); font-size: 12px; fill: var(--muted); }
.map text { paint-order: stroke; stroke: var(--surface); stroke-width: 6px; stroke-linejoin: round; }
.map .m-town text { font-family: var(--mono); font-size: 16px; fill: var(--fg); }
@media (max-width: 599px) {
  .map .m-town text { font-size: 22px; } .map .m-major text { font-size: 26px; } .map .m-hub text { font-size: 28px; }
  .map .m-minor text { display: none; }
  .map .m-rings text, .map .m-scale text, .map .m-north text { font-size: 18px; }
}
.map .m-hub rect { fill: var(--accent); stroke: var(--fg); stroke-width: 2.5; }
.map .m-major circle { fill: var(--fg); }
.map .m-major text { font-family: var(--font); font-weight: 800; font-stretch: 75%; font-size: 21px; text-transform: uppercase; }
.map .m-hub text { font-family: var(--font); font-weight: 800; font-stretch: 75%; font-size: 22px; text-transform: uppercase; fill: var(--accent-text); }
.map .m-north path { fill: var(--fg); }
.map .m-north text, .map .m-scale text { font-family: var(--mono); font-size: 13px; fill: var(--fg); }
.map .m-scale path { fill: none; stroke: var(--fg); stroke-width: 2; }

/* Gallery (hidden until real photos exist) */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 32px; }
.photo { margin: 0; }
.photo img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photo figcaption { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-top: 10px; }
.ph-box {
  aspect-ratio: 4 / 3; border-radius: var(--radius); display: grid; place-items: center;
  border: 1.5px dashed var(--line-strong); color: var(--muted); font-family: var(--mono); font-size: .8rem; text-align: center;
  background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(var(--fg-rgb), .04) 10px 20px);
}

/* Quote */
.quote { display: grid; gap: 48px; }
@media (min-width: 960px) { .quote { grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; } }
.quote-intro > p { color: var(--fg-2); font-size: 1.125rem; max-width: 40ch; }
.quote-direct { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 24px; }
.quote-direct-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 4px; }
.quote-phone {
  display: inline-block; margin-bottom: 24px; color: var(--fg); text-decoration: none;
  font-weight: 800; font-stretch: 72%; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1.05;
  border-bottom: 3px solid var(--accent);
}
.quote-phone:hover { color: var(--accent-text); }
.quote-email { color: var(--fg); font-size: 1.1rem; display: inline-block; padding: 8px 0; word-break: break-word; }

.quote-form {
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 20px 24px;
}
@media (min-width: 560px) { .quote-form { padding: 0 32px 32px; } }
.form-head {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 -20px 24px; padding: 14px 20px;
  border-bottom: 1px dashed var(--line-strong);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.form-head span:first-child { color: var(--fg); font-weight: 500; }
.form-head span:last-child { color: var(--ai); }
@media (min-width: 560px) { .form-head { margin: 0 -32px 28px; padding: 14px 32px; } }

.field { margin: 0 0 18px; }
.field-pair { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-pair { grid-template-columns: 1fr 1fr; } }
.field label, .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.req { font-weight: 400; color: var(--muted); font-size: .9em; }
.field-hint { font-size: .88rem; color: var(--muted); margin: -8px 0 18px; }
.field-hint.error { color: var(--err-fg); font-weight: 600; }
.field-error { margin: 6px 0 0; color: var(--err-fg); font-weight: 600; font-size: .9rem; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: inherit; color: var(--fg); background: var(--field);
  border: 1.5px solid rgba(var(--fg-rgb), .2); border-radius: 3px; padding: 12px 14px; min-height: 50px;
  transition: border-color .15s;
}
::placeholder { color: var(--muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: rgba(var(--fg-rgb), .38); }
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); outline: 3px solid rgba(var(--accent-rgb), .45); outline-offset: 0; }
input[aria-invalid="true"] { border-color: var(--err-fg); }
textarea { resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23c8d1e0' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select option { background: var(--field); color: var(--fg); }

/* Business / home segmented choice */
.segmented { border: 0; padding: 0; min-width: 0; }
.segmented legend { padding: 0; } /* line up with the other labels */
.segmented-opts { display: grid; grid-template-columns: 1fr 1fr; }
.segmented label { position: relative; margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented label span {
  display: grid; place-items: center; min-height: 50px; font-weight: 600;
  border: 1.5px solid rgba(var(--fg-rgb), .2); background: var(--field); transition: background-color .15s, color .15s;
}
.segmented label:first-child span { border-radius: 3px 0 0 3px; }
.segmented label:last-child span { border-radius: 0 3px 3px 0; border-left-width: 0; }
.segmented input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.segmented input:focus-visible + span { outline: 3px solid var(--accent-text); outline-offset: 2px; position: relative; z-index: 1; }

.cf-turnstile { margin: 6px 0 18px; min-height: 65px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { border-radius: 3px; padding: 14px 16px; margin-bottom: 20px; font-weight: 600; }
.form-status.ok { background: var(--ok-bg); color: var(--ok-fg); border: 1px solid var(--ok-line); }
.form-status.err { background: var(--err-bg); color: var(--err-fg); border: 1px solid var(--err-line); }

/* ---------- Footer ---------- */
.site-footer { background: #081329; color: var(--body-dim); padding: 0 0 28px; font-size: .97rem; }
.site-footer .wrap > * { border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding: 36px 0; }
.footer-tag { margin: 0; }
.footer-grid { display: grid; gap: 28px; padding: 32px 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr 1.3fr; } }
.footer-grid p { margin: 0; }
.footer-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px !important; }
.site-footer a { color: var(--fg); display: inline-block; padding: 10px 0; }
.site-footer a:hover { color: var(--accent-text); }
.site-footer .brand { display: inline-flex; padding: 0; }
.site-footer .brand-name span { display: inline; } /* footer has room for the full name, even on small phones */
.site-footer .footer-inline { display: inline; padding: 0; } /* inline-block padding stretched the line it sits on */
.footer-big { font-weight: 800; font-stretch: 75%; font-size: 1.8rem; text-decoration: none; line-height: 1.1; }
.footer-fine { padding-top: 20px; font-size: .8rem; }
.footer-fine p { margin: 0; max-width: 90ch; }

/* ---------- Mobile sticky call bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  background: var(--bg-deep); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  transition: transform .24s var(--ease-out), visibility 0s;
}
.mobile-bar a {
  display: grid; place-items: center; min-height: 60px;
  color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.05rem;
}
.mobile-bar a + a { border-left: 1px solid var(--line); }
.mobile-bar .mb-quote { background: var(--accent); color: var(--on-accent); border-left: 0; }
/* main.js hides the bar while the hero's own Call/Text buttons are on screen */
.mobile-bar.is-hidden { transform: translateY(100%); visibility: hidden; transition: transform .18s var(--ease-out), visibility 0s .18s; }
@media (prefers-reduced-motion: reduce) { .mobile-bar, .mobile-bar.is-hidden { transition: none; } }
@media (min-width: 760px) { .mobile-bar { display: none; } }

/* ---------- Simple pages (thanks / 404) ---------- */
.simple-page { min-height: 100svh; display: flex; flex-direction: column; padding-bottom: 0; }
.simple-page > main { flex: 1; display: grid; padding-top: 0; }
.simple { display: grid; align-content: center; padding-block: 72px; width: 100%; }
.simple h1 { max-width: 14ch; margin-bottom: 18px; }
.simple p { font-size: 1.15rem; color: var(--body-dim); max-width: 46ch; }
.simple .cta-row { margin-top: 12px; }
