.video-showcase-section {
  --video-showcase-blue: #119fda;
  --video-showcase-cyan: #67d7f4;
  --video-showcase-orange: #f39a31;
  position: relative;
  padding-block: clamp(2.6rem, 5vw, 4.8rem);
  overflow: clip;
  color: #f6fbff;
  margin-top:10px;
  background-color:white;
  /*background:
    radial-gradient(circle at 12% 0%, rgba(0, 137, 204, .22), transparent 35rem),
    linear-gradient(135deg, #051326 0%, #071b35 53%, #092644 100%);*/
}


.video-showcase-section[hidden] { display: none; }

.video-showcase,
.video-showcase * { box-sizing: border-box; }

.video-showcase {
  min-width: 0;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border: 1px solid rgba(103, 215, 244, .2);
  border-radius: 1.25rem;
  /*background: rgba(3, 15, 31, .58);*/
  background: linear-gradient(180deg, #06101f 0%, #101b36 100%);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .26), inset 0 1px rgba(255, 255, 255, .04);
}

#video-showcase .video-showcase {
  background: var(--hero-gradient);
}

.video-showcase__loading {
  margin: 0;
  color: rgba(235, 247, 255, .72);
  text-align: center;
}

.video-showcase__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.4rem;
}

.video-showcase__eyebrow {
  display: block;
  margin-bottom: .45rem;
  color: var(--video-showcase-cyan);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.video-showcase__brand h2 {
  max-width: 780px;
  margin: 0;
  color: #fff;
  font-size: clamp(1.65rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.video-showcase__instructions {
  max-width: 37rem;
  margin: .65rem 0 0;
  color: rgba(230, 244, 255, .73);
  font-size: .96rem;
  line-height: 1.55;
}

.video-showcase__controls {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .55rem;
}

.video-showcase__range {
  min-width: 7.6rem;
  color: rgba(233, 247, 255, .8);
  font-size: .82rem;
  text-align: center;
}

.video-showcase__nav,
.video-showcase-dialog__close,
.video-showcase-dialog__fullscreen {
  display: inline-flex;
  min-width: 2.75rem;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(103, 215, 244, .38);
  border-radius: .75rem;
  color: #f8fcff;
  background: rgba(13, 51, 79, .8);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.video-showcase__nav:hover,
.video-showcase-dialog__close:hover,
.video-showcase-dialog__fullscreen:hover {
  border-color: var(--video-showcase-cyan);
  background: rgba(20, 93, 137, .92);
}

.video-showcase__nav:disabled { cursor: default; opacity: .38; }

.video-showcase__viewport { min-width: 0; overflow: hidden; }

.video-showcase__track {
  display: grid;
  grid-template-columns: repeat(var(--video-showcase-columns, 5), minmax(0, 1fr));
  gap: clamp(.65rem, 1.3vw, 1rem);
}

.video-showcase__card { min-width: 0; }

.video-showcase__card-button {
  display: flex;
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 20.6rem;
  padding: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(151, 203, 232, .2);
  border-radius: 1rem;
  color: #fff;
  text-align: left;
  background: linear-gradient(165deg, rgba(15, 51, 79, .98), rgba(4, 21, 41, .98));
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .22);
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.video-showcase__card-button:hover {
  transform: translateY(-4px);
  border-color: rgba(103, 215, 244, .72);
  box-shadow: 0 1rem 2.4rem rgba(0, 0, 0, .36);
}

.video-showcase__card-button[aria-current="true"] {
  border-color: var(--video-showcase-orange);
  box-shadow: 0 0 0 2px rgba(243, 154, 49, .18), 0 1rem 2.4rem rgba(0, 0, 0, .36);
}

.video-showcase__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
  background: #06101e;
}

.video-showcase__media img,
.video-showcase__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-showcase__preview { position: absolute; inset: 0; visibility: hidden; background: #000; }
.video-showcase__preview--playing { visibility: visible; }

.video-showcase__generated-poster {
  display: grid;
  position: absolute;
  inset: 0;
  place-content: center;
  padding: 1rem;
  isolation: isolate;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 72% 25%, rgba(255,255,255,.28), transparent 2.3rem),
    linear-gradient(135deg, var(--poster-a), var(--poster-b));
}

.video-showcase__generated-poster::before,
.video-showcase__generated-poster::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
}
.video-showcase__generated-poster::before { width: 8rem; height: 8rem; left: -2rem; top: -2rem; }
.video-showcase__generated-poster::after { width: 5rem; height: 5rem; right: -1rem; bottom: -1rem; }
.video-showcase__generated-poster span { font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.video-showcase__generated-poster strong { display: block; margin-top: .35rem; font-size: 1rem; line-height: 1.25; }

.video-showcase__theme--blue { --poster-a: #0067a5; --poster-b: #092743; }
.video-showcase__theme--teal { --poster-a: #007b82; --poster-b: #07373e; }
.video-showcase__theme--orange { --poster-a: #b35b13; --poster-b: #422411; }
.video-showcase__theme--purple { --poster-a: #59438e; --poster-b: #241b42; }
.video-showcase__theme--slate { --poster-a: #53677a; --poster-b: #1c2b39; }

.video-showcase__index,
.video-showcase__runtime,
.video-showcase__play {
  position: absolute;
  z-index: 3;
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  background: rgba(1, 10, 22, .76);
  backdrop-filter: blur(7px);
}
.video-showcase__index { top: .65rem; left: .65rem; padding: .24rem .45rem; border-radius: .4rem; font-size: .7rem; }
.video-showcase__runtime { top: .65rem; right: .65rem; padding: .24rem .45rem; border-radius: .4rem; font-size: .7rem; }
.video-showcase__play { left: 50%; top: 50%; width: 2.8rem; height: 2.8rem; border-radius: 50%; transform: translate(-50%,-50%); font-size: 0; }
.video-showcase__play::after { content: ""; position: absolute; left: 1.08rem; top: .78rem; border-block: .62rem solid transparent; border-left: .9rem solid #fff; }

.video-showcase__copy { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 1rem; }
.video-showcase__copy h3 { margin: 0; color: #fff; font-size: 1rem; line-height: 1.28; overflow-wrap: anywhere; }
.video-showcase__meta { margin: .48rem 0 0; color: var(--video-showcase-cyan); font-size: .74rem; font-weight: 720; }
.video-showcase__summary { display: -webkit-box; margin: .75rem 0 0; overflow: hidden; color: rgba(229,243,253,.72); font-size: .82rem; line-height: 1.46; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.video-showcase__expand { margin-top: auto; padding-top: .9rem; color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.video-showcase__progress { height: .25rem; margin-top: 1.25rem; overflow: hidden; border-radius: 999px; background: rgba(142,199,230,.16); }
.video-showcase__progress-bar { display: block; height: 100%; width: var(--video-progress, 0%); border-radius: inherit; background: linear-gradient(90deg, var(--video-showcase-blue), var(--video-showcase-cyan), var(--video-showcase-orange)); transition: width .2s ease; }

.video-showcase__card-button:focus-visible,
.video-showcase__nav:focus-visible,
.video-showcase-dialog button:focus-visible,
.video-showcase-dialog a:focus-visible,
.video-showcase-dialog__story-scroll:focus-visible {
  outline: 3px solid #ffd080;
  outline-offset: 3px;
}

.video-showcase-dialog {
  width: min(1240px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 2rem));
  height: min(760px, calc(100dvh - 2rem));
  max-width: none;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(103, 215, 244, .35);
  border-radius: 1.2rem;
  color: #eef8ff;
  background: #07182d;
  box-shadow: 0 2rem 7rem rgba(0,0,0,.62);
}

.video-showcase-dialog[open] {
  display: grid;
  grid-template-rows: 3.5rem minmax(0, 1fr);
}

.video-showcase-dialog::backdrop { background: rgba(0, 8, 19, .82); backdrop-filter: blur(5px); }
.video-showcase-dialog__header {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .38rem .55rem .38rem 1.25rem;
  border-bottom: 1px solid rgba(134,192,225,.17);
  background: #07182d;
}
.video-showcase-dialog__position {
  color: #bfeeff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.video-showcase-dialog__close { flex: 0 0 auto; }
.video-showcase-dialog__layout {
  display: grid;
  min-width: 0;
  min-height: 0;
  height: 100%;
  grid-template-columns: minmax(0, 1.85fr) minmax(20rem, .85fr);
  overflow: hidden;
}
.video-showcase-dialog__media {
  display: grid;
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #000;
}
.video-showcase-dialog__media video,
.video-showcase-dialog__media iframe {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  object-fit: contain;
  background: #000;
}
.video-showcase-dialog__story {
  --video-story-footer-height: 4.7rem;
  display: flex;
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(155deg, #0b2845, #07182d 72%);
}
.video-showcase-dialog__story::before {
  position: absolute;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 1.5rem;
  pointer-events: none;
  content: "";
  opacity: 0;
  background: linear-gradient(180deg, rgba(3,15,31,.7), transparent);
  transition: opacity .16s ease;
}
.video-showcase-dialog__story[data-can-scroll-up="true"]::before { opacity: 1; }
.video-showcase-dialog__story-scroll {
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  padding: clamp(1.15rem, 2.4vw, 1.8rem);
  padding-bottom: 2.7rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.video-showcase-dialog__story-scroll::-webkit-scrollbar { width: 0; height: 0; }
.video-showcase-dialog__story-scroll:focus-visible { outline-offset: -4px; }
.video-showcase-dialog__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; padding: 0; list-style: none; }
.video-showcase-dialog__tags li { padding: .28rem .48rem; border: 1px solid rgba(103,215,244,.27); border-radius: 999px; color: #bfeeff; font-size: .68rem; font-weight: 760; text-transform: uppercase; }
.video-showcase-dialog__story h2 { margin: 1rem 0 .65rem; color: #fff; font-size: clamp(1.45rem, 2.15vw, 2.15rem); line-height: 1.1; overflow-wrap: anywhere; }
.video-showcase-dialog__description { margin: 0; color: rgba(229,243,253,.8); line-height: 1.58; white-space: pre-line; overflow-wrap: anywhere; }
.video-showcase-dialog__facts { display: grid; gap: .58rem; margin: 1rem 0; }
.video-showcase-dialog__fact { padding-top: .58rem; border-top: 1px solid rgba(134,192,225,.17); }
.video-showcase-dialog__fact span { display: block; color: #80d9ef; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.video-showcase-dialog__fact strong { display: block; margin-top: .22rem; color: #fff; font-size: .92rem; }
.video-showcase-dialog__story-actions {
  display: flex;
  z-index: 4;
  min-height: var(--video-story-footer-height);
  flex: 0 0 auto;
  align-items: center;
  gap: .65rem;
  padding: .85rem clamp(1.15rem, 2.4vw, 1.8rem);
  border-top: 1px solid rgba(134,192,225,.2);
  background: rgba(5,21,39,.98);
}
.video-showcase-dialog__fullscreen { padding-inline: 1rem; }
.video-showcase-dialog__case { display: inline-flex; width: fit-content; min-height: 2.75rem; align-items: center; margin-top: .2rem; padding: .55rem .85rem; border: 1px solid rgba(243,154,49,.55); border-radius: .75rem; color: #fff; font-weight: 750; text-decoration: none; }
.video-showcase-dialog__case:hover { border-color: #ffc275; background: rgba(243,154,49,.12); }
.video-showcase-dialog__missing { padding: 2rem; color: #d9ebf7; text-align: center; }
.video-showcase-dialog__transcript { margin: 1rem 0; }
.video-showcase-dialog__transcript summary { cursor: pointer; color: #bcecff; font-weight: 760; }
.video-showcase-dialog__transcript p { color: rgba(229,243,253,.75); font-size: .88rem; line-height: 1.55; white-space: pre-line; }
.video-showcase-dialog__scroll-cue {
  display: flex;
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: var(--video-story-footer-height);
  left: 0;
  height: 3rem;
  align-items: flex-end;
  justify-content: center;
  gap: .42rem;
  padding-bottom: .42rem;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  color: #bfeeff;
  background: linear-gradient(180deg, transparent, rgba(5,21,39,.96));
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  transform: translateY(.25rem);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.video-showcase-dialog__scroll-cue::after {
  width: .48rem;
  height: .48rem;
  margin-bottom: .18rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}
.video-showcase-dialog__story[data-can-scroll-down="true"] .video-showcase-dialog__scroll-cue {
  visibility: visible;
  opacity: 1;
  transform: none;
}

@media (max-width: 1180px) {
  .video-showcase { --video-showcase-columns: 4; }
  .video-showcase__card-button { min-height: 19.5rem; }
}

@media (max-width: 840px) {
  .video-showcase { --video-showcase-columns: 2; }
  .video-showcase__header { align-items: flex-start; flex-direction: column; }
  .video-showcase__controls { width: 100%; justify-content: space-between; }
  .video-showcase__card-button { min-height: 20rem; }
  .video-showcase-dialog {
    width: calc(100vw - 1rem);
    height: min(760px, calc(100vh - 1rem));
    height: min(760px, calc(100dvh - 1rem));
    max-height: calc(100vh - 1rem);
    max-height: calc(100dvh - 1rem);
  }
  .video-showcase-dialog[open] { grid-template-rows: 3.25rem minmax(0, 1fr); }
  .video-showcase-dialog__header { padding-left: 1rem; }
  .video-showcase-dialog__layout {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(12rem, 52vw, 24rem) minmax(0, 1fr);
    overflow: hidden;
  }
  .video-showcase-dialog__media { min-height: 0; aspect-ratio: auto; }
  .video-showcase-dialog__media video,
  .video-showcase-dialog__media iframe { min-height: 0; aspect-ratio: auto; }
}

@media (max-width: 520px) {
  .video-showcase-section { padding-block: 2rem; }
  .video-showcase { --video-showcase-columns: 1; padding: .85rem; border-radius: 1rem; }
  .video-showcase__brand h2 { font-size: 1.65rem; }
  .video-showcase__instructions { font-size: .88rem; }
  .video-showcase__range { min-width: 0; }
  .video-showcase__card-button { min-height: 0; }
  .video-showcase__summary { -webkit-line-clamp: 2; }
  .video-showcase-dialog { width: calc(100vw - .75rem); border-radius: .8rem; }
  .video-showcase-dialog__position { font-size: .65rem; letter-spacing: .08em; }
  .video-showcase-dialog__story-scroll { padding: 1rem; padding-bottom: 2.5rem; }
  .video-showcase-dialog__story-actions { padding-inline: 1rem; }
  .video-showcase-dialog__story h2 { font-size: clamp(1.35rem, 7vw, 1.8rem); }
}

@media (max-width: 840px) and (max-height: 640px) {
  .video-showcase-dialog__layout { grid-template-rows: clamp(8.5rem, 36vh, 12rem) minmax(0, 1fr); }
  @supports (height: 100dvh) {
    .video-showcase-dialog__layout { grid-template-rows: clamp(8.5rem, 36dvh, 12rem) minmax(0, 1fr); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-showcase *,
  .video-showcase-dialog * { scroll-behavior: auto !important; transition: none !important; }
  .video-showcase__card-button:hover { transform: none; }
}
