/* ============================================================
   Operator family design system — v1 (2026-07-01)
   Only the :root token block differs per site.
   Zero web fonts, zero external requests, zero JavaScript.
   ============================================================ */

:root {
  /* cyber-risk-services.com — refined graphite + muted bronze (v2 2026-07-30)
     accent reserved for CTAs / links / numbers / one hero word; small labels go neutral */
  --bg: #0f1216;
  --bg-glow: rgba(201, 148, 92, 0.06);
  --panel: #171b22;
  --panel-2: #1b212a;
  --line: #272e39;
  --ink: #eef1f5;
  --dim: #b0b8c3;          /* raised from #97a1ae — legible secondary body text */
  --faint: #7b8592;
  --label: #8a94a2;        /* quiet neutral for small uppercase kickers/labels */
  --accent: #cd9256;       /* muted bronze — less "safety orange", more refined */
  --accent-hover: #e0a870;
  --accent-soft: rgba(205, 146, 86, 0.10);
  --accent-line: rgba(205, 146, 86, 0.34);
  --accent-ink: #1f1408;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5; -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 75% 55% at 50% -12%, var(--bg-glow), transparent 62%);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code { font-family: Consolas, ui-monospace, Menlo, monospace; font-size: 0.92em; color: var(--dim); }

/* ---- viewport shell: header / main / footer, anti-scroll ---- */
.shell {
  position: relative; z-index: 1;
  min-height: 100dvh;
  display: flex; flex-direction: column;
}
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
main.wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 14px; padding-bottom: 14px; }

/* ---- header ---- */
header.site { border-bottom: 1px solid var(--line); padding: 14px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; justify-content: center;
  height: 74px; padding: 8px 16px; gap: 0;
  background: #fff; border: 1px solid #e6e8ec; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.32);
  font-size: 0; line-height: 0;
  transition: box-shadow .15s ease, transform .15s ease;
}
.wordmark:hover { box-shadow: 0 6px 20px rgba(0,0,0,.45); transform: translateY(-1px); }
.wordmark svg { display: none; }
.wordmark::before {
  content: ""; display: block; height: 58px; aspect-ratio: 1.51 / 1;
  background: url('/crs-logo.png?v=1') center/contain no-repeat;
}
@media (max-width: 900px) {
  .wordmark { height: 60px; padding: 7px 13px; }
  .wordmark::before { height: 46px; }
}
.wordmark .suffix { color: var(--accent); font-weight: 600; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
nav.top { display: flex; align-items: center; gap: 22px; }
nav.top a { color: var(--dim); font-size: 13.5px; font-weight: 600; }
nav.top a:hover { color: var(--ink); text-decoration: none; }
nav.top a.btn { color: var(--accent-ink); }

/* ---- hero ---- */
.eyebrow { color: var(--label); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; margin: 0 0 12px; }
h1.hero {
  font-size: clamp(30px, 4vw, 46px); line-height: 1.06; letter-spacing: -1.4px;
  font-weight: 800; margin: 0 0 14px;
  text-wrap: balance;
}
h1.hero .a { color: var(--accent); }
p.lede { font-size: 16.5px; color: var(--dim); max-width: 560px; margin: 0 0 22px; line-height: 1.55; }
p.lede strong { color: var(--ink); font-weight: 600; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }

/* ---- buttons ---- */
.ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 6px;
  font-weight: 700; font-size: 14px; line-height: 1; transition: all 0.15s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--panel); text-decoration: none; }
.btn-note { color: var(--faint); font-size: 12px; }

/* ---- pure-CSS tabs (radio hack, no JS) ---- */
.tabs { position: relative; }
.tabs > input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.tabbar { display: flex; gap: 6px; margin-bottom: 10px; }
.tabbar label {
  flex: 1; text-align: center; cursor: pointer; user-select: none;
  padding: 9px 10px; border-radius: 6px 6px 0 0; font-size: 12.5px; font-weight: 700;
  color: var(--dim); background: var(--panel); border: 1px solid var(--line); border-bottom: none;
}
.tabbar label:hover { color: var(--ink); }
.tabs .tp { display: none; }
#t1:checked ~ .tabbar label[for="t1"],
#t2:checked ~ .tabbar label[for="t2"],
#t3:checked ~ .tabbar label[for="t3"] {
  color: var(--accent); background: var(--panel-2); border-color: var(--accent-line);
}
#t1:checked ~ .tabpanels .tp1,
#t2:checked ~ .tabpanels .tp2,
#t3:checked ~ .tabpanels .tp3 { display: block; }
.tabpanels {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--accent-line); border-radius: 0 8px 8px 8px;
  padding: 22px 24px; min-height: 232px;
}
.tp h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink); letter-spacing: -0.3px; }
.tp p { margin: 0 0 10px; font-size: 13.5px; color: var(--dim); line-height: 1.6; }
.tp .tag { display: inline-block; margin-bottom: 10px; padding: 3px 9px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase; }
.tp ul { margin: 0; padding-left: 18px; }
.tp li { font-size: 13px; color: var(--dim); margin: 5px 0; }
.tp li strong { color: var(--ink); font-weight: 600; }

/* ---- chip strip ---- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 14px; font-size: 12px; color: var(--dim); font-weight: 600;
}
.chip b { color: var(--ink); font-weight: 700; }
.chip .mono { font-family: Consolas, ui-monospace, monospace; font-size: 11px; color: var(--accent); }
.chip.hot { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); }
a.chip:hover { border-color: var(--accent-line); text-decoration: none; }

/* ---- proof / 3-card row ---- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px;
}
.card:hover { border-color: var(--accent-line); }
.card .k { color: var(--label); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 7px; }
.card h3 { margin: 0 0 6px; font-size: 15px; color: var(--ink); letter-spacing: -0.2px; }
.card p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.card .big { color: var(--accent); font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 6px; letter-spacing: -0.5px; }
a.card { display: block; color: inherit; }
a.card:hover { text-decoration: none; }

/* ---- 4-quadrant KPI ---- */
.kpi4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 10px; }
.kpi .n { color: var(--accent); font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.5px; }
.kpi .l { color: var(--dim); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.6px; margin-top: 7px; }

/* ---- testimonial row ---- */
.testimonial {
  border-left: 3px solid var(--accent); background: var(--panel);
  border-radius: 0 8px 8px 0; padding: 14px 20px; font-size: 13.5px; color: var(--dim);
}
.testimonial .who { color: var(--faint); font-size: 11.5px; margin-top: 6px; }

/* ---- section rhythm inside single viewport ---- */
.band { margin-top: 18px; }
.band-label { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 0 10px; }

/* ---- prose pages (about / contact) ---- */
.prose { max-width: 640px; }
.prose h2 { font-size: 15px; color: var(--label); letter-spacing: 1.5px; text-transform: uppercase; margin: 26px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14.5px; color: var(--dim); line-height: 1.65; margin: 0 0 12px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.facts { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px 24px; margin: 0; }
.facts dt { color: var(--label); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700; margin-top: 12px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { color: var(--ink); margin: 3px 0 0; font-size: 13.5px; }

/* ---- security posture: compact 2-col grid ---- */
.posture-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 12px; margin-top: 18px;
}
.posture {
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px;
}
.posture h3 {
  margin: 0 0 5px; font-size: 11px; color: var(--label);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}
.posture p { margin: 0; font-size: 12.5px; color: var(--dim); line-height: 1.55; }
.posture p strong { color: var(--ink); font-weight: 600; }
.posture code {
  display: inline-block; margin-top: 4px; font-size: 10.5px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 2px 6px; color: var(--accent); word-break: break-all;
}

/* ---- case index: compact tile grid (low-scroll) ---- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 12px; margin-top: 16px;
}
.case-tile {
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--panel-2) 0%, var(--panel) 100%);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 13px 15px; color: inherit; transition: border-color 0.15s;
}
.case-tile:hover { border-color: var(--accent-line); text-decoration: none; }
.case-tile .k {
  color: var(--label); font-size: 9.5px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 5px;
}
.case-tile h3 {
  margin: 0; font-size: 14px; line-height: 1.28;
  color: var(--ink); letter-spacing: -0.2px; font-weight: 700;
}

/* ---- case-file article extras ---- */
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; }
.prose li { font-size: 14px; color: var(--dim); line-height: 1.6; margin: 5px 0; }
.prose li strong, .prose ol strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent); background: var(--panel);
  border-radius: 0 8px 8px 0; padding: 12px 18px; margin: 18px 0;
}
.prose blockquote p { margin: 0; color: var(--ink); font-size: 14.5px; font-style: italic; }
.prose pre {
  background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.55;
  font-family: Consolas, ui-monospace, Menlo, monospace; color: var(--dim);
}
.prose hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
.prose h1.hero { line-height: 1.15; }
.herostat {
  display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px;
  background: var(--panel); border: 1px solid var(--accent-line); border-radius: 8px; padding: 14px 18px;
}
.herostat .v { color: var(--accent); font-size: 34px; font-weight: 800; letter-spacing: -1px; line-height: 1; white-space: nowrap; }
.herostat .l { color: var(--dim); font-size: 12.5px; }

/* ---- footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 16px 0; }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--faint); }
footer.site a { color: var(--dim); margin-left: 16px; }
footer.site a:hover { color: var(--accent); }

/* ---- responsive: mobile is allowed to scroll ---- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .cards3 { grid-template-columns: 1fr; }
  .kpi4 { grid-template-columns: repeat(2, 1fr); }
  main.wrap { justify-content: flex-start; padding-top: 26px; }
  h1.hero { font-size: 32px; }
  nav.top a:not(.btn) { display: none; }
  .tabpanels { min-height: 0; }
}
