/* Data Doctor Hub - service storyteller (Warm Architectural Light Theme) */
:root {
  --warm-pearl: #F2F0EA;
  --soft-stone: #E7E9E5;
  --muted-sage: #DCE6E2;
  --mist-teal: #B8DAD3;
  --brand-teal: #00A896;
  --deep-slate: #172B3A;
  --secondary-text: #64748B;

  --story-white: #F2F0EA;
  --story-bg: #E7E9E5;
  --story-sage: #DCE6E2;
  --story-mist: #B8DAD3;
  --story-grey: #E7E9E5;
  --story-navy: #172B3A;
  --story-slate: #2D3E4E;
  --story-muted: #64748B;
  --story-teal: #00A896;
  --story-teal-dark: #008F80;
  --story-line: rgba(23, 43, 58, 0.12);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
[hidden] { display: none !important; }

.story-track { position: relative; width: 100%; background: var(--story-white); }

.story-viewport {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--story-white);
  color: var(--story-navy);
}

/* ---- Video box (right side on desktop) ---- */
.story-canvas-wrap {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 32%;
  right: 0;
  width: 68%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}
.story-canvas { display: block; width: 100%; height: 100%; }

/* Unified Seamless Video Integration matching CCTV reference */
.story-viewport .story-canvas-wrap,
.story-viewport[data-edge="feather"] .story-canvas-wrap,
.story-viewport[data-edge="card"] .story-canvas-wrap {
  top: 0;
  bottom: 0;
  left: 32%;
  right: 0;
  width: 68%;
  height: 100%;
  border-radius: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 6%, #000 18%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.35) 6%, #000 18%, #000 100%);
}

/* ---- Text layer ---- */
.story-overlay-container {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  padding: 100px clamp(24px, 4vw, 56px) 28px;
  box-sizing: border-box;
  pointer-events: none;
}


.story-header-bar {
  scroll-margin-top: 110px;
}
.story-pill {
  scroll-margin-top: 110px;
}

.story-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
}
.story-counter-wrap { display: flex; align-items: center; gap: 14px; }
.story-counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--story-teal);
}
.counter-active { font-size: 18px; }
.counter-total { font-size: 12px; color: var(--story-muted); }
.story-progress-track {
  width: 110px;
  height: 2px;
  background: var(--story-line);
  border-radius: 999px;
  overflow: hidden;
}
.story-progress-fill { height: 100%; width: 0; background: var(--story-teal); }

.story-stage-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.story-pill {
  padding: 6px 12px;
  border: 1px solid var(--story-line);
  border-radius: 999px;
  background: var(--story-white);
  color: var(--story-slate);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.story-pill:hover { color: var(--story-navy); border-color: var(--story-teal); background: rgba(0,168,150,.08); }
.story-pill.active { color: #FFFFFF !important; border-color: var(--story-teal); background: var(--brand-teal) !important; box-shadow: 0 4px 12px rgba(0,168,150,.35); }

.story-stages-wrap { position: relative; flex: 1; pointer-events: none; }

.story-stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: clamp(320px, 34vw, 460px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.story-stage.active { opacity: 1; pointer-events: auto; }
.story-stage-top { margin-bottom: 18px; }

.story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--story-teal);
}
.kicker-line { width: 20px; height: 2px; background: currentColor; }

.story-title {
  margin: 0;
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.03em;
  color: #142B3A;
  text-wrap: balance;
}
.story-desc {
  margin: 0 0 20px;
  font-size: clamp(14.5px, 1.2vw, 16.5px);
  line-height: 1.65;
  color: var(--story-slate);
}

.story-facts {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}
.story-facts li { padding-left: 12px; border-left: 2px solid var(--story-teal); }
.story-facts strong { display: block; font-size: 14px; font-weight: 700; color: var(--story-navy); }
.story-facts span { display: block; margin-top: 2px; font-size: 12px; color: var(--story-muted); }

.story-feature-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.story-feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #2D3E4E;
}
.story-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--story-teal);
}

.story-note {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--story-teal);
  border-radius: 0 8px 8px 0;
  background: rgba(220, 230, 226, 0.55);
  font-size: 13.5px;
  line-height: 1.55;
  color: #2D3E4E;
}

.story-scroll-hint {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--story-muted);
}

.story-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.story-actions .btn-cyan,
.story-form .btn-cyan {
  background: var(--story-teal);
  color: #fff;
  border: none;
  box-shadow: 0 6px 16px -8px rgba(0,168,150,.6);
}
.story-actions .btn-cyan:hover,
.story-form .btn-cyan:hover { background: var(--story-teal-dark); }

/* ---- Booking section (normal page flow, below the pinned story) ---- */
.story-book { background: var(--story-bg); padding: 96px 20px; }
.story-book-inner { max-width: 720px; margin: 0 auto; }
.story-book .story-desc { max-width: 560px; margin-top: 14px; }
.story-form { display: grid; gap: 14px; margin-top: 8px; }
.story-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.story-field { display: flex; flex-direction: column; }
.story-field label { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #2D3E4E; }
.story-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(23, 43, 58, 0.18);
  border-radius: 10px;
  background: var(--story-white);
  font-size: 15px;
  color: var(--story-navy);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.story-field input:focus { border-color: var(--story-teal); box-shadow: 0 0 0 3px rgba(0,168,150,.15); background: #FFFFFF; }
.story-book .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.story-done-box { margin-top: 24px; padding: 24px; border: 1px solid var(--story-line); border-radius: 14px; background: var(--story-white); }
.story-done-box h3 { margin: 0 0 8px; font-size: 20px; color: var(--story-navy); }
.story-done-box p { margin: 0 0 10px; color: var(--story-slate); line-height: 1.6; }
.story-done-box .mono { color: var(--story-teal-dark); }
.done-badge {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 12px;
  border-radius: 50%; background: rgba(0,168,150,.12); color: var(--story-teal-dark);
}
.done-badge .icon { width: 20px; height: 20px; }

/* ---- Tablet (861px - 1100px) ---- */
@media (min-width: 861px) and (max-width: 1100px) {
  .story-canvas-wrap { left: 36%; width: 64%; }
  .story-stage { width: clamp(300px, 38vw, 390px); }
  .story-stage-pills { display: flex; gap: 6px; flex-wrap: nowrap; }
}

/* ---- Mobile (<= 860px): full video canvas with horizontally scrollable stage nav ---- */
@media (max-width: 860px) {
  .story-viewport { min-height: 560px; }
  .story-overlay-container { padding: 76px 16px 16px; }

  .story-header-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
  }
  .story-counter-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .story-stage-pills {
    display: flex !important;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 2px 6px;
    width: 100%;
    max-width: 100%;
  }
  .story-stage-pills::-webkit-scrollbar {
    display: none;
  }
  .story-pill {
    flex-shrink: 0;
    padding: 6px 14px;
    font-size: 11px;
    white-space: nowrap;
    background: rgba(242, 240, 234, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  /* Full canvas coverage on mobile */
  .story-canvas-wrap,
  .story-viewport .story-canvas-wrap,
  .story-viewport[data-edge="feather"] .story-canvas-wrap,
  .story-viewport[data-edge="card"] .story-canvas-wrap {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 12%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.5) 88%, rgba(0,0,0,0.18) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.55) 12%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.5) 88%, rgba(0,0,0,0.18) 100%);
  }

  .story-stage {
    inset: 0;
    width: 100%;
    justify-content: space-between;
  }
  .story-stage-top {
    margin-bottom: 0;
    background: rgba(242, 240, 234, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(23, 43, 58, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px rgba(16, 35, 51, 0.05);
  }
  .story-stage-bottom {
    background: rgba(242, 240, 234, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(23, 43, 58, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: 0 4px 14px rgba(16, 35, 51, 0.05);
  }
  .story-kicker { margin-bottom: 8px; font-size: 10.5px; }
  .story-title { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.16; }
  .story-desc { margin-bottom: 12px; font-size: 13.5px; line-height: 1.5; }
  .story-facts { gap: 10px 16px; margin-bottom: 12px; }
  .story-facts strong { font-size: 12.5px; }
  .story-facts span { font-size: 11px; }
  .story-feature-list { gap: 6px; margin-bottom: 12px; }
  .story-feature-list li { font-size: 12.5px; }
  .story-note { font-size: 12.5px; padding: 10px 12px; }
  .story-actions { flex-direction: column; align-items: stretch; gap: 8px; }
  .story-actions .btn { width: 100%; justify-content: center; min-height: 44px; }
  .story-scroll-hint { display: none; }

  .story-book { padding: 64px 18px; }
  .story-form-row { grid-template-columns: 1fr; }
}

/* ---- Static mode (reduced motion or no GSAP) ---- */
.story-track.is-static .story-viewport { height: auto; min-height: 0; overflow: visible; }
.story-track.is-static .story-canvas-wrap { position: relative; top: auto; left: auto; right: auto; bottom: auto; height: 320px; margin: 0 18px; }
.story-track.is-static .story-overlay-container { position: relative; padding-top: 96px; }
.story-track.is-static .story-stages-wrap { display: grid; gap: 48px; }
.story-track.is-static .story-stage { position: relative; opacity: 1; pointer-events: auto; width: 100%; max-width: 560px; }
.story-track.is-static .story-header-bar { display: none; }

/* ==========================================================================
   TECHNICAL SEO: ACCESSIBLE BREADCRUMB NAVIGATION & UTILITIES
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumb-nav {
  position: relative;
  z-index: 10;
  padding: 12px 0;
  background: rgba(16, 35, 51, 0.02);
  border-bottom: 1px solid rgba(16, 35, 51, 0.06);
  font-size: 13px;
}
.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item a {
  color: var(--secondary-text, #4A5D6E);
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb-item a:hover {
  color: var(--brand-teal, #00A896);
}
.breadcrumb-sep {
  color: #94A3B8;
  font-size: 11px;
  user-select: none;
}
.breadcrumb-item.active {
  color: var(--deep-slate, #102333);
  font-weight: 600;
}

/* ==========================================================================
   DESKTOP DRAWER GUARD & DISCIPLINE DESIGN SYSTEMS
   ========================================================================== */
.drawer:not(.open) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
@media (min-width: 961px) {
  .drawer, .drawer.open {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* 1. MECHANICAL HARD DRIVE (page-hdd) */
body.page-hdd {
  --theme-accent: #009F91;
  --theme-accent-dark: #007D73;
  --theme-accent-glow: rgba(0, 159, 145, 0.35);
  --theme-hud-bg: rgba(0, 159, 145, 0.08);
  --theme-hud-border: rgba(0, 159, 145, 0.28);
}
body.page-hdd .story-pill.active {
  background: linear-gradient(135deg, #009F91, #007D73);
  color: #FFFFFF;
  border-color: #009F91;
  box-shadow: 0 4px 14px rgba(0, 159, 145, 0.35);
}
body.page-hdd .story-progress-fill {
  background: linear-gradient(90deg, #009F91, #2DD4BF);
}
body.page-hdd .story-kicker .kicker-line {
  background: #009F91;
}

/* 2. SOLID-STATE SSD & NVMe (page-ssd) */
body.page-ssd {
  --theme-accent: #0284C7;
  --theme-accent-dark: #0369A1;
  --theme-accent-glow: rgba(2, 132, 199, 0.35);
  --theme-hud-bg: rgba(2, 132, 199, 0.08);
  --theme-hud-border: rgba(2, 132, 199, 0.28);
}
body.page-ssd .story-pill.active {
  background: linear-gradient(135deg, #0284C7, #0369A1);
  color: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
}
body.page-ssd .story-progress-fill {
  background: linear-gradient(90deg, #38BDF8, #0284C7);
}
body.page-ssd .story-kicker .kicker-line {
  background: #0284C7;
}

/* 3. WINDOWS LAPTOP & MOTHERBOARD (page-laptop) */
body.page-laptop {
  --theme-accent: #7C3AED;
  --theme-accent-dark: #6D28D9;
  --theme-accent-glow: rgba(124, 58, 237, 0.35);
  --theme-hud-bg: rgba(124, 58, 237, 0.08);
  --theme-hud-border: rgba(124, 58, 237, 0.28);
}
body.page-laptop .story-pill.active {
  background: linear-gradient(135deg, #7C3AED, #6D28D9);
  color: #FFFFFF;
  border-color: #7C3AED;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
body.page-laptop .story-progress-fill {
  background: linear-gradient(90deg, #A78BFA, #7C3AED);
}
body.page-laptop .story-kicker .kicker-line {
  background: #7C3AED;
}
/* Laptop Hero Image Subtle Soft Blur & Refined Edge Gradient */
body.page-laptop .story-canvas-wrap {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 12%, rgba(0,0,0,0.7) 28%, #000 48%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.15) 12%, rgba(0,0,0,0.7) 28%, #000 48%, #000 100%);
  filter: blur(1.2px) contrast(0.97) saturate(0.95);
}
body.page-laptop .story-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(242, 240, 234, 0.85) 0%, rgba(242, 240, 234, 0.25) 30%, transparent 60%);
  pointer-events: none;
  z-index: 2;
}

/* 4. RAID & SERVER ARRAYS (page-raid) */
body.page-raid {
  --theme-accent: #059669;
  --theme-accent-dark: #047857;
  --theme-accent-glow: rgba(16, 185, 129, 0.35);
  --theme-hud-bg: rgba(5, 150, 105, 0.08);
  --theme-hud-border: rgba(16, 185, 129, 0.32);
}
body.page-raid .story-pill.active {
  background: linear-gradient(135deg, #059669, #047857);
  color: #FFFFFF;
  border-color: #059669;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}
body.page-raid .story-progress-fill {
  background: linear-gradient(90deg, #10B981, #059669);
}
body.page-raid .story-kicker .kicker-line {
  background: #059669;
}

/* 5. CCTV FOOTAGE & DVR (page-cctv) */
body.page-cctv {
  --theme-accent: #B45309;
  --theme-accent-dark: #92400E;
  --theme-accent-glow: rgba(180, 83, 9, 0.35);
  --theme-hud-bg: rgba(180, 83, 9, 0.08);
  --theme-hud-border: rgba(180, 83, 9, 0.28);
}
body.page-cctv .story-pill.active {
  background: linear-gradient(135deg, #B45309, #92400E);
  color: #FFFFFF;
  border-color: #B45309;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.35);
}
body.page-cctv .story-progress-fill {
  background: linear-gradient(90deg, #F59E0B, #B45309);
}
body.page-cctv .story-kicker .kicker-line {
  background: #B45309;
}

/* 6. RANSOMWARE ANALYSIS & DATABASE FORENSICS (page-ransomware) */
body.page-ransomware {
  --theme-accent: #E11D48;
  --theme-accent-dark: #BE123C;
  --theme-accent-glow: rgba(225, 29, 72, 0.35);
  --theme-hud-bg: rgba(225, 29, 72, 0.08);
  --theme-hud-border: rgba(225, 29, 72, 0.28);
}
body.page-ransomware .story-pill.active {
  background: linear-gradient(135deg, #E11D48, #BE123C);
  color: #FFFFFF;
  border-color: #E11D48;
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.35);
}
body.page-ransomware .story-progress-fill {
  background: linear-gradient(90deg, #FB7185, #E11D48);
}
body.page-ransomware .story-kicker .kicker-line {
  background: #E11D48;
}

/* Service Engineering Telemetry Badge Component */
.service-hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--theme-hud-bg, rgba(0, 168, 150, 0.08));
  border: 1px solid var(--theme-hud-border, rgba(0, 168, 150, 0.28));
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--story-navy, #172B3A);
  margin-bottom: 10px;
}
.service-hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--theme-accent, #00A896);
  box-shadow: 0 0 8px var(--theme-accent-glow, rgba(0, 168, 150, 0.6));
  animation: hudPulse 2s infinite ease-in-out;
}
@keyframes hudPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* ==========================================================================
   DISTINCT ENGINEERING TELEMETRY WIDGETS (PER-DISCIPLINE UNIQUE IDENTITY)
   ========================================================================== */
.telemetry-box {
  margin: 14px 0 10px;
  padding: 12px 14px;
  background: rgba(16, 35, 51, 0.04);
  border: 1px solid var(--theme-hud-border, rgba(0, 168, 150, 0.25));
  border-radius: 10px;
  font-family: var(--mono, "JetBrains Mono", monospace);
}
.telemetry-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--story-navy, #102333);
  margin-bottom: 8px;
}
.telemetry-status {
  color: var(--theme-accent, #00A896);
  display: flex;
  align-items: center;
  gap: 5px;
}
.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.telemetry-item {
  background: rgba(255, 255, 255, 0.7);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 35, 51, 0.08);
}
.telemetry-item .label {
  display: block;
  font-size: 10px;
  color: #64748B;
  text-transform: uppercase;
}
.telemetry-item .value {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--story-navy, #102333);
}

/* Custom Telemetry Visuals per discipline */
/* RAID Array Node Visualizer */
.raid-nodes-strip {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.raid-node-badge {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  background: #E2E8F0;
  color: #475569;
  border: 1px solid #CBD5E1;
}
.raid-node-badge.online {
  background: rgba(5, 150, 105, 0.15);
  color: #047857;
  border-color: rgba(5, 150, 105, 0.4);
}
.raid-node-badge.degraded {
  background: rgba(239, 68, 68, 0.15);
  color: #B91C1C;
  border-color: rgba(239, 68, 68, 0.4);
  animation: hudPulse 1.4s infinite;
}
.raid-node-badge.parity {
  background: rgba(59, 130, 246, 0.15);
  color: #1D4ED8;
  border-color: rgba(59, 130, 246, 0.4);
}

/* CCTV 24h Timeline Widget */
.cctv-timeline-bar {
  position: relative;
  height: 22px;
  background: #0F172A;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
  display: flex;
  align-items: center;
}
.cctv-timeline-segment {
  height: 100%;
}
.cctv-timeline-segment.recorded {
  background: #10B981;
}
.cctv-timeline-segment.gap {
  background: #EF4444;
  animation: hudPulse 1.2s infinite;
}
.cctv-timeline-segment.overwritten {
  background: #F59E0B;
}
.cctv-timeline-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #FFFFFF;
  box-shadow: 0 0 6px #FFFFFF;
  left: 64%;
}

/* NAND Chip Grid for SSD */
.nand-chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 6px;
}
.nand-chip-cell {
  height: 20px;
  border-radius: 4px;
  background: rgba(0, 168, 150, 0.15);
  border: 1px solid rgba(0, 168, 150, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #007B6E;
}
.nand-chip-cell.recovering {
  background: rgba(0, 229, 200, 0.35);
  border-color: #00A896;
  color: #004D40;
}
.nand-chip-cell.bad {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #B91C1C;
}

/* Ransomware Entropy Scanner */
.entropy-meter {
  height: 14px;
  border-radius: 4px;
  background: #1E293B;
  overflow: hidden;
  position: relative;
  margin-top: 6px;
}
.entropy-fill {
  height: 100%;
  width: 98.4%;
  background: linear-gradient(90deg, #6366F1, #EF4444);
}



/* ==========================================================================
   HDD SERVICE PAGE — DESKTOP WARM IVORY STORYTELLER (Matching Reference 2)
   Scoped strictly to body.page-hdd at min-width: 1024px.
   Other service pages and all mobile viewports remain 100% untouched.
   ========================================================================== */
@media (min-width: 1024px) {
  body.page-hdd .story-track {
    background: #F5F3EC !important;
  }
  body.page-hdd .story-viewport {
    background: #F5F3EC !important;
    color: #142B38 !important;
  }
  body.page-hdd .story-canvas-wrap {
    top: 0;
    bottom: 0;
    left: 28%;
    right: 0;
    width: 72%;
    height: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 8%, #000 22%, #000 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 8%, #000 22%, #000 100%);
  }
  body.page-hdd .story-counter .counter-active {
    color: #009F91 !important;
  }
  body.page-hdd .story-counter .counter-total {
    color: #71828A !important;
  }
  body.page-hdd .story-progress-track {
    background: rgba(20, 43, 56, 0.12) !important;
  }
  body.page-hdd .story-progress-fill {
    background: linear-gradient(90deg, #009F91, #2DD4BF) !important;
  }
  body.page-hdd .story-pill {
    background: rgba(255, 255, 255, 0.85) !important;
    color: #43545C !important;
    border: 1px solid rgba(20, 43, 56, 0.16) !important;
  }
  body.page-hdd .story-pill:hover {
    background: #FFFFFF !important;
    color: #142B38 !important;
    border-color: #009F91 !important;
  }
  body.page-hdd .story-pill.active {
    background: #009F91 !important;
    color: #FFFFFF !important;
    border-color: #009F91 !important;
    box-shadow: 0 4px 14px rgba(0, 159, 145, 0.35) !important;
  }
  body.page-hdd .story-kicker {
    color: #009F91 !important;
  }
  body.page-hdd .story-kicker .kicker-line {
    background: #009F91 !important;
  }
  body.page-hdd .story-title {
    color: #142B38 !important;
    font-weight: 800;
  }
  body.page-hdd .story-desc {
    color: #43545C !important;
  }
  body.page-hdd .story-facts li strong {
    color: #142B38 !important;
  }
  body.page-hdd .story-facts li span {
    color: #43545C !important;
  }
  body.page-hdd .story-feature-list li {
    color: #43545C !important;
  }
  body.page-hdd .story-feature-list li::before {
    background: #009F91 !important;
  }
  body.page-hdd .btn-outline-slate {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #142B38 !important;
    border: 1px solid rgba(20, 43, 56, 0.2) !important;
  }
  body.page-hdd .btn-outline-slate:hover {
    background: #FFFFFF !important;
    color: #009F91 !important;
    border-color: #009F91 !important;
  }
  body.page-hdd .story-note {
    background: rgba(0, 159, 145, 0.08) !important;
    border-left: 3px solid #009F91 !important;
    color: #334852 !important;
  }
  body.page-hdd .story-scroll-hint {
    color: #71828A !important;
  }
}
