/* ==========================================================================
   SyberDigitals — site design system
   World: "The Quiet Control Room" — a security-operations console.
   Deep navy grounds, hairline-ruled structures, one cyan voice,
   mono labels for data, semantic risk tones inside console visuals only.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg-deep: #030711;
  --bg-0: #050a1a;
  --bg-1: #0a1430;
  --bg-2: #0d1834;
  --well: rgba(255, 255, 255, 0.04);
  --well-2: rgba(255, 255, 255, 0.07);

  /* ink */
  --ink-hi: #e6ebf5;
  --ink-med: #b6c0d4;
  --ink-low: #93a4bf;
  --ink-inverse: #041018;

  /* accent */
  --accent: #22d3ee;
  --accent-bright: #67e8f9;
  --accent-deep: #0891b2;
  --accent-a10: rgba(34, 211, 238, 0.10);
  --accent-a18: rgba(34, 211, 238, 0.18);
  --accent-a32: rgba(34, 211, 238, 0.32);

  /* semantic risk tones — console visuals only, never page chrome */
  --risk-crit: #fbbf24;
  --risk-crit-bg: rgba(251, 191, 36, 0.10);
  --risk-high: #fb923c;
  --risk-high-bg: rgba(251, 146, 60, 0.10);
  --risk-med: #22d3ee;
  --risk-med-bg: rgba(34, 211, 238, 0.10);

  /* lines */
  --line: rgba(230, 235, 245, 0.10);
  --line-strong: rgba(230, 235, 245, 0.18);
  --grid-line: rgba(103, 232, 249, 0.045);

  /* type */
  --font-sans: "Archivo", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --text-2xs: 0.6875rem;
  --text-xs: 0.75rem;
  --text-sm: 0.8125rem;
  --text-base: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.1875rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.625rem;
  --text-3xl: 2.125rem;
  --text-4xl: 2.75rem;
  --text-display: clamp(2.75rem, 1.5rem + 5vw, 5rem);

  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.62;

  /* space (4/8 rhythm) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* radii */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;

  /* motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.6s;

  --container: 1200px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--ink-med);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: 420;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(34, 211, 238, 0.28); color: var(--ink-hi); }

/* browser surfaces, themed */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb {
  background: rgba(230, 235, 245, 0.18);
  border-radius: 5px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover { background: rgba(230, 235, 245, 0.28); }
* { scrollbar-color: rgba(230, 235, 245, 0.22) var(--bg-0); scrollbar-width: thin; }
input, textarea { caret-color: var(--accent); }

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

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

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:not(.btn):hover { color: var(--accent-bright); text-decoration: none; }
.prose a:hover, .duty a:hover, .lede a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-hi);
  font-weight: 680;
  line-height: var(--leading-tight);
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); font-weight: 760; letter-spacing: -0.03em; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-xl); }
p { margin: 0; }
strong { color: var(--ink-hi); font-weight: 620; }

.lede {
  font-size: var(--text-lg);
  line-height: 1.58;
  color: var(--ink-med);
  max-width: 60ch;
  text-wrap: pretty;
}

/* section headings get generous space above, less below */
.section h2, .band h2 { margin-bottom: var(--s-5); }
.section .lede, .band .lede { margin-bottom: var(--s-7); }

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
}

/* skip link */
.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--ink-inverse);
  font-weight: 640;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: var(--s-4); color: var(--ink-inverse); text-decoration: none; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(var(--s-4), 4vw, var(--s-6));
}

.section { padding-block: clamp(var(--s-8), 10vw, var(--s-10)); position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.band {
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(34, 211, 238, 0.055), transparent 60%),
    var(--bg-1);
}
.band + .band { border-top: 1px solid var(--line); }

.section-head { max-width: 68ch; }

/* ---------- Console texture: coordinate grid (network-map context) ---------- */
.grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 78%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(3, 7, 17, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink-hi);
  font-weight: 700;
  font-size: var(--text-md);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink-hi); }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand .b2 { color: var(--accent); }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(var(--s-4), 2vw, var(--s-5));
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  color: var(--ink-med);
  font-size: var(--text-sm);
  font-weight: 520;
  padding: var(--s-2) 2px;
  position: relative;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right 0.28s var(--ease-out);
}
.site-nav a:hover { color: var(--ink-hi); text-decoration: none; }
.site-nav a:hover::after { right: 0; }
.site-nav a[aria-current="page"] { color: var(--ink-hi); }
.site-nav a[aria-current="page"]::after { right: 0; }

.header-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
  white-space: nowrap;
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.5);
  animation: pulse-dot 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.header-cta { flex: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 9px 10px;
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-hi);
  border-radius: 1px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.nav-toggle .bar + .bar { margin-top: 5px; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 13px 24px;
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 620;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  color: var(--ink-inverse);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 8px 20px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover {
  background: var(--accent-bright);
  color: var(--ink-inverse);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink-hi);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--accent-a32);
  color: var(--accent-bright);
  background: var(--accent-a10);
}

.btn-sm { padding: 9px 16px; font-size: var(--text-xs); }

.btn-lg { padding: 16px 30px; font-size: var(--text-base); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-sm);
}
.link-more .arr { transition: transform 0.25s var(--ease-out); }
.link-more:hover .arr { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(var(--s-9), 12vw, 140px) clamp(var(--s-8), 9vw, var(--s-9));
  background:
    radial-gradient(1000px 460px at 20% -10%, rgba(34, 211, 238, 0.10), transparent 62%),
    linear-gradient(180deg, var(--bg-1), var(--bg-deep) 85%);
  border-bottom: 1px solid var(--line);
}
.hero--page {
  padding-block: clamp(var(--s-8), 9vw, var(--s-9)) clamp(var(--s-7), 7vw, var(--s-8));
}

.hero-grid { position: relative; z-index: 1; }
.hero h1 { max-width: 13ch; }
.hero .lede { margin-top: var(--s-5); max-width: 54ch; font-size: var(--text-md); }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-top: var(--s-6);
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  margin-top: var(--s-8);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  color: var(--ink-low);
}
.hero-facts span { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm); }
.hero-facts .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }

/* terminal line */
.terminal {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-top: var(--s-5);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(3, 7, 17, 0.6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-low);
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.terminal .prompt { color: var(--accent); flex: none; }
.terminal .cmd { color: var(--ink-med); overflow: hidden; }
.terminal .caret {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent);
  animation: caret-blink 1.1s steps(1) infinite;
  flex: none;
  transform: translateY(2px);
}
@keyframes caret-blink { 50% { opacity: 0; } }

/* hero constellation (signature moment) */
.constellation {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.constellation .drift-a { animation: drift-a 46s ease-in-out infinite alternate; }
.constellation .drift-b { animation: drift-b 64s ease-in-out infinite alternate; }
@keyframes drift-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-26px, 14px, 0); } }
@keyframes drift-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(20px, -18px, 0); } }

.scan-sweep {
  position: absolute;
  top: -20%;
  left: -30%;
  width: 55%;
  height: 150%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(100deg, transparent 44%, rgba(103, 232, 249, 0.055) 50%, transparent 56%);
  transform: rotate(8deg);
  animation: sweep 9s var(--ease-out) infinite;
  opacity: 0.8;
}
@keyframes sweep {
  0% { transform: translateX(-24%) rotate(8deg); opacity: 0; }
  12% { opacity: 0.8; }
  55% { transform: translateX(210%) rotate(8deg); opacity: 0; }
  100% { transform: translateX(210%) rotate(8deg); opacity: 0; }
}

/* ---------- Status ticker ---------- */
.ticker {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
}
.ticker-inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  padding-block: 11px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
  white-space: nowrap;
}
.ticker-item::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
  flex: none;
}

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: var(--s-6) var(--s-5);
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: 0; }
.stat .num {
  display: block;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  font-weight: 740;
  letter-spacing: -0.03em;
  color: var(--ink-hi);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .num .unit { color: var(--accent); font-size: 0.55em; font-weight: 680; margin-left: 2px; }
.stat .lbl {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-low);
}

/* ---------- Service ruled grid (home) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-cell {
  position: relative;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  color: inherit;
  transition: background 0.25s;
}
.service-cell::before {
  content: attr(data-code);
  position: absolute;
  top: var(--s-3);
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
  opacity: 0.55;
  transition: color 0.2s, opacity 0.2s;
}
.service-cell:hover { background: var(--well); text-decoration: none; }
.service-cell:hover .cell-title { color: var(--accent-bright); }
.service-cell:hover::before { color: var(--accent); opacity: 1; }
.service-cell .icon { color: var(--accent); }
.service-cell .cell-title { font-weight: 640; color: var(--ink-hi); font-size: var(--text-md); line-height: var(--leading-snug); transition: color 0.2s; padding-right: 44px; }
.service-cell .cell-sub { font-size: var(--text-sm); color: var(--ink-low); line-height: 1.5; }

/* ---------- Console panel (signature component) ---------- */
.console {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.console-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 12px var(--s-5);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 17, 0.5);
}
.console-head .dots { display: inline-flex; gap: 6px; flex: none; }
.console-head .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.console-head .dots i:first-child { background: rgba(251, 191, 36, 0.5); }
.console-head .dots i:nth-child(2) { background: rgba(52, 211, 153, 0.5); }
.console-head .dots i:nth-child(3) { background: rgba(34, 211, 238, 0.5); }
.console-head .title {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.07em;
  color: var(--ink-low);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.console-head .live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: #34d399;
  flex: none;
}
.console-body { padding: var(--s-4) var(--s-4); display: grid; gap: var(--s-3); }

.review-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(3, 7, 17, 0.45);
}
.review-item .who { min-width: 0; }
.review-item .acc {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-item .sys {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.05em;
  color: var(--ink-low);
  margin-top: 2px;
}
.badge {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-crit { color: var(--risk-crit); background: var(--risk-crit-bg); border-color: rgba(251, 191, 36, 0.35); }
.badge-high { color: var(--risk-high); background: var(--risk-high-bg); border-color: rgba(251, 146, 60, 0.35); }
.badge-med { color: var(--risk-med); background: var(--risk-med-bg); border-color: rgba(34, 211, 238, 0.35); }

.review-item .decision {
  display: inline-flex;
  gap: 5px;
  flex: none;
}
.review-item .decision i {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  color: var(--ink-low);
}
.review-item .decision .on-keep { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.review-item .decision .on-revoke { color: var(--accent); border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.08); }

.console-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-4);
  padding: var(--s-3) var(--s-5);
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 17, 0.5);
}
.console-foot .evidence {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.07em;
  color: var(--accent);
}
.console-foot .meter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.07em;
  color: var(--ink-low);
  white-space: nowrap;
}
.console-foot .meter .bar {
  width: 110px;
  height: 5px;
  border-radius: 3px;
  background: var(--well-2);
  overflow: hidden;
}
.console-foot .meter .bar i {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
}
.console-caption {
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  color: var(--ink-low);
  text-align: right;
}

/* ---------- Product spotlight ---------- */
.product-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: center;
}
.product-split h2 .tm { color: var(--accent); }
.product-points { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.product-points { margin: 0; padding: 0; list-style: none; }
.product-points li { display: flex; gap: 10px; align-items: baseline; }
.product-points .tick { color: var(--accent); flex: none; }

/* ---------- Split feature rows ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--s-6), 6vw, var(--s-9));
  align-items: start;
}
.split + .split { margin-top: clamp(var(--s-7), 8vw, var(--s-9)); }

.track-list { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; }
.track-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-med);
}
.track-list li span:last-child { color: var(--ink-low); text-align: right; max-width: 55%; }

/* ---------- Pipeline (process) ---------- */
.pipeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  margin: 0; padding: 0; list-style: none;
  counter-reset: step;
}
.pipeline li {
  position: relative;
  padding-top: 30px;
  font-size: var(--text-sm);
  color: var(--ink-med);
}
.pipeline li::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 0;
  right: calc(-1 * var(--s-5));
  height: 2px;
  background-image: linear-gradient(90deg, var(--accent-a32) 0 8px, transparent 8px 16px);
  background-size: 16px 2px;
  animation: pipe-flow 1.2s linear infinite;
}
.pipeline li:last-child::before { right: 0; background: none; }
@keyframes pipe-flow { to { background-position: 16px 0; } }
.pipeline .node {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--accent-a32);
  background: var(--bg-1);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
  z-index: 1;
}
.pipeline li h3 { font-size: var(--text-md); margin: var(--s-3) 0 var(--s-2) 0; }
.pipeline--8 { grid-template-columns: repeat(4, 1fr); }
.pipeline--5 { grid-template-columns: repeat(5, 1fr); }

/* ---------- Framework chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.07em;
  color: var(--ink-med);
  background: var(--well);
  transition: border-color .2s, color .2s;
}
.chips li:hover { border-color: var(--accent-a32); color: var(--ink-hi); }

/* ---------- Tables ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg-1);
}
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
table.data th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  font-weight: 560;
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-2);
  white-space: nowrap;
}
table.data td {
  padding: var(--s-3) var(--s-5);
  border-bottom: 1px solid var(--line);
  color: var(--ink-med);
  vertical-align: top;
}
table.data tr:last-child td { border-bottom: 0; }
table.data td.mono, table.data .mono-cell { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--ink-low); }
table.data td:first-child { color: var(--ink-hi); font-weight: 560; white-space: nowrap; }

/* ---------- Detail blocks (services / product sections) ---------- */
.detail { padding-block: var(--s-6); border-top: 1px solid var(--line); }
.detail-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(var(--s-5), 4vw, var(--s-8));
}
.detail-grid .icon { color: var(--accent); margin-bottom: var(--s-4); }
.detail-grid h2, .detail-grid h3 { margin-bottom: var(--s-3); }
.detail-grid .duty { font-size: var(--text-sm); color: var(--ink-med); }
.deliverables { margin: var(--s-4) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.deliverables li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: var(--text-sm);
  color: var(--ink-med);
}
.deliverables .tick { color: var(--accent); flex: none; }

/* ---------- Prose blocks ---------- */
.prose { max-width: 72ch; }
.prose p + p { margin-top: var(--s-4); }
.prose ul { margin: var(--s-4) 0 0; padding-left: 1.2em; display: grid; gap: var(--s-2); }
.prose li::marker { color: var(--accent); }

.callout {
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: var(--well);
  padding: var(--s-5);
  max-width: 72ch;
}
.callout h3 { font-size: var(--text-md); margin-bottom: var(--s-3); }
.callout p + p, .callout ul { margin-top: var(--s-3); }
.callout ul { padding-left: 1.2em; display: grid; gap: var(--s-2); color: var(--ink-med); font-size: var(--text-sm); }
.callout li::marker { color: var(--accent); }

/* ---------- Quote (evidence exhibit) ---------- */
.quote-band { background: var(--bg-0); position: relative; }
.exhibit {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(34, 211, 238, 0.05), transparent 65%),
    var(--bg-1);
  padding: clamp(var(--s-6), 5vw, var(--s-8));
  max-width: 60rem;
}
.exhibit-head {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  align-items: center;
  padding-bottom: var(--s-4);
  margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
}
.exhibit-head .tag { color: var(--accent); }
blockquote.quote { margin: 0; }
blockquote.quote p {
  font-size: clamp(var(--text-xl), 1.15rem + 1.7vw, var(--text-3xl));
  line-height: 1.42;
  font-weight: 520;
  color: var(--ink-hi);
  letter-spacing: -0.012em;
  text-wrap: pretty;
}
blockquote.quote p::before { content: "“"; color: var(--accent); }
blockquote.quote p::after { content: "”"; color: var(--accent); }
blockquote.quote footer {
  margin-top: var(--s-5);
  color: var(--ink-low);
  font-size: var(--text-sm);
}
blockquote.quote footer .who { color: var(--ink-med); font-weight: 560; }

/* ---------- CTA band ---------- */
.cta-band {
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 340px at 50% 120%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--bg-1);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { font-size: clamp(var(--text-2xl), 1.3rem + 2.4vw, var(--text-4xl)); max-width: 24ch; margin-inline: auto; }
.cta-band .lede { margin-inline: auto; margin-top: var(--s-4); }
.cta-band .hero-actions { justify-content: center; margin-top: var(--s-6); }
.cta-band .fineprint { margin-top: var(--s-5); color: var(--ink-low); font-size: var(--text-sm); }
.cta-band .terminal { margin-top: var(--s-6); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(var(--s-6), 5vw, var(--s-8));
  align-items: start;
}

.form-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: clamp(var(--s-5), 4vw, var(--s-7));
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s-4); }
.field label { font-size: var(--text-sm); font-weight: 580; color: var(--ink-hi); }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-hi);
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 11px 14px;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(147, 164, 191, 0.75); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(230, 235, 245, 0.28); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-a18);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-low) 50%), linear-gradient(135deg, var(--ink-low) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 128px; }
.field .err {
  display: none;
  color: #fda4af;
  font-size: var(--text-xs);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #fb7185; }
.field.invalid .err { display: block; }

.form-status {
  display: none;
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
}
.form-status.ok { display: block; background: rgba(34, 211, 238, 0.10); border: 1px solid var(--accent-a32); color: var(--accent-bright); }
.form-status.fail { display: block; background: rgba(251, 113, 133, 0.10); border: 1px solid rgba(251, 113, 133, 0.35); color: #fda4af; }
.hp { position: absolute; left: -4000px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside { display: grid; gap: var(--s-6); }
.contact-list { display: grid; gap: var(--s-4); margin: 0; }
.contact-list dt {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-list dd { margin: 0; color: var(--ink-hi); font-size: var(--text-sm); font-weight: 540; }
.contact-list .placeholder { color: var(--ink-low); font-style: italic; }

.booking {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.booking-head { padding: var(--s-5) var(--s-5) var(--s-4); border-bottom: 1px solid var(--line); }
.booking-head h3 { font-size: var(--text-md); }
.booking-head p { color: var(--ink-low); font-size: var(--text-sm); margin-top: var(--s-2); }
.booking-body { padding: var(--s-5); }
.booking-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-sm);
  padding: var(--s-4);
  color: var(--ink-low);
  font-size: var(--text-sm);
}
.booking-note .mono { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding-block: var(--s-8) var(--s-6);
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--s-6);
}
.footer-brand p { margin-top: var(--s-4); color: var(--ink-low); font-size: var(--text-sm); max-width: 30ch; }
.footer-col h3 {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 560;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-2); }
.footer-col a { color: var(--ink-low); font-size: var(--text-sm); }
.footer-col a:hover { color: var(--ink-hi); }
.footer-col .addr { color: var(--ink-low); font-size: var(--text-sm); font-style: normal; display: grid; gap: var(--s-2); }
.footer-base {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  justify-content: space-between;
  color: var(--ink-low);
  font-size: var(--text-xs);
}

/* ---------- Page-header quick links (per-page wayfinding) ---------- */
.hero-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
  position: relative;
  z-index: 1;
}
.hero-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r);
  background: rgba(3, 7, 17, 0.55);
  color: inherit;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.hero-card:hover {
  border-color: var(--accent-a32);
  background: rgba(34, 211, 238, 0.06);
  transform: translateY(-2px);
  text-decoration: none;
}
.hero-card .hc-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hero-card .hc-name { font-weight: 640; color: var(--ink-hi); font-size: var(--text-md); }
.hero-card .hc-sub { font-size: var(--text-sm); color: var(--ink-low); }
.hero-card .hc-go {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
  transition: color 0.2s;
}
.hero-card:hover .hc-go { color: var(--accent); }
.hero--page h1 { font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.125rem); }

/* ---------- Per-page hero visuals (unique animated diagram) ---------- */
.hero-visual {
  position: absolute;
  right: clamp(0px, 4vw, 90px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(270px, 30vw, 400px);
  pointer-events: none;
}
.viz { display: block; height: auto; }
.viz-sweep { transform-origin: 180px 180px; animation: viz-rotate 5.5s linear infinite; }
.viz-orbit { transform-origin: var(--o, 180px 180px); animation: viz-rotate var(--od, 26s) linear infinite; }
.viz-orbit-rev { transform-origin: var(--o, 180px 180px); animation: viz-rotate var(--or, 34s) linear infinite reverse; }
.viz-blip { opacity: 0.85; animation: viz-blink 5.5s linear infinite; }
.viz-step { animation: viz-blink 4.5s linear infinite; }
.viz-draw { animation: viz-draw 4.5s var(--ease-out) infinite; }
.viz-ring { transform-box: fill-box; transform-origin: center; animation: viz-ripple 3.3s ease-out infinite; }
.viz-ch { animation: viz-glow 3.3s ease-in-out infinite; }
@keyframes viz-rotate { to { transform: rotate(360deg); } }
@keyframes viz-blink { 0% { opacity: 0; } 7% { opacity: 1; } 55% { opacity: 0.85; } 72%, 100% { opacity: 0; } }
@keyframes viz-draw { 0% { stroke-dashoffset: 100; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
@keyframes viz-ripple { 0% { transform: scale(0.35); opacity: 0.85; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes viz-glow { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }

/* ---------- Breadcrumbs: header nav echoed in the page hero ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--s-5);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-low);
}
.crumbs a { color: var(--ink-low); }
.crumbs a:hover { color: var(--accent-bright); }
.crumbs .sep { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink-hi); }

/* ---------- Page-hero extras ---------- */
.page-title { max-width: 24ch; }
.page-intro { margin-top: var(--s-4); max-width: 62ch; }
.hero-motif {
  position: absolute;
  right: clamp(-60px, 2vw, 60px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 24vw, 340px);
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Reveal motion (one authored moment) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .constellation .drift-a, .constellation .drift-b { animation: none; }
  .scan-sweep, .status-dot, .terminal .caret { animation: none; }
  .pipeline li::before { animation: none; }
  .hero-visual * { animation: none !important; }
  .site-nav a::after { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .pipeline--8, .pipeline--5 { grid-template-columns: repeat(2, 1fr); gap: var(--s-6) var(--s-5); }
  .pipeline li::before { display: none; }
  .pipeline li { padding-top: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-motif, .hero-visual { display: none; }
}

@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: var(--s-5) clamp(var(--s-4), 4vw, var(--s-6)) var(--s-6);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0.25s;
    z-index: 40;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .site-nav.open { transform: none; opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: var(--s-4) 2px; font-size: var(--text-base); }
  .site-nav a::after { display: none; }
  .header-cta, .header-status { display: none; }
  .nav-toggle { display: block; }

  .product-split, .split, .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; gap: var(--s-4); }
  .stats-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .pipeline--8, .pipeline--5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero-facts { flex-direction: column; gap: var(--s-3); }
  .spec-sheet .spec-row { grid-template-columns: 1fr; gap: var(--s-1); }
  .review-item { grid-template-columns: 1fr auto; }
  .review-item .decision { grid-column: 1 / -1; justify-content: end; }
  .terminal { white-space: normal; }

  /* data tables stack into readable rows instead of overflowing */
  .table-wrap { border: 0; background: none; overflow: visible; }
  table.data, table.data tbody { display: block; }
  table.data thead { display: none; }
  table.data tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--bg-1);
    padding: var(--s-2) var(--s-4);
    margin-bottom: var(--s-3);
  }
  table.data td {
    display: block;
    border-bottom: 1px solid var(--line);
    padding: var(--s-2) 0;
    white-space: normal;
  }
  table.data td:first-child { white-space: normal; }
  table.data tr td:last-child { border-bottom: 0; }
}

/* ==========================================================================
   v3 — Advanced layer: interactive hero canvas, decode headings, spotlight
   hover, marquee ticker, console gradient border, scroll progress, and the
   offensive-security service cards.
   ========================================================================== */

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- Interactive hero network canvas ---------- */
.hero-net {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  z-index: 60;
  pointer-events: none;
}

/* ---------- Text decode ---------- */
[data-decode] .ch { will-change: contents; }

/* ---------- Spotlight hover (cards and cells) ---------- */
.spot { position: relative; overflow: hidden; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 211, 238, 0.09), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s var(--ease-out);
  pointer-events: none;
}
.spot:hover::after { opacity: 1; }

/* ---------- Marquee ticker ---------- */
.marquee {
  border-bottom: 1px solid var(--line);
  background: var(--bg-deep);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .ticker-item { padding-block: 11px; }
.marquee-track .ticker-item::after {
  content: "·";
  margin: 0 var(--s-5);
  color: var(--line-strong);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Console panel: animated gradient border ---------- */
.console {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--bg-2), var(--bg-1)) padding-box,
    conic-gradient(from var(--angle), rgba(34,211,238,0.65), rgba(34,211,238,0.08) 25%, rgba(230,235,245,0.14) 50%, rgba(34,211,238,0.08) 75%, rgba(34,211,238,0.65)) border-box;
  animation: border-spin 8s linear infinite;
}
@keyframes border-spin { to { --angle: 360deg; } }
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- Offensive security service cards ---------- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-4);
}
.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  color: inherit;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}
.svc-card:hover {
  border-color: var(--accent-a32);
  transform: translateY(-3px);
  text-decoration: none;
}
.svc-card .icon { color: var(--accent); }
.svc-card .code {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--ink-low);
  transition: color 0.2s;
}
.svc-card:hover .code { color: var(--accent); }
.svc-card .cell-title { font-weight: 660; color: var(--ink-hi); font-size: var(--text-lg); transition: color 0.2s; }
.svc-card:hover .cell-title { color: var(--accent-bright); }
.svc-card .cell-sub { font-size: var(--text-sm); color: var(--ink-low); line-height: 1.55; }
.svc-card .go {
  margin-top: auto;
  padding-top: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.08em;
  color: var(--accent);
}
.svc-card .go .arr { transition: transform 0.25s var(--ease-out); }
.svc-card:hover .go .arr { transform: translateX(4px); }

/* service group label inside a band (component header, not an eyebrow) */
.group-head {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  margin: var(--s-7) 0 var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.group-head:first-of-type { margin-top: 0; }
.group-head .g-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  letter-spacing: 0.09em;
  color: var(--accent);
  flex: none;
}
.group-head h3 { font-size: var(--text-xl); }
.group-head .g-sub { margin-left: auto; color: var(--ink-low); font-size: var(--text-sm); text-align: right; }
.group-head + .detail { border-top: 0; }
.detail:first-child { border-top: 0; }

@media (max-width: 640px) {
  .group-head { flex-wrap: wrap; gap: var(--s-2) var(--s-4); }
  .group-head .g-sub { margin-left: 0; text-align: left; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .console { animation: none; border-color: var(--line-strong); background: linear-gradient(180deg, var(--bg-2), var(--bg-1)); }
}

/* ---------- Balanced section header (heading left, lede right) ---------- */
.section-head.split-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: var(--s-4) var(--s-8);
  align-items: start;
  max-width: none;
  border-top: 1px solid var(--line-strong);
  padding-top: var(--s-5);
}
.section-head.split-head h2 { max-width: 18ch; }
.section-head.split-head .lede { margin-bottom: var(--s-7); padding-top: 0.4rem; }
@media (max-width: 900px) {
  .section-head.split-head { grid-template-columns: 1fr; gap: var(--s-4); align-items: start; }
  .section-head.split-head h2 { max-width: none; }
}

/* ---------- Sixth "start here" card completes the offensive grid ---------- */
.svc-card--cta {
  border-style: dashed;
  border-color: var(--accent-a32);
  background: rgba(34, 211, 238, 0.04);
  justify-content: center;
}
.svc-card--cta:hover { border-color: var(--accent); background: rgba(34, 211, 238, 0.07); }
.svc-card--cta .code { color: var(--accent); opacity: 1; }
