/* =========================================================
   Root View Cyber Security and Software Services

   Two themes, one stylesheet. Switch by changing the <body> class:
       <body>                     -> light theme (grey paper)
       <body class="theme-dark">  -> dark theme (near-black)

   Everything below the token blocks is theme-agnostic. If you find
   yourself hardcoding a hex outside the token blocks, add a token instead.
   ========================================================= */

@font-face { font-family:'Plex Sans'; src:url('/assets/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Plex Sans'; src:url('/assets/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Plex Cond'; src:url('/assets/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2') format('woff2'); font-weight:600; font-display:swap; }
@font-face { font-family:'Plex Cond'; src:url('/assets/fonts/ibm-plex-sans-condensed-latin-700-normal.woff2') format('woff2'); font-weight:700; font-display:swap; }
@font-face { font-family:'Plex Mono'; src:url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2'); font-weight:400; font-display:swap; }
@font-face { font-family:'Plex Mono'; src:url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight:500; font-display:swap; }

/* ---------- brand constants: identical in both themes ---------- */
:root {
  --brand-ink:    #0F172A;  /* the slate in the logo tile */
  --brand-accent: #E8A33D;  /* the marigold in the logo   */

  --f-display: 'Plex Cond', 'IBM Plex Sans Condensed', system-ui, sans-serif;
  --f-body:    'Plex Sans', 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono:    'Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  --shell: 1120px;
  --gap:   clamp(56px, 8vw, 104px);
}

/* ---------- LIGHT THEME ---------- */
:root {
  --paper:      #F4F5F6;   /* page background — cool grey, not cream */
  --surface:    #FFFFFF;   /* cards, form */
  --text:       #0F172A;
  --text-soft:  #3B4655;
  --text-muted: #5C6773;
  --line:       #DDE2E7;   /* decorative rules and card edges */
  --control:    #6B7480;   /* interactive borders — needs 3:1 (WCAG 1.4.11) */

  --band:       #0F172A;   /* anchor bands: darker than the page */
  --band-text:  #FFFFFF;
  --band-body:  #B9C4D2;
  --band-line:  #24334D;

  --footer-bg:   #0A1120;
  --footer-text: #93A2B8;
  --footer-dim:  #64748B;

  --btn-bg:     #0F172A;
  --btn-text:   #FFFFFF;
  --btn-hover:  #1B2740;

  --accent:      #E8A33D;
  --accent-text: #8A5A0B;  /* darkened so accent text passes contrast on light */

  --sev-bg:     #FBE9E7;
  --sev-text:   #9B2C1E;

  --shadow:     0 18px 40px -30px rgba(15, 23, 42, .55);
}

/* ---------- DARK THEME ---------- */
.theme-dark {
  --paper:      #0A0E17;   /* near-black with a slate cast, not pure #000 */
  --surface:    #131A28;   /* cards, form, tinted bands */
  --text:       #EDF1F6;
  --text-soft:  #C3CDDA;
  --text-muted: #8D9BAE;
  --line:       #232D3F;   /* decorative rules and card edges */
  --control:    #6B7A94;   /* interactive borders — needs 3:1 (WCAG 1.4.11) */

  --band:       #0F1622;   /* anchor bands: a step up from paper, below surface */
  --band-text:  #FFFFFF;
  --band-body:  #B3BFCF;
  --band-line:  #2C3849;

  --footer-bg:   #060910;
  --footer-text: #8D9BAE;
  --footer-dim:  #5A6779;

  --btn-bg:     #E8A33D;   /* marigold carries the CTA in the dark theme */
  --btn-text:   #0F172A;
  --btn-hover:  #F2B458;

  --accent:      #E8A33D;
  --accent-text: #F0B45E;  /* lightened so accent text passes contrast on dark */

  --sev-bg:     #3A1512;
  --sev-text:   #FF9280;

  --shadow:     0 18px 44px -28px rgba(0, 0, 0, .85);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* sticky header is 72px — keep anchor targets clear of it */
section[id], main[id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--f-mono); font-size: .92em; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: #0F172A; padding: 10px 16px; border-radius: 6px;
  text-decoration: none; font-weight: 600; transition: top .15s;
}
.skip:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--f-body); font-weight: 600; font-size: 17px;
  padding: 13px 24px; border-radius: 8px; border: 1px solid var(--btn-bg);
  background: var(--btn-bg); color: var(--btn-text); text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--control); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); color: var(--text); }
.btn-sm { padding: 9px 16px; font-size: 15px; }

.link { color: var(--accent-text); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand-mark { border-radius: 9px; }
.brand-type { display: flex; flex-direction: column; line-height: 1.1; }
.brand-type b { font-family: var(--f-display); font-size: 19px; letter-spacing: .1em; color: var(--text); }
.brand-type span { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-muted); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { text-decoration: none; font-size: 16px; font-weight: 600; color: var(--text-muted); }
.nav a:hover { color: var(--text); }
.nav a.btn { color: var(--btn-text); }

.nav-toggle { display: none; background: none; border: 1px solid var(--control); border-radius: 8px; width: 44px; height: 40px; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--text); margin-inline: auto; content: '';
}
.nav-toggle-bars::before { transform: translateY(-6px); }
.nav-toggle-bars::after  { transform: translateY(4px); }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 var(--gap); overflow-x: clip; }

/* One-time entrance. The two hero columns travel toward each other and
   settle. Fill mode `both` means they are never visible mid-flight. */
@keyframes hero-enter-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: none; }
}
@keyframes hero-enter-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: none; }
}
.hero-copy { animation: hero-enter-left  .75s cubic-bezier(.22,.61,.36,1) both; }
.specimen  { animation: hero-enter-right .75s cubic-bezier(.22,.61,.36,1) .1s both; }
@media (prefers-reduced-motion: reduce) {
  .hero-copy, .specimen { animation: none; }
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero h1 { font-size: clamp(40px, 5.6vw, 66px); max-width: 15ch; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); margin-top: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { font-size: 15.5px; color: var(--text-muted); margin-top: 22px; }

/* signature element: the specimen finding */
.specimen {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-top: 4px solid var(--accent); border-radius: 4px;
  padding: 26px 26px 20px; box-shadow: var(--shadow);
}
.specimen-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.finding-id { font-family: var(--f-mono); font-size: 14px; color: var(--text-muted); letter-spacing: .04em; }
.sev { font-family: var(--f-mono); font-size: 13px; font-weight: 500; padding: 3px 9px; border-radius: 3px; }
.sev-high { background: var(--sev-bg); color: var(--sev-text); }
.specimen-title { font-size: 23px; margin: 14px 0 18px; max-width: 26ch; }
.specimen-meta { margin: 0; border-top: 1px solid var(--line); }
.specimen-meta > div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specimen-meta dt { font-size: 14px; color: var(--text-muted); }
.specimen-meta dd { margin: 0; font-family: var(--f-mono); font-size: 14.5px; }
.specimen-fix { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--accent); }
.specimen-fix strong { font-size: 13px; letter-spacing: .06em; color: var(--accent-text); }
.specimen-fix p { font-size: 15.5px; margin: 5px 0 0; color: var(--text-soft); }
.specimen figcaption { margin-top: 18px; font-size: 13.5px; color: var(--text-muted); }

/* ---------- bands ---------- */
.band { padding: var(--gap) 0; border-top: 1px solid var(--line); }
.band-tint { background: var(--surface); }
.band-dark { background: var(--band); color: var(--band-body); border-top-color: var(--band); }
.band-dark .section-title, .band-dark h3 { color: var(--band-text); }
.band-dark .section-lede, .band-dark p { color: var(--band-body); }

.section-title { font-size: clamp(28px, 3.4vw, 40px); }
.section-lede { margin-top: 14px; color: var(--text-muted); font-size: 19px; }

/* ---------- services: hairline rows, not a card kit ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 48px; margin-top: 44px; }
.service { padding: 26px 0; border-top: 1px solid var(--line); }
.service h3 { font-size: 21px; }
.service p { margin: 11px 0 0; font-size: 16.5px; color: var(--text-muted); }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; }
.steps li { padding: 26px 26px 26px 0; border-top: 1px solid var(--band-line); }
.step-n { font-family: var(--f-mono); font-size: 14px; color: var(--accent); letter-spacing: .1em; }
.steps h3 { font-size: 22px; margin: 10px 0 8px; }
.steps p { font-size: 16.5px; margin: 0; }

/* ---------- work ---------- */
.work { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 44px; }
.work-item { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 28px; }
.work-item h3 { font-size: 22px; }
.work-client { font-size: 15px; color: var(--accent-text); font-weight: 600; margin: 6px 0 14px; }
.work-item p { font-size: 16.5px; color: var(--text-muted); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; }
.tags li { font-family: var(--f-mono); font-size: 13px; color: var(--text-muted); border: 1px solid var(--line); border-radius: 3px; padding: 3px 9px; }

/* ---------- credentials ---------- */
.creds-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.creds-grid p { color: var(--text-muted); margin-top: 18px; }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); align-items: baseline; }
.cert-name { font-family: var(--f-display); font-size: 19px; color: var(--text); }
.cert-body { font-size: 14.5px; color: var(--text-muted); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-direct { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-direct li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--band-line); font-size: 16.5px; color: var(--band-body); }
.contact-direct span:first-child { color: var(--text-muted); font-size: 15px; }
.contact-direct a { color: var(--accent); text-underline-offset: 3px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 30px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 16px; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--control); border-radius: 6px;
  background: var(--paper); transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* the form sits on its own surface inside a dark band — reassert surface colours */
.form p, .form-note { color: var(--text-muted); }
.form-note { font-size: 14px; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 44px 0; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { display: block; color: #fff; font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; }
.footer-brand span { font-size: 14.5px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-nav a { font-size: 15.5px; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.copyright { font-size: 14px; margin: 0; color: var(--footer-dim); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .creds-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 72px 0 auto; display: none; flex-direction: column;
    align-items: stretch; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 12px 24px 20px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav a.btn { text-align: center; margin-top: 14px; border-bottom: none; }
  .row { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .steps li { padding-right: 0; }
}

/* =========================================================
   Additions: hero strip, frameworks, security intelligence
   ========================================================= */

/* ---------- hero additions ---------- */
.hero-kicker {
  font-family: var(--f-mono); font-size: 14px; letter-spacing: .04em;
  color: var(--accent); margin: 0 0 18px;
}
.hero-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0; margin: 28px 0 0;
}
.hero-strip li {
  font-size: 14px; color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px;
}
.specimen figcaption strong { color: var(--text-soft); }

/* ---------- frameworks ---------- */
.framework-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0 44px; margin-top: 44px;
}
.framework { padding: 24px 0; border-top: 1px solid var(--line); }
.framework h3 { font-size: 19px; color: var(--accent-text); }
.framework p { font-size: 16px; color: var(--text-muted); margin: 10px 0 0; }

.disclaimer {
  margin-top: 48px; padding: 26px 28px;
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent); border-radius: 4px;
}
.disclaimer h3 { font-size: 18px; margin-bottom: 12px; }
.disclaimer p { font-size: 15.5px; color: var(--text-muted); margin: 0 0 10px; max-width: 88ch; }
.disclaimer p:last-child { margin-bottom: 0; }

/* ---------- security intelligence ---------- */
.intel-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.intel-meta {
  font-family: var(--f-mono); font-size: 13.5px; color: var(--text-muted);
  margin: 0; white-space: nowrap;
}

/* live statistics strip */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; margin-top: 40px;
  background: var(--band-line); border: 1px solid var(--band-line); border-radius: 4px;
  overflow: hidden;
}
.stat { background: var(--surface); padding: 22px 20px; display: flex; flex-direction: column; }
.stat-value {
  font-family: var(--f-display); font-size: 34px; font-weight: 700;
  color: var(--accent); line-height: 1.05;
}
.stat-label { font-size: 15px; color: var(--text); margin-top: 8px; font-weight: 600; }
.stat-note { font-size: 13px; color: var(--text-muted); margin-top: 6px; }
.stats-source {
  grid-column: 1 / -1; background: var(--surface); margin: 0;
  padding: 15px 20px; font-size: 13px; color: var(--text-muted); max-width: none;
  border-top: 1px solid var(--band-line);
}

/* CISA KEV panel */
.kev-panel { margin-top: 40px; }
.kev-heading { font-size: 21px; }
.kev-sub { font-size: 15.5px; color: var(--text-muted); margin: 8px 0 20px; max-width: 78ch; }
.kev-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px;
  background: var(--band-line); border: 1px solid var(--band-line); border-radius: 4px;
  overflow: hidden;
}
.kev-row { background: var(--surface); padding: 18px 20px; }
.kev-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kev-cve { font-family: var(--f-mono); font-size: 15px; color: var(--accent); font-weight: 500; }
.kev-cve:hover { text-decoration: underline; text-underline-offset: 3px; }
.kev-vendor { font-size: 14px; color: var(--text-muted); }
.kev-name { font-size: 15.5px; margin: 8px 0 12px; color: var(--text); max-width: none; }
.kev-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kev-added { font-size: 13px; color: var(--text-muted); font-family: var(--f-mono); }

/* prev / next pager, sits with the filters */
.intel-pager { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pager-btn {
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  color: var(--text); background: transparent;
  border: 1px solid var(--control); border-radius: 8px;
  padding: 8px 16px; cursor: pointer;
  transition: border-color .15s, color .15s, opacity .15s;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled { opacity: .38; cursor: not-allowed; }
.pager-status {
  font-family: var(--f-mono); font-size: 13.5px; color: var(--text-muted);
  min-width: 9ch; text-align: center;
}
@media (max-width: 620px) {
  .intel-pager { margin-left: 0; width: 100%; justify-content: space-between; }
}

/* filters */
.intel-filters {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 40px; padding-bottom: 20px; border-bottom: 1px solid var(--band-line);
}
.filter-label {
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-muted);
}
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  color: var(--text-muted); background: transparent;
  border: 1px solid var(--control); border-radius: 999px;
  padding: 8px 15px; cursor: pointer;
  transition: color .15s, border-color .15s, background .15s;
}
.filter:hover { color: var(--text); border-color: var(--text); }
.filter.is-active {
  color: var(--btn-text); background: var(--accent); border-color: var(--accent);
}
.filter-count { font-family: var(--f-mono); font-size: 13px; opacity: .75; margin-left: 3px; }

/* article cards */
.intel-feed {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px; margin-top: 28px;
}
.intel-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 20px; display: flex; flex-direction: column;
  transition: border-color .15s;
}
.intel-card:hover { border-color: var(--accent); }
.intel-card-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.intel-source {
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-text); text-transform: uppercase;
}
.intel-date { font-family: var(--f-mono); font-size: 13px; color: var(--text-muted); }
.intel-title { font-size: 18.5px; line-height: 1.32; margin: 0; }
.intel-title a { text-decoration: none; }
.intel-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.intel-summary {
  font-size: 15.5px; color: var(--text-muted); margin: 10px 0 0; max-width: none;
}
.intel-card-foot {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: auto; padding-top: 16px;
}
.intel-host {
  font-family: var(--f-mono); font-size: 12.5px; color: var(--text-muted);
  margin-left: auto;
}

/* chips */
.chip {
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 3px; white-space: nowrap;
}
.chip-vulnerabilities { background: #3A2A10; color: #F0B45E; }
.chip-threat-intel    { background: #2A1F3A; color: #C4A5F0; }
.chip-breaches        { background: #3A1512; color: #FF9280; }
.chip-research        { background: #102A2E; color: #6FD3D9; }
.chip-cve             { background: transparent; color: var(--text-muted); border: 1px solid var(--control); font-family: var(--f-mono); font-weight: 400; }
.chip-exploited       { background: #3A1512; color: #FF9280; }
.chip-ransomware      { background: #3A2A10; color: #F0B45E; }

/* states */
.intel-loading, .intel-empty, .intel-error {
  grid-column: 1 / -1; font-size: 16px; color: var(--text-muted);
  padding: 32px 0; max-width: none;
}
.intel-error p { margin-bottom: 14px; }
.intel-legal {
  font-size: 13.5px; color: var(--text-muted); margin: 32px 0 0; max-width: 92ch;
}

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: start;
}
.about-grid p { color: var(--text-muted); margin-top: 18px; }
.principles { list-style: none; margin: 0; padding: 0; }
.principles li { padding: 16px 0; border-top: 1px solid var(--line); }
.principles h3 { font-size: 18px; }
.principles p { font-size: 15.5px; color: var(--text-muted); margin: 7px 0 0; }

/* ---------- responsive ---------- */
@media (min-width: 900px) {
  /* four stats, four columns — auto-fit would leave a stray empty cell */
  .stats { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .intel-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .intel-meta { white-space: normal; }
}
@media (max-width: 760px) {
  .intel-feed { grid-template-columns: 1fr; }
  .disclaimer { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .intel-card, .filter, .btn { transition: none; }
}
