/* ==========================================================================
   SHARED CASE STUDY DEEP-DIVE DESIGN SYSTEM (Steps 3.1 – 3.5)
   Built on top of ../styles.css tokens, variable fonts & tactile studio language
   ========================================================================== */

:root {
  --case-accent: var(--c-orange);
  --case-accent-ink: #140604;
  --case-secondary: var(--c-yellow);
}

.case-theme--blue {
  --case-accent: #0838ed;
  --case-accent-ink: #faf5ea;
}

.case-theme--blue .case-kicker--outline {
  background: rgba(10, 14, 40, 0.35);
  border-color: rgba(250, 245, 234, 0.72);
  color: #faf5ea;
}

.case-theme--emerald {
  --case-accent: var(--c-emerald);
  --case-accent-ink: #061810;
}

.case-theme--emerald .case-kicker--outline {
  background: #e9f9f1;
  border-color: #061810;
  color: #061810;
}

.case-theme--purple {
  --case-accent: #68219a;
  --case-accent-ink: #faf5ea;
}

.case-theme--purple .case-kicker--outline {
  background: rgba(16, 6, 28, 0.38);
  border-color: rgba(250, 245, 234, 0.76);
  color: #faf5ea;
}

.case-theme--yellow {
  --case-accent: var(--c-yellow);
  --case-accent-ink: #160d04;
}

.case-theme--yellow .case-kicker--outline {
  background: rgba(250, 245, 234, 0.62);
  border-color: #160d04;
  color: #160d04;
}

.case-shell {
  width: calc(100% - var(--frame-gutter));
  max-width: var(--frame-max);
  margin: 14px auto 48px;
  background-color: var(--c-paper);
  background-image: radial-gradient(rgba(10, 8, 8, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  border: 2px solid var(--c-ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(20, 14, 6, 0.08);
}

/* Top Case Masthead */
.case-masthead {
  width: 100%;
  min-height: 64px;
  padding: 0 clamp(16px, 2vw, 30px);
  background: #faf5ea;
  border-bottom: 2px solid var(--c-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-back-group {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.case-masthead .masthead-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex-wrap: nowrap;
}

.case-masthead .nav-link {
  padding: 7px 10px;
  font-size: 13.5px;
  letter-spacing: 0.015em;
  gap: 5px;
}

.case-masthead .masthead-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.case-masthead .lang-seg {
  padding: 5px 9px;
  font-size: 12px;
}

.case-masthead .masthead-pdf-btn,
.case-masthead .cv-pill-btn {
  height: 36px;
  padding: 0 13px;
  font-size: 12.5px;
}

.case-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #ebe1cf;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 94, "wght" 800;
  font-stretch: 94%;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--c-ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.case-back-pill:hover {
  background: var(--c-ink);
  color: var(--c-yellow);
  transform: translateX(-2px);
}

.case-brand-mini {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 114, "wght" 900;
  font-stretch: 114%;
  font-weight: 900;
  font-size: 20px;
  color: var(--c-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Case Hero Split Stage */
.case-hero {
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  border-bottom: 2px solid var(--c-ink);
}
.case-hero > * {
  min-width: 0;
}

.case-hero-copy {
  background: var(--case-accent);
  color: var(--case-accent-ink);
  border-right: 2px solid var(--c-ink);
  padding: clamp(28px, 3.4vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}

.case-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  background: #faf5ea;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--c-ink);
}

.case-kicker--outline {
  background: rgba(250, 245, 234, 0.24);
  color: var(--case-accent-ink);
}

.case-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 112, "wght" 900;
  font-stretch: 112%;
  font-weight: 900;
  font-size: clamp(42px, 4.7vw, 68px);
  line-height: 0.91;
  letter-spacing: -0.026em;
  text-transform: uppercase;
  color: var(--case-accent-ink);
}

.case-lead {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(18px, 1.45vw, 21.5px);
  line-height: 1.38;
  letter-spacing: -0.012em;
  max-width: 48ch;
  color: var(--case-accent-ink);
  text-wrap: pretty;
}

.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 6px;
}

.case-holo-card {
  position: relative;
  min-width: 0;
  padding: 13px 14px;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  outline: 1.5px solid var(--c-ink);
  background: linear-gradient(132deg, #ccb2f8 0%, #ded2ff 30%, #a5dcfa 68%, #d2eeff 100%);
  box-shadow: 0 8px 18px rgba(14, 9, 20, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-align: center;
  overflow: hidden;
  color: #0a0812;
  transform: perspective(640px) translate3d(0, var(--sticker-lift, 0px), 0) rotate(var(--card-base-rot, 0deg)) rotateX(var(--sticker-rx, 0deg)) rotateY(var(--sticker-ry, 0deg)) scale(var(--sticker-scale, 1));
  transition:
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.case-holo-card:nth-child(1) {
  --card-base-rot: -1.5deg;
  background: linear-gradient(132deg, #ccb2f8 0%, #ded2ff 30%, #a5dcfa 68%, #d2eeff 100%);
}

.case-holo-card:nth-child(2) {
  --card-base-rot: 1.3deg;
  background: linear-gradient(124deg, #d0c4f2 0%, #b5def7 38%, #b3f2dc 74%, #e9c6eb 100%);
}

.case-holo-card:nth-child(3) {
  --card-base-rot: -1.6deg;
  background: linear-gradient(135deg, #9ed9fa 0%, #bfe8fb 36%, #dff0bf 68%, #f0c2e6 100%);
}

.case-holo-card:nth-child(4) {
  --card-base-rot: 1.4deg;
  background: linear-gradient(128deg, #d8bff9 0%, #bde2fb 42%, #ccf3df 76%, #f4c6e7 100%);
}

.case-holo-card:hover {
  --sticker-lift: -6px;
  --sticker-scale: 1.025;
  box-shadow: 0 13px 24px rgba(14, 9, 20, 0.26), inset 0 1px 2px rgba(255, 255, 255, 0.95);
}

.case-holo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: var(--holo-alpha, 0.34);
  background:
    radial-gradient(
      circle at var(--holo-x, 50%) var(--holo-y, 50%),
      rgba(255, 255, 255, 0.85) 0%,
      rgba(196, 128, 255, 0.56) 25%,
      rgba(88, 226, 255, 0.50) 48%,
      rgba(255, 140, 214, 0.46) 72%,
      transparent 96%
    ),
    linear-gradient(
      var(--holo-angle, 125deg),
      transparent 18%,
      rgba(255, 255, 255, 0.72) 47%,
      rgba(166, 110, 255, 0.44) 54%,
      transparent 82%
    );
  mix-blend-mode: overlay;
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-holo-card strong {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 860;
  font-stretch: 96%;
  font-weight: 860;
  font-size: clamp(17.5px, 1.48vw, 22px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #0a0812;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.case-holo-card span {
  position: relative;
  z-index: 2;
  font-family: var(--font-sans);
  font-weight: 680;
  font-size: 13px;
  line-height: 1.32;
  letter-spacing: 0.005em;
  color: #1f1930;
  text-wrap: balance;
}

/* Right Hero Stage — Embedded Motion Film Player + Interactive Console */
.case-hero-stage {
  background: #14131a;
  color: #faf5ea;
  padding: clamp(22px, 2.6vw, 34px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.case-video-card {
  background: #1d1c26;
  border: 2px solid #faf5ea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.case-video-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0d0c12;
}

.case-video-caption {
  padding: 10px 14px;
  background: #252331;
  border-top: 1.5px solid rgba(250, 245, 234, 0.18);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #e6e2f3;
}

/* Zoomable Real Interface Screenshots + Discrete Lightbox */
.screen-slot-viewport--image {
  position: relative;
  padding: 0;
  cursor: zoom-in;
  overflow: hidden;
}

.screen-slot-viewport--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.screen-slot-viewport--image:hover img,
.screen-slot-viewport--image:focus-visible img {
  transform: scale(1.025);
}

.screen-zoom-hint {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 16, 28, 0.82);
  border: 1px solid rgba(250, 245, 234, 0.45);
  color: #faf5ea;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
  opacity: 0.78;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.screen-slot-viewport--image:hover .screen-zoom-hint,
.screen-slot-viewport--image:focus-visible .screen-zoom-hint,
.creci-photo-viewport:hover .screen-zoom-hint,
.creci-photo-viewport:focus-visible .screen-zoom-hint {
  opacity: 1;
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-ink);
  transform: translateY(-2px);
}

.case-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: clamp(16px, 3vw, 40px);
  border: 0;
  background: rgba(10, 9, 16, 0.88);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}

.case-lightbox[open] {
  display: flex;
}

.case-lightbox-inner {
  position: relative;
  max-width: min(1240px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.case-lightbox-inner img {
  max-width: 100%;
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 14px;
  border: 2px solid #faf5ea;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  display: block;
}

.case-lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 16px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.case-lightbox-caption {
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: #faf5ea;
  text-align: center;
  max-width: 68ch;
}

.nle-console-window {
  background: #1d1c26;
  border: 2px solid #faf5ea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
}

.nle-console-bar {
  background: #282634;
  padding: 10px 14px;
  border-bottom: 1.5px solid rgba(250, 245, 234, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #e4e1f0;
}

.nle-dots {
  display: inline-flex;
  gap: 6px;
}

.nle-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}
.nle-dots i:nth-child(1) { background: #ff5f56; }
.nle-dots i:nth-child(2) { background: #ffbd2e; }
.nle-dots i:nth-child(3) { background: #27c93f; }

.nle-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 14px 4px;
}

.nle-mode-btn {
  padding: 9px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(250, 245, 234, 0.28);
  background: rgba(250, 245, 234, 0.06);
  color: #d9d5e8;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.nle-mode-btn.is-active {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-ink);
  font-weight: 700;
}

.nle-panel-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nle-panel-body[hidden] {
  display: none !important;
}

.nle-timeline-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  padding: 10px;
  border-radius: 9px;
  background: #121118;
  border: 1px solid rgba(250, 245, 234, 0.16);
}

.nle-lane {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.nle-lane-tag {
  color: #c9c4dc;
}

.nle-clip {
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nle-clip--v3 { background: #1d49e8; color: #ffffff; }
.nle-clip--v2 { background: #e8a80b; color: #0a0808; }
.nle-clip--v1 { background: #6b2ba0; color: #ffffff; }
.nle-clip--a1 { background: #0d694b; color: #ffffff; }

.nle-warnings-box {
  padding: 10px 12px;
  border-radius: 9px;
  background: #272214;
  border: 1px solid rgba(232, 168, 11, 0.55);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffe49c;
}

.nle-warnings-box span {
  color: #faf5ea;
  font-family: var(--font-sans);
  font-size: 13px;
}

.video-slot-note {
  padding: 11px 14px;
  border-radius: 10px;
  background: #201e29;
  border: 1.5px dashed rgba(250, 245, 234, 0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #dfd9ec;
}

/* Case Content Sections */
.case-section {
  padding: 64px clamp(24px, 3.4vw, 48px);
  border-bottom: 2px solid var(--c-ink);
}

.case-section--cream {
  background-color: var(--c-paper);
  background-image: radial-gradient(rgba(10, 8, 8, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--c-ink);
}

.case-section--yellow {
  background: var(--c-yellow);
  color: var(--c-ink);
}

.case-section--blue {
  background: #0838ed;
  color: #faf5ea;
}

.case-section--blue .section-header-row {
  border-bottom-color: rgba(250, 245, 234, 0.3);
}

.case-section--blue .section-lead {
  color: #e0e9ff;
}

.case-section--emerald {
  background: var(--c-emerald);
  color: #06150e;
}

.case-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1.5px solid currentColor;
}

/* Section 1: Problem vs 1-Click Collapse Grid */
.problem-vs-solution-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
}

.manual-steps-card,
.one-click-outcome-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.one-click-outcome-card {
  background: var(--c-yellow);
  justify-content: space-between;
}

.card-block-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 88, "wght" 860;
  font-stretch: 88%;
  font-weight: 860;
  font-size: 27px;
  line-height: 1;
  text-transform: uppercase;
}

.manual-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 12px;
  flex: 1;
}

.manual-checklist li {
  padding: 12px 14px;
  border-radius: 9px;
  background: #f0e5d1;
  border: 1.5px solid rgba(10, 8, 8, 0.22);
  font-family: var(--font-sans);
  font-weight: 580;
  font-size: 14.5px;
  line-height: 1.35;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manual-checklist li b {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #b5320a;
  flex-shrink: 0;
}

.manual-checklist--stack {
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 14px;
  flex: 1;
  align-content: space-between;
}

.manual-checklist--stack li {
  height: auto;
  padding: 14px 16px;
  align-items: flex-start;
  line-height: 1.44;
}

.manual-checklist--stack li b {
  margin-top: 2px;
}

#motion-ia .problem-vs-solution-grid {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch;
}

@media (max-width: 1120px) {
  #motion-ia .problem-vs-solution-grid {
    grid-template-columns: 1fr;
  }
}

.outcome-highlight-box {
  padding: 18px 20px;
  border-radius: 12px;
  background: #faf5ea;
  border: 2px solid var(--c-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.outcome-highlight-box strong {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92, "wght" 860;
  font-stretch: 92%;
  font-weight: 860;
  font-size: 22px;
  text-transform: uppercase;
}

.outcome-highlight-box p {
  font-size: 15.5px;
  line-height: 1.46;
}

.honest-status-note {
  padding: 12px 14px;
  border-radius: 10px;
  background: #f7efe0;
  border: 1.5px dashed var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: #241b12;
}

/* Section 2: 3-Stage Pipeline Architecture */
.pipeline-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.pipeline-stage-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 5px 6px 0 rgba(6, 10, 28, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.pipeline-stage-card--featured {
  background: var(--c-yellow);
}

.stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.stage-step-num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 900;
  font-stretch: 108%;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
}

.stage-stack-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #ebe1cf;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
}

.pipeline-stage-card--featured .stage-stack-tag {
  background: #faf5ea;
}

.stage-title {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 86, "wght" 860;
  font-stretch: 86%;
  font-weight: 860;
  font-size: 27px;
  line-height: 0.98;
  text-transform: uppercase;
  margin-top: 8px;
}

.stage-desc {
  font-size: 15.5px;
  line-height: 1.46;
  margin-top: 8px;
}

.stage-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 12px;
  border-top: 1.5px solid rgba(10, 8, 8, 0.16);
}

.stage-feature-list li {
  font-size: 14.5px;
  line-height: 1.38;
  padding-left: 16px;
  position: relative;
}

.stage-feature-list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 10px;
  color: var(--c-orange);
}

/* Section 3: Product Maturity + Anonymized Screen Slots */
.maturity-screens-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}

.screen-slot-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
}

.screen-slot-header {
  padding: 12px 18px;
  background: #191614;
  color: #faf5ea;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.screen-slot-header .craft-tape-badge {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.screen-slot-viewport {
  aspect-ratio: 16 / 10;
  background: #14131a;
  color: #faf5ea;
  padding: 18px;
  border-bottom: 2px solid var(--c-ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.mock-app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: #22202c;
  border: 1px solid rgba(250, 245, 234, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mock-progress-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.mock-progress-fill {
  display: block;
  width: 58%;
  height: 100%;
  background: #42e6a4;
}

.screen-slot-caption {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.44;
  color: #1f1913;
}

.maturity-4grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.maturity-mini-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 4px 5px 0 rgba(10, 8, 8, 0.88);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.maturity-mini-card h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 86, "wght" 840;
  font-stretch: 86%;
  font-weight: 840;
  font-size: 20px;
  line-height: 1.05;
  text-transform: uppercase;
}

.maturity-mini-card p {
  font-size: 14.5px;
  line-height: 1.44;
  color: #241d16;
}

/* Section 4: The 5 Complete Backstage Product Decisions */
.backstage-5list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.backstage-story-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 15px;
  padding: 24px 28px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: grid;
  grid-template-columns: 78px 260px 1fr;
  gap: 22px;
  align-items: center;
}

.story-num {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 108, "wght" 900;
  font-stretch: 108%;
  font-weight: 900;
  font-size: 38px;
  line-height: 1;
  color: var(--c-orange);
}

.story-heading-col h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 84, "wght" 860;
  font-stretch: 84%;
  font-weight: 860;
  font-size: 24px;
  line-height: 1.02;
  text-transform: uppercase;
}

.story-heading-col span {
  display: inline-block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: #ebe1cf;
  border: 1px solid var(--c-ink);
}

.story-body-col p {
  font-size: 16px;
  line-height: 1.5;
  color: #1c1610;
  max-width: 68ch;
  text-wrap: pretty;
}

/* Tech Credits & AI Transparency Strip */
.credits-strip {
  margin-top: 28px;
  padding: 18px 24px;
  border-radius: 14px;
  background: #171310;
  color: #faf5ea;
  border: 2px solid var(--c-ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14.5px;
}

.credits-strip strong {
  color: var(--c-yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Case 02 Real YouTube Episode & Timestamp Switcher + Frame Anatomy + Repertoire */
.episode-stage-card {
  background: #181722;
  border: 2px solid #faf5ea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
}

.episode-stage-card .video-embed-frame {
  border: 0;
  border-bottom: 2px solid #2b2938;
  border-radius: 0;
  box-shadow: none;
}

.episode-switcher-panel {
  padding: 14px 16px 16px;
  background: #22202f;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.episode-switcher-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.episode-switcher-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #faf5ea;
  font-weight: 700;
}

.episode-yt-ext {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: #ffd45e;
  text-decoration: none;
}

.episode-yt-ext:hover {
  text-decoration: underline;
}

.episode-tabs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.episode-tab-btn {
  appearance: none;
  text-align: left;
  background: #171622;
  color: #faf5ea;
  border: 1.5px solid #45425c;
  border-radius: 9px;
  padding: 9px 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.episode-tab-btn:hover {
  border-color: #ffd45e;
}

.episode-tab-btn.is-active {
  background: #ffd45e;
  color: #0a0808;
  border-color: #0a0808;
  box-shadow: 2px 3px 0 #0a0808;
}

.episode-tab-tc {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: #8fd2ff;
}

.episode-tab-btn.is-active .episode-tab-tc {
  color: #0a0808;
}

.episode-tab-name {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

/* 1920x1080 Chroma + Scrim Frame Anatomy Diagram */
.chroma-anatomy-box {
  background: #0f1329;
  color: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chroma-anatomy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d8e5ff;
}

.chroma-anatomy-bar {
  display: grid;
  grid-template-columns: 50% 16% 34%;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #faf5ea;
  min-height: 58px;
}

.chroma-zone {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
}

.chroma-zone--safe {
  background: #010c53;
  color: #f4f5f6;
  border-right: 1px dashed #8bb3ff;
}

.chroma-zone--feather {
  background: linear-gradient(90deg, #011676 0%, #007a34 100%);
  color: #faf5ea;
  align-items: center;
  text-align: center;
  padding: 6px 4px;
}

.chroma-zone--speaker {
  background: #007c2d;
  color: #ffffff;
  font-weight: 700;
}

.repertoire-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.rep-media-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.rep-media-card .video-embed-frame {
  border-radius: 10px;
}

@media (min-width: 981px) {
  .repertoire-2x2-grid {
    column-gap: 24px;
    row-gap: 0;
  }

  .rep-media-card {
    grid-row: span 3;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 16px;
    margin-bottom: 24px;
    justify-content: stretch;
  }

  .rep-media-card:nth-last-child(-n+2) {
    margin-bottom: 0;
  }

  .rep-media-card > .video-embed-frame {
    height: 100%;
    min-height: 280px;
    aspect-ratio: auto;
  }

  .rep-link-pills {
    align-self: start;
    align-content: flex-start;
  }

  .pipeline-3col {
    row-gap: 0;
  }

  .pipeline-stage-card {
    grid-row: span 2;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 18px;
    justify-content: stretch;
  }

  .pipeline-stage-card .rep-link-pills {
    padding-top: 12px;
    border-top: 1.5px solid rgba(10, 8, 8, 0.16);
    align-content: flex-start;
  }
}

.lite-video-facade {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
  background: #0d0d12;
  cursor: pointer;
  overflow: hidden;
}

.lite-video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lite-video-facade:hover img {
  transform: scale(1.03);
}

.lite-play-badge {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  box-shadow: 3px 4px 0 var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.lite-video-facade:hover .lite-play-badge {
  transform: translateY(-2px);
  background: #fff3c7;
}

.rep-link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rep-ext-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink);
  background: #efe5d2;
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.rep-ext-pill:hover {
  background: var(--c-yellow);
  transform: translateY(-1px);
}

.rep-switch-pill.is-active {
  background: var(--c-ink);
  color: var(--c-yellow);
  box-shadow: 2px 2px 0 rgba(10, 8, 8, 0.35);
}

.rep-switch-pill.is-active:hover {
  background: #1d1a24;
  color: #ffe066;
}

/* Case 02 Card D: 3 Embedded Vertical Reels (Almanaque SOS) */
.vertical-reels-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vertical-reel-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.vertical-reel-slot .native-video-stage {
  border-radius: 10px;
  border: 2px solid var(--c-ink);
}

.native-video-stage.has-yt-dock .yt-click-shield {
  z-index: 4;
}

.native-video-stage.has-yt-dock .studio-player-bar {
  z-index: 5;
}

.vertical-reel-slot .studio-player-bar {
  left: 6px;
  right: 6px;
  bottom: 6px;
  padding: 5px 7px;
  gap: 5px;
  border-radius: 9px;
}

.vertical-reel-slot .studio-ctl-btn {
  height: 24px;
  min-width: 24px;
  padding: 0 5px;
  font-size: 11px;
}

.vertical-reel-slot .studio-tc {
  display: none;
}

.vertical-reel-slot .yt-pause-orb {
  width: 44px;
  height: 44px;
}

.vertical-reel-slot .yt-pause-orb svg {
  width: 17px;
  height: 17px;
}

.case-video-modal-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #09080d;
}

.vertical-reel-slot video {
  width: 100%;
  aspect-ratio: 9 / 14.6;
  background: #0d0d12;
  object-fit: cover;
  display: block;
}

.native-video-stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0d0d12;
}

.native-video-cover {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 8, 12, 0.42) 100%);
  cursor: pointer;
  z-index: 3;
  transition: opacity 0.18s ease;
}

.native-video-stage.is-playing .native-video-cover {
  opacity: 0;
  pointer-events: none;
}

.lite-play-badge--compact {
  left: 10px;
  bottom: 10px;
  padding: 6px 11px;
  font-size: 11.5px;
}

.vertical-reel-cap {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-ink);
  text-align: center;
}

/* Case 03: Lumina Guided Interview & RAB + Esforço Simulator + Facecam + n8n Proposal */
.lumina-sim-card {
  width: 100%;
  background: #171b19;
  color: #faf5ea;
  border: 2px solid #faf5ea;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  display: flex;
  flex-direction: column;
}

.lumina-sim-header {
  padding: 12px 16px;
  background: #212825;
  border-bottom: 1.5px solid #35413b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
}

.lumina-sim-header strong {
  color: #6df2b4;
}

.lumina-sim-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lumina-chat-bubble {
  background: #232d28;
  border: 1px solid #3c5147;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  line-height: 1.42;
  color: #f4f7f5;
}

.lumina-controls-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lumina-field {
  background: #202623;
  border: 1px solid #38443e;
  border-radius: 9px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.lumina-field label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: #d7e6de;
}

.lumina-field input[type="range"] {
  width: 100%;
  accent-color: #00bf6f;
  cursor: pointer;
}

.lumina-effort-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lumina-effort-btn {
  appearance: none;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #3e4d46;
  background: #1e2421;
  color: #faf5ea;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.lumina-effort-btn.is-active {
  background: var(--c-yellow);
  color: #0a0808;
  border-color: #0a0808;
  box-shadow: 2px 3px 0 #0a0808;
}

.lumina-output-card {
  background: #101513;
  border: 1.5px solid #486356;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lumina-rab-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lumina-rab-value {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 102, "wght" 900;
  font-stretch: 102%;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.2;
  color: #6df2b4;
}

.lumina-rab-pill {
  padding: 3px 9px;
  border-radius: 999px;
  background: #27372f;
  color: #ffe28a;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.lumina-rab-reading {
  font-size: 13.5px;
  line-height: 1.42;
  color: #e6efe9;
}

.lumina-axes-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lumina-axis-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: #232d28;
  border: 1px solid #485c52;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.35;
  color: #d6ebe1;
}

/* Interactive Before <-> After Comparison Slider (Moldura Facecam & Chroma Key) */
.ba-slider-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ba-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.ba-toolbar-hint {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #2c241b;
}

.ba-variant-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ba-variant-btn {
  appearance: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--c-ink);
  background: #ebe1cf;
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.ba-variant-btn.is-active {
  background: var(--c-emerald);
  color: #061810;
  box-shadow: 2px 3px 0 var(--c-ink);
}

.ba-viewport {
  --ba-pos: 48%;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  border: 2px solid var(--c-ink);
  overflow: visible;
  background: #060b1d;
  user-select: none;
}

.ba-viewport > img {
  border-radius: 10px;
}

.ba-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.ba-before-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--ba-pos)) 0 0);
}

.ba-corner-tag {
  position: absolute;
  top: 14px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  border: 1.5px solid #0a0808;
  pointer-events: none;
}

.ba-corner-tag--before {
  left: 14px;
  background: #ffd45e;
  color: #0a0808;
}

.ba-corner-tag--after {
  right: 14px;
  background: var(--c-emerald);
  color: #061810;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos);
  width: 3px;
  background: #faf5ea;
  box-shadow: 0 0 0 1px #0a0808;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
}

.ba-knob {
  position: absolute;
  top: 50%;
  left: var(--ba-pos);
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: #0a0808;
  border: 2px solid #0a0808;
  box-shadow: 3px 4px 0 #0a0808;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  z-index: 4;
  pointer-events: none;
}

.ba-range-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

/* Full-width Workflow Screen Showcase */
.wide-screen-card {
  margin-bottom: 24px;
}

.wide-screen-card .screen-slot-viewport--image {
  aspect-ratio: 1440 / 640;
}

@media (max-width: 580px) {
  .vertical-reels-trio {
    grid-template-columns: unset;
    grid-auto-flow: column;
    grid-auto-columns: 72%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .vertical-reel-slot {
    scroll-snap-align: start;
  }

  .lumina-controls-grid,
  .lumina-effort-row {
    grid-template-columns: 1fr;
  }

  .ba-slider-card {
    padding: 16px 22px;
  }

  .ba-knob {
    width: 38px;
    height: 38px;
    font-size: 12.5px;
  }

  .ba-corner-tag {
    top: 8px;
    padding: 3px 8px;
  }

  .wide-screen-card .screen-slot-viewport--image {
    aspect-ratio: auto;
  }
}

.flagship-video-split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: stretch;
}

.flagship-video-box {
  background: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.flagship-notes-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 1120px) {
  .flagship-video-split,
  .repertoire-2x2-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .episode-tabs-grid,
  .chroma-anatomy-bar {
    grid-template-columns: 1fr;
  }

  .chroma-zone--safe {
    border-right: 0;
    border-bottom: 1px dashed #8bb3ff;
  }
}

/* Next Case & Contact Footer Hub */
.case-next-footer {
  padding: 52px clamp(24px, 3.4vw, 48px);
  background: var(--c-paper);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.case-pagination-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 20px;
  align-items: stretch;
}

.prev-case-banner,
.next-case-banner {
  border: 2px solid var(--c-ink);
  border-radius: 18px;
  padding: 26px 30px;
  box-shadow: 6px 7px 0 var(--c-ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.prev-case-banner {
  background: #faf5ea;
  color: var(--c-ink);
  padding: 26px 26px;
}

.next-case-banner {
  background: #0838ed;
  color: #faf5ea;
}

.prev-case-banner:hover,
.next-case-banner:hover {
  transform: translate3d(-3px, -3px, 0);
  box-shadow: 9px 10px 0 var(--c-ink);
}

.prev-case-banner > div > span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: #4b4338;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.prev-case-banner h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92, "wght" 880;
  font-stretch: 92%;
  font-weight: 880;
  font-size: clamp(20px, 2.05vw, 26px);
  line-height: 1.05;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--c-ink);
}

.prev-case-banner .dossier-open-btn {
  background: #ebe1cf;
  color: #0e0e10;
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-sans);
  font-weight: 720;
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.prev-case-banner:hover .dossier-open-btn {
  background: var(--c-ink);
  color: var(--c-yellow);
  transform: translate3d(-1px, -1px, 0);
}

.next-case-banner > div > span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #ffd45e;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.next-case-banner .dossier-open-btn {
  background: #faf5ea;
  color: #0e0e10;
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 2px 0 var(--c-ink);
  font-family: var(--font-sans);
  font-weight: 720;
  font-size: 14.5px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.next-case-banner:hover .dossier-open-btn {
  background: var(--c-ink);
  color: var(--c-yellow);
  transform: translate3d(-1px, -1px, 0);
}

.next-case-banner--emerald {
  background: var(--c-emerald);
  color: #06150e;
}

.next-case-banner--emerald > div > span {
  color: #06150e;
}

.next-case-banner--purple {
  background: var(--c-purple);
  color: #faf5ea;
}

.next-case-banner--purple > div > span {
  color: #ffd45e;
}

.next-case-banner--yellow:hover .dossier-open-btn,
.next-case-banner--orange:hover .dossier-open-btn {
  background: #faf5ea !important;
  color: #0e0e10 !important;
}

.next-case-banner h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 92, "wght" 880;
  font-stretch: 92%;
  font-weight: 880;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.02;
  text-transform: uppercase;
  margin-top: 6px;
}

/* Responsive Rules for Case Study Pages */
@media (max-width: 1220px) {
  .case-masthead {
    flex-wrap: wrap;
    padding: 12px 20px;
    gap: 10px 14px;
  }

  .case-masthead .masthead-nav {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px 8px;
    padding-top: 9px;
    border-top: 1.5px solid rgba(10, 8, 8, 0.14);
  }
}

@media (max-width: 1120px) {
  .case-hero {
    grid-template-columns: 1fr;
  }

  .case-hero-copy {
    border-right: 0;
    border-bottom: 2px solid var(--c-ink);
  }

  .case-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .problem-vs-solution-grid,
  .pipeline-3col,
  .maturity-screens-grid {
    grid-template-columns: 1fr;
  }

  .maturity-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .backstage-story-card {
    grid-template-columns: 64px 1fr;
  }

  .story-body-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .manual-checklist,
  .case-pagination-grid {
    grid-template-columns: 1fr;
  }

  .case-pagination-grid .next-case-banner {
    order: 1;
  }

  .case-pagination-grid .prev-case-banner {
    order: 2;
  }
}

@media (max-width: 680px) {
  .case-brand-mini {
    display: none;
  }
}

@media (max-width: 580px) {
  .case-shell {
    margin: 8px auto 24px;
    border-radius: 14px;
  }

  .case-masthead {
    padding: 10px 12px;
  }

  .case-masthead .masthead-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 6px;
  }

  .case-masthead .nav-link {
    font-size: 12px;
    padding: 5px 8px;
  }

  .case-brand-mini {
    display: none;
  }

  .case-back-pill {
    padding: 6px 11px;
    font-size: 11.5px;
  }

  .case-hero-copy,
  .case-hero-stage,
  .case-section,
  .case-next-footer {
    padding: 34px 16px;
  }

  .case-title {
    font-variation-settings: "wdth" 92, "wght" 900;
    font-stretch: 92%;
    font-size: clamp(26px, 7.6vw, 34px);
  }

  .video-slot-note,
  .screen-slot-header,
  .mock-app-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .screen-slot-viewport {
    aspect-ratio: auto;
  }

  .case-metrics-grid,
  .maturity-4grid {
    grid-template-columns: 1fr;
  }

  .nle-mode-tabs {
    grid-template-columns: 1fr;
  }

  .backstage-story-card {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 18px 16px;
  }

  .next-case-banner {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   CASE 04 — PÃO COM POP (Live Scrollable YouTube & Mobile Instagram Apps)
   ========================================================================== */

.case-section--purple {
  background: #68219a;
  color: #faf5ea;
}

.case-section--purple .section-lead {
  color: #f3e9fc;
}

.case-section--purple .case-eyebrow {
  background: var(--c-yellow);
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.pop-social-console {
  width: 100%;
  background: #14111d;
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 6px 7px 0 var(--c-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pop-social-topbar {
  padding: 12px 16px;
  background: #1e192b;
  border-bottom: 1.5px solid rgba(250, 245, 234, 0.14);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pop-social-tabs {
  display: inline-flex;
  background: #0d0b14;
  padding: 4px;
  border-radius: 999px;
  border: 1.5px solid rgba(250, 245, 234, 0.18);
  gap: 4px;
}

.pop-social-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: #d8d0e5;
  font-family: var(--font-display);
  font-variation-settings: "wdth" 94, "wght" 800;
  font-stretch: 94%;
  font-weight: 800;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.015em;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.pop-phone-browser-bar {
  background: #080d22;
  padding: 26px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: center;
  flex-shrink: 0;
}

.pop-phone-url-pill {
  width: 100%;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.32;
  color: #f4eee0;
  text-align: center;
}

.pop-phone-iframe {
  width: 100%;
  flex: 1;
  border: 0;
  display: block;
  background: #0b1430;
}

.pop-social-tab.is-active {
  background: var(--c-yellow);
  color: var(--c-ink);
}

.pop-scroll-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  color: #f3bf38;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(243, 191, 56, 0.12);
  border: 1px solid rgba(243, 191, 56, 0.35);
}

.pop-social-stage {
  padding: 18px 18px 16px;
  background:
    radial-gradient(circle at 50% 18%, rgba(168, 85, 247, 0.2), transparent 64%),
    #14111d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 556px;
}

.pop-social-pane {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.pop-social-pane[hidden] {
  display: none !important;
}

/* Tab 1 (Default): Live Scrollable YouTube Channel Window */
.pop-yt-window {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid rgba(250, 245, 234, 0.22);
  background: #0f0f0f;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

.pop-yt-window-bar {
  min-height: 30px;
  padding: 8px 12px;
  background: #1f1f23;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pop-yt-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.pop-yt-dot:nth-child(1) { background: #ff5f56; }
.pop-yt-dot:nth-child(2) { background: #ffbd2e; }
.pop-yt-dot:nth-child(3) { background: #27c93f; }

.pop-yt-url {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  color: #d6d6e0;
}

.pop-yt-scroll {
  max-height: 456px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #f1f1f1;
  scrollbar-width: thin;
  scrollbar-color: #4b4b57 #16161a;
}

.pop-yt-banner {
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.pop-yt-header,
.pop-yt-sec-label,
.pop-yt-vid-grid,
.pop-yt-shorts-row {
  flex-shrink: 0;
}

.next-case-banner--yellow {
  background: var(--c-yellow) !important;
  color: var(--c-ink) !important;
}

.next-case-banner--yellow div > span {
  color: #241803 !important;
}

.next-case-banner--yellow .dossier-open-btn {
  background: var(--c-ink) !important;
  color: #faf5ea !important;
  border-color: var(--c-ink) !important;
}

.pop-yt-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.pop-yt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pop-yt-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.pop-yt-meta {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pop-yt-meta strong {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.32;
  color: #ffffff;
}

.pop-yt-meta span {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.36;
  color: #b5b5be;
}

.pop-yt-sub-pill {
  padding: 6px 13px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #0f0f0f;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
  flex-shrink: 0;
}

.pop-yt-sec-label {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 820;
  font-stretch: 96%;
  font-weight: 820;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #e4e4ec;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.pop-yt-vid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pop-yt-vid-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: #f1f1f1;
  group: card;
}

.pop-yt-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #1c1c21;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pop-yt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.pop-yt-vid-card:hover .pop-yt-thumb img {
  transform: scale(1.03);
}

.pop-yt-vid-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.35;
  color: #f5f5f7;
}

.pop-yt-shorts-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pop-yt-short-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: #e9e9f0;
}

.pop-yt-short-thumb {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: #1c1c21;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pop-yt-short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pop-yt-short-card span {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.32;
  color: #d8d8e2;
}

/* Tab 2: Tactile iPhone Frame with LIVE Scrollable Native Instagram App (True 3:4 Grid!) */
.pop-phone-mockup {
  position: relative;
  width: min(100%, 318px);
  padding: 11px;
  border-radius: 40px;
  background: linear-gradient(145deg, #2d2a37 0%, #14121a 55%, #252230 100%);
  border: 2px solid #484359;
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.55),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
}

.pop-phone-mockup::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: #040406;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.pop-phone-screen {
  width: 100%;
  height: 470px;
  border-radius: 30px;
  overflow: hidden;
  background: #0c1014;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  color: #f5f5f5;
  font-family: var(--font-sans);
}

.ig-app-sticky {
  background: #0c1014;
  padding: 8px 16px 6px;
  border-bottom: 1px solid #1b2026;
  flex-shrink: 0;
}

.ig-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.32;
  margin-bottom: 6px;
}

.ig-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.32;
}

.ig-user-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ig-scroll-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #383e47 #0c1014;
}

.ig-prof-head {
  padding: 10px 14px 8px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.ig-avatar-ring {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
  flex-shrink: 0;
}

.ig-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0c1014;
  display: block;
}

.ig-stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ig-real-name {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.32;
}

.ig-real-name small {
  font-size: 11px;
  font-weight: 500;
  color: #a6adb5;
  margin-left: 4px;
}

.ig-stats-row {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.ig-stat {
  display: flex;
  flex-direction: column;
  line-height: 1.32;
}

.ig-stat b {
  font-size: 13px;
  color: #ffffff;
}

.ig-stat span {
  font-size: 11px;
  color: #cfd4da;
}

.ig-bio-box {
  padding: 0 14px 10px;
  font-size: 11.5px;
  line-height: 1.38;
  color: #f3f4f6;
}

.ig-bio-role {
  color: #9ea6b0;
  margin-bottom: 2px;
}

.ig-bio-url {
  color: #70b5f9;
  font-weight: 700;
  margin-top: 3px;
}

.ig-btn-bar {
  padding: 0 14px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.ig-act-btn {
  height: 29px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
  text-decoration: none;
}

.ig-act-btn--follow { background: #0068c9; color: #ffffff; }
.ig-act-btn--msg { background: #26292e; color: #f5f5f5; }

.ig-hl-row {
  padding: 0 14px 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ig-hl-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  line-height: 1.32;
  color: #e2e5e9;
}

.ig-hl-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid #363c45;
  padding: 2.5px;
}

.ig-hl-circle img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.ig-grid-tabs {
  height: 34px;
  border-top: 1px solid #1e2329;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  color: #828992;
}

.ig-grid-tabs span:first-child {
  color: #ffffff;
  border-bottom: 2px solid #ffffff;
  width: 48px;
  height: 100%;
  display: grid;
  place-items: center;
}

/* Authentic 3-column 3:4 Portrait Instagram Grid (Zero Squish!) */
.ig-posts-3x3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5px;
  background: #0c1014;
}

.ig-post-cell {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #171b21;
}

.ig-post-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.ig-post-cell:hover img {
  transform: scale(1.04);
}

.pop-social-caption-bar {
  width: 100%;
  padding-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pop-social-caption-bar span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  color: #ded6eb;
}

.pop-social-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 850;
  font-stretch: 96%;
  font-weight: 850;
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.15s ease, background 0.15s ease;
}

.pop-social-cta:hover {
  background: #faf5ea;
  transform: translateY(-1px);
}

/* Case 04 Featured Video + Episode Links Layout */
.pop-channel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.pop-video-card,
.pop-craft-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 5px 6px 0 var(--c-ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pop-video-body {
  padding: 18px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pop-video-body h3,
.pop-craft-card h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 94, "wght" 880;
  font-stretch: 94%;
  font-weight: 880;
  font-size: 22px;
  line-height: 1.32;
  color: var(--c-ink);
}

.pop-video-body p,
.pop-craft-card p {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.5;
  color: #26211d;
}

.pop-craft-card {
  padding: 24px 24px 22px;
  justify-content: space-between;
  gap: 16px;
}

.pop-shorts-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pop-ep-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ede2ce;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--c-ink);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.pop-ep-pill:hover {
  background: #68219a;
  color: #faf5ea;
  transform: translateY(-1px);
}

/* Academic Easter Egg File Card */
.pop-easter-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 5px 6px 0 var(--c-ink);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 26px;
  align-items: center;
}

.pop-easter-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pop-easter-copy h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 900;
  font-stretch: 96%;
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 27px);
  line-height: 1.32;
  color: var(--c-ink);
}

.pop-easter-copy p {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.52;
  color: #241f1b;
}

.pop-fapesp-stamp {
  background: #191324;
  color: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pop-fapesp-stamp .stamp-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #f3bf38;
}

.pop-fapesp-stamp strong {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 98, "wght" 860;
  font-stretch: 98%;
  font-weight: 860;
  font-size: 18px;
  line-height: 1.35;
  color: #faf5ea;
}

.pop-fapesp-stamp span {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.45;
  color: #d7cde8;
}

@media (max-width: 960px) {
  .pop-channel-grid,
  .pop-easter-card {
    grid-template-columns: 1fr;
  }

  .pop-social-stage {
    min-height: auto;
  }
}

@media (max-width: 580px) {
  .pop-yt-vid-grid {
    grid-template-columns: 1fr;
  }

  .pop-yt-shorts-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   CASE 05 — TV CRECI 360º: Broadcast Multiviewer, Chroma Key, Stories & Dica
   ========================================================================== */

.creci-multiview-card {
  width: 100%;
  background: #141318;
  color: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 5px 6px 0 rgba(10, 8, 8, 0.92);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.creci-mv-topbar {
  padding: 10px 14px;
  background: #1d1b24;
  border-bottom: 1.5px solid #302d3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.creci-tally-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #2b1215;
  border: 1px solid #ff5a5f;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
  color: #ff9a9d;
}

.creci-tally-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b42;
  border: 1px solid rgba(10, 8, 8, 0.7);
}

.creci-mv-chan-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  color: #d5d0e2;
}

.creci-mv-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a090d;
  overflow: hidden;
}

.creci-mv-screen > iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.creci-mv-info {
  padding: 12px 14px 10px;
  border-top: 1.5px solid #2b2835;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.creci-mv-meta {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.creci-mv-meta strong {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  color: #faf5ea;
}

.creci-mv-meta span {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.4;
  color: #ccc7da;
}

.creci-mv-yt-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-yellow);
  color: #160d04;
  border: 1.5px solid #160d04;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.creci-mv-yt-btn:hover {
  background: #faf5ea;
  transform: translateY(-1px);
}

.creci-pgm-grid {
  padding: 0 14px 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.creci-pgm-btn {
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  background: #1f1d27;
  border: 1.5px solid #353142;
  color: #e6e2f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.creci-pgm-btn:hover {
  background: #282534;
  border-color: #6b6482;
}

.creci-pgm-btn.is-active {
  background: #f4c330;
  border-color: #faf5ea;
  color: #160d04;
}

.creci-pgm-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.32;
  opacity: 0.86;
}

.creci-pgm-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.32;
}

/* Tactile Photo Strips (Zoomable via Lightbox) */
.creci-photo-strip-4 {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.creci-photo-strip-3 {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.creci-photo-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 rgba(10, 8, 8, 0.88);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.creci-photo-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #16151a;
  border-bottom: 1.5px solid var(--c-ink);
  cursor: zoom-in;
}

.creci-photo-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.creci-photo-viewport:hover img {
  transform: scale(1.03);
}

.creci-photo-body {
  padding: 11px 13px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.creci-photo-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  color: #4b4338;
  text-transform: uppercase;
}

.creci-photo-caption {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--c-ink);
}

.ba-program-note {
  margin-top: 0;
  padding: 12px 15px;
  border-radius: 10px;
  background: #ede2ce;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.45;
  color: #1b1713;
}

.creci-equal-2col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.case-theme--yellow .pop-ep-pill:hover {
  background: var(--c-ink);
  color: var(--c-yellow);
}

.next-case-banner--orange {
  background: var(--c-orange) !important;
  color: #140604 !important;
}

.next-case-banner--orange div > span {
  color: #0a0808 !important;
}

.next-case-banner--orange .dossier-open-btn {
  background: var(--c-ink) !important;
  color: #faf5ea !important;
  border-color: var(--c-ink) !important;
}

/* Vertical Stories ("rec" Highlight) 4-Column Native Video Grid */
.creci-stories-4grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.creci-story-card {
  background: #141318;
  color: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 16px;
  box-shadow: 4px 5px 0 rgba(10, 8, 8, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.creci-story-head {
  padding: 9px 12px;
  background: #1e1c26;
  border-bottom: 1px solid #322f3e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.creci-story-rec {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.32;
  color: #ff8b8e;
}

.creci-story-loc {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.32;
  color: #d6d1e3;
}

.creci-story-player {
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #09080c;
}

.creci-story-player video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.creci-story-foot {
  padding: 11px 13px 13px;
  border-top: 1px solid #2b2836;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.42;
  color: #efeae0;
}

/* Dica de Lazer / Exposição / Passeio 4x2 Curated Episode Grid */
.creci-dica-role-banner {
  margin-bottom: 30px;
  padding: 22px 26px;
  background: #faf5ea;
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 rgba(10, 8, 8, 0.88);
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: center;
}

.creci-dica-role-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.creci-dica-role-copy h3 {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 96, "wght" 880;
  font-stretch: 96%;
  font-weight: 880;
  font-size: 21px;
  line-height: 1.32;
  color: var(--c-ink);
}

.creci-dica-role-copy p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.48;
  color: #241f1b;
}

.creci-dica-credit-note {
  padding: 13px 15px;
  border-radius: 11px;
  background: #efe4cf;
  border: 1.5px solid var(--c-ink);
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.45;
  color: #1c1712;
}

.creci-dica-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 24px;
}

.creci-dica-card {
  background: #faf5ea;
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  border-radius: 14px;
  box-shadow: 4px 5px 0 rgba(10, 8, 8, 0.88);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.creci-dica-card:hover {
  transform: translate3d(-2px, -2px, 0);
  box-shadow: 6px 7px 0 var(--c-ink);
}

.creci-dica-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #17151c;
  border-bottom: 1.5px solid var(--c-ink);
}

.creci-dica-thumb::after {
  content: "▶";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 3px 0 rgba(10, 8, 8, 0.9);
  display: grid;
  place-items: center;
  font-size: 13px;
  padding-left: 2px;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.16s ease;
}

.creci-dica-card:hover .creci-dica-thumb::after {
  transform: scale(1.12) translateY(-2px);
  background: #ffe066;
}

.creci-dica-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.22s ease;
}

.creci-dica-card:hover .creci-dica-thumb img {
  transform: scale(1.04);
}

.creci-dica-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}

.creci-dica-venue {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
  color: #53483b;
  text-transform: uppercase;
}

.creci-dica-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.36;
  color: var(--c-ink);
}

.creci-dica-cta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.35;
  font-weight: 500;
  color: #0838ed;
}

.creci-extra-pills {
  margin-top: 26px;
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.creci-extra-lbl {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.4;
  color: #3f372d;
  margin-right: 4px;
}

@media (max-width: 1120px) {
  .creci-equal-2col {
    grid-template-columns: 1fr;
  }

  .creci-photo-strip-4,
  .creci-stories-4grid,
  .creci-dica-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .creci-dica-role-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .creci-photo-strip-3,
  .creci-pgm-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .creci-photo-strip-4,
  .creci-dica-grid {
    grid-template-columns: 1fr;
  }

  .creci-stories-4grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* Global Case Polish (Step 3.6): Anchor offset, Video Cover hover, Floating Back-to-Top */
section[id],
article[id],
footer[id] {
  scroll-margin-top: 24px;
}

.creci-story-player .native-video-stage {
  height: 100%;
}

.native-video-cover:hover .lite-play-badge {
  transform: translateY(-2px);
  background: #fff3c7;
}

.native-video-cover--orb {
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(10, 8, 12, 0.14) 0%, rgba(10, 8, 12, 0.34) 100%);
}

.demo-play-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--c-yellow);
  border: 2.5px solid var(--c-ink);
  box-shadow: 3px 4px 0 var(--c-ink);
  display: grid;
  place-items: center;
  transition:
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.demo-play-orb svg {
  width: 20px;
  height: 20px;
  fill: var(--c-ink);
  margin-left: 3px;
  display: block;
}

.native-video-cover--orb:hover .demo-play-orb {
  transform: translate3d(0, -3px, 0) scale(1.08);
  background: #ffe066;
  box-shadow: 4px 6px 0 var(--c-ink);
}

.native-video-stage--silent video {
  cursor: pointer;
}

.flagship-video-box {
  justify-content: center;
}

.back-to-top-fab {
  position: fixed;
  right: max(18px, calc((100vw - 1400px) / 2 - 58px));
  bottom: clamp(18px, 2.2vw, 28px);
  z-index: 95;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  box-shadow: 3px 4px 0 var(--c-ink);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.9);
  transition:
    opacity 0.22s ease,
    visibility 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.16s ease,
    box-shadow 0.16s ease;
}

.back-to-top-fab.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.back-to-top-fab:hover {
  background: #faf5ea;
  transform: translate3d(0, -4px, 0) scale(1.05);
  box-shadow: 4px 6px 0 var(--c-ink);
}

.back-to-top-fab:active {
  transform: translate3d(1px, 1px, 0) scale(0.97);
  box-shadow: 2px 2px 0 var(--c-ink);
}

/* In-Site Studio Video Modal Popup (Dica de Lazer, Vimeo Openers & Extra Episodes) */
dialog.case-video-modal {
  margin: auto;
  padding: 0;
  width: min(94vw, 960px);
  max-width: 960px;
  border: 2px solid var(--c-ink);
  border-radius: 18px;
  background: #141318;
  color: #faf5ea;
  box-shadow: 0 28px 70px rgba(6, 4, 12, 0.75), 6px 8px 0 rgba(10, 8, 8, 0.92);
  overflow: hidden;
}

dialog.case-video-modal::backdrop {
  background: rgba(10, 8, 14, 0.82);
  backdrop-filter: blur(4px);
}

dialog.case-video-modal.case-video-modal--vertical {
  width: min(90vw, 416px);
  max-width: 416px;
}

dialog.case-video-modal.case-video-modal--vertical .creci-tally-pill {
  display: none;
}

.case-video-modal-inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.case-video-modal-head {
  padding: 10px 14px;
  background: #1d1b24;
  border-bottom: 1.5px solid #302d3a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.case-video-modal-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-video-modal-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  color: #faf5ea;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.case-video-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.case-video-modal-ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(250, 245, 234, 0.1);
  border: 1px solid rgba(250, 245, 234, 0.24);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.2;
  color: #e6e1f2;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.case-video-modal-ext:hover {
  background: #faf5ea;
  color: #141318;
}

.case-video-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--c-yellow);
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
  box-shadow: 2px 2px 0 rgba(10, 8, 8, 0.9);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.case-video-modal-close:hover {
  background: #faf5ea;
  transform: translateY(-1px);
}

.case-video-modal-stage {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #09080d;
}

dialog.case-video-modal.case-video-modal--vertical .case-video-modal-stage,
dialog.case-video-modal.case-video-modal--vertical .case-video-modal-stage.has-yt-dock {
  aspect-ratio: 9 / 16 !important;
  max-height: 76vh;
}

@media (max-width: 580px) {
  .case-video-modal-head {
    padding: 9px 11px;
  }
  .case-video-modal-head .creci-tally-pill {
    display: none;
  }
  .case-video-modal-title {
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .case-shell .craft-tape-badge {
    display: inline-block;
    white-space: normal;
    max-width: 100%;
    border-radius: 12px;
    line-height: 1.32;
  }
}

@media (min-width: 1121px) {
  #lideranca .problem-vs-solution-grid {
    grid-template-columns: 1.22fr 0.78fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-holo-card,
  .back-to-top-fab {
    transition: opacity 0.15s ease, visibility 0.15s ease;
  }
  .case-holo-card:hover {
    --sticker-lift: 0px;
    --sticker-scale: 1;
  }
}

/* Etiquetas ANTES/DEPOIS do comparador: cada uma fica na sua metade.
   Em tela estreita (e no inglês, mais longo) elas se sobrepunham; agora quebram em 2 linhas. */
.ba-corner-tag {
  max-width: calc(50% - 22px);
  white-space: normal;
  overflow-wrap: anywhere;
}

@media (max-width: 520px) {
  .ba-corner-tag {
    font-size: 10.5px;
    letter-spacing: -0.02em;
  }
}

/* Etiqueta coberta pela divisória do comparador: some. */
.ba-corner-tag {
  transition: opacity 0.18s ease;
}

.ba-corner-tag.is-coberta {
  opacity: 0;
}
