/* Goldstone Arena - Global Stylesheet */

.hero-type { font-size: clamp(2.6rem, 1rem + 6.4vw, 7.25rem); line-height: .98; letter-spacing: -.045em; }
    .h2 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 4.25rem); line-height: 1; letter-spacing: -.04em; }
    .eyebrow { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }

    .text-gold-grad {
      background: linear-gradient(100deg, #F1D98E 0%, #C9A23A 45%, #F1D98E 70%, #A07E22 100%);
      -webkit-background-clip: text; background-clip: text; color: transparent;
    }
    .bg-gold-grad { background: linear-gradient(135deg, #F1D98E 0%, #C9A23A 55%, #A07E22 100%); }
    .grain::after {
      content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    }

    /* Inline image capsules inside headline */
    .pill-img { display: inline-block; vertical-align: middle; width: 1.75em; height: .82em; border-radius: 999px; object-fit: cover; margin: 0 .08em; translate: 0 -.06em; }

    /* Rotating badge */
    .spin-slow { animation: spin 22s linear infinite;
      @media (prefers-reduced-motion: reduce) { animation: none; } }
    @keyframes spin { to { rotate: 360deg; } }

    /* Marquee */
    .marquee-track { animation: marquee 32s linear infinite; }
    .marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
    .marquee-track { @media (prefers-reduced-motion: reduce) { animation: none; } }
    @keyframes marquee { to { translate: -50% 0; } }

    /* Decorative scroll reveal — progressive enhancement, no fallback needed */
    @media (prefers-reduced-motion: no-preference) {
      @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes rise { from { opacity: 0; translate: 0 48px; } }
        .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
      }
    }

    /* ScrollExpand (port dari react-bits) */
    .scroll-expand { position: relative; width: 100%; }
    .scroll-expand__track { position: relative; width: 100%; }
    .scroll-expand__stage { position: sticky; top: 0; width: 100%; height: 100dvh; overflow: hidden; display: grid; place-items: center; }
    .scroll-expand__frame { position: absolute; inset: 0; overflow: hidden; background: #0B0C09; will-change: clip-path; }
    .scroll-expand__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; transform-origin: center; }
    .scroll-expand__scrim { position: absolute; inset: 0; background: #0B0C09; opacity: 0; pointer-events: none; }
    .scroll-expand__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; opacity: 0; will-change: opacity, transform; }
    .scroll-expand__title { position: relative; z-index: 2; text-align: center; color: #F5F1E6; font-family: 'Bricolage Grotesque', system-ui, sans-serif; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-size: clamp(1.6rem, 1rem + 3.4vw, 3.5rem); text-shadow: 0 2px 24px rgba(0,0,0,.55); padding: 0 1rem; max-width: 90%; will-change: opacity, transform; pointer-events: none; }
    .scroll-expand__hint { position: absolute; bottom: 1.75rem; left: 0; right: 0; z-index: 2; text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(11,12,9,.55); pointer-events: none; }

    /* BlurText Keyframes & Styles (matching motion/react BlurText effect) */
    @keyframes blurIn {
      0% {
        opacity: 0;
        filter: blur(12px);
        transform: translateY(-36px) scale(0.96);
      }
      50% {
        opacity: 0.6;
        filter: blur(4px);
        transform: translateY(3px) scale(1.01);
      }
      100% {
        opacity: 1;
        filter: blur(0px);
        transform: translateY(0) scale(1);
      }
    }

    .blur-word {
      display: inline-block;
      opacity: 0;
      animation: blurIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      will-change: transform, filter, opacity;
    }

    /* Scroll-triggered blur text animation for other sections */
    .blur-text-view {
      display: inline;
    }
    .blur-text-view .blur-view-word {
      display: inline-block;
      opacity: 0;
      transform: translateY(-30px);
      filter: blur(10px);
      transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.65s cubic-bezier(0.22, 1, 0.36, 1);
      will-change: transform, filter, opacity;
    }
    .blur-text-view.is-visible .blur-view-word {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0px);
    }

    @media (prefers-reduced-motion: reduce) {
      .blur-word,
      .blur-text-view .blur-view-word {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
      }
    }

    .no-scrollbar { 
      scrollbar-width: none; 
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
      touch-action: pan-x pan-y;
      overscroll-behavior-x: contain;
    }
    .no-scrollbar::-webkit-scrollbar { display: none; }

    /* ===== MOBILE ONLY (< 640px) — desktop tidak terpengaruh ===== */
    .rm-btn { display: none; }
    @media (max-width: 639px) {
      /* "Lihat selengkapnya" untuk paragraf panjang */
      .rm-collapsed {
        max-height: var(--rm-h, 4.9em); overflow: hidden;
        -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
                mask-image: linear-gradient(to bottom, #000 55%, transparent);
      }
      .rm-btn.is-needed { display: inline-flex; align-items: center; gap: .35rem; margin-top: .5rem; font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

      /* Daftar fasilitas: tampilkan 5 dulu */
      .fac-list:not(.is-open) .fac-more { display: none; }
    }
    @media (min-width: 640px) { .fac-toggle { display: none; } }
    /* Ekosistem jadi swipe horizontal di mobile/tablet (< 1024px): matikan reveal agar kartu langsung tampil & siap digeser */
    @media (max-width: 1023px) { #eko-track .reveal { animation: none; opacity: 1; translate: none; } }

    /* ===== CircularCarousel (port dari @react-bits/CircularCarousel-JS-CSS) ===== */
    .circular-carousel {
      --cc-fade: #0B0C09;
      --cc-radius: 20px;
      --cc-inner: 0.4;
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
      outline: none;
      touch-action: pan-y;
      user-select: none;
      -webkit-user-select: none;
      -webkit-tap-highlight-color: transparent;
    }
    .circular-carousel[data-axis='x'] { touch-action: pan-x; }
    .circular-carousel[data-draggable] { cursor: grab; }
    .circular-carousel[data-dragging] { cursor: grabbing; }
    .circular-carousel:focus-visible { box-shadow: inset 0 0 0 2px rgba(201, 162, 58, 0.55); border-radius: 24px; }
    .circular-carousel__view { position: absolute; inset: 0; }
    .circular-carousel__stage {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      transition: opacity 0.45s ease;
    }
    .circular-carousel[data-ready] .circular-carousel__stage { opacity: 1; }
    .circular-carousel__camera,
    .circular-carousel__ring,
    .circular-carousel__card {
      width: 0;
      height: 0;
      transform-style: preserve-3d;
    }
    .circular-carousel__camera { position: relative; }
    .circular-carousel__ring,
    .circular-carousel__card {
      position: absolute;
      left: 0;
      top: 0;
    }
    .circular-carousel__tile {
      position: absolute;
      outline: 1px solid transparent;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
    }
    .circular-carousel__frame {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      overflow: hidden;
    }
    .circular-carousel__photo {
      position: absolute;
      display: block;
      max-width: none;
      object-fit: cover;
      pointer-events: none;
      user-select: none;
      -webkit-user-drag: none;
    }
    .circular-carousel__overlay {
      position: absolute;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 18px;
      background: linear-gradient(to top, rgba(11, 12, 9, 0.94) 0%, rgba(11, 12, 9, 0.52) 48%, rgba(11, 12, 9, 0.05) 100%);
      color: #F5F1E6;
      pointer-events: none;
      box-sizing: border-box;
    }
    .circular-carousel__shade,
    .circular-carousel__inner {
      position: absolute;
      inset: 0;
      pointer-events: none;
    }
    .circular-carousel__shade {
      background: var(--cc-fade);
      opacity: var(--cc-depth, 0);
    }
    .circular-carousel__inner {
      background: #0B0C09;
      opacity: var(--cc-inner);
    }
    .circular-carousel__live {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }
    @media (prefers-reduced-motion: reduce) {
      .circular-carousel__stage { transition: none; }
    }
