/* ──────────────────────────────────────────
   VIDEO BLOCK
   Outer container clips/expands; the video itself sits at full size in the background, centered.
─────────────────────────────────────────── */
.video-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
}
.video-block {
  position: relative;
  width: 480px;          /* animates to 800px on scroll */
  max-width: 92vw;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;       /* this is the actual clipping mechanism */
  background: #1a1a1a;
  cursor: none;
  clip-path: inset(0 50% 0 50%);  /* curtain — opens once .in-view */
  transition:
    clip-path 1.4s var(--ease-out-quint),
    border-radius 0.5s var(--ease-out-quint);
  will-change: clip-path, width;
}
.video-block.in-view {
  clip-path: inset(0 0 0 0);
}
/* Video sits centered at full size — bigger than the container at the start.
   As the container grows, more of the video peripherals become visible. */
.video-el {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1200px;
  height: 675px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  display: block;
}

/* ──────────────────────────────────────────
   CUSTOM VIDEO CURSOR — morphs into a play disc over the video
─────────────────────────────────────────── */
.video-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.45s var(--ease-out-quint), background-color 0.3s ease;
  z-index: 999;
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.video-cursor.active {
  transform: translate(-50%, -50%) scale(1);
}
.video-cursor svg {
  width: 22px;
  height: 22px;
  fill: var(--dark);
  margin-left: 3px;       /* optical centering — triangle's visual center is left of geometric */
}

/* ──────────────────────────────────────────
   EXPANDED MODAL STATE
─────────────────────────────────────────── */
.video-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 498;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease-out-quint), visibility 0s linear 0.5s;
}
.video-backdrop.active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease-out-quint), visibility 0s linear 0s;
}
.video-block.expanded {
  position: fixed;
  inset: 6vh 6vw;
  width: auto !important;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 4px;
  z-index: 500;
  cursor: pointer;
  clip-path: inset(0 0 0 0);
  transition: all 0.6s var(--ease-out-quint);
}
.video-block.expanded .video-el {
  width: 100%;
  height: 100%;
  object-fit: contain;     /* show full video, no crop, when in modal */
}
.video-block.expanded ~ .video-cursor,
body.video-expanded .video-cursor { display: none; }

/* Close hint */
.video-close {
  position: fixed;
  top: 28px;
  right: 32px;
  z-index: 501;
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--light);
  background: none;
  border: 1px solid var(--light-faint);
  padding: 10px 18px;
  border-radius: 2px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease 0.2s, visibility 0s linear 0.6s, border-color 0.3s ease;
}
.video-close:hover { border-color: var(--light); }
body.video-expanded .video-close {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease 0.4s, visibility 0s linear 0s, border-color 0.3s ease;
}
