/* =========================================================
   JAWA SECURITY v2 — Dynamic, blob-driven, editorial-tech
   Inspired by DotDNA / qclay / awsmd
   ========================================================= */

:root {
  --bg: #050807;
  --bg-2: #0a0f0d;
  --bg-3: #0f1613;
  --ink: #eaf3ef;
  --ink-dim: #a2b3ad;
  --ink-mute: #6a7973;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --acc: #00ff88;
  --acc-soft: #00ff8833;
  --acc-deep: #0a3d29;
  --acc-glow: #00ff88;
  --card: #0c1210;
  --card-hi: #121a17;
  --warn: #ffb547;
  --crit: #ff6b6b;

  --serif: 'JetBrains Mono', ui-monospace, monospace;
  --serif-italic: 'Instrument Serif', serif;
  --sans: 'Space Grotesk', -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-long: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg: #f6f7f4;
  --bg-2: #ededea;
  --bg-3: #e4e5e1;
  --ink: #0d1210;
  --ink-dim: #4a5551;
  --ink-mute: #7a857f;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.16);
  --acc: #00a860;
  --acc-soft: #00a86022;
  --acc-deep: #cdeedc;
  --acc-glow: #00a860;
  --card: #ffffff;
  --card-hi: #fafbf8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(70vmin 50vmin at 85% -10%, var(--acc-soft), transparent 60%),
    radial-gradient(55vmin 45vmin at -10% 110%, var(--acc-soft), transparent 55%);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }

::selection { background: var(--acc); color: #000; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ========== TYPOGRAPHY ========== */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.eyebrow::before {
  content: '[';
  color: var(--acc);
}
.eyebrow::after {
  content: ']';
  color: var(--acc);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.035em;
  font-variation-settings: "opsz" 96, "wdth" 85;
  text-wrap: balance;
  padding-bottom: 0.08em;
}
.display em {
  font-style: normal;
  font-weight: 500;
  color: var(--acc);
  letter-spacing: inherit;
}

.sec-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--acc);
}

/* ========== BUTTONS (DotDNA / awsmd style) ========== */
.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 22px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform .4s var(--ease), background .3s;
  position: relative;
  overflow: hidden;
}
.btn-pill .bubble {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--acc);
  display: grid;
  place-items: center;
  color: #000;
  font-size: 14px;
  transition: transform .5s var(--ease);
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill:hover .bubble { transform: rotate(-45deg) scale(1.08); }
.btn-pill:hover .bubble.bubble-face { transform: scale(1.08); } /* keep face upright */
.btn-pill .bubble.bubble-face img {
  width: 65%;
  height: 65%;
  object-fit: contain;
  display: block;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink);
  transition: border-color .3s, background .3s, color .3s;
  font-family: var(--mono);
  text-transform: uppercase;
}
.btn-ghost:hover {
  border-color: var(--acc);
  background: var(--acc-soft);
  color: var(--acc);
}

.btn-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--acc);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: gap .3s var(--ease);
}
.btn-arrow:hover { gap: 14px; }

/* ========== NAV (floating pill) ========== */
.nav {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 22px;
  background: rgba(10, 15, 13, 0.88);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: 999px;
  max-width: calc(100vw - 40px);
}
[data-theme="light"] .nav { background: rgba(255, 255, 255, 0.82); }

.nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 22px 4px 4px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.nav .brand-logo {
  height: 36px;
  width: auto;
  max-width: none;
  flex-shrink: 0;
  display: block;
}
.footer-logo {
  height: 48px;
  width: auto;
  display: block;
  margin-bottom: 18px;
}
.nav .brand-word {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: baseline;
}
.nav .brand-word em {
  color: var(--acc);
  font-style: normal;
  font-weight: 500;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  gap: 2px;
  padding: 0 6px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-dim);
  border-radius: 999px;
  transition: color .2s, background .2s;
  position: relative;
  white-space: nowrap;
}
.nav-links a::before {
  content: '+';
  color: var(--acc);
  margin-right: 6px;
  opacity: 0;
  transition: opacity .2s;
  display: none;
}
.nav-links a.active::before,
.nav-links a:hover::before { opacity: 1; display: inline; }
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-links a.active { color: var(--ink); background: rgba(255,255,255,0.06); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.icon-btn {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-dim);
  transition: color .2s, background .2s;
  font-size: 14px;
}
.icon-btn:hover { color: var(--acc); background: rgba(255,255,255,0.04); }

/* ========== LAYOUT ========== */
.section {
  position: relative;
  padding: 140px 40px;
  z-index: 1;
}

/* ========== REVEAL ANIMATIONS ========== */
/* Subtle fade+slide on section enter */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: .05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .12s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .19s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .26s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .33s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .47s; }
.reveal-stagger.in > * {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ========== SECTION DIVIDER ========== */
.section-divider {
  position: relative;
  height: 1px;
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 40px;
  z-index: 2;
}
.section-divider::before {
  content: '';
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--line-strong) 12%,
    var(--line-strong) 88%,
    transparent 100%);
}
.section-divider .dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
}
.section-divider .dot::after {
  content: '';
  position: absolute;
  inset: 1.5px;
  border-radius: 50%;
  background: var(--acc);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.section-divider.in .dot::after { opacity: 1; }
.section-divider .label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.25em;
  color: var(--ink-dim);
  text-transform: uppercase;
  white-space: nowrap;
  background: var(--bg);
  padding: 0 10px;
  opacity: 0;
  transition: opacity .5s var(--ease) .15s;
}
.section-divider.in .label { opacity: 1; }
/* scanline that travels across on reveal */
.section-divider .scan {
  position: absolute;
  left: 40px;
  top: 0;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--acc), transparent);
  opacity: 0;
  pointer-events: none;
}
.section-divider.in .scan {
  animation: scanline 2.2s var(--ease) forwards;
}
@keyframes scanline {
  0% { left: 40px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { left: calc(100% - 120px); opacity: 0; }
}

.section-inner {
  max-width: 1400px;
  margin: 0 auto;
}
.sec-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.sec-head .head-left { display: flex; flex-direction: column; gap: 36px; }
.sec-head h2 {
  font-size: clamp(44px, 6vw, 84px);
  line-height: 1.05;
  padding-bottom: 0.3em;
}
.sec-head .lead {
  color: var(--ink-dim);
  font-size: 18px;
  line-height: 1.6;
  max-width: 48ch;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 40px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.55;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60vmin 50vmin at 50% 50%, rgba(5,8,7,0.55) 0%, rgba(5,8,7,0.85) 55%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 16%, transparent 80%, var(--bg) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-top: 40px;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}
.hero-eyebrow .br {
  color: var(--acc);
}
.hero-eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 14px var(--acc);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 120px);
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 22ch;
  padding-bottom: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 3;
}
.hero h1 .line {
  display: inline;
  margin-right: 0.2em;
}
.hero h1 em {
  font-style: normal;
  font-weight: 500;
  color: var(--acc);
  letter-spacing: inherit;
  text-transform: inherit;
}

.hero-footer {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 56px 80px;
  align-items: end;
  position: relative;
  z-index: 3;
}
.hero-footer .hero-lede {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.55;
  max-width: 50ch;
}
.hero-footer .hero-cta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ====== FLOATING MODULES ====== */
.hero-mod {
  position: absolute;
  z-index: 4;
  font-family: var(--mono);
  border: 1px solid var(--line-strong);
  background: rgba(10, 16, 13, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-radius: 14px;
  transition: transform .6s var(--ease), border-color .3s;
  animation: floatY 6s var(--ease) infinite alternate;
}
.hero-mod:hover { border-color: var(--acc); }
@keyframes floatY {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

.hero-mod-feed {
  top: 22%;
  right: 6%;
  width: 320px;
  padding: 14px 16px;
  animation-delay: 0s;
}
.hero-mod-feed .mod-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-mod-feed .mod-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acc);
  box-shadow: 0 0 8px var(--acc);
  animation: pulse 1.6s infinite;
}
.hero-mod-feed .mod-time {
  margin-left: auto;
  color: var(--ink-mute);
}
.hero-mod-feed .ev {
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink);
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.hero-mod-feed .ev.sub {
  margin-top: 4px;
  color: var(--ink-dim);
}
.hero-mod-feed .ev-tag.crit { color: var(--crit); font-weight: 600; }
.hero-mod-feed .ev-arrow { color: var(--acc); }

.hero-mod-stat {
  bottom: 25%;
  left: 5%;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  animation-delay: 2s;
  min-width: 180px;
}
.hero-mod-stat .stat-num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--acc);
  letter-spacing: -0.03em;
  line-height: 1;
}
.hero-mod-stat .stat-lbl {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .hero-mod-feed, .hero-mod-stat { display: none; }
}

.hero-grid-2 {
  /* legacy — no longer rendered */
  display: none;
}
.hero-lede {
  color: var(--ink-dim);
  font-size: 17px;
  line-height: 1.6;
  max-width: 44ch;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-self: end;
}

/* corners (floating metadata) */
.hero-meta {
  position: absolute;
  z-index: 3;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-meta.tl { top: 110px; left: 40px; }
.hero-meta.tr { top: 110px; right: 40px; text-align: right; }
.hero-meta.bl { bottom: 40px; left: 40px; }
.hero-meta.br { bottom: 40px; right: 40px; text-align: right; }
.hero-meta .v { color: var(--ink); }

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.hero-scroll .arrow {
  width: 14px; height: 14px;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* marquee at end of hero */
.hero-marquee {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  z-index: 3;
  background: rgba(5, 8, 7, 0.5);
  backdrop-filter: blur(10px);
  display: none;
}

/* ========== STATS STRIP ========== */
.stats-strip {
  position: relative;
  padding: 60px 40px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  z-index: 1;
}
.stats-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
  border-left: 2px solid var(--acc);
  position: relative;
  overflow: hidden;
}
.stat .num {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.045em;
  font-variation-settings: "opsz" 96, "wdth" 85;
  font-weight: 400;
}
.stat .num .unit {
  font-size: 0.4em;
  color: var(--acc);
  font-weight: 500;
  margin-left: 4px;
  font-family: var(--mono);
}
.stat .label {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 28ch;
}

/* ========== SERVICE GRID (offensive 4-up) ========== */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0 40px;
}
@media (max-width: 1200px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .svc-grid { grid-template-columns: 1fr; padding: 0 20px; }
}

/* ========== CAROUSEL (services — DotDNA style) ========== */
.carousel-wrap {
  position: relative;
  padding-left: 40px;
}
.carousel-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-right: 60vw;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-nav {
  display: flex;
  gap: 8px;
  margin-top: 32px;
  justify-content: center;
  align-items: center;
}
.car-btn {
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-dim);
  transition: all .3s var(--ease);
}
.car-btn:hover { border-color: var(--acc); color: var(--acc); background: var(--acc-soft); }
.car-progress {
  display: flex;
  gap: 6px;
  margin: 0 16px;
  align-items: center;
}
.car-progress .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: all .4s var(--ease);
}
.car-progress .dot.active {
  width: 32px;
  border-radius: 4px;
  background: var(--acc);
  box-shadow: 0 0 16px var(--acc);
}

/* service card */
.svc-card {
  position: relative;
  flex: none;
  width: auto;
  min-height: 520px;
  height: 520px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--card);
  scroll-snap-align: start;
  transition: transform .5s var(--ease), border-color .3s;
  display: flex;
  flex-direction: column;
}
.svc-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }

.svc-visual {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #000;
}
.svc-visual canvas, .svc-visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.svc-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
}

.svc-visual .visual-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--acc);
  background: rgba(0, 255, 136, 0.1);
  display: grid;
  place-items: center;
  color: var(--acc);
  z-index: 2;
  backdrop-filter: blur(8px);
}
.svc-visual .visual-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  z-index: 2;
}

.svc-body {
  position: relative;
  padding: 28px 28px 32px;
  background: var(--card);
  z-index: 2;
  border-top: 1px solid var(--line);
}
.svc-body h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
.svc-body p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.svc-body .meta {
  display: flex;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.svc-body .meta span { display: flex; gap: 6px; align-items: center; }
.svc-body .meta b { color: var(--ink); font-weight: 500; }

/* ========== DEFENSIVE — live SOC terminal + viz ========== */
.soc {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.soc-term {
  background: #0a100d;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}
.soc-term-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.soc-term-head .dots { display: flex; gap: 6px; }
.soc-term-head .dots span {
  width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong);
}
.soc-term-head .dots span:nth-child(1) { background: #ff6b6b; }
.soc-term-head .dots span:nth-child(2) { background: #ffb547; }
.soc-term-head .dots span:nth-child(3) { background: var(--acc); }
.soc-term-head .title {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.soc-term-body {
  padding: 18px 22px;
  flex: 1;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(transparent 95%, rgba(0,255,136,0.03) 95%);
  background-size: 100% 22px;
}
.soc-term-line {
  opacity: 0;
  transform: translateY(6px);
  animation: slideIn .4s var(--ease) forwards;
}
@keyframes slideIn {
  to { opacity: 1; transform: translateY(0); }
}
.soc-term-line .time { color: var(--ink-mute); margin-right: 10px; }
.soc-term-line .tag-ok { color: var(--acc); }
.soc-term-line .tag-warn { color: var(--warn); }
.soc-term-line .tag-crit { color: var(--crit); }
.soc-term-line .agent { color: #6da3ff; }
.soc-term-line .txt { color: var(--ink-dim); }
.soc-term-line .val { color: var(--ink); }

/* right side — defensive cards */
.def-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 520px;
}
.def-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  background: var(--card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color .3s, transform .4s var(--ease);
}
.def-card:hover { border-color: var(--acc); transform: translateY(-3px); }
.def-card::before {
  content: '';
  position: absolute;
  inset: auto -40% -60% auto;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acc-soft), transparent 70%);
  filter: blur(20px);
  opacity: 0;
  transition: opacity .5s;
}
.def-card:hover::before { opacity: 1; }
.def-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--acc);
  margin-bottom: 16px;
}
.def-card h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
  font-variation-settings: "opsz" 96, "wdth" 85;
  letter-spacing: -0.01em;
}
.def-card p {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.55;
}

/* ========== AGENTIC — orbit diagram ========== */
.agentic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.agent-viz {
  position: relative;
  aspect-ratio: 1;
  max-width: 620px;
  margin: 0 auto;
  width: 100%;
}
.agent-viz canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.agent-viz .core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 130px; height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acc) 0%, var(--acc-deep) 70%);
  box-shadow: 0 0 60px var(--acc), inset 0 0 40px rgba(0,0,0,0.4);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000;
  z-index: 2;
}
.agent-viz .core::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid var(--acc);
  animation: ringPulse 3s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.agent-feats {
  display: grid;
  gap: 14px;
}
.agent-feat {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
  cursor: default;
}
.agent-feat:first-child { border-top: 0; }
.agent-feat:hover { padding-left: 12px; }
.agent-feat .tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--acc);
  text-transform: uppercase;
  width: 100px;
  padding-top: 6px;
}
.agent-feat h4 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
.agent-feat p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.55;
}

/* ========== INCIDENT TIMELINE ========== */
.inc-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin-top: 60px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--card);
}
.inc-step:first-child { border-top-left-radius: 24px; border-bottom-left-radius: 24px; }
.inc-step:last-child  { border-top-right-radius: 24px; border-bottom-right-radius: 24px; }
.inc-step {
  position: relative;
  padding: 32px 24px 28px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: background .3s, transform .4s;
  cursor: default;
}
.inc-step:last-child { border-right: 0; }
.inc-step:hover { background: var(--card-hi); }
.inc-step .t {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--acc);
  text-transform: uppercase;
}
.inc-step .dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--acc);
  position: absolute;
  top: -8px;
  left: 24px;
  box-shadow: 0 0 0 4px var(--bg);
}
.inc-step.crit .dot {
  background: var(--crit);
  border-color: var(--crit);
  box-shadow: 0 0 0 4px var(--bg), 0 0 20px var(--crit);
  animation: critPulse 1.5s infinite;
}
@keyframes critPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.inc-step h4 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
.inc-step p {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}

/* ========== MITRE GRID ========== */
.mitre {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  margin-top: 40px;
}
.mitre-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  margin-bottom: 24px;
}
.mitre-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mitre-col .head {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  min-height: 44px;
}
.mitre-col .cell {
  aspect-ratio: 1 / 0.7;
  border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: all .3s var(--ease);
  position: relative;
}
.mitre-col .cell.cov {
  background: var(--acc-deep);
  border-color: var(--acc);
}
.mitre-col .cell.cov:hover {
  background: var(--acc);
  transform: scale(1.15);
  z-index: 2;
  box-shadow: 0 0 20px var(--acc);
}
.mitre-col .cell.gap:hover {
  border-color: var(--crit);
}

.mitre-legend {
  display: flex;
  gap: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.mitre-legend span { display: flex; align-items: center; gap: 8px; }
.mitre-legend .swatch {
  width: 14px; height: 14px; border-radius: 3px;
}
.mitre-legend .swatch.cov { background: var(--acc-deep); border: 1px solid var(--acc); }
.mitre-legend .swatch.gap { background: var(--bg-2); border: 1px solid var(--line); }

.adv-feats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.adv-feat {
  padding: 24px 0;
  border-top: 1px solid var(--acc);
}
.adv-feat h4 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
.adv-feat p {
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ========== MANIFESTO ========== */
.manifesto {
  position: relative;
  padding: 180px 40px;
  overflow: hidden;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.manifesto canvas {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  z-index: 0;
}
.manifesto-inner {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.manifesto h2 {
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 400;
  font-variation-settings: "opsz" 96, "wdth" 85;
  max-width: 34ch;
  color: var(--ink);
  text-wrap: pretty;
}
.manifesto h2 em { color: var(--acc); font-style: normal; font-weight: 500; }
.manifesto h2 strong { font-weight: 500; color: var(--ink); }
.manifesto .kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.manifesto .kicker::before, .manifesto .kicker::after {
  content: ''; width: 40px; height: 1px; background: var(--acc);
}

/* ========== CONTACT ========== */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  margin-top: 20px;
}
.contact-form {
  display: grid;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-variation-settings: "opsz" 96, "wdth" 85;
  font-weight: 400;
  transition: border-color .3s;
  resize: none;
}
.field textarea { min-height: 80px; font-size: 18px; }
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--acc);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--ink-mute);
  font-family: var(--sans);
  font-size: 16px;
  font-style: italic;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* ========== CONTACT (cards only) ========== */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
  max-width: 900px;
}
@media (max-width: 800px) {
  .contact-cards { grid-template-columns: 1fr; }
}

.contact-card {
  position: relative;
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color .25s, transform .35s var(--ease), background .25s;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}
.contact-card:hover {
  border-color: var(--acc);
  transform: translateY(-3px);
  background: var(--card-hi);
}
.contact-card .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.contact-card .v {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  word-break: break-all;
}
.contact-card:hover .v { color: var(--acc); }
.contact-card .note {
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.5;
}
.contact-card .contact-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--ink-dim);
  font-size: 18px;
  transition: color .25s, transform .25s var(--ease);
}
.contact-card:hover .contact-arrow {
  color: var(--acc);
  transform: translate(2px, -2px);
}

/* deprecated form blocks (kept for backward-compat, no longer rendered) */
.contact-wrap, .contact-form, .contact-side { /* unused */ }

/* ========== FOOTER ========== */
.footer {
  padding: 80px 40px 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand h3 {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 16px;
  font-variation-settings: "opsz" 96, "wdth" 85;
}
.footer-brand h3 em { color: var(--acc); font-style: normal; font-weight: 500; }
.footer-brand p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  max-width: 36ch;
}
.footer-col h5 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  color: var(--ink);
  font-size: 14px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--acc); }

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ========== TWEAKS PANEL ========== */
.tweaks {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 300px;
  background: rgba(10, 16, 13, 0.9);
  backdrop-filter: blur(30px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px;
  z-index: 200;
  display: none;
  font-size: 13px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}
.tweaks.open { display: block; }
.tweaks h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--acc);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.tweak-row {
  margin-bottom: 16px;
}
.tweak-row label {
  display: block;
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.tweak-options { display: flex; gap: 6px; flex-wrap: wrap; }
.tweak-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-dim);
  cursor: pointer;
  transition: all .2s;
}
.tweak-chip:hover { color: var(--ink); border-color: var(--line-strong); }
.tweak-chip.active { background: var(--acc); color: #000; border-color: var(--acc); }
.tweak-swatch {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s;
}
.tweak-swatch:hover { transform: scale(1.15); }
.tweak-swatch.active { border-color: var(--ink); transform: scale(1.1); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .sec-head { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .soc { grid-template-columns: 1fr; }
  .def-grid { height: auto; }
  .agentic { grid-template-columns: 1fr; }
  .inc-timeline { grid-template-columns: 1fr 1fr; }
  .inc-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .adv-feats { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-meta.tl, .hero-meta.tr, .hero-meta.bl, .hero-meta.br { display: none; }
  .hero-grid-2 { grid-template-columns: 1fr; gap: 30px; }
  .hero-cta-row { justify-self: start; }
}

@media (max-width: 700px) {
  .section { padding: 80px 22px; }
  .stats-grid { grid-template-columns: 1fr; }
  .inc-timeline { grid-template-columns: 1fr; }
  .adv-feats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .hero { padding: 110px 22px 60px; min-height: 100svh; }
  .hero-meta { display: none; }

  /* Stack lede above CTAs: the 2-col footer squeezed the paragraph
     to one word per line on phones. */
  .hero-footer {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
    align-items: start;
  }
  .hero-footer .hero-lede { max-width: 60ch; }
  .hero-footer .hero-cta-row { justify-self: start; }

  /* Keep all 12 MITRE tactics reachable via horizontal scroll instead
     of being clipped by the shell's overflow-x: hidden. */
  .mitre { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mitre-grid {
    grid-template-columns: repeat(12, minmax(52px, 1fr));
    min-width: max-content;
  }
}
