.video-showcase-screen {
  position: fixed;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #0a093b;
  opacity: 0;
  pointer-events: none;
  isolation: isolate;
  will-change: opacity;
}

.video-showcase-screen.is-interactive { pointer-events: auto; }

.video-showcase-dot-field,
.video-showcase-firefly-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.video-showcase-dot-field {
  z-index: 1;
  inset: 0;
  opacity: .16;
  background-image: radial-gradient(circle, rgba(255,255,255,.92) 0 1px, transparent 1.35px);
  background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.video-showcase-firefly-field { z-index: 0; overflow: hidden; }

.video-showcase-text-object {
  --video-text-scale: 1;
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: none;
  transform-origin: left top;
  will-change: transform;
}

.video-showcase-flow-text {
  position: relative;
}

.video-showcase-title-object {
  top: clamp(6.25rem, 15.3vh, 8rem);
  left: clamp(3rem, 6.4vw, 7rem);
}

.video-showcase-english-object {
  top: clamp(9rem, 24.2vh, 12rem);
  right: clamp(3rem, 14vw, 15rem);
  text-align: right;
}

.video-showcase-text-object [contenteditable] {
  display: block;
  width: max-content;
  min-width: max-content;
  max-width: none;
  overflow: visible;
  white-space: nowrap;
  word-break: keep-all;
  transform: scale(var(--video-text-scale));
  transform-origin: left top;
}

.video-showcase-english-object [contenteditable] { transform-origin: right top; }

.video-showcase-text-object [contenteditable]:focus {
  outline: 1px dashed rgba(255,255,255,.55);
  outline-offset: .28rem;
}

.video-showcase-english {
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: clamp(.78rem, .92vw, 1rem);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1;
}

.video-showcase-text-tools {
  position: absolute;
  top: -2.35rem;
  left: 0;
  display: flex;
  gap: .28rem;
  padding: .28rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: .38rem;
  background: rgba(5,5,30,.86);
  box-shadow: 0 .4rem 1.3rem rgba(0,0,0,.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.video-showcase-english-object .video-showcase-text-tools {
  right: 0;
  left: auto;
}

.video-showcase-text-object:hover .video-showcase-text-tools,
.video-showcase-text-object:focus-within .video-showcase-text-tools {
  opacity: 1;
  pointer-events: auto;
}

.video-showcase-text-tools button {
  min-width: 1.8rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: .24rem;
  padding: .32rem .44rem;
  color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.07);
  font: inherit;
  font-size: .68rem;
  line-height: 1;
  cursor: pointer;
}

.video-showcase-text-tools button[data-video-text-action="move"] {
  cursor: grab;
  touch-action: none;
}

.video-showcase-text-tools button[data-video-text-action="move"]:active { cursor: grabbing; }

.video-showcase-text-tools button:hover,
.video-showcase-text-tools button:focus-visible {
  border-color: rgba(255,255,255,.68);
  outline: none;
  background: rgba(255,255,255,.14);
}

.video-firefly {
  --x: 50vw;
  --drift: 3vw;
  --size: 4px;
  --duration: 15s;
  --delay: 0s;
  display: block;
  position: absolute;
  left: var(--x);
  bottom: -9vh;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px 2px rgba(255,255,255,.62), 0 0 18px 5px rgba(102,125,255,.28);
  opacity: 0;
  animation: video-firefly-rise var(--duration) linear var(--delay) infinite,
             video-firefly-blink 2.1s ease-in-out var(--delay) infinite;
  animation-play-state: paused;
}

.video-showcase-screen.is-visible .video-firefly { animation-play-state: running; }

@keyframes video-firefly-rise {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(var(--drift), -112vh, 0); }
}

@keyframes video-firefly-blink {
  0%, 100% { opacity: .08; }
  38% { opacity: .72; }
  55% { opacity: .18; }
  72% { opacity: .9; }
}

.video-showcase-layout {
  position: relative;
  z-index: 2;
  width: min(90rem, calc(100vw - 7rem));
  height: min(39rem, calc(100vh - 7rem));
  margin-top: 4.2rem;
  display: grid;
  grid-template-columns: minmax(0, 32fr) minmax(0, 68fr);
  gap: clamp(3rem, 4.2vw, 5rem);
  align-items: center;
}

.video-showcase-process {
  min-width: 0;
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.video-showcase-process::before {
  content: "";
  display: block;
  flex: 0 0 clamp(3.6rem, 4vw, 4.5rem);
  margin-bottom: 1rem;
}

.video-showcase-kicker {
  margin: 0;
  color: rgba(255,255,255,.94);
  font-size: clamp(2.6rem, 3.2vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1;
}

.video-showcase-process h1 {
  margin: 0;
  font-size: clamp(1.45rem, 1.9vw, 2rem);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
}

.video-showcase-process h2 {
  margin: .35rem 0 0;
  font-size: clamp(1.1rem, 1.45vw, 1.45rem);
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.35;
}

.video-showcase-process [contenteditable]:focus {
  outline: 1px dashed rgba(255,255,255,.42);
  outline-offset: .25rem;
}

.video-process-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1rem;
  margin-top: clamp(1.45rem, 2.6vh, 2rem);
}

.video-process-card {
  position: relative;
  min-width: 0;
}

.video-process-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255,255,255,.24);
  padding: 0;
  overflow: hidden;
  color: rgba(255,255,255,.62);
  background: rgba(3,3,20,.52);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  cursor: pointer;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.video-process-media::before {
  content: "+";
  display: block;
  font-size: 1.4rem;
  line-height: 1;
}

.video-process-media span { display: block; margin-top: .45rem; font-size: .76rem; }
.video-process-media[data-populated="true"]::before,
.video-process-media[data-populated="true"] span { display: none; }

.video-process-media:hover,
.video-process-media:focus-visible {
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 0 20px rgba(120,136,255,.2);
  transform: none;
}

.video-process-caption-object > p {
  margin: .48rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: .76rem;
  line-height: 1.3;
  letter-spacing: .02em;
  text-align: left;
}

.video-process-delete {
  position: absolute;
  right: .45rem;
  top: .45rem;
  border: 1px solid rgba(255,255,255,.22);
  padding: .26rem .42rem;
  color: rgba(255,255,255,.82);
  background: rgba(8,8,42,.78);
  font: inherit;
  font-size: .68rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.video-process-card:has(.video-process-media[data-populated="true"]) .video-process-delete {
  opacity: 1;
  pointer-events: auto;
}

.video-showcase-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.7rem;
  gap: 1.35rem;
  align-items: center;
}

.video-showcase-player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(210,216,255,.46);
  background: rgba(20,19,68,.55);
  box-shadow: 0 0 0 1px rgba(105,113,255,.13), 0 0 34px rgba(84,91,255,.2);
}

.video-showcase-player {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: transparent;
}

.video-showcase-empty {
  position: absolute;
  inset: 0;
  border: 0;
  color: rgba(255,255,255,.55);
  background: linear-gradient(135deg, rgba(30,29,73,.52), rgba(2,2,8,.7));
  font: inherit;
  font-size: .9rem;
  letter-spacing: .12em;
  cursor: pointer;
}

.video-showcase-player-shell[data-populated="true"] .video-showcase-empty { display: none; }

.video-showcase-player-tools {
  position: absolute;
  right: .7rem;
  top: .7rem;
  display: flex;
  gap: .45rem;
  opacity: 0;
  transition: opacity .2s ease;
}

.video-showcase-player-shell:hover .video-showcase-player-tools,
.video-showcase-player-shell:focus-within .video-showcase-player-tools { opacity: 1; }

.video-showcase-player-tools button,
.video-showcase-navigation button {
  border: 1px solid rgba(255,255,255,.24);
  color: rgba(255,255,255,.84);
  background: rgba(8,8,42,.78);
  font: inherit;
  cursor: pointer;
}

.video-showcase-player-tools button { padding: .38rem .65rem; font-size: .72rem; }

.video-showcase-navigation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.video-showcase-navigation > button {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  font-size: 1.05rem;
}

.video-showcase-dots {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.video-showcase-dots button {
  width: .62rem;
  height: .62rem;
  border-radius: 50%;
  padding: 0;
  background: rgba(255,255,255,.2);
}

.video-showcase-dots button[aria-current="true"] {
  border-color: #fff;
  background: #fff;
  box-shadow: 0 0 12px rgba(255,255,255,.75);
}

.video-showcase-status {
  position: absolute;
  z-index: 3;
  right: 7rem;
  bottom: 2rem;
  margin: 0;
  color: rgba(255,255,255,.62);
  font-size: .75rem;
}

.video-process-lightbox {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 4.5rem 5vw 3rem;
  background: rgba(4,3,28,.86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.video-process-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.video-process-lightbox-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  width: min(68rem, 82vw);
  height: min(74vh, 45rem);
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(224,228,255,.46);
  background: rgba(5,5,25,.96);
  box-shadow: 0 0 0 1px rgba(106,116,255,.15), 0 0 48px rgba(92,103,255,.26);
}

.video-process-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}

.video-process-lightbox-tools {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: flex;
  gap: .5rem;
}

.video-process-lightbox-tools button {
  border: 1px solid rgba(255,255,255,.28);
  padding: .5rem .75rem;
  color: rgba(255,255,255,.9);
  background: rgba(8,8,42,.82);
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
}

.video-process-lightbox-tools button:hover,
.video-process-lightbox-tools button:focus-visible {
  border-color: rgba(255,255,255,.82);
  outline: none;
}

@media (max-width: 1100px) {
  .video-showcase-layout { width: calc(100vw - 3rem); gap: 2rem; }
  .video-showcase-main { grid-template-columns: minmax(0, 1fr) 3rem; gap: .8rem; }
  .video-process-grid { gap: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  .video-firefly {
    animation: video-firefly-rise var(--duration) linear var(--delay) infinite,
               video-firefly-blink 2.1s ease-in-out var(--delay) infinite !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .video-showcase-screen { display: none !important; }
}
