/* ============================================================================
   VANTAGE — Security Systems, Westlake TX
   Command surface. Near-black glass, hairline column grid, signal blue,
   luminous 1px lit edges instead of shadows, mono data readouts.
   Nothing here is shared with Northstone, Hearth & Hollis or Obsidian.
   SOURCE OF TRUTH — inlined into every page by scripts/build.py
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --void:      #06070a;   /* page base */
  --panel:     #0d1117;   /* raised glass panel */
  --panel-2:   #141a22;   /* inset / second level */
  --panel-3:   #1b232d;

  --platinum:  #e8eaed;   /* body text — 16:1 on void */
  --steel:     #9aa4b2;   /* secondary text — 7.99:1 on void */
  --steel-dim: #6d7683;   /* tertiary — decorative, never body copy */

  --signal:    #4d8dff;   /* accent — 6.30:1 on void, safe at body size */
  --signal-lt: #7fb0ff;   /* accent on --panel / --panel-2 */
  --signal-dk: #2f6bd4;   /* small text on any light surface */

  --line:      rgba(232,234,237,.12);
  --line-soft: rgba(232,234,237,.06);
  --line-sig:  rgba(77,141,255,.34);
  --lit:       rgba(77,141,255,.55);
  --glow:      0 0 0 1px rgba(77,141,255,.28), 0 0 28px -6px rgba(77,141,255,.45);

  --ff:        "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-mono:   "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell:     1560px;
  --gut:       clamp(1.25rem, 4vw, 4.5rem);
  --sect:      clamp(3.5rem, 6.5vw, 7rem);
  --r:         4px;                       /* the whole site's radius */

  --e:         cubic-bezier(.25,.6,.3,1);
  --e-out:     cubic-bezier(.16,1,.3,1);
  --e-io:      cubic-bezier(.76,0,.24,1);
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--void);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--ff);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--platinum);
  background: var(--void);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, video, svg, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--signal); color: #04060b; }

/* ---------- 3. Type ---------- */
h1,h2,h3,h4 {
  font-family: var(--ff);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.d1 { font-size: clamp(2.6rem, 7.4vw, 6.4rem); line-height: .96; letter-spacing: -.045em; }
.d2 { font-size: clamp(2rem, 4.6vw, 3.9rem); letter-spacing: -.04em; }
.d3 { font-size: clamp(1.4rem, 2.6vw, 2.2rem); letter-spacing: -.03em; }
.d4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.24; letter-spacing: -.02em; }
.thin { font-weight: 300; }
.tnum { font-variant-numeric: tabular-nums; }

/* The UI voice: mono micro-caps. Every section head opens with one. */
.eyebrow {
  font-family: var(--ff-mono);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--signal-lt);
  margin: 0 0 1.25rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {                       /* the channel tick */
  content: ""; width: 26px; height: 1px; background: var(--signal); flex: none;
}
.eyebrow--plain::before { display: none; }

.lede { font-size: clamp(1.0625rem, 1.35vw, 1.25rem); color: var(--steel); margin: 0; max-width: 46em; }
.muted { color: var(--steel); }
.dim   { color: var(--steel-dim); }
p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }
.sig { color: var(--signal-lt); }

/* Mono data label — used for readouts, table heads, spec rows */
.mono {
  font-family: var(--ff-mono); font-size: .75rem; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase; color: var(--steel);
}

/* ---------- 4. Layout ---------- */
.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell--narrow { max-width: 1080px; }
main > section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: calc(var(--sect) * .62); }
.section--panel { background: var(--panel); }
.section--deep  { background: #040508; }

/* The hairline column grid — the brand's structural signature. Decorative only. */
.section--grid::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg,
    var(--line-soft) 0 1px, transparent 1px calc(100% / 6));
  background-position: 0 0;
  opacity: .9;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
}
.section > .shell { position: relative; }

/* Section head — 6fr/5fr, bottom-aligned. A tall headline in a narrow column
   used to leave the right 60% of the head empty; see CLAUDE.md. */
.shead {
  display: grid; grid-template-columns: 6fr 5fr;
  gap: clamp(1.5rem, 3vw, 4rem); align-items: end;
  margin-bottom: clamp(2rem, 3.5vw, 3.5rem);
}
.shead > *:last-child { padding-bottom: .35rem; }

.grid   { display: grid; gap: clamp(1rem, 1.6vw, 1.5rem); }
.g-2    { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3    { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4    { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split  { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 5rem); align-items: center; }
.split--wide { grid-template-columns: 7fr 5fr; }
.mt-s { margin-top: 1rem; } .mt-m { margin-top: 1.75rem; }
.mt-l { margin-top: clamp(2rem,3.5vw,3.25rem); } .mt-xl { margin-top: clamp(3rem,5vw,5rem); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---------- 5. Panels — lit edges, not shadows ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel) 0%, #0a0e14 100%);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: inset 0 1px 0 rgba(232,234,237,.045);
  position: relative;
}
.panel--flat { background: var(--panel); }
.panel--inset { background: var(--panel-2); }
a.panel, button.panel { transition: border-color .45s var(--e), box-shadow .45s var(--e), transform .45s var(--e); }
a.panel:hover, button.panel:hover {
  border-color: var(--line-sig);
  box-shadow: inset 0 1px 0 rgba(232,234,237,.06), var(--glow);
  transform: translateY(-3px);
}
/* HUD corner ticks — the motif that makes a box read as an instrument */
.ticks::before, .ticks::after {
  content: ""; position: absolute; width: 11px; height: 11px; pointer-events: none;
  border-color: var(--signal); opacity: .55;
}
.ticks::before { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.ticks::after  { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }

/* Faint scanline film for dark media surfaces */
.scan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(0deg,
    rgba(232,234,237,.022) 0 1px, transparent 1px 3px);
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  min-height: 52px; padding: .9rem 1.6rem;
  font-family: var(--ff-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: var(--signal); color: #04060b;
  border: 1px solid var(--signal); border-radius: var(--r);
  cursor: pointer; text-align: center;
  transition: background .4s var(--e), box-shadow .4s var(--e), transform .4s var(--e);
}
.btn:hover { background: var(--signal-lt); border-color: var(--signal-lt); box-shadow: var(--glow); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--platinum); border-color: var(--line); }
.btn--ghost:hover { background: rgba(77,141,255,.09); border-color: var(--line-sig); color: var(--platinum); }
.btn--sm { min-height: 44px; padding: .6rem 1.1rem; font-size: .72rem; }
.btn--wide { width: 100%; }
.btn__ar { transition: transform .4s var(--e); }
.btn:hover .btn__ar { transform: translateX(4px); }

/* Inline text link with a signal underline that grows */
.tlink {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--signal-lt);
  border-bottom: 1px solid var(--line-sig);
  min-height: 44px;                    /* tap-target floor; rule sits at its foot */
  transition: border-color .4s var(--e), gap .4s var(--e);
}
.tlink:hover { border-color: var(--signal); gap: .9rem; }

/* ---------- 7. Accessibility ---------- */
/* A clipped box is invisible at any nesting depth; a translated one is only
   invisible if you know its containing block. Never move chrome off-screen. */
.skip {
  position: fixed; left: 0; top: 0; z-index: 9999;
  background: var(--signal); color: #04060b; text-decoration: none;
  font-family: var(--ff-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { width: auto; height: auto; padding: .9rem 1.4rem; overflow: visible; clip: auto; clip-path: none; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
.on-light :focus-visible { outline-color: var(--signal-dk); }
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 8. Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: transform .5s var(--e), background .4s var(--e), border-color .4s var(--e);
  border-bottom: 1px solid transparent;
}
.hdr[data-solid="true"] {
  background: rgba(6,7,10,.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
          backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: var(--line-soft);
}
.hdr[data-hide="true"] { transform: translateY(-102%); }
.hdr__in {
  max-width: var(--shell); margin-inline: auto; padding: 1.1rem var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
/* min-height 44px so the wordmark clears the tap-target floor; centred rather
   than baseline-aligned because baseline alignment inside a stretched flex line
   pins both spans to the top of the 44px box. */
.wm { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none;
      min-height: 44px; }
.wm__n {
  font-size: 1.06rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--platinum);
}
.wm__s {
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--steel-dim);
}
.nav { display: flex; align-items: center; gap: clamp(1.1rem, 2vw, 2.1rem); }
.nav a {
  font-family: var(--ff-mono); font-size: .76rem; letter-spacing: .13em;
  text-transform: uppercase; text-decoration: none; color: var(--steel);
  padding: .55rem 0; position: relative; transition: color .35s var(--e);
  display: inline-flex; align-items: center; min-height: 44px;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--signal); transition: right .45s var(--e-out);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--platinum); }
.nav a:hover::after, .nav a[aria-current="page"]::after { right: 0; }
.hdr__cta { display: flex; align-items: center; gap: .75rem; flex: none; }
.hdr__tel {
  font-family: var(--ff-mono); font-size: .78rem; letter-spacing: .1em;
  text-decoration: none; color: var(--platinum); white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .35rem;
}
.hdr__tel:hover { color: var(--signal-lt); }

/* Burger + off-canvas */
.burger {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1px; background: var(--platinum); position: relative; transition: background .3s var(--e); }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: var(--platinum);
  transition: transform .45s var(--e-io);
}
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 99; background: var(--void);
  display: grid; align-content: center; padding: 6rem var(--gut) 3rem;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--e), visibility .5s;
}
.drawer[data-open="true"] { opacity: 1; visibility: visible; }
.drawer nav { display: grid; gap: .35rem; }
.drawer nav a {
  font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 600; letter-spacing: -.035em;
  text-decoration: none; color: var(--platinum); padding: .5rem 0;
  border-bottom: 1px solid var(--line-soft);
  opacity: 0; transform: translateY(16px);
  transition: opacity .55s var(--e-out), transform .55s var(--e-out), color .3s var(--e);
}
.drawer[data-open="true"] nav a { opacity: 1; transform: none; }
.drawer nav a:hover { color: var(--signal-lt); }
.drawer__foot { margin-top: 2.5rem; display: grid; gap: 1rem; }

/* ---------- 9. Hero ---------- */
.hero { position: relative; min-height: 92svh; display: grid; align-items: end; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(6,7,10,.82) 0%, rgba(6,7,10,.32) 38%, rgba(6,7,10,.94) 100%),
    linear-gradient(90deg, rgba(6,7,10,.78) 0%, rgba(6,7,10,.1) 62%);
}
.hero__in { position: relative; z-index: 1; width: 100%; padding-block: clamp(7rem, 14vh, 10rem) clamp(2.5rem, 6vh, 4.5rem); }
.hero__h { max-width: 15em; }
.hero__p { margin-top: 1.6rem; max-width: 34em; }
.hero__cta { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .85rem; }
/* the HUD reticle frame that sits over the hero photograph */
.hero__frame {
  position: absolute; inset: clamp(1rem,2.5vw,2.25rem); z-index: 1; pointer-events: none;
  border: 1px solid rgba(232,234,237,.09);
}
.hero__frame span { position: absolute; width: 14px; height: 14px; border-color: var(--signal); opacity: .7; }
.hero__frame span:nth-child(1) { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.hero__frame span:nth-child(2) { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.hero__frame span:nth-child(3) { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.hero__frame span:nth-child(4) { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
/* live-looking corner stamp */
.hero__stamp {
  position: absolute; z-index: 2; right: clamp(1.75rem,3.5vw,3.25rem); top: clamp(5.5rem,11vh,7.5rem);
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); text-align: right; line-height: 2;
}
.hero__stamp b { color: var(--signal-lt); font-weight: 500; }

/* Page hero (inner pages) */
.phero { padding-block: clamp(8rem, 15vh, 11rem) var(--sect); position: relative; }
.phero__h { max-width: 13em; }

/* ---------- 10. Trust bar ---------- */
.trust {
  border-block: 1px solid var(--line-soft);
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr));
}
.trust__i {
  padding: clamp(1.25rem,2.2vw,1.9rem) clamp(1rem,2vw,1.75rem);
  border-left: 1px solid var(--line-soft);
}
.trust__i:first-child { border-left: 0; }
.trust__k { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-dim); margin: 0 0 .55rem; }
.trust__v { font-size: clamp(.9rem, 1.05vw, 1rem); font-weight: 500; color: var(--platinum); margin: 0; line-height: 1.4; }

/* ---------- 11. THE PERIMETER ---------- */
.perim__stage {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: #04050a; border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  box-shadow: inset 0 1px 0 rgba(232,234,237,.05);
}
.perim__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.perim__chrome { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.perim__chrome > * { pointer-events: auto; }

.perim__bar {
  position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 1rem;
  justify-content: space-between; padding: clamp(.7rem,1.4vw,1.1rem) clamp(.85rem,1.6vw,1.4rem);
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); background: linear-gradient(180deg, rgba(4,5,10,.9), transparent);
}
.perim__state { display: inline-flex; align-items: center; gap: .55rem; color: var(--signal-lt); }
.perim__state i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal); flex: none;
  box-shadow: 0 0 0 0 rgba(77,141,255,.6); animation: pulse 2.6s var(--e) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(77,141,255,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(77,141,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,141,255,0); }
}

/* Camera nodes are real buttons layered over the canvas: focusable, draggable,
   44px hit area, announced. The canvas only ever draws — it is never the control. */
.perim__node {
  position: absolute; z-index: 4; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  background: transparent; border: 0; padding: 0; cursor: grab;
  display: grid; place-items: center; touch-action: none; border-radius: 50%;
}
.perim__node:active { cursor: grabbing; }
.perim__node::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 1px solid var(--signal); background: rgba(4,5,10,.85);
  box-shadow: 0 0 12px -2px rgba(77,141,255,.8);
  transition: transform .35s var(--e), background .35s var(--e), border-color .35s var(--e);
}
.perim__node::after {
  content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%;
  background: var(--signal); transition: background .35s var(--e);
}
.perim__node:hover::before { transform: scale(1.3); }
.perim__node[aria-pressed="true"]::before {
  transform: scale(1.45); background: var(--signal); border-color: var(--platinum);
}
.perim__node[aria-pressed="true"]::after { background: #04060b; }
.perim__node[data-alert="true"]::before {
  border-color: var(--platinum); box-shadow: 0 0 18px 0 rgba(232,234,237,.85);
}
.perim__tag {
  position: absolute; top: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--steel); white-space: nowrap;
  background: rgba(4,5,10,.8); padding: 1px 5px; border-radius: 2px;
}
.perim__node[aria-pressed="true"] .perim__tag { color: var(--platinum); }

/* Live event feed */
.perim__feed {
  position: absolute; left: clamp(.85rem,1.6vw,1.4rem); bottom: clamp(.85rem,1.6vw,1.4rem);
  width: min(340px, 52%); display: grid; gap: 2px; margin: 0; padding: 0; list-style: none;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .04em; color: var(--steel);
}
.perim__feed li { display: flex; gap: .6rem; padding: .3rem .55rem;
  background: rgba(4,5,10,.72); border-left: 1px solid var(--line-sig); border-radius: 0 2px 2px 0;
  white-space: nowrap; overflow: hidden; }
.perim__feed li:first-child { color: var(--platinum); border-left-color: var(--signal); }
.perim__feed span { overflow: hidden; text-overflow: ellipsis; }
.perim__feed b { color: var(--signal-lt); font-weight: 400; flex: none; }

/* Readouts */
.perim__read {
  position: absolute; right: clamp(.85rem,1.6vw,1.4rem); bottom: clamp(.85rem,1.6vw,1.4rem);
  display: grid; gap: .55rem; text-align: right;
}
.perim__rk { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-dim); }
.perim__rv { font-size: clamp(1.5rem,2.6vw,2.1rem); font-weight: 600; letter-spacing: -.03em; line-height: 1; color: var(--platinum); font-variant-numeric: tabular-nums; }
.perim__rv small { font-size: .5em; color: var(--steel); font-weight: 400; margin-left: .15em; }

/* The selected camera's view */
.perim__view {
  position: absolute; right: clamp(.85rem,1.6vw,1.4rem); top: clamp(3.1rem,5.5vw,4.2rem);
  width: min(272px, 38%); border: 1px solid var(--line-sig); border-radius: 2px;
  background: #04050a; overflow: hidden;
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .45s var(--e), transform .45s var(--e);
}
.perim__view[data-on="true"] { opacity: 1; transform: none; }
.perim__view figure { margin: 0; position: relative; aspect-ratio: 16/10; }
.perim__view img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.06) saturate(.72) brightness(.88); }
.perim__view figcaption {
  position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; gap: .5rem;
  padding: .3rem .5rem; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--platinum); background: linear-gradient(180deg, transparent, rgba(4,5,10,.92));
}
.perim__view::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(232,234,237,.05) 0 1px, transparent 1px 3px);
}

.perim__hint {
  margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1.25rem;
  font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--steel-dim);
}
.perim__hint span { display: inline-flex; align-items: center; gap: .45rem; }
.perim__hint span::before { content: ""; width: 5px; height: 5px; background: var(--signal); border-radius: 50%; }

/* No-JS / no-canvas fallback. The stage ships as data-ready="false" showing a
   static plan and the same information as a definition list; perimeter.js flips
   it to "true" only once a 2D context actually exists. */
.perim__stage[data-ready="false"] .perim__cv,
.perim__stage[data-ready="false"] .perim__chrome { display: none; }
.perim__stage[data-ready="true"] .perim__fb { display: none; }
.perim__fb {
  position: absolute; inset: 0; overflow: auto;
  padding: clamp(1rem,2.2vw,2rem); display: grid; gap: 1.25rem; align-content: center;
}
.perim__fb img { width: 100%; border-radius: 2px; filter: saturate(.7) brightness(.8); }
.perim__fb dl { margin: 0; display: grid; gap: .4rem; }
.perim__fb div { display: flex; gap: .75rem; justify-content: space-between; border-bottom: 1px solid var(--line-soft); padding-bottom: .4rem; }
.perim__fb dt, .perim__fb dd { margin: 0; font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.perim__fb dt { color: var(--steel-dim); }
.perim__fb dd { color: var(--platinum); }

/* ---------- 12. Cards ---------- */
.svc { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; }
.svc__m { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--panel-2); }
.svc__m img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e-out), filter .6s var(--e); filter: saturate(.8) contrast(1.04); }
.svc:hover .svc__m img { transform: scale(1.045); filter: saturate(1) contrast(1.06); }
.svc__n {
  position: absolute; top: .7rem; left: .7rem; font-family: var(--ff-mono);
  font-size: .7rem; letter-spacing: .18em; color: var(--signal-lt);
  background: rgba(4,5,10,.78); padding: .2rem .45rem; border-radius: 2px;
}
.svc__b { padding: clamp(1.15rem,1.8vw,1.6rem); display: flex; flex-direction: column; flex: 1; }
.svc h3 { font-size: clamp(1.12rem,1.5vw,1.32rem); margin-bottom: .6rem; }
.svc p { font-size: .9375rem; color: var(--steel); margin: 0; }
.svc__go {
  margin-top: 1.35rem; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--signal-lt);
  display: inline-flex; align-items: center; gap: .55rem; transition: gap .4s var(--e);
}
.svc:hover .svc__go { gap: 1rem; }

/* Figure with caption — used for portfolio and section imagery */
.fig { position: relative; overflow: hidden; border-radius: var(--r); background: var(--panel-2); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig--tall { aspect-ratio: 3/4; }
.fig--wide { aspect-ratio: 16/9; }
.fig--sq   { aspect-ratio: 1/1; }
.figcap { margin-top: .8rem; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel-dim); }

/* ---------- 13. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.stats > div { background: var(--void); padding: clamp(1.25rem,2.2vw,1.9rem); }
.stats dt { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-dim); margin: 0 0 .6rem; }
.stats dd { margin: 0; font-size: clamp(1.75rem,3.2vw,2.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd span { font-size: .46em; color: var(--steel); font-weight: 400; letter-spacing: 0; margin-left: .2em; }

/* ---------- 14. Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line-soft); }
.steps > div { background: var(--void); padding: clamp(1.4rem,2.4vw,2.1rem) clamp(1.1rem,1.8vw,1.6rem); }
.steps__n {
  font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .2em; color: var(--signal-lt);
  margin: 0 0 1.5rem; display: flex; align-items: center; gap: .6rem;
}
.steps__n::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.steps h3 { font-size: clamp(1.05rem,1.35vw,1.2rem); margin-bottom: .65rem; }
.steps p { font-size: .9rem; color: var(--steel); margin: 0; }

/* ---------- 15. Testimonials ---------- */
.quote { display: flex; flex-direction: column; height: 100%; padding: clamp(1.4rem,2.2vw,2rem); }
.quote__stars { display: flex; gap: .2rem; margin-bottom: 1.1rem; }
.quote__stars svg { width: 13px; height: 13px; fill: var(--signal); }
.quote blockquote { margin: 0; font-size: clamp(1rem,1.25vw,1.12rem); line-height: 1.6; color: var(--platinum); flex: 1; }
.quote figcaption { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); }
.quote figcaption b { display: block; color: var(--platinum); font-weight: 500; letter-spacing: .14em; margin-bottom: .25rem; }

/* ---------- 16. Before / after ---------- */
/* Pure CSS clip-path driven by a range input. NOTE: the wrapper is never the
   IntersectionObserver target — a clipped box has a zero-area intersection
   rectangle and the observer would never fire. See CLAUDE.md. */
.ba { position: relative; margin: 0; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--r); background: var(--panel-2); --p: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__after { clip-path: inset(0 0 0 var(--p)); }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; z-index: 3;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 56px; height: 100%; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 56px; height: 100%; border: 0; background: transparent; cursor: ew-resize; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--p); width: 1px; background: var(--signal);
  z-index: 2; pointer-events: none; box-shadow: 0 0 18px -2px rgba(77,141,255,.9);
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 42px; height: 42px;
  transform: translate(-50%,-50%); border: 1px solid var(--signal); border-radius: 50%;
  background: rgba(4,5,10,.72);
}
.ba__range:focus-visible + .ba__handle::after { outline: 2px solid var(--platinum); outline-offset: 3px; }
.ba__tag {
  position: absolute; top: .8rem; z-index: 2; font-family: var(--ff-mono); font-size: .7rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--platinum);
  background: rgba(4,5,10,.78); padding: .25rem .55rem; border-radius: 2px;
}
.ba__tag--b { left: .8rem; } .ba__tag--a { right: .8rem; color: var(--signal-lt); }

/* ---------- 17. Accordion / FAQ ---------- */
.acc { border-top: 1px solid var(--line-soft); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary {
  list-style: none; cursor: pointer; padding: clamp(1.15rem,1.8vw,1.55rem) 3rem clamp(1.15rem,1.8vw,1.55rem) 0;
  position: relative; font-size: clamp(1.02rem,1.35vw,1.2rem); font-weight: 500; letter-spacing: -.02em;
  transition: color .35s var(--e); min-height: 56px; display: flex; align-items: center;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--signal-lt); }
.acc summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%; width: 13px; height: 13px;
  margin-top: -6px;
  background:
    linear-gradient(var(--signal),var(--signal)) center/13px 1px no-repeat,
    linear-gradient(var(--signal),var(--signal)) center/1px 13px no-repeat;
  transition: transform .45s var(--e-io);
}
.acc details[open] summary::after { transform: rotate(90deg); background-size: 13px 1px, 0 0; }
.acc__b { padding: 0 clamp(2rem,6vw,6rem) clamp(1.4rem,2.2vw,1.9rem) 0; color: var(--steel); max-width: 70ch; }

/* ---------- 18. Key facts / spec list ---------- */
.spec { display: grid; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; margin: 0; }
.spec > div { background: var(--void); display: grid; grid-template-columns: 15rem 1fr; gap: 1.5rem; padding: clamp(.9rem,1.4vw,1.15rem) clamp(1rem,1.6vw,1.4rem); }
.spec dt { font-family: var(--ff-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--steel-dim); margin: 0; }
.spec dd { margin: 0; color: var(--platinum); font-size: .95rem; }

/* ---------- 19. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; }
.plan { background: var(--void); padding: clamp(1.25rem,2vw,1.75rem) clamp(1rem,1.5vw,1.35rem); display: flex; flex-direction: column; }
.plan--best { background: var(--panel); position: relative; }
.plan--best::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--signal); }
.plan__n { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--signal-lt); margin: 0 0 1rem; }
.plan__p { font-size: clamp(1.5rem,2.4vw,2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0; font-variant-numeric: tabular-nums; }
.plan__p span { font-size: .5em; color: var(--steel); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; font-size: .85rem; color: var(--steel); flex: 1; }
.plan li { display: flex; gap: .55rem; line-height: 1.45; }
.plan li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--signal); flex: none; margin-top: .55em; }
.plan li[data-no]::before { background: var(--steel-dim); opacity: .45; }
.plan li[data-no] { color: var(--steel-dim); }

/* ---------- 20. Forms ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .45rem; }
.field > label { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .85rem 1rem;
  background: var(--panel-2); color: var(--platinum);
  border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .35s var(--e), background .35s var(--e);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--signal); background: var(--panel-3); }
.field input::placeholder, .field textarea::placeholder { color: var(--steel-dim); }
.field select { appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--steel) 50%), linear-gradient(135deg, var(--steel) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% + 2px), calc(100% - 15px) calc(50% + 2px);
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2.75rem; }
.field--err input, .field--err select { border-color: var(--platinum); }
.field__e { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; color: var(--platinum); }
.g-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
/* The <label> wraps the box AND the sentence, so the real tap target is the whole
   two-line block, comfortably past 44px. The input is sized to 24px so the control
   itself still clears WCAG 2.5.8 AA on its own. */
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .8125rem; color: var(--steel-dim); line-height: 1.5; cursor: pointer; min-height: 44px; }
.consent input { width: 24px; height: 24px; min-height: 0; margin-top: .1rem; flex: none; accent-color: var(--signal); }
.formnote { font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--steel-dim); }

/* ---------- 21. Landing page header ---------- */
.lphdr { border-bottom: 1px solid var(--line-soft); background: rgba(6,7,10,.9); position: relative; z-index: 10; }
.lphdr__in { max-width: var(--shell); margin-inline: auto; padding: 1.05rem var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- 22. Footer ---------- */
.ftr { border-top: 1px solid var(--line-soft); padding-block: clamp(3rem,5vw,4.5rem) 2rem; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: clamp(1.75rem,3vw,3rem); }
.ftr h4 { font-family: var(--ff-mono); font-size: .7rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-dim); margin: 0 0 1.1rem; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ftr a { text-decoration: none; color: var(--steel); font-size: .9rem; transition: color .3s var(--e); display: inline-flex; min-height: 44px; align-items: center; }
.ftr a:hover { color: var(--signal-lt); }
.ftr address { font-style: normal; color: var(--steel); font-size: .9rem; line-height: 1.8; }
.ftr__bot { margin-top: clamp(2.5rem,4vw,3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-family: var(--ff-mono); font-size: .7rem; letter-spacing: .1em; color: var(--steel-dim); }

/* ---------- 23. Sticky mobile CTA ---------- */
/* .mbar is position:fixed, so every breakpoint that shows it must also add the
   matching body padding-bottom — drop one and the last rows sit under the bar. */
.mbar {
  position: fixed; inset: auto 0 0; z-index: 90; display: none;
  grid-template-columns: 1fr 1.3fr; gap: 1px; background: var(--line-soft);
  border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; min-height: 58px;
  text-decoration: none; font-family: var(--ff-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  background: rgba(6,7,10,.96); color: var(--platinum);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.mbar a + a { background: var(--signal); color: #04060b; }

/* ---------- 24. Motion ---------- */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--e-out), transform .9s var(--e-out); transition-delay: var(--d,0ms); }
.rv[data-in="true"] { opacity: 1; transform: none; }
.rvt { display: block; overflow: hidden; padding-bottom: .18em; margin-bottom: -.18em; }
.rvt > span { display: block; transform: translateY(105%); transition: transform 1.05s var(--e-out); transition-delay: var(--d,0ms); }
.rvt[data-in="true"] > span { transform: none; }
.rvl { transform: scaleX(0); transform-origin: left; transition: transform 1s var(--e-io); }
.rvl[data-in="true"] { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) {
  .rv, .rvt > span, .rvl { opacity: 1 !important; transform: none !important; transition: none !important; }
  .perim__state i { animation: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 25. Breakpoints ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
  .hdr__tel { display: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .spec > div { grid-template-columns: 11rem 1fr; }
}
@media (max-width: 1024px) {
  .trust { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .trust__i:nth-child(odd) { border-left: 0; }
  .trust__i:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .perim__view { width: min(224px, 42%); }
  .perim__feed { width: min(300px, 46%); }
}
@media (max-width: 860px) {
  .mbar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .shead { grid-template-columns: 1fr; align-items: start; }
  .shead > *:last-child { padding-bottom: 0; }
  .split, .split--wide { grid-template-columns: 1fr; }
  .g-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .section--grid::before { display: none; }
  .hero { min-height: 88svh; }
  .hero__stamp { display: none; }
  .perim__stage { aspect-ratio: 4/5; }
  .perim__view { position: static; width: auto; margin: 0; border-radius: 0;
    border-width: 1px 0 0; opacity: 1; transform: none; }
  .perim__view[data-on="false"] { display: none; }
  .perim__feed { width: calc(100% - 1.7rem); bottom: auto; top: 3.2rem; }
  .perim__read { grid-template-columns: repeat(2,1fr); display: grid; gap: 1rem; text-align: left;
    left: clamp(.85rem,1.6vw,1.4rem); right: auto; }
}
@media (max-width: 640px) {
  /* The wordmark and the header CTA are both flex:none, so below this width they
     out-measured the bar and shoved the burger past the right edge — invisible,
     because body{overflow-x:hidden} clipped it rather than scrolling. The sticky
     .mbar already carries "Book a survey" on phones, so the header drops it. */
  .hdr__cta .btn { display: none; }
  .wm__s { display: none; }
  .g-2, .g-4, .g-2f { grid-template-columns: 1fr; }
  .steps, .plans { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .trust__i { border-left: 0; }
  .trust__i + .trust__i { border-top: 1px solid var(--line-soft); }
  .stats { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .spec > div { grid-template-columns: 1fr; gap: .3rem; }
  .ba { aspect-ratio: 4/3; }
}
