/* ══════════════════════════════════════════════════════════════════════
   DPDP STORYTELLING HERO — css/dpdp-story.css
   Minimal, enterprise-grade. No top timeline. Bottom nav only.
   ══════════════════════════════════════════════════════════════════════ */

/* ── SECTION WRAPPER ── */
.dpdp-story-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 6% 80px;
  background: #070c18;
  background-image:
    radial-gradient(ellipse 55% 45% at 8% 20%, rgba(59,130,246,.1) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 92% 80%, rgba(249,115,22,.09) 0%, transparent 60%);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

body.light-mode .dpdp-story-hero {
  background: #f0f4ff;
  background-image:
    radial-gradient(ellipse 55% 45% at 8% 20%, rgba(59,130,246,.06) 0%, transparent 60%),
    radial-gradient(ellipse 45% 55% at 92% 80%, rgba(249,115,22,.05) 0%, transparent 60%);
}

/* subtle animated mesh grid background */
.dpdp-story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

body.light-mode .dpdp-story-hero::before {
  background-image:
    linear-gradient(rgba(59,130,246,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.03) 1px, transparent 1px);
}

.dpdp-hero-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ═══════════════════════════════════════
   50 / 50 SPLIT GRID
═══════════════════════════════════════ */
.dpdp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;   /* let right column grow to match left */
  width: 100%;
  box-sizing: border-box;
}

/* ── LEFT COLUMN ── */
.dpdp-content-col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.dpdp-story-card {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Scene tag */
.dpdp-scene-tag {
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .35s ease, transform .35s ease;
}

.dpdp-scene-tag::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: #3b82f6;
  border-radius: 1px;
  flex-shrink: 0;
}

.dpdp-scene-tag.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Headline */
.dpdp-scene-title {
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px;
}

body.light-mode .dpdp-scene-title { color: #0f172a; }



/* Description */
.dpdp-scene-desc {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.light-mode .dpdp-scene-desc { color: rgba(15,23,42,.7); }

/* Points list */
.dpdp-scene-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dpdp-scene-points li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85) !important;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  cursor: default;
  transition: color 0.3s ease;
}

body.light-mode .dpdp-scene-points li {
  color: rgba(15, 23, 42, 0.85) !important;
}

.dpdp-scene-points li::before {
  content: '✓';
  color: #3b82f6;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Benefits grid (Scene 6 only) */
.dpdp-benefits-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease .15s, transform .4s ease .15s;
}

.dpdp-benefits-box.visible {
  opacity: 1;
  transform: translateY(0);
}

.dpdp-benefit-item {
  background: rgba(16,185,129,.08);
  border: 1px solid rgba(16,185,129,.2);
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 8px;
}

body.light-mode .dpdp-benefit-item {
  background: rgba(16,185,129,.05);
  border-color: rgba(16,185,129,.15);
  color: #047857;
}

/* CTAs */
.dpdp-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.dpdp-actions .btn-ghost {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,.18);
  background: transparent;
  color: #fff;
  border-radius: 50px;
  text-decoration: none;
  transition: all .25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.light-mode .dpdp-actions .btn-ghost {
  border-color: rgba(15,23,42,.18);
  color: #0f172a;
}

.dpdp-actions .btn-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
}

body.light-mode .dpdp-actions .btn-ghost:hover {
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.3);
}

/* ═══════════════════════════════════════
   BOTTOM NAVIGATION BAR  (reference style)
   Row 1 : step bars + labels
   Row 2 : counter (left)  ←  ▶  → (right)
═══════════════════════════════════════ */
.dpdp-nav-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

body.light-mode .dpdp-nav-bar {
  border-top-color: rgba(15,23,42,.08);
}

/* ── Row 1 : Steps ── */
.dpdp-steps-row {
  display: flex;
  gap: 6px;
  width: 100%;
  align-items: flex-end;
}

.dpdp-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  min-width: 0;
}

.dpdp-step:hover .dpdp-step-label { opacity: 1; }

/* Thin bar track */
.dpdp-step-bar {
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}

body.light-mode .dpdp-step-bar {
  background: rgba(15,23,42,.1);
}

/* Animated fill inside bar */
.dpdp-step-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  width: 0%;
  border-radius: 3px;
  transition: width .05s linear;
}

/* Completed step — green fill + green label */
.dpdp-step.completed .dpdp-step-fill {
  width: 100% !important;
  background: #22c55e;
  transition: none;
}
.dpdp-step.completed .dpdp-step-label {
  color: #22c55e;
  opacity: 1;
}
body.light-mode .dpdp-step.completed .dpdp-step-label { color: #16a34a; }
body.light-mode .dpdp-step.completed .dpdp-step-fill  { background: #16a34a; }

/* Active step — blue fill (grows via JS) + blue label */
.dpdp-step.active .dpdp-step-fill {
  background: #3b82f6;
}
.dpdp-step.active .dpdp-step-label {
  color: #3b82f6;
  opacity: 1;
  font-weight: 600;
}
body.light-mode .dpdp-step.active .dpdp-step-label { color: #2563eb; }
body.light-mode .dpdp-step.active .dpdp-step-fill  { background: #2563eb; }

/* Step label */
.dpdp-step-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .3s ease, opacity .3s ease;
  line-height: 1;
}
body.light-mode .dpdp-step-label { color: rgba(15,23,42,.35); }

/* ── Row 2 : Footer ── */
.dpdp-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

/* Counter — "3 / 6" */
.dpdp-page-tracker {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.4);
  letter-spacing: .5px;
  user-select: none;
  font-variant-numeric: tabular-nums;
}
body.light-mode .dpdp-page-tracker { color: rgba(15,23,42,.4); }

/* Controls row  ← ▶ → */
.dpdp-controls-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Arrow + play/pause — flat ghost, no circle */
.dpdp-nav-arrow,
.dpdp-play-pause {
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color .2s ease, transform .15s ease;
  outline: none;
  padding: 0;
  border-radius: 6px;
  flex-shrink: 0;
}

body.light-mode .dpdp-nav-arrow,
body.light-mode .dpdp-play-pause {
  color: rgba(15,23,42,.5);
}

.dpdp-nav-arrow:hover  { color: #3b82f6; transform: scale(1.15); }
.dpdp-play-pause:hover { color: #f97316; transform: scale(1.15); }

body.light-mode .dpdp-nav-arrow:hover  { color: #2563eb; }
body.light-mode .dpdp-play-pause:hover { color: #c85400; }

.dpdp-nav-arrow svg,
.dpdp-play-pause svg { width: 16px; height: 16px; display: block; }

/* Play / Pause icon toggle */
.dpdp-play-pause .icon-pause { display: block; }
.dpdp-play-pause .icon-play  { display: none;  }
.dpdp-play-pause.paused .icon-pause { display: none;  }
.dpdp-play-pause.paused .icon-play  { display: block; }

/* ═══════════════════════════════════════
   RIGHT COLUMN — VISUAL CONTAINER
═══════════════════════════════════════ */
.dpdp-visuals-col {
  width: 100%;
  display: flex;
  align-self: stretch;        /* grow to match left column height */
  align-items: stretch;
  justify-content: stretch;
}

.dpdp-visual-container {
  position: relative;
  width: 100%;
  height: 100%;               /* fill the stretched column exactly */
  min-height: 360px;          /* floor on very short viewports */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  /* Premium Blending: Soft transparent fade on all sides */
  mask-image: radial-gradient(ellipse at center, black 55%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 55%, transparent 80%);
}

body.light-mode .dpdp-visual-container {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* Individual visual slides */
.dpdp-visual-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: scale(.97) translateX(12px);
  transition:
    opacity .4s cubic-bezier(.25,1,.5,1),
    transform .4s cubic-bezier(.25,1,.5,1),
    visibility .4s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.dpdp-visual-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  z-index: 5;
}

/* Image: never cropped, never distorted */
.dpdp-story-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 8px;
  /* slow subtle zoom while active */
  transition: transform 8s cubic-bezier(.1,.8,.2,1), filter 0.3s ease;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.12));
}

.dpdp-visual-slide.active .dpdp-story-img {
  transform: scale(1.025);
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .dpdp-story-hero {
    padding: 130px 5% 70px;
  }
  .dpdp-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  /* image comes first on tablet */
  .dpdp-visuals-col { order: -1; align-self: auto; }
  .dpdp-visual-container {
    height: clamp(260px, 45vw, 400px);
  }
}

@media (max-width: 640px) {
  .dpdp-story-hero {
    padding: 120px 4% 60px;
    min-height: auto;
  }
  .dpdp-scene-title { font-size: 24px; }
  .dpdp-visual-container { height: 260px; border-radius: 14px; }
  .dpdp-benefits-box { grid-template-columns: 1fr; }
  .dpdp-actions { flex-direction: column; }
  .dpdp-actions > a { width: 100%; text-align: center; box-sizing: border-box; }
  .dpdp-controls-row { gap: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════
   HIGH-SPECIFICITY OVERRIDES
   #home.dpdp-story-hero beats any #home { !important } legacy rule.
   (ID + class = specificity 1,1,0 vs plain ID = 1,0,0)
   ══════════════════════════════════════════════════════════════════════ */

#home.dpdp-story-hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  padding: 160px 6% 80px !important;
  background: #070c18 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  position: relative !important;
}

body.light-mode #home.dpdp-story-hero {
  background: #f0f4ff !important;
}

/* Force the inner grid to be a proper two-column layout */
#home.dpdp-story-hero .dpdp-hero-container {
  width: 100% !important;
  max-width: 1200px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 28px !important;
}

#home.dpdp-story-hero .dpdp-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 48px !important;
  align-items: stretch !important;
  width: 100% !important;
}

/* Kill any legacy hero-slider / hero-content / hero-visuals that might bleed in */
#home.dpdp-story-hero .hero-slider,
#home.dpdp-story-hero .hero-content,
#home.dpdp-story-hero .hero-visuals,
#home.dpdp-story-hero .orb {
  display: none !important;
}

@media (max-width: 1024px) {
  #home.dpdp-story-hero {
    padding: 140px 5% 70px !important;
  }
  #home.dpdp-story-hero .dpdp-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
}

@media (max-width: 640px) {
  #home.dpdp-story-hero {
    padding: 130px 4% 60px !important;
    min-height: auto !important;
  }
}

/* Beat body.light-mode #home responsive overrides in light-theme.css */
@media (max-width: 1024px) {
  body.light-mode #home.dpdp-story-hero { padding: 140px 5% 70px !important; }
}
@media (max-width: 768px) {
  body.light-mode #home.dpdp-story-hero { padding: 130px 4% 60px !important; }
}
@media (max-width: 480px) {
  body.light-mode #home.dpdp-story-hero { padding: 120px 4% 50px !important; }
}

/* ── TOPICS HORIZONTAL CAROUSEL SLIDER ── */
.dpdp-topics-slider-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.dpdp-topics-slider {
  display: flex;
  width: 100%;
  transition: transform 900ms cubic-bezier(0.77, 0, 0.175, 1);
}

.dpdp-topic-slide {
  width: 100%;
  flex-shrink: 0;
}

/* ── KEYWORD ACCENT HIGHLIGHTS ── */
.accent-orange {
  color: #F97316 !important;
}
body.light-mode .accent-orange {
  color: #c85400 !important;
}

.accent-green {
  color: #22C55E !important;
}
body.light-mode .accent-green {
  color: #15803d !important;
}

.accent-blue {
  color: #3B82F6 !important;
}
body.light-mode .accent-blue {
  color: #1d4ed8 !important;
}

/* Spacer to preserve layout vertical centering and prevent content shifting */
.dpdp-tabs-spacer {
  height: 36px;
  margin-bottom: 24px;
}

/* ── INTERACTIVE CONTROLS PANEL ── */
.dpdp-interactive-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
}

body.light-mode .dpdp-interactive-controls {
  border-top-color: rgba(15, 23, 42, 0.08);
}

.image-nav-group, .topic-nav-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-ctrl {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
  outline: none;
}

body.light-mode .btn-ctrl {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.6);
}

.btn-ctrl:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

body.light-mode .btn-ctrl:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

.btn-ctrl svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Play/Pause state styling */
.btn-play-pause .icon-pause { display: block; }
.btn-play-pause .icon-play { display: none; }
.btn-play-pause.paused .icon-pause { display: none; }
.btn-play-pause.paused .icon-play { display: block; }

.topic-nav-label {
  font-family: var(--font-head, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.4);
  user-select: none;
}

body.light-mode .topic-nav-label {
  color: rgba(15, 23, 42, 0.4);
}


