/* ==========================================================================
   RPS Security — components.css (C)
   Named components only. Consumes the :root tokens from main.css and must
   NEVER redefine one. Load order: main.css then this file.

   Sections
     1. Navigation            7. Coverage           13. Decorative figures
     2. Hero                  8. Testimonials       14. Poster lightbox
     3. Trust bar             9. Contact / form
     4. Service cards        10. Footer
     5. Advantage           11. WhatsApp FAB
     6. The Machine         12. Interior page furniture / news cards
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. NAVIGATION
   Sticky on every page, every device. The emergency button never shrinks —
   at 2am that is the only control on the page that matters.
   -------------------------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background-color var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}

.site-nav.is-scrolled {
  background: rgba(10, 10, 15, 0.97);
  border-bottom-color: var(--red-line);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  height: var(--nav-h);
  transition: height var(--t-base) var(--ease);
}

.site-nav.is-scrolled .site-nav__inner { height: var(--nav-h-small); }

.site-nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

/* The client's own logo, replacing the orbital icon + an Orbitron wordmark
   — the Orbitron lettering was not their brand font.
   ⚠ logo-rps.png carries REAL 8-bit alpha — the background is already
   transparent, so no `mix-blend-mode` and no white pill. Multiply against
   this nav would drive the red to #090001 and erase the mark. Same rule as
   the .mech figures in §13. */
.site-nav__logo {
  height: 2.8rem;
  width: auto;
  transition: height var(--t-base) var(--ease);
}
.site-nav.is-scrolled .site-nav__logo { height: 2.3rem; }

/* Unused — the nav mark no longer rotates: logo-rps.png
   contains the words "RPS SECURITY", and spinning a wordmark parks it upside
   down for half of every cycle. Kept for the orbital icon, which is
   rotationally symmetric and may come back. */
.site-nav__orbit { animation: orbit 60s linear infinite; transform-origin: 50% 50%; }

@keyframes orbit { to { transform: rotate(360deg); } }

/* --- Links ------------------------------------------------------------- */
.site-nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: var(--sp-2) 0;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width var(--t-base) var(--ease);
}

.site-nav__link:hover,
.site-nav__link:focus-visible { color: var(--white); }
.site-nav__link:hover::after { width: 100%; }

/* Per-page active state — set in the HTML, not by scroll position. */
.site-nav__link.is-active { color: var(--white); }
.site-nav__link.is-active::after { width: 100%; }

.site-nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

.site-nav__emergency {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.625rem var(--sp-4);
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease),
              box-shadow var(--t-fast) var(--ease);
}
.site-nav__emergency:hover,
.site-nav__emergency:focus-visible {
  background: #F02A2A;
  color: var(--white);
  box-shadow: 0 0 0 3px var(--red-glow);
}

/* Two channels means two anchors — a tel: and a wa.me can never share an
   href. The separator is decoration only; the anchors carry aria-labels that
   say which is which, because "076 178 3842" and "079 944 0026" side by side
   tell a screen reader nothing about the difference.
   ⚠ The WhatsApp anchor is DESKTOP ONLY. One emergency button already puts
   the layout floor at 286px on a 360px handset (see the note below); a second
   at full size takes it past 450px, and .site-nav__inner has a fixed
   height:var(--nav-h) that the drawer's inset depends on, so it cannot wrap to
   a second row either. Nothing is lost on mobile: the .wa-fab (§11) is fixed
   bottom-right on all six pages.
   ⚠ The breakpoint is 70em, NOT the 62em the drawer uses. Measured with
   Orbitron loaded: brand 78 + links 524 + actions 421 + gaps = 1055px of
   content box, which 62em (992px → 977 avail) cannot give. It first fits at
   ~1072px; 70em (1120px → 1105 avail) leaves 50px of headroom for font
   fallback and any future nav-link copy. Measure before lowering it —
   and measure AFTER document.fonts.ready: before Orbitron lands the nav
   reports ~45px narrower and every width falsely passes. */
.site-nav__sep {
  color: var(--silver);
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 69.999em) {
  .site-nav__emergency--wa,
  .site-nav__sep { display: none; }
}

/* --- Mobile drawer ----------------------------------------------------- */
.site-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.5rem;
  background: none;
  border: 1px solid var(--silver-dim);
  cursor: pointer;
}

.site-nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}

.site-nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.site-nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 61.9375em) {
  /* THE 360px OVERFLOW FIX — do not restore this gap at mobile widths.
     .site-nav__inner is a three-child flex row: brand, <nav>, actions. Below
     62em the <nav>'s only child (.site-nav__links) goes position:fixed, so the
     wrapper collapses to width 0 — but it is STILL a flex item, so it still
     draws a --sp-4 gap on BOTH sides. That is 32px of pure overflow spacing
     nothing, and nothing can absorb it: .site-nav__brand is flex-shrink:0,
     .site-nav__emergency is white-space:nowrap and the toggle is a fixed
     2.75rem. Measured at 360px: 101.7 (brand) + 32 (gaps) + 208.5 (actions)
     = 342.2 inside a 320px content box.
     justify-content:space-between already separates brand from actions
     whenever there IS free space, so the gap only ever applies when cramped —
     i.e. exactly when it can only hurt. body{overflow-x:hidden} was masking
     the result, not fixing it. */
  .site-nav__inner { gap: 0; }

  .site-nav__links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-4) var(--gutter) var(--sp-6);
    background: var(--dark-1);
    border-bottom: 3px solid var(--red);
    transform: translateY(-120%);
    visibility: hidden;
    /* visibility is DISCRETE: given a duration it holds the old value until
       the transition ends, so the drawer's links stayed unfocusable and
       un-hittable for a full --t-base after opening. Switch it at 0s with a
       DELAY instead — 0s on open (usable immediately), a full --t-base on
       close, which is what keeps the drawer on screen while it slides out.
       Same pattern as the lightbox in §14. */
    transition: transform var(--t-base) var(--ease),
                visibility 0s linear var(--t-base);
  }

  .site-nav__links.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform var(--t-base) var(--ease),
                visibility 0s linear 0s;
  }

  .site-nav__link {
    padding: var(--sp-4) 0;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link.is-active { color: var(--red-text); }
}

@media (min-width: 62em) {
  .site-nav__toggle { display: none; }
}

@media (max-width: 30em) {
  /* Was the Orbitron wordmark's font-size. Same purpose: take
     width out of the brand, not out of the two 44px targets beside it. */
  .site-nav__logo { height: 2.4rem; }
  .site-nav__emergency { padding: 0.5rem 0.75rem; font-size: 0.6875rem; }
  /* Headroom on a 360px handset. The emergency button and the 44px toggle
     both keep their full size — this takes the space out of the gap between
     them instead. */
  .site-nav__actions { gap: var(--sp-2); }
}

/* --------------------------------------------------------------------------
   2. HERO
   Text dominates the left. The machine is revealed in a diagonal wedge on the
   right — the same cut as the stripe on the bonnet of the car in the photo.
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  padding-block: var(--sp-8) calc(var(--sp-8) + var(--slant));
  isolation: isolate;
}

@media (min-width: 60em) {
  .hero { padding-block: var(--sp-9) calc(var(--sp-9) + var(--slant)); min-height: 82vh; display: flex; align-items: center; }
}

/* Mobile: the photo is a dimmed full-bleed backdrop. A wedge does not work
   at 360px — there is no horizontal room to sacrifice. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 40%;
  opacity: 0.25;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,15,0.75), rgba(10,10,15,0.92));
}

@media (min-width: 60em) {
  /* Desktop: the diagonal wedge, bottom-right. */
  .hero__media {
    left: auto;
    right: 0;
    width: 58%;
    clip-path: polygon(35% 0%, 100% 0%, 100% 100%, 8% 100%);
  }
  .hero__media img { opacity: 0.85; object-position: 55% 45%; }
  .hero__media::after {
    background: linear-gradient(100deg, var(--black) 4%, rgba(10,10,15,0.55) 38%, rgba(10,10,15,0.1) 100%);
  }
}

.hero__inner { position: relative; z-index: 2; }

@media (min-width: 60em) {
  .hero__inner { max-width: 56%; }
}

/* Live status pre-label. */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--silver);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7);
  animation: pulse-dot 2s ease-out infinite;
}

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0.7); }
  70%  { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); }
}

/* Three words, three lines. The red rule draws itself under the third only. */
.hero__title { margin-bottom: var(--sp-5); }
.hero__title span { display: block; }

.hero__title span:last-child {
  position: relative;
  padding-bottom: 0.18em;
  width: -moz-fit-content;
  width: fit-content;
}

.hero__title span:last-child::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  width: 0;
  background: var(--red);
  animation: draw-rule 0.9s var(--ease) 0.5s forwards;
}

@keyframes draw-rule { to { width: 100%; } }

.hero__sub { margin-bottom: var(--sp-6); max-width: 42ch; }

/* Scanline — one hairline sweeping the hero, 8% opacity. Systems idling. */
.hero__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.hero__scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0.08;
  /* Declared at rest as well as in the keyframe: main.css collapses every
     animation under prefers-reduced-motion without setting
     animation-fill-mode, so the line parks on THIS rule, not on 0%/100%. */
  transform: translateY(-2vh);
  animation: scan 4s linear infinite;
}

@keyframes scan {
  from { transform: translateY(-2vh); }
  to   { transform: translateY(90vh); }
}

/* Scroll cue. */
.hero__cue {
  display: none;
  margin-top: var(--sp-7);
  font-family: var(--font-display);
  font-size: 0.625rem;
  letter-spacing: var(--track-label);
  color: var(--silver);
  text-transform: uppercase;
}

@media (min-width: 60em) { .hero__cue { display: block; } }

.hero__cue::before {
  content: "";
  display: inline-block;
  width: 3rem;
  height: 1px;
  margin-right: var(--sp-3);
  vertical-align: middle;
  background: var(--red);
}

/* --------------------------------------------------------------------------
   3. TRUST BAR — removed at the client's request.
   The strip stood on index.html only (`.trust-bar`, `.trust-bar__grid`,
   `.trust-stat` + __value/__label). Section number kept so §4+ do not shift.
   The figures it carried are still confirmed and still on about.html.
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   4. SERVICE CARDS
   -------------------------------------------------------------------------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-5) var(--sp-4);
  background: var(--dark-1);
  border-left: 3px solid var(--red);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background-color var(--t-base) var(--ease);
}

/* The blue diamond, top-right. Rotates 45deg on hover — a small mechanical
   acknowledgement rather than a bounce. */
.service-card::after {
  content: "";
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: 9px;
  height: 9px;
  background: var(--blue-bright);
  transform: rotate(0deg);
  transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
}

.service-card:hover,
.service-card:focus-within {
  transform: translateY(-5px);
  background: #15151E;
  box-shadow: 0 8px 30px var(--red-glow);
}

.service-card:hover::after,
.service-card:focus-within::after { transform: rotate(45deg); background: var(--red); }

.service-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--sp-4);
  stroke: var(--blue-bright);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: square;
  stroke-linejoin: miter;
  transition: stroke var(--t-base) var(--ease);
}

.service-card:hover .service-card__icon { stroke: var(--white); }

.service-card__title { color: var(--white); }

.service-card__text {
  font-size: 0.9375rem;
  color: var(--silver);
  margin-bottom: var(--sp-4);
  flex-grow: 1;
}

.service-card__more {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--silver);
}
.service-card__more:hover { color: var(--red-text); }

/* --------------------------------------------------------------------------
   5. ADVANTAGE
   -------------------------------------------------------------------------- */
.advantage { position: relative; }

.advantage__item {
  position: relative;
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.advantage__item:last-child { border-bottom: 0; }

/* Big outlined numeral sitting behind each point. */
.advantage__num {
  position: absolute;
  left: -0.15em;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 11vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--white);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
}

.advantage__title { position: relative; color: var(--white); }
.advantage__text { position: relative; font-size: 0.9375rem; margin: 0; }

/* Robotic bullets — squares, not circles. */
.bullet-list { list-style: none; margin: 0; padding: 0; }

.bullet-list li {
  position: relative;
  padding-left: var(--sp-5);
  margin-bottom: var(--sp-3);
  font-size: 0.9375rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

/* Clipped image panel — mirrors the hero wedge. */
.clip-panel {
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%);
}

.clip-panel--reverse { clip-path: polygon(0 3rem, 100% 0, 100% 100%, 0 100%); }

.clip-panel img { width: 100%; height: 100%; object-fit: cover; }

.clip-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(0,71,171,0.14), rgba(10,10,15,0.55));
  pointer-events: none;
}

/* A designed flyer rather than a photograph (services.html's CCTV poster).
   `cover` would crop its headline and its contact block away, and the wash
   above is tuned to sink a photo into the page — across white artwork it just
   dirties it. Contain the whole poster and drop the overlay. */
/* padding-bottom matches the clip-path's 3rem inset. Without it the site's
   diagonal cuts through the flyer's own bottom line ("Professional · Reliable
   · Trusted") — fine across a photo, wrong across artwork. The band keeps the
   diagonal; it just takes the bite out of the panel instead of the poster. */
.clip-panel--poster {
  background: var(--dark-2);
  padding-bottom: 3rem;
}
.clip-panel--poster img { object-fit: contain; }
.clip-panel--poster::after { content: none; }

/* --------------------------------------------------------------------------
   6. THE MACHINE
   Full-bleed, angled, text over a darkened photo.
   The background is robot-sunset.jpg — the client's own inflatable mascot at
   sunset, supplied and explicitly approved by them. The old "robot is pulled"
   rule does NOT apply to this file; read the block comment above the .machine
   band in index.html before changing anything here.
   -------------------------------------------------------------------------- */
.machine {
  position: relative;
  overflow: hidden;
  background: var(--black);
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
  margin-block: calc(var(--slant) * -0.5);
  padding-block: calc(var(--sp-8) + var(--slant));
}

@media (min-width: 48em) {
  .machine { padding-block: calc(var(--sp-9) + var(--slant)); }
}

.machine__media { position: absolute; inset: 0; z-index: 0; }

/* 80%, not the 42% the fleet photo used. robot-sunset is 1448x1086 against a
   ~2:1 band, so cover discards roughly a third of its height. Measured at
   1280px: 42% showed source y 163–861, which cut off the sun (y≈990) and the
   whole horizon — the point of the shot — while keeping the empty upper sky.
   80% shows y≈310–1008: full mascot, horizon, sun. Re-measure if the band's
   padding changes. */
.machine__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 80%;
}

.machine__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,10,15,0.95) 6%, rgba(10,10,15,0.72) 46%, rgba(10,10,15,0.35) 100%);
}

.machine__inner { position: relative; z-index: 1; max-width: 34rem; }

.machine__title { font-size: clamp(1.75rem, 5.5vw, 3rem); }

/* Replaces an inline margin-top on the control-room button. */
.machine__cta { margin-top: var(--sp-5); }

/* --------------------------------------------------------------------------
   7. COVERAGE
   -------------------------------------------------------------------------- */
/* coverage.html carries the client's own confirmed paragraph, not a chip list.
   ⚠ Never reintroduce named suburbs the client has not supplied. */

.map-frame {
  position: relative;
  border: 2px solid var(--red);
  aspect-ratio: 4 / 3;
  background: var(--dark-2);
}

.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   8. TESTIMONIALS
   ⚠ CURRENTLY UNUSED, deliberately. The client has supplied no real reviews,
   and invented five-star quotes are not something a security company should
   publish. This component is kept intact and ready for genuine, attributable
   feedback: restore instructions are in the TESTIMONIALS comment above the
   CTA in index.html. Do not delete it.
   -------------------------------------------------------------------------- */
.quote-card {
  position: relative;
  overflow: hidden;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--dark-2);
}

/* Deliberately asymmetric — the top rule runs 40% of the card, left-aligned. */
.quote-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 2px;
  background: var(--red);
}

.quote-card::after {
  content: "\201C";
  position: absolute;
  top: -0.32em;
  right: 0.12em;
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  opacity: 0.08;
  pointer-events: none;
}

.quote-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-4);
  color: var(--red-text);
}
.quote-card__stars svg { width: 15px; height: 15px; fill: currentColor; }

.quote-card__text {
  position: relative;
  font-size: 0.9375rem;
  color: var(--silver);
  margin-bottom: var(--sp-4);
}

.quote-card__who {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

.quote-card__where {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   9. CONTACT / FORM
   Inputs have a bottom rule only. No boxes — boxes read as admin software.
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--sp-5); }

@media (min-width: 40em) {
  .form { grid-template-columns: repeat(2, 1fr); }
  .form__field--wide { grid-column: 1 / -1; }
}

.form__field { display: flex; flex-direction: column; }

.form__label {
  margin-bottom: var(--sp-2);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 0.75rem 0.25rem;
  background: var(--dark-2);
  border: 0;
  border-bottom: 1px solid var(--silver-dim);
  border-radius: 0;
  color: var(--white);
  font-size: 1rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  appearance: none;
}

.form__textarea { min-height: 7rem; resize: vertical; }

.form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A8A9AD' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  padding-right: 2rem;
}
.form__select option { background: var(--dark-2); color: var(--white); }

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-bottom-color: var(--red);
  box-shadow: 0 2px 8px var(--red-glow);
}

.form__input.is-invalid,
.form__select.is-invalid,
.form__textarea.is-invalid { border-bottom-color: var(--red); border-bottom-width: 2px; }

.form__error {
  margin-top: var(--sp-2);
  font-size: 0.75rem;
  color: #FF6B6B;
  min-height: 1rem;
}

.form__note { font-size: 0.8125rem; color: var(--silver); }

.form-status {
  display: none;
  padding: var(--sp-4);
  margin-bottom: var(--sp-5);
  background: rgba(53, 208, 127, 0.1);
  border-left: 3px solid var(--green);
  color: var(--white);
  font-size: 0.9375rem;
}
.form-status.is-visible { display: block; }

/* The same banner carrying a failure instead of a receipt. A green panel
   reading "that did not go through" is worse than no panel at all. */
.form-status--error {
  background: rgba(217, 33, 33, 0.1);
  border-left-color: var(--red);
}

/* Turnstile renders itself into this slot; it is empty until then, and stays
   empty if the script is blocked. Collapse it so the form has no dead gap. */
.turnstile-slot:empty { display: none; }

/* Contact detail rows. */
.contact-list { list-style: none; margin: 0; padding: 0; }

.contact-list li {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-list li:last-child { border-bottom: 0; }

.contact-list__key {
  flex: 0 0 8.5rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  padding-top: 0.2em;
}

.contact-list__val { color: var(--white); font-size: 0.9375rem; }
.contact-list__val a { color: var(--white); text-decoration: none; }
.contact-list__val a:hover { color: var(--red-text); }

/* Emergency call-out panel — the control room and the response line. */
.emergency-panel {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--dark-1);
  border-left: 4px solid var(--red);
}

@media (min-width: 40em) { .emergency-panel { grid-template-columns: repeat(2, 1fr); } }

/* contact.html carries three numbers, coverage.html two. Widening the base
   class would stretch coverage's pair, so the third column is opt-in.
   It waits for 48em: __num is clamped at 1.5rem, and "072 538 0403" needs
   ~200px, which a third of the panel only provides from ~768px up.
   Between 40em and 48em the base rule's 2 columns would leave the third card
   orphaned on its own row, so --3 stacks through that band instead. */
@media (min-width: 40em) and (max-width: 47.999em) {
  .emergency-panel--3 { grid-template-columns: 1fr; }
}
@media (min-width: 48em) {
  .emergency-panel--3 { grid-template-columns: repeat(3, 1fr); }
}

/* contact.html carries FOUR since the WhatsApp line joined the panel. Same
   reasoning as --3, one step further: a quarter of the 1200px wrap is ~285px
   at 64em and only ~180px at 48em, and __num needs ~200px before
   "076 178 3842" breaks. So 2x2 from 40em (a 4-item panel is the one count
   that divides evenly, so there is no orphan row to design around) and 4-up
   only from 64em. --2 and --3 are untouched: coverage.html still uses --3. */
@media (min-width: 40em) {
  .emergency-panel--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 64em) {
  .emergency-panel--4 { grid-template-columns: repeat(4, 1fr); }
}

.emergency-panel__item { display: block; text-decoration: none; }

.emergency-panel__key {
  display: block;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--red-text);
  margin-bottom: var(--sp-2);
}

.emergency-panel__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
}

.emergency-panel__item:hover .emergency-panel__num { color: var(--red-text); }

/* --------------------------------------------------------------------------
   10. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: #06060A;
  padding-block: var(--sp-8) var(--sp-5);
}

/* The orbital mark as a vast, near-invisible watermark. */
.site-footer__watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(38rem, 90%);
  transform: translate(-50%, -50%);
  opacity: 0.04;
  pointer-events: none;
  filter: grayscale(1) brightness(3);
}

.site-footer__inner { position: relative; z-index: 1; }

.site-footer__divider {
  height: 2px;
  margin-bottom: var(--sp-7);
  background: linear-gradient(to right, var(--red), var(--blue), transparent);
}

.site-footer__cols {
  display: grid;
  gap: var(--sp-6);
  margin-bottom: var(--sp-7);
}

@media (min-width: 48em) { .site-footer__cols { grid-template-columns: repeat(3, 1fr); } }

.site-footer__title {
  font-size: 0.75rem;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: var(--sp-3); font-size: 0.9375rem; }

.site-footer__list a { color: var(--silver); text-decoration: none; }
.site-footer__list a:hover { color: var(--red-text); }

.site-footer__bottom {
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--silver);
}

.site-footer__bottom p { margin-bottom: var(--sp-2); }

/* --------------------------------------------------------------------------
   11. WHATSAPP FAB
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  right: var(--sp-4);
  bottom: var(--sp-4);
  z-index: var(--z-fab);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: transform var(--t-fast) var(--ease);
}

.wa-fab::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  /* The ring's resting state is the keyframe's 100%, declared here as well.
     Without it, prefers-reduced-motion parks this on the browser default
     (scale(1), opacity 1) — a solid green disc that is invisible today only
     because it happens to sit behind an identical circle at z-index -1. */
  transform: scale(1);
  opacity: 0;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 1.75rem; height: 1.75rem; fill: #fff; }

/* --------------------------------------------------------------------------
   12. INTERIOR PAGE FURNITURE
   -------------------------------------------------------------------------- */
.page-head {
  position: relative;
  overflow: hidden;
  background: var(--dark-1);
  padding-block: var(--sp-7) calc(var(--sp-7) + var(--slant));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - var(--slant)));
  margin-bottom: calc(var(--slant) * -0.5);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    transparent 0 44px,
    rgba(255, 255, 255, 0.03) 44px 52px,
    transparent 52px 96px,
    rgba(217, 33, 33, 0.05) 96px 108px
  );
  pointer-events: none;
}

.page-head__inner { position: relative; z-index: 1; }
.page-head__title { font-size: clamp(1.875rem, 6vw, 3.25rem); margin-bottom: var(--sp-4); }

.breadcrumb {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: var(--sp-4);
}
.breadcrumb a { color: var(--silver); text-decoration: none; }
.breadcrumb a:hover { color: var(--red-text); }

/* Services page: one block per service. */
.service-block {
  display: grid;
  gap: var(--sp-5);
  padding-block: var(--sp-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.service-block:last-of-type { border-bottom: 0; }

@media (min-width: 56em) {
  .service-block { grid-template-columns: 3.5rem 1fr; gap: var(--sp-6); }
}

.service-block__icon { width: 3.5rem; height: 3.5rem; stroke: var(--blue-bright); stroke-width: 1.5; fill: none; }
.service-block__title { font-size: clamp(1.25rem, 3.5vw, 1.75rem); }

.service-block__num {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  color: var(--red-text);
  display: block;
  margin-bottom: var(--sp-2);
}

/* Jump nav for the services page. */
.jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.jump-nav a {
  display: inline-block;
  padding: 0.4375rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver);
  text-decoration: none;
}
.jump-nav a:hover { border-color: var(--red); color: var(--white); }

/* Team. */
.team-grid { display: grid; gap: var(--sp-5); }

@media (min-width: 48em) { .team-grid { grid-template-columns: 2fr 1fr; } }

.team-figure { margin: 0; }
.team-figure img { width: 100%; }

.team-figure figcaption {
  margin-top: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--silver);
}

/* Final CTA band. */
.cta-band {
  background: var(--dark-1);
  border-left: 4px solid var(--red);
  padding: var(--sp-6) var(--sp-5);
  text-align: left;
}

@media (min-width: 48em) {
  .cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
    padding: var(--sp-7);
  }
  .cta-band__text { max-width: 34rem; }
}

.cta-band h2 { font-size: clamp(1.375rem, 4vw, 2rem); margin-bottom: var(--sp-3); }
.cta-band p { margin-bottom: var(--sp-5); }

@media (min-width: 48em) { .cta-band p { margin-bottom: 0; } }

/* --------------------------------------------------------------------------
   12b. NEWS CARDS (news.html)
   A continuation of 12, not a section of its own — the header index above
   reads "12. Interior page furniture / news cards". Numbered 12b rather than
   13 deliberately: §13 and §14 are referenced by name from index.html,
   about.html, news.html, main.js and CLAUDE.md, and renumbering them would
   silently invalidate all of it.
   The board reuses .service-card wholesale. Only three extras are needed: the
   poster image, a tighter chip, and the dateline that sits under it.
   -------------------------------------------------------------------------- */

/* Poster sits at the top of the card, above the chip. The red left rule keeps
   it on the same structural grammar as .service-card itself. */
.news-card__poster {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: var(--sp-4);
  border-left: 3px solid var(--red);
}

/* .label's default 1rem bottom margin is too much when a date follows it. */
.news-card__chip { margin-bottom: var(--sp-2); }

.news-card__date {
  margin-bottom: var(--sp-3);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--silver);
}

/* --------------------------------------------------------------------------
   13. DECORATIVE FIGURES
   Two cut-out figures used as accents — one in the Machine band on
   index.html, one in about.html's Command section. They carry NO information:
   both are aria-hidden with an empty alt in the markup, and pointer-events is
   off so they never intercept a click meant for the copy behind them.

   Backgrounds were removed with rembg (isnet-general-use) and the PNGs carry
   real 8-bit alpha, so there is deliberately NO mix-blend-mode here — the
   figures composite correctly over the Machine band's photo, not just over
   flat black. Do not "optimise" these PNGs to a palette: quantising drove the
   fully-transparent background of optimus-b to 0% clear, which paints the
   whole rectangle as a visible box.

   Desktop only. Below 62em there is no horizontal room beside the copy, and
   display:none plus loading="lazy" means the bytes are never fetched on a
   phone at all.
   -------------------------------------------------------------------------- */
.mech {
  display: none;
  position: absolute;
  height: auto;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}

@media (min-width: 62em) {
  .mech { display: block; }
}

/* --- index.html · the Machine band --------------------------------------- */
/* `.mech--machine` (optimus-a.png, bled off the right edge of the Machine
   band) was REMOVED: that band's background is now
   robot-sunset.jpg, which already has the client's robot in it, and two
   robots in one band read as a mistake. optimus-a.png is still on disk.
   `.mech` and `.mech--command` below are still live on about.html. */

/* --- about.html · the Command section ------------------------------------ */
/* .section carries no positioning of its own, so the modifier supplies it
   here rather than globally. */
.section--mech { position: relative; overflow: hidden; }
.section--mech > .wrap { position: relative; z-index: 1; }

/* The copy in this section had no measure of its own and ran the full 1200px
   wrap — ~160 characters a line, and straight under the figure. Capping it
   keeps the text off the artwork and is the more readable line length anyway.
   The figure is z-index 0, so overlap was never a legibility risk; it just
   looked cluttered. 42rem rather than something wider because the worst case
   is right at the 62em breakpoint, where the figure appears but the viewport
   is at its narrowest — 46rem left only a 12px gap there.

   ⚠ The selector must list EVERY block this section can contain, not just p.
   The founders' quote arrived as a <blockquote>, whose own text is
   .wrap > blockquote > p — one level too deep to match `.wrap > p` — so it
   escaped the measure and ran the full wrap, straight under the figure. Any
   new block added to this section needs adding here too. */
.section--mech > .wrap > p,
.section--mech > .wrap > blockquote { max-width: 42rem; }

/* Pulled quote. The red left rule is the same structural grammar as
   .service-card and .cta-band; this is not a new pattern, just the first time
   it has been needed on running text. */
.pull-quote {
  margin: var(--sp-6) 0;
  padding: var(--sp-3) var(--sp-5);
  border-left: 3px solid var(--red);
}

.pull-quote p { font-style: italic; margin-bottom: var(--sp-3); }

.pull-quote cite {
  font-style: normal;
  font-size: 0.875rem;
  color: var(--silver);
}

/* Held back from the copy and faded out on its left edge so it reads as
   atmosphere rather than as a portrait of the founder this section names. */
.mech--command {
  top: 50%;
  right: 0;
  z-index: 0;
  /* Kept narrow enough that the full height clears the section's padding —
     wider than this and the head is clipped by the section's top edge. */
  width: clamp(14rem, 22vw, 18rem);
  transform: translateY(-50%);
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(to left, #000 60%, transparent 100%);
          mask-image: linear-gradient(to left, #000 60%, transparent 100%);
}

/* --------------------------------------------------------------------------
   14. POSTER LIGHTBOX (news.html)
   Opens a .news-card__poster full-screen. Follows the same visibility +
   opacity pattern as the mobile nav drawer rather than toggling display:
   display is not transitionable, so a fade would never play, and
   visibility:hidden still removes the overlay from hit-testing and from the
   accessibility tree.

   Deliberately a transition and NOT @keyframes. main.css collapses every
   animation under prefers-reduced-motion without setting animation-fill-mode,
   so a keyframed fade parks on its BASE rule — the trap that left the old
   SVG figure's visor scan bar sitting opaque once its animation was off.
   .is-open sets its resting state as a plain declaration, which survives that.

   With JavaScript off the overlay simply stays hidden and the posters render
   as ordinary images.
   -------------------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  /* Literal, not a token: this has to clear --z-nav (100), --z-fab (90) and
     the skip link (main.css, 200). components.css never defines tokens. */
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-7) var(--gutter);
  background: rgba(10, 10, 15, 0.95);
  opacity: 0;
  visibility: hidden;
  /* pointer-events is NOT transitioned, so it flips instantly in both
     directions and the invisible overlay can never swallow a click. */
  pointer-events: none;
  /* visibility is a discrete property: given a duration, Chrome holds the old
     value until the transition ENDS, so a hidden overlay stays unfocusable for
     320ms after opening and initLightbox() cannot move focus into it. Instead
     it is switched at 0s with a DELAY — 0s delay on open (immediate, focusable
     at once) and a full --t-base delay on close, which is what keeps the
     overlay on screen for the fade-out. */
  transition: opacity var(--t-base) var(--ease),
              visibility 0s linear var(--t-base);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity var(--t-base) var(--ease),
              visibility 0s linear 0s;
}

.lightbox__img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-left: 3px solid var(--red);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--gutter);
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--dark-1);
  border: 1px solid var(--silver-dim);
  color: var(--silver);
  cursor: pointer;
  /* The diagonal, at component scale — a clipped top-right corner. */
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}

.lightbox__close svg { width: 1.125rem; height: 1.125rem; fill: currentColor; }

.lightbox__close:hover,
.lightbox__close:focus-visible {
  color: var(--red-text);
  border-color: var(--red);
}

/* Only meaningful once initLightbox() has bound the handlers; the <noscript>
   block in news.html puts it back to default. */
.news-card__poster { cursor: zoom-in; }
