/* ============================================================
   .stock-catalog-cinema — animated portal scene rotator
   Light/product-screen version. The right column renders as a
   white .mod-mock-style browser frame; the left column is page
   typography on the section background. Four scenes cross-fade
   in lockstep with the left-column narrative as the user scrolls
   through a tall .scc-runway container:
   Catalog (SKU rain) → Specs (callouts) → Pricing (slash + tier)
   → Order (cart hop).
   ============================================================ */

/* ---------- Sticky-scroll runway ---------- */
.scc-runway {
  position: relative;
  --scc-runway-vh: 3;
  --scc-sticky-top: 96px;
  height: calc(var(--scc-runway-vh) * 100vh);
  margin-top: 1rem;
}
.scc-runway > .stock-catalog-cinema {
  position: sticky;
  top: var(--scc-sticky-top);
}

/* Wrapping figure/caption */
.scc-figure {
  display: block;
  margin-top: 40px;
}
.scc-figure-caption {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ss-shadow);
  margin-bottom: 16px;
  line-height: 1.4;
}
.scc-figure-label {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px;
  background: var(--ss-light-blue);
  color: var(--ss-primary-blue);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 4px;
}

/* ---------- The cinema panel itself ----------
   Transparent grid; chrome lives on the right scene column only. */
.stock-catalog-cinema {
  --scc-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  --scc-accent: var(--ss-primary-blue);
  --scc-pop: var(--ss-orange);

  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: stretch;
  min-height: 520px;
  font-family: var(--font-sans);
  color: var(--ss-charcoal);
}

/* ---------- LEFT — narrative column ---------- */
.scc-narrative {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  min-width: 0;
}

.scc-pips {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 4px;
}
.scc-pip {
  display: grid; grid-template-columns: 28px 1fr;
  align-items: center; gap: 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-smoke);
  transition: color 0.2s ease-out;
}
.scc-pip.is-active { color: var(--ss-primary-blue); }
.scc-pip.is-past   { color: var(--ss-shadow); }
.scc-pip-num { font-variant-numeric: tabular-nums; }
.scc-pip-bar {
  display: block; height: 2px;
  background: var(--ss-light-gray);
  border-radius: 1px;
  overflow: hidden;
  position: relative;
}
.scc-pip-bar > span {
  display: block; height: 100%;
  width: 0;
  background: var(--ss-primary-blue);
  transition: width 0.2s ease-out;
}

.scc-narrative-stack {
  position: relative; flex: 1;
  display: flex; align-items: center;
  min-height: 280px;
}
.scc-chapter {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  will-change: opacity, transform;
  pointer-events: none;
}
.scc-chapter.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scc-chapter-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-primary-blue);
}
.scc-chapter-title {
  font-family: var(--font-sans);
  font-size: clamp(22px, 1.4rem + 0.8vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ss-dark-navy);
  margin: 0;
  text-wrap: pretty;
}
.scc-chapter-body {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ss-charcoal);
  margin: 0;
  max-width: 38ch;
  text-wrap: pretty;
}
.scc-chapter-stat {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ss-light-gray);
}
.scc-chapter-stat-num {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-dark-navy);
  font-variant-numeric: tabular-nums;
}
.scc-chapter-stat-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-shadow);
}
.scc-scroll-hint {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-smoke);
}
.scc-scroll-hint-line {
  width: 30px; height: 1px;
  background: var(--ss-medium-gray);
}

/* ---------- RIGHT — scene column (white mock card) ---------- */
.scc-scenecol {
  position: relative;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(31, 65, 104, 0.10);
  box-shadow:
    0 30px 80px -30px rgba(31, 65, 104, 0.35),
    0 8px 24px rgba(31, 65, 104, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Browser-chrome bar */
.scc-chrome {
  background: var(--ss-light-blue);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(31, 65, 104, 0.08);
  flex-shrink: 0;
}
.scc-chrome-dots {
  display: inline-flex;
  gap: 6px;
}
.scc-chrome-dots > span {
  width: 9px; height: 9px;
  border-radius: 999px;
  background: #C6D0E1;
}
.scc-chrome-url {
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--ss-primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: max-width 0.2s ease-out;
}
.scc-chrome-url i {
  font-size: 11px;
}
.scc-chrome-url [data-url-text] {
  font-variant-numeric: tabular-nums;
}

/* Scene frame — absolutely positioned scene wraps cross-fade */
.scc-scene-frame {
  position: relative;
  flex: 1;
  min-height: 460px;
}
.scc-scene-wrap {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  pointer-events: none;
}
.scc-scene-wrap.is-active {
  opacity: 1;
  pointer-events: auto;
}
.scc-scene {
  position: absolute; inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 20px 22px 22px;
  gap: 14px;
}

/* Shared "mono" treatment for in-mock secondary labels */
.scc-mono {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-shadow);
}
.scc-mono--accent { color: var(--ss-primary-blue); }

/* ============= SCENE 1 — Catalog (SKU rain) ============= */
.scc-catalog-head {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ss-light-gray);
}
.scc-catalog-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 6), 1fr);
  grid-template-rows: repeat(var(--rows, 5), 1fr);
  gap: 6px;
}
.scc-catalog-tile {
  background: var(--ss-pale-gray);
  border: 1px solid var(--ss-light-gray);
  border-radius: 3px;
  display: grid; place-items: center;
  padding: 6px 4px;
  opacity: 0.06;
  transform: translateY(-40px);
  transition: opacity 0.2s ease-out,
              transform 0.25s ease-out,
              border-color 0.2s ease-out,
              background 0.2s ease-out,
              color 0.2s ease-out;
  will-change: opacity, transform;
}
.scc-catalog-tile.is-landed {
  background: #fff;
  border-color: var(--ss-primary-blue);
  color: var(--ss-primary-blue);
}
.scc-catalog-code {
  font-family: var(--scc-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--ss-charcoal);
  font-weight: 600;
  white-space: nowrap;
}
.scc-catalog-tile.is-landed .scc-catalog-code { color: var(--ss-primary-blue); }
.scc-catalog-counter {
  display: flex; align-items: baseline; gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--ss-light-gray);
}
.scc-counter-num {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ss-dark-navy);
  font-variant-numeric: tabular-nums;
}

/* ============= SCENE 2 — Specs (callouts) ============= */
.scc-specs-head, .scc-specs-foot {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ss-light-gray);
}
.scc-specs-foot {
  border-bottom: none;
  border-top: 1px solid var(--ss-light-gray);
  padding-bottom: 0;
  padding-top: 10px;
}
.scc-specs-stage {
  position: relative;
  display: grid; place-items: center;
}
.scc-specs-plate {
  width: 180px; height: 120px;
  background: var(--ss-pale-gray);
  border: 1px solid var(--ss-primary-blue);
  border-radius: 5px;
  display: grid; place-items: center;
  padding: 16px;
  position: relative;
}
.scc-specs-plate-deck {
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
}
.scc-specs-plate-grade {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  color: var(--ss-dark-navy);
  letter-spacing: -0.02em;
}
.scc-specs-plate-form {
  font-family: var(--scc-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ss-primary-blue);
  font-weight: 600;
}
.scc-specs-plate-dim {
  position: absolute;
  bottom: -24px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--scc-mono);
  font-size: 10px;
  color: var(--ss-shadow);
  white-space: nowrap;
}
.scc-callout {
  position: absolute;
  display: grid; gap: 2px;
  font-family: var(--scc-mono);
  width: 130px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.scc-callout-label {
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-shadow);
}
.scc-callout-value {
  font-family: var(--scc-mono);
  font-size: 12px;
  color: var(--ss-dark-navy);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.scc-callout-line {
  position: absolute;
  height: 1px;
  background: var(--ss-primary-blue);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}
.scc-callout-dot {
  position: absolute;
  width: 5px; height: 5px;
  background: var(--ss-primary-blue);
  border-radius: 999px;
}
.scc-callout--tl { top: 8%; left: 4%; text-align: left; }
.scc-callout--tl .scc-callout-line { bottom: -10px; left: 100%; width: 80px; }
.scc-callout--tl .scc-callout-dot  { bottom: -12px; left: calc(100% + 80px); }
.scc-callout--tr { top: 8%; right: 4%; text-align: right; }
.scc-callout--tr .scc-callout-line { bottom: -10px; right: 100%; width: 80px; transform-origin: right center; }
.scc-callout--tr .scc-callout-dot  { bottom: -12px; right: calc(100% + 80px); }
.scc-callout--bl { bottom: 8%; left: 4%; text-align: left; }
.scc-callout--bl .scc-callout-line { top: -10px; left: 100%; width: 80px; }
.scc-callout--bl .scc-callout-dot  { top: -12px; left: calc(100% + 80px); }
.scc-callout--br { bottom: 8%; right: 4%; text-align: right; }
.scc-callout--br .scc-callout-line { top: -10px; right: 100%; width: 80px; transform-origin: right center; }
.scc-callout--br .scc-callout-dot  { top: -12px; right: calc(100% + 80px); }

/* ============= SCENE 3 — Pricing (slash + tier stamp) ============= */
.scc-pricing-head {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ss-light-gray);
}
.scc-pricing-stage {
  display: flex; flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 14px 0;
}
.scc-pricing-row {
  display: flex; align-items: baseline; gap: 16px;
}
.scc-pricing-row-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ss-shadow);
  width: 60px;
}
.scc-pricing-list-wrap {
  position: relative;
  display: inline-block;
}
.scc-pricing-list {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-smoke);
  font-variant-numeric: tabular-nums;
}
.scc-pricing-slash {
  position: absolute;
  top: 55%; left: -4px; right: -4px;
  height: 3px;
  background: var(--ss-error-red);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease-out;
}
.scc-pricing-tier {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--ss-pale-blue);
  border: 1px solid var(--ss-primary-blue);
  border-left-width: 3px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.scc-pricing-tier-pip {
  width: 10px; height: 10px;
  border-radius: 999px;
  background: var(--ss-primary-blue);
}
.scc-pricing-tier-body {
  display: flex; flex-direction: column;
  gap: 2px;
}
.scc-pricing-tier-label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ss-primary-blue);
}
.scc-pricing-tier-num {
  font-family: var(--font-sans);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ss-dark-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.scc-pricing-tier-stamp {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--ss-primary-blue);
  border: 1px solid var(--ss-primary-blue);
  padding: 5px 8px;
  border-radius: 3px;
  background: #fff;
}
.scc-pricing-savings {
  display: flex; align-items: baseline;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--ss-light-gray);
  opacity: 0;
  transition: opacity 0.2s ease-out;
}
.scc-pricing-savings-num {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ss-success-green);
  font-variant-numeric: tabular-nums;
}

/* ============= SCENE 4 — Order (cart hop) ============= */
.scc-order-head {
  display: flex; justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ss-light-gray);
}
.scc-order-rail {
  display: flex; gap: 6px;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 6px 0;
}
.scc-order-chip {
  display: inline-flex; align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--ss-pale-gray);
  border: 1px solid var(--ss-light-gray);
  border-radius: 4px;
  font-family: var(--scc-mono);
  font-size: 11px;
  color: var(--ss-charcoal);
  opacity: 1;
  transition: opacity 0.2s ease-out,
              transform 0.25s ease-out,
              border-color 0.2s ease-out;
}
.scc-order-chip-qty { color: var(--ss-primary-blue); font-weight: 700; }
.scc-order-chip.is-flying {
  border-color: var(--ss-primary-blue);
  background: var(--ss-light-blue);
}
.scc-order-bin {
  display: flex; align-items: stretch;
}
.scc-order-bin-frame {
  flex: 1;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid var(--ss-primary-blue);
  border-radius: 5px;
  position: relative;
}
.scc-order-bin-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  background: var(--ss-primary-blue);
  color: #fff;
  border-radius: 999px;
  font-size: 18px;
}
.scc-order-bin-body {
  display: flex; flex-direction: column;
  gap: 2px;
}
.scc-order-bin-total {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ss-dark-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.scc-order-bin-list {
  display: flex; flex-direction: column;
  gap: 2px;
  font-family: var(--scc-mono);
  font-size: 10px;
  color: var(--ss-shadow);
  border-left: 1px solid var(--ss-light-gray);
  padding-left: 14px;
}
.scc-order-bin-line {
  display: flex; justify-content: space-between;
  gap: 10px;
  animation: scc-bin-line-in 0.2s ease-out backwards;
}
@keyframes scc-bin-line-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .scc-runway {
    --scc-runway-vh: 3;
    --scc-sticky-top: 84px;
  }
  .stock-catalog-cinema {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
  }
  .scc-narrative-stack { min-height: 220px; }
  .scc-scene-frame { min-height: 420px; }
  .scc-callout { width: 110px; }
  .scc-callout--tl .scc-callout-line,
  .scc-callout--tr .scc-callout-line,
  .scc-callout--bl .scc-callout-line,
  .scc-callout--br .scc-callout-line { width: 50px; }
  .scc-callout--tl .scc-callout-dot { left: calc(100% + 50px); }
  .scc-callout--tr .scc-callout-dot { right: calc(100% + 50px); }
  .scc-callout--bl .scc-callout-dot { left: calc(100% + 50px); }
  .scc-callout--br .scc-callout-dot { right: calc(100% + 50px); }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .stock-catalog-cinema,
  .stock-catalog-cinema * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .scc-catalog-tile {
    opacity: 1 !important;
    transform: none !important;
    background: #fff !important;
    border-color: var(--ss-primary-blue) !important;
  }
  .scc-callout {
    opacity: 1 !important;
  }
  .scc-callout-line { transform: scaleX(1) !important; }
  .scc-pricing-slash { transform: scaleX(1) !important; }
  .scc-pricing-tier { opacity: 1 !important; }
  .scc-pricing-savings { opacity: 1 !important; }
}
