/* -----------------------------------------------------------------------------
   0  FONTS  ·  self hosted, latin subset, variable
   Served from this origin so no visitor IP reaches a third party font CDN.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.woff2") format("woff2-variations");
  font-weight: 400 800; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter.woff2") format("woff2-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}

/* =============================================================================
   PRAEVEN SECURITY
   praeven.css  ·  v3
   One stylesheet. Tokens, field layers, base, components, motion.
   Primary accent is fixed at #7C5CFF across the whole site. Per-page variation
   lives in the ambient field only, set by [data-page] on <body>.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1  TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Brand, authoritative */
  --accent:        #7C5CFF;
  --accent-hover:  #8B5CF6;
  --accent-soft:   #A78BFA;
  --base:          #080A12;
  --raised:        #100A1C;
  --motto:         #242A3A;
  --ink:           #F4F6FA;
  --muted:         #C0C4CE;
  --hair:          rgba(255,255,255,.08);
  --hair-2:        rgba(255,255,255,.14);
  --badge-bg:      rgba(124,92,255,.15);

  /* Derived surfaces */
  --card:          #0B0D16;
  --card-2:        #140E20;
  --wash:          rgba(124,92,255,.07);
  --glow:          rgba(124,92,255,.34);

  /* Ambient field, overridden per page */
  --field-a: 258;          /* hue of the primary bloom  */
  --field-b: 268;          /* hue of the secondary bloom */
  --field-strength: 1;

  /* Type */
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Scale */
  --t-eyebrow: .75rem;
  --t-h1: clamp(2.4rem, 6vw, 4.5rem);
  --t-h2: clamp(1.85rem, 3.5vw, 2.75rem);
  --t-h3: 1.3125rem;
  --t-body: clamp(1rem, .95rem + .25vw, 1.0625rem);
  --t-lead: clamp(1.125rem, 1rem + .55vw, 1.375rem);
  --t-sm: .9375rem;
  --t-xs: .8125rem;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 3rem);
  --shell: 1200px;
  --prose: 68ch;
  --pad-y: clamp(5rem, 9vw, 8.5rem);
  --r: 16px;
  --r-sm: 10px;
  --ease: cubic-bezier(.22,1,.36,1);
}

/* Per-page ambient hue rotation. Primary accent never changes. */
body[data-page="home"]        { --field-a: 258; --field-b: 272; }
body[data-page="training"]    { --field-a: 272; --field-b: 292; }
body[data-page="prismvector"] { --field-a: 250; --field-b: 196; --field-strength: 1.25; }
body[data-page="briefings"]   { --field-a: 232; --field-b: 258; }
body[data-page="about"]       { --field-a: 246; --field-b: 264; }
body[data-page="contact"]     { --field-a: 258; --field-b: 252; --field-strength: .7; }

/* -----------------------------------------------------------------------------
   2  RESET AND BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-body);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* --- the field: fixed ambient light + surveying grid --- */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120vw 90vh at 86% -12%,
      hsl(var(--field-a) 100% 68% / calc(.16 * var(--field-strength))), transparent 58%),
    radial-gradient(90vw 70vh at -10% 108%,
      hsl(var(--field-b) 100% 66% / calc(.11 * var(--field-strength))), transparent 60%),
    linear-gradient(hsl(var(--field-a) 100% 70% / .028) 1px, transparent 1px),
    linear-gradient(90deg, hsl(var(--field-a) 100% 70% / .028) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 68px 68px, 68px 68px;
}

/* --- grain. this is what stops a dark site reading as flat --- */
body::after {
  content: "";
  position: fixed; inset: -50%; z-index: 1; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header, main, .site-footer { position: relative; z-index: 2; }

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--display);
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); letter-spacing: -.04em; }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); font-weight: 600; letter-spacing: -.018em; line-height: 1.28; }
h4 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.35; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-soft); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: #fff; }

.lead { font-size: var(--t-lead); color: var(--muted); line-height: 1.55; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.prose { max-width: var(--prose); }
.center { text-align: center; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -120px; z-index: 300;
  background: var(--accent); color: #08060F;
  padding: .8rem 1.25rem; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 1rem; }

/* -----------------------------------------------------------------------------
   3  LAYOUT
   -------------------------------------------------------------------------- */
.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gut); }
.shell--narrow { max-width: 900px; }

.sec { padding-block: var(--pad-y); position: relative; }
.sec--tight { padding-block: clamp(3.25rem, 5.5vw, 5rem); }
.sec--flush { padding-top: 0; }

/* Raised bands sit above the field with their own surface */
.sec--raised::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(16,10,28,.92), rgba(16,10,28,.72) 45%, rgba(16,10,28,.92));
  border-block: 1px solid var(--hair);
  backdrop-filter: blur(2px);
}

/* Section head */
.head { max-width: 760px; margin-bottom: clamp(2.5rem, 4.5vw, 4rem); }
.head--center { margin-inline: auto; text-align: center; }
.head p { color: var(--muted); font-size: var(--t-lead); line-height: 1.55; margin-bottom: 0; }
.head--center .eyebrow { justify-content: center; }

/* -----------------------------------------------------------------------------
   4  EYEBROWS, BADGES, DATA LABELS
   The mono face is structural. Every operational label uses it, so the site
   reads as a readout rather than a brochure.
   -------------------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-eyebrow);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin: 0 0 1.15rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; flex: none;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--badge-bg); color: var(--accent-soft);
  border: 1px solid rgba(124,92,255,.28);
}
.badge--pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-soft); flex: none;
  box-shadow: 0 0 0 0 rgba(167,139,250,.55);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(167,139,250,.5); }
  70%  { box-shadow: 0 0 0 7px rgba(167,139,250,0); }
  100% { box-shadow: 0 0 0 0 rgba(167,139,250,0); }
}

.tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .03em;
  color: var(--accent-soft);
  background: var(--wash);
  border: 1px solid rgba(124,92,255,.2);
  border-radius: 5px; padding: .2rem .5rem;
  display: inline-block; white-space: nowrap;
}
.mono { font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .01em; }

/* -----------------------------------------------------------------------------
   5  BUTTONS
   #7C5CFF cannot carry AA text at normal size in either polarity, so the
   primary label sits at 19px/700 to clear the WCAG large-text threshold.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--display); font-size: 1.1875rem; font-weight: 700;
  letter-spacing: -.015em; line-height: 1;
  padding: 1.0625rem 1.8rem; border-radius: var(--r-sm);
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease), box-shadow .28s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #08060F; }
.btn--primary:hover {
  background: var(--accent-hover); color: #08060F;
  box-shadow: 0 14px 40px -14px var(--glow);
}
.btn--ghost {
  background: rgba(255,255,255,.02); color: var(--ink); border-color: var(--hair-2);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--accent); background: var(--wash); color: var(--ink); }
.btn--full { width: 100%; }
.btn--sm { font-size: 1rem; padding: .8rem 1.15rem; }

.btns { display: flex; flex-wrap: wrap; gap: .875rem; }
.center .btns, .head--center .btns { justify-content: center; }

.arrow {
  font-family: var(--display); font-weight: 600; font-size: .9375rem;
  display: inline-flex; align-items: center; gap: .45rem; color: var(--accent-soft);
}
.arrow::after {
  content: "→"; transition: transform .24s var(--ease); font-family: var(--body);
}
.arrow:hover::after { transform: translateX(5px); }

/* -----------------------------------------------------------------------------
   6  HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8,10,18,.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.stuck { border-bottom-color: var(--hair); background: rgba(8,10,18,.92); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand__mark {
  width: auto; height: 36px; flex: none;
  filter: drop-shadow(0 0 14px rgba(124,92,255,.4));
  transition: filter .3s var(--ease), transform .3s var(--ease);
}
.brand:hover .brand__mark { filter: drop-shadow(0 0 20px rgba(124,92,255,.7)); transform: translateY(-1px); }
.site-footer .brand__mark { height: 32px; }
.brand b {
  font-family: var(--display); font-variation-settings: "wdth" 108;
  font-weight: 700; font-size: 1.1875rem; letter-spacing: .1em; text-transform: uppercase;
}
.brand span {
  font-family: var(--mono); font-size: .6rem; letter-spacing: .22em;
  text-transform: uppercase; color: rgba(192,196,206,.55);
  display: block; margin-top: 2px;
}

.nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav ul a {
  display: block; font-size: .9375rem; font-weight: 500; color: var(--muted);
  padding: .5rem .85rem; border-radius: 7px; position: relative;
  transition: color .18s var(--ease), background-color .18s var(--ease);
}
.nav ul a:hover { color: var(--ink); background: rgba(255,255,255,.05); }
.nav ul a[aria-current="page"] { color: var(--ink); background: var(--wash); }

.nav__end { display: flex; align-items: center; gap: .75rem; }

.burger {
  display: none; background: rgba(255,255,255,.02); border: 1px solid var(--hair-2);
  border-radius: 9px; padding: .6rem .72rem; cursor: pointer; color: var(--ink);
}
.burger i { display: block; width: 19px; height: 1.5px; background: currentColor; transition: transform .26s var(--ease), opacity .18s var(--ease); }
.burger i + i { margin-top: 5px; }
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 1000px) {
  .burger { display: block; }
  .nav__panel {
    position: fixed; inset: 74px 0 auto 0; display: none;
    flex-direction: column; gap: 1rem;
    background: rgba(11,9,20,.98); backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--hair);
    padding: 1.25rem var(--gut) 1.75rem;
    max-height: calc(100dvh - 74px); overflow-y: auto;
  }
  .nav__panel.open { display: flex; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav ul a { padding: .9rem .5rem; font-size: 1.0625rem; border-bottom: 1px solid var(--hair); border-radius: 0; }
  .nav__end { flex-direction: column; align-items: stretch; margin-top: .5rem; }
  .nav__end .btn { width: 100%; }
}
@media (min-width: 1001px) { .nav__panel { display: flex !important; align-items: center; gap: 1.75rem; } }

/* -----------------------------------------------------------------------------
   7  HERO
   -------------------------------------------------------------------------- */
.hero { padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6.5rem); position: relative; }
.hero--split .shell {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr);
  gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 940px) { .hero--split .shell { grid-template-columns: 1fr; gap: 3rem; } }

.hero h1 { margin-bottom: 1.35rem; }
.hero__sub { font-size: var(--t-lead); color: var(--muted); line-height: 1.55; max-width: 44ch; margin-bottom: 2.25rem; }
.hero__sig {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--hair);
  font-family: var(--mono); font-size: var(--t-xs); letter-spacing: .14em;
  text-transform: uppercase; color: rgba(192,196,206,.6);
}

/* -----------------------------------------------------------------------------
   8  FIGURES: prism, graph, scanline
   -------------------------------------------------------------------------- */
.fig { width: 100%; overflow: visible; }
.fig text { font-family: var(--mono); }
.fig__label { font-size: 12px; fill: var(--muted); }
.fig__cap { font-size: 10px; fill: rgba(192,196,206,.55); letter-spacing: .14em; text-transform: uppercase; }
.fig__body { fill: rgba(124,92,255,.06); stroke: var(--accent); stroke-width: 1.3; }
.fig__in { stroke: var(--ink); stroke-width: 1.9; fill: none; opacity: .92; }
.fig__ray { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.fig__node { fill: var(--accent-soft); }

/* attack graph */
.graph__edge { stroke: rgba(124,92,255,.28); stroke-width: 1.2; fill: none; }
.graph__edge.hot { stroke: var(--accent); stroke-width: 2; }
.graph__dot { fill: rgba(244,246,250,.28); }
.graph__dot.hot { fill: var(--accent-soft); }
.graph__ring { fill: none; stroke: var(--accent); stroke-width: 1; opacity: .5; }

/* readout panel */
.readout { border: 1px solid var(--hair); border-radius: var(--r); background: rgba(11,13,22,.72); backdrop-filter: blur(8px); overflow: hidden; }
.readout__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.25rem; border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,.025);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.readout__body { padding: clamp(1.1rem, 2.4vw, 1.75rem); }
.row {
  display: grid; grid-template-columns: 72px 1fr; gap: 1.25rem;
  padding: .85rem 0;
}
.row + .row { border-top: 1px solid var(--hair); }
.row__t { font-family: var(--mono); font-size: .78rem; color: var(--accent-soft); padding-top: .18rem; }
.row__a { font-size: .9375rem; color: var(--ink); font-weight: 500; margin: 0 0 .18rem; }
.row__b { font-family: var(--mono); font-size: .74rem; color: rgba(192,196,206,.7); margin: 0; word-break: break-word; }

/* -----------------------------------------------------------------------------
   9  GRIDS AND CARDS
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1rem, 1.8vw, 1.5rem); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g-split { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem,5vw,4.5rem); align-items: start; }
@media (max-width: 1040px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 900px)  { .g3, .g2, .g-split { grid-template-columns: 1fr; } }
@media (max-width: 560px)  { .g4 { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; height: 100%;
  padding: clamp(1.5rem, 2.6vw, 2.125rem);
  border: 1px solid var(--hair); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,0) 55%), var(--card);
  position: relative; overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(124,92,255,.14), transparent 70%);
  transition: opacity .35s var(--ease);
}
.card:hover { border-color: rgba(124,92,255,.4); transform: translateY(-4px); }
.card:hover::after { opacity: 1; }
.card > * { position: relative; z-index: 1; }
.card h3, .card h4 { margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: var(--t-sm); line-height: 1.62; }
.card .btn, .card .arrow { margin-top: auto; }
.card .arrow { padding-top: 1.35rem; }
.card--lit { border-color: rgba(124,92,255,.55); background: linear-gradient(180deg, rgba(124,92,255,.09), rgba(255,255,255,0) 60%), var(--card-2); }
.card--still:hover { transform: none; }

.card ul { list-style: none; margin: .25rem 0 1.5rem; padding: 0; }
.card li {
  position: relative; padding-left: 1.35rem; margin-bottom: .55rem;
  font-size: var(--t-sm); color: var(--muted); line-height: 1.55;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: .62em;
  width: 7px; height: 1px; background: var(--accent);
}

/* -----------------------------------------------------------------------------
   10  STAT BAND
   -------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--hair); }
.stat { padding: clamp(1.75rem,3vw,2.5rem) clamp(1rem,2.2vw,2rem); }
.stat + .stat { border-left: 1px solid var(--hair); }
.stat b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.9rem,4vw,2.85rem); line-height: 1; letter-spacing: -.045em;
  margin-bottom: .6rem;
}
.stat b i { font-style: normal; color: var(--accent-soft); }
.stat p { font-size: var(--t-sm); color: var(--muted); line-height: 1.5; margin: 0; }
.stat small {
  display: block; margin-top: .7rem; font-family: var(--mono);
  font-size: .68rem; letter-spacing: .06em; color: rgba(192,196,206,.5);
}
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--hair); }
}

/* -----------------------------------------------------------------------------
   11  NUMBERED WORKFLOW
   The numbering is real: the sequence is the operating procedure.
   -------------------------------------------------------------------------- */
.flow { counter-reset: step; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; }
.flow--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.flow--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1040px) { .flow--4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px)  { .flow--4, .flow--2 { grid-template-columns: 1fr; } }

.step {
  counter-increment: step;
  background: var(--card); padding: clamp(1.4rem, 2.4vw, 1.9rem);
  transition: background-color .3s var(--ease);
  position: relative;
}
.step:hover { background: var(--card-2); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .12em;
  color: var(--accent-soft); display: block; margin-bottom: .9rem;
}
.step h4 { margin-bottom: .5rem; }
.step p { font-size: var(--t-sm); color: var(--muted); margin: 0; line-height: 1.58; }

/* -----------------------------------------------------------------------------
   12  SPEC TABLE
   -------------------------------------------------------------------------- */
.spec { border: 1px solid var(--hair); border-radius: var(--r); background: rgba(11,13,22,.7); backdrop-filter: blur(6px); overflow: hidden; }
.spec > div { display: grid; grid-template-columns: 190px 1fr; gap: 1.5rem; padding: 1.05rem 1.4rem; }
.spec > div + div { border-top: 1px solid var(--hair); }
.spec dt, .spec .k {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .11em;
  text-transform: uppercase; color: rgba(192,196,206,.68); margin: 0;
}
.spec dd, .spec .v { font-size: var(--t-sm); color: var(--ink); margin: 0; line-height: 1.55; }
@media (max-width: 660px) { .spec > div { grid-template-columns: 1fr; gap: .4rem; } }

/* -----------------------------------------------------------------------------
   13  EVIDENCE / MAP TABLE
   -------------------------------------------------------------------------- */
.tbl { border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; background: rgba(11,13,22,.7); }
.tbl__scroll { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; min-width: 680px; }
.tbl th {
  text-align: left; font-family: var(--mono); font-weight: 500;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(192,196,206,.7); padding: 1rem 1.4rem;
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--hair); white-space: nowrap;
}
.tbl td { padding: 1.05rem 1.4rem; border-bottom: 1px solid var(--hair); font-size: var(--t-sm); color: var(--muted); vertical-align: top; line-height: 1.55; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background-color .2s var(--ease); }
.tbl tbody tr:hover { background: var(--wash); }
.tbl td:first-child { color: var(--ink); font-weight: 500; }
.tbl__note { padding: 1.15rem 1.4rem; background: rgba(255,255,255,.03); border-top: 1px solid var(--hair); font-size: var(--t-sm); color: var(--muted); margin: 0; }

/* -----------------------------------------------------------------------------
   14  CATALOG LIST
   -------------------------------------------------------------------------- */
.list { border-top: 1px solid var(--hair); }
.list > * {
  display: grid; grid-template-columns: 44px minmax(0,1fr) auto;
  gap: clamp(.75rem,2vw,1.75rem); align-items: baseline;
  padding: 1.15rem .5rem; border-bottom: 1px solid var(--hair);
  transition: background-color .2s var(--ease), padding-left .2s var(--ease);
}
.list > *:hover { background: var(--wash); padding-left: 1rem; }
.list i { font-style: normal; font-family: var(--mono); font-size: .74rem; color: rgba(192,196,206,.45); }
.list h4 { margin: 0; }
.list p { margin: .3rem 0 0; font-size: var(--t-sm); color: var(--muted); grid-column: 2; }
@media (max-width: 700px) {
  .list > * { grid-template-columns: 34px 1fr; row-gap: .5rem; }
  .list > * > .tag { grid-column: 2; justify-self: start; }
}

/* -----------------------------------------------------------------------------
   15  MOTTO BAND
   -------------------------------------------------------------------------- */
.motto {
  background: var(--motto); min-height: 20vh; position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding-block: clamp(3rem,6vw,4.75rem); overflow: hidden;
}
.motto::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 140% at 50% 50%, rgba(124,92,255,.16), transparent 70%);
}
.motto p {
  position: relative; margin: 0;
  font-family: var(--display); font-variation-settings: "wdth" 104;
  font-size: clamp(1rem, 2.4vw, 1.65rem); font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink); line-height: 1.55;
}

/* -----------------------------------------------------------------------------
   16  FORMS
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }
.f { display: grid; gap: .45rem; }
.f label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.f input, .f select, .f textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: rgba(8,10,18,.7); border: 1px solid var(--hair-2);
  border-radius: var(--r-sm); padding: .85rem .95rem; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.f textarea { min-height: 130px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus {
  border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(124,92,255,.18);
}
.f input::placeholder, .f textarea::placeholder { color: rgba(192,196,206,.4); }
.f select {
  appearance: none; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23C0C4CE' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.f2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.15rem; }
@media (max-width: 620px) { .f2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: .75rem; align-items: flex-start; font-size: var(--t-xs); color: var(--muted); line-height: 1.5; }
.check input { width: 18px; height: 18px; flex: none; margin-top: .15rem; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; opacity: 0; }
.cf-turnstile { margin: .25rem 0; min-height: 65px; }

/* -----------------------------------------------------------------------------
   16b  ARTICLE BODY  ·  styling for markdown posts and legal pages
   -------------------------------------------------------------------------- */
.article { max-width: var(--prose); }
.article > *:first-child { margin-top: 0; }
.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 2.75rem 0 .85rem; padding-top: 2.25rem;
  border-top: 1px solid var(--hair);
}
.article h3 { font-size: 1.25rem; margin: 2rem 0 .7rem; color: var(--accent-soft); }
.article h4 { margin: 1.6rem 0 .5rem; }
.article p { color: var(--muted); margin-bottom: 1.25em; }
.article strong { color: var(--ink); font-weight: 600; }
.article ul, .article ol { color: var(--muted); padding-left: 0; margin: 0 0 1.5rem; list-style: none; }
.article ol { counter-reset: n; }
.article li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; line-height: 1.6; }
.article ul > li::before {
  content: ""; position: absolute; left: 0; top: .68em;
  width: 8px; height: 1px; background: var(--accent);
}
.article ol > li { counter-increment: n; }
.article ol > li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: .1em;
  font-family: var(--mono); font-size: .72rem; color: var(--accent-soft);
}
.article blockquote {
  margin: 1.75rem 0; padding: .25rem 0 .25rem 1.5rem;
  border-left: 2px solid var(--accent); color: var(--ink); font-size: var(--t-lead); line-height: 1.5;
}
.article code {
  font-family: var(--mono); font-size: .85em; color: var(--accent-soft);
  background: var(--wash); border: 1px solid rgba(124,92,255,.2);
  border-radius: 4px; padding: .12em .4em;
}
.article pre {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-sm);
  padding: 1.15rem 1.35rem; overflow-x: auto; margin: 1.75rem 0;
}
.article pre code { background: none; border: 0; padding: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }
.article hr { border: 0; border-top: 1px solid var(--hair); margin: 2.75rem 0; }
.article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(167,139,250,.4); }
.article a:hover { text-decoration-color: var(--ink); }
.article table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: var(--t-sm); }
.article th, .article td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--hair); color: var(--muted); }
.article th { color: var(--ink); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }

/* -----------------------------------------------------------------------------
   16c  MEDIA  ·  figures, images, video
   -------------------------------------------------------------------------- */
.figure { margin: 2.25rem 0; }
.figure img, .figure video {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--hair); border-radius: var(--r);
  background: var(--card);
}
.figure figcaption {
  margin-top: .85rem; font-family: var(--mono); font-size: .75rem;
  letter-spacing: .02em; color: rgba(192,196,206,.68); line-height: 1.5;
}
.figure--wide { margin-inline: calc(50% - 50vw); max-width: 100vw; padding-inline: var(--gut); }
.figure--wide figcaption { max-width: var(--prose); margin-inline: auto; }
.figure--video video { aspect-ratio: 16 / 9; object-fit: cover; }

/* Framed player for a product demo. The bar reads as a capture window
   rather than a marketing embed. */
.player { border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; background: var(--card); }
.player__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1.2rem; border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,.025);
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.player video { width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; background: #05060B; }
.player__cap { padding: .9rem 1.2rem; border-top: 1px solid var(--hair); margin: 0; font-size: var(--t-xs); color: rgba(192,196,206,.68); }

/* -----------------------------------------------------------------------------
   17  FOOTER
   -------------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--hair); padding-block: clamp(3.5rem,5.5vw,5rem) 2rem; background: rgba(8,10,18,.7); }
.foot { display: grid; grid-template-columns: 1.7fr repeat(3,1fr); gap: clamp(2rem,4vw,3rem); }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }
.foot p { font-size: var(--t-sm); color: var(--muted); max-width: 42ch; margin: 1.1rem 0 0; line-height: 1.6; }
.foot h4 {
  font-family: var(--mono); font-size: .66rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: rgba(192,196,206,.6); margin: 0 0 1.1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.foot ul a { font-size: .9375rem; color: var(--muted); }
.foot ul a:hover { color: var(--ink); }
.foot__note { margin: clamp(2.5rem,4vw,3.5rem) 0 0; padding-top: 1.75rem; border-top: 1px solid var(--hair); font-size: .78rem; line-height: 1.65; color: rgba(192,196,206,.55); max-width: 92ch; }
.foot__base {
  margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .85rem 2rem;
  justify-content: space-between; font-size: var(--t-xs); color: rgba(192,196,206,.6);
}

/* -----------------------------------------------------------------------------
   18  MOTION
   -------------------------------------------------------------------------- */
[data-in] { opacity: 0; transform: translateY(20px); }
.js [data-in] { transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-in].in { opacity: 1; transform: none; }
.js [data-stagger] > * { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
[data-stagger].in > * { opacity: 1; transform: none; }
[data-stagger].in > *:nth-child(2) { transition-delay: .07s; }
[data-stagger].in > *:nth-child(3) { transition-delay: .14s; }
[data-stagger].in > *:nth-child(4) { transition-delay: .21s; }
[data-stagger].in > *:nth-child(5) { transition-delay: .28s; }
[data-stagger].in > *:nth-child(6) { transition-delay: .35s; }
[data-stagger].in > *:nth-child(7) { transition-delay: .42s; }
[data-stagger].in > *:nth-child(8) { transition-delay: .49s; }

.js .fig__ray, .js .fig__in, .js .graph__edge {
  stroke-dasharray: var(--len,700); stroke-dashoffset: var(--len,700);
  animation: draw 1.3s var(--ease) forwards;
}
.js .fig__in { animation-delay: .2s; }
.js .fig__ray:nth-of-type(1) { animation-delay: .95s; }
.js .fig__ray:nth-of-type(2) { animation-delay: 1.07s; }
.js .fig__ray:nth-of-type(3) { animation-delay: 1.19s; }
.js .fig__ray:nth-of-type(4) { animation-delay: 1.31s; }
.js .fig__ray:nth-of-type(5) { animation-delay: 1.43s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.js .fig__label, .js .fig__node, .js .fig__cap { opacity: 0; animation: fade .7s var(--ease) forwards; }
.js .fig__cap { animation-delay: .55s; }
.js [data-r="1"] { animation-delay: 1.65s; }
.js [data-r="2"] { animation-delay: 1.77s; }
.js [data-r="3"] { animation-delay: 1.89s; }
.js [data-r="4"] { animation-delay: 2.01s; }
.js [data-r="5"] { animation-delay: 2.13s; }
@keyframes fade { to { opacity: 1; } }

.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%; z-index: 150; pointer-events: none;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-in], .js [data-stagger] > * { opacity: 1 !important; transform: none !important; }
  .js .fig__ray, .js .fig__in, .js .graph__edge { stroke-dashoffset: 0 !important; }
  .js .fig__label, .js .fig__node, .js .fig__cap { opacity: 1 !important; }
  .btn:hover, .card:hover { transform: none; }
  .progress { display: none; }
}

/* -----------------------------------------------------------------------------
   19  PRINT
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .progress, .btn, .form { display: none !important; }
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
  .sec, .hero, .motto { padding-block: 1rem; }
  .motto::before { display: none; }
  h1,h2,h3,h4,.motto p { color: #000 !important; }
  p, td, li, dd { color: #222 !important; }
  .card, .spec, .tbl, .readout { border-color: #ccc; background: #fff; }
}
