/* ============================================================
   PRIMENESS — CAPABILITIES STATEMENT
   Dark / volt-green document. Looks like a premium web page on
   screen and prints to a clean edge-to-edge PDF (US Letter).
   ============================================================ */

:root {
  --bg:        #0A0A0B;
  --bg-1:      #0E0E10;
  --bg-2:      #131316;
  --volt:      #BFFF00;
  --volt-700:  #9ed000;
  --white:     #FFFFFF;
  --ink:       #f4f4f5;
  --muted:     #9a9aa2;
  --faint:     #6b6b73;
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.05);
  --volt-soft: rgba(191,255,0,.12);
  --volt-glow: rgba(191,255,0,.45);
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.caps-doc {
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(191,255,0,.05), transparent 70%),
    var(--bg);
  color: var(--ink); font-family: var(--font-body);
  -webkit-font-smoothing: antialiased; line-height: 1.5;
  padding: 92px 18px 60px; overflow-x: clip; overflow-wrap: break-word;
}
svg { display: block; }
a { color: inherit; text-decoration: none; }   /* kill default link underline (was showing purple on the visited brand link) */
::selection { background: var(--volt); color: #000; }

/* Remove the browser's blue focus/tap highlight; use an on-theme volt ring for keyboard nav only */
* { -webkit-tap-highlight-color: transparent; }
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
em { font-style: normal; color: var(--volt); }

/* ---------- Toolbar (screen only) ---------- */
.toolbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  padding-top: max(14px, env(safe-area-inset-top));
  background: rgba(10,10,11,.82); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.tb-title { font: 500 12px/1 var(--font-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); }
.tb-back { font: 500 13px/1 var(--font-mono); color: var(--muted); text-decoration: none; transition: color .2s; }
.tb-back:hover { color: var(--volt); }
.tb-dl {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; touch-action: manipulation;
  background: var(--volt); color: #07090A; border: none; border-radius: 100px;
  padding: 11px 20px; font: 600 14px/1 var(--font-display); position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .2s;
}
.tb-dl:hover { box-shadow: 0 8px 30px -8px var(--volt-glow); transform: translateY(-1px); }
.tb-dl svg { width: 16px; height: 16px; }

/* ---------- Document / pages ---------- */
.doc { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.page {
  position: relative; width: min(816px, 100%); min-height: 1056px;
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9);
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
}
.page::before { /* volt top rule */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--volt), transparent 70%); z-index: 3;
}
.page__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .9; }
.page__canvas--foot { opacity: .8; }
.page__content { position: relative; z-index: 2; padding: 30px 60px 44px; display: flex; flex-direction: column; flex: 1; }
.page__veil { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,11,.5), rgba(10,10,11,.85)); }
.page__foot {
  position: relative; z-index: 2; margin-top: auto; padding: 18px 60px;
  border-top: 1px solid var(--line); display: flex; justify-content: space-between;
  font: 500 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}

/* ---------- Shared bits ---------- */
.kicker { font: 600 12px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--volt); display: inline-flex; align-items: center; gap: 10px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; }
.sec-num { display: none; }
.sec-head h2 { font: 600 clamp(22px, 3.4vw, 30px)/1 var(--font-display); letter-spacing: -.01em; color: var(--white); }
.sec-head h2 b { color: var(--volt); font-weight: 600; }
.sec-head:not(:first-child) { margin-top: 48px; }

/* ============================================================
   BOOT SEQUENCE — the document powers up as you flip the pages
   (stage 1 → 4: the rail and ring charge 25% → 100%; on screen
   the tip pulses, in the PDF each page freezes mid-charge)
   ============================================================ */
.boot { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; -webkit-user-select: none; user-select: none; }
.boot__lbl { font: 700 9.5px/1 var(--font-mono); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.boot--online .boot__lbl { color: var(--volt); text-shadow: 0 0 10px var(--volt-glow); }
.boot__rail { position: relative; flex: 1; height: 2px; background: var(--line); }
.boot__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); }
.boot__fill::after { content: ""; position: absolute; right: -3px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--volt-glow); animation: bootBlip 1.6s ease-in-out infinite; }
.boot[data-stage="1"] .boot__fill { width: 20%; }
.boot[data-stage="2"] .boot__fill { width: 40%; }
.boot[data-stage="3"] .boot__fill { width: 60%; }
.boot[data-stage="4"] .boot__fill { width: 80%; }
.boot[data-stage="5"] .boot__fill { width: 100%; }
.boot__gauge { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-items: center; }
.boot__gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.boot__track { fill: none; stroke: var(--line); stroke-width: 3; }
.boot__ring { fill: none; stroke: var(--volt); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--volt-glow)); }
.boot[data-stage="1"] .boot__ring { stroke-dasharray: 20 80; }
.boot[data-stage="2"] .boot__ring { stroke-dasharray: 40 60; }
.boot[data-stage="3"] .boot__ring { stroke-dasharray: 60 40; }
.boot[data-stage="4"] .boot__ring { stroke-dasharray: 80 20; }
.boot[data-stage="5"] .boot__ring { stroke-dasharray: 100 0; }
.boot__gauge b { font: 700 8px/1 var(--font-mono); color: var(--white); }
.boot--online .boot__gauge b { color: var(--volt); }
@keyframes bootBlip { 0%, 100% { box-shadow: 0 0 8px 2px var(--volt-glow); } 50% { box-shadow: 0 0 3px 1px rgba(191, 255, 0, .35); } }

/* Current jumps the gap between pages: exits bottom right, enters top left */
.jump { position: absolute; z-index: 3; height: 2px; width: 54px; background: var(--volt); box-shadow: 0 0 8px var(--volt-glow); pointer-events: none; }
.jump::after { content: ""; position: absolute; top: 50%; transform: translate(0, -50%); width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px var(--volt-glow); }
.jump--out { right: 0; bottom: 44px; }
.jump--out::after { right: -2px; }
.jump--in { left: 0; top: 44px; }
.jump--in::after { left: -2px; }

/* ============================================================
   PAGE 1 — COVER
   ============================================================ */
.page--cover .page__content { justify-content: flex-start; padding-top: 26px; }
.cv-head { display: flex; align-items: flex-start; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__mark { color: var(--volt); filter: drop-shadow(0 0 10px var(--volt-glow)); }
.brand__name { font: 700 20px/1 var(--font-display); letter-spacing: .02em; color: var(--white); }
.brand__sub { font: 500 8.5px/1 var(--font-mono); letter-spacing: .26em; color: var(--muted); margin-top: 5px; }
.brand__text { display: flex; flex-direction: column; }
.cv-doctag { text-align: right; font: 600 11px/1.5 var(--font-mono); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.cv-doctag b { display: block; color: var(--volt); font-weight: 700; }

.cv-hero { margin: 40px 0; }
.cv-title { font: 700 clamp(44px, 8vw, 76px)/.95 var(--font-display); letter-spacing: -.03em; color: var(--white); margin: 22px 0 24px; }
.cv-lead { max-width: 52ch; color: var(--ink); font-size: 16px; line-height: 1.6; }
.cv-lead strong { color: var(--volt); font-weight: 600; }

.cv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 34px; }
.cv-stat { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px; }
.cv-stat b { display: block; font: 700 clamp(26px, 4vw, 36px)/1 var(--font-display); color: var(--volt); }
.cv-stat span { display: block; margin-top: 8px; font: 500 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.cv-contact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.cv-contact div { display: flex; flex-direction: column; gap: 3px; }
.cv-contact .lbl { font: 500 10px/1 var(--font-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.cv-contact .val { font: 600 15px/1.3 var(--font-display); color: var(--white); word-break: break-word; }

/* ============================================================
   PAGE 2 — CORE COMPETENCIES + DIFFERENTIATORS
   ============================================================ */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comp {
  position: relative; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 12px; padding: 17px 20px; overflow: hidden; text-align: center;
}
.comp::after { content: ""; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at top right, var(--volt-soft), transparent 70%); }
.comp__top { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 10px; }
.comp__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 9px; background: var(--bg-1); border: 1px solid var(--line); color: var(--volt); flex: none; }
.comp__icon svg { width: 24px; height: 24px; }
.comp__no { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--faint); }
.comp h3 { font: 600 17px/1.15 var(--font-display); color: var(--white); margin-bottom: 6px; }
.comp p { font-size: 12.5px; color: var(--muted); line-height: 1.45; margin: 0 auto 10px; max-width: 34ch; }
.comp ul { display: grid; gap: 6px; justify-items: start; width: fit-content; margin-inline: auto; text-align: left; }
.comp li { display: flex; align-items: center; gap: 8px; font: 500 12px/1.3 var(--font-mono); color: var(--faint); }
.comp li::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--volt); transform: rotate(45deg); flex: none; }

.diff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.diff { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.diff b { display: block; font: 600 14px/1.2 var(--font-display); color: var(--white); margin-bottom: 6px; }
.diff b i { display: none; }
.diff span { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* ============================================================
   PAGE 3 — CREDENTIALS / MARKETS / BRANDS / CONTACT
   ============================================================ */
.creds-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.creds-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.creds-list .k { font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.creds-list .v { font: 600 15px/1.2 var(--font-display); color: var(--white); text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips span { font: 500 12.5px/1 var(--font-mono); color: var(--ink); border: 1px solid var(--line); border-radius: 100px; padding: 9px 15px; background: var(--bg-2); }

.brands-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.brands-grid span { display: flex; align-items: center; justify-content: center; text-align: center; font: 600 12px/1.1 var(--font-display); letter-spacing: .02em; color: var(--ink); background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 13px 8px; min-height: 46px; }

.online-note { margin-top: auto; padding-top: 34px; font: 700 10px/1 var(--font-mono); letter-spacing: .26em; text-transform: uppercase; color: var(--volt); text-align: center; text-shadow: 0 0 10px var(--volt-glow); -webkit-user-select: none; user-select: none; }
.cta-foot { margin-top: 14px; padding: 30px; border-radius: 14px; background: var(--volt); color: #07090A; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-foot h3 { font: 700 clamp(22px, 3vw, 30px)/1 var(--font-display); letter-spacing: -.01em; }
.cta-foot .cf-contact { text-align: right; font: 600 14px/1.5 var(--font-display); overflow-wrap: anywhere; min-width: 0; max-width: 100%; }
.cta-foot .cf-contact span { display: block; }

/* ---------- Company overview (cover) ---------- */
.overview { margin: 26px 0; }
.overview p { color: var(--ink); font-size: 14.5px; line-height: 1.7; margin-bottom: 12px; max-width: 66ch; }
.overview p:last-child { margin-bottom: 0; }
.overview .lead { font-size: 16.5px; color: var(--white); }
.overview .lead strong { color: var(--volt); font-weight: 600; }

/* ---------- At-a-glance facts (cover) ---------- */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 24px 0 30px; }
.facts > div { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 10px; text-align: center; }
.facts b { display: block; font: 700 clamp(20px, 3vw, 28px)/1 var(--font-display); color: var(--volt); }
.facts span { display: block; margin-top: 7px; font: 500 10px/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.cv-contact { margin-top: auto; }

/* ---------- Past performance ---------- */
.pp-list { display: grid; gap: 12px; }
.pp { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.pp__no { font: 700 22px/1 var(--font-display); color: var(--volt); }
.pp__b h3 { font: 600 16px/1.2 var(--font-display); color: var(--white); margin-bottom: 5px; }
.pp__meta { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 9px; }
.pp__b p:last-child { font-size: 13px; color: var(--muted); line-height: 1.5; }
.pp-note { margin-top: 12px; font: 500 12px/1.4 var(--font-mono); color: var(--faint); }

@media (max-width: 700px) { .facts { grid-template-columns: repeat(2, 1fr); } .pp { grid-template-columns: 1fr; } }

/* ---------- Reveals (screen) ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Reduced motion intentionally not honored — fully animated for everyone. */

/* Non-selectable display headings (contact/reference values stay selectable) */
.kicker,
.cv-title,
.brand__name,
.brand__sub,
.cv-doctag,
.sec-head h2,
.comp h3,
.pp__b h3,
.cta-foot h3,
.facts b,
.cv-stat b {
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
}

/* ---------- Responsive (screen, small) ---------- */
@media (max-width: 700px) {
  .page__content, .page__foot { padding-left: 28px; padding-right: 28px; }
  .page__foot { flex-wrap: wrap; gap: 6px 14px; }
  .cv-stats { grid-template-columns: repeat(2, 1fr); }
  .comp-grid, .diff-grid, .creds-list { grid-template-columns: 1fr; }
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .cv-contact { grid-template-columns: 1fr; }
  .page { min-height: 0; }
}
@media (max-width: 420px) { .brands-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   PRINT  →  clean edge-to-edge US Letter PDF
   ============================================================ */
@media print {
  @page { size: Letter portrait; margin: 0; }
  html, body.caps-doc { background: var(--bg) !important; padding: 0 !important; margin: 0 !important; }
  .toolbar { display: none !important; }
  .doc { gap: 0; }
  .page {
    width: 8.5in; min-height: 11in; margin: 0; border: 0; border-radius: 0;
    box-shadow: none; break-after: page; page-break-after: always;
  }
  .page:last-child { break-after: auto; page-break-after: auto; }
  .page__canvas { display: none !important; }
  .page__content { padding: 0.55in 0.6in; }
  .page__foot { padding: 0.18in 0.6in; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  /* Force the dark theme + neon to actually render in the PDF */
  *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
