/* =====================================================================
   VIDEO - full-width keynote with a 3D "screen" reveal on scroll
   ===================================================================== */
.video3d { position: relative; padding: 110px 0 90px; overflow: hidden; }
.v3-head { margin-bottom: 40px; }
.v3-heading { margin: 14px 0 0; font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(3rem, 6.5vw, 6.5rem); line-height: .95; letter-spacing: -.02em; color: #fff; }
.v3-heading em { font-style: italic; color: #c7cf15; }

.v3-stage { perspective: 1600px; perspective-origin: 50% 20%; }
.v3-frame {
    position: relative; width: 100%; height: min(56.25vw, 92vh); overflow: hidden; background: #000; cursor: pointer;
    transform-origin: 50% 0%; will-change: transform;
    box-shadow: 0 60px 120px -40px rgba(0,0,0,.95);
}
.v3-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2,.8,.2,1), filter .6s; filter: saturate(.9) brightness(.8); }
.v3-frame:hover .v3-poster { transform: scale(1.1); filter: saturate(1) brightness(.9); }
.v3-shade { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(3,3,3,.55) 0%, rgba(3,3,3,0) 30%, rgba(3,3,3,0) 55%, rgba(3,3,3,.85) 100%); }

.v3-play {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2;
    width: clamp(84px, 9vw, 130px); aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; font-size: clamp(1.4rem, 2vw, 2rem); color: #ffffff;
    background: linear-gradient(145deg, #4fc0ec, #209ccf 55%, #15729a);
    box-shadow: 0 20px 60px -10px rgba(32,156,207,.6), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .35s;
}
.v3-play i { margin-left: 6px; }
.v3-frame:hover .v3-play { transform: translate(-50%, -50%) scale(1.08); }
.v3-ring { position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(32,156,207,.55); animation: v3pulse 2.4s ease-out infinite; }
.v3-ring::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(32,156,207,.3); animation: v3pulse 2.4s ease-out .6s infinite; }
@keyframes v3pulse { 0% { transform: scale(.85); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }

.v3-caption { position: absolute; z-index: 2; left: max(24px, calc((100vw - 1240px) / 2)); bottom: clamp(24px, 5vh, 56px); display: grid; gap: 10px; }
.v3-tag { display: inline-flex; gap: 8px; align-items: center; width: fit-content; padding: 7px 14px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    color: #fff; background: rgba(4,4,4,.55); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.v3-tag i { color: #ff3d3d; }
.v3-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 4.6rem); line-height: 1; color: #fff; text-shadow: 0 6px 30px rgba(0,0,0,.6); }

/* playing state: iframe replaces the poster */
.v3-frame.is-playing { cursor: default; }
.v3-frame.is-playing iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

.v3-foot { display: flex; justify-content: flex-end; margin-top: 26px; }
.v3-more { display: inline-flex; gap: 10px; align-items: center; color: #c7cf15; font-weight: 600; text-decoration: none; }
.v3-more i { transition: transform .3s; } .v3-more:hover i { transform: translateX(6px); }

@media (max-width: 760px) {
    .video3d { padding: 80px 0 60px; }
    .v3-frame { height: 56.25vw; }
    .v3-caption { left: 16px; bottom: 14px; }
    .v3-title { font-size: 1.5rem; }
    .v3-tag { font-size: .66rem; padding: 5px 10px; }
}
@media (prefers-reduced-motion: reduce) { .v3-ring, .v3-ring::after { animation: none; } }

/* ===== muted autoplay loop: YouTube iframe covers the frame like a background video ===== */
.v3-frame { cursor: default; }
.v3-frame iframe {
    position: absolute; left: 50%; top: 50%; z-index: 1; border: 0; pointer-events: none;
    width: max(100%, calc(min(56.25vw, 92vh) * 16 / 9)); height: max(100%, 56.25vw);
    transform: translate(-50%, -50%) scale(1.02); opacity: 0; transition: opacity 1.2s ease;
}
.v3-frame.is-ready iframe { opacity: 1; }
.v3-frame.is-ready .v3-poster { opacity: 0; transition: opacity 1.2s ease; }
.v3-shade, .v3-caption, .v3-sound { z-index: 2; }
.v3-sound {
    position: absolute; right: max(24px, calc((100vw - 1240px) / 2)); bottom: clamp(24px, 5vh, 56px);
    display: inline-flex; gap: 10px; align-items: center; padding: 12px 20px; border-radius: 999px; cursor: pointer;
    font: 600 .85rem 'Plus Jakarta Sans', sans-serif; color: #fff; background: rgba(4,4,4,.55);
    backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.22); transition: .3s;
}
.v3-sound:hover, .v3-sound[aria-pressed="true"] { background: #209ccf; color: #ffffff; border-color: #209ccf; }
@media (max-width: 760px) { .v3-frame iframe { width: max(100%, calc(56.25vw * 16 / 9)); height: 56.25vw; } .v3-sound { right: 12px; bottom: 12px; padding: 8px 12px; font-size: .72rem; } }

/* ===== one screen: heading row + video filling the rest of the viewport ===== */
.video3d {
    height: 100vh; height: 100svh; min-height: 560px; box-sizing: border-box;
    display: flex; flex-direction: column; padding: 100px 0 28px;          /* top clears the floating navbar */
}
.v3-head { flex: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: clamp(14px, 2.6vh, 28px); }
.v3-heading { font-size: clamp(2.6rem, 8.5vh, 6rem); margin-top: 8px; }
.v3-more { flex: none; padding-bottom: 10px; }
.v3-stage { flex: 1; min-height: 0; display: flex; }
.v3-frame { height: auto; flex: 1; min-height: 0; container-type: size; }
/* iframe covers the frame whatever its proportions (container units) */
.v3-frame iframe { width: max(100cqw, 177.78cqh) !important; height: max(100cqh, 56.25cqw) !important; }
@media (max-width: 760px) {
    .video3d { height: auto; min-height: 0; padding: 84px 0 40px; }
    .v3-head { flex-direction: column; align-items: flex-start; }
    .v3-frame { flex: none; height: 56.25vw; }
}

/* heading aligned left, same as the Selected Work section above */
.video3d > .v3-head { width: 100%; align-self: center; text-align: left; justify-content: space-between; }
.v3-head > div { margin-right: auto; }
.v3-heading { font-size: clamp(3.2rem, 10.5vh, 7.4rem) !important; line-height: .95; }
