/* ══════════════════════════════════════════════════════
   DEEP JOURNEY — immersive scroll-driven reveal
   Spotify Wrapped-style vertical storytelling
   ══════════════════════════════════════════════════════ */

/* Container — takes over the whole viewport */
#s-deep-journey { background: #0a0a0a; }
#s-deep-journey .page { max-width: 100%; padding: 0; margin: 0; }
.dj-wrap { position: relative; overflow-x: hidden; }

/* Progress bar — fixed at top */
.dj-progress { position: fixed; top: 0; left: 0; height: 2px; background: linear-gradient(90deg, rgba(255,255,255,.6), #fff); width: 0%; z-index: 200; transition: width .15s linear; pointer-events: none; }
.dj-progress.hidden { opacity: 0; }

/* ── Sections ──────────────────────────────── */
.dj-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.dj-inner {
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

/* ── Reveal animations ─────────────────────── */
.dj-reveal {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 0.8s cubic-bezier(.25,.46,.45,.94), transform 0.8s cubic-bezier(.25,.46,.45,.94);
}
.dj-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.dj-reveal.d1 { transition-delay: 0s; }
.dj-reveal.d2 { transition-delay: 0.15s; }
.dj-reveal.d3 { transition-delay: 0.3s; }
.dj-reveal.d4 { transition-delay: 0.45s; }
.dj-reveal.d5 { transition-delay: 0.6s; }

/* Scale-in variant */
.dj-scale {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.7s cubic-bezier(.16,1,.3,1), transform 0.7s cubic-bezier(.16,1,.3,1);
}
.dj-scale.in-view {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.dj-slide-l {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.dj-slide-l.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.dj-slide-r {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.dj-slide-r.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ── Hero section ──────────────────────────── */
.dj-hero {
  min-height: 100vh;
  background: #0a0a0a;
  text-align: center;
}
.dj-hero-eyebrow {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: none;
  color: rgba(255,255,255,.35);
  margin-bottom: 20px;
}
.dj-hero-title {
  font-size: clamp(2.2rem, 7vw, 3.5rem);
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.dj-hero-title b { color: #fff; }
.dj-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  max-width: 400px;
  margin: 0 auto 48px;
  line-height: 1.65;
}
.dj-scroll-hint {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(255,255,255,.2);
  animation: djPulse 2.5s ease-in-out infinite;
}
.dj-scroll-arrow {
  display: block;
  margin: 12px auto 0;
  width: 20px;
  height: 20px;
  border-left: 1.5px solid rgba(255,255,255,.2);
  border-bottom: 1.5px solid rgba(255,255,255,.2);
  transform: rotate(-45deg);
  animation: djBounce 2s ease-in-out infinite;
}
@keyframes djPulse { 0%,100% { opacity:.2; } 50% { opacity:.5; } }
@keyframes djBounce { 0%,100% { transform: rotate(-45deg) translateY(0); } 50% { transform: rotate(-45deg) translateY(6px); } }

/* ── Glyph icon (large, centered) ──────────── */
.dj-glyph {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.dj-glyph svg { width: 40px; height: 40px; }
.dj-glyph svg * { stroke: #f5f5f5 !important; fill: none !important; }
.dj-glyph svg rect[fill], .dj-glyph svg polygon[fill], .dj-glyph svg circle[fill] { fill: #f5f5f5 !important; }

/* ── Typography (dark mode) ────────────────── */
.dj-eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(255,255,255,.3);
  margin-bottom: 12px;
}
.dj-heading {
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.dj-heading b { color: #fff; }
.dj-subtext {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  line-height: 1.7;
  margin-bottom: 20px;
}
.dj-body {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
}

/* ── Stat / metric callout ─────────────────── */
.dj-stat {
  text-align: center;
  padding: 12px 0;
}
.dj-stat-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(255,255,255,.3);
  margin-bottom: 8px;
}
.dj-stat-number {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.dj-stat-desc {
  font-size: 14px;
  color: rgba(255,255,255,.4);
}

/* ── Bar chart (animated) ──────────────────── */
.dj-chart { margin: 28px 0; }
.dj-chart-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.dj-chart-label {
  width: 90px;
  flex-shrink: 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: right;
  padding-right: 14px;
}
.dj-chart-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.06);
  border-radius: 3px;
  overflow: hidden;
}
.dj-chart-bar {
  height: 100%;
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(.25,.46,.45,.94);
}
.dj-chart-row.in-view .dj-chart-bar { /* width set inline */ }
.dj-chart-bar.primary { background: #fff; }
.dj-chart-bar.secondary { background: rgba(255,255,255,.7); }
.dj-chart-bar.tertiary { background: rgba(255,255,255,.5); }
.dj-chart-bar.rest { background: rgba(255,255,255,.25); }
.dj-chart-pct {
  width: 40px;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  text-align: right;
  padding-left: 10px;
}

/* ── Card (glass) ──────────────────────────── */
.dj-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  padding: 28px 24px;
  margin-bottom: 20px;
}
.dj-card-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}
.dj-card-col {
  flex: 1;
  background: rgba(255,255,255,.03);
  border-radius: 4px;
  padding: 14px 16px;
}
.dj-card-col-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(255,255,255,.3);
  margin-bottom: 6px;
}
.dj-card-col-val {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
}

/* ── Divider / spacer ──────────────────────── */
.dj-divider {
  text-align: center;
  padding: 0;
  min-height: auto;
}
.dj-divider-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.15), transparent);
  margin: 0 auto;
}

/* ── Layer insight card (full width) ───────── */
.dj-layer-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 32px 24px;
  margin-bottom: 28px;
}
.dj-layer-eyebrow {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: none;
  color: rgba(255,255,255,.25);
  margin-bottom: 6px;
}
.dj-layer-title {
  font-size: 18px;
  font-weight: 600;
  color: #f5f5f5;
  margin-bottom: 8px;
}
.dj-layer-dominant {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
}
.dj-layer-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.dj-layer-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dj-layer-mini-name {
  width: 70px;
  flex-shrink: 0;
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-align: right;
}
.dj-layer-mini-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 2px;
  overflow: hidden;
}
.dj-layer-mini-bar {
  height: 100%;
  background: rgba(255,255,255,.5);
  width: 0%;
  transition: width 1s ease-out;
  border-radius: 2px;
}
.dj-layer-card.in-view .dj-layer-mini-bar { /* width set inline */ }
.dj-layer-theory {
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.06);
  margin-top: 16px;
}
.dj-layer-theory-title {
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
  color: rgba(255,255,255,.25);
  margin-bottom: 8px;
}
.dj-layer-theory-body {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  line-height: 1.8;
}

/* ── Shadow section (darker) ──────────────── */
.dj-shadow-section {
  background: #050505;
}
.dj-shadow-card {
  border-left: 2px solid rgba(255,255,255,.1);
  padding-left: 20px;
  margin: 20px 0;
}
.dj-shadow-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: none;
  color: rgba(255,255,255,.25);
  margin-bottom: 6px;
}
.dj-shadow-text {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
  font-style: italic;
}

/* ── List (strengths, blind spots) ────────── */
.dj-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.dj-list li {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  padding: 6px 0 6px 16px;
  position: relative;
  line-height: 1.5;
}
.dj-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
}

/* ── CTA at end ───────────────────────────── */
.dj-cta {
  text-align: center;
  padding: 80px 24px;
}
.dj-cta-btn {
  display: inline-block;
  background: #fff;
  color: #0a0a0a;
  border: none;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  font-family: inherit;
}
.dj-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(255,255,255,.08);
}
.dj-cta-btn-line {
  display: inline-block;
  background: none;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.15);
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .05em;
  cursor: pointer;
  transition: all .2s;
  font-family: inherit;
  margin-left: 12px;
}
.dj-cta-btn-line:hover {
  border-color: rgba(255,255,255,.4);
  color: rgba(255,255,255,.8);
}

/* ── Close / back button (sticky) ─────────── */
.dj-back {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 201;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  font-family: inherit;
  line-height: 1;
}
.dj-back:hover { background: rgba(255,255,255,.15); color: #fff; }

/* ── Responsive ───────────────────────────── */
@media (max-width: 520px) {
  .dj-section { padding: 60px 18px; }
  .dj-card { padding: 22px 18px; }
  .dj-card-row { flex-direction: column; gap: 10px; }
  .dj-chart-label { width: 72px; font-size: 11px; }
  .dj-glyph { width: 64px; height: 64px; }
  .dj-glyph svg { width: 32px; height: 32px; }
  .dj-layer-card { padding: 24px 18px; }
}

/* ── prefers-reduced-motion ────────────────── */
@media (prefers-reduced-motion: reduce) {
  .dj-reveal, .dj-scale, .dj-slide-l, .dj-slide-r {
    transition-duration: 0.01ms !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .dj-chart-bar, .dj-layer-mini-bar {
    transition-duration: 0.01ms !important;
  }
  .dj-scroll-hint, .dj-scroll-arrow { animation: none; }
}
