* {
  box-sizing: border-box;
}

:root {
  /* Brand */
  --green: #3dba4e;
  --green-rgb: 61, 186, 78;
  --green-dark: #27a034;
  --green-deep: #1b7a28;
  --red: #ff6b6b;
  --orange-rgb: 234, 88, 12;
  --blue-rgb: 59, 130, 246;

  /* Surfaces */
  --bg: #0a0f1a;
  --bg-elevated: #0c1120;
  --bg-elevated-alt: #0e1523;

  /* Text */
  --text-bright: #fff;
  --text-primary: #e8e6e1;
  --text-mid: #c4c0b8;
  --text-item: #a8a49c;
  --text-secondary: #9a968e;
  --text-muted: #8a8880;
  --text-dim: #6b6860;
  --text-faint: #4a4840;
}

/* ============================================================
   PASSWORD OVERLAY
   ============================================================ */
.password-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.password-overlay.hidden {
  display: none;
}

.password-container {
  text-align: center;
  max-width: 500px;
  padding: 24px;
}

.password-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 12px;
}

.password-logo h1 {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--green);
  margin: 0;
}

.password-title {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.3px;
  color: var(--text-mid);
  margin: 0 0 8px 0;
}

.password-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 32px 0;
  font-weight: 300;
  letter-spacing: 0.3px;
}

#password-form {
  margin-top: 24px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  gap: 8px;
}

#password-input {
  flex: 1;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-primary);
  transition: all 0.2s ease;
  outline: none;
}

#password-input:focus {
  background: rgba(255,255,255,0.06);
  border-color: var(--green);
}

#password-input::placeholder {
  color: var(--text-dim);
}

.password-submit {
  width: 48px;
  height: 48px;
  padding: 0;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border: none;
  border-radius: 8px;
  color: var(--bg);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.password-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--green-rgb), 0.3);
}

.password-submit:active {
  transform: translateY(0);
}

.password-error {
  font-size: 13px;
  color: var(--red);
  margin: 12px 0 0 0;
  text-align: left;
  font-weight: 400;
}

.password-error.shake {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ============================================================
   BASE & LAYOUT
   ============================================================ */
body {
  margin: 0;
  padding: 0;
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
}

.container {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.grid-texture {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.accent-glow {
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(var(--green-rgb), 0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.content-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  margin-bottom: 48px;
  position: relative;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.header-logo-link {
  display: flex;
  flex-shrink: 0;
}

.password-logo-img {
  height: 150px;
  width: auto;
  display: block;
}

.header-logo-img {
  height: 80px;
  width: auto;
  display: block;
}

.header-logo .header-subtitle {
  border-left: 1px solid rgba(255,255,255,0.08);
  padding-left: 20px;
  margin: 0;
  margin-right: auto;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

header h1 {
  font-family: 'Space Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--green);
  margin: 0;
}

.header-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(var(--green-rgb), 0.5);
  margin: 0 0 8px 0;
}

.header-subtitle {
  font-size: 1.8rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.8px;
  font-family: 'Space Mono', monospace;
}

.header-btn {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Present — neon purple */
.header-present-btn {
  border: 1px solid rgba(177, 60, 255, 0.35);
  background: rgba(192, 60, 255, 0.07);
  color: rgba(196, 66, 247, 0.75);
}
.header-present-btn:hover {
  background: rgba(192, 60, 255, 0.16);
  border-color: rgba(192, 60, 255, 0.6);
  color: rgba(220, 130, 255, 1);
}

/* Print — blue, icon-only */
.header-print-btn {
  border: 1px solid rgba(var(--blue-rgb), 0.3);
  background: rgba(var(--blue-rgb), 0.06);
  color: rgba(var(--blue-rgb), 0.55);
  padding: 7px;
  width: 30px;
  height: 30px;
  justify-content: center;
}
.header-print-btn:hover {
  background: rgba(var(--blue-rgb), 0.12);
  border-color: rgba(var(--blue-rgb), 0.5);
  color: rgba(var(--blue-rgb), 0.9);
}

/* Logout — orange, icon-only */
.header-logout-btn {
  border: 1px solid rgba(var(--orange-rgb), 0.3);
  background: rgba(var(--orange-rgb), 0.06);
  color: rgba(var(--orange-rgb), 0.55);
  padding: 7px;
  width: 30px;
  height: 30px;
  justify-content: center;
}
.header-logout-btn:hover {
  background: rgba(var(--orange-rgb), 0.12);
  border-color: rgba(var(--orange-rgb), 0.5);
  color: rgba(var(--orange-rgb), 0.9);
}

/* Hide Present button on small screens */
@media (max-width: 899px) {
  .header-present-btn {
    display: none;
  }
}

.header-divider {
  margin-top: 16px;
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--green-rgb), 0.4), transparent 60%);
}

/* ============================================================
   PRIMARY NAVIGATION
   ============================================================ */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

nav button {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: rgba(255,255,255,0.02);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

nav button:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: var(--text-secondary);
}

nav button.active {
  font-weight: 700;
  border-color: var(--green);
  background: rgba(var(--green-rgb), 0.1);
  color: var(--green);
}

/* ============================================================
   DEEP DIVE TOGGLE & PANEL
   ============================================================ */
.deep-dive-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  margin-bottom: 32px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  cursor: pointer;
  border: none;
  background: none;
  transition: color 0.2s ease;
}

.deep-dive-toggle:hover {
  color: var(--text-muted);
}

.deep-dive-toggle svg {
  transition: transform 0.2s ease;
}

.deep-dive-toggle.open {
  color: rgba(var(--green-rgb), 0.5);
}

.deep-dive-toggle.open svg {
  transform: rotate(180deg);
}

.deep-dive-panel {
  display: none;
  margin-bottom: 40px;
  padding: 20px;
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 8px;
}

.deep-dive-panel.open {
  display: block;
  animation: fadeIn 0.2s ease;
}

.deep-dive-panel-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  margin-bottom: 12px;
}

.deep-dive-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.deep-dive-nav button {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  background: rgba(255,255,255,0.01);
  color: var(--text-faint);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.deep-dive-nav button:hover {
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.1);
}

.deep-dive-nav button.active {
  color: var(--green);
  border-color: rgba(var(--green-rgb), 0.3);
  background: rgba(var(--green-rgb), 0.05);
  font-weight: 700;
}

.deep-dive-nav .deep-dive-print-btn {
  margin-left: auto;
  padding: 6px;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(var(--blue-rgb), 0.3);
  border-radius: 4px;
  background: rgba(var(--blue-rgb), 0.06);
  color: rgba(var(--blue-rgb), 0.55);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.deep-dive-nav .deep-dive-print-btn:hover {
  background: rgba(var(--blue-rgb), 0.12);
  border-color: rgba(var(--blue-rgb), 0.5);
  color: rgba(var(--blue-rgb), 0.9);
}

#deep-dive-content {
  animation: fadeIn 0.2s ease;
}

.deep-dive-section-title {
  font-family: 'Space Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
}

.deep-dive-section-intro {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 24px 0;
  font-weight: 300;
  max-width: 850px;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  animation: contentIn 0.25s ease;
}

@keyframes contentIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.content-title {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-bright);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.content-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.content-title-row .content-title {
  margin-bottom: 0;
}

.content-title-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(var(--green-rgb), 0.6);
  text-decoration: none;
  border: 1px solid rgba(var(--green-rgb), 0.3);
  background: rgba(var(--green-rgb), 0.06);
  padding: 7px 14px;
  border-radius: 5px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.content-title-link:hover {
  background: rgba(var(--green-rgb), 0.14);
  border-color: rgba(var(--green-rgb), 0.5);
  color: rgba(var(--green-rgb), 0.95);
}

.content-intro {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0 0 32px 0;
  max-width: 1040px;
  font-weight: 300;
}

.content-text {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-mid);
  margin: 0 0 24px 0;
  max-width: 720px;
  font-weight: 300;
}

/* ============================================================
   HIGHLIGHT BAND
   ============================================================ */
.highlight-band {
  background: rgba(var(--green-rgb), 0.04);
  border: 1px solid rgba(var(--green-rgb), 0.12);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 0 0 28px 0;
}

.highlight-band-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: rgba(var(--green-rgb), 0.5);
  margin: 0 0 8px 0;
}

.highlight-band p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--green);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   STAT GRID
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 32px 0;
}

.stat-card {
  background: rgba(var(--green-rgb), 0.04);
  border: 1px solid rgba(var(--green-rgb), 0.12);
  border-radius: 10px;
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s ease;
}

.stat-card:hover {
  border-color: rgba(var(--green-rgb), 0.25);
}

.stat-value {
  font-family: 'Space Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin: 0 0 8px 0;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-mid);
  font-weight: 500;
  margin: 0 0 4px 0;
  line-height: 1.3;
}

.stat-sub {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
  margin: 0;
}

/* ============================================================
   IMAGE PANELS
   ============================================================ */
.image-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 0 0 28px 0;
  align-items: start;
}

.image-panel {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.01);
}

.image-panel-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

.image-panel img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 12px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--green-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255,255,255,0.02);
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ============================================================
   TIMELINE COMPONENT
   ============================================================ */
.timeline-component {
  margin: 0 0 32px 0;
}

.timeline-track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  position: relative;
  margin-bottom: 4px;
}

.timeline-track::before {
  content: '';
  position: absolute;
  top: 21px;
  left: calc(16.66% + 6px);
  right: calc(16.66% + 6px);
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(var(--green-rgb), 0.4) 0%,
    rgba(var(--green-rgb), 0.15) 50%,
    rgba(var(--green-rgb), 0.4) 100%
  );
  z-index: 0;
}

.timeline-phase {
  text-align: center;
  position: relative;
  z-index: 1;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  margin: 15px auto 12px;
  box-shadow: 0 0 10px rgba(var(--green-rgb), 0.5);
  position: relative;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(var(--green-rgb), 0.12);
}

.timeline-phase-name {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--green);
  margin: 0 0 3px 0;
}

.timeline-phase-span {
  font-size: 11px;
  color: var(--text-dim);
  font-weight: 300;
  display: block;
  margin-bottom: 16px;
}

.timeline-phase-items {
  display: grid;
  gap: 5px;
  text-align: left;
  padding: 0 4px;
}

.timeline-phase-item {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
  font-weight: 300;
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.timeline-phase-item::before {
  content: '—';
  color: rgba(var(--green-rgb), 0.3);
  flex-shrink: 0;
  font-size: 10px;
  margin-top: 1px;
}

/* ============================================================
   STEPS
   ============================================================ */
.steps-container {
  display: grid;
  gap: 2px;
  margin: 0 0 24px 0;
}

.step-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 20px;
  padding: 24px 0;
  align-items: start;
}

.step-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.step-num {
  font-family: 'Space Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1;
}

.step-phase-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--green-dark);
  text-align: center;
  line-height: 1.3;
}

.step-content h3 {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
}

.step-content p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  font-weight: 300;
  max-width: 850px;
}

.step-list {
  margin: 0;
  padding-left: 20px;
  max-width: 850px;
}

.step-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 6px;
  padding-left: 4px;
}

.step-list li::marker {
  color: var(--green);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
  margin: 0 0 24px 0;
}

.capability-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 22px;
  transition: border-color 0.2s ease;
}

.capability-card:hover {
  border-color: rgba(255,255,255,0.1);
}

.capability-card h3 {
  font-family: 'Space Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin: 0 0 14px 0;
}

.capability-items {
  display: grid;
  gap: 12px;
}

.capability-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.capability-item-bullet {
  color: rgba(var(--green-rgb), 0.35);
  font-size: 8px;
  margin-top: 5px;
  flex-shrink: 0;
}

.capability-item-text {
  font-size: 14px;
  color: var(--text-item);
  line-height: 1.5;
  font-weight: 300;
}

/* ============================================================
   ASK CARDS
   ============================================================ */
.ask-cards {
  display: grid;
  gap: 14px;
  margin: 0 0 28px 0;
}

.ask-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  padding: 22px;
  transition: border-color 0.2s ease;
}

.ask-card:hover {
  border-color: rgba(var(--green-rgb), 0.2);
}

.ask-card-badge {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--bg);
  flex-shrink: 0;
}

.ask-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ask-card-body h3 {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-bright);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.ask-card-body p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 10px 0;
  font-weight: 300;
}

.ask-list {
  margin: 0 0 10px 0;
  padding-left: 18px;
}

.ask-list li {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 4px;
  padding-left: 2px;
}

.ask-list li::marker {
  color: var(--green);
  font-size: 11px;
}

.ask-tag {
  display: inline-block;
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  background: rgba(var(--green-rgb), 0.08);
  border: 1px solid rgba(var(--green-rgb), 0.18);
  border-radius: 4px;
  color: rgba(var(--green-rgb), 0.6);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
  animation: fadeIn 0.18s ease;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.lightbox-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(92vw, 1200px);
  animation: contentIn 0.2s ease;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transition: opacity 0.15s ease;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  gap: 16px;
}

.lightbox-caption {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
}

.lightbox-counter {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-primary);
}

.lightbox-close {
  top: 20px;
  right: 24px;
}

.lightbox-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox.single .lightbox-prev,
.lightbox.single .lightbox-next,
.lightbox.single .lightbox-counter {
  display: none;
}

/* Clickable image panel enhancements */
.image-panel-clickable {
  cursor: zoom-in;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.image-panel-clickable:hover {
  border-color: rgba(var(--green-rgb), 0.3);
  transform: translateY(-2px);
}

.image-expand-hint {
  opacity: 0;
  font-size: 9px;
  margin-left: 6px;
  transition: opacity 0.2s ease;
}

.image-panel-clickable:hover .image-expand-hint {
  opacity: 0.5;
}

/* ============================================================
   CONTENT HIGHLIGHT (legacy, kept for compat)
   ============================================================ */
.content-highlight {
  border-left: 3px solid var(--green);
  padding-left: 20px;
  margin-top: 20px;
}

.content-highlight p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--green);
  margin: 0;
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.04);
}

footer p {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  font-weight: 900;
  color: var(--green-deep);
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin: 0;
}

footer a {
  color: inherit;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

footer a:hover {
  opacity: 0.7;
}

/* ============================================================
   FINANCIAL TABLE
   ============================================================ */
.financial-table-block {
  margin-bottom: 32px;
}

.ft-title {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.ft-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.ft-scroll-wrapper {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  -webkit-overflow-scrolling: touch;
}

.ft-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.ft-scroll-wrapper::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.02);
}

.ft-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(var(--green-rgb), 0.2);
  border-radius: 3px;
}

.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  white-space: nowrap;
  min-width: 900px;
}

.ft-th {
  padding: 10px 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  position: relative;
}

.ft-th.ft-highlight-col {
  color: var(--green);
  background: rgba(var(--green-rgb), 0.04);
}

.ft-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bg-elevated);
}

.ft-row-total .ft-sticky {
  background: var(--bg-elevated-alt);
}

.ft-section-header td {
  padding: 10px 12px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--green);
  font-weight: 700;
  border-bottom: none;
  background: var(--bg-elevated);
}

.ft-row td {
  padding: 6px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.025);
}

.ft-label {
  color: var(--text-item);
  text-align: left;
  font-weight: 400;
  min-width: 160px;
}

.ft-val {
  color: var(--text-mid);
  text-align: right;
  font-weight: 400;
}

.ft-val.ft-neg {
  color: var(--red);
}

.ft-val.ft-highlight-col {
  background: rgba(var(--green-rgb), 0.03);
}

.ft-row-subtotal td {
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.ft-row-total td {
  font-weight: 700;
  color: var(--text-bright);
  border-top: 1px solid rgba(var(--green-rgb), 0.2);
  border-bottom: 1px solid rgba(var(--green-rgb), 0.2);
  background: rgba(var(--green-rgb), 0.03);
}

.ft-row-total .ft-label {
  color: var(--green);
}

/* ============================================================
   FINANCIAL TABLE GROUP (tabbed toggle)
   ============================================================ */
.ftg-group {
  margin-bottom: 32px;
}

.ftg-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.ftg-tab {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px;
  background: rgba(255,255,255,0.01);
  color: var(--text-faint);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 400;
}

.ftg-tab:hover {
  color: var(--text-muted);
  border-color: rgba(255,255,255,0.1);
}

.ftg-tab.active {
  color: var(--green);
  border-color: rgba(var(--green-rgb), 0.3);
  background: rgba(var(--green-rgb), 0.05);
  font-weight: 700;
}

.ftg-panel {
  display: none;
}

.ftg-panel.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

/* ============================================================
   SCENARIO COMPARISON
   ============================================================ */
.scenario-comparison-block {
  margin-bottom: 32px;
}

.sc-title {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.sc-card {
  border-radius: 12px;
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.sc-card.sc-active {
  border-color: rgba(var(--green-rgb), 0.55) !important;
  box-shadow: 0 0 28px rgba(var(--green-rgb), 0.14) !important;
  background: rgba(var(--green-rgb), 0.07) !important;
}

.sc-card.sc-active .sc-card-name {
  color: var(--green);
}

.sc-card.sc-active .sc-card-tag {
  color: var(--text-bright);
}

.sc-card:not(.sc-active) {
  opacity: 0.6;
}

.sc-accent-muted {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
}

.sc-accent-primary {
  background: rgba(var(--green-rgb), 0.04);
  border: 1px solid rgba(var(--green-rgb), 0.2);
  box-shadow: 0 0 20px rgba(var(--green-rgb), 0.06);
}

.sc-accent-bright {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
}

.sc-card-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sc-card-name {
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.sc-accent-primary .sc-card-name {
  color: var(--green);
}

.sc-card-tag {
  font-family: 'Space Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.sc-accent-primary .sc-card-tag {
  color: var(--text-bright);
}

.sc-metrics {
  display: grid;
  gap: 0;
}

.sc-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.025);
}

.sc-metric:last-child {
  border-bottom: none;
}

.sc-metric-label {
  font-size: 12px;
  color: var(--text-dim);
}

.sc-metric-value {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
}

.sc-accent-primary .sc-metric-value {
  color: var(--text-primary);
}

/* ============================================================
   BAR CHART (CSS-only)
   ============================================================ */
.bar-chart-block {
  margin-bottom: 32px;
}

.bc-title {
  font-family: 'Space Mono', monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.bc-chart-area {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.bc-y-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-chart-inner {
  flex: 1;
  position: relative;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  padding: 24px 16px 8px;
  min-height: 220px;
}

.bc-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 180px;
}

.bc-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.bc-bar-value {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-dim);
  height: 14px;
}

.bc-bar-track {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bc-bar-fill {
  width: 70%;
  max-width: 28px;
  min-width: 6px;
  background: linear-gradient(180deg, rgba(var(--green-rgb), 0.6), rgba(var(--green-rgb), 0.25));
  border-radius: 3px 3px 0 0;
  transition: height 0.6s ease;
}

.bc-bar-fill.bc-bar-above {
  background: linear-gradient(180deg, var(--green), rgba(var(--green-rgb), 0.5));
}

.bc-bar-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--text-faint);
}

.bc-break-even {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed rgba(255,255,255,0.15);
  pointer-events: none;
  z-index: 1;
}

.bc-break-even-label {
  position: absolute;
  right: 8px;
  top: -18px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .content-wrapper {
    padding: 24px 16px;
  }

  .content-title {
    font-size: 22px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline-track {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .timeline-track::before {
    display: none;
  }

  .timeline-dot {
    margin: 0 0 10px 0;
  }

  .timeline-phase {
    text-align: left;
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 12px;
    align-items: start;
  }

  .timeline-phase-items {
    padding: 0;
  }

  .step-item {
    grid-template-columns: 56px 1fr;
    gap: 14px;
  }

  .step-num {
    font-size: 22px;
  }

  .ask-card {
    grid-template-columns: 44px 1fr;
    gap: 14px;
  }

  .ask-card-badge {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .sc-grid {
    grid-template-columns: 1fr;
  }

  .bc-bar-value {
    display: none;
  }

  .bc-bars {
    height: 140px;
  }

  .bc-bar-track {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 26px;
  }

  .image-panels {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   BACK TO TOP
============================================================ */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--green-rgb), 0.08);
  border: 1px solid rgba(var(--green-rgb), 0.3);
  border-radius: 8px;
  color: rgba(var(--green-rgb), 0.6);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  z-index: 100;
}

#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

#back-to-top:hover {
  background: rgba(var(--green-rgb), 0.16);
  border-color: rgba(var(--green-rgb), 0.5);
  color: rgba(var(--green-rgb), 0.95);
}
