/* Sticky needs no scroll container on html/body (the theme sets
   overflow-x:hidden which breaks position:sticky). */
html, body{ overflow-x: clip; }

/* =====================================================================
   BEXBID — depth parallax section (after the hero)
   Reference mechanic: sticky full-screen title, the image panel rises
   over it, becomes the full show, then leaves and reveals the title.
   ===================================================================== */

.depth-track{
  position: relative;
  z-index: 6;
  height: 1100vh;
  margin-top: -40px;
  background: transparent;
}

.depth-stage{
  --d-ink: #eaf4fa;
  --d-muted: #a9bdc9;
  --d-cyan: #2AA7EB;
  --d-cyan-soft: rgba(42,167,235,.35);
  --d-deep: #05121c;

  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: transparent;
}

/* ---------- title layer (sits behind the image panel) ---------- */
.depth-title-layer{
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12px;
  background: transparent;
}

.depth-intro{
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  will-change: transform, opacity;
}

.depth-eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #2AA7EB;
}
.depth-eyebrow::before{
  content: "";
  width: 30px;
  height: 1px;
  background: #2AA7EB;
}
.depth-eyebrow::after{
  content: "";
  width: 30px;
  height: 1px;
  background: #2AA7EB;
}

.depth-heading{
  margin: 0 0 24px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(36px, 5.8vw, 84px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.038em;
  color: #054B71;
}
.depth-heading em{
  font-style: normal;
  color: #2AA7EB;
}
.depth-heading .line{
  display: block;
  overflow: hidden;
  padding-bottom: .1em;
}
.depth-heading .line > span{
  display: inline-block;
  will-change: transform;
}

/* the photo sits inline in the headline, like the reference */
.depth-slot{
  display: inline-block;
  vertical-align: -0.08em;
  width: 1.62em;
  height: 0.86em;
  margin: 0 .08em;
  border-radius: .16em;
  overflow: hidden;
  background: #05121c;
  box-shadow: 0 .05em .18em rgba(5,75,113,.28);
}
.depth-slot-fill{
  display: block;
  width: 100%;
  height: 100%;
  background: url("assets/img/00-start.webp") center / cover no-repeat;
}

.depth-sub{
  margin: 0 auto;
  max-width: 48ch;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #5b7180;
}

.depth-cue{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  font-family: "Poppins", sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #7d94a3;
}
.depth-cue i{
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, #2AA7EB, rgba(42,167,235,0));
}

/* ---------- image panel ---------- */
.depth-frame{
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: var(--d-deep);
  opacity: 0;
  transform-origin: center center;
  will-change: transform;
  box-shadow: 0 24px 80px rgba(5,75,113,.20);
}

.depth-media{
  position: absolute;
  inset: 0;
  transform-origin: center center;
  will-change: transform;
}

.depth-sweep{
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 65%;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-140%);
  background: linear-gradient(105deg,
    transparent 22%,
    rgba(255,255,255,.22) 50%,
    transparent 78%);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.depth-edge{
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  z-index: 4;
  opacity: 0;
  background: linear-gradient(90deg,
    rgba(42,167,235,0) 0%,
    #2AA7EB 30%,
    #bfe9ff 50%,
    #2AA7EB 70%,
    rgba(42,167,235,0) 100%);
  box-shadow: 0 0 22px rgba(42,167,235,.9);
}

.depth-frame::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(0deg,
      rgba(3,14,22,.94) 0%,
      rgba(3,14,22,.58) 26%,
      rgba(3,14,22,0) 58%),
    linear-gradient(180deg,
      rgba(3,14,22,.45) 0%,
      rgba(3,14,22,0) 22%);
}

#depth-gl{
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- scene copy (always visible during the chapters) ---------- */
.depth-copy{
  position: absolute;
  z-index: 6;
  left: 64px;
  right: 64px;
  bottom: 92px;
  color: var(--d-ink);
  opacity: 0;
  pointer-events: none;
}

.depth-copy-inner{
  max-width: 540px;
  pointer-events: auto;
  will-change: transform, opacity;
}

.depth-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Poppins", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--d-cyan);
  margin-bottom: 12px;
}
.depth-kicker::before{
  content: "";
  width: 22px;
  height: 1px;
  background: var(--d-cyan);
}

.depth-copy h2{
  margin: 0 0 12px;
  font-family: "Poppins", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: #ffffff;
  text-wrap: balance;
}

.depth-copy p{
  margin: 0 0 14px;
  max-width: 46ch;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--d-muted);
}

.depth-facts{
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.depth-facts li{
  position: relative;
  padding-left: 14px;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  line-height: 1.5;
  color: #cbd9e2;
}

.depth-facts li::before{
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border: 1.5px solid var(--d-cyan);
  border-radius: 50%;
}

.depth-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  background: var(--d-cyan);
  color: #04121b;
  font-family: "Poppins", sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: 2px;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 10px 30px rgba(42,167,235,.25);
}
.depth-cta:hover{ background: #5bc0f5; box-shadow: 0 12px 36px rgba(42,167,235,.38); }
.depth-cta:active{ transform: translateY(1px); }
.depth-cta span{ font-size: 15px; line-height: 1; }

/* ---------- hotspots ---------- */
.depth-hotspots{
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
}

.depth-hotspot{
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  pointer-events: auto;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
}

.depth-hotspot.is-left{
  flex-direction: row-reverse;
  transform: translate(-100%,-50%);
}

.depth-hotspot__dot{
  width: 11px;
  height: 11px;
  border: 1.5px solid var(--d-cyan);
  border-radius: 50%;
  background: rgba(42,167,235,.3);
  flex: none;
  animation: dhpulse 2.6s ease-out infinite;
}

@keyframes dhpulse{
  0%{ box-shadow: 0 0 0 0 rgba(42,167,235,.45); }
  70%{ box-shadow: 0 0 0 12px rgba(42,167,235,0); }
  100%{ box-shadow: 0 0 0 0 rgba(42,167,235,0); }
}

.depth-hotspot__label{
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--d-ink);
  background: rgba(5,18,28,.8);
  border: 1px solid rgba(42,167,235,.35);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  backdrop-filter: blur(6px);
}

.depth-hotspot__card{
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%) translateX(-4px);
  width: 240px;
  padding: 13px 14px;
  background: rgba(5,18,28,.95);
  border: 1px solid rgba(42,167,235,.4);
  border-radius: 8px;
  backdrop-filter: blur(8px);
  color: var(--d-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  text-align: left;
}

.depth-hotspot.is-left .depth-hotspot__card{
  left: auto;
  right: calc(100% + 10px);
  transform: translateY(-50%) translateX(4px);
}

.depth-hotspot:hover .depth-hotspot__card,
.depth-hotspot:focus-visible .depth-hotspot__card,
.depth-hotspot.is-open .depth-hotspot__card{
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.depth-hotspot__card strong{
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--d-ink);
  margin-bottom: 4px;
}

.depth-hotspot__card span{
  display: block;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--d-muted);
}

.depth-hotspot__card a{
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--d-cyan);
  text-decoration: none;
}
.depth-hotspot__card a:hover{ text-decoration: underline; }

/* ---------- mobile ---------- */
@media (max-width: 760px){
  .depth-track{ height: 900vh; }
  .depth-intro{ padding: 0 18px; }
  .depth-heading{ font-size: clamp(32px, 9vw, 46px); }
  .depth-sub{ font-size: 14px; }
  .depth-copy{ left: 18px; right: 18px; bottom: 76px; }
  .depth-copy h2{ font-size: 30px; }
  .depth-copy p{ font-size: 13px; }
  .depth-facts{ gap: 4px 14px; }
  .depth-facts li{ font-size: 12px; }
  .depth-hotspots{ display: none; }
  .depth-cta{ height: 44px; padding: 0 18px; }
}

@media (prefers-reduced-motion: reduce){
  .depth-hotspot__dot{ animation: none; }
}
