/* A staggered reel wall. Only posters load until the visitor chooses a video. */
.video-creatives-section {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  padding-block: 84px 110px;
}
.video-creatives-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18% 0 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 65% 48%, #16337442, transparent 58%);
}
.video-creatives-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 54px;
}
.video-creatives-section h2 {
  font-size: var(--marketing-section-heading);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.04em;
  color: var(--white);
}
.video-creatives-section h2 em { color: var(--blue); }
.video-heading-mark { width: 18px; height: 3px; background: var(--blue); }
.video-creatives-heading > .section-copy { max-width: 320px; margin: 0 0 3px; font-size: 12px; }
.video-creatives-gallery {
  display: grid;
  grid-template-columns: 1fr 1.12fr 1fr;
  gap: clamp(26px, 3.2vw, 48px);
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 10px 0;
}
.video-creative { min-width: 0; }
.video-creative--smarthacks-product { --video-tilt: -3deg; margin-top: 40px; }
.video-creative--mymoodcast-story { --video-tilt: 2deg; }
.video-creative--smarthacks-ai-character { --video-tilt: -2deg; margin-top: 80px; }
.video-creative-screen {
  position: relative;
  display: block;
  padding: 6px;
  border: 1px solid #414753;
  border-radius: 19px;
  background: #171b24;
  box-shadow: 0 24px 50px #0007;
  transform: rotate(var(--video-tilt));
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.video-creative-screen img { width: 100%; height: auto; border-radius: 13px; }
.video-creative-screen::after {
  content: "";
  position: absolute;
  inset: 55% 6px 6px;
  border-radius: 0 0 13px 13px;
  background: linear-gradient(transparent, #0009);
  pointer-events: none;
}
.video-creative-screen:hover,
.video-creative-screen:focus-visible {
  transform: translateY(-7px) rotate(0deg);
  border-color: var(--blue-light);
  box-shadow: 0 28px 50px #0009;
}
.video-creative-duration {
  position: absolute;
  z-index: 1;
  top: 18px;
  right: 18px;
  padding: 3px 8px;
  background: #090d17c9;
  border: 1px solid #ffffff26;
  border-radius: 5px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
  color: #fff;
}
.video-creative-play {
  position: absolute;
  z-index: 1;
  inset: auto 16px 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #ffffff3b;
  border-radius: 8px;
  background: #14213dd6;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.video-creative-play svg { width: 21px; height: 21px; color: #a6c1ff; }
.video-creative-caption { padding: 27px 4px 0; }
.video-creative-format { display: block; color: var(--blue-light); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.video-creative-caption h3 { margin-top: 8px; color: var(--white); font-size: 23px; line-height: 1.3; letter-spacing: -.035em; }
.video-creative-caption p { margin-top: 11px; color: #a3a3ac; font-size: 12px; line-height: 1.85; }
.video-creative-caption > .video-description-preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  min-height: 5.55em;
  max-height: 5.55em;
}
.video-description { margin-top: 8px; }
.video-description summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.video-description summary::-webkit-details-marker { display: none; }
.video-description summary:hover { color: #c0d2ff; }
.video-description summary > span:first-child { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #477bff80; }
.video-description-copy ol { padding-left: 22px; }
.video-description-copy li + li { margin-top: 12px; }

.video-text-viewer {
  inset: 0;
  width: min(640px, calc(100% - 28px));
  max-width: none;
  max-height: min(760px, calc(100dvh - 40px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #3d4c69;
  border-radius: 14px;
  background: #101622;
  color: var(--white);
  box-shadow: 0 30px 100px #000b;
}
.video-text-viewer[open] { display: flex; flex-direction: column; }
.video-text-viewer::backdrop { background: #02050bdc; backdrop-filter: blur(5px); }
.video-text-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid #293348;
}
.video-text-format { margin: 0 0 6px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-light); }
.video-text-header h3 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.035em; }
.video-text-close { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; padding: 5px 10px; border: 1px solid #34415c; border-radius: 7px; background: transparent; font-size: 11px; }
.video-text-close span:last-child { font-size: 27px; line-height: 1; }
.video-text-close:hover { background: #26385a; }
.video-text-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 24px 28px 28px; color: #cdd4e1; font-size: 14px; line-height: 1.85; }
.video-text-body p + p { margin-top: 20px; }
.video-text-body ol { margin-top: 16px; margin-bottom: 0; padding-left: 22px; }
body.video-description-open { overflow: hidden; }

.video-viewer {
  inset: 0;
  width: min(500px, calc(100% - 28px));
  height: min(860px, calc(100dvh - 28px));
  max-width: none;
  max-height: none;
  padding: 0;
  margin: auto;
  overflow: hidden;
  border: 1px solid #3d4c69;
  border-radius: 16px;
  background: #080b12;
  color: #f7f7fa;
  box-shadow: 0 30px 100px #000b;
}
.video-viewer[open] { display: flex; flex-direction: column; }
.video-viewer::backdrop { background: #02050be8; backdrop-filter: blur(6px); }
.video-viewer-header { display: flex; align-items: center; justify-content: space-between; flex: 0 0 auto; gap: 14px; padding: 10px 12px 10px 18px; min-height: 64px; background: #101622; }
.video-viewer-header h3 { font-size: 13px; line-height: 1.5; letter-spacing: -.015em; font-weight: 600; }
.video-viewer-close { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; padding: 5px 10px; border: 1px solid #34415c; border-radius: 7px; background: transparent; font-size: 11px; }
.video-viewer-close span:last-child { font-size: 27px; line-height: 1; }
.video-viewer-close:hover { background: #26385a; }
.video-viewer-stage { flex: 1 1 auto; display: flex; min-height: 0; min-width: 0; background: #000; }
.video-viewer-stage video { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.video-viewer-error { flex: 0 0 auto; margin: 0; padding: 12px 16px; color: #e4e9f5; font-size: 12px; }
.video-viewer-error a { text-decoration: underline; text-underline-offset: 3px; }
body.video-viewer-open { overflow: hidden; }

@media (max-width: 860px) {
  .video-creatives-heading { gap: 30px; }
  .video-creatives-gallery { gap: 22px; padding-inline: 5px; }
  .video-creative-play { inset-inline: 12px; font-size: 10px; gap: 4px; }
  .video-creative-caption h3 { font-size: 20px; }
  .video-creative--smarthacks-product { margin-top: 30px; }
  .video-creative--smarthacks-ai-character { margin-top: 55px; }
}
@media (min-width: 681px) {
  /* Preserve every frame width; transforms create the requested light overlap. */
  .video-creatives-gallery { align-items: stretch; }
  .video-creative { display: grid; grid-template-rows: 1fr auto; position: relative; z-index: 1; margin-top: 0; }
  .video-creative--smarthacks-product { --video-tilt: -10deg; --video-shift: clamp(10px, 1.6vw, 24px); }
  .video-creative--mymoodcast-story { --video-tilt: 0deg; --video-shift: 0px; z-index: 2; }
  .video-creative--smarthacks-ai-character { --video-tilt: 10deg; --video-shift: clamp(-24px, -1.6vw, -10px); }
  .video-creative-screen { align-self: end; transform: translateX(var(--video-shift)) rotate(var(--video-tilt)); }
  .video-creative-screen:hover, .video-creative-screen:focus-visible { transform: translate(var(--video-shift), -7px) rotate(var(--video-tilt)); }
  .video-creative-caption { padding-top: 34px; text-align: center; }
  .video-creative-format { min-height: 3.6em; display: flex; align-items: flex-end; justify-content: center; }
}
@media (max-width: 680px) {
  .video-creatives-section { padding-block: 58px 70px; }
  .video-creatives-heading { display: block; margin-bottom: 34px; }
  .video-creatives-heading > .section-copy { margin-top: 22px; max-width: 400px; }
  .video-creatives-gallery { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 8px 10px 0; max-width: 400px; }
  .video-creative { width: 84%; max-width: 285px; margin-top: 0; }
  .video-creative--smarthacks-product { justify-self: start; --video-tilt: -2deg; }
  .video-creative--mymoodcast-story { justify-self: end; --video-tilt: 2deg; }
  .video-creative--smarthacks-ai-character { justify-self: start; --video-tilt: -2deg; }
  .video-creative-play { font-size: 12px; gap: 8px; }
  .video-creative-caption { padding-top: 22px; }
  .video-creative-caption h3 { font-size: 23px; }
  .video-creative-caption p { font-size: 13px; }
  .video-creative-format { font-size: 10px; }
  .video-viewer-header { padding-left: 12px; gap: 8px; }
  .video-viewer-header h3 { font-size: 12px; }
  .video-viewer-close { gap: 7px; }
  .video-text-header { gap: 12px; padding: 18px; }
  .video-text-header h3 { font-size: 22px; }
  .video-text-format { font-size: 8px; }
  .video-text-body { padding: 20px 18px 24px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .video-creative-screen { transition: none; }
  .video-creative-screen:hover, .video-creative-screen:focus-visible { transform: rotate(var(--video-tilt)); }
}
@media (min-width: 681px) and (prefers-reduced-motion: reduce) {
  .video-creative-screen:hover, .video-creative-screen:focus-visible { transform: translateX(var(--video-shift)) rotate(var(--video-tilt)); }
}
