:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #0a0d0b;
  --page-bg: #000000;
  --page-fg: #ffffff;
  --muted-fg: #9aa09d;
  --soft-fg: #ced2d0;
  --nav-fg: #8b918e;
  --dot: #3a3f3d;
  --green: #26e194;
  --dim: #2b2b2b;
  --grey-line: rgba(255, 255, 255, 0.12);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(16, 20, 19, 0.72);
  --btn-dark: #2a2a2a;
  --glow-btn-bg: #000;
  --header: 76px;
  --font: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --watermark: 0.045;
  --grad-a: rgba(38, 225, 148, 0.13);
  --grad-b: rgba(38, 225, 148, 0.08);
  --grad-c: rgba(38, 225, 148, 0.09);
  --paper-top: rgba(38, 225, 148, 0.07);
  --paper-mid: rgba(38, 225, 148, 0.02);
  --paper-line: rgba(38, 225, 148, 0.12);
}

html[data-theme="light"] {
  color-scheme: light;
  --black: #f3f6f4;
  --ink: #e9efeb;
  --page-bg: #f3f6f4;
  --page-fg: #0a0d0b;
  --muted-fg: #5a635e;
  --soft-fg: #3a423e;
  --nav-fg: #5a635e;
  --dot: #9aa49e;
  --green: #12a86a;
  --dim: #d7ddd9;
  --grey-line: rgba(10, 13, 11, 0.12);
  --surface: rgba(10, 13, 11, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --btn-dark: #1a1f1c;
  --glow-btn-bg: #ffffff;
  --watermark: 0.07;
  --grad-a: rgba(18, 168, 106, 0.12);
  --grad-b: rgba(18, 168, 106, 0.07);
  --grad-c: rgba(18, 168, 106, 0.08);
  --paper-top: rgba(18, 168, 106, 0.08);
  --paper-mid: rgba(18, 168, 106, 0.03);
  --paper-line: rgba(18, 168, 106, 0.16);
}

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

html {
  scroll-behavior: smooth;
}

html.has-slow-scroll {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 12% -5%, var(--grad-a), transparent 62%),
    radial-gradient(900px 700px at 88% 22%, var(--grad-b), transparent 60%),
    radial-gradient(1000px 800px at 50% 105%, var(--grad-c), transparent 62%),
    var(--page-bg);
  background-attachment: fixed;
  color: var(--page-fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* root-system mark sitting far behind the page as a faint watermark */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: url("/img/logo.svg") no-repeat center 46% / min(62vh, 560px);
  opacity: var(--watermark);
}

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

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

@media (min-width: 981px) {
  /* Keep page content clear of the fixed right side-nav rail. */
  #main,
  .site-footer {
    padding-right: 10.5rem;
    padding-left: 1.25rem;
  }

  .wrap {
    width: min(1180px, 100%);
  }

  /* News uses the full cleared content width so cards sit next to the nav. */
  .news-page > .wrap {
    width: 100%;
    max-width: 1500px;
    margin-left: 0;
    margin-right: 0;
  }

  .news-page > .wrap.center {
    max-width: 820px;
    margin-inline: auto;
  }
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 50;
  background: var(--green);
  color: #04110a;
  padding: 10px 14px;
  border-radius: 999px;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  letter-spacing: -0.035em;
  line-height: 1.04;
  font-weight: 600;
}

p {
  margin: 0 0 16px;
}

a {
  color: inherit;
}

/* ---------- side nav (right rail) ---------- */

.side-nav {
  position: fixed;
  top: 50%;
  right: 22px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  transform: translate3d(0, -50%, 0);
  will-change: transform;
}

.side-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--page-fg);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.side-brand img {
  width: 34px;
  height: 34px;
  filter: drop-shadow(0 0 12px rgba(38, 225, 148, 0.45));
}

.side-rail {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 14px;
}

.side-track {
  position: relative;
  width: 2px;
  margin: 8px 0;
  background: var(--grey-line);
  border-radius: 2px;
  overflow: hidden;
}

.side-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 0;
  background: var(--green);
  box-shadow: 0 0 12px rgba(38, 225, 148, 0.7);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  min-width: 8.75rem;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
  color: var(--nav-fg);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.nav a b {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--page-bg) 70%, transparent);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.nav a span {
  opacity: 0.72;
  transition: opacity 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--green);
}

.nav a:hover b,
.nav a.is-active b {
  background: var(--green);
  transform: scale(1.25);
  box-shadow: 0 0 0 4px rgba(38, 225, 148, 0.18), 0 0 12px rgba(38, 225, 148, 0.55);
}

.nav a:hover span,
.nav a.is-active span {
  opacity: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.34rem;
  letter-spacing: -0.045em;
  color: var(--page-fg);
}

.brand img {
  width: 38px;
  height: 38px;
}

.nav-toggle {
  display: none;
  background: color-mix(in srgb, var(--page-bg) 80%, transparent);
  border: 1px solid var(--grey-line);
  color: var(--page-fg);
  border-radius: 999px;
  padding: 9px 15px;
  font: inherit;
  cursor: pointer;
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid var(--grey-line);
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  color: var(--nav-fg);
  font: inherit;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: left;
  border-radius: 999px;
  padding: 9px 14px;
  backdrop-filter: blur(10px);
}

.theme-fixed {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 60;
}

.theme-toggle b {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 22%, transparent);
}

.theme-toggle:hover,
.theme-toggle[aria-pressed="true"] {
  color: var(--green);
  border-color: color-mix(in srgb, var(--green) 45%, transparent);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 600;
  font-size: 0.96rem;
  padding: 11px 20px;
  border-radius: 999px;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-green {
  background: var(--green);
  color: #04160d;
}

.btn-green:hover {
  filter: brightness(1.08);
}

.btn-dark {
  background: var(--btn-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--page-fg);
  border: 1px solid var(--grey-line);
}

.btn-glow {
  background: var(--glow-btn-bg);
  color: var(--page-fg);
  border: 1px solid color-mix(in srgb, var(--green) 55%, transparent);
  padding: 15px 30px;
  font-size: 1.02rem;
  box-shadow: 0 0 34px color-mix(in srgb, var(--green) 32%, transparent), inset 0 0 22px color-mix(in srgb, var(--green) 8%, transparent);
}

.btn-glow:hover {
  box-shadow: 0 0 52px rgba(38, 225, 148, 0.5);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1rem;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  text-align: left;
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-copy .btn {
  margin-top: 8px;
}

.hero-art img,
.split-art img,
.lottie-slot img,
.illu-art {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 50px rgba(38, 225, 148, 0.16));
}

.illu-art,
.illu-inline {
  display: block;
  max-width: 520px;
  margin-inline: auto;
}

.illu-inline svg {
  display: block;
  width: 100%;
  height: auto;
}

.illu-inline .illu-drift {
  animation: illu-drift 8s ease-in-out infinite;
}

.illu-inline .illu-sway {
  animation: illu-sway 4.6s ease-in-out infinite;
}

.illu-inline .illu-shield {
  animation: illu-shield 3.1s ease-in-out infinite;
}

.illu-inline .illu-turn {
  animation: illu-turn 5.2s ease-in-out infinite;
}

.illu-inline .illu-idle {
  animation: illu-idle 6s ease-in-out infinite;
}

.illu-inline .illu-screen {
  animation: illu-screen 2.4s ease-in-out infinite;
}

.illu-inline .illu-virus {
  animation: illu-virus 3.8s ease-in-out infinite;
}

.illu-inline .illu-spark {
  animation: illu-spark 1.15s ease-in-out infinite;
}

.illu-inline .illu-shake {
  animation: illu-shake 2.6s ease-in-out infinite;
}

.illu-inline .illu-warn {
  animation: illu-warn 1.9s ease-in-out infinite;
}

.illu-inline .illu-nod {
  animation: illu-nod 3.4s ease-in-out infinite;
}

.illu-inline .illu-type {
  animation: illu-type 0.55s ease-in-out infinite;
}

.illu-inline .illu-type-alt {
  animation: illu-type-alt 0.62s ease-in-out infinite;
}

.illu-inline .illu-bit {
  animation: illu-bit 1.4s steps(2, end) infinite;
}

.illu-inline .illu-scan {
  animation: illu-scan 2.1s ease-in-out infinite;
}

.illu-inline .illu-talk {
  animation: illu-talk 3.6s ease-in-out infinite;
}

.illu-inline .illu-card {
  animation: illu-card 4.8s ease-in-out infinite;
}

@keyframes illu-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(9px, -4px);
  }
}

@keyframes illu-sway {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(6deg);
  }
}

@keyframes illu-shield {
  0%,
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.045);
    filter: brightness(1.28);
  }
}

@keyframes illu-turn {
  0%,
  100% {
    transform: rotate(-14deg);
  }
  50% {
    transform: rotate(11deg);
  }
}

@keyframes illu-idle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(1.1deg);
  }
}

@keyframes illu-screen {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 0.88;
  }
}

@keyframes illu-virus {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(16deg) scale(1.07);
  }
}

@keyframes illu-spark {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(0.9);
  }
  40% {
    opacity: 1;
    transform: scale(1.12);
  }
}

@keyframes illu-shake {
  0%,
  100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-7deg);
  }
  70% {
    transform: rotate(7deg);
  }
}

@keyframes illu-warn {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@keyframes illu-nod {
  0%,
  100% {
    transform: rotate(0deg);
  }
  35% {
    transform: rotate(5deg);
  }
  55% {
    transform: rotate(-2deg);
  }
}

@keyframes illu-type {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

@keyframes illu-type-alt {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(-6deg);
  }
}

@keyframes illu-bit {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0.18;
  }
}

@keyframes illu-scan {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.22;
  }
}

@keyframes illu-talk {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(0, -5px) scale(1.04);
  }
}

@keyframes illu-card {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(3px, -5px);
  }
}

.lottie-slot {
  width: 100%;
  aspect-ratio: 520 / 420;
  min-height: 220px;
}

.hero-art .lottie-slot {
  aspect-ratio: 520 / 420;
  width: 100%;
  min-height: 280px;
  max-width: 560px;
  margin-inline: auto;
}

.lottie-slot svg,
.lottie-slot canvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 50px rgba(38, 225, 148, 0.16));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 8% 0 18%;
  z-index: 0;
  pointer-events: none;
  background: url("/img/logo.svg") no-repeat center 42% / min(58vh, 520px);
  opacity: 0.09;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -160px;
  width: 900px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(38, 225, 148, 0.16), transparent);
  pointer-events: none;
}

.mega {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 22px;
  max-width: 14ch;
  text-transform: uppercase;
  color: var(--page-fg);
}

.mega-sm {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.mega .bright {
  color: var(--page-fg);
}

.mega .plus {
  color: #6f6f6f;
}

.mega .row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  flex-wrap: wrap;
}

.glyph {
  width: 0.92em;
  height: 0.92em;
  filter: drop-shadow(0 0 14px rgba(38, 225, 148, 0.75));
}

.type-line {
  display: block;
  min-height: 1.12em;
}

.term-caret {
  display: inline-block;
  width: 0.42em;
  height: 0.78em;
  margin-left: 0.08em;
  background: var(--green);
  box-shadow: 0 0 12px rgba(38, 225, 148, 0.7);
  vertical-align: -0.04em;
  animation: caret-blink 0.85s step-end infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.hero-sub {
  color: var(--muted-fg);
  font-size: 1.05rem;
  max-width: 46ch;
  margin: 0 0 28px;
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
  text-align: left;
}

.risk-card {
  padding: 8px 8px 0;
}

.risk-ico {
  display: inline-flex;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.risk-ico svg {
  width: 48px;
  height: 48px;
}

.risk-card h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.risk-card p {
  color: var(--muted-fg);
  font-size: 0.96rem;
}

.intel-band {
  position: relative;
  background:
    linear-gradient(180deg, rgba(38, 225, 148, 0.06), transparent 42%),
    transparent;
}

.intel-block {
  margin-top: 40px;
}

.intel-block + .intel-block {
  margin-top: 48px;
}

.intel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.intel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.intel-all {
  color: var(--green);
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.intel-all:hover {
  text-decoration: underline;
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.intel-card {
  border-top: 2px solid var(--green);
  padding: 18px 4px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.intel-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.intel-card h3 a {
  color: var(--page-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.intel-card h3 a:hover {
  color: var(--green);
}

.intel-summary {
  color: var(--muted-fg);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 14px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.attack-focus {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(38, 225, 148, 0.35);
  background: rgba(38, 225, 148, 0.08);
  border-radius: 10px;
}

.attack-focus-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

.attack-focus-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.attack-focus-list li {
  font-size: 0.84rem;
  color: var(--page-fg);
  padding: 4px 8px;
  border: 1px solid var(--grey-line);
  border-radius: 6px;
  background: var(--surface-strong);
}

.intel-card .news-more {
  margin-top: auto;
}

.intel-empty {
  margin: 28px 0 0;
  text-align: center;
}

.intel-empty a {
  color: var(--green);
}

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

.split-flip {
  direction: rtl;
}

.split-flip > * {
  direction: ltr;
}

.split-sec .copy {
  color: var(--muted-fg);
  max-width: 46ch;
}

.split-sec .ticks {
  margin: 8px 0 22px;
}

.about-band {
  position: relative;
  background:
    radial-gradient(700px 280px at 50% 80%, rgba(38, 225, 148, 0.12), transparent 70%),
    transparent;
}

.narrow {
  max-width: 72ch;
}

.contact-wide {
  max-width: 860px;
  margin-top: 40px;
}

.contact-wide .btn {
  justify-self: center;
}

.contact-mail {
  max-width: 720px;
  margin-top: 40px;
  text-align: center;
}

.contact-step-focus {
  margin-top: 8px;
}

.contact-provider-chosen {
  margin: -6px 0 18px;
  color: var(--muted-fg);
  font-size: 0.95rem;
}

.contact-focus {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto 22px;
  text-align: left;
}

.contact-focus select {
  width: 100%;
  min-height: 48px;
}

.contact-mail-label {
  margin: 0 0 18px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
}

.contact-mail-hint {
  margin: -8px 0 16px;
  color: #ff8f9b;
  font-size: 0.92rem;
}

.contact-providers,
.contact-focus-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.inline-mail {
  color: var(--page-fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-mail:hover {
  color: var(--green);
}

.contact-done-copy {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--soft-fg);
  font-size: 1rem;
  line-height: 1.55;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 8px 0 0;
}

.proof span {
  color: var(--soft-fg);
  font-size: 0.84rem;
  letter-spacing: 0.03em;
}

.proof span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(38, 225, 148, 0.55);
  vertical-align: middle;
}

.deliver {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.deliver article {
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 24px;
}

.deliver h3 {
  font-size: 1.12rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.deliver p {
  color: var(--muted-fg);
  font-size: 0.96rem;
  margin: 0;
}

.faq {
  max-width: 820px;
  margin: 48px auto 0;
  text-align: left;
}

.faq details {
  border-top: 1px solid var(--grey-line);
  padding: 16px 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--grey-line);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 500;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  color: var(--muted-fg);
  margin: 12px 0 4px;
  max-width: 62ch;
}

/* ---------- sections ---------- */

.section {
  padding: 104px 0;
}

/* single page: keep anchored sections clear of the sticky header */
section[id] {
  scroll-margin-top: 28px;
}

/* section tones: .paper is the slightly lifted green one */
.paper {
  background:
    linear-gradient(180deg, var(--paper-top), var(--paper-mid) 55%, transparent),
    var(--ink);
  color: var(--page-fg);
  border-top: 1px solid var(--paper-line);
  border-bottom: 1px solid var(--paper-line);
}

.paper + .paper {
  border-top: 0;
}

.dark {
  background: transparent;
  color: var(--page-fg);
}

.center {
  text-align: center;
}

/* utilities — inline style attributes are blocked by the site CSP */

.tl {
  text-align: left;
}

.pt-0 {
  padding-top: 0;
}

.pt-40 {
  padding-top: 40px;
}

.pb-40 {
  padding-bottom: 40px;
}

.mt-14 {
  margin-top: 14px;
}

.mt-22 {
  margin-top: 22px;
}

.mb-30 {
  margin-bottom: 30px;
}

.w86 {
  width: 86%;
}

.w64 {
  width: 64%;
}

.h-lead {
  font-size: clamp(1.9rem, 4vw, 3.05rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.h-lead b {
  font-weight: 700;
}

.h-lead .g {
  color: var(--green);
}

.sub {
  color: var(--muted-fg);
  max-width: 48ch;
  margin-inline: auto;
  font-size: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 14px;
}

/* ---------- track cards ---------- */

.tracks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 46px;
}

.track {
  position: relative;
  text-align: left;
  overflow: hidden;
  background: linear-gradient(135deg, #04120b 0%, #06170f 55%, #062018 100%);
  border: 1px solid rgba(38, 225, 148, 0.16);
  border-radius: 14px;
  padding: 30px;
  min-height: 290px;
  color: var(--page-fg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.track h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.track > p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  max-width: 34ch;
}

.track ul {
  list-style: none;
  margin: 18px 0 24px;
  padding: 0;
  max-width: 36ch;
}

.track li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 9px;
  font-size: 0.94rem;
  color: var(--soft-fg);
}

.track li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.track-art {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: 260px;
  height: 260px;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- sticky scroll story ---------- */

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
  margin-top: 54px;
}

.story-steps {
  list-style: none;
  margin: 0;
  padding: 0;
}

.story-steps li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 34px;
  transform-origin: left center;
}

.js .story-steps li {
  will-change: transform, opacity;
}

.story-steps li.is-on::before {
  box-shadow: 0 0 18px rgba(38, 225, 148, 0.9);
}

.story-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(38, 225, 148, 0.6);
}

.story-steps li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 26px;
  bottom: -30px;
  width: 1px;
  background: rgba(38, 225, 148, 0.22);
}

.story-steps li:last-child {
  margin-bottom: 0;
}

.story-steps li:last-child::after {
  display: none;
}

.story-steps h3 {
  font-size: 1.32rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.story-steps h3 span {
  color: var(--green);
}

.story-steps p {
  font-size: 0.96rem;
  color: var(--muted-fg);
  margin: 0;
  max-width: 34ch;
}

.story-visual {
  position: relative;
}

.finding-card {
  width: 100%;
  background: linear-gradient(160deg, #101c26, #0a1219);
  border-radius: 14px;
  padding: 20px;
  color: #fff;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.fc-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.fc-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(from 210deg, var(--green), #1f6d4c, #0b3b28, var(--green));
}

.fc-head strong {
  display: block;
  font-size: 1rem;
}

.fc-head span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.fc-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin: 16px 0 10px;
}

.fc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fc-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  padding: 10px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
}

.bar {
  height: 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  margin-top: 8px;
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: var(--green);
}

/* evidence bars fill from empty once the card scrolls into view */
.js .bar i {
  width: 0;
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.js .reveal.in .bar i.w86 {
  width: 86%;
}

.js .reveal.in .bar i.w64 {
  width: 64%;
}

.js .fc-item,
.js .fc-badges .badge {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js .reveal.in .fc-item,
.js .reveal.in .fc-badges .badge {
  opacity: 1;
  transform: none;
}

.js .reveal.in .fc-item:nth-child(2) {
  transition-delay: 0.12s;
}

.js .reveal.in .fc-badges .badge:nth-child(1) {
  transition-delay: 0.5s;
}

.js .reveal.in .fc-badges .badge:nth-child(2) {
  transition-delay: 0.6s;
}

.js .reveal.in .fc-badges .badge:nth-child(3) {
  transition-delay: 0.7s;
}

.fc-badges {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.badge {
  flex: 1;
  text-align: center;
  padding: 10px 4px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  color: var(--soft-fg);
}

.badge b {
  display: block;
  color: var(--green);
  font-size: 0.74rem;
  margin-bottom: 2px;
}

/* ---------- split feature (dark) ---------- */

.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  font-weight: 500;
  max-width: 14ch;
}

.feature h2 .g {
  color: var(--green);
  font-weight: 600;
}

.feature p {
  color: var(--muted-fg);
  max-width: 40ch;
}

.feature-visual {
  position: relative;
}

.feature-visual .queue {
  width: 100%;
}

.queue {
  display: grid;
  gap: 14px;
}

.queue-card {
  background: #141b21;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 16px;
}

.queue-card.shift {
  margin-left: 16%;
  background: #16202a;
}

.js .queue-live .queue-card,
.js .queue-live .qc-item {
  will-change: transform, opacity;
}

.js .queue-live .queue-card.is-in .chip.red {
  box-shadow: 0 0 14px rgba(255, 107, 122, 0.35);
}

.js .queue-live .queue-card.is-in .chip.green {
  box-shadow: 0 0 14px rgba(38, 225, 148, 0.4);
}

.qc-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted-fg);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.qc-item {
  background: var(--surface);
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 10px;
}

.qc-item:last-child {
  margin-bottom: 0;
}

.qc-item p {
  margin: 0 0 9px;
  font-size: 0.92rem;
  color: #eef1ef;
}

.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.chip {
  font-size: 0.7rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft-fg);
}

.chip.green {
  background: rgba(38, 225, 148, 0.16);
  color: var(--green);
}

.chip.red {
  background: rgba(255, 107, 122, 0.16);
  color: #ff8f9b;
}

/* ---------- stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}

.stat {
  border-top: 1px solid var(--grey-line);
  padding-top: 18px;
}

.stat b {
  display: block;
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--green);
}

.stat span {
  color: var(--muted-fg);
  font-size: 0.9rem;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  text-align: center;
  padding: 108px 0;
  background: radial-gradient(760px 300px at 50% 120%, rgba(38, 225, 148, 0.2), transparent 70%), var(--black);
}

.cta h2 {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  font-weight: 500;
  max-width: 20ch;
  margin-inline: auto;
}

/* ---------- service detail ---------- */

.svc-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding: 38px 0;
  border-top: 1px solid var(--grey-line);
}

.svc-row .num {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  padding-top: 10px;
}

.svc-row h3 {
  font-size: clamp(1.4rem, 2.5vw, 1.95rem);
  font-weight: 600;
}

/* scale/opacity are driven per frame from scroll position in main.js */
.zoom {
  transform-origin: center center;
}

.js .zoom {
  will-change: transform, opacity;
}

.paper .svc-row {
  border-top-color: rgba(38, 225, 148, 0.14);
}

.svc-row p {
  color: var(--muted-fg);
  max-width: 60ch;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--soft-fg);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 10px;
  height: 5px;
  border: 2px solid var(--green);
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
}

/* ---------- prose / facts ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.prose {
  max-width: 62ch;
}

.prose h3 {
  font-size: 1.55rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.phases {
  list-style: none;
  margin: 0;
  padding: 0;
}

.phases li {
  border: 1px solid var(--grey-line);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 12px;
  color: var(--muted-fg);
  font-size: 0.96rem;
  transform-origin: center center;
}

.js .phases li {
  will-change: transform, opacity;
}

.phases b {
  display: block;
  color: var(--green);
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.prose p {
  color: var(--muted-fg);
}

.prose strong {
  color: var(--page-fg);
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}

.facts div {
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 22px;
  color: var(--muted-fg);
}

.facts b {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 8px;
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 34px;
  margin-top: 48px;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.contact-form .full,
.contact-form .btn,
.notice {
  grid-column: 1 / -1;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--soft-fg);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
  font: inherit;
  font-size: 0.98rem;
  color: var(--page-fg);
  background: #101413;
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.hp {
  position: absolute;
  left: -9999px;
}

.notice {
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.notice-ok {
  background: rgba(38, 225, 148, 0.14);
  color: var(--green);
}

.notice-err {
  background: rgba(255, 107, 122, 0.14);
  color: #ff8f9b;
}

.aside {
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 24px;
  height: fit-content;
}

.aside b {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.aside p {
  color: var(--muted-fg);
  font-size: 0.94rem;
}

.aside a {
  color: var(--page-fg);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--grey-line);
  padding: 56px 0 26px;
  background: var(--black);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h4 {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  color: var(--muted-fg);
  text-decoration: none;
  margin-bottom: 9px;
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--page-fg);
}

.footer-grid .brand {
  display: inline-flex;
  font-size: 1.34rem;
  margin-bottom: 0;
  color: var(--page-fg);
}

.footer-grid p {
  color: var(--muted-fg);
  font-size: 0.95rem;
  max-width: 32ch;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--grey-line);
  color: var(--muted-fg);
  font-size: 0.88rem;
}

/* ---------- reveal ---------- */

/* scoped to .js so content stays visible if the script fails to run */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .d1 {
  transition-delay: 0.1s;
}

.js .d2 {
  transition-delay: 0.2s;
}

.js .d3 {
  transition-delay: 0.3s;
}

@media (prefers-reduced-motion: reduce) {
  .illu-art,
  .illu-inline [class^="illu-"] {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .side-nav,
  .nav a,
  .nav a b,
  .nav a span,
  .side-progress {
    transition: none;
  }

  .js .hero.is-typing .hero-cta {
    opacity: 1;
    pointer-events: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .js .queue-live .queue-card,
  .js .queue-live .qc-item {
    opacity: 1 !important;
    transform: none !important;
  }

  .story-steps li {
    opacity: 1;
    transform: none;
  }

  .js .bar i {
    transition: none;
  }

  .js .bar i.w86 {
    width: 86%;
  }

  .js .bar i.w64 {
    width: 64%;
  }

  .js .fc-item,
  .js .fc-badges .badge {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .side-nav {
    top: 16px;
    right: 14px;
    transform: none;
    align-items: flex-end;
  }

  .side-brand span {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .side-rail {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    padding: 14px 16px;
    background: color-mix(in srgb, var(--page-bg) 92%, transparent);
    border: 1px solid var(--grey-line);
    border-radius: 14px;
    backdrop-filter: blur(10px);
  }

  .side-nav.is-open .side-rail {
    display: flex;
  }

  .tracks,
  .story,
  .feature,
  .about-grid,
  .facts,
  .contact-grid,
  .footer-grid,
  .svc-row,
  .hero-grid,
  .risk-grid,
  .intel-grid,
  .split,
  .deliver {
    grid-template-columns: 1fr;
  }

  .split-flip {
    direction: ltr;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .queue-card.shift {
    margin-left: 0;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 74px 0 88px;
  }

  .hero-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 20px;
  }
}

@media (max-width: 560px) {
  .contact-form,
  .fc-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .contact-mail {
    margin-top: 28px;
    padding: 0 2px;
  }

  .contact-providers,
  .contact-focus-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-providers .btn,
  .contact-focus-actions .btn {
    width: 100%;
    min-height: 48px;
    white-space: normal;
  }

  .contact-focus {
    max-width: none;
    width: 100%;
  }

  .contact-focus select {
    font-size: 16px;
  }

  .btn {
    white-space: nowrap;
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .nav-toggle {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .wrap {
    width: calc(100% - 32px);
  }
}

/* ---------- news ---------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-search {
  display: flex;
  gap: 10px;
  max-width: none;
  margin: 0;
  width: 100%;
  align-items: stretch;
  grid-area: search;
}

.news-search input {
  flex: 1 1 auto;
  min-width: 0;
}

.news-search .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.news-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  grid-template-areas:
    "filters search"
    "filters main";
  gap: 18px 22px;
  align-items: start;
  margin-top: 28px;
  width: 100%;
}

.news-shell.filters-collapsed {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "filters search"
    "filters main";
}

.news-shell.filters-collapsed .news-filters {
  width: auto;
}

.news-shell.filters-collapsed .news-filters-body {
  display: none;
}

.news-shell.filters-collapsed .news-filters-toggle {
  margin-bottom: 0;
}

/* Mobile first paint: hide filter options until the user opens them. */
@media (max-width: 980px) {
  .news-shell:not(.filters-open) .news-filters-body {
    display: none !important;
  }

  .news-shell.filters-open .news-filters-body {
    display: grid !important;
  }
}

.news-filters {
  position: sticky;
  top: 24px;
  width: 200px;
  max-width: 100%;
  grid-area: filters;
}

.news-filters-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--page-fg);
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.news-filters-toggle svg {
  opacity: 0.9;
}

.news-filters-heading {
  margin: 18px 0 10px;
  color: var(--page-fg);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: left;
}

.news-filters-heading:first-child {
  margin-top: 0;
}

.news-filter-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--soft-fg);
  font-size: 0.95rem;
  cursor: pointer;
  width: 100%;
}

.news-filter-item input[type="checkbox"] {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  border-radius: 3px;
  border: 1px solid var(--grey-line);
  background: transparent;
  accent-color: var(--green);
  appearance: auto;
  -webkit-appearance: checkbox;
}

.news-filter-item span {
  flex: 0 1 auto;
  text-align: left;
}

.news-main {
  min-width: 0;
  width: 100%;
  grid-area: main;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
  align-items: stretch;
  width: 100%;
}

.news-shell.filters-collapsed .news-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.news-card {
  border: 1px solid var(--grey-line);
  border-radius: 14px;
  padding: 0;
  background: var(--surface-strong);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card-media {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--grey-line);
  overflow: hidden;
  text-decoration: none;
}

.news-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
  line-height: 1.3;
}

.news-card h2 a {
  color: var(--page-fg);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.news-card h2 a:hover {
  color: var(--green);
}

.news-card p,
.news-card-summary {
  color: var(--muted-fg);
  margin: 0 0 14px;
}

.news-card-summary {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-more {
  color: var(--page-fg);
  font-weight: 600;
  margin-top: auto;
  align-self: flex-start;
}

.news-results-meta {
  margin: 0 0 4px;
  font-size: 0.92rem;
}

.news-empty {
  margin-top: 40px;
  text-align: center;
  color: var(--muted-fg);
}

.news-scroll-status {
  margin: 28px auto 0;
  text-align: center;
  min-height: 28px;
}

.news-scroll-sentinel {
  width: 100%;
  height: 48px;
  pointer-events: none;
}

.news-article-inner {
  max-width: 760px;
}

.news-byline,
.news-dek,
.news-source {
  color: var(--muted-fg);
}

.news-dek {
  font-size: 1.08rem;
  margin: 18px 0 28px;
}

.news-cover {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 14px;
  margin: 0 0 28px;
}

.news-body p {
  color: var(--soft-fg);
  margin: 0 0 1.1em;
  line-height: 1.7;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.news-tags span {
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--soft-fg);
}

.news-back {
  margin-top: 32px;
}

.news-back a {
  color: var(--green);
}

.news-related {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--grey-line);
  max-width: 1100px;
}

.news-related-title {
  margin: 0 0 18px;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--page-fg);
}

.news-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 1100px) {
  .news-related-grid,
  .intel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-grid,
  .news-shell.filters-collapsed .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .news-page.section {
    padding-top: 92px;
    padding-bottom: 56px;
  }

  .news-page > .wrap.center .sub {
    max-width: 36ch;
  }

  .news-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 22px;
  }

  .news-main {
    display: contents;
  }

  /* Search → count → Filters toggle → cards */
  .news-search {
    order: 1;
    margin: 0;
    flex-direction: row;
  }

  .news-results-meta {
    order: 2;
    margin: 2px 0 0;
  }

  .news-filters {
    order: 3;
    position: static;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .news-filters-toggle {
    margin: 0;
    width: auto;
    justify-content: flex-start;
    min-height: 28px;
    padding: 6px 0;
    color: var(--soft-fg);
    font-size: 0.9rem;
  }

  .news-shell.filters-open .news-filters {
    padding: 12px 14px;
    border: 1px solid var(--grey-line);
    border-radius: 12px;
    background: var(--surface-strong);
  }

  .news-shell.filters-open .news-filters-toggle {
    margin-bottom: 12px;
    width: 100%;
  }

  .news-filters-body {
    grid-template-columns: 1fr 1fr;
    column-gap: 12px;
    row-gap: 2px;
  }

  .news-filters-heading {
    grid-column: 1 / -1;
    margin: 10px 0 6px;
  }

  .news-filters-heading:first-child {
    margin-top: 0;
  }

  .news-filter-item {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start;
    margin: 0 0 8px;
    font-size: 0.9rem;
  }

  .news-empty {
    order: 4;
  }

  .news-grid,
  .news-shell.filters-collapsed .news-grid {
    order: 5;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 4px;
  }

  .news-scroll-status {
    order: 6;
  }

  .news-card-body {
    padding: 16px;
  }

  .news-card h2 {
    font-size: 1.05rem;
  }

  .news-card-summary {
    -webkit-line-clamp: 3;
    font-size: 0.92rem;
  }

  .news-related {
    margin-top: 36px;
    padding-top: 28px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .news-grid,
  .news-shell.filters-collapsed .news-grid,
  .news-related-grid {
    grid-template-columns: 1fr;
  }

  .news-search {
    flex-direction: row;
    gap: 8px;
  }

  .news-search input {
    min-height: 46px;
    font-size: 0.95rem;
  }

  .news-search .btn {
    padding-inline: 14px;
  }

  .news-filters-body {
    grid-template-columns: 1fr;
  }

  .news-card-body {
    padding: 14px 14px 16px;
  }

  .news-meta {
    gap: 8px 10px;
    font-size: 0.72rem;
  }

  .news-article-inner {
    max-width: none;
  }

  .news-cover {
    max-height: 220px;
    border-radius: 12px;
    margin-bottom: 20px;
  }

  .news-related-title {
    font-size: 1.15rem;
  }
}


/* ---------- light theme surface tweaks ---------- */
html[data-theme="light"] .track {
  background: linear-gradient(135deg, #ffffff 0%, #f2f7f4 55%, #e8f0eb 100%);
  border-color: var(--paper-line);
  box-shadow: 0 18px 40px rgba(10, 13, 11, 0.08);
}

html[data-theme="light"] .finding-card {
  box-shadow: 0 18px 40px rgba(10, 13, 11, 0.12);
}

html[data-theme="light"] .news-search input,
html[data-theme="light"] input:not([type="checkbox"]):not([type="radio"]),
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  color: var(--page-fg);
  background: #fff;
  border-color: var(--grey-line);
}

html[data-theme="light"] .news-filter-item input[type="checkbox"] {
  background: #fff;
  border-color: var(--grey-line);
}

html[data-theme="light"] .side-nav.is-open {
  background: rgba(243, 246, 244, 0.96);
}

html[data-theme="light"] .mega,
html[data-theme="light"] .h-lead,
html[data-theme="light"] .aside a {
  color: var(--page-fg);
}

/* ---- CVE pages ---- */
.cve-sev {
  text-transform: capitalize;
  font-weight: 600;
}

.cve-sev-critical { color: #e35d5d; }
.cve-sev-high { color: #e08a3a; }
.cve-sev-medium { color: #d0b23a; }
.cve-sev-low { color: #4f9f6b; }
.cve-sev-unknown { color: var(--muted-fg); }

.cve-card .news-card-summary {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cve-block {
  margin: 28px 0;
}

.cve-block h2 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  color: var(--page-fg);
}

.cve-block p {
  color: var(--soft-fg);
  line-height: 1.7;
  margin: 0;
  white-space: pre-wrap;
}

.cve-list {
  margin: 0;
  padding-left: 1.2em;
  color: var(--soft-fg);
  line-height: 1.65;
}

.cve-refs li {
  word-break: break-all;
  margin-bottom: 6px;
}

.cve-score-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
}

.cve-score-grid div {
  border: 1px solid var(--grey-line);
  border-radius: 10px;
  padding: 12px 14px;
}

.cve-score-grid dt {
  font-size: 0.78rem;
  color: var(--muted-fg);
  margin: 0 0 4px;
}

.cve-score-grid dd {
  margin: 0;
  font-size: 1.05rem;
  color: var(--page-fg);
  font-weight: 600;
}
