/* ===================================================================
   scenes.css — Hero "Before / After Slider + Filmstrip" + Process gallery
   =================================================================== */

/* ============================================================
   BEFORE / AFTER  (hero-scene.jsx)
   ============================================================ */
.ba {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Big slider frame */
.ba-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 6;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow:
    0 30px 70px rgba(11,30,63,0.22),
    0 12px 24px rgba(11,30,63,0.10),
    inset 0 0 0 1px rgba(255,255,255,0.10);
  cursor: ew-resize;
  user-select: none;
  isolation: isolate;
}

.ba-layer {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
}
.ba-after  { z-index: 1; }
.ba-before { z-index: 2; will-change: clip-path; transition: clip-path 200ms var(--e-out); }

.ba-frame image-slot {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Phase tags (top-left of each layer) */
.ba-tag {
  position: absolute;
  top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px 7px 10px;
  background: rgba(8,21,46,0.88);
  backdrop-filter: blur(6px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 4;
}
.ba-tag-before { left: 16px; color: var(--orange-300); }
.ba-tag-before .ba-tag-dot { background: var(--orange-500); }
.ba-tag-after  { right: 16px; color: #86efac; }
.ba-tag-after  .ba-tag-dot { background: #4ade80; }
.ba-tag-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  animation: pulse-dot 1.8s infinite;
}

/* Slider handle */
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  transform: translateX(-50%);
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(11,30,63,0.30), 0 6px 20px rgba(0,0,0,0.25);
}
.ba-handle-line {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.95) 20%, rgba(255,255,255,0.95) 80%, transparent);
}
.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--navy-800);
  box-shadow:
    0 4px 12px rgba(11,30,63,0.25),
    0 12px 30px rgba(11,30,63,0.20),
    inset 0 0 0 1px rgba(11,30,63,0.10);
  pointer-events: auto;
  cursor: ew-resize;
  transition: transform 200ms var(--e-out);
}
.ba-handle-knob:hover {
  transform: translate(-50%, -50%) scale(1.06);
}
.ba-handle-knob .material-symbols-outlined {
  font-size: 18px;
  font-weight: 600;
}

/* Big caption at the bottom-left of the slider frame */
.ba-caption {
  position: absolute;
  left: 24px; bottom: 24px; right: 24px;
  z-index: 3;
  pointer-events: none;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.ba-caption-eyebrow {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.85);
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 14px;
  pointer-events: auto;
}
.ba-caption-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 1.7vw, 24px);
  color: #fff;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 60%;
}
.t-orange { color: var(--orange-400); }
.t-green { color: #86efac; }

/* ============================================================
   FILM STRIP under the slider
   ============================================================ */
.ba-filmstrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
}
.ba-film {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 220ms var(--e-out);
}
.ba-film:hover {
  transform: translateY(-3px);
}
.ba-film-img {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: 0 4px 12px rgba(11,30,63,0.10);
  transition: box-shadow 220ms var(--e-out);
}
.ba-film.is-active .ba-film-img {
  box-shadow: 0 0 0 2px var(--orange-500), 0 8px 22px rgba(255,106,26,0.30);
}
.ba-film image-slot {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.ba-film-num {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(11,30,63,0.85);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 3px 7px;
  border-radius: 6px;
}
.ba-film.is-active .ba-film-num {
  background: var(--orange-500);
}
.ba-film-ring {
  position: absolute; inset: 0;
  border: 2px solid var(--orange-500);
  border-radius: inherit;
  pointer-events: none;
}

.ba-film-meta {
  padding: 0 2px;
}
.ba-film-when {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ba-film-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-top: 2px;
  letter-spacing: -0.01em;
}
.ba-film.is-active .ba-film-label { color: var(--orange-600); }
.ba-film-caption {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
  line-height: 1.35;
}

/* ============================================================
   PROCESS · photo-led walkthrough (process-home.jsx)
   ============================================================ */
.phx {
  position: relative;
  width: 100%; height: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--ink);
  box-shadow:
    0 30px 80px rgba(11,30,63,0.22),
    0 12px 24px rgba(11,30,63,0.10);
  isolation: isolate;
}

.phx-stack {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.phx-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 800ms var(--e-out);
}
.phx-photo.is-active {
  opacity: 1;
}
.phx-photo image-slot {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.phx-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,21,46,0.0) 35%, rgba(8,21,46,0.55) 75%, rgba(8,21,46,0.85) 100%),
    linear-gradient(90deg, rgba(8,21,46,0.55) 0%, transparent 50%);
  pointer-events: none;
}

.phx-caption {
  position: absolute;
  left: 32px; bottom: 50px;
  right: 32px;
  max-width: 62%;
  color: #fff;
  z-index: 3;
  text-shadow: 0 2px 14px rgba(0,0,0,0.45);
}
.phx-when {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.20);
  color: var(--orange-300);
  font-weight: 600;
  margin-bottom: 16px;
}
.phx-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: #fff;
  margin: 0;
}
.phx-body {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
  max-width: 48ch;
}

.phx-dots {
  position: absolute;
  bottom: 22px; left: 32px; right: 32px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  z-index: 3;
}
.phx-dot {
  height: 4px;
  background: rgba(255,255,255,0.20);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}
.phx-dot-fill {
  position: absolute; inset: 0;
  background: var(--orange-500);
  transform: translateX(-100%);
  transition: transform 4s linear;
}
.phx-dot.is-active .phx-dot-fill { transform: translateX(0); }
.phx-dot.is-done .phx-dot-fill   { transform: translateX(0); transition: none; background: rgba(255,255,255,0.40); }

.phx-badge {
  position: absolute;
  top: 22px; right: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 11px;
  background: rgba(8,21,46,0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.10);
  z-index: 3;
}
.phx-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--orange-500);
  animation: pulse-dot 1.6s infinite;
}

/* ============================================================
   image-slot default empty-state styling override
   ============================================================ */
image-slot {
  --slot-bg: linear-gradient(135deg, #1a3a78, #08152e);
  --slot-fg: rgba(255,255,255,0.85);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ba-filmstrip { grid-template-columns: repeat(3, 1fr); }
  .ba-film:nth-child(4), .ba-film:nth-child(5) { display: none; }
  .phx-caption { max-width: 80%; left: 22px; bottom: 50px; }
}
@media (max-width: 640px) {
  .ba-frame { aspect-ratio: 4 / 3; }
  .ba-filmstrip { grid-template-columns: repeat(2, 1fr); }
  .ba-film:nth-child(3) { display: none; }
  .ba-caption-text { max-width: 100%; }
  .phx-title { font-size: 26px; }
  .phx-body { font-size: 14px; }
}
