/* Raaj CCTV — site stylesheet (v2)
   Colours and type are set in :root; change them here to restyle the whole site. */
:root {
  --concrete: #eceeec;
  --paper: #f7f8f7;
  --ink: #15212b;
  --ink-2: #22313d;
  --steel: #5c6b76;
  --line: #d3d8d9;
  --orange: #f39528;
  --orange-ink: #a85a00;   /* orange that passes contrast on light backgrounds */
  --red: #e0322b;
  --white: #ffffff;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --max: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--concrete); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.6; font-stretch: 100%;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); font-stretch: 125%; font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
h4 { font-size: 1.05rem; margin: 0 0 .4em; font-weight: 700; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 56ch; }
.muted { color: var(--steel); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 700px) { :root { --gutter: 32px; } }
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--paper { background: var(--paper); }
.band--ink { background: var(--ink); color: #d9e0e4; }
.band--ink h2, .band--ink h3 { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px;
  background: var(--orange); color: var(--ink); font-weight: 700; text-decoration: none;
  border-radius: 4px; border: 0; font: 700 16px/1 var(--body); cursor: pointer;
}
.btn:hover { background: #ffa840; }
.btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.hero .btn--ghost { color: var(--white); }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.textlink { font-weight: 700; color: var(--orange-ink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.band--ink .textlink { color: var(--orange); }

/* ---------- Header ---------- */
.site-header { background: var(--ink); color: var(--white); position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 46px; width: auto; border-radius: 3px; }
.header-phone { font-weight: 700; text-decoration: none; white-space: nowrap; color: var(--orange); }

.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; cursor: pointer; padding: 10px; border-radius: 4px; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 22px; height: 2px; background: var(--white); position: relative; }
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
.nav-btn span::before { top: -7px; } .nav-btn span::after { top: 7px; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--orange); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav > ul { display: flex; }
.nav li { position: relative; }
.nav a, .nav .nav-group { display: block; padding: 10px 12px; text-decoration: none; font-size: 15px; font-weight: 600; color: #dfe5e8; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange); }
.nav .sub { display: none; position: absolute; top: 100%; left: 0; background: var(--ink-2); padding: 8px 0; min-width: 250px; border-radius: 0 0 4px 4px; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a { font-weight: 500; }

@media (max-width: 1020px) {
  .nav-btn { display: block; order: 3; }
  .header-phone { order: 2; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); padding: 8px var(--gutter) 20px; max-height: calc(100vh - 72px); overflow: auto; border-top: 1px solid rgba(255,255,255,.1); }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav > ul { flex-direction: column; }
  .nav .sub { display: block; position: static; background: none; padding: 0 0 0 14px; min-width: 0; }
  .nav .nav-group { color: var(--steel); }
}
@media (max-width: 480px) { .header-phone .label { display: none; } }

/* ---------- Home hero: the camera feed ---------- */
.hero { background: var(--ink); color: #d9e0e4; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: #c3ccd2; }
.hero-facts { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: #aeb9c0; }
.hero-facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--orange); margin-right: 9px; vertical-align: 2px; }

.feed { position: relative; background: #000; border-radius: 6px; padding: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.6); }
.feed-screen { position: relative; overflow: hidden; border-radius: 2px; aspect-ratio: 4 / 3; background: #1c2a33; }
.feed-screen img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.75) contrast(1.05); }
.feed-screen::after { /* scanlines */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.14) 2px 3px);
}
.osd { position: absolute; z-index: 2; font-family: var(--mono); font-size: clamp(11px, 1.4vw, 14px); color: #f1f4f2; text-shadow: 0 1px 2px #000; letter-spacing: .04em; }
.osd--tl { top: 12px; left: 14px; }
.osd--tr { top: 12px; right: 14px; display: flex; align-items: center; gap: 7px; }
.osd--bl { bottom: 12px; left: 14px; }
.osd--br { bottom: 12px; right: 14px; }
.rec { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: rec 1.6s steps(1) infinite; }
@keyframes rec { 50% { opacity: .15; } }
.feed-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px 0; font-size: 13px; color: #8d9aa3; }
@media (prefers-reduced-motion: reduce) { .rec { animation: none; } }

/* ---------- Proof strip ---------- */
.proof { border-bottom: 1px solid var(--line); background: var(--paper); }
.proof .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof .wrap > div { padding: 26px 20px 26px 0; }
.proof .wrap > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.proof strong { display: block; font-family: var(--display); font-stretch: 125%; font-size: 1.05rem; }
.proof span { font-size: 14px; color: var(--steel); }

/* ---------- Service rows ---------- */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; max-width: 18ch; }
.section-head p { margin: 0; color: var(--steel); max-width: 44ch; }

.rows { border-top: 2px solid var(--ink); }
.row { display: grid; grid-template-columns: 1fr 1.4fr 200px; gap: 28px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.row h3 { margin: 0; }
.row p { margin: 0; color: var(--ink-2); }
.row img { width: 200px; height: 130px; object-fit: cover; border-radius: 4px; }
.row:hover h3 { color: var(--orange-ink); }
.row .go { font-weight: 700; color: var(--orange-ink); font-size: 15px; display: inline-block; margin-top: 8px; }

/* ---------- Who we work for ---------- */
.clients { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 2px solid var(--white); }
.clients div { padding: 28px 28px 8px 0; }
.clients div + div { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.clients h3 { color: var(--orange); }

/* ---------- Process steps (a real sequence) ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--orange-ink); margin-bottom: 12px; }
.steps h3 { font-size: 1.1rem; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ---------- Split / media ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split img { border-radius: 4px; width: 100%; }
.brands { font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.6rem); color: var(--steel); display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0; padding: 0; list-style: none; }

/* ---------- Quotes ---------- */
.quote-lead { font-family: var(--display); font-stretch: 112%; font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.1rem); line-height: 1.25; margin: 0 0 18px; max-width: 32ch; color: var(--ink); }
.quote-by { font-weight: 700; }
.quote-by span { color: var(--steel); font-weight: 400; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.quotes blockquote { margin: 0; font-size: 15px; }
.quotes p { margin-bottom: 10px; }
.review-links { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 36px; }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: var(--ink); padding: clamp(48px, 7vw, 88px) 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta h2 { margin: 0 0 8px; max-width: 20ch; }
.cta p { margin: 0; }
.cta .big-phone { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.6rem); text-decoration: none; display: block; }
.cta .btn { background: var(--ink); color: var(--white); margin-top: 12px; }
.cta .btn:hover { background: var(--ink-2); }

/* ---------- Inner pages ---------- */
.page-head { background: var(--ink); color: #c3ccd2; padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { color: var(--white); max-width: 20ch; }
.page-head .lede { color: #c3ccd2; margin: 0; }
.crumbs { font-size: 14px; margin-bottom: 18px; color: #8d9aa3; }
.crumbs a { color: #c3ccd2; }

.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose img { border-radius: 4px; }
.prose .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.prose .pair img { aspect-ratio: 1; object-fit: cover; width: 100%; }

.facts { list-style: none; padding: 0; margin: 0 0 1.4em; border-top: 1px solid var(--line); }
.facts li { padding: 14px 0; border-bottom: 1px solid var(--line); max-width: 68ch; }
.facts strong { display: block; color: var(--ink); }
.facts--plain li { padding: 10px 0; }

.aside { position: sticky; top: 96px; background: var(--ink); color: #c3ccd2; border-radius: 6px; padding: 28px; }
.aside h3 { color: var(--white); }
.aside a.phone { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--orange); text-decoration: none; margin: 4px 0 2px; }
.aside .btn { width: 100%; justify-content: center; margin-top: 16px; }
.aside ul { list-style: none; padding: 0; margin: 18px 0 0; font-size: 15px; }
.aside li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Gallery ---------- */
.gallery { columns: 3 260px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: 4px; overflow: hidden; }
.gallery img { width: 100%; }

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 48px 22px 0; position: relative; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--orange-ink); border-bottom: 2px solid var(--orange-ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq .answer { padding: 0 0 24px; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list span { color: var(--steel); }
.contact-list a { font-weight: 700; }
form.quote { background: var(--white); border-radius: 6px; padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; }
form.quote label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.quote input, form.quote textarea { font: 16px var(--body); padding: 12px 14px; border: 1px solid #b9c1c4; border-radius: 4px; background: var(--paper); color: var(--ink); width: 100%; }
form.quote input:focus, form.quote textarea:focus { outline: 2px solid var(--orange); border-color: var(--orange); }
form.quote textarea { min-height: 140px; resize: vertical; }
form.quote .hint { font-weight: 400; color: var(--steel); font-size: 14px; }
.hp { position: absolute; left: -9999px; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.cards-2 img { border-radius: 4px; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #0e171e; color: #a9b5bc; font-size: 15px; padding: 64px 0 28px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 4px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--orange); }
.site-footer .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.wa { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.wa svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .row { grid-template-columns: 1fr 1.4fr; }
  .row img { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
  .aside { position: static; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero .wrap, .split, .contact-grid, .cards-2 { grid-template-columns: 1fr; }
  .proof .wrap { grid-template-columns: 1fr 1fr; }
  .proof .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof .wrap > div { border-top: 1px solid var(--line); }
  .row { grid-template-columns: 1fr; gap: 6px; }
  .clients { grid-template-columns: 1fr; }
  .clients div + div { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .quotes { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

/* ---------- Form status message ---------- */
.form-status { margin: 0; padding: 12px 14px; border-radius: 4px; font-weight: 600; font-size: 15px; }
.form-status.is-ok { background: #e3f4e8; color: #17572c; }
.form-status.is-error { background: #fbe6e5; color: #8a1e19; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ---------- Logo on dark backgrounds ----------
   The logo file has a solid black background. "screen" blending makes black
   pixels show the header colour instead, so the crown and lettering sit
   directly on the navy with no black box. */
.brand img, .site-footer .footer-logo { mix-blend-mode: screen; border-radius: 0; }

/* =====================================================================
   v2.1 — advanced styling layer
   ===================================================================== */
:root {
  --grid-line: rgba(255,255,255,.045);
  --glow: rgba(243,149,40,.18);
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Blueprint grid on dark surfaces ---------- */
.hero, .band--ink, .page-head, .site-footer { position: relative; isolation: isolate; }
.hero::before, .band--ink::before, .page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 720px; height: 720px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow), transparent 65%);
}

/* ---------- Header: glass on scroll ---------- */
.site-header { transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header .wrap { transition: min-height .3s var(--ease); }
.brand img { transition: height .3s var(--ease); }
.site-header.is-scrolled {
  background: rgba(21, 33, 43, .82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
          backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -12px rgba(0,0,0,.5);
}
.site-header.is-scrolled .wrap { min-height: 60px; }
.site-header.is-scrolled .brand img { height: 38px; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: var(--ink); }
}
.nav a { position: relative; }
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav > ul > li > a:hover::after, .nav > ul > li > a[aria-current="page"]::after { transform: scaleX(1); }
.nav .sub { box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); border-top: 2px solid var(--orange); }

/* ---------- Buttons ---------- */
.btn { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(243,149,40,.65); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--orange); color: var(--orange); background: transparent; }

/* ---------- Hero load sequence (the one orchestrated moment) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes power-on {
  0%   { opacity: 0; transform: scaleY(.008) scaleX(.6); filter: brightness(3); }
  35%  { opacity: 1; transform: scaleY(.008) scaleX(1); filter: brightness(3); }
  60%  { transform: scaleY(1) scaleX(1); filter: brightness(1.6); }
  100% { transform: none; filter: none; }
}
.js .hero h1        { animation: rise .7s var(--ease) both; }
.js .hero .lede     { animation: rise .7s .12s var(--ease) both; }
.js .hero .actions  { animation: rise .7s .22s var(--ease) both; }
.js .hero .hero-facts { animation: rise .7s .32s var(--ease) both; }
.js .hero .feed-screen { animation: power-on .9s .45s var(--ease) both; transform-origin: center; }

/* ---------- Multi-camera view ---------- */
.feed { background: linear-gradient(180deg, #0a0f13, #000); }
.feed::before { /* small status LED on the recorder bezel */
  content: ""; position: absolute; top: -4px; right: 22px; width: 6px; height: 6px; border-radius: 50%;
  background: #3ad16b; box-shadow: 0 0 8px #3ad16b;
}
.feed-screen .cam-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .6s ease;
}
.feed-screen .cam-img.is-active { opacity: 1; }
.feed-screen::before { /* vignette */
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55));
}
.feed-screen::after { z-index: 1; }
.nvr.is-switching .feed-screen .cam-img.is-active { animation: glitch .45s steps(3) 1; }
@keyframes glitch {
  0%   { filter: brightness(1.8) contrast(1.4) saturate(0); transform: translateX(-3px); }
  50%  { filter: brightness(1.2) saturate(.4); transform: translateX(2px); }
  100% { filter: saturate(.75) contrast(1.05); transform: none; }
}
.osd { z-index: 2; }

.motion-box {
  position: absolute; z-index: 2; border: 2px solid var(--orange); opacity: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.35), inset 0 0 0 1px rgba(0,0,0,.35);
  transition: left .5s var(--ease), top .5s var(--ease), width .5s var(--ease), height .5s var(--ease);
}
.motion-box span {
  position: absolute; left: -2px; top: -20px; background: var(--orange); color: var(--ink);
  font: 700 10px/1 var(--mono); letter-spacing: .08em; padding: 4px 6px;
}
.motion-box.is-on { animation: detect 3.2s ease 1 both; }
@keyframes detect {
  0% { opacity: 0; transform: scale(1.15); }
  10% { opacity: 1; transform: none; }
  20%, 30% { opacity: .35; } 25%, 35% { opacity: 1; }
  85% { opacity: 1; } 100% { opacity: 0; }
}

.nvr-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 6px; }
.nvr-thumbs button {
  position: relative; padding: 0; border: 0; background: #0b1116; cursor: pointer; aspect-ratio: 16 / 10;
  overflow: hidden; border-radius: 2px; outline-offset: 2px;
}
.nvr-thumbs img { width: 100%; height: 100%; object-fit: cover; opacity: .45; filter: saturate(.3); transition: opacity .3s, filter .3s; }
.nvr-thumbs span {
  position: absolute; left: 6px; bottom: 5px; font: 600 10px/1 var(--mono); color: #e6ecef; letter-spacing: .06em;
  text-shadow: 0 1px 2px #000;
}
.nvr-thumbs button::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .3s; }
.nvr-thumbs button:hover img { opacity: .8; }
.nvr-thumbs button.is-active img { opacity: 1; filter: none; }
.nvr-thumbs button.is-active::after { box-shadow: inset 0 0 0 2px var(--orange); }

/* ---------- Proof strip icons ---------- */
.proof .ico { width: 30px; height: 30px; color: var(--orange-ink); margin-bottom: 10px; display: block; }

/* ---------- Service rows ---------- */
.row { position: relative; transition: padding .3s var(--ease); }
.row::before {
  content: ""; position: absolute; left: -16px; top: 26px; bottom: 26px; width: 3px; background: var(--orange);
  transform: scaleY(0); transition: transform .3s var(--ease);
}
.row:hover::before, .row:focus-visible::before { transform: scaleY(1); }
.row:hover, .row:focus-visible { padding-left: 12px; }
.row img { transition: transform .5s var(--ease), filter .5s; filter: grayscale(.35); }
.row:hover img { transform: scale(1.04); filter: none; }
.row .go { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); padding-bottom: 2px; }
.row:hover .go { background-size: 100% 2px; }
.row img { box-shadow: 0 14px 30px -18px rgba(21,33,43,.6); }

/* ---------- Who we work for ---------- */
.clients h3 { display: flex; align-items: center; gap: 10px; }
.clients h3::before { content: ""; width: 8px; height: 8px; background: var(--orange); box-shadow: 0 0 12px var(--orange); }

/* ---------- Process steps: connected sequence ---------- */
.steps { position: relative; }
.steps li { position: relative; }
.steps li::after {
  content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--concrete); box-shadow: 0 0 0 2px var(--orange-ink);
}

/* ---------- Media ---------- */
.split > img, .cards-2 img { box-shadow: 0 24px 50px -28px rgba(21,33,43,.55); }

/* ---------- Testimonials ---------- */
.quote-lead { position: relative; padding-top: 34px; }
.quote-lead::before {
  content: "“"; position: absolute; top: -18px; left: -6px; font: 800 110px/1 var(--display);
  color: var(--orange); opacity: .9;
}
.quotes blockquote { padding-left: 18px; border-left: 2px solid var(--line); transition: border-color .3s; }
.quotes blockquote:hover { border-left-color: var(--orange); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; isolation: isolate; }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: repeating-linear-gradient(-45deg, rgba(21,33,43,.06) 0 14px, transparent 14px 28px);
}

/* ---------- Inner page header with mini camera feed ---------- */
.page-head--feed .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: center; }
.mini-feed {
  position: relative; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 8px #000, 0 0 0 9px rgba(255,255,255,.08), 0 30px 60px -20px rgba(0,0,0,.7);
  transform: rotate(1.2deg);
}
.mini-feed img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.7) contrast(1.05); }
.mini-feed::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.14) 2px 3px),
              radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.5));
}
.mini-feed .osd { font-size: 11px; }
.js .page-head h1 { animation: rise .6s var(--ease) both; }
.js .page-head .lede { animation: rise .6s .1s var(--ease) both; }
.js .mini-feed { animation: power-on .8s .25s var(--ease) both; }

/* ---------- Sticky survey panel ---------- */
.aside { box-shadow: 0 30px 60px -30px rgba(21,33,43,.8); overflow: hidden; }
.aside::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), #ffc27a, var(--orange));
}

/* ---------- Gallery ---------- */
.gallery a { position: relative; }
.gallery img { transition: transform .5s var(--ease), filter .5s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a::after {
  content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow .25s;
}
.gallery a:hover::after, .gallery a:focus-visible::after { box-shadow: inset 0 0 0 3px var(--orange); }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(8,12,16,.94); display: grid;
  grid-template-columns: 64px 1fr 64px; align-items: center; padding: 24px 8px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: rise .25s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-height: 84vh; width: auto; margin: 0 auto; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox figcaption { color: #a9b5bc; font: 13px var(--mono); margin-top: 12px; }
.lightbox button {
  background: rgba(255,255,255,.08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%;
  font-size: 28px; line-height: 1; cursor: pointer; justify-self: center; transition: background-color .2s;
}
.lightbox button:hover { background: var(--orange); color: var(--ink); }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
.no-scroll { overflow: hidden; }

/* ---------- FAQ ---------- */
.faq .answer { overflow: hidden; }
.faq summary { transition: color .2s; }
.faq summary:hover { color: var(--orange-ink); }
.faq details[open] summary { color: var(--orange-ink); }

/* ---------- Form ---------- */
form.quote { box-shadow: 0 30px 60px -36px rgba(21,33,43,.55); border-top: 3px solid var(--orange); }
form.quote input, form.quote textarea { transition: border-color .2s, box-shadow .2s, background-color .2s; }
form.quote input:focus, form.quote textarea:focus { outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(243,149,40,.2); }

/* ---------- Footer wordmark ---------- */
.site-footer { overflow: hidden; }
.wordmark {
  margin: 56px 0 0; max-width: none; font: 800 clamp(3.4rem, 13vw, 11rem)/.85 var(--display); font-stretch: 125%;
  letter-spacing: -0.03em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.09), rgba(255,255,255,0) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}

/* ---------- Mobile call bar ---------- */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar {
    display: grid; grid-template-columns: 1fr 1.3fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: rgba(21,33,43,.94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px; border-top: 1px solid rgba(255,255,255,.08);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 4px;
    font-weight: 700; text-decoration: none; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3);
  }
  .callbar svg { width: 18px; height: 18px; }
  .callbar .callbar-primary { background: var(--orange); color: var(--ink); box-shadow: none; }
  body { padding-bottom: 76px; }
  .wa { bottom: 88px; }
  .page-head--feed .wrap { grid-template-columns: 1fr; }
  .mini-feed { max-width: 420px; transform: none; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
  .row::before { display: none; }
  .row:hover, .row:focus-visible { padding-left: 0; }
}
@media (max-width: 1020px) and (min-width: 761px) {
  .page-head--feed .wrap { grid-template-columns: 1fr 280px; }
}

/* ---------- Respect reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .motion-box { opacity: 1; }
}

/* =====================================================================
   v2.2 — planner, night vision, torch, scroll timeline, page transitions
   ===================================================================== */

/* ---------- Page transitions (Chrome, Edge, Safari 18+) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Night vision (IR) ---------- */
.feed-caption { align-items: center; }
.ir-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 40px; cursor: pointer;
  background: rgba(255,255,255,.06); color: #c3ccd2; border: 1px solid rgba(255,255,255,.14);
  font: 600 12px/1 var(--body); transition: background-color .2s, color .2s, border-color .2s;
}
.ir-toggle:hover { border-color: var(--orange); color: #fff; }
.ir-dot { width: 8px; height: 8px; border-radius: 50%; background: #55636c; transition: background-color .2s, box-shadow .2s; }
.ir-toggle[aria-pressed="true"] { color: #fff; border-color: #c9d6cf; }
.ir-toggle[aria-pressed="true"] .ir-dot { background: #e9f2ec; box-shadow: 0 0 10px #e9f2ec; }
.ir-flag { display: none; }
.nvr.is-ir .ir-flag { display: inline; }
.nvr.is-ir .feed-screen .cam-img { filter: grayscale(1) contrast(1.45) brightness(1.18); }
.nvr.is-ir .feed-screen::before { background: radial-gradient(ellipse at center, rgba(220,235,225,.06) 30%, rgba(0,0,0,.65)); }
.nvr.is-ir .nvr-thumbs img { filter: grayscale(1) contrast(1.3); }
.nvr.is-ir .motion-box { border-color: #fff; }
.nvr.is-ir .motion-box span { background: #fff; }

/* ---------- Torch spotlight ---------- */
.hero > .wrap, .band--ink > .wrap { position: relative; z-index: 1; }
.band--ink::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(243,149,40,.10), transparent 60%);
}
.band--ink.is-lit::after { opacity: 1; }
.hero.is-lit::before {
  -webkit-mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000 0%, transparent 70%),
                      radial-gradient(ellipse 80% 70% at 70% 40%, rgba(0,0,0,.7) 30%, transparent 75%);
          mask-image: radial-gradient(360px circle at var(--mx) var(--my), #000 0%, transparent 70%),
                      radial-gradient(ellipse 80% 70% at 70% 40%, rgba(0,0,0,.7) 30%, transparent 75%);
  --grid-line: rgba(255,255,255,.08);
}

/* ---------- How it works: line draws as you scroll ---------- */
@supports (animation-timeline: view()) {
  .steps li {
    border-top-color: transparent;
    background:
      linear-gradient(var(--ink), var(--ink)) 0 0 / 0% 2px no-repeat,
      linear-gradient(var(--line), var(--line)) 0 0 / 100% 2px no-repeat;
    background-origin: border-box;
    animation: draw-line linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 40%;
  }
  .steps li:nth-child(2) { animation-range: entry 20% cover 45%; }
  .steps li:nth-child(3) { animation-range: entry 30% cover 50%; }
  .steps li:nth-child(4) { animation-range: entry 40% cover 55%; }
  @keyframes draw-line { to { background-size: 100% 2px, 100% 2px; } }
}

/* ---------- Coverage planner ---------- */
.planner { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.planner-stage {
  background: #0e171e; border-radius: 6px; padding: 12px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 30px 60px -30px rgba(21,33,43,.8);
}
.planner-stage svg { display: block; width: 100%; height: auto; border-radius: 3px; touch-action: none; cursor: crosshair; }
.planner-hint { margin: 10px 4px 0; font-size: 13px; color: #8d9aa3; }
.plan-house { font: 700 15px var(--display); font-stretch: 125%; fill: #8fa1ad; }
.plan-zone { font: 600 12px var(--body); fill: #cfe0d6; opacity: .75; }
.plan-note { font: 500 11px var(--body); fill: #7d8c95; }
.plan-cone { fill: rgba(243,149,40,.20); stroke: rgba(243,149,40,.75); stroke-width: 1.2; transition: fill .2s; }
.plan-cone.is-selected { fill: rgba(243,149,40,.32); stroke: #ffb35c; stroke-width: 1.6; }
.plan-mount { cursor: pointer; outline: none; }
.plan-mount .pm-hit { fill: transparent; }
.plan-mount .pm-dot { fill: #15212b; stroke: #c3ccd2; stroke-width: 1.5; stroke-dasharray: 2 2; transition: stroke .2s, fill .2s; }
.plan-mount .pm-plus { stroke: #c3ccd2; stroke-width: 1.5; }
.plan-mount:hover .pm-dot, .plan-mount:focus-visible .pm-dot { stroke: var(--orange); fill: #2a3a46; stroke-dasharray: none; }
.plan-mount:hover .pm-plus, .plan-mount:focus-visible .pm-plus { stroke: var(--orange); }
.plan-mount .pm-body { fill: #e9eef0; stroke: #15212b; stroke-width: 1.2; }
.plan-mount .pm-lens { fill: #15212b; }
.plan-mount.is-selected .pm-body { fill: var(--orange); }
.plan-mount:focus-visible .pm-hit { stroke: var(--orange); stroke-width: 2; }

.planner-panel { background: var(--white); border-radius: 6px; padding: 24px; box-shadow: 0 30px 60px -40px rgba(21,33,43,.5); border-top: 3px solid var(--orange); }
.pp-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.pp-head h3 { margin: 0; }
.pp-count { font: 600 13px var(--mono); color: var(--steel); }
.pp-selected { border: 1px solid var(--line); border-radius: 4px; padding: 16px; margin-bottom: 18px; background: var(--paper); }
.pp-sel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pp-sel-head strong { font-size: 15px; }
.pp-remove { background: none; border: 0; color: #a3291f; font: 600 13px var(--body); cursor: pointer; padding: 4px; }
.pp-remove:hover { text-decoration: underline; }
.pp-label { display: block; font-weight: 600; font-size: 14px; margin: 4px 0 8px; }
.pp-label span { float: right; font-family: var(--mono); color: var(--orange-ink); }
.pp-label input[type=range] { width: 100%; margin-top: 8px; accent-color: var(--orange); }
.pp-lens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pp-lens button {
  display: grid; gap: 2px; text-align: left; padding: 10px; border-radius: 4px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line); font: 700 13px var(--body); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.pp-lens small { font-weight: 400; font-size: 11px; color: var(--steel); }
.pp-lens button:hover { border-color: var(--orange); }
.pp-lens button.is-active { border-color: var(--orange); box-shadow: inset 0 0 0 1px var(--orange); background: #fff8ef; }
.pp-empty { color: var(--steel); font-size: 15px; }
.pp-zones { list-style: none; margin: 0 0 20px; padding: 0; }
.pp-zones li { display: grid; grid-template-columns: 110px 1fr 44px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pp-zones b { text-align: right; font-family: var(--mono); font-size: 13px; }
.pp-zones .meter { height: 6px; background: #e3e7e8; border-radius: 6px; overflow: hidden; }
.pp-zones .meter i { display: block; height: 100%; background: var(--orange); border-radius: 6px; transition: width .35s var(--ease); }
.pp-zones .z-good .meter i { background: #2f9e5b; }
.pp-zones .z-good b { color: #1f7a43; }
.pp-zones .z-none b { color: var(--steel); }
.pp-cta { width: 100%; justify-content: center; }
.pp-small { font-size: 12px; color: var(--steel); margin: 10px 0 0; }
.plan-note-banner { margin: 0; padding: 10px 12px; border-radius: 4px; background: #fff3e2; color: #7a4300; font-size: 14px; font-weight: 600; }

@media (max-width: 1020px) { .planner { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .pp-lens { grid-template-columns: 1fr; }
  .pp-zones li { grid-template-columns: 96px 1fr 40px; }
  .planner-panel { padding: 18px; }
}

/* =====================================================================
   v2.3 — planner showpiece
   ===================================================================== */
.planner-stage { position: relative; }

/* Toolbar */
.plan-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.pt-group { display: inline-flex; background: #17232c; border-radius: 6px; padding: 3px; gap: 2px; align-items: center; }
.pt-btn {
  background: transparent; color: #c3ccd2; border: 0; border-radius: 4px; padding: 8px 12px;
  font: 600 13px/1 var(--body); cursor: pointer; transition: background-color .2s, color .2s;
}
.plan-toolbar > .pt-btn { background: #17232c; }
.pt-btn:hover { color: #fff; background: #22313d; }
.pt-btn.is-active { background: #e9eef0; color: var(--ink); }
.pt-suggest span { font: 600 12px var(--body); color: #8d9aa3; padding: 0 6px 0 8px; }
.pt-suggest .pt-btn { min-width: 32px; }
.pt-run { margin-left: auto; background: var(--orange) !important; color: var(--ink) !important; display: inline-flex; align-items: center; gap: 8px; }
.pt-run::before { content: ""; width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.pt-run:hover { background: #ffa840 !important; }
.pt-run:disabled { opacity: .7; cursor: wait; }

/* Night mode */
.plan-night { fill: #000; opacity: 0; transition: opacity .5s; }
.is-night .plan-night { opacity: .45; }
.is-night .plan-cone { fill: rgba(220,240,230,.16); stroke: rgba(220,240,230,.7); }
.is-night .plan-cone.is-selected { fill: rgba(220,240,230,.26); stroke: #fff; }
.plan-cone, .plan-mount, .plan-trail, .plan-intruder { position: relative; }
/* draw cones, trail, mounts and intruder above the night veil */
.planner-stage svg [data-plan-cones], .planner-stage svg [data-plan-trail],
.planner-stage svg [data-plan-mounts], .planner-stage svg [data-plan-intruder] { isolation: isolate; }

/* Heatmap */
.plan-heat .hc { fill: transparent; transition: fill .3s; }
.plan-heat .h0 { fill: rgba(224,50,43,.38); }
.plan-heat .h1 { fill: rgba(243,149,40,.35); }
.plan-heat .h2 { fill: rgba(47,158,91,.45); }
.plan-heat .h3 { fill: rgba(47,158,91,.7); }
.is-heat .plan-cone { fill: transparent; }
.is-heat .plan-zone { fill: #fff; opacity: .95; }

/* Alerts during the intruder test */
.plan-cone.is-alert { fill: rgba(224,50,43,.28); stroke: #ff6b5e; stroke-width: 2; }
.plan-mount.is-alert .pm-body { fill: #ff4a3d; }
.plan-mount .pm-led { fill: #3ad16b; }
.plan-mount.is-alert .pm-led { fill: #fff; }
.plan-mount.is-alert { animation: cam-ping .5s ease-in-out infinite alternate; }
@keyframes cam-ping { to { opacity: .55; } }
.pm-tag { font: 700 9px var(--mono); fill: #e9eef0; paint-order: stroke; stroke: #0e171e; stroke-width: 3px; pointer-events: none; }
.is-running .plan-mount { cursor: default; }

/* Intruder and trail */
.plan-intruder .pi-body { fill: #e9eef0; stroke: #0e171e; stroke-width: 2; }
.plan-intruder .pi-head { fill: #0e171e; }
.plan-intruder .pi-pulse { fill: none; stroke: rgba(233,238,240,.5); stroke-width: 2; transform-origin: center; animation: pulse 1.2s ease-out infinite; }
.plan-intruder.is-seen .pi-body { fill: #ff4a3d; }
.plan-intruder.is-seen .pi-pulse { stroke: rgba(255,74,61,.8); }
@keyframes pulse { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.plan-trail line { stroke-width: 3; stroke-linecap: round; }
.plan-trail .tr-seen { stroke: #ff6b5e; }
.plan-trail .tr-blind { stroke: #9aa7af; stroke-dasharray: 2 5; }

/* Event log */
.plan-log { margin-top: 10px; background: #070b0e; border-radius: 4px; border: 1px solid rgba(255,255,255,.08); color: #c3ccd2; animation: rise .3s var(--ease) both; }
.plan-log[hidden] { display: none; }
.pl-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.08); font: 600 12px var(--mono); color: #8d9aa3; }
.pl-head span { display: inline-flex; align-items: center; gap: 8px; }
.pl-head button { background: none; border: 0; color: #8d9aa3; font-size: 20px; line-height: 1; cursor: pointer; }
.pl-head button:hover { color: #fff; }
.plan-log ol { list-style: none; margin: 0; padding: 8px 12px; max-height: 148px; overflow-y: auto; font: 12px/1.6 var(--mono); }
.plan-log li { animation: rise .25s ease both; }
.plan-log time { color: #6f7f89; margin-right: 6px; }
.plan-log .pl-alert b { color: #ff6b5e; }
.plan-log .pl-warn { color: #e8b35a; }
.plan-log .pl-muted { color: #8d9aa3; }
.pl-report { margin: 0; padding: 10px 12px; border-top: 1px solid rgba(255,255,255,.08); font: 600 14px/1.5 var(--body); color: #e9eef0; max-width: none; }
.pl-report:empty { display: none; }
.pl-report.is-good { color: #7fe0a4; }
.pl-report.is-ok { color: #f3c37a; }
.pl-report.is-bad { color: #ff8a80; }

/* Score gauge */
.pp-score { display: grid; grid-template-columns: 96px 1fr; grid-template-rows: auto; gap: 16px; align-items: center; margin-bottom: 18px; position: relative; }
.pp-ring { width: 96px; height: 96px; grid-row: 1; grid-column: 1; }
.ring-bg { fill: none; stroke: #e3e7e8; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--orange); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease), stroke .3s; }
.ring-fg.is-great { stroke: #2f9e5b; }
.pp-score-text { grid-row: 1; grid-column: 1; display: grid; place-items: center; text-align: center; align-content: center; height: 96px; }
.pp-score-num { font: 800 22px/1 var(--display); font-stretch: 125%; }
.pp-score-grade { display: none; }
.pp-score-meta { grid-column: 2; display: grid; gap: 4px; }
.pp-score-meta h3 { margin: 0; }
.pp-mode { font-size: 13px; color: var(--steel); }
.pp-score-meta::after { content: attr(data-grade); }
.pp-score [data-plan-grade] { display: block; position: absolute; left: 112px; bottom: -2px; font: 700 13px var(--body); color: var(--orange-ink); }
.pp-score { padding-bottom: 20px; border-bottom: 1px solid var(--line); }

@media (max-width: 640px) {
  .plan-toolbar { gap: 6px; }
  .pt-run { margin-left: 0; width: 100%; justify-content: center; padding: 12px; }
  .pt-btn { padding: 8px 10px; }
}
.plan-intruder[hidden] { display: none; }
.pp-score [data-plan-grade], .pp-score-meta::after { content: none; }
.pp-grade { position: static !important; font: 700 14px var(--body); color: var(--orange-ink); }
.pp-score { padding-bottom: 18px; }
.heat-legend { display: none; gap: 16px; flex-wrap: wrap; margin: 10px 4px 0; font-size: 13px; color: #c3ccd2; }
.is-heat .heat-legend { display: flex; }
.heat-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -2px; }
.heat-legend .hl-0::before { background: rgba(224,50,43,.7); }
.heat-legend .hl-1::before { background: rgba(243,149,40,.7); }
.heat-legend .hl-2::before { background: rgba(47,158,91,.85); }
.planner-stage .plan-cone.is-alert, .planner-stage.is-night .plan-cone.is-alert { fill: rgba(224,50,43,.3); stroke: #ff6b5e; stroke-width: 2; }

/* ---------- Blog ---------- */
.post-meta { font-size: 14px; color: var(--steel); margin: 0 0 8px; }
.post-meta span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); margin: 0 10px; vertical-align: 3px; }
.post-row h3 { font-size: 1.25rem; }
.post p { font-size: 1.05rem; line-height: 1.75; }
.post > .post-meta { margin-bottom: 28px; }
.post h3 { margin-top: 1.4em; }
.post ol.facts { counter-reset: n; }
.post ol.facts > li { counter-increment: n; padding-left: 44px; position: relative; }
.post ol.facts > li::before {
  content: counter(n); position: absolute; left: 0; top: 14px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--orange); font: 800 14px/28px var(--display); text-align: center;
}
.post-sources, .post-more { margin-top: 48px; padding-top: 24px; border-top: 2px solid var(--ink); }
.post-sources h2, .post-more h2 { font-size: 1.2rem; margin-top: 0; }
.post-sources ul, .post-more ul { list-style: none; padding: 0; margin: 0; }
.post-sources li, .post-more li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.post-more a { font-weight: 700; text-decoration: none; }
.post-more a:hover { color: var(--orange-ink); }

/* ---------- 404: lost footage ---------- */
.lost { background: var(--ink); color: #c3ccd2; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); position: relative; isolation: isolate; overflow: hidden; }
.lost::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}
.lost-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lost h1 { color: var(--white); font-size: clamp(2rem, 4.2vw, 3.3rem); }
.lost .lede { color: #c3ccd2; }
.lost-code {
  margin: 0 0 8px; font: 800 clamp(5rem, 14vw, 9rem)/.85 var(--display); font-stretch: 125%; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 2px var(--orange); max-width: none;
}
.incident { margin: 28px 0 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; }
.incident div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.incident dt { color: var(--orange); font: 600 13px/1.6 var(--mono); }
.incident dd { margin: 0; color: #e3e9ec; }
.lost-ghost { color: #fff; }
.lost-small { margin-top: 22px; font-size: 15px; }
.lost-small a { color: var(--orange); font-weight: 700; }

.lost-feed .feed-screen { aspect-ratio: 4 / 3; }
.lost-feed .static { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: .55; }
.nosignal {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; text-align: center; padding: 0 20px;
  font: 700 clamp(18px, 2.6vw, 28px)/1.2 var(--mono); color: #fff; letter-spacing: .12em; text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,.8);
}
.nosignal::before { content: ""; position: absolute; width: 72%; height: 64px; background: rgba(0,0,0,.65); z-index: -1; }
.rewind-lines {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(to bottom, transparent 0 18px, rgba(255,255,255,.55) 18px 21px, transparent 21px 60px);
}
.lost-feed.is-rewinding .rewind-lines { opacity: 1; animation: roll .25s linear infinite; }
.lost-feed.is-rewinding .static { opacity: .9; }
@keyframes roll { to { background-position: 0 60px; } }

.watcher { display: flex; align-items: center; gap: 18px; margin-top: 28px; }
.watcher-svg { width: 150px; flex: none; overflow: visible; }
.watcher p { margin: 0; font-size: 14px; color: #8d9aa3; }
.w-mount { fill: #3a4a55; }
.w-arm { stroke: #3a4a55; stroke-width: 8; stroke-linecap: round; }
.w-head { transform-origin: 42px 31px; transform-box: view-box; transition: transform .25s var(--ease); }
.w-body { fill: #e9eef0; }
.w-hood { fill: #cfd8dc; }
.w-lens { fill: #0e171e; stroke: #3a4a55; stroke-width: 2; }
.w-glint { fill: #8fd3ff; }
.w-led { fill: var(--red); animation: rec 1.6s steps(1) infinite; }

@media (max-width: 860px) { .lost-grid { grid-template-columns: 1fr; } .incident div { grid-template-columns: 110px 1fr; } }

/* ---------- Trustpilot TrustBoxes ---------- */
.tp-box { min-height: 24px; }                       /* reserve space so nothing jumps when it loads */
.tp-box a { font-size: 14px; font-weight: 600; }    /* fallback link if the widget is blocked */
.tp-box--hero { margin-top: 26px; max-width: 360px; }
.tp-box--hero a { color: #c3ccd2; }
.tp-box--head { width: 300px; max-width: 100%; }
.tp-box--aside { margin: 18px 0 4px; }
.tp-box--aside a { color: #fff; }
.tp-box--contact { margin: -8px 0 28px; max-width: 320px; }

/* ---------- Trustpilot rating badge ---------- */
.tp-badge { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 14px; line-height: 1.3; }
.tp-badge strong { font-weight: 700; }
.tp-stars { display: inline-flex; gap: 2px; flex: none; }
.tp-stars svg { width: 18px; height: 18px; fill: var(--orange); }
.tp-badge:hover span:last-child { text-decoration: underline; text-underline-offset: 3px; }
.tp-badge--dark { color: #dfe5e8; }
.tp-badge--dark strong { color: #fff; }
.tp-badge--light { color: var(--ink-2); }
.tp-badge--light .tp-stars svg { fill: var(--orange-ink); }
a.tp-box--hero { margin-top: 26px; }
a.tp-box--aside { margin: 18px 0 6px; display: flex; }
a.tp-box--contact { margin: -8px 0 28px; }
a.tp-box--head { justify-self: end; }
@media (min-width: 700px) { .tp-box--hero span:last-child, .tp-box--contact span:last-child { white-space: nowrap; } }
