/* ═══════════════════════════════════════
   CASE STUDY — Shared Components
   Used by all case study pages
═══════════════════════════════════════ */


/* ═══════════════════════════════════════
   BASE DEFAULTS — All Case Studies
═══════════════════════════════════════ */

.hero-title em { color: var(--accent); }
.panel-label::before { width: 30px; }

/* Video overlay — default neutral tint (override per page for brand colours) */
.video-play-overlay { background: rgba(10,10,10,0.25); }
.video-wrapper:hover .video-play-overlay { background: rgba(10,10,10,0.1); }

/* Brand overlay — KPMG blue */
.video-play-overlay--kpmg { background: rgba(44,86,232,0.25); }
.video-wrapper:hover .video-play-overlay--kpmg,
.video-grid-item:hover .video-play-overlay--kpmg { background: rgba(44,86,232,0.1); }

/* Brand overlay — Barclays teal */
.video-play-overlay--barclays { background: rgba(0,174,239,0.2); }
.video-wrapper:hover .video-play-overlay--barclays,
.video-grid-item:hover .video-play-overlay--barclays { background: rgba(0,174,239,0.08); }

/* Brand overlay — Accent pink */
.video-play-overlay--accent { background: rgba(255,76,116,0.15); }
.video-wrapper:hover .video-play-overlay--accent,
.video-grid-item:hover .video-play-overlay--accent { background: rgba(255,76,116,0.08); }

/* Pullquote cite — block display with spacing */
.pullquote-text cite {
  display: block;
  margin-top: 2.5rem;
}


/* ═══════════════════════════════════════
   VIDEO GRID — LABELS & SYNOPSIS
   Used by pages with season trailers / multi-video grids
═══════════════════════════════════════ */
.video-grid-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.5rem;
  z-index: 3;
  font-family: var(--body);
  font-size: var(--eyebrow-size);
  font-weight: var(--eyebrow-weight);
  letter-spacing: var(--eyebrow-spacing);
  text-transform: uppercase;
  color: var(--text-secondary);
}

.video-grid-synopsis {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(247,245,242,0.5);
  margin-top: 1.2rem;
  padding-left: 1.5rem;
  max-width: 520px;
}

.video-grid-synopsis strong {
  font-weight: 300;
  color: var(--accent);
}

.videos-grid-label-header {
  max-width: 1400px;
  margin: 0 auto 2rem;
}


/* ═══════════════════════════════════════
   ASSETS / IMPACT — SPLIT GRID
═══════════════════════════════════════ */
.assets-impact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
}

.assets-panel {
  padding: 6rem var(--section-pad);
  background: var(--paper);
  color: var(--ink);
  position: relative;
}

.impact-panel {
  padding: 6rem var(--section-pad);
  background: var(--deep);
  color: var(--paper);
  position: relative;
}

.asset-item {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(10,10,10,0.06);
}

.asset-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.asset-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 400;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 0.8rem;
}

.asset-desc {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--muted);
  max-width: 420px;
}

.impact-text {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(247,245,242,0.6);
}

.impact-text p + p { margin-top: 1.5rem; }


/* ═══════════════════════════════════════
   IMPACT STATS — INLINE (within split)
═══════════════════════════════════════ */
.impact-stats-inline {
  margin-top: var(--space-lg);
}

.impact-stat-inline {
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.impact-stat-inline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.impact-stat-number {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 0.6rem;
  line-height: 1;
}
.impact-stat-number--compact { font-size: clamp(2.4rem, 4vw, 3.2rem); }
.impact-stat-number--text { font-size: clamp(1.4rem, 2.5vw, 1.8rem); letter-spacing: -0.01em; }

.impact-stat-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(247,245,242,0.55);
  max-width: 380px;
}


/* ═══════════════════════════════════════
   VISUAL STRIP — IMAGE CAROUSEL
═══════════════════════════════════════ */
.visual-strip {
  position: relative;
  overflow: hidden;
  cursor: grab;
}

.visual-strip.is-dragging {
  cursor: grabbing;
  -webkit-user-select: none;
  user-select: none;
}

.visual-strip-inner {
  display: flex;
  /* JS takes over animation for interactive strips; fallback for non-JS */
  animation: stripScroll 30s linear infinite;
}

.visual-strip figure {
  margin: 0;
  flex-shrink: 0;
}

.visual-strip img {
  height: 380px;
  width: auto;
  object-fit: cover;
  flex-shrink: 0;
  filter: brightness(0.85);
  transition: filter 0.4s ease;
  pointer-events: none;
}

.visual-strip img:hover { filter: brightness(1); }


/* ═══════════════════════════════════════
   AMBIENT VIDEO — FULL-BLEED LOOPING
═══════════════════════════════════════ */
.ambient-video-section {
  position: relative;
  overflow: hidden;
  height: 70vh;
  background: var(--deep);
}

.ambient-video-section video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.ambient-video-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--deep) 0%, rgba(26,26,26,0.15) 30%, rgba(26,26,26,0.15) 70%, var(--deep) 100%),
    linear-gradient(to right, rgba(26,26,26,0.5) 0%, transparent 30%, transparent 70%, rgba(26,26,26,0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.ambient-video-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.45);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ambient-video-caption::before,
.ambient-video-caption::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(247,245,242,0.25);
}

/* Variant: clean — no vignette, full brightness, 16:9 */
.ambient-video-section--clean {
  height: auto;
  aspect-ratio: 16/9;
}

.ambient-video-section--clean::after {
  display: none;
}

.ambient-video-section--clean video {
  opacity: 1;
}


/* ═══════════════════════════════════════
   FULL-BLEED IMAGE SECTION
═══════════════════════════════════════ */
.fullbleed-image {
  position: relative;
  overflow: hidden;
  height: 75vh;
  background: var(--deep);
}

.fullbleed-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.6s ease;
}

.fullbleed-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--deep) 0%, rgba(26,26,26,0.1) 30%, rgba(26,26,26,0.1) 70%, var(--deep) 100%),
    linear-gradient(to right, rgba(26,26,26,0.4) 0%, transparent 30%, transparent 70%, rgba(26,26,26,0.4) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Variant: clean — no vignette, full image, natural aspect ratio */
.fullbleed-image--clean {
  height: auto;
}

.fullbleed-image--clean img {
  position: relative;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.fullbleed-image--clean::after {
  display: none;
}

.fullbleed-caption {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,245,242,0.45);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.fullbleed-caption::before,
.fullbleed-caption::after {
  content: '';
  width: 30px;
  height: 1px;
  background: rgba(247,245,242,0.25);
}


/* ═══════════════════════════════════════
   SECONDARY VIDEOS GRID
═══════════════════════════════════════ */
.videos-grid-section {
  padding: 0 var(--section-pad) var(--section-pad);
  background: var(--deep);
}
.videos-grid-section--spaced {
  padding-top: var(--section-pad-lg);
}

.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.video-grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
}

.video-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-grid-item:hover .video-play-btn {
  border-color: var(--accent);
  background: rgba(255,76,116,0.12);
  transform: scale(1.15);
}


/* ═══════════════════════════════════════
   IMAGE GALLERY — MOSAIC GRID
═══════════════════════════════════════ */
.gallery-section {
  padding: 0;
  background: var(--deep);
  position: relative;
}

.gallery-label {
  padding: var(--section-pad) var(--section-pad) var(--space-lg);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.gallery-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0 var(--section-pad) var(--section-pad);
}

.gallery-item {
  position: relative;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
  transition: filter 0.6s ease, transform 1.2s var(--ease-out-expo);
}

.gallery-item:hover img {
  filter: brightness(1);
  transform: scale(1.03);
}

.gallery-item--hero {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.gallery-item--half {
  aspect-ratio: 16/9;
}

.gallery-image {
  width: 100%;
  padding: 0 var(--section-pad) var(--section-pad);
}

.gallery-image img {
  width: 100%;
  height: auto;
  display: block;
}


/* ═══════════════════════════════════════
   AWARD / RECOGNITION STRIP
═══════════════════════════════════════ */
.award-strip {
  background: var(--deep);
  padding: var(--section-pad);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.award-strip-inner {
  max-width: 640px;
  margin: 0 auto;
}

.award-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.award-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.award-detail {
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(247,245,242,0.5);
  letter-spacing: 0.02em;
}



/* ═══════════════════════════════════════
   VIMEO SHOWCASE EMBEDS
   Used by pages with Vimeo showcase iframes
═══════════════════════════════════════ */
.showcase-section {
  padding: var(--section-pad-lg) var(--section-pad);
  background: var(--deep);
}

.showcase-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-bottom: 4rem;
}

.showcase-header .insight-pull {
  color: var(--paper);
}

.showcase-intro {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.9;
  color: rgba(247,245,242,0.6);
}

.showcase-intro p + p { margin-top: 1.5rem; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.showcase-item {
  position: relative;
}

.showcase-label {
  font-family: var(--body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.showcase-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--accent);
  opacity: 0.7;
}

.showcase-embed {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
}

.showcase-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}


/* ═══════════════════════════════════════
   CONTENT GATE — PASSWORD PROTECTION
   Drop the HTML snippet into any case study
   to hide everything below it.
═══════════════════════════════════════ */

/* Hide all siblings after a locked gate */
.content-gate:not(.unlocked) ~ * { display: none !important; }

/* Collapse the gate once unlocked */
.content-gate.unlocked { display: none; }

.content-gate {
  position: relative;
  background: var(--deep);
  padding: 6rem var(--section-pad) var(--space-3xl);
  text-align: center;
  z-index: 10;
}

/* Gradient scrim — bleeds over preceding content */
.content-gate::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, var(--deep) 0%, transparent 100%);
  pointer-events: none;
  z-index: 10;
}

.content-gate-icon {
  width: 44px;
  height: 44px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 2.5rem;
  opacity: 0.6;
  animation: gatePulse 3s ease-in-out infinite;
}

@keyframes gatePulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.06); }
}

.content-gate-title {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  font-style: italic;
  color: var(--paper);
  line-height: 1.3;
  margin-bottom: 1.2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.content-gate-desc {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.8;
  color: rgba(247,245,242,0.45);
  max-width: 440px;
  margin: 0 auto var(--space-lg);
}

.content-gate-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 380px;
  margin: 0 auto 1.5rem;
}

.content-gate-input {
  flex: 1;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--paper);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  border-radius: 0;
  padding: 0.9rem 1.2rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.content-gate-input::placeholder {
  color: rgba(247,245,242,0.28);
}

.content-gate-input:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,0.07);
}

.content-gate-submit {
  font-family: var(--body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--deep);
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.9rem 2rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.content-gate-submit:hover {
  background: transparent;
  color: var(--accent);
}

/* Error shake */
.content-gate-form.shake {
  animation: gateShake 0.5s ease;
}

@keyframes gateShake {
  0%, 100%       { transform: translateX(0); }
  15%, 45%, 75%  { transform: translateX(-6px); }
  30%, 60%, 90%  { transform: translateX(6px); }
}

.content-gate-input.error {
  border-color: var(--accent);
}

.content-gate-cta {
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(247,245,242,0.35);
}

.content-gate-cta a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,76,116,0.3);
  transition: border-color 0.3s ease;
}

.content-gate-cta a:hover {
  border-color: var(--accent);
}


/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 900px) {
  .assets-impact { grid-template-columns: 1fr; }
  .assets-panel,
  .impact-panel { padding: 4rem 2rem; }
  .fullbleed-image { height: 45vh; }
  .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem 3rem;
  }
  .gallery-item--hero { aspect-ratio: 16/9; }
  .gallery-label { padding: var(--space-lg) 2rem 2rem; }
  .gallery-image { padding: 0 2rem var(--space-lg); }
  .award-strip { padding: 4rem 2rem; }
  .ambient-video-section { height: 45vh; }
  .visual-strip img { height: 240px; }
  .videos-grid { grid-template-columns: 1fr; }
  .videos-grid-section { padding: 0 2rem var(--space-lg); }
  .showcase-section { padding: var(--space-xl) 2rem; }
  .showcase-header { grid-template-columns: 1fr; gap: 2rem; }
  .showcase-grid { gap: 3rem; }
  .content-gate { padding: 4rem 2rem var(--space-2xl); }
  .content-gate::before { height: 140px; }
  .content-gate-form { max-width: 320px; }
}
