/* ============================================================
   3P SECURITY GROUP
   Design system. Hand-authored, no framework, no build step.

   GEOMETRY: the whole identity is built from ONE primitive —
   three arcs radiating from a single origin point.
     outer arc  = PREVENT  (the deterrent perimeter)
     middle arc = PROTECT  (the staffed post)
     inner arc  = PROVE    (the verified record at the centre)
   Nothing here is stock. Every figure is drawn from that primitive.

   ⛔ NO USAF Security Forces shield, beret flash or USAF seal
      anywhere. Those are DoD insignia. The dark blue is a colour,
      which is fair game; the insignia is not.
   ============================================================ */

:root {
  /* base: near-black with a blue cast, not pure grey */
  --ink:        #0a0e16;
  --ink-2:      #111725;
  --ink-3:      #1a2233;
  --line:       #253048;
  --line-soft:  #1b2436;

  /* type */
  --fg:         #e8ecf4;
  --fg-2:       #a8b4ca;
  --fg-3:       #6b7891;

  /* the one accent: signal amber = the moment an alert is real */
  --signal:     #f5a524;
  --signal-dim: #8a5c14;
  --signal-wash:rgba(245,165,36,0.08);

  /* cold secondary = the sensor side */
  --scan:       #4a9eff;
  --scan-wash:  rgba(74,158,255,0.07);

  --ok:         #3ecf8e;

  --maxw:       1120px;
  --gutter:     20px;
  --radius:     4px;   /* sharp. this is not a consumer app */

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
[hidden] { display: none !important; }

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

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

/* ---------- type scale ---------- */
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 650; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.55rem, 4vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.3rem); }
p  { margin: 0 0 1.1em; color: var(--fg-2); }
p.lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--fg); max-width: 62ch; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 1rem;
  display: block;
}
.eyebrow.cool { color: var(--scan); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,14,22,0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand .wordmark {
  font-weight: 700; font-size: 1.05rem; letter-spacing: 0.01em; line-height: 1.1;
}
.brand .wordmark span { display: block; font-size: 0.62rem; font-family: var(--mono);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; }

.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--fg-2); font-size: 0.93rem; font-weight: 500; }
.nav a:hover { color: var(--fg); text-decoration: none; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--fg); border-radius: var(--radius); padding: 8px 11px;
  font-family: var(--mono); font-size: 0.78rem; cursor: pointer;
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 11vw, 116px) 0 clamp(48px, 9vw, 92px); overflow: hidden; }
.hero-field {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  /* the arc field is injected as inline SVG, this just positions it */
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--signal); }

.status-line {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-2);
  border: 1px solid var(--line); border-radius: 100px;
  padding: 6px 14px 6px 10px; margin-bottom: 26px;
  background: var(--ink-2);
}
.status-line .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 0 0 rgba(245,165,36,0.55);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,165,36,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(245,165,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); }
}

/* ---------- the three P's ---------- */
.threep { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 46px; }
.p-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
  padding: 26px 22px 24px; position: relative; overflow: hidden;
}
.p-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--signal), transparent 72%);
  opacity: 0.55;
}
.p-card .glyph { width: 46px; height: 46px; margin-bottom: 16px; display: block; }
.p-card h3 { margin-bottom: 6px; }
.p-card h3 b { color: var(--signal); font-weight: 650; }
.p-card p { font-size: 0.95rem; margin: 0; color: var(--fg-2); }

/* ---------- generic section ---------- */
.section { padding: clamp(52px, 9vw, 96px) 0; border-top: 1px solid var(--line-soft); }
.section.tight { padding-block: clamp(40px, 7vw, 68px); }
.section-head { max-width: 66ch; margin-bottom: 38px; }

.grid-2 { display: grid; gap: 26px; grid-template-columns: 1fr 1fr; align-items: start; }

/* ---------- fact panel (verifiable numbers only) ---------- */
.facts { display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr);
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.fact { background: var(--ink-2); padding: 22px 20px; }
.fact .n { font-family: var(--mono); font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--signal); font-weight: 600; line-height: 1; }
.fact .k { font-size: 0.86rem; color: var(--fg-2); margin-top: 9px; }
.fact .src { font-family: var(--mono); font-size: 0.68rem; color: var(--fg-3); margin-top: 10px; letter-spacing: 0.04em; }

/* ---------- service list (pre-licence: descriptive, NOT solicitation) ---------- */
.svc { display: grid; gap: 1px; background: var(--line-soft);
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.svc-row { background: var(--ink-2); padding: 24px 22px; display: grid; gap: 16px;
  grid-template-columns: 44px 1fr auto; align-items: start; }
.svc-row .ico { width: 44px; height: 44px; }
.svc-row h3 { margin: 0 0 5px; font-size: 1.08rem; }
.svc-row p { margin: 0; font-size: 0.94rem; }
.tag {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; white-space: nowrap; border: 1px solid var(--line);
  color: var(--fg-3); align-self: center;
}
.tag.live { color: var(--ok); border-color: rgba(62,207,142,0.35); background: rgba(62,207,142,0.07); }
.tag.pending { color: var(--signal); border-color: var(--signal-dim); background: var(--signal-wash); }

/* ---------- callout ----------
   Framed by corner brackets, not a side tab. The bracket is a reticle:
   it reads as "this has been looked at and confirmed", which is the
   whole product. It is also drawn from the same geometry as the mark. */
.callout {
  border: 1px solid var(--line);
  background: var(--ink-2); border-radius: var(--radius);
  padding: 24px 26px; margin: 30px 0; position: relative;
}
.callout::before, .callout::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  border-color: var(--signal); border-style: solid; border-width: 0;
}
.callout::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.callout::after  { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.callout p:last-child { margin-bottom: 0; }
.callout.cool::before, .callout.cool::after { border-color: var(--scan); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 46px 0 40px; background: var(--ink-2); }
.foot-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
.foot-grid h4 { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-3); margin: 0 0 14px; font-weight: 500; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-links a { color: var(--fg-2); font-size: 0.92rem; }
.foot-links a:hover { color: var(--fg); }
.foot-legal { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line-soft);
  font-size: 0.82rem; color: var(--fg-3); }
.foot-legal p { font-size: 0.82rem; color: var(--fg-3); margin: 0 0 7px; }

/* ⚖ LICENCE SLOT — Occ. Code 1702.131 requires the DPS licence number
   in advertising once the Class B issues. This element is the slot.
   Until then it carries the pre-licence notice. */
.licence-slot {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em;
  color: var(--fg-3); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 11px 14px; margin-top: 18px; display: inline-block;
}

/* ---------- reveal (guarded) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   PHONE. Hand-laid, not a shrunk desktop.
   ============================================================ */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.open {
    display: flex; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav.open a { padding: 13px var(--gutter); border-top: 1px solid var(--line-soft); }
  .nav-toggle { display: block; }
  .site-head .wrap { position: relative; }

  .grid-2 { grid-template-columns: 1fr; gap: 20px; }
  .threep { grid-template-columns: 1fr; gap: 12px; }
  .facts { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }

  /* the service row restacks: icon and tag share a top line, copy below */
  .svc-row { grid-template-columns: 36px 1fr; grid-template-areas: "ico tag" "copy copy"; gap: 12px; }
  .svc-row .ico { grid-area: ico; width: 36px; height: 36px; }
  .svc-row .tag { grid-area: tag; justify-self: start; align-self: center; }
  .svc-row .svc-copy { grid-area: copy; }

  body { font-size: 16px; }
}

@media (max-width: 420px) {
  :root { --gutter: 16px; }
  .p-card { padding: 20px 17px; }
}

/* tables and wide figures never break the page */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
