/* ── Page shell ── */
    .page-shell {
      min-height: 80dvh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: top;
      padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
      /* background:
        radial-gradient(ellipse 80% 60% at 20% 10%, rgba(99,60,180,0.22) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0,180,210,0.15) 0%, transparent 55%),
        #0a0a0f; */
      overflow: hidden;
    }

    /* ── Heading ── */
    .carousel-heading {
      text-align: center;
      margin-bottom: 28px;
      letter-spacing: 0.04em;
    }
    .carousel-heading h1 {
      font-size: clamp(1.4rem, 4vw, 2.2rem);
      font-weight: 700;
      background: linear-gradient(135deg, #c084fc, #60a5fa, #34d399);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin-bottom: 6px;
    }
    .carousel-heading p {
      font-size: 0.85rem;
      color: rgba(200,200,230,0.5);
      margin: 0;
    }

    /* ── Carousel wrapper ── */
    .c3-wrapper {
      position: relative;
      width: min(96vw, 1100px);
    }

    /* ── The carousel ── */
    #c3 .carousel-inner { overflow: visible; }

    .c3-slide {
      display: none;
      animation: none;
    }
    .c3-slide.active { display: block; }

    /* fade-in for slide transition */
    .c3-slide.slide-in {
      animation: fadeSlideIn 0.45s cubic-bezier(.4,0,.2,1) both;
    }
    @keyframes fadeSlideIn {
      from { opacity: 0; transform: translateY(14px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0)   scale(1); }
    }

    /* ── 3-image grid ── */
    .c3-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 16px;
    }
    @media (max-width: 640px) {
      .c3-grid { grid-template-columns: 1fr; gap: 12px; }
    }

    /* ── Individual card ── */
    .c3-card {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      background: rgba(255,255,255,0.04);
      border: 1px solid rgba(255,255,255,0.08);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      box-shadow:
        0 4px 24px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
      cursor: pointer;
      transition: transform 0.3s cubic-bezier(.4,0,.2,1),
                  box-shadow 0.3s ease,
                  border-color 0.3s ease;
    }
    .c3-card:hover {
      transform: translateY(-6px) scale(1.025);
      box-shadow:
        0 16px 48px rgba(0,0,0,0.7),
        0 0 0 1px rgba(192,132,252,0.35),
        inset 0 1px 0 rgba(255,255,255,0.14);
      border-color: rgba(192,132,252,0.4);
    }

    /* ── Image ── */
    .c3-img-wrap {
      position: relative;
      width: 100%;
      padding-top: 66%;   /* 3:2 aspect */
      overflow: hidden;
    }
    .c3-img-wrap img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.4s ease;
    }
    .c3-card:hover .c3-img-wrap img {
      transform: scale(1.08);
      filter: brightness(0.55) saturate(1.2);
    }

    /* ── Caption overlay ── */
    .c3-caption {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 18px 16px;
      background: linear-gradient(to top, rgba(10,8,25,0.85) 0%, transparent 55%);
      opacity: 0;
      transform: translateY(6px);
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }
    .c3-card:hover .c3-caption {
      opacity: 1;
      transform: translateY(0);
    }
    .c3-caption-tag {
      font-size: 0.68rem;
      font-weight: 600;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: #c084fc;
      margin-bottom: 4px;
    }
    .c3-caption-title {
      font-size: 1rem;
      font-weight: 700;
      color: #f0f0ff;
      line-height: 1.25;
      margin-bottom: 4px;
    }
    .c3-caption-sub {
      font-size: 0.75rem;
      color: rgba(200,200,230,0.7);
      line-height: 1.4;
    }

    /* ── Card footer ── */
    .c3-card-footer {
      padding: 12px 14px;
      display: flex;
      align-items: center;
      gap: 10px;
      border-top: 1px solid rgba(255,255,255,0.06);
    }
    .c3-dot {
      width: 8px; height: 8px;
      border-radius: 50%;
      flex-shrink: 0;
    }
    .c3-label {
      font-size: 0.78rem;
      color: rgba(200,200,230,0.65);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* ── Controls row ── */
    .c3-controls {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      margin-top: 28px;
    }

    /* Prev / Next buttons */
    .c3-btn {
      width: 44px; height: 44px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.12);
      background: rgba(255,255,255,0.06);
      backdrop-filter: blur(8px);
      color: #e0e0f0;
      font-size: 1rem;
      display: flex; align-items: center; justify-content: center;
      cursor: pointer;
      transition: background 0.2s, border-color 0.2s, transform 0.15s;
      -webkit-tap-highlight-color: transparent;
    }
    .c3-btn:hover {
      background: rgba(192,132,252,0.18);
      border-color: rgba(192,132,252,0.5);
      transform: scale(1.1);
    }
    .c3-btn:active { transform: scale(0.95); }

    /* Indicators */
    .c3-indicators {
      display: flex;
      gap: 8px;
      align-items: center;
    }
    .c3-ind {
      height: 6px;
      border-radius: 3px;
      background: rgba(255,255,255,0.2);
      transition: width 0.35s cubic-bezier(.4,0,.2,1), background 0.35s ease;
      cursor: pointer;
      width: 6px;
      -webkit-tap-highlight-color: transparent;
    }
    .c3-ind.active {
      width: 28px;
      background: linear-gradient(90deg, #c084fc, #60a5fa);
    }

    /* ── Slide counter ── */
    .c3-counter {
      font-size: 0.72rem;
      color: rgba(200,200,230,0.45);
      letter-spacing: 0.05em;
      min-width: 48px;
      text-align: center;
    }

    /* ── Auto-play progress bar ── */
    .c3-progress-bar-wrap {
      width: min(96vw, 1100px);
      height: 2px;
      background: rgba(255,255,255,0.06);
      border-radius: 1px;
      margin-top: 14px;
      overflow: hidden;
    }
    .c3-progress-bar {
      height: 100%;
      border-radius: 1px;
      background: linear-gradient(90deg, #c084fc, #60a5fa, #34d399);
      transition: width 0.1s linear;
      width: 0%;
    }