/* header__video_case_study — Video Case Study Hero GFC layout */

.gfc.header__video_case_study {
  position: relative;
  background: linear-gradient(95deg, #B31983 0%, #C2317B 65%, #E0532B 88%, #F47721 100%);
  color: #fff;
  overflow: hidden;
  padding: clamp(36px, 4.5vw, 56px) clamp(24px, 5vw, 80px) clamp(80px, 10vw, 120px);
}

.gfc.header__video_case_study::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 18%, rgba(255,255,255,.18), transparent 40%),
    radial-gradient(circle at 12% 88%, rgba(255,255,255,.12), transparent 35%);
  pointer-events: none;
}

.gfc.header__video_case_study .vcs-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  max-width: 1240px;
  margin-inline: auto;
}

/* Copy */
.gfc.header__video_case_study .vcs-hero__copy {
  max-width: 30em;
}

.gfc.header__video_case_study .vcs-hero__title {
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -.022em;
  color: #fff;
  margin: 0 0 18px;
  text-wrap: balance;
}

.gfc.header__video_case_study .vcs-hero__sub {
  color: rgba(255,255,255,.92);
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.5;
  max-width: 30em;
  margin: 0;
  text-wrap: pretty;
}

/* Media column */
.gfc.header__video_case_study .vcs-hero__media {
  position: relative;
}

.gfc.header__video_case_study .vcs-hero__video-wrap {
  position: relative;
}

/* Video frame */
.gfc.header__video_case_study .vcs-video-frame {
  position: relative;
  border-radius: 18px;
  background: rgba(0,0,0,.55);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  box-shadow:
    0 30px 60px -28px rgba(52,55,65,.55),
    0 14px 32px -14px rgba(0,0,0,.3);
  transform: rotate(-.6deg);
  isolation: isolate;
}

.gfc.header__video_case_study .vcs-video-frame__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.92) saturate(1.05);
  display: block;
}

.gfc.header__video_case_study .vcs-video-frame__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(52,55,65,0) 35%, rgba(52,55,65,.78) 100%);
}

/* Play button */
.gfc.header__video_case_study .vcs-video-frame__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  cursor: pointer;
}

.gfc.header__video_case_study .vcs-play-ring {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
  transition: transform .25s ease;
}

.gfc.header__video_case_study .vcs-play-ring::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent #B31983;
  margin-left: 5px;
}

.gfc.header__video_case_study .vcs-video-frame__play:hover .vcs-play-ring {
  transform: scale(1.06);
}

.gfc.header__video_case_study .vcs-play-ripple {
  position: absolute;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.5);
  animation: vcs-ripple 2.5s ease-out infinite;
  pointer-events: none;
}

@keyframes vcs-ripple {
  0%   { transform: scale(1);   opacity: .7; }
  100% { transform: scale(1.8); opacity: 0;  }
}

/* Meta bar */
.gfc.header__video_case_study .vcs-video-frame__meta {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  z-index: 2;
}

.gfc.header__video_case_study .vcs-video-frame__chapter {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
}

.gfc.header__video_case_study .vcs-video-frame__time {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 13px;
  background: rgba(0,0,0,.55);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Progress bar */
.gfc.header__video_case_study .vcs-video-frame__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,.18);
  z-index: 2;
}

.gfc.header__video_case_study .vcs-video-frame__progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #F47721, #FFB97A);
}

/* Floating KPI card */
.gfc.header__video_case_study .vcs-hero__kpi {
  position: absolute;
  right: -18px;
  bottom: -44px;
  background: #fff;
  color: #343741;
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: 0 30px 60px -28px rgba(52,55,65,.28), 0 10px 30px -12px rgba(52,55,65,.10);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  transform: rotate(2.5deg);
}

.gfc.header__video_case_study .vcs-hero__kpi-num {
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.03em;
  background: linear-gradient(95deg, #B31983 0%, #C2317B 65%, #E0532B 88%, #F47721 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gfc.header__video_case_study .vcs-hero__kpi-label {
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
  color: #343741;
  max-width: 13ch;
}

.gfc.header__video_case_study .vcs-hero__kpi-label small {
  display: block;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #00AFAA;
  margin-bottom: 4px;
}

/* Doodles */
.gfc.header__video_case_study .vcs-doodle {
  position: absolute;
  pointer-events: none;
  fill: none;
}

.gfc.header__video_case_study .vcs-doodle--burst {
  top: -22px;
  left: -28px;
  width: 64px;
  color: rgba(255,255,255,.85);
  transform: rotate(-12deg);
}


/* Responsive */
@media (max-width: 920px) {
  .gfc.header__video_case_study .vcs-hero__inner {
    grid-template-columns: 1fr;
  }
  .gfc.header__video_case_study .vcs-hero__kpi {
    right: 8px;
    bottom: -44px;
  }
}

/* ── Shared video modal ──────────────────────────────────────────────────── */

.vcs-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,16,24,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 48px);
  animation: vcs-modal-fade .25s ease-out;
}

.vcs-modal[hidden] { display: none; }

@keyframes vcs-modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.vcs-modal__inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  animation: vcs-modal-rise .35s cubic-bezier(.2,.8,.2,1);
}

@keyframes vcs-modal-rise {
  from { transform: translateY(24px) scale(.98); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

.vcs-modal__frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  box-shadow:
    0 40px 90px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(255,255,255,.06);
}

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

.vcs-modal__close {
  position: absolute;
  top: -56px;
  right: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all .2s ease;
}

.vcs-modal__close:hover {
  background: #F47721;
  border-color: #F47721;
  transform: rotate(90deg);
}

@media (max-width: 720px) {
  .vcs-modal__close {
    top: auto;
    bottom: -56px;
    right: 50%;
    transform: translateX(50%);
  }
  .vcs-modal__close:hover {
    transform: translateX(50%) rotate(90deg);
  }
}
