/* ============================================================
   Scrollable Product Categories  ·  Editorial Grid Layout
   ============================================================ */
*,*::before,*::after{box-sizing:border-box}

/* ── Scene ─────────────────────────────────────────────── */
.spc-scene {
  display: flex;
  align-items: flex-start;
  background: var(--spc-bg, #0a0a0a);
  color: #fff;
  font-family: inherit;
  width: 100%;
  min-height: 100vh;
  position: relative;
}

/* ============================================================
   LEFT  ·  Sticky editorial panel
   ============================================================ */
.spc-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 32%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  border-right: 1px solid rgba(255,255,255,0.06);
  z-index: 10;
  overflow: hidden;
}

.spc-panel__inner {
  padding: 3rem 2.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

/* eyebrow */
.spc-panel__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.4rem;
  overflow: hidden;
}
.spc-panel__eyebrow-line {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* Big title — each word on its own line, clip for reveal */
.spc-panel__title {
  margin: 0 0 2.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.spc-panel__word {
  display: block;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #fff;
  /* overflow and reveal handled by JS inner-span wrapping */
}

/* footer: counter + progress */
.spc-panel__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.spc-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-variant-numeric: tabular-nums;
}
.spc-counter__cur {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.04em;
}
.spc-counter__div { font-size: 0.7rem; color: rgba(255,255,255,0.2); }
.spc-counter__tot { font-size: 0.7rem; color: rgba(255,255,255,0.3); letter-spacing: 0.04em; }

.spc-bar {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
  position: relative;
  overflow: hidden;
}
.spc-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--spc-accent, rgba(255,255,255,0.7));
  transition: width 0.15s ease;
}

/* ============================================================
   RIGHT  ·  2-column grid
   ============================================================ */
.spc-grid-wrap {
  flex: 1;
  min-width: 0;
}

.spc-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: transparent;
}

/* ============================================================
   CARD  ·  Each category item
   ============================================================ */
.spc-item {
  background: var(--spc-bg, #0a0a0a);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* left column only gets right border — right column has nothing to its right */
.spc-item:nth-child(odd) {
  border-right: 1px solid rgba(255,255,255,0.05);
}

.spc-item__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.spc-item__link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: -2px;
}

/* ── Media ──────────────────────────────────────────────── */
.spc-item__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;   /* landscape, like the reference */
  overflow: hidden;
  background: var(--spc-bg, #111);
}

.spc-item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
  transform: scale(1.04);
  will-change: transform;
}
.spc-item:hover .spc-item__img { transform: scale(1.1); }

/* dark gradient at bottom of image */
.spc-item__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

/* no-image decorative letter */
.spc-item__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.04);
  user-select: none;
  pointer-events: none;
}

/* index number badge */
.spc-item__idx {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.3);
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

/* clip-path initial state handled entirely by JS via gsap.set()
   so both columns get their correct starting clip independently.
   CSS only provides the will-change hint. */
.spc-item { will-change: clip-path; }

/* ── Info row ───────────────────────────────────────────── */
.spc-item__body {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--spc-bg, #0a0a0a);
  border-top: 1px solid rgba(255,255,255,0.05);
  transition: background 0.3s ease;
}
.spc-item:hover .spc-item__body { background: color-mix(in srgb, var(--spc-bg, #0a0a0a) 70%, #fff 30%); }

.spc-item__name {
  font-size: clamp(0.75rem, 1.1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.25s ease;
}
.spc-item:hover .spc-item__name { opacity: 0.7; }

.spc-item__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spc-item__count {
  font-size: 0.63rem;
  color: rgba(255,255,255,0.28);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.spc-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.spc-item:hover .spc-item__cta {
  opacity: 1;
  transform: translateX(0);
  color: var(--spc-accent, rgba(255,255,255,0.7));
}

/* ── Bottom border wipe on hover ────────────────────────── */
.spc-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--spc-accent, #ffffff);
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}
.spc-item:hover::after { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .spc-panel { width: 38%; }
  .spc-panel__word { font-size: clamp(1.8rem, 5vw, 3rem); }
}

@media (max-width: 640px) {
  .spc-scene { flex-direction: column; min-height: auto; }

  .spc-panel {
    position: relative;
    height: auto;
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: flex-start;
  }
  .spc-panel__inner { padding: 2rem 1.25rem; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .spc-panel__title { margin-bottom: 0; flex-direction: row; gap: 0.3em; flex-wrap: wrap; }
  .spc-panel__word  { font-size: 1.5rem; overflow: visible !important; }
  .spc-panel__word .spc-word-inner { transform: none !important; }
  .spc-panel__footer { display: none; }

  .spc-grid { grid-template-columns: 1fr 1fr; }
  .spc-item { clip-path: none !important; }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .spc-item             { clip-path: none !important; }
  .spc-item__img        { transition: none !important; }
  .spc-panel__word      { overflow: visible !important; }
  .spc-word-inner       { transform: none !important; }
  .spc-item__cta        { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   SHOWCASE LAYOUT  ·  Stacked Carousel + Product Panel
   ============================================================ */

/* Override base scene for showcase — height controlled, JS pins it */
.spc-scene--showcase {
  min-height: 100vh;
  overflow: hidden;
  align-items: stretch;
}

/* Left panel — relative (whole section is JS-pinned, no sticky needed) */
.spc-scene--showcase .spc-panel {
  position: relative;
  height: auto;
  min-height: 100vh;
  flex: 0 0 28%;
  width: 28%;
  display: flex;
  align-items: stretch;
  overflow: visible; /* allow title words to not be panel-clipped */
}

/* Smaller title — panel is only 28% wide */
.spc-scene--showcase .spc-panel__word {
  font-size: clamp(1.5rem, 2.8vw, 2.9rem);
  letter-spacing: -0.035em;
}

.spc-scene--showcase .spc-panel__inner {
  padding: 2rem 1.6rem 4rem 2.6rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.spc-scene--showcase .spc-panel__title {
  margin-bottom: 3rem;
  flex: none;
  justify-content: flex-start;
}

.spc-scene--showcase .spc-panel__footer {
  margin-top: 0;
  padding-top: 0;
}

/* ── Center stack ──────────────────────────────────────── */
.spc-sh-stack-wrap {
  flex: 0 0 42%;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}

.spc-sh-stack {
  position: absolute;
  inset: 0;
}

/* Each card — GSAP handles all transforms; CSS only sets base position */
.spc-sh-card {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 56vh;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  will-change: transform, opacity;
  cursor: pointer;
  transition: box-shadow 0.4s ease;
}


.spc-sh-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform: scale(1.04);
}

.spc-sh-card:hover .spc-sh-card__img { transform: scale(1.09); }

/* Three.js WebGL canvas — absolute cover, replaces img visually */
.spc-sh-effect {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  display: block;
  z-index: 2;
}

.spc-sh-card__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(255,255,255,0.06);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
}

/* Subtle top scrim so card number reads against any image */
.spc-sh-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.28) 0%, transparent 40%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

/* ── Right detail panels ──────────────────────────────── */
.spc-sh-details {
  flex: 1;
  position: relative;
  min-height: 100vh;
}

.spc-sh-detail {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 3.2rem 3rem 2.2rem;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}

/* Category name */
.spc-sh-detail__name {
  font-size: clamp(1.3rem, 2vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 2.4rem;
  line-height: 1.05;
}

/* Product thumbnail row */
.spc-sh-detail__products {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}

.spc-sh-prod {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.07);
  display: block;
  text-decoration: none;
  will-change: opacity, transform;
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.spc-sh-prod:hover { transform: scale(1.04); }

.spc-sh-prod img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.spc-sh-prod__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

/* Product count */
.spc-sh-detail__count {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin: 0 0 2rem;
}


/* View collection link */
.spc-sh-detail__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  text-decoration: none;
  transition: color 0.3s ease, gap 0.35s ease;
  width: fit-content;
}

.spc-sh-detail__link:hover {
  color: var(--spc-accent, #fff);
  gap: 13px;
}

/* ── Showcase responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .spc-scene--showcase .spc-panel { display: none; }
  .spc-sh-stack-wrap { flex: 0 0 50%; }
}

@media (max-width: 640px) {
  .spc-scene--showcase { flex-direction: column; min-height: auto; }
  .spc-sh-stack-wrap   { flex: none; width: 100%; min-height: 60vh; }
  .spc-sh-details      { flex: none; width: 100%; min-height: 40vh; }
  .spc-sh-detail       { position: relative; inset: auto; padding: 2rem 1.5rem; }
  .spc-sh-detail__name { font-size: 1.3rem; margin-bottom: 1.2rem; }
  .spc-sh-card         { height: 42vh; }
}

/* Reduced motion — show all cards flat, first detail visible */
@media (prefers-reduced-motion: reduce) {
  .spc-sh-card   { transform: none !important; opacity: 1 !important; }
  .spc-sh-detail { opacity: 0 !important; }
  .spc-sh-detail[data-index="0"] { opacity: 1 !important; pointer-events: auto !important; }
}

/* ============================================================
   HORIZONTAL LAYOUT  ·  Cinematic Left-to-Right Clip Reveal
   ============================================================ */

.spc-scene--horizontal {
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

/* ── Header ─────────────────────────────────────────────── */
.spc-hs-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 2.4rem 3.5rem 1.6rem;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.spc-hs-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Title words inline in horizontal layout */
.spc-scene--horizontal .spc-panel__eyebrow {
  margin-bottom: 0;
}

.spc-scene--horizontal .spc-panel__title {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0 0.28em;
  align-items: baseline;
  margin-bottom: 0;
}

.spc-scene--horizontal .spc-panel__word {
  font-size: clamp(1.6rem, 2.6vw, 3rem);
  letter-spacing: -0.04em;
}

/* Counter: top-right */
.spc-hs-header__right {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.15rem;
}

/* ── Track area ─────────────────────────────────────────── */
.spc-hs-track-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: stretch;
}

.spc-hs-track {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 2rem 3.5rem 2rem 3.5rem;
  will-change: transform;
  flex-shrink: 0;
}

/* ── Slide ──────────────────────────────────────────────── */
.spc-hs-slide {
  flex-shrink: 0;
  width: 30vw;
  position: relative;
}

.spc-hs-slide__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  will-change: clip-path;
  cursor: pointer;
}

.spc-hs-slide__link:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: -2px;
}

/* Image fills the whole card */
.spc-hs-slide__media {
  position: absolute;
  inset: 0;
  background: #111;
  overflow: hidden;
}

.spc-hs-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.spc-hs-slide__link:hover .spc-hs-slide__img {
  transform: scale(1.09);
}

/* Bottom-heavy gradient scrim */
.spc-hs-slide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.12) 40%,
    rgba(0,0,0,0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

/* No-image letter glyph */
.spc-hs-slide__glyph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(5rem, 14vw, 10rem);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  letter-spacing: -0.06em;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

/* Bottom info bar — above scrim */
.spc-hs-slide__foot {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.6rem 1.8rem 1.6rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.spc-hs-slide__num {
  display: block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.38);
  text-transform: uppercase;
}

.spc-hs-slide__name {
  font-size: clamp(1rem, 1.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
  line-height: 1.1;
}

.spc-hs-slide__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.spc-hs-slide__count {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.spc-hs-slide__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.spc-hs-slide__link:hover .spc-hs-slide__cta {
  opacity: 1;
  transform: translateX(0);
  color: var(--spc-accent, #fff);
}

/* Bottom border wipe on hover */
.spc-hs-slide__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--spc-accent, #ffffff);
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 3;
}
.spc-hs-slide__link:hover::after { width: 100%; }

/* ── Footer ─────────────────────────────────────────────── */
.spc-hs-footer {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  padding: 1.2rem 3.5rem 1.6rem;
  flex-shrink: 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.spc-hs-footer .spc-bar { flex: 1; }

.spc-hs-hint {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.18);
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Horizontal layout: counter styled as small nav badge, distinct from title ── */
.spc-scene--horizontal .spc-hs-header__right .spc-counter {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding-left: 1.5rem;
}
.spc-scene--horizontal .spc-hs-header__right .spc-counter__cur {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.spc-scene--horizontal .spc-hs-header__right .spc-counter__div {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.15);
}
.spc-scene--horizontal .spc-hs-header__right .spc-counter__tot {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* ── Horizontal responsive ──────────────────────────────── */
@media (max-width: 1024px) {
  .spc-hs-slide { width: 46vw; }
  .spc-hs-header { padding: 1.8rem 2.5rem 1.2rem; }
  .spc-hs-track  { padding: 1.6rem 2.5rem; gap: 14px; }
  .spc-hs-footer { padding: 1rem 2.5rem 1.4rem; }
}

@media (max-width: 640px) {
  .spc-scene--horizontal {
    height: auto;
    min-height: auto;
    overflow: visible;
  }
  .spc-hs-header {
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 1.5rem 1.25rem 1rem;
    border-bottom: none;
  }
  .spc-scene--horizontal .spc-panel__word { font-size: 1.5rem; }
  .spc-hs-track-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .spc-hs-track-wrap::-webkit-scrollbar { display: none; }
  .spc-hs-track  { padding: 1rem 1.25rem; gap: 12px; height: 58vh; }
  .spc-hs-slide  { width: 78vw; }
  .spc-hs-slide__link { clip-path: none !important; }
  .spc-hs-footer { padding: 0.8rem 1.25rem 1.2rem; }
  .spc-hs-hint   { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spc-hs-slide__link { clip-path: none !important; }
  .spc-hs-slide__img  { transition: none !important; }
  .spc-hs-slide__cta  { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   IMAGE BANNERS  ·  [spc_banner] shortcode
   ============================================================ */
.spc-banner-grid {
  display: grid;
  grid-template-columns: repeat(var(--spc-bn-cols, 2), 1fr);
  gap: var(--spc-bn-gap, 14px);
  width: 100%;
}

.spc-bn-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.spc-bn-link {
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
}

.spc-bn-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.04);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.spc-bn-item:hover .spc-bn-img { transform: scale(1.1); }

.spc-bn-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem 1.8rem;
  pointer-events: none;
  transition: background 0.4s ease;
}
.spc-bn-item:hover .spc-bn-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.28) 50%, transparent 100%);
}

.spc-bn-label {
  display: block;
  font-size: clamp(0.9rem, 2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.spc-bn-cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}
.spc-bn-item:hover .spc-bn-cta {
  opacity: 1;
  transform: translateY(0);
  color: #fff;
}

/* Bottom border wipe on hover */
.spc-bn-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 0%;
  background: #fff;
  transition: width 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 2;
}
.spc-bn-item:hover .spc-bn-link::after { width: 100%; }

/* Responsive (standalone grid fallback) */
@media (max-width: 768px) {
  .spc-banner-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .spc-bn-img { transition: none !important; }
  .spc-bn-cta { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   FILMLIST LAYOUT  ·  Pantheon-style drum cylinder
   Items flow in a natural list; rotateX driven by scroll position.
   Left panel: sticky  ·  Right track: normal page scroll
   ============================================================ */

/* Scene: natural height — panel anchors to top via sticky */
.spc-scene--filmlist {
  height: auto;
  min-height: 0;
  overflow: visible;
  align-items: flex-start;
  font-family: var(--spc-fl-font, inherit);
}

/* Panel: sticky so it stays in view as the track scrolls */
.spc-scene--filmlist .spc-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 0;
  width: 26%;
  flex: 0 0 26%;
}
.spc-scene--filmlist .spc-panel__word {
  font-size: clamp(1.5rem, 2.8vw, 3rem);
}

/* Track: scrolls naturally with the page */
.spc-fl-track {
  flex: 1;
  position: relative;
  overflow: visible;
  /* perspective on container removed — each item has its own perspective() */
}

/* List: top/bottom padding lets first and last items reach the viewport centre */
.spc-fl-list {
  list-style: none;
  margin: 0;
  padding: 48vh 0;
}

/* Items: natural flow — GSAP applies rotateX / scale / opacity per frame */
.spc-fl-item {
  position: relative;
  will-change: transform, opacity;
}

/* Link row */
.spc-fl-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vw, 3rem);
  text-decoration: none;
  color: inherit;
  padding: 0.12rem 3rem;
  cursor: pointer;
  position: relative;
}

/* Index number */
.spc-fl-num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.25);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Giant label */
.spc-fl-name {
  font-size: clamp(var(--spc-fl-min, 2.2rem), 5.5vw, var(--spc-fl-size, 7.5rem));
  font-weight: var(--spc-fl-weight, 800);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.05;
  color: rgba(255,255,255,0.92);
  transition: color 0.3s ease;
  white-space: nowrap;
}

.spc-fl-link:hover .spc-fl-name { color: var(--spc-accent, #fff); }
.spc-fl-link:hover .spc-fl-num  { color: rgba(255,255,255,0.5); }

.spc-fl-divider { display: none; }

/* Thumbnails */
.spc-fl-thumb {
  flex-shrink: 0;
  width: clamp(90px, 10vw, 175px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  opacity: 0.82;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.spc-fl-link:hover .spc-fl-thumb { opacity: 1; transform: scale(1.05); }
.spc-fl-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Alternate thumbnail side — matches Pantheon */
.spc-fl-item--tl .spc-fl-thumb { order: -1; }

/* Responsive */
@media (max-width: 1024px) {
  .spc-scene--filmlist .spc-panel { width: 30%; flex: 0 0 30%; }
  .spc-fl-name { font-size: clamp(1.8rem, 5vw, 5rem); white-space: normal; }
}

@media (max-width: 640px) {
  .spc-scene--filmlist { flex-direction: column; }
  .spc-scene--filmlist .spc-panel {
    position: relative; height: auto; width: 100%; flex: none;
    border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .spc-fl-name  { font-size: clamp(1.4rem, 8vw, 2.8rem); white-space: normal; }
  .spc-fl-thumb { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .spc-fl-item { opacity: 1 !important; transform: none !important; }
}

/* ── Banner items inside spc-scene panel layout ─────────────── */
.spc-grid .spc-bn-item {
  border-radius: 0;
}
.spc-grid .spc-bn-link {
  border-radius: 0;
  display: block;
  height: 100%;
  /* duplicate ::after handled by spc-item::after */
}
.spc-grid .spc-bn-link::after {
  display: none;
}
.spc-grid .spc-bn-item .spc-bn-cta {
  color: var(--spc-accent, rgba(255,255,255,0.7));
}

/* ═══════════════════════════════════════════════════════════
   SPC STICKY SCROLL SECTION  [spc_sticky]
   ═══════════════════════════════════════════════════════════ */
.spc-sticky-scene {
  background-color: var(--spc-ss-bg, #f9ffe7);
  color: var(--spc-ss-color, #121212);
  /* Break out of any parent container (Elementor, theme wrapper, etc.) */
  position: relative;
  width: 100vw;
  max-width: var(--spc-ss-max, 100vw);
  left: 50%;
  transform: translateX(-50%);
}

.spc-ss-inner {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  max-width: var(--spc-ss-content-max, 1100px);
  margin-inline: auto;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* ── Left: scrolling text panels ── */
.spc-ss-left {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 280px;
}

.spc-ss-info {
  max-width: 360px;
  height: 100vh;
  display: grid;
  place-items: center;
}

.spc-ss-content {
  width: 100%;
}

.spc-ss-heading {
  font-size: var(--spc-ss-h-size, clamp(28px, 3.5vw, 42px));
  font-family: var(--spc-ss-h-font, inherit);
  font-weight: var(--spc-ss-h-weight, 800);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.1;
  color: var(--spc-ss-color, #121212);
}

.spc-ss-desc {
  font-size: var(--spc-ss-p-size, clamp(15px, 1.5vw, 18px));
  font-family: var(--spc-ss-p-font, inherit);
  font-weight: var(--spc-ss-p-weight, 400);
  letter-spacing: -0.02em;
  margin: 6px 0 28px;
  line-height: 1.55;
  color: var(--spc-ss-color, #121212);
  opacity: 0.75;
}

.spc-ss-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  padding: 11px 20px;
  background-color: var(--spc-btn-bg, #D5FF37);
  color: var(--spc-btn-color, #121212);
  text-decoration: none;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1),
              background-color 0.28s ease,
              box-shadow 0.28s ease,
              gap 0.28s ease,
              color 0.22s ease;
}
.spc-ss-btn:hover {
  transform: translateY(-3px) scale(1.03);
  background-color: var(--spc-btn-hover-bg, var(--spc-btn-bg, #D5FF37));
  color: var(--spc-btn-hover-color, #fff);
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.spc-ss-btn:active {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}
.spc-ss-btn svg {
  flex-shrink: 0;
  transition: transform 0.28s cubic-bezier(0.23,1,0.32,1);
}
.spc-ss-btn:hover svg {
  transform: translateX(3px);
}

/* ── Right: sticky pinned image stack ── */
.spc-ss-right {
  flex: 1;
  height: 100vh;
  max-width: 540px;
  position: sticky;
  top: 0;
  align-self: flex-start;
}

.spc-ss-img-wrap {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 420px;
  transform: translateY(-50%);
  border-radius: 20px;
  overflow: hidden;
  will-change: clip-path;
}

.spc-ss-img-wrap img,
.spc-ss-img-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  display: block;
}

.spc-ss-video-clip {
  width: 100%;
  height: 100%;
  will-change: clip-path;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .spc-ss-inner { gap: 32px; }
}

@media (max-width: 768px) {
  .spc-ss-inner {
    flex-direction: column;
    gap: 0;
    padding: 0 1.25rem;
  }

  /* bubble children into the flex parent for order-based interleaving */
  .spc-ss-left,
  .spc-ss-right {
    display: contents;
  }

  .spc-ss-info {
    height: auto;
    padding: 28px 0 16px;
    max-width: 100%;
  }

  .spc-ss-img-wrap {
    position: static;
    transform: none;
    height: 300px;
    width: 100%;
    border-radius: 14px;
    top: auto;
    left: auto;
    margin-bottom: 4px;
  }
}

@media (max-width: 480px) {
  .spc-ss-img-wrap  { height: 240px; border-radius: 10px; }
  .spc-ss-heading   { font-size: 26px; }
}

/* ============================================================
   STACKED STICKY LAYOUT  ·  Full-screen sections that stack
   Each .spc-ss-stack-item is sticky; exits via GSAP filter+yPercent
   ============================================================ */
.spc-ss--stacked {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.spc-ss-stack-item {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  background-color: var(--spc-ss-item-bg, #1a1a1a);
  color: var(--spc-ss-color, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: filter, transform;
}

.spc-ss-stack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: 'stack-img stack-text';
  align-items: center;
  gap: 5vw;
  width: 100%;
  max-width: var(--spc-ss-content-max, 1100px);
  padding: 0 2.5rem;
  margin-inline: auto;
}

.spc-ss-stack-img-wrap {
  grid-area: stack-img;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 72vh;
  position: relative;
}

.spc-ss-stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

video.spc-ss-stack-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.spc-ss-stack-text {
  grid-area: stack-text;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.spc-ss-stack-text .spc-ss-heading,
.spc-ss-stack-text .spc-ss-desc {
  color: inherit;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .spc-ss-stack-inner { gap: 3vw; padding: 0 2rem; }
}

@media (max-width: 768px) {
  .spc-ss-stack-inner {
    grid-template-columns: 1fr;
    grid-template-areas: 'stack-img' 'stack-text';
    gap: 1.5rem;
    padding: 0 1.25rem;
    align-content: center;
  }
  .spc-ss-stack-img-wrap {
    aspect-ratio: 16/9;
    max-height: 38vh;
    border-radius: 14px;
  }
  .spc-ss-stack-item {
    align-items: flex-start;
    padding-top: 10vh;
  }
}

@media (max-width: 480px) {
  .spc-ss-stack-img-wrap { border-radius: 10px; }
  .spc-ss-stack-text .spc-ss-heading { font-size: 26px; }
}

