/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 52px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav-logo img { height: 22px; width: auto; }
[data-theme="dark"] .nav-logo img { filter: invert(1) brightness(1.1); }

.nav-links {
  display: flex; gap: 28px; justify-content: center;
  font-size: 13px;
  font-weight: 400;
}
.nav-links a { color: var(--fg-2); position: relative; padding: 4px 0; transition: color .2s; }
.nav-links a:hover { color: var(--fg); }
.nav-links a.active { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 32px; height: 32px;
  border-radius: 999px;
  display: grid; place-items: center;
  transition: background .2s;
  color: var(--fg-2);
}
.theme-toggle:hover { background: var(--bg-2); color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; }

.btn {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 10px 20px;
  border: 0;
  background: var(--fg);
  color: var(--bg);
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s, background .2s, color .2s, opacity .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: scale(1.02); opacity: 0.9; }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(2px); }
.btn.primary {
  background: var(--accent); color: #fff;
}
.btn.primary:hover { background: var(--accent-2); opacity: 1; }
.btn.ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--rule-c);
}
.btn.ghost:hover { background: var(--bg-2); border-color: var(--fg-3); opacity: 1; }
.btn.small { padding: 7px 16px; font-size: 13px; }
.btn.link {
  background: transparent; color: var(--accent); padding: 0; border-radius: 0;
  font-weight: 500;
}
.btn.link:hover { background: transparent; color: var(--accent-2); opacity: 1; }

/* ============ HERO ============ */
.hero {
  padding: 80px 0 40px;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px color-mix(in oklab, var(--good) 25%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in oklab, var(--good) 0%, transparent); }
}

.display {
  font-weight: 600;
  font-size: var(--t-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 auto 28px;
  max-width: 14ch;
}
.display .accent { color: var(--accent); }

.lede {
  font-size: clamp(19px, 1.5vw, 24px);
  line-height: 1.38;
  color: var(--fg-2);
  max-width: 54ch;
  margin: 0 auto 36px;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Hero visual — defense rings (brand graphic, no product/data) */
.rings-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 24px 0 8px;
  color: var(--fg);
}
.rings-svg {
  width: min(420px, 80vw); height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.06));
}
.rings-legend {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.rings-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--fg-2);
  padding: 7px 14px; border: 1px solid var(--rule-c);
  border-radius: 999px; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.rings-pill:hover { color: var(--fg); border-color: var(--fg-3); background: var(--bg-2); }
.rings-pill.is-active { color: var(--fg); border-color: var(--accent); background: color-mix(in oklab, var(--accent) 8%, transparent); }
.rings-dot { width: 6px; height: 6px; border-radius: 50%; }

.hero-visual {
  margin: 72px auto 0;
  max-width: 980px;
  padding: 0 var(--gutter);
}

.ops {
  background: var(--bg-2);
  color: var(--fg);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  text-align: left;
}
.ops-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 1px solid var(--rule-c);
  color: var(--fg-3);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500;
  font-family: var(--sans);
}
.ops-head .live { display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.ops-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); animation: pulse 1.6s infinite;
}
.ops-feed { display: flex; flex-direction: column; gap: 2px; min-height: 220px; }
.ops-line {
  display: grid;
  grid-template-columns: 72px 72px 1fr;
  gap: 16px;
  padding: 8px 10px;
  border-radius: 6px;
  opacity: 0;
  transform: translateY(4px);
  animation: feedIn .4s forwards;
  color: var(--fg-2);
}
.ops-line:hover { background: var(--bg-3); }
.ops-line .tstamp { color: var(--fg-3); }
.ops-line .tag {
  padding: 2px 8px; border-radius: 999px; font-size: 10px; text-align: center;
  align-self: center;
  font-weight: 600; font-family: var(--sans); letter-spacing: 0.03em;
}
.ops-line .tag.ok { background: color-mix(in oklab, var(--good) 14%, transparent); color: var(--good); }
.ops-line .tag.warn { background: rgba(215, 155, 30, 0.14); color: #b6811e; }
[data-theme="dark"] .ops-line .tag.warn { color: #ffc067; }
.ops-line .tag.crit { background: var(--accent-soft); color: var(--accent); }
.ops-line .tag.info { background: rgba(10, 132, 255, 0.12); color: #0a84ff; }
[data-theme="dark"] .ops-line .tag.info { color: #64a9ff; }
@keyframes feedIn { to { opacity: 1; transform: translateY(0); } }

.ops-foot {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--rule-c);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.ops-stat .n { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--fg); }
.ops-stat .l { font-size: 11px; color: var(--fg-3); font-family: var(--sans); margin-top: 2px; }

/* ============ MARQUEE ============ */
.marquee {
  padding: 20px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  overflow: hidden;
  background: var(--bg);
}
.marquee-track {
  display: flex; gap: 56px;
  animation: scroll 50s linear infinite;
  white-space: nowrap;
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--rule-c);
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ SECTION ============ */
.section { padding: 120px 0; }
.section.tight { padding: 72px 0; }

.section-head { text-align: center; margin-bottom: 72px; }
.section-head h2 {
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0 auto 20px;
  max-width: 22ch;
}
.section-head h2 .accent { color: var(--accent); }
.section-head .lede-s {
  font-size: clamp(18px, 1.35vw, 22px);
  line-height: 1.42;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 auto;
  font-weight: 400;
  letter-spacing: -0.012em;
}

.eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}

/* ============ SERVICE CARDS — Apple bento ============ */
.services-bento {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 900px) {
  .services-bento { grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto; }
  .services-bento .service:first-child { grid-row: span 1; }
}
.service {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 420px;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .3s ease;
  color: var(--fg);
  border: 1px solid var(--rule-soft);
}
.service:hover { transform: translateY(-2px); }
.service .idx { color: var(--fg-3); font-weight: 500; }
.service h3 {
  font-weight: 600;
  font-size: clamp(26px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0;
}
.service p { color: var(--fg-2); margin: 0; max-width: 30ch; font-size: 15px; }
.service-viz { margin-top: auto; height: 140px; position: relative; }
.service .arrow {
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.service:hover .arrow { gap: 8px; }

/* Hero card — full-bleed variant */
.service.featured {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.service.featured p { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.service.featured .idx { color: color-mix(in oklab, var(--bg) 50%, transparent); }
.service.featured .arrow { color: var(--accent); }

/* ============ STAT BAND ============ */
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--bg-2);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--rule-soft);
}
.stat .n {
  font-weight: 600;
  font-size: clamp(44px, 4vw, 64px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 6px;
}
.stat .n .accent { color: var(--accent); }
.stat .l {
  font-size: 13px;
  color: var(--fg-3);
  font-weight: 500;
}

/* ============ BOOT CAMP REGIMEN ============ */
.regimen {
  display: grid; grid-template-columns: 1fr; gap: 16px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--rule-soft);
}
@media (min-width: 960px) { .regimen { grid-template-columns: 280px 1fr; } }
.regimen-nav { display: flex; flex-direction: column; gap: 6px; }
.regimen-nav button {
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  align-items: center;
  transition: background .2s, color .2s;
  color: var(--fg-2);
}
.regimen-nav button:hover { background: var(--bg-3); color: var(--fg); }
.regimen-nav button.active { background: var(--fg); color: var(--bg); }
.regimen-nav button .idx { color: inherit; opacity: 0.6; }
.regimen-nav button .title { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.regimen-body {
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius);
  min-height: 480px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
@media (max-width: 720px) { .regimen-body { grid-template-columns: 1fr; padding: 28px; min-height: auto; } }
.regimen-body h3 {
  font-weight: 600;
  font-size: clamp(26px, 2.2vw, 36px); line-height: 1.1;
  letter-spacing: -0.025em; margin: 0 0 14px;
}
.regimen-body p { color: var(--fg-2); margin: 0 0 16px; }
.regimen-chart { position: relative; }
.regimen-chart svg { width: 100%; height: auto; }

/* Checklist */
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li {
  display: grid; grid-template-columns: 18px 1fr; gap: 12px;
  font-size: 14px; color: var(--fg-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: '✓'; color: var(--accent); font-weight: 600;
}

/* ============ CONTACT ============ */
.contact {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule-soft);
  display: grid; grid-template-columns: 1fr;
}
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact-left {
  padding: 64px 56px;
  background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  gap: 32px;
}
.contact-left .eyebrow { color: var(--accent); }
.contact-right { padding: 64px 56px; }
.contact h2 {
  font-weight: 600;
  font-size: clamp(32px, 3.4vw, 52px); line-height: 1.03;
  letter-spacing: -0.028em; margin: 0 0 20px;
}
.contact h2 .accent { color: var(--accent); }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info .kv { display: flex; flex-direction: column; gap: 4px; }
.contact-info .kv .k { font-size: 12px; color: color-mix(in oklab, var(--bg) 55%, transparent); font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.contact-info .kv .v { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px; font-weight: 500;
  color: var(--fg-3);
  display: flex; justify-content: space-between;
}
.field label .err { color: var(--accent); font-weight: 500; }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: 15px;
  background: var(--bg);
  border: 1px solid var(--rule-c);
  color: var(--fg);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.invalid input, .field.invalid textarea { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; font-family: var(--sans); }

.form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: 13px; color: var(--fg-3); }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--accent); }

/* ============ FOOTER ============ */
.footer {
  padding: 48px 0 24px;
  background: var(--bg);
  color: var(--fg-2);
  border-top: 1px solid var(--rule-soft);
  font-size: 13px;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; margin-bottom: 32px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 12px; font-weight: 600; color: var(--fg); margin: 0 0 14px; letter-spacing: -0.005em; }
.footer a { color: var(--fg-3); display: block; padding: 4px 0; transition: color .15s; }
.footer a:hover { color: var(--fg); }
.footer-bottom {
  border-top: 1px solid var(--rule-soft);
  padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 12px;
  color: var(--fg-3);
}
.footer-brand { font-weight: 600; font-size: 22px; color: var(--fg); margin-bottom: 12px; letter-spacing: -0.02em; }
.footer-brand .accent { color: var(--accent); }

/* ============ PAGE HEADER ============ */
.page-header {
  padding: 80px 0 56px;
  text-align: center;
}
.page-header h1 {
  font-weight: 600;
  font-size: var(--t-h1); line-height: 1.04;
  letter-spacing: -0.03em; margin: 16px auto 24px;
  max-width: 20ch;
}
.page-header h1 .accent { color: var(--accent); }
.page-header .lede-ph {
  max-width: 56ch;
  margin: 0 auto;
  color: var(--fg-2);
  font-size: clamp(19px, 1.45vw, 22px);
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.01em;
}
.crumb {
  font-size: 12px; font-weight: 500;
  color: var(--fg-3);
  display: inline-flex; gap: 8px; align-items: center;
}
.crumb .sep { color: var(--rule-c); }
.crumb .active { color: var(--accent); }

/* ============ OFFENSIVE — methodology stepper ============ */
.method {
  display: grid; grid-template-columns: 1fr;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--rule-soft);
  gap: 16px;
}
@media (min-width: 960px) { .method { grid-template-columns: 320px 1fr; } }
.method-steps { display: flex; flex-direction: column; gap: 4px; }
.method-step {
  padding: 16px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .2s;
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  align-items: start;
  color: var(--fg-2);
}
.method-step:hover { background: var(--bg-3); }
.method-step.active { background: var(--fg); color: var(--bg); }
.method-step .num {
  font-family: var(--mono); font-size: 13px;
  opacity: 0.6; padding-top: 3px;
}
.method-step .t { font-size: 16px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 4px; }
.method-step .s { font-size: 12px; opacity: 0.7; margin: 0; }
.method-step.active .s { opacity: 0.65; }

.method-body {
  padding: 40px;
  background: var(--bg);
  border-radius: var(--radius);
  min-height: 520px;
  display: flex; flex-direction: column;
}
@media (max-width: 720px) { .method-body { padding: 28px; min-height: auto; } }
.method-body h3 {
  font-weight: 600;
  font-size: clamp(26px, 2.4vw, 38px); line-height: 1.08;
  letter-spacing: -0.025em; margin: 0 0 16px;
}
.method-term {
  background: #0f0f10; color: #f5f5f7;
  border-radius: var(--radius);
  padding: 20px;
  font-family: var(--mono); font-size: 12.5px;
  line-height: 1.72;
  min-height: 220px;
  margin-top: auto;
  overflow: hidden;
  border: 1px solid var(--rule-c);
}
[data-theme="dark"] .method-term { background: #000; }
.method-term .prompt { color: #5ae6a0; }
.method-term .out { color: rgba(245,245,247,0.75); padding-left: 12px; }
.method-term .out.crit { color: #ff6f5e; }
.method-term .out.info { color: #7ab4ff; }
.method-term .cursor { display: inline-block; width: 7px; height: 13px; background: #5ae6a0; vertical-align: -1px; margin-left: 2px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes nv-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ============ SURFACES GRID (Offensive) — Apple bento ============ */
.surfaces-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .surfaces-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .surfaces-grid { grid-template-columns: repeat(3, 1fr); } }
.surface {
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column;
  min-height: 380px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  border: 1px solid #2a2a2d;
  position: relative;
}
[data-theme="dark"] .surface { background: #1f1f22; border-color: #303033; }
.surface:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); border-color: var(--fg-3); }
[data-theme="dark"] .surface:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.surface-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.surface-idx { font-family: var(--mono); font-size: 12px; color: rgba(245,245,247,0.6); }
.surface .badge {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: #ff8a76;
  padding: 4px 10px;
  background: rgba(255,138,118,0.16);
  border-radius: 999px;
}
.surface h3 { font-weight: 600; font-size: 26px; letter-spacing: -0.022em; margin: 4px 0 10px; line-height: 1.1; color: #ffffff; }
.surface p { margin: 0 0 18px; color: rgba(245,245,247,0.88); font-size: 14px; line-height: 1.55; }
.surface-bullets { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.surface-bullets li {
  font-size: 12px; font-weight: 500;
  color: rgba(245,245,247,0.82); padding-left: 12px; position: relative;
}
.surface-bullets li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 4px; height: 4px; background: #ff8a76; border-radius: 50%;
}
.surface-foot {
  margin-top: auto;
  font-size: 14px; color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.surface:hover .surface-foot { gap: 8px; }

/* ============ KILL CHAIN ============ */
.killchain { background: var(--bg-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule-soft); }
.kc-head, .kc-row {
  display: grid; grid-template-columns: 100px 140px 1fr 120px;
  padding: 16px 28px;
  align-items: center;
}
@media (max-width: 720px) { .kc-head, .kc-row { grid-template-columns: 80px 1fr 80px; } .kc-head .kc-e, .kc-row .kc-e { grid-column: 1 / -1; padding-left: 80px; padding-top: 6px; font-size: 14px; } .kc-head .kc-p, .kc-row .kc-p { display: none; } }
.kc-head { background: var(--bg-3); border-bottom: 1px solid var(--rule-soft); }
.kc-head .smallcaps { color: var(--fg-3); }
.kc-row { border-bottom: 1px solid var(--rule-soft); font-size: 14px; background: var(--bg); }
.kc-row:last-child { border-bottom: none; }
.kc-row:hover { background: var(--bg-2); }
.kc-t { font-family: var(--mono); color: var(--fg-3); font-size: 13px; }
.kc-p { color: var(--fg-2); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.kc-e { color: var(--fg); font-weight: 500; }
.kc-s { text-align: right; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; }
.kc-s.info { color: var(--fg-3); }
.kc-s.warn { color: #b6811e; }
.kc-s.crit { color: var(--accent); }

/* ============ DELIVERABLES (dark section) ============ */
.deliv-section {
  background: var(--fg); color: var(--bg);
  padding: 120px 0; margin: 0 0 0 0;
  border-radius: var(--radius-lg);
}
.deliv-section .section-head h2 { color: var(--bg); }
.deliv-section .section-head .lede-s { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.deliv { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .deliv { grid-template-columns: repeat(3, 1fr); } }
.deliv-item {
  padding: 32px;
  background: color-mix(in oklab, var(--bg) 8%, transparent);
  border-radius: var(--radius);
  border: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}

/* ============ ASSURANCE — frameworks grid ============ */
.frameworks {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
@media (min-width: 720px) { .frameworks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .frameworks { grid-template-columns: repeat(3, 1fr); } }
.fw {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  min-height: 260px;
  transition: transform .25s;
  border: 1px solid var(--rule-soft);
}
.fw:hover { transform: translateY(-2px); }
.fw .badge {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent);
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 999px;
  align-self: flex-start;
}
.fw h3 { font-weight: 600; font-size: 26px; letter-spacing: -0.022em; margin: 4px 0; line-height: 1.1; }
.fw p { margin: 0; color: var(--fg-2); font-size: 14px; }
.fw .link { margin-top: auto; font-size: 14px; color: var(--accent); font-weight: 500; }

/* ============ LOGIN ============ */
.login-shell {
  min-height: calc(100vh - 52px);
  display: grid; grid-template-columns: 1fr;
  background: var(--bg);
}
@media (min-width: 960px) { .login-shell { grid-template-columns: 1fr 1fr; } }
.login-left {
  padding: 64px 48px;
  background: var(--fg); color: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.login-left h2 {
  font-weight: 600;
  font-size: clamp(32px, 3.5vw, 52px); line-height: 1.03;
  letter-spacing: -0.028em;
  margin: 0;
}
.login-left h2 .accent { color: var(--accent); }
.login-right {
  padding: 64px 48px;
  display: flex; align-items: center; justify-content: center;
}
.login-card {
  width: 100%; max-width: 420px;
  display: flex; flex-direction: column; gap: 20px;
}
.login-card h3 { font-weight: 600; font-size: 32px; letter-spacing: -0.025em; margin: 0 0 8px; }
.login-card .sub { color: var(--fg-3); font-size: 15px; margin: 0 0 14px; }
.login-footer { font-size: 11px; color: color-mix(in oklab, var(--bg) 50%, transparent); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }

.cipher-rain {
  position: absolute; inset: 0;
  opacity: 0.1;
  pointer-events: none;
  overflow: hidden;
}
.cipher-col {
  position: absolute; top: -100%;
  font-family: var(--mono); font-size: 11px;
  color: #5ae6a0;
  animation: rain linear infinite;
  line-height: 1.4;
  white-space: pre;
}
@keyframes rain {
  0% { transform: translateY(0); }
  100% { transform: translateY(200vh); }
}

/* ============ SCROLL NARRATIVE ============ */
.narr {
  display: grid; grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 960px) { .narr { grid-template-columns: 1fr 1fr; } }
.narr-sticky {
  position: sticky; top: 84px; align-self: start;
  padding: 48px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  min-height: 400px;
  border: 1px solid var(--rule-soft);
}
.narr-list { display: flex; flex-direction: column; gap: 40px; }
.narr-item {
  padding: 24px 0;
  opacity: 0.35;
  transition: opacity .4s;
}
.narr-item.active { opacity: 1; }
.narr-item h4 { font-weight: 600; font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.022em; margin: 8px 0; }
.narr-item p { color: var(--fg-2); margin: 0; }

/* ============ TWEAK PANEL ============ */
.tweak-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 100;
  background: var(--bg);
  border: 1px solid var(--rule-c);
  border-radius: var(--radius);
  padding: 18px;
  width: 280px;
  box-shadow: var(--shadow-2);
  font-family: var(--sans);
}
.tweak-panel h5 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--fg-3); margin: 0 0 12px; }
.tweak-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tweak-row label { font-size: 12px; color: var(--fg-3); font-weight: 500; }
.tweak-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tweak-opts button {
  padding: 10px; border: 1px solid var(--rule-c); border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500;
  color: var(--fg-2);
  transition: all .2s;
}
.tweak-opts button.active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* ============ FADEUP ============ */
.fadeup { opacity: 0; transform: translateY(20px); transition: opacity .7s, transform .7s; }
.fadeup.in { opacity: 1; transform: translateY(0); }

/* ============ OFFENSIVE — stds strip ============ */
.stds-strip {
  padding: 28px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-2);
}

/* ============ ASSURANCE — timeline ============ */
.timeline-card {
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--rule-soft);
}
.timeline-bar {
  display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--bg-3); margin-bottom: 28px;
}
.timeline-bar > div { transition: flex .4s; }
.timeline-phases { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 720px) { .timeline-phases { grid-template-columns: 1fr; } }
.tl-phase { background: var(--bg); border-radius: var(--radius); padding: 20px; border: 1px solid var(--rule-soft); }

/* ============ METRICS TABLE ============ */
.metrics-card { background: var(--bg-2); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--rule-soft); }
.metrics-head, .metrics-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 18px 28px; align-items: center; }
.metrics-head { background: var(--bg-3); border-bottom: 1px solid var(--rule-soft); }
.metrics-row { border-bottom: 1px solid var(--rule-soft); background: var(--bg); }
.metrics-row:last-child { border-bottom: none; }
