.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 :is([data-edit-key],[data-project-edit-key],[data-video-edit-key],[data-work-edit-key],[data-contact-edit-key]) {
  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 :is([data-edit-key],[data-project-edit-key],[data-video-edit-key],[data-work-edit-key],[data-contact-edit-key]) { transform-origin: right top; }

.video-showcase-text-object :is([data-edit-key],[data-project-edit-key],[data-video-edit-key],[data-work-edit-key],[data-contact-edit-key]):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,
.video-showcase-text-object.is-touch-active .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 :is([data-edit-key],[data-project-edit-key],[data-video-edit-key],[data-work-edit-key],[data-contact-edit-key]):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-process-delete:not([hidden]) {
  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-cover {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background-color: #070710;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: rgba(255,255,255,.72);
  font: inherit;
  letter-spacing: .12em;
  cursor: pointer;
  opacity: 1;
  transition: opacity .22s ease;
}

.video-showcase-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-showcase-cover-empty {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  padding: .75rem 1rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(8,8,30,.68);
  font-size: .78rem;
}

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

.video-showcase-play-toggle {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  display: grid;
  width: 4.5rem;
  height: 4.5rem;
  place-items: center;
  padding: 0 0 0 .24rem;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 50%;
  background: rgba(8,8,36,.72);
  color: #fff;
  box-shadow: 0 0 1.5rem rgba(78,85,255,.34);
  font-size: 1.45rem;
  cursor: pointer;
  opacity: 1;
  transition: opacity .2s ease, transform .2s ease;
}

.video-showcase-play-toggle:hover,
.video-showcase-play-toggle:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-showcase-player-shell.is-controls-hidden .video-showcase-play-toggle {
  opacity: 0;
  pointer-events: none;
}

.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;
  z-index: 7;
}

.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;
  z-index: 8;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 1.4rem);
}

.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 {
  --video-nav-highlight: #f7c16d;
  --video-nav-border: #34305f;
  --video-nav-arrow-border: #4b4677;
  position: relative;
  width: 4.4rem;
  min-height: 19rem;
  padding: 1.05rem .75rem;
  border: 1px solid var(--video-nav-border);
  border-radius: .35rem;
  background: linear-gradient(180deg, rgba(5, 5, 24, .84), rgba(2, 2, 12, .62));
  box-shadow: inset 0 0 1.5rem rgba(75, 70, 119, .12), 0 0 1.3rem rgba(0, 0, 0, .22);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
}

.video-showcase-navigation > button {
  flex: 0 0 2.2rem;
  width: 2.2rem;
  height: 2.2rem;
  border-color: var(--video-nav-arrow-border);
  border-radius: 50%;
  font-size: 1.05rem;
}

.video-showcase-dots {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  gap: .45rem;
}

.video-showcase-dots button {
  width: 100%;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  padding: .45rem .25rem;
  color: rgba(255,255,255,.58);
  background: transparent;
  font: 700 .8rem/1 Arial, sans-serif;
  letter-spacing: .08em;
  text-align: center;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.video-showcase-dots button:hover,
.video-showcase-dots button:focus-visible {
  color: #fff;
  border-color: var(--video-nav-arrow-border);
  outline: none;
  background: rgba(251, 206, 162, .12);
}

.video-showcase-dots button[aria-current="true"] {
  border-color: var(--video-nav-border);
  color: #2b1b14;
  background: var(--video-nav-highlight);
  box-shadow: 0 0 .55rem rgba(247, 193, 109, .16);
}

.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 (min-width: 601px) and (max-width: 1366px) {
  .video-showcase-layout {
    width: calc(100vw - 3rem);
    height: min(39rem, calc(100dvh - 6rem));
    gap: clamp(1.4rem, 3vw, 2.5rem);
  }

  .video-showcase-title-object {
    top: max(5rem, calc(env(safe-area-inset-top) + 4.5rem));
    left: 1.5rem;
  }

  .video-showcase-english-object {
    top: max(6.5rem, calc(env(safe-area-inset-top) + 6rem));
    right: 2rem;
  }

  .video-showcase-navigation {
    width: 4.25rem;
    min-height: 17.5rem;
  }
}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {
  .video-showcase-layout {
    height: calc(100dvh - 5.5rem);
    margin-top: 4.5rem;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(15rem, 0.78fr) minmax(0, 1fr);
    gap: 1rem;
  }

  .video-showcase-process {
    align-self: end;
  }

  .video-showcase-process::before {
    display: none;
  }

  .video-process-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
  }

  .video-showcase-main {
    align-self: start;
  }

  .video-showcase-kicker {
    font-size: 2.4rem;
  }
}

@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: grid;
    touch-action: pan-y;
  }

  .video-showcase-player-tools {
    opacity: 1;
  }

  .video-showcase-play-toggle {
    width: 4.75rem;
    height: 4.75rem;
  }

  .video-showcase-text-tools {
    top: -3.35rem;
  }

  .video-showcase-text-tools button,
  .video-showcase-player-tools button,
  .video-showcase-navigation > button,
  .video-showcase-dots button,
  .video-process-lightbox-tools button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
}
