/* ==========================================================================
   APCAF - High-Precision Executive Architectural Light Theme
   Pristine White Surface, Seamless Floating 3D WebGL Shield,
   High-End Glassmorphic Floating Island Navigation, Refined Monochromatic Palette
   Typography: Geist & Clash Display (Headings), Geist / Plus Jakarta Sans (Body), JetBrains Mono (Code/IDs)
   ========================================================================== */

:root {
  /* High-End Swiss & Enterprise Light Neutral Palette */
  --bg-app: #fcfcfd;
  --bg-subtle: #f4f5f8;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f8fafc;
  --bg-surface-hover: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);
  --bg-glass-card: rgba(255, 255, 255, 0.94);

  /* Hairline Precision Borders & Calipers */
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-card: rgba(0, 0, 0, 0.08);
  --border-active: rgba(0, 0, 0, 0.22);
  --border-dark: #09090b;

  /* Obsidian & High-Legibility Slate Typography */
  --text-pure: #09090b;
  --text-head: #18181b;
  --text-body: #52525b;
  --text-dim: #71717a;
  --text-muted: #a1a1aa;

  /* Executive Obsidian Primary Button Tokens */
  --btn-primary-bg: #09090b;
  --btn-primary-text: #ffffff;
  --btn-primary-hover: #27272a;

  /* Refined Architectural Status Tones (Monochrome & Precision Slate) */
  --status-hardened: #09090b;
  --status-hardened-bg: #f4f5f8;
  --status-hardened-border: rgba(0, 0, 0, 0.12);

  --status-defect: #09090b;
  --status-defect-bg: #f4f5f8;
  --status-defect-border: rgba(0, 0, 0, 0.12);

  --status-warning: #18181b;
  --status-warning-bg: #f4f5f8;
  --status-warning-border: rgba(0, 0, 0, 0.12);

  --accent-sky: #09090b;
  --accent-sky-bg: #f4f5f8;
  --accent-blue-subtle: #0284c7;

  /* Typography: Geist & Clash Display (Headings), Geist (Body), JetBrains Mono (Code/IDs) */
  --font-display: 'Geist', 'Clash Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Geist', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Geist Mono', monospace;

  /* Physics & Radii */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  /* Ambient Soft Layered Shadows */
  --shadow-card: 0 10px 30px -6px rgba(0, 0, 0, 0.04), 0 20px 40px -12px rgba(0, 0, 0, 0.02), inset 0 1px 0 rgba(255, 255, 255, 1);
  --shadow-nav: 0 16px 36px -8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --shadow-modal: 0 32px 80px -16px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--border-card);
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-app);
  color: var(--text-head);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

.icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Crisp Top Ambient Light Beam */
.hero-ambient-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: clamp(380px, 45vw, 560px);
  background: radial-gradient(circle at 50% -10%, rgba(0, 0, 0, 0.035) 0%, rgba(244, 245, 248, 0.5) 45%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-pure);
  letter-spacing: -0.035em;
  line-height: 1.1;
  font-weight: 700;
}

p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
}

a {
  color: var(--text-head);
  text-decoration: none;
  transition: color 140ms var(--ease-out);
}

a:hover {
  color: var(--text-pure);
}

code, pre {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 24px);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   High-End Glassmorphic Floating Island Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  pointer-events: none;
  display: flex;
  justify-content: center;
  padding: 0 clamp(10px, 2vw, 16px);
}

.nav-wrap {
  pointer-events: auto;
  width: 100%;
  max-width: 980px;
  height: 52px;
  background: var(--bg-glass);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 clamp(10px, 2vw, 14px);
  position: relative;
  transition: transform 200ms var(--ease-spring), box-shadow 200ms ease;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.12);
}

.brand-badge {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-pure);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-menu a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  transition: color 140ms var(--ease-out), background 140ms var(--ease-out);
  display: inline-block;
  white-space: nowrap;
}

.nav-menu a:hover {
  color: var(--text-pure);
  background: rgba(0, 0, 0, 0.04);
}

.nav-menu a.active {
  color: var(--text-pure);
  background: rgba(0, 0, 0, 0.06);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.btn-mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-head);
  cursor: pointer;
  padding: 0;
  transition: all 140ms var(--ease-out);
}

.btn-mobile-menu-toggle:hover {
  background: var(--bg-subtle);
  color: var(--text-pure);
}

/* Mobile Navigation Dropdown Sheet */
.mobile-nav-drawer {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 250;
  animation: fadeIn 150ms var(--ease-spring);
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all 120ms ease;
}

.mobile-nav-drawer a:hover, .mobile-nav-drawer a.active {
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
}

.mobile-nav-drawer a.active {
  color: var(--text-pure);
  font-weight: 700;
}

/* Currency Selector Pill */
.currency-selector-wrap {
  position: relative;
}

.btn-nav-currency {
  padding: 6px clamp(8px, 1.5vw, 11px);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-card);
  color: var(--text-head);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 140ms var(--ease-out);
  white-space: nowrap;
}

.btn-nav-currency:hover {
  border-color: var(--border-active);
  background: #ffffff;
}

.currency-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 180px;
  max-height: 280px;
  overflow-y: auto;
  z-index: 300;
}

.currency-dropdown-menu.open {
  display: flex;
  animation: fadeIn 120ms var(--ease-spring);
}

.currency-opt-btn {
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: transparent;
  border: none;
  color: var(--text-body);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 120ms ease;
  min-height: 36px;
}

.currency-opt-btn:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
}

.currency-opt-btn.active {
  background: #09090b;
  color: #ffffff;
  font-weight: 700;
}

.btn-nav-sow {
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  font-family: var(--font-mono);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-card);
  color: var(--text-head);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 140ms var(--ease-out);
  white-space: nowrap;
}

.btn-nav-sow:hover {
  color: var(--text-pure);
  border-color: var(--border-active);
  background: #ffffff;
}

.btn-nav-primary {
  padding: 6px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 120ms var(--ease-spring), background 140ms var(--ease-out);
  white-space: nowrap;
}

.btn-nav-primary:hover {
  background: var(--btn-primary-hover);
}

.btn-nav-primary:active {
  transform: scale(0.96);
}

/* Responsive Navigation Breakpoints */
@media (max-width: 920px) {
  .nav-menu { display: none; }
  .btn-mobile-menu-toggle { display: inline-flex; }
}

@media (max-width: 480px) {
  .btn-nav-sow { display: none; }
  .btn-nav-primary { padding: 6px 11px; font-size: 0.75rem; }
}

/* ==========================================================================
   2-Column Hero Section with Seamless 3D Holographic WebGL Shield
   ========================================================================== */
.hero-section {
  padding: 104px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-section {
    padding: 76px 0 32px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .hero-left {
    align-items: center;
    text-align: center;
  }

  .resend-hero-title {
    font-size: clamp(1.95rem, 5.8vw, 3rem);
    margin-bottom: 12px;
  }

  .resend-hero-subtitle {
    font-size: 0.92rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 18px;
  }

  .resend-btn-cluster {
    justify-content: center;
    margin-bottom: 20px;
  }

  .hero-stats-row {
    justify-content: center;
    padding-top: 14px;
  }

  .hero-3d-stage {
    order: 2;
    height: 220px;
    min-height: 190px;
    margin-top: 4px;
  }
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.resend-hero-title {
  font-size: clamp(2.3rem, 6.2vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  color: var(--text-pure);
  margin-bottom: clamp(14px, 2.5vw, 22px);
  word-break: break-word;
}

.resend-hero-subtitle {
  font-size: clamp(0.95rem, 2vw, 1.18rem);
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: clamp(20px, 3.5vw, 32px);
  max-width: 540px;
}

.resend-btn-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 4vw, 32px);
  width: 100%;
}

.resend-btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition: transform 120ms var(--ease-spring), background 140ms var(--ease-out);
  min-height: 44px;
}

.resend-btn-main:hover {
  background: var(--btn-primary-hover);
}

.resend-btn-main:active {
  transform: scale(0.97);
}

.resend-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-head);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 140ms var(--ease-out);
  min-height: 44px;
}

.resend-btn-ghost:hover {
  background: var(--bg-subtle);
  border-color: var(--border-active);
  color: var(--text-pure);
}

@media (max-width: 520px) {
  .resend-btn-cluster {
    flex-direction: column;
    align-items: stretch;
  }
  .resend-btn-main, .resend-btn-ghost {
    width: 100%;
    text-align: center;
  }
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 24px);
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  flex-wrap: wrap;
}

@media (max-width: 520px) {
  .hero-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
}

@media (max-width: 360px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  color: var(--text-pure);
}

.hero-stat-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Seamless 3D WebGL Holographic Stage (Direct on Page Canvas)
   ========================================================================== */
.hero-3d-stage {
  width: 100%;
  height: clamp(300px, 45vw, 480px);
  min-height: 220px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  overflow: visible;
}

#threeCanvasContainer {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: grab;
  touch-action: none;
}

#threeCanvasContainer:active {
  cursor: grabbing;
}

/* ==========================================================================
   Compliance Trust / Standards Bar
   ========================================================================== */
.trust-bar {
  padding: clamp(24px, 4vw, 32px) 0 clamp(40px, 6vw, 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.trust-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.trust-chip {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-body);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Atomic Red Team-Inspired Ecosystem / Projects Grid
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(16px, 3vw, 24px);
  margin-top: 12px;
}

.project-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease-spring), border-color 140ms var(--ease-out), box-shadow 140ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-active);
  box-shadow: 0 14px 32px -6px rgba(0, 0, 0, 0.08);
}

.project-badge-top {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-pure);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
}

.project-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-pure);
  margin-bottom: 16px;
}

.project-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.project-card-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* ==========================================================================
   Section Rhythm
   ========================================================================== */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
  border-top: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: clamp(24px, 4vw, 40px);
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  display: block;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  margin-bottom: 10px;
}

/* ==========================================================================
   Atomic Red Team-Inspired Documentation Portal (docs.html)
   ========================================================================== */
.docs-mobile-toc {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-card);
}

.docs-mobile-toc-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.docs-mobile-toc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.docs-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  padding: 96px 0 80px;
  align-items: start;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .docs-mobile-toc {
    display: flex;
    flex-direction: column;
  }

  .docs-page-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 76px;
  }
  
  .docs-sidebar {
    display: none !important;
  }
}

.docs-sidebar {
  position: sticky;
  top: 84px;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  box-sizing: border-box;
}

.docs-sidebar-group-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.docs-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.docs-nav-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-body);
  padding: 6px 10px;
  border-radius: var(--radius-xs);
  display: block;
  transition: all 140ms var(--ease-out);
}

.docs-nav-link:hover {
  background: var(--bg-subtle);
  color: var(--text-pure);
}

.docs-nav-link.active {
  background: var(--bg-surface-elevated);
  color: var(--text-pure);
  font-weight: 700;
  border-left: 2px solid #09090b;
}

.docs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.docs-breadcrumb .active-crumb {
  color: var(--text-pure);
  font-weight: 600;
}

.docs-main-content {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
  box-sizing: border-box;
}

.doc-article {
  min-width: 0;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.5vw, 32px);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  overflow: hidden;
}

.doc-article-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-top: 4px;
}

.doc-article-head h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-top: 4px;
}

.doc-code-block {
  max-width: 100%;
  background: #09090b;
  color: #f4f4f5;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: clamp(0.74rem, 1.8vw, 0.82rem);
  overflow-x: auto;
  position: relative;
  line-height: 1.6;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.doc-code-block pre {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  padding-top: 18px;
}

.doc-code-block code {
  font-family: var(--font-mono);
}

.doc-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 140ms ease;
  min-height: 28px;
}

.doc-copy-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.atomic-step-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.atomic-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-head);
  line-height: 1.45;
}

@media (max-width: 480px) {
  .atomic-step-item {
    flex-direction: column;
    gap: 6px;
  }
}

.atomic-step-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-pure);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   SigmaHQ-Style Repository & Taxonomy Index
   ========================================================================== */
.repo-search-bar {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  gap: 12px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
  transition: border-color 140ms var(--ease-out), box-shadow 140ms ease;
}

.repo-search-bar:focus-within {
  border-color: #09090b;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}

.repo-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  min-width: 0;
}

.repo-search-input::placeholder {
  color: var(--text-muted);
}

.tactic-tab-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
  -webkit-overflow-scrolling: touch;
}

.tactic-tab-btn {
  padding: 7px 15px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 140ms var(--ease-out);
  min-height: 36px;
}

.tactic-tab-btn:hover {
  border-color: var(--border-active);
  color: var(--text-pure);
}

.tactic-tab-btn.active {
  background: #09090b;
  border-color: #09090b;
  color: #ffffff;
}

.technique-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.technique-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 180ms var(--ease-spring), border-color 140ms var(--ease-out), box-shadow 140ms ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.technique-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-active);
  box-shadow: 0 12px 32px -4px rgba(0, 0, 0, 0.08);
}

.technique-card:active {
  transform: scale(0.98);
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tech-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-pure);
}

.card-meta-tags {
  display: flex;
  gap: 6px;
  align-items: center;
}

.card-badge-severity {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
}

.card-badge-severity.critical {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
}

.card-badge-severity.high {
  background: var(--bg-subtle);
  color: var(--text-pure);
  border: 1px solid var(--border-card);
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-head);
}

.card-desc {
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.45;
}

.card-footer-info {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 4px;
}

/* ==========================================================================
   Tactile 45s Field Triage Workbench
   Architectural Monochromatic Switch Deck
   ========================================================================== */
.workbench-deck {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.control-rows-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.control-spec-row {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-card);
}

.spec-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-row-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-head);
}

.spec-row-time {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.switch-opt-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 680px) {
  .switch-opt-pair {
    grid-template-columns: 1fr;
  }
}

.switch-toggle-btn {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-card);
  cursor: pointer;
  text-align: left;
  transition: all 140ms var(--ease-spring);
  color: var(--text-body);
  min-height: 50px;
}

.switch-toggle-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-active);
  color: var(--text-pure);
}

.switch-toggle-btn:active {
  transform: scale(0.98);
}

.switch-toggle-btn.active-hardened {
  background: #ffffff;
  border: 1.5px solid #09090b;
  color: var(--text-pure);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.switch-toggle-btn.active-hardened .toggle-title {
  color: var(--text-pure);
}

.switch-toggle-btn.active-soft {
  background: #ffffff;
  border: 1.5px solid #09090b;
  color: var(--text-pure);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.switch-toggle-btn.active-soft .toggle-title {
  color: var(--text-pure);
}

.toggle-title {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-head);
}

.toggle-detail {
  font-size: 0.74rem;
  margin-top: 4px;
  color: var(--text-body);
  line-height: 1.35;
}

.telemetry-input-line {
  width: 100%;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-head);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
  transition: border-color 140ms var(--ease-out);
  min-height: 42px;
}

.telemetry-input-line:focus {
  border-color: #09090b;
  background: var(--bg-surface);
}

/* ==========================================================================
   Executive CISO Notice Document Viewer
   ========================================================================== */
.executive-notice-deck {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.executive-notice-header {
  padding: 16px 20px;
  background: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.notice-badge-stamp {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
}

.notice-badge-stamp.hold {
  background: #09090b;
  color: #ffffff;
  border: 1px solid #09090b;
}

.notice-badge-stamp.cleared {
  background: var(--bg-subtle);
  color: var(--text-pure);
  border: 1px solid var(--border-card);
}

.notice-paper-body {
  padding: clamp(16px, 3.5vw, 28px);
  background: var(--bg-surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.memo-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.memo-meta-item label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.memo-meta-item span {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-head);
}

.notice-section-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-pure);
  margin-bottom: 8px;
}

.table-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.punchlist-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0;
  font-size: 0.82rem;
  min-width: 500px;
}

.punchlist-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-surface-elevated);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border-subtle);
}

.punchlist-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-head);
  vertical-align: top;
}

.punchlist-table tr:last-child td {
  border-bottom: none;
}

.executive-notice-footer {
  padding: 16px 20px;
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 520px) {
  .executive-notice-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .executive-notice-footer > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .executive-notice-footer button {
    width: 100%;
    justify-content: center;
    min-height: 42px;
  }
}

/* ==========================================================================
   CISO Retainage Strategy & Cross-Walk
   ========================================================================== */
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 16px;
}

.strategy-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: var(--shadow-card);
  transition: border-color 140ms var(--ease-out), transform 140ms var(--ease-spring);
}

.strategy-box:hover {
  border-color: var(--border-active);
  transform: translateY(-2px);
}

.strategy-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 10px;
  display: block;
}

.strategy-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.strategy-text {
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Table Crosswalk */
.table-container {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  overflow-x: auto;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.crosswalk-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
  min-width: 600px;
}

.crosswalk-table th {
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
}

.crosswalk-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-head);
  vertical-align: top;
}

.crosswalk-table tr:last-child td {
  border-bottom: none;
}

.crosswalk-table tr:hover td {
  background: var(--bg-surface-elevated);
}

.chip-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-card);
  color: var(--text-head);
  display: inline-block;
  white-space: nowrap;
}

/* Modal Drawer / Responsive Bottom Sheet */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 3vw, 20px);
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 150ms var(--ease-spring);
}

.modal-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 660px;
  box-shadow: var(--shadow-modal);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalEnter 200ms var(--ease-spring);
}

@media (max-width: 640px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  
  .modal-sheet {
    max-height: 92vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalEnter {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-sheet-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--bg-surface-elevated);
  gap: 12px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}

.modal-close-btn:hover {
  color: var(--text-pure);
  background: var(--bg-subtle);
}

.modal-sheet-main {
  padding: clamp(16px, 3.5vw, 24px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
}

.spec-sheet-block {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.block-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.spec-sheet-block p {
  font-size: 0.88rem;
  color: var(--text-head);
  line-height: 1.55;
}

/* Toast */
.toast-container {
  position: fixed;
  bottom: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: calc(100vw - 32px);
}

.toast-pill {
  background: #09090b;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  animation: toastPop 180ms var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 8px;
}

@keyframes toastPop {
  from { opacity: 0; transform: translateY(12px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: clamp(32px, 6vw, 48px) 0;
  margin-top: clamp(48px, 8vw, 80px);
  background: var(--bg-surface);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Print Styles */
@media print {
  body {
    background: #ffffff;
    color: #000000;
  }
  .site-header, .resend-btn-cluster, .tactic-tab-bar, .switch-opt-pair, .telemetry-input-line, .site-footer, .toast-container, .repo-search-bar, .atomic-doc-nav, .projects-grid, .trust-bar, .hero-3d-stage, .docs-sidebar, .docs-mobile-toc {
    display: none !important;
  }
  .executive-notice-deck {
    border: 1px solid #cccccc;
    box-shadow: none;
  }
}
