/* ==========================================================================
   EURA-FILM SPECIALIZED TECHNICAL COMPONENTS
   Master Control Room & Post-Production Suite Modules
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HERO SECTION & CANVAS
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-canvas-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.hero-grid-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  grid-template-areas:
    "badge     ."
    "text      visual"
    "subtitle  subtitle"
    "cta       cta"
    "telemetry telemetry";
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 0;
  align-items: start;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  grid-area: text;
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-meta-badge {
  grid-area: badge;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(18, 20, 26, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
}

.hero-meta-badge span.divider {
  color: rgba(255, 255, 255, 0.2);
}

.hero-title {
  font-family: var(--font-monumental);
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #FFFFFF 10%, #E2E8F0 50%, #38BDF8 85%, #E5A958 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
  color: #A3B1C6;
  margin-bottom: 2.2rem;
  /* Spans the full grid width — fills the entire inner type area */
  grid-area: subtitle;
  max-width: none;
  margin-top: 1.4rem;
}

/* Spans the full grid width so all CTAs stay on a single line */
.hero-cta-group {
  grid-area: cta;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-top: 0.4rem;
}

.hero-cta-group > .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

/* Hero Studio Visual Stage Viewport */
.hero-visual-card {
  grid-area: visual;
  align-self: start;
  position: relative;
  background: #090B10;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(56, 189, 248, 0.1);
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.hero-visual-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}

.hero-visual-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #11141C;
  padding: 0.55rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-gray);
}

.hero-visual-img-container,
.hero-visual-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050608;
}

.hero-visual-img-container img,
.hero-visual-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 11, 0.95) 85%);
  padding: 0.55rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 10;
  opacity: 0.92;
  transition: opacity 0.3s ease;
}

.hero-visual-card:hover .hero-player-controls {
  opacity: 1;
}

.player-ctrl-btn {
  background: rgba(18, 22, 32, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFF;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.player-ctrl-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.player-scrubber-wrap {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.player-scrubber-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-tungsten));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.player-time-display {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94A3B8;
  white-space: nowrap;
}

.hero-visual-footer-bar {
  background: #0D0F16;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* Audio Waveform Equalizer simulation */
.audio-meter-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.meter-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 1px;
  animation: meterBounce 1.2s ease-in-out infinite alternate;
}

.meter-bar:nth-child(2) { animation-delay: 0.2s; height: 60%; background: var(--accent-locked-green); }
.meter-bar:nth-child(3) { animation-delay: 0.4s; height: 85%; }
.meter-bar:nth-child(4) { animation-delay: 0.1s; height: 40%; }
.meter-bar:nth-child(5) { animation-delay: 0.3s; height: 95%; background: var(--accent-tungsten); }
.meter-bar:nth-child(6) { animation-delay: 0.5s; height: 50%; }

@keyframes meterBounce {
  0% { height: 20%; }
  100% { height: 100%; }
}

/* Full-width single-row telemetry strip under the hero grid */
.hero-live-telemetry {
  grid-area: telemetry;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.telemetry-item {
  font-family: var(--font-mono);
  min-width: 0;
}

.telemetry-label {
  font-size: 0.58rem;
  color: var(--text-dim-gray);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.telemetry-value {
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--text-optic-white);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 1024px) {
  .hero-grid-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "text"
      "visual"
      "subtitle"
      "cta"
      "telemetry";
    row-gap: 2.5rem;
  }

  .hero-cta-group {
    flex-wrap: wrap;
    margin-top: 0;
  }

  .hero-live-telemetry {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .hero-live-telemetry {
    grid-template-columns: 1fr;
  }
}


/* --------------------------------------------------------------------------
   2. READY TO BUILD - 4-COLUMN INDUSTRIAL BLUEPRINT BOARD
   -------------------------------------------------------------------------- */
.ready-board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.ready-card {
  padding: 1.8rem 1.5rem;
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
}

.ready-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
}

.ready-card-idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.ready-card-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-locked-green);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ready-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--text-optic-white);
}

.ready-card-desc {
  font-size: 0.88rem;
  color: var(--text-slate-gray);
  line-height: 1.55;
}

.ready-card-footer {
  margin-top: 1.4rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim-gray);
}

@media (max-width: 1024px) {
  .ready-board-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .ready-board-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   3. PLATFORM PILLARS (A MESTERTERV PILLÉREI)
   -------------------------------------------------------------------------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.pillar-card {
  padding: 2.2rem;
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.pillar-card:hover {
  border-color: rgba(229, 169, 88, 0.4);
  transform: translateY(-2px);
}

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-tungsten);
  letter-spacing: 0.08em;
}

.pillar-icon-symbol {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--accent-cyan);
}

.pillar-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pillar-text {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text-slate-gray);
  margin-bottom: 1.4rem;
}

.pillar-tech-tag {
  display: inline-flex;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

@media (max-width: 900px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   4. 6-LAYER ARCHITECTURE STACK INTERACTIVE COMPONENT
   -------------------------------------------------------------------------- */
.arch-stack-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.stack-layers-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stack-layer-item {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.2rem 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.stack-layer-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.stack-layer-item:hover {
  background: var(--bg-control-surface);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.stack-layer-item.active {
  background: #191E28;
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.stack-layer-item.active::before {
  background: var(--accent-cyan);
}

.layer-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.layer-idx {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 700;
  min-width: 35px;
}

.layer-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-optic-white);
}

.layer-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-gray);
}

/* Layer Inspector Panel */
.stack-inspector-panel {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  padding: 2.2rem;
  position: sticky;
  top: calc(var(--nav-height) + 20px);
}

.inspector-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inspector-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-tungsten);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.inspector-body h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
}

.inspector-specs-table {
  width: 100%;
  margin-top: 1.5rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.inspector-specs-table th, 
.inspector-specs-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.inspector-specs-table th {
  color: var(--text-dim-gray);
  font-family: var(--font-mono);
  font-weight: normal;
  width: 40%;
}

.inspector-specs-table td {
  color: var(--text-optic-white);
  font-family: var(--font-mono);
}

@media (max-width: 1024px) {
  .arch-stack-container {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   5. 14 DETERMINISTIC DECISION GATES PIPELINE (PROPOSE -> REVIEW -> LOCK)
   -------------------------------------------------------------------------- */
.gates-pipeline-wrapper {
  margin-top: 2rem;
}

.pipeline-phases-header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.phase-pill {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-slate-gray);
  border-radius: 4px;
}

.phase-pill.active {
  border-color: var(--accent-cyan);
  color: var(--text-optic-white);
  background: rgba(56, 189, 248, 0.08);
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}

.gate-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  padding: 1.4rem;
  border-radius: 4px;
  position: relative;
  transition: all var(--transition-fast);
}

.gate-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  background: var(--bg-control-surface);
}

.gate-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.gate-id {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

.gate-status-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.gate-title {
  font-size: 1.02rem;
  margin-bottom: 0.6rem;
  color: var(--text-optic-white);
}

.gate-criteria {
  font-size: 0.82rem;
  color: var(--text-slate-gray);
  margin-bottom: 0.8rem;
  line-height: 1.45;
}

.gate-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-gray);
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  padding-top: 0.6rem;
}

.gate-meta-row .authority {
  color: var(--accent-tungsten);
}

/* Interactive Gate Simulation Box */
.gate-sim-box {
  margin-top: 3rem;
  background: var(--bg-control-surface);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2rem;
}

.sim-steps-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.8rem 0;
}

.sim-step-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  padding: 1.2rem;
  border-radius: 4px;
}

.sim-step-card.active-step {
  border-color: var(--accent-tungsten);
  box-shadow: 0 0 16px var(--accent-tungsten-glow);
}

.sim-step-header {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim-gray);
  margin-bottom: 0.4rem;
}

.sim-step-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-optic-white);
}

.sim-arrow {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .pipeline-phases-header { grid-template-columns: repeat(2, 1fr); }
  .sim-steps-flow { grid-template-columns: 1fr; text-align: center; }
  .sim-arrow { transform: rotate(90deg); margin: 0.5rem 0; }
}

/* --------------------------------------------------------------------------
   6. CRYPTOGRAPHIC AUDIT LEDGER MODULE
   -------------------------------------------------------------------------- */
.ledger-view-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
}

.code-editor-mockup {
  background: #08090C;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.editor-titlebar {
  background: #15181F;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.editor-dots {
  display: flex;
  gap: 6px;
}
.editor-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.editor-filename {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

.code-pre {
  padding: 1.2rem;
  overflow-x: auto;
  line-height: 1.65;
  color: #E2E8F0;
}

.code-pre .key { color: var(--accent-cyan); }
.code-pre .str { color: #A7F3D0; }
.code-pre .num { color: var(--accent-tungsten); }
.code-pre .bool { color: #F472B6; }

@media (max-width: 900px) {
  .ledger-view-wrapper { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   7. NLE / DAW STUDIO INTEGRATION MOCKUP (STUDIO MASTERING OVERLAY)
   -------------------------------------------------------------------------- */
.nle-studio-container {
  background: #0D0E12;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  margin-top: 2rem;
}

.nle-top-bar {
  background: #161820;
  padding: 0.6rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.nle-layout-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  min-height: 460px;
}

.nle-main-viewport {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
}

.nle-video-preview {
  flex: 1;
  background: #050608 url('../assets/nle_film_scene.jpg') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 320px;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.85);
}

.nle-video-preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.6) 100%);
  pointer-events: none;
}

.framing-reticle {
  position: absolute;
  width: 75%;
  height: 75%;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  pointer-events: none;
}

.preview-tc-overlay {
  position: absolute;
  bottom: 12px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #F8FAFC;
  background: rgba(0, 0, 0, 0.7);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

.nle-timeline-tracks {
  height: 170px;
  background: #111319;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-track-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.track-label {
  width: 45px;
  color: var(--text-dim-gray);
}

.track-clips {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.track-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 2px;
  display: flex;
  align-items: center;
  padding-left: 6px;
  font-size: 0.64rem;
  color: #FFF;
}

.track-clip.video { left: 10%; width: 45%; background: #2563EB; }
.track-clip.video2 { left: 56%; width: 38%; background: #1D4ED8; }
.track-clip.audio { left: 10%; width: 65%; background: #059669; }
.track-clip.sdh { left: 10%; width: 84%; background: #D97706; }
.track-clip.ad { left: 15%; width: 70%; background: #7C3AED; }

/* EURA-FILM Plugin Sidebar Overlay in NLE */
.nle-sidebar-plugin {
  background: #13161D;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.plugin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.8rem;
}

.plugin-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-optic-white);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.plugin-lock-status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-locked-green);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.plugin-gate-item {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.9rem;
}

@media (max-width: 1024px) {
  .nle-layout-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   8. PARALLAX HORIZONTAL TIMELINE MOTOR (36 HÓNAP, 8 WP, M01–M36)
   -------------------------------------------------------------------------- */
.parallax-timeline-section {
  height: 480vh;
  position: relative;
  background: #06070A;
  overflow: visible;
}

.parallax-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  /* 100vw includes the scrollbar width and caused horizontal overflow */
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 25%, #10131B 0%, #050608 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 25;
}

/* ---------------- HUD Top Control Bar ---------------- */
.timeline-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(10, 12, 17, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-medium);
  z-index: 35;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.hud-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.hud-title-badge {
  font-family: var(--font-monumental);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #FFF;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.hud-title-badge .symbol-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  display: inline-block;
}

.hud-timecode-box {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #07080B;
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.hud-phase-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.hud-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.phase-jump-group {
  display: flex;
  gap: 0.35rem;
  background: #0B0D12;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.phase-jump-btn {
  background: transparent;
  border: none;
  color: var(--text-slate-gray);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.phase-jump-btn:hover {
  color: #FFF;
  background: rgba(255, 255, 255, 0.06);
}

.phase-jump-btn.active-phase {
  background: var(--accent-tungsten);
  color: #000;
  font-weight: 700;
}

.timeline-filter-group {
  display: flex;
  gap: 0.35rem;
}

.timeline-filter-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-dim-gray);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.32rem 0.6rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeline-filter-btn:hover {
  color: var(--text-optic-white);
  border-color: rgba(255, 255, 255, 0.25);
}

.timeline-filter-btn.active {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  font-weight: 600;
}

/* ---------------- Parallax Content Area ---------------- */
.parallax-viewport-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
}

/* Layer 1: Deep Background Kinetic Typography */
.parallax-watermark-layer {
  position: absolute;
  top: 12%;
  left: 0;
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.watermark-kinetic-text {
  font-family: var(--font-monumental);
  font-size: clamp(5.5rem, 13vw, 12.5rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.038);
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

/* Layer 2: Filmstrip Ticks & Sprockets Layer */
.parallax-filmstrip-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.filmstrip-month-axis {
  position: absolute;
  top: 3.5rem;
  left: 4vw;
  display: flex;
  gap: clamp(80px, 9vw, 140px);
  white-space: nowrap;
}

.month-tick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.month-tick .tick-line {
  width: 1px;
  height: 28px;
  background: rgba(255, 255, 255, 0.12);
  margin-bottom: 0.4rem;
}

.month-tick.quarter-tick .tick-line {
  height: 38px;
  background: rgba(56, 189, 248, 0.35);
  width: 1.5px;
}

.month-tick.year-tick .tick-line {
  height: 52px;
  background: var(--accent-tungsten);
  width: 2px;
  box-shadow: 0 0 8px var(--accent-tungsten);
}

.month-tick .tick-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim-gray);
}

.month-tick.quarter-tick .tick-label {
  color: var(--accent-cyan);
  font-weight: 600;
}

.month-tick .tick-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim-gray);
}

.month-tick .tick-year {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-tungsten);
  margin-top: 0.2rem;
}

/* Layer 3: Foreground Cards Track */
.parallax-cards-layer {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.parallax-cards-track {
  display: flex;
  align-items: center;
  gap: clamp(1.8rem, 3.2vw, 3.2rem);
  padding: 0 4vw;
  will-change: transform;
}

/* ---------------- Timeline Station Cards ---------------- */
.timeline-station {
  flex: 0 0 390px;
  width: 390px;
  min-width: 390px;
  max-width: 390px;
  height: 530px;
  max-height: calc(100vh - 180px);
  background: rgba(17, 20, 27, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s, opacity 0.3s;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.timeline-station:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Cinematic Infographic Image Box for Timeline Cards */
.timeline-card-image-box {
  position: relative;
  width: 100%;
  height: 205px;
  border-radius: 4px;
  overflow: hidden;
  margin: 0.5rem 0 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #080A10;
}

.timeline-card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.timeline-station:hover .timeline-card-image-box img,
.milestone-monolith:hover .timeline-card-image-box img {
  transform: scale(1.06);
}

.timeline-card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 40%, rgba(10,12,18,0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  pointer-events: none;
}

.timeline-card-image-overlay .overlay-top-tags {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.timeline-card-image-overlay .overlay-bottom-caption {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-tungsten);
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0,0,0,0.95);
  letter-spacing: 0.04em;
}

.station-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.station-hero-num {
  font-family: var(--font-monumental);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent-cyan);
  line-height: 1;
  margin-bottom: 0.6rem;
}

.station-title {
  font-size: 1.25rem;
  color: var(--text-optic-white);
  line-height: 1.25;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
}

.station-desc {
  font-size: 0.82rem;
  color: var(--text-slate-gray);
  line-height: 1.5;
  margin-bottom: 0.8rem;
}

.station-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  background: #080A0E;
  border: 1px solid var(--border-subtle);
  padding: 0.75rem;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.spec-cell {
  display: flex;
  flex-direction: column;
}

.spec-cell .spec-k {
  font-size: 0.62rem;
  color: var(--text-dim-gray);
}

.spec-cell .spec-v {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-optic-white);
  margin-top: 0.15rem;
}

.scroll-prompt-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-top: 0.8rem;
  animation: pulseCyan 2s infinite;
}

/* ---------------- Work Package Cards ---------------- */
.wp-card {
  border-left: 3px solid var(--accent-cyan);
}

.wp-card[data-category="rendszer"] {
  border-left-color: var(--accent-cyan);
}

.wp-card[data-category="pilot"] {
  border-left-color: var(--accent-tungsten);
}

.wp-card[data-category="inkluzio"] {
  border-left-color: var(--accent-locked-green);
}

.wp-card[data-category="piac"] {
  border-left-color: #94A3B8;
}

.wp-code-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  border: 1px solid var(--border-medium);
  letter-spacing: 0.05em;
}

.wp-code-badge.wp-cyan {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.1);
}

.wp-code-badge.wp-tungsten {
  color: var(--accent-tungsten);
  border-color: rgba(229, 169, 88, 0.4);
  background: rgba(229, 169, 88, 0.1);
}

.wp-code-badge.wp-green {
  color: var(--accent-locked-green);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.wp-code-badge.wp-purple {
  color: #A855F7;
  border-color: rgba(168, 85, 247, 0.4);
  background: rgba(168, 85, 247, 0.1);
}

.wp-code-badge.wp-slate {
  color: #CBD5E1;
  border-color: rgba(203, 213, 225, 0.4);
  background: rgba(203, 213, 225, 0.08);
}

.wp-span-text {
  color: var(--text-dim-gray);
  font-size: 0.7rem;
}

.wp-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-optic-white);
  line-height: 1.28;
  margin-bottom: 0.6rem;
}

.wp-partner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  padding-bottom: 0.5rem;
}

.partner-lead-pill {
  color: var(--accent-tungsten);
  font-weight: 600;
}

.effort-pill {
  color: var(--accent-cyan);
}

.wp-card-desc {
  font-size: 0.78rem;
  color: var(--text-slate-gray);
  line-height: 1.45;
  margin-bottom: 0.6rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wp-tasks-preview {
  background: #090B10;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
  margin-bottom: 0.6rem;
}

.tasks-heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent-cyan);
  margin-bottom: 0.35rem;
}

.tasks-mini-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: #CBD5E1;
}

.tasks-mini-list li.more-tasks {
  color: var(--text-dim-gray);
  font-style: italic;
  font-size: 0.68rem;
}

.wp-deliverables-pills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.deliverable-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 2px;
  padding: 0.18rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-tungsten);
}

/* ---------------- Phase Portal Monolith ---------------- */
.phase-portal-monolith {
  flex: 0 0 320px;
  width: 320px;
  min-width: 320px;
  height: 480px;
  max-height: calc(100vh - 210px);
  border-radius: 6px;
  background: linear-gradient(155deg, #151822 0%, #0B0D13 100%);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.1);
}

.portal-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.portal-title {
  font-family: var(--font-monumental);
  font-size: 1.6rem;
  line-height: 1.15;
  color: #FFF;
  margin-bottom: 0.6rem;
}

.portal-sub {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-tungsten);
  margin-bottom: 1.2rem;
}

.portal-desc {
  font-size: 0.82rem;
  color: var(--text-slate-gray);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.portal-year-tag {
  font-family: var(--font-monumental);
  font-size: 3.2rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

/* ---------------- Milestone Monolith (Golden Pillar) ---------------- */
.milestone-monolith {
  flex: 0 0 350px;
  width: 350px;
  min-width: 350px;
  height: 530px;
  max-height: calc(100vh - 180px);
  background: linear-gradient(155deg, #1D1810 0%, #11100C 100%);
  border: 1.5px solid var(--accent-tungsten);
  box-shadow: 0 0 32px rgba(229, 169, 88, 0.16);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s;
}

.milestone-monolith:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 45px rgba(229, 169, 88, 0.3);
}

.milestone-diamond-glow {
  position: absolute;
  top: -14px;
  right: 20px;
  width: 28px;
  height: 28px;
  background: var(--accent-tungsten);
  border-radius: 3px;
  transform: rotate(45deg);
  display: grid;
  place-items: center;
  box-shadow: 0 0 16px var(--accent-tungsten);
}

.milestone-diamond-glow .diamond-shape {
  transform: rotate(-45deg);
  color: #000;
  font-size: 0.75rem;
  font-weight: 900;
}

.ms-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.ms-code {
  font-weight: 700;
  color: var(--accent-tungsten);
  font-size: 1rem;
}

.ms-month {
  color: #CBD5E1;
  background: rgba(229, 169, 88, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

.gonogo-badge {
  background: rgba(244, 63, 94, 0.2);
  border: 1px solid #F43F5E;
  color: #FFA4B3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  margin: 0.4rem 0;
  text-align: center;
}

.gonogo-monolith {
  border-color: #F43F5E;
  box-shadow: 0 0 35px rgba(244, 63, 94, 0.2);
  background: linear-gradient(155deg, #221217 0%, #120A0E 100%);
}

.gonogo-monolith .milestone-diamond-glow {
  background: #F43F5E;
  box-shadow: 0 0 16px #F43F5E;
}

.ms-title {
  font-size: 1.18rem;
  color: var(--text-optic-white);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.ms-official-sub {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-gray);
  margin-bottom: 0.6rem;
  font-style: italic;
}

.ms-wp-link {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.ms-verification {
  font-size: 0.76rem;
  color: var(--text-slate-gray);
  line-height: 1.45;
  background: #0A0907;
  padding: 0.7rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex: 1;
  overflow-y: auto;
}

/* ---------------- HUD Bottom Scrubber Bar ---------------- */
.timeline-scrubber-hud {
  padding: 0.75rem clamp(1rem, 2.5vw, 2.5rem);
  background: rgba(8, 10, 14, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-medium);
  z-index: 35;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scrubber-controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim-gray);
  flex-wrap: wrap;
  gap: 0.8rem;
}

.scrubber-track-wrap {
  position: relative;
  width: 100%;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.scrubber-track-rail {
  width: 100%;
  height: 6px;
  background: #141722;
  border-radius: 3px;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.scrubber-track-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-tungsten));
  border-radius: 3px;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.scrubber-cursor-pin {
  position: absolute;
  top: -7px;
  left: 0%;
  width: 20px;
  height: 20px;
  background: #FFF;
  border: 2px solid var(--accent-tungsten);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px var(--accent-tungsten);
  pointer-events: none;
  transition: left 0.05s linear;
}

.scrubber-ms-anchor {
  position: absolute;
  top: -4px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 5;
}

.scrubber-ms-anchor .anchor-diamond {
  color: var(--accent-tungsten);
  font-size: 0.72rem;
  text-shadow: 0 0 6px var(--accent-tungsten);
  transition: transform 0.2s;
}

.scrubber-ms-anchor:hover .anchor-diamond {
  transform: scale(1.4);
  color: #FFF;
}

.scrubber-ms-anchor.gonogo .anchor-diamond {
  color: #F43F5E;
  text-shadow: 0 0 6px #F43F5E;
}

.scrubber-ms-anchor .anchor-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim-gray);
  margin-top: 2px;
}

.scrubber-year-divider {
  position: absolute;
  top: 14px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.2);
}

/* ---------------- Timeline Detail Modal ---------------- */
.timeline-detail-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(18px);
  display: none;
  place-items: center;
  z-index: 99999;
  padding: 1.5rem;
  overflow-y: auto;
}

.timeline-detail-modal.open {
  display: grid;
}

.timeline-modal-window {
  background: #11141B;
  border: 1px solid var(--border-medium);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.12);
  border-radius: 8px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2.2rem;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #181C26;
  border: 1px solid var(--border-subtle);
  color: var(--text-slate-gray);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #F43F5E;
  color: #FFF;
}

.spec-card {
  background: #0A0C11;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.spec-card-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim-gray);
  margin-bottom: 0.2rem;
}

.spec-card-val {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-optic-white);
}

/* ---------------- Responsive Parallax Adjustments ---------------- */
@media (max-width: 768px) {
  .hud-right { display: none; }
  .timeline-station {
    flex: 0 0 310px;
    width: 310px;
    min-width: 310px;
    height: 440px;
    padding: 1.2rem;
  }
  .phase-portal-monolith, .milestone-monolith {
    flex: 0 0 280px;
    width: 280px;
    min-width: 280px;
    height: 440px;
    padding: 1.4rem;
  }
}

/* --------------------------------------------------------------------------

/* --------------------------------------------------------------------------
   9. PILOTS & CREATORS' PROGRAM (18 PILOT GRID + 2028 Q3 MASTER BANNER)
   -------------------------------------------------------------------------- */
.master-status-banner {
  background: linear-gradient(135deg, #1C1810 0%, #171510 100%);
  border: 1px solid var(--accent-tungsten);
  box-shadow: 0 0 30px rgba(229, 169, 88, 0.15);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  position: relative;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.banner-icon-badge {
  width: 48px;
  height: 48px;
  background: rgba(229, 169, 88, 0.12);
  border: 1px solid var(--accent-tungsten);
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: var(--accent-tungsten);
  font-size: 1.4rem;
}

.banner-title {
  font-size: 1.35rem;
  color: var(--text-optic-white);
  margin-bottom: 0.3rem;
}

.banner-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-tungsten);
}

/* Pilots 18-Grid */
.pilots-grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.pilot-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pilot-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.7), 0 0 20px rgba(56, 189, 248, 0.1);
}

.pilot-poster-thumb {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #080A0F;
}

.pilot-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pilot-card:hover .pilot-poster-thumb img {
  transform: scale(1.08);
}

.pilot-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(18,20,26,0.2) 40%, rgba(18,20,26,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.8rem;
  z-index: 2;
}

.pilot-body-content {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.pilot-type-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.pilot-film {
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: var(--accent-cyan);
  background: rgba(10, 25, 40, 0.75);
}

.pilot-media {
  border: 1px solid rgba(229, 169, 88, 0.5);
  color: var(--accent-tungsten);
  background: rgba(35, 25, 10, 0.75);
}

/* Micro-grant Box with Panoramic Filmmaker Background */
.microgrant-box {
  background: linear-gradient(135deg, rgba(14, 17, 24, 0.95) 0%, rgba(18, 22, 31, 0.92) 100%), url('../assets/microgrant_filmmaker.jpg') center/cover no-repeat;
  border: 1px solid var(--accent-tungsten);
  box-shadow: 0 0 35px rgba(229, 169, 88, 0.15);
  border-radius: 6px;
  padding: clamp(1.8rem, 4vw, 3rem);
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.microgrant-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.75) 60%, rgba(10, 12, 16, 0.88) 100%);
  pointer-events: none;
  z-index: 1;
}

.microgrant-box > * {
  position: relative;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   10. CONZORTIUM: EUROPE VECTOR NETWORK MAP & PARTNER CARDS
   -------------------------------------------------------------------------- */
.map-container {
  position: relative;
  background: #090B0F;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  margin-bottom: 3rem;
  overflow: hidden;
}

.europe-leaflet-map {
  width: 100%;
  height: 500px;
  background: #090B0E;
}

.europe-svg-map {
  width: 100%;
  max-height: 480px;
}

/* City Filter Buttons */
.city-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-slate-gray);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.28rem 0.65rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-filter-btn:hover,
.city-filter-btn.active {
  background: rgba(229, 169, 88, 0.15);
  border-color: var(--accent-tungsten);
  color: var(--accent-tungsten);
  box-shadow: 0 0 10px rgba(229, 169, 88, 0.2);
}

/* Leaflet Dark Matter & Custom Markers */
.leaflet-container {
  background: #090B0E !important;
  font-family: var(--font-sans) !important;
}

.leaflet-tile-pane {
  opacity: 0.95;
}

.leaflet-control-zoom {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px !important;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.6) !important;
}

.leaflet-control-zoom a {
  background: #11141D !important;
  color: #CBD5E1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a:hover {
  background: #1A1F2C !important;
  color: var(--accent-cyan) !important;
}

.leaflet-control-attribution {
  background: rgba(8, 10, 14, 0.8) !important;
  color: #64748B !important;
  font-size: 0.62rem !important;
}

.leaflet-control-attribution a {
  color: #94A3B8 !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(13, 17, 24, 0.96) !important;
  border: 1px solid var(--accent-tungsten) !important;
  border-radius: 4px !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85) !important;
  color: #FFF !important;
  padding: 0 !important;
}

.leaflet-popup-content {
  margin: 0.8rem 1rem !important;
  font-family: var(--font-mono) !important;
  font-size: 0.74rem !important;
  line-height: 1.4 !important;
}

.leaflet-popup-tip {
  background: #0D1118 !important;
}

/* Custom Marker Pins */
.leaflet-hub-node {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hub-pulse-ring {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 169, 88, 0.22);
  border: 1px solid var(--accent-tungsten);
  animation: hubPulseAnim 2.6s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes hubPulseAnim {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hub-center-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent-tungsten);
  border: 2px solid #000;
  box-shadow: 0 0 14px var(--accent-tungsten);
  z-index: 2;
  transition: transform 0.2s, background-color 0.2s;
}

.leaflet-hub-node:hover .hub-center-dot {
  transform: scale(1.35);
  background: var(--accent-cyan);
  box-shadow: 0 0 18px var(--accent-cyan);
}

.hub-label-tag {
  position: absolute;
  top: 18px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #FFF;
  background: rgba(8, 10, 16, 0.9);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
  pointer-events: none;
}

.partners-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
}

.partner-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  padding: 1.8rem;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 18px 40px rgba(0,0,0,0.65);
}

.partner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  gap: 0.8rem;
}

.partner-logo-container {
  height: 52px;
  width: 210px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: all 0.25s ease;
}

.partner-logo-container.logo-light-bg {
  background: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.partner-logo-img {
  height: 40px;
  max-width: 195px;
  width: auto;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.partner-country-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  white-space: nowrap;
}

.synergy-matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

.synergy-matrix-table th, 
.synergy-matrix-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: left;
}

.synergy-matrix-table th {
  background: #141720;
  font-family: var(--font-mono);
  color: var(--text-dim-gray);
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   11. A PROJEKT: MANIFESTO & SPLIT COMPARISON TABLE
   -------------------------------------------------------------------------- */
.manifesto-block {
  position: relative;
  background: linear-gradient(135deg, rgba(229, 169, 88, 0.04) 0%, rgba(8, 10, 14, 0.9) 100%);
  border: 1px solid rgba(229, 169, 88, 0.25);
  border-left: 4px solid var(--accent-tungsten);
  border-radius: 6px;
  padding: 2.5rem 2.8rem;
  margin: 3rem 0 4.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(229, 169, 88, 0.03);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.manifesto-block:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 169, 88, 0.45);
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-optic-white);
  margin-bottom: 1.2rem;
  position: relative;
  z-index: 2;
}

.split-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem;
  margin-top: 2rem;
}

.comparison-side {
  padding: 2.2rem;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.comparison-side:hover {
  transform: translateY(-4px);
}

.comparison-risk {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, rgba(13, 16, 23, 0.9) 100%);
  border: 1px solid rgba(244, 63, 94, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.comparison-risk:hover {
  border-color: rgba(244, 63, 94, 0.6);
  box-shadow: 0 16px 40px rgba(244, 63, 94, 0.15);
}

.comparison-eura {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, rgba(13, 16, 23, 0.9) 100%);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(56, 189, 248, 0.08);
}

.comparison-eura:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 40px rgba(56, 189, 248, 0.2);
}

@media (max-width: 800px) {
  .split-comparison-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   12. UPDATES & CONTACT (REVISION LOG, WHITEPAPERS, B2B FORM)
   -------------------------------------------------------------------------- */
.revision-log-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.log-entry {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.4rem 1.8rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.log-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  min-width: 170px;
}

.log-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.whitepapers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.download-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

/* Form Styling */
.b2b-form-card {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 2.5rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.4rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-slate-gray);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.form-control {
  width: 100%;
  background: #090B0E;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  color: var(--text-optic-white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-tungsten);
  box-shadow: 0 0 10px var(--accent-tungsten-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

@media (max-width: 700px) {
  .form-row-2 { grid-template-columns: 1fr; }
}

/* Toast Notifications */
.toast-msg {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--bg-grading-slate);
  border: 1px solid var(--accent-locked-green);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  padding: 1rem 1.4rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #FFF;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-msg.show {
  transform: translateY(0);
}

/* ==========================================================================
   SECTORS, READY BOARD & PILLARS VISUAL ILLUSTRATIONS
   ========================================================================== */

/* 3 Sectors Visual Cards */
.sector-card-rich {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.sector-card-rich:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   NEW REFINED COMPONENTS (USER 21-POINT UPDATE)
   ========================================================================== */

/* ---------------- 1. STATUS & BASICS ANIMATED INFOGRAPHIC ---------------- */
.status-telemetry-infographic {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 2.2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.telemetry-dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1.2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.telemetry-pipeline-canvas {
  width: 100%;
  margin-bottom: 2.5rem;
  background: #080A0F;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 1.5rem;
}

.telemetry-stat-quad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.telemetry-quad-pod {
  background: #0D1017;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 1.4rem;
  position: relative;
  transition: transform 0.25s, border-color 0.25s;
}

.telemetry-quad-pod:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
}

.quad-pod-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim-gray);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.quad-pod-val {
  font-family: var(--font-monumental);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-optic-white);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.quad-pod-desc {
  font-size: 0.78rem;
  color: var(--text-slate-gray);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .telemetry-stat-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .telemetry-stat-quad { grid-template-columns: 1fr; }
}

/* ---------------- 2. MONUMENTAL CALLOUT SECTION (REPLACES 4 PILLARS) ---------------- */
.monumental-roadmap-callout-section {
  padding: clamp(3.5rem, 7vw, 6.5rem) 0;
  background: radial-gradient(ellipse at 50% 50%, #161C28 0%, #06070A 100%);
  border-top: 1px solid var(--border-medium);
  border-bottom: 1px solid var(--border-medium);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.monumental-roadmap-callout-section:hover {
  background: radial-gradient(ellipse at 50% 50%, #1C2434 0%, #080A0E 100%);
}

.monumental-callout-wrap {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.callout-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.monumental-callout-headline {
  font-family: var(--font-monumental);
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #FFF;
  margin-bottom: 1.6rem;
  transition: transform 0.3s ease;
}

.monumental-roadmap-callout-section:hover .monumental-callout-headline {
  transform: scale(1.015);
}

.monumental-callout-headline .highlight-callout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.55em;
  row-gap: 0.18em;
  background: linear-gradient(135deg, var(--accent-cyan) 0%, #FFF 40%, var(--accent-tungsten) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Reduced from 0.85em: the strapline no longer competes with the headline */
  font-size: 0.42em;
  letter-spacing: -0.01em;
  margin-top: 0.9rem;
}

/* Each segment stays intact; the line may only break on the "//" separators */
.monumental-callout-headline .highlight-callout .callout-seg,
.monumental-callout-headline .highlight-callout .callout-sep {
  white-space: nowrap;
}

.monumental-callout-headline .highlight-callout .callout-sep {
  opacity: 0.45;
}

.callout-interactive-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(229, 169, 88, 0.12);
  border: 1px solid var(--accent-tungsten);
  padding: 0.75rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--accent-tungsten);
  letter-spacing: 0.06em;
  transition: all 0.25s ease;
}

.monumental-roadmap-callout-section:hover .callout-interactive-indicator {
  background: var(--accent-tungsten);
  color: #000;
  font-weight: 700;
  box-shadow: 0 0 25px var(--accent-tungsten-glow);
}

/* ---------------- 3. COLLAPSIBLE SYSTEM ARCHITECTURE (CLOSED BY DEFAULT) ---------------- */
.arch-collapse-toggle-bar {
  margin-bottom: 2rem;
}

.arch-collapse-toggle-btn {
  width: 100%;
  background: #11141D;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  padding: 1.2rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-optic-white);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.arch-collapse-toggle-btn:hover {
  border-color: var(--accent-cyan);
  background: #161A24;
}

.arch-collapse-toggle-btn .toggle-badge {
  color: var(--accent-cyan);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.arch-stack-collapsible {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.arch-stack-collapsible.is-open {
  max-height: 1600px;
  opacity: 1;
  margin-bottom: 3rem;
}

/* ---------------- 4. 8+10 PILOT ARCHITECTURE INFOGRAPHIC (REPLACES PLACEHOLDER CARDS) ---------------- */
.pilots-architecture-framework {
  background: var(--bg-grading-slate);
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 2.4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.pilots-framework-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 1.5rem;
}

.pilot-vertical-column {
  background: #0D1017;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pilot-vertical-column.film-vertical {
  border-top: 3px solid var(--accent-cyan);
}

.pilot-vertical-column.media-vertical {
  border-top: 3px solid var(--accent-tungsten);
}

.vertical-num-badge {
  font-family: var(--font-monumental);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.film-vertical .vertical-num-badge { color: var(--accent-cyan); }
.media-vertical .vertical-num-badge { color: var(--accent-tungsten); }

.vertical-title {
  font-size: 1.35rem;
  color: #FFF;
  margin-bottom: 0.8rem;
}

.vertical-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.86rem;
  color: #CBD5E1;
  margin: 1.2rem 0 1.8rem;
}

.pilots-central-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0 0.5rem;
  width: 250px;
}

/* 14 Decision Gates Cinematic Filmstrip Reel Viewer */
.gates-reel-container {
  width: 100%;
  background: #080A0E;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.08);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.gates-reel-container:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.2);
}

.gates-reel-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.65rem;
  background: rgba(16, 20, 28, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.gates-reel-badge {
  color: var(--accent-tungsten);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gates-reel-phase {
  color: var(--accent-cyan);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gates-reel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 250 / 280;
  background: #040507;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
}

.gates-reel-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gates-reel-img.fade-out {
  opacity: 0.2;
  transform: scale(0.97);
}

.gates-reel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, transparent 20%, transparent 80%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.gates-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 38px;
  background: rgba(10, 13, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
  border-radius: 3px;
  font-size: 1.1rem;
  line-height: 1;
}

.gates-reel-container:hover .gates-nav-btn {
  opacity: 0.85;
}

.gates-nav-btn:hover {
  opacity: 1 !important;
  background: var(--accent-cyan);
  color: #000;
}

.gates-prev-btn { left: 4px; }
.gates-next-btn { right: 4px; }

.gates-reel-info {
  padding: 0.5rem 0.65rem 0.4rem;
  background: #0A0D14;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 64px;
}

.gates-reel-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.25;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gates-reel-country {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--accent-cyan);
  margin-bottom: 0.2rem;
}

.gates-reel-specs {
  font-size: 0.67rem;
  color: var(--text-dim-gray);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gates-reel-scrubber {
  display: flex;
  gap: 2.5px;
  padding: 0.35rem 0.65rem;
  background: #07090D;
  justify-content: space-between;
}

.gate-tick {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.gate-tick:hover {
  background: rgba(56, 189, 248, 0.7);
  transform: scaleY(1.6);
}

.gate-tick.active {
  background: var(--accent-tungsten);
  box-shadow: 0 0 6px var(--accent-tungsten);
  transform: scaleY(1.5);
}

.gates-reel-ctrls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: rgba(14, 18, 25, 0.95);
}

.gates-play-toggle, .gates-expand-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-slate-gray);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
}

.gates-play-toggle:hover {
  border-color: var(--accent-tungsten);
  color: var(--accent-tungsten);
}

.gates-expand-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

@media (max-width: 960px) {
  .pilots-framework-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .pilots-central-bridge {
    flex-direction: row;
    padding: 1rem 0;
  }
}

/* ---------------- 5. MOUSE-REACTIVE INTERACTIVE SYNERGY CANVAS ---------------- */
.synergy-interactive-wrapper {
  background: #080A0E;
  border: 1px solid var(--border-medium);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  margin-top: 2rem;
  cursor: crosshair;
}

.synergy-canvas-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.synergy-nodes-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 2;
  perspective: 1000px;
}

.synergy-interactive-node {
  background: rgba(18, 22, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1.6rem;
  transition: transform 0.15s ease-out, border-color 0.25s, box-shadow 0.25s;
  position: relative;
}

.synergy-interactive-node:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px var(--accent-cyan-glow);
}

.node-partner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.node-partner-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFF;
}

.node-country-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.node-role-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-tungsten);
  margin-bottom: 0.6rem;
}

.node-desc {
  font-size: 0.82rem;
  color: var(--text-slate-gray);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .synergy-nodes-cluster { grid-template-columns: 1fr; }
}

/* ---------------- 6. WP CARD MINI-INFOGRAPHICS IN PARALLAX TIMELINE ---------------- */
.wp-card-infographic {
  background: #080A0E;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  margin: 0.6rem 0;
}

.station-mini-infographic {
  background: #080A0E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.6rem;
  margin: 0.8rem 0;
}


.sector-visual-header {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #080A10;
}

.sector-visual-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.sector-card-rich:hover .sector-visual-header img {
  transform: scale(1.06);
}

.sector-visual-header .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(18,20,26,0.3) 40%, rgba(18,20,26,0.95) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1rem;
  z-index: 2;
}

.sector-card-body {
  padding: 1.8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Ready to Build Illustrated Card Header */
.ready-card-tech-illus {
  height: 70px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  margin: 0.8rem 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ready-card-tech-illus svg {
  width: 90%;
  height: 80%;
}

/* Pillar Card Illustrated Header */
.pillar-illus-header {
  height: 85px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pillar-illus-header svg {
  width: 90%;
  height: 85%;
}

/* Whitepaper 3D Illuminated Document Mockup */
.whitepaper-cover-art {
  height: 140px;
  background: linear-gradient(135deg, #101522 0%, #0A0D15 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.whitepaper-cover-art svg {
  width: 100px;
  height: 100px;
}

/* ---------------- 7. PARADIGM SHIFT BLURRED VIDEO BACKDROP ---------------- */
.paradigm-shift-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 3.5rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(56, 189, 248, 0.12);
}

.paradigm-video-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.paradigm-video-backdrop video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(16px) brightness(0.4) saturate(1.5);
  transform: scale(1.1);
}

.paradigm-video-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 165, 233, 0.22) 0%, rgba(9, 11, 16, 0.88) 75%),
              linear-gradient(180deg, rgba(8, 10, 15, 0.65) 0%, rgba(9, 11, 16, 0.95) 100%);
  mix-blend-mode: multiply;
}

.paradigm-shift-inner {
  position: relative;
  z-index: 2;
  padding: clamp(1.8rem, 3.5vw, 3rem);
}

/* ---------------- 8. SYNERGY CHART INTERACTIVE 3D PRESENTATION ---------------- */
.synergy-chart-presentation {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.synergy-chart-frame {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.15s ease-out;
  transform-style: preserve-3d;
}

.synergy-chart-frame:hover {
  box-shadow: none;
}

.synergy-chart-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: transparent;
  border: none;
  box-shadow: none;
}

.synergy-chart-badge {
  display: none;
}

/* ---------------- 9. NLE WORKSTATION VIDEO PLAYER ENHANCEMENTS ---------------- */
.nle-video-preview video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.nle-video-preview .nle-player-overlay-btn {
  position: absolute;
  z-index: 6;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(10, 14, 22, 0.85);
  border: 1px solid var(--accent-cyan);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}

.nle-video-preview .nle-player-overlay-btn:hover {
  transform: scale(1.1);
  background: rgba(56, 189, 248, 0.35);
}

.nle-transport-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 6;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 7, 12, 0.95) 100%);
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

/* ---------------- 10. WHITEPAPERS LIBRARY GRID ---------------- */
.whitepapers-library-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 900px) {
  .whitepapers-library-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   DESIGN REVISION 2026-09 — HERO / CALLOUT / PERTINENCE / PARALLAX
   ========================================================================== */

/* -- (5) Section headline: force "(Ready to Build)" onto its own line ------ */
.h2-subline {
  display: block;
  font-size: 0.72em;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: -0.01em;
  margin-top: 0.15em;
}

/* --------------------------------------------------------------------------
   (7) PERTINENCE — three numbered sub-blocks + image flip cards
   -------------------------------------------------------------------------- */
#pertinence {
  counter-reset: pblock;
}

#pertinence .section-header {
  counter-increment: pblock;
  position: relative;
  padding-left: 3.4rem;
  border-left: 2px solid rgba(56, 189, 248, 0.28);
  margin-bottom: 1.8rem;
}

#pertinence .section-header::before {
  content: counter(pblock, decimal-leading-zero);
  position: absolute;
  left: 1rem;
  top: -0.1rem;
  font-family: var(--font-monumental);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(56, 189, 248, 0.38);
}

#pertinence .section-tag {
  font-size: 0.66rem;
  margin-bottom: 0.4rem;
}

#pertinence .section-header h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  margin-bottom: 0.15rem;
}

#pertinence .section-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  max-width: 780px;
  margin-top: 0.45rem;
}

#pertinence .pertinence-intro {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-slate-gray);
  max-width: 880px;
  margin-bottom: 1.8rem;
}

/* ---- Flip card ---- */
.flip-card {
  --flip-h: 340px;
  position: relative;
  height: var(--flip-h);
  perspective: 1500px;
  cursor: pointer;
  outline: none;
}

.flip-card.flip-area      { --flip-h: 470px; }
.flip-card.flip-outcome   { --flip-h: 330px; }
.flip-card.flip-objective { --flip-h: 310px; }

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.22, 0.72, 0.2, 1);
}

.flip-card:hover .flip-card-inner,
.flip-card:focus .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face {
  position: absolute;
  inset: 0;
  border-radius: 4px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Front — generated key visual */
.flip-card-front {
  background: linear-gradient(145deg, #12161F 0%, #0A0C12 100%);
  border: 1px solid var(--border-medium);
  transition: border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.flip-card:hover .flip-card-front {
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 1.2s ease;
}

.flip-card:hover .flip-card-front img {
  transform: scale(1.06);
}

.flip-front-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(8, 9, 13, 0.12) 0%,
    rgba(8, 9, 13, 0.55) 48%,
    rgba(8, 9, 13, 0.93) 100%);
  pointer-events: none;
}

.flip-front-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.35rem 1.4rem 1.5rem;
}

.flip-front-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.45rem;
}

.flip-front-title {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.28;
  font-weight: 700;
  color: #FFF;
  margin: 0;
}

.flip-hint {
  position: absolute;
  top: 0.8rem;
  right: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  color: var(--accent-tungsten);
  background: rgba(10, 12, 18, 0.72);
  border: 1px solid rgba(229, 169, 88, 0.4);
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Back — the full textual content */
.flip-card-back {
  transform: rotateY(180deg);
  padding: 1.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-grading-slate);
}

.flip-card.flip-area .flip-card-back { padding: 1.8rem; }

.flip-card-back::-webkit-scrollbar { width: 4px; }
.flip-card-back::-webkit-scrollbar-thumb {
  background: rgba(56, 189, 248, 0.35);
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .flip-card-inner,
  .flip-card-front img {
    transition: none;
  }
}

@media (max-width: 640px) {
  .flip-card.flip-area      { --flip-h: 520px; }
  .flip-card.flip-outcome   { --flip-h: 360px; }
  .flip-card.flip-objective { --flip-h: 340px; }
}

/* --------------------------------------------------------------------------
   (8) PARALLAX TIMELINE CARDS — compact badges, no body copy, no PM
   -------------------------------------------------------------------------- */

/* (8A) station badges were overflowing their meta bar */
.parallax-cards-track .station-meta-bar .badge {
  font-size: 0.56rem;
  letter-spacing: 0.04em;
  padding: 0.22rem 0.5rem;
  gap: 0.3rem;
}

.parallax-cards-track .station-meta-bar .badge .badge-dot {
  width: 5px;
  height: 5px;
}

/* (8B) body copy is only shown in the detail modal, not on the card face */
.parallax-cards-track .station-desc,
.parallax-cards-track .portal-desc,
.parallax-cards-track .wp-card-desc,
.parallax-cards-track .ms-verification {
  display: none !important;
}

/* (8D) person-month figures are removed from every card */
.parallax-cards-track .effort-pill {
  display: none !important;
}

/* Pertinence card grids (were inline styles) */
.pertinence-grid {
  display: grid;
  gap: 1.5rem;
}

.pertinence-grid-areas {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.8rem;
  margin-bottom: 3.5rem;
}

.pertinence-grid-outcomes {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-bottom: 3.5rem;
}

/* five objectives must share one row on desktop, not break to 4 + 1 */
.pertinence-grid-objectives {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.3rem;
}

@media (max-width: 1100px) {
  .pertinence-grid-objectives {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
}

/* ==========================================================================
   SYNERGY CINEMA — auto-drawing diagram sequence (replaces the static image)
   ========================================================================== */
.synergy-cinema {
  position: relative;
  width: 100%;
  background: #05070B;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

/* ---- HUD strip ---- */
.sc-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.5rem 0.9rem;
  background: #0B0E15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sc-hud-left,
.sc-hud-right {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.sc-rec {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-tungsten);
  box-shadow: 0 0 8px var(--accent-tungsten);
  animation: scRec 1.9s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes scRec { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.sc-scene-no { color: var(--accent-tungsten); font-weight: 700; flex: 0 0 auto; }
.sc-scene-label { color: #FFF; font-weight: 700; letter-spacing: 0.06em; }
.sc-scene-sub { color: var(--text-dim-gray); }

.sc-btn {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
  border-radius: 3px;
  padding: 0.2rem 0.5rem;
  font-size: 0.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.sc-btn:hover { background: rgba(56, 189, 248, 0.22); }

/* ---- Stage ---- */
.sc-stage {
  position: relative;
  width: 100%;
  /* height follows the scene that is on screen */
  aspect-ratio: var(--sc-ar, 1600 / 450);
  transition: aspect-ratio 620ms ease;
}

.sc-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 620ms ease, visibility 0s linear 620ms;
}

.sc-scene.is-current {
  opacity: 1;
  visibility: visible;
  transition: opacity 620ms ease, visibility 0s linear 0s;
}

.sc-scene.is-leaving { opacity: 0; }

.sc-svg { display: block; width: 100%; height: 100%; }

/* ---- Element choreography ---- */
.sc-svg .sc-fade,
.sc-svg .sc-pop {
  opacity: 0;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.22, 0.72, 0.2, 1);
}

.sc-svg .sc-pop { transform: translateY(14px) scale(0.985); transform-origin: center; }

.sc-scene.is-playing .sc-svg .sc-fade { opacity: 1; }
.sc-scene.is-playing .sc-svg .sc-pop { opacity: 1; transform: none; }

.sc-svg .sc-draw {
  stroke-dasharray: var(--len);
  stroke-dashoffset: var(--len);
  opacity: 0;
  transition: stroke-dashoffset 640ms cubic-bezier(0.4, 0, 0.2, 1), opacity 160ms linear;
}

.sc-scene.is-playing .sc-svg .sc-draw { stroke-dashoffset: 0; opacity: 1; }

/* SVG typography (mirrors the source artwork) */
.sc-svg text { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; user-select: none; }
.sc-svg .sc-card-top { fill: #111726; stroke: #38bdf8; stroke-width: 1.75; }
.sc-t-badge { font-size: 10px; font-weight: 800; fill: #38bdf8; letter-spacing: 1.2px; }
.sc-t-tag { font-size: 10px; font-weight: 800; fill: #38bdf8; letter-spacing: 0.8px; }
.sc-t-h1 { font-size: 12px; font-weight: 700; fill: #ffffff; letter-spacing: 0.3px; }
.sc-t-desc { font-size: 9.5px; fill: #94a3b8; }
.sc-t-teal-h1 { font-size: 12.5px; font-weight: 700; fill: #2dd4bf; letter-spacing: 0.5px; }
.sc-t-teal-desc { font-size: 10.5px; fill: #a7f3d0; }
.sc-t-indigo-h1 { font-size: 12.5px; font-weight: 700; fill: #a5b4fc; letter-spacing: 0.5px; }
.sc-t-indigo-desc { font-size: 10.5px; fill: #c7d2fe; }
.sc-t-bottom { font-size: 11px; font-weight: 600; fill: #cbd5e1; letter-spacing: 0.4px; }

.sc-c-title { font-size: 44px; font-weight: 700; fill: #EEF1F3; letter-spacing: -1px; font-family: Arial, Helvetica, sans-serif; }
.sc-c-subtitle { font-size: 24px; fill: #E3E5E7; font-family: Arial, Helvetica, sans-serif; }
.sc-c-chain { font-size: 30px; font-weight: 700; fill: #E5E7E9; font-family: Arial, Helvetica, sans-serif; }
.sc-c-section { font-size: 16px; fill: #E0E4E7; font-family: Arial, Helvetica, sans-serif; }
.sc-c-card-title { font-size: 23px; font-weight: 700; fill: #E7E9EA; font-family: Arial, Helvetica, sans-serif; }
.sc-c-card-body { font-size: 20px; fill: #E4E6E8; font-family: Arial, Helvetica, sans-serif; }
.sc-c-ribbon { font-size: 20px; fill: #DDE5E8; letter-spacing: .3px; font-family: Arial, Helvetica, sans-serif; }
.sc-c-tag { font-size: 14px; fill: #E2E2DE; font-family: Arial, Helvetica, sans-serif; }
.sc-c-side { font-size: 18px; font-weight: 600; fill: #E8E9EA; font-family: Arial, Helvetica, sans-serif; }
.sc-c-bottom { font-size: 16px; fill: #D8DDE0; font-family: Arial, Helvetica, sans-serif; }
.sc-icon { fill: none; stroke: #E1E7EA; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.sc-icon-thin { fill: none; stroke: #E1E7EA; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Progress bar ---- */
.sc-progress {
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.sc-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-tungsten));
}

.synergy-cinema.is-paused .sc-rec { animation: none; opacity: 0.35; }

@media (prefers-reduced-motion: reduce) {
  .sc-svg .sc-fade,
  .sc-svg .sc-pop,
  .sc-svg .sc-draw {
    transition: none !important;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
  .sc-rec { animation: none; }
}

@media (max-width: 760px) {
  .sc-hud { font-size: 0.55rem; padding: 0.45rem 0.6rem; }
  .sc-scene-sub { display: none; }

  /* A wide technical diagram is unreadable when squeezed into a phone width,
     so the stage scrolls horizontally and shows only the current scene. */
  .sc-stage {
    aspect-ratio: auto;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .sc-scene {
    position: relative;
    inset: auto;
    display: none;
    visibility: visible;
  }

  .sc-scene.is-current { display: block; }

  .sc-svg { width: 860px; height: auto; }

  .sc-stage::-webkit-scrollbar { height: 4px; }
  .sc-stage::-webkit-scrollbar-thumb { background: rgba(56, 189, 248, 0.35); border-radius: 2px; }
}

/* ==========================================================================
   TIMELINE DETAIL MODAL — reachable close button + slow banner motion
   ========================================================================== */

/* The banner used to paint over the ✕ because both are positioned and the
   image comes later in the DOM. Lift the button above the modal content. */
.timeline-modal-window > .modal-close-btn {
  z-index: 30;
  background: rgba(24, 28, 38, 0.92);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
}

/* Everything the modal injects stays below the close button. */
.timeline-modal-window > #timelineModalBody {
  position: relative;
  z-index: 1;
}

/* The backdrop is clickable to dismiss; the framed window is not. */
.timeline-detail-modal { cursor: pointer; }
.timeline-modal-window { cursor: default; }

/* ---- Banner frame + Ken Burns motion ---- */
.modal-banner-frame {
  position: relative;
  width: 100%;
  height: 210px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0A0C12;
}

.modal-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: 50% 45%;
  will-change: transform;
}

.modal-banner-img.is-moving {
  animation: modalKenBurns var(--kb-dur, 24s) ease-in-out infinite alternate;
}

@keyframes modalKenBurns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-to, 1.12)) translate3d(-1.2%, -1.6%, 0); }
}

.modal-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(10, 12, 18, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .modal-banner-img.is-moving { animation: none; }
}
