/* ============================================ */
/* SIRCLE EXPERIENCE — Fullscreen pinned scroll */
/* ============================================ */

.sircle-experience {
  position: relative;
  height: 180vh; /* Sneller doorscrollen: 4 phases x ~20vh = 1-2 scrolls per phase */
  background: var(--dark-green-deep, #040E07);
}

.sircle-experience .noise-overlay {
  position: fixed;
  z-index: 1;
  pointer-events: none;
}

.sircle-experience .grain-overlay {
  position: fixed;
  z-index: 2;
  pointer-events: none;
}

/* Pinned container — stays fullscreen during scroll */
.sircle-exp__pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Animated background gradient */
.sircle-exp__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 70% at 15% 20%, rgba(143,175,138,0.28) 0%, rgba(63,111,69,0.08) 50%, transparent 80%),
    radial-gradient(ellipse 40% 40% at 85% 80%, rgba(143,175,138,0.06) 0%, transparent 60%),
    linear-gradient(155deg, #122E1C 0%, #0A1F12 30%, var(--dark-green-deep) 60%, #071A0F 100%);
  transition: background 0.8s ease;
}

/* Progress bar — left side vertical */
.sircle-exp__progress {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 200px;
  background: rgba(208,223,185,0.12);
  border-radius: 2px;
  z-index: 10;
  overflow: hidden;
}

.sircle-exp__progress-fill {
  width: 100%;
  height: 25%;
  background: var(--gold, #F2E2A4);
  border-radius: 2px;
  transform-origin: top;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Phase nav dots — right side */
.sircle-exp__nav {
  position: absolute;
  right: 48px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 28px;
  z-index: 10;
}

.sircle-exp__dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(208,223,185,0.2);
  background: transparent;
  color: rgba(208,223,185,0.4);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

.sircle-exp__dot.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(242,226,164,0.08);
  transform: scale(1.15);
}

.sircle-exp__dot:hover {
  border-color: rgba(208,223,185,0.5);
  color: rgba(208,223,185,0.7);
}

/* Center: SIRCLE model sphere */
.sircle-exp__model {
  position: absolute;
  right: 18%;
  top: 50%;
  transform: translateY(-50%);
  width: 72vmin;
  height: 72vmin;
  max-width: 840px;
  max-height: 840px;
  z-index: 5;
}

.sircle-exp__model-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(143,175,138,0.15) 0%, transparent 65%);
  filter: blur(40px);
  z-index: -1;
  transition: opacity 0.6s ease;
}

.sircle-exp__model-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.92) rotate(-4deg);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.sircle-exp__model-img.is-active {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Left: Phase content — bottom-left aligned */
.sircle-exp__content {
  position: absolute;
  z-index: 8;
  left: 100px;
  bottom: 100px;
  width: 42%;
  max-width: 500px;
}

.sircle-exp__phase {
  display: none;
  opacity: 0;
  pointer-events: none;
}

.sircle-exp__phase.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.sircle-exp__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 24px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(242,226,164,0.15);
  background: rgba(242,226,164,0.06);
}

.sircle-exp__num {
  font-size: clamp(56px, 8vw, 100px);
  font-weight: 700;
  line-height: 0.85;
  color: rgba(208,223,185,0.06);
  letter-spacing: -0.04em;
  margin-bottom: -12px;
  user-select: none;
}

.sircle-exp__title {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 0.9;
  color: var(--white);
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.sircle-exp__tagline {
  font-size: 16px;
  font-weight: 300;
  color: var(--soft-green);
  line-height: 1.5;
  margin-bottom: 24px;
  opacity: 0.8;
}

.sircle-exp__services {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sircle-exp__services li {
  font-size: 16px;
  font-weight: 400;
  color: rgba(208,223,185,0.7);
  padding: 14px 20px 14px 24px;
  position: relative;
  line-height: 1.5;
  letter-spacing: 0.01em;
  border-radius: 10px;
  overflow: hidden;
  transition: color 0.4s ease;
  --accent-width: 0%;
}

/* Gold accent dot */
.sircle-exp__services li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), var(--copper-light, #D0B878));
  opacity: 0.7;
  transition: height 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s;
}

/* Animated gold sweep underline */
.sircle-exp__services li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: var(--accent-width, 0%);
  height: 1px;
  background: linear-gradient(90deg, var(--gold, #F2E2A4), rgba(208,223,185,0.3));
  opacity: 0.4;
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.sircle-exp__services li:hover {
  color: var(--gold);
  background: rgba(242,226,164,0.04);
}

.sircle-exp__services li:hover::before {
  height: 80%;
  opacity: 1;
}

/* Phase CTA buttons — gold pill style */
.sircle-exp__phase-btn {
  margin-top: 28px;
  font-size: 15px;
  padding: 16px 36px;
  border-radius: 60px;
}

/* Bottom CTA */
.sircle-exp__cta {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

/* Tablet: keep pinning but adjust layout */
@media screen and (max-width: 991px) {
  .sircle-exp__model {
    right: 2%;
    width: 48vmin;
    height: 48vmin;
    max-width: 440px;
    max-height: 440px;
  }

  .sircle-exp__content {
    left: 60px;
    bottom: 80px;
    width: 48%;
    max-width: 440px;
  }

  .sircle-exp__progress {
    left: 20px;
    height: 140px;
  }

  .sircle-exp__nav {
    right: 20px;
    gap: 20px;
  }

  .sircle-exp__dot {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .sircle-exp__title {
    font-size: clamp(32px, 6vw, 52px);
  }

  .sircle-exp__num {
    font-size: clamp(48px, 8vw, 80px);
  }
}

/* Mobile: no pinning, stacked layout */
@media screen and (max-width: 768px) {
  .sircle-experience {
    height: auto !important;
  }

  .sircle-exp__pin {
    position: relative;
    height: auto;
    flex-direction: column;
    padding: 80px 0 60px;
  }

  /* Hide the top-level rotating model on mobile — each phase gets its own
     inline image instead (injected by main.js). The previous approach with
     :first-child was broken because .sircle-exp__model-glow is the first child. */
  .sircle-exp__model {
    display: none;
  }

  /* Per-phase inline model image — clean card-style visual */
  .sircle-exp__phase-img {
    display: block;
    width: 60vw;
    max-width: 280px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    margin: 0 auto 28px;
    opacity: 1;
    filter: drop-shadow(0 10px 30px rgba(143,175,138,0.15));
  }

  /* Stack all phases vertically */
  .sircle-exp__content {
    position: relative;
    left: auto;
    bottom: auto;
    width: 100%;
    padding: 0 24px;
    max-width: 100%;
  }

  .sircle-exp__phase {
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    padding: 0 0 48px;
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(208,223,185,0.08);
  }

  .sircle-exp__phase:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .sircle-exp__phase.is-exiting {
    opacity: 1 !important;
    transform: none !important;
  }

  .sircle-exp__label {
    display: none; /* Don't repeat label for each phase on mobile */
  }

  .sircle-exp__phase:first-child .sircle-exp__label {
    display: inline-block;
    margin-bottom: 32px;
  }

  .sircle-exp__num {
    font-size: 64px;
    margin-bottom: -12px;
  }

  .sircle-exp__title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .sircle-exp__tagline {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .sircle-exp__services li {
    font-size: 15px;
    padding: 10px 16px 10px 20px;
    opacity: 1 !important;
    transform: none !important;
    color: rgba(208,223,185,0.7) !important;
    --accent-width: 100% !important;
  }

  /* Hide progress + nav dots on mobile */
  .sircle-exp__progress,
  .sircle-exp__nav {
    display: none;
  }

  .sircle-exp__cta {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    padding: 40px 24px 0;
  }

  .sircle-exp__bg {
    background:
      radial-gradient(ellipse 80% 50% at 50% 20%, rgba(143,175,138,0.20) 0%, transparent 70%),
      linear-gradient(180deg, #0D2818 0%, var(--dark-green-deep) 50%, #071A0F 100%) !important;
  }
}
