/* ==========================================================================
   Halo Reel - 3D Elliptical Services Carousel (Mugdha Studios)
   Seamless integration with Mugdha Studios Paper & Dark Aesthetics
   ========================================================================== */

/* ── Shift Specialized Disciplines below so Statement gets a FULL screen ─ */
.statement {
  min-height: 100vh !important;
  min-height: 100svh !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  padding: 80px 0 !important;
  box-sizing: border-box !important;
}

.statement .scrub {
  max-width: 820px !important;
}

.halo-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(90px, 12vh, 120px) 0 clamp(90px, 11vh, 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  box-sizing: border-box;
}

.halo-container {
  position: relative;
  z-index: 1;
  width: var(--container, 95%);
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Stage & Track (The 3D Ellipse) ───────────────────────────── */
.halo-stage {
  position: relative;
  width: 100%;
  height: 680px;
  margin: 0 auto;
  touch-action: pan-y;
  cursor: grab;
  outline: none;
}

.halo-stage.is-grabbing {
  cursor: grabbing;
}

.halo-track {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ── 3D Card ──────────────────────────────────────────────────── */
.halo-card {
  position: absolute;
  top: 0;
  left: 0;
  box-sizing: border-box;
  background: #090c10;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.28), 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform, opacity, filter;
  display: flex;
  flex-direction: column;
}

.halo-card:hover {
  box-shadow: 0 28px 56px -12px rgba(0, 0, 0, 0.4);
}

.halo-card.is-front {
  box-shadow: 0 32px 64px -14px rgba(0, 0, 0, 0.45),
              0 0 0 1.5px rgba(237, 51, 39, 0.9),
              0 0 35px rgba(237, 51, 39, 0.25);
}

/* Media Background & Scrim */
.halo-card__media-wrap {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  background: #090c10;
}

.halo-card__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.halo-card:hover .halo-card__media {
  transform: scale(1.05);
}

.halo-card__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(9, 12, 16, 0.2) 0%,
    rgba(9, 12, 16, 0.6) 45%,
    rgba(9, 12, 16, 0.94) 80%,
    #090c10 100%
  );
  z-index: 2;
}

.halo-card__glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  z-index: 3;
}

/* Card Body Overlay */
.halo-card__body {
  position: relative;
  z-index: 4;
  height: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.halo-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.halo-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.halo-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.halo-card__tag {
  font-family: var(--font-mono, monospace);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c0c6d2;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  padding: 4px 8px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.halo-card__center {
  margin-top: auto;
  margin-bottom: 16px;
}

.halo-card__title {
  font-family: var(--font-heading, "Cabinet Grotesk", sans-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 6px 0;
}

.halo-card__sub {
  font-family: var(--font-body, "Geist", sans-serif);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fffc00;
  margin: 0 0 10px 0;
}

.halo-card__desc {
  font-family: var(--font-body, "Geist", sans-serif);
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: #e2e6ec;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.halo-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
}

.halo-card__arr {
  color: var(--red, #ed3327);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.halo-card:hover .halo-card__arr {
  transform: translate(3px, -3px);
}

/* ── Center Stage Overlay (Editorial Headline & Controls) ──────── */
.halo-editorial {
  position: absolute;
  left: 55.5%;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  max-width: 520px;
  z-index: 10;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 22px;
}

@media (min-width: 1100px) and (max-width: 1350px) {
  .halo-editorial {
    left: 53%;
    max-width: 460px;
    gap: 16px;
  }
  .halo-editorial__headline {
    font-size: clamp(34px, 3.6vw, 48px);
  }
  .halo-editorial__lead {
    font-size: 14.5px;
    max-width: 420px;
  }
}

.halo-editorial > * {
  pointer-events: auto;
}

.halo-editorial__headline {
  font-family: var(--font-heading, "Cabinet Grotesk", sans-serif);
  font-size: clamp(40px, 4.8vw, 72px);
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--ink, #080808);
  margin: 0;
}

.halo-editorial__lead {
  font-family: var(--font-body, "Geist", sans-serif);
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text-muted, #666);
  max-width: 480px;
  margin: 0;
}

/* Service Pills */
.halo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.halo-pill {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--fg-2, #666);
  background: var(--grey-100, #e8e8e8);
  border: 1px solid var(--line, #e5e6e2);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.halo-pill:hover {
  background: var(--grey-card, #ededed);
  color: var(--ink, #080808);
  border-color: #c9c9c9;
}

.halo-pill.is-active {
  background: var(--ink, #080808);
  border-color: var(--ink, #080808);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Actions Row (CTA + Arrows) */
.halo-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
}

.halo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 250px;
  height: 52px;
  padding: 0 24px;
  background: var(--ink, #080808);
  color: #fff;
  font-family: var(--font-heading, "Cabinet Grotesk", sans-serif);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.halo-btn:hover {
  background: var(--red, #ed3327);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(237, 51, 39, 0.3);
}

.halo-nav {
  display: flex;
  gap: 8px;
}

.halo-nav__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grey-100, #e8e8e8);
  border: 1px solid var(--line, #e5e6e2);
  color: var(--ink, #080808);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.halo-nav__btn:hover {
  background: var(--ink, #080808);
  border-color: var(--ink, #080808);
  color: #fff;
  transform: scale(1.06);
}

.halo-nav__btn:active {
  transform: scale(0.95);
}

.halo-hint {
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--grey-500, #707070);
  text-transform: uppercase;
  margin-top: -6px;
}

/* ── Responsive Adaptations ───────────────────────────────────── */
@media (max-width: 1099px) {
  .halo-section {
    padding: clamp(85px, 11vh, 105px) 0 clamp(95px, 12vh, 130px);
    min-height: auto;
    justify-content: flex-start;
  }


  .halo-editorial {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
    text-align: center;
    align-items: center;
    gap: 16px;
  }

  .halo-editorial__headline {
    font-size: clamp(32px, 6vw, 48px);
    line-height: 1.02;
  }

  .halo-editorial__lead {
    text-align: center;
    font-size: 15px;
    line-height: 1.45;
    max-width: 520px;
  }

  .halo-pills {
    justify-content: center;
    gap: 6px;
  }

  .halo-pill {
    font-size: 11px;
    padding: 6px 12px;
  }

  .halo-actions {
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
  }

  .halo-btn {
    min-width: 210px;
    height: 46px;
    padding: 0 18px;
    font-size: 14.5px;
  }

  .halo-nav__btn {
    width: 44px;
    height: 44px;
  }

  .halo-stage {
    height: clamp(370px, 46vh, 420px);
    touch-action: pan-y;
  }
}

@media (max-width: 640px) {
  .halo-section {
    padding: 100px 0 160px;
  }


  .halo-editorial {
    gap: 14px;
    margin-bottom: 14px;
  }

  .halo-editorial__headline {
    font-size: 32px;
  }

  .halo-editorial__lead {
    font-size: 13.5px;
    max-width: 330px;
    line-height: 1.4;
  }

  .halo-stage {
    height: 360px;
  }

  .halo-card__body {
    padding: 16px;
  }

  .halo-card__title {
    font-size: 19px;
    margin-bottom: 4px;
  }

  .halo-card__sub {
    font-size: 11.5px;
    margin-bottom: 6px;
  }

  .halo-card__desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: 12px;
    line-height: 1.35;
  }

  .halo-card__bottom {
    padding-top: 8px;
    font-size: 10px;
  }
}
