/* The Video production page (template-parts/service-video-production.php), on top of service.css (the shared sv- parts).
   The clips are CSS drawings of one made-up ad (Cool Breeze, a heating and cooling company), labelled as examples.
   sv-v… = service page, video. */

/* ---------- Hero: where the videos run ---------- */

.sv-made { flex-direction: column; align-items: flex-start; gap: 12px; }
.sv-made__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sv-made__list li { padding: 6px 14px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-size: 14.5px; line-height: 1.3; color: var(--ink); }

/* ---------- The clip: sky, sun, a house and captions; the same scene in every frame ---------- */

.sv-vclip { position: relative; display: block; overflow: hidden; container-type: inline-size; background: linear-gradient(172deg, #9ad9f7 0%, #5bc4f5 34%, #2a6f96 70%, #0d2638 100%); color: #fff; }
.sv-vclip::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 17%; background: rgba(1, 4, 12, .38); }
.sv-vclip__sun { position: absolute; left: 36%; top: 14%; width: 18cqi; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3cqi rgba(242, 153, 74, .22), 0 0 0 7cqi rgba(242, 153, 74, .1); }
.sv-vclip__house { position: absolute; z-index: 1; left: 74%; bottom: 17%; width: 28cqi; transform: translateX(-50%); color: #fff; }
.sv-vclip__house svg { display: block; width: 100%; height: auto; }
.sv-vclip__caps, .sv-vclip__cap { position: absolute; z-index: 2; left: 6cqi; right: 6cqi; bottom: 5%; }
.sv-vclip__caps > span, .sv-vclip__cap { display: block; width: fit-content; max-width: 100%; box-sizing: border-box; margin: 0 auto; padding: .3em .6em; border-radius: .35em; background: rgba(1, 4, 12, .74); font-size: clamp(9px, 6cqi, 21px); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-align: center; }
.sv-vclip__caps > span { position: absolute; left: 0; right: 0; bottom: 0; }
.sv-vclip__caps > span:not([data-cap="1"]) { opacity: 0; }
/* Wide frame: captions top left, clear of the player controls and the frames in front. Vertical frames: a bigger house, captions higher up (clear of the app's buttons). */
.sv-vclip--wide .sv-vclip__caps { top: 13%; bottom: auto; right: auto; width: 58%; }
.sv-vclip--wide .sv-vclip__caps > span { top: 0; bottom: auto; margin: 0; }
.sv-vclip--wide .sv-vclip__house { left: 80%; width: 20cqi; bottom: 17%; }
.sv-vclip--wide .sv-vclip__sun { width: 12cqi; left: 62%; top: 26%; }
.sv-vdemo__wide .sv-vdemo__tag { left: auto; right: 10px; }
.sv-vclip--tall .sv-vclip__house { left: 50%; width: 58cqi; bottom: 11%; }
.sv-vclip--tall .sv-vclip__sun { width: 30cqi; left: 56%; top: 14%; }
.sv-vclip--tall .sv-vclip__caps { bottom: 44%; left: 8cqi; right: 8cqi; }
.sv-vclip--tall .sv-vclip__caps > span { font-size: clamp(9px, 9.5cqi, 18px); }
.sv-vclip--square .sv-vclip__caps > span { font-size: clamp(9px, 6.5cqi, 16px); }

/* ---------- Hero demo: one ad cut three ways (wide, square feed post, vertical) ---------- */

.sv-vdemo { position: relative; width: 100%; max-width: 640px; aspect-ratio: 20 / 17; font-family: var(--font-sans); }
.sv-vdemo__wide, .sv-vdemo__square, .sv-vdemo__phone { position: absolute; box-sizing: border-box; }
.sv-vdemo__wide { left: 0; top: 0; z-index: 1; width: 78%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sv-vdemo__wide .sv-vclip, .sv-vdemo__sqclip .sv-vclip { position: absolute; inset: 0; }
.sv-vdemo__ui { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 18px 14px 10px; background: linear-gradient(transparent, rgba(1, 4, 12, .6)); }
.sv-vdemo__play { width: 0; height: 0; border-left: 10px solid #fff; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sv-vdemo__track { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.sv-vdemo__track i { display: block; height: 100%; background: var(--accent); transform: scaleX(.4); transform-origin: left; }
.sv-vdemo__time { font-family: var(--font-mono); font-size: 11px; color: #fff; }
.sv-vdemo__tag { position: absolute; z-index: 3; left: 10px; top: 10px; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(1, 4, 12, .62); font-family: var(--font-mono); font-size: 10.5px; line-height: 1.5; color: #fff; white-space: nowrap; }
.sv-vdemo__square { left: 8%; bottom: 0; z-index: 2; width: 34%; display: flex; flex-direction: column; background: var(--white); color: var(--ink); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.sv-vdemo__sqclip { position: relative; aspect-ratio: 1; }
.sv-vdemo__phone { right: 0; bottom: 3%; z-index: 3; width: 28%; padding: 5px; background: var(--prm-01); border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.sv-vdemo__phone .sv-vclip { aspect-ratio: 9 / 16; border-radius: 17px; }
.sv-vdemo__phone .sv-vdemo__tag { left: 14px; top: 14px; }

/* Feed post (hero square and the "Ad creatives" tile) */
.sv-vad__head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.sv-vad__head > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.sv-vad__head b { font-size: 12px; line-height: 1.2; font-weight: 600; }
.sv-vad__head small { font-size: 10px; line-height: 1.2; color: var(--muted); }
.sv-vad__avatar { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(160deg, #5bc4f5, #2a6f96); }
.sv-vad__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; font-size: 11.5px; line-height: 1.2; color: var(--ink); }
.sv-vad__foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-vad__btn { flex-shrink: 0; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 500; }

/* Phone side buttons (likes, comments, share) */
.sv-vphone__side { position: absolute; z-index: 3; right: 11%; bottom: 30%; display: flex; flex-direction: column; gap: 8px; }
.sv-vphone__side i { width: 13px; height: 13px; border-radius: 50%; background: rgba(255, 255, 255, .82); }

@media (prefers-reduced-motion: no-preference) {
	.sv-vdemo .sv-vclip__caps > span { animation: 9s ease-in-out infinite both; }
	.sv-vdemo [data-cap="1"] { animation-name: sv-cap-1; }
	.sv-vdemo [data-cap="2"] { animation-name: sv-cap-2; }
	.sv-vdemo [data-cap="3"] { animation-name: sv-cap-3; }
	.sv-vdemo .sv-vclip__sun { animation: sv-sun 9s linear infinite; }
	.sv-vdemo .sv-vclip__house { animation: sv-push 9s linear infinite; }
	.sv-vdemo__track i { animation: sv-progress 9s linear infinite; }
	.sv-vdemo [data-cap-cta] { animation: sv-cta 9s ease-out infinite; }
}
@keyframes sv-cap-1 { 0%, 30% { opacity: 1; transform: none; } 33%, 97% { opacity: 0; transform: translateY(4px); } 100% { opacity: 1; transform: none; } }
@keyframes sv-cap-2 { 0%, 31% { opacity: 0; transform: translateY(4px); } 34%, 63% { opacity: 1; transform: none; } 66%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes sv-cap-3 { 0%, 64% { opacity: 0; transform: translateY(4px); } 67%, 96% { opacity: 1; transform: none; } 99%, 100% { opacity: 0; transform: translateY(4px); } }
@keyframes sv-sun { from { transform: translateY(22%); } to { transform: translateY(-18%); } }
@keyframes sv-push { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.08); } }
@keyframes sv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sv-cta { 0%, 66% { transform: none; box-shadow: 0 0 0 0 rgba(242, 153, 74, .6); } 70% { transform: scale(1.08); } 76%, 100% { transform: none; box-shadow: 0 0 0 10px rgba(242, 153, 74, 0); } }

@media (max-width: 1000px) { .sv-hero__demo { align-items: center; } .sv-hero__demo > .pm-text-mono-badge { align-self: flex-start; } }
@media (max-width: 560px) {
	.sv-vdemo__tag { left: 7px; top: 7px; padding: 2px 7px; font-size: 9.5px; }
	.sv-vdemo__phone { padding: 3px; border-radius: 15px; }
	.sv-vdemo__phone .sv-vclip { border-radius: 12px; }
	.sv-vdemo__phone .sv-vdemo__tag { left: 9px; top: 9px; }
	.sv-vdemo__ui { gap: 8px; padding: 12px 10px 7px; }
	.sv-vdemo__time { font-size: 10px; }
	.sv-vad__head { gap: 6px; padding: 6px 8px; }
	.sv-vad__head b { font-size: 10.5px; }
	.sv-vad__head small { font-size: 9px; }
	.sv-vad__avatar { width: 18px; height: 18px; }
	.sv-vdemo .sv-vad__foot { padding: 6px 8px; font-size: 10px; }
	.sv-vdemo .sv-vad__foot > span:first-child { display: none; }
	.sv-vdemo .sv-vad__btn { flex: 1; padding: 4px 8px; text-align: center; }
	.sv-vphone__side { gap: 5px; }
	.sv-vphone__side i { width: 9px; height: 9px; }
}

/* ---------- What we make: three pictured tiles ---------- */

.sv-formats .sv-get__pic { height: 270px; }
.sv-formats__where { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.sv-formats__where span { padding: 3px 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); font-family: var(--font-mono); font-size: 11.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 1000px) { .sv-gets.sv-formats { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 641px) and (max-width: 1000px) {
	.sv-formats .sv-get { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 28px; padding: 12px 28px 12px 12px; }
	.sv-formats .sv-get__text { padding: 0; }
}

/* Ad creatives: a feed post and its three openings */
.sv-pic--vad { max-width: 380px; flex-direction: row; align-items: center; gap: 14px; }
.sv-vad { flex: 0 0 142px; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 14px 36px rgba(1, 4, 12, .1); }
.sv-vad .sv-vclip { aspect-ratio: 1; }
.sv-vad .sv-vclip__cap { font-size: 8cqi; }
.sv-pic--vad .sv-vad__foot > span:first-child { display: none; }
.sv-pic--vad .sv-vad__btn { flex: 1; text-align: center; }
.sv-vad__alts { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sv-vad__label { margin-bottom: 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--label); }
.sv-vad__alts > span:not(.sv-vad__label) { display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 7px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; line-height: 1.3; }
.sv-vad__alts b { flex-shrink: 0; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--page); font-family: var(--font-mono); font-size: 10.5px; font-weight: 400; }
.sv-vad__alts .is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--white)); }
.sv-vad__alts .is-on b { background: var(--accent); color: var(--on-accent); }

/* Short clips: a phone with captions */
.sv-pic--vshort { flex-direction: row; align-items: center; justify-content: center; gap: 20px; }
.sv-vphone { position: relative; flex: 0 0 116px; padding: 4px; background: var(--prm-01); border-radius: 18px; box-shadow: 0 16px 40px rgba(1, 4, 12, .2); }
.sv-vphone .sv-vclip { aspect-ratio: 9 / 16; border-radius: 14px; }
.sv-vphone .sv-vclip__house { left: 50%; width: 44cqi; bottom: 11%; }
.sv-vphone .sv-vclip__sun { width: 30cqi; left: 56%; }
.sv-vphone .sv-vphone__side { right: 9px; bottom: 32%; gap: 7px; }
.sv-vphone .sv-vphone__side i { width: 11px; height: 11px; }
.sv-vphone__cap { position: absolute; z-index: 3; left: 11px; right: 26px; bottom: 38%; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.sv-vphone__cap span { padding: 2px 5px; border-radius: 4px; background: rgba(1, 4, 12, .74); color: #fff; font-size: 10.5px; line-height: 1.3; font-weight: 600; }
.sv-vphone__cap .is-hl { background: var(--accent); color: var(--on-accent); }
.sv-vphone__who { position: absolute; z-index: 3; left: 12px; bottom: 12px; font-family: var(--font-mono); font-size: 9.5px; color: #fff; }
.sv-pic__chips--col { flex-direction: column; align-items: flex-start; }

/* Brand and explainer videos: a wide player with chapters */
.sv-pic--vbrand { gap: 10px; max-width: 330px; }
.sv-vplayer { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 36px rgba(1, 4, 12, .14); }
.sv-vplayer .sv-vclip { aspect-ratio: 16 / 9; }
.sv-vplayer .sv-vclip__house { left: 76%; width: 22cqi; bottom: 15%; }
.sv-vplayer .sv-vclip__sun { width: 12cqi; left: 8%; top: 40%; }
.sv-vplayer .sv-vclip__cap { bottom: auto; top: 12%; left: 6cqi; right: auto; margin: 0; font-size: 5.5cqi; }
.sv-vplayer__bar { position: absolute; z-index: 3; left: 10px; right: 10px; bottom: 8px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.sv-vplayer__bar i { display: block; width: 38%; height: 100%; border-radius: 2px; background: var(--accent); }
.sv-vchap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.sv-vchap span { display: flex; flex-direction: column; gap: 2px; padding: 6px 7px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; font-size: 10.5px; line-height: 1.25; color: var(--ink); }
.sv-vchap b { font-family: var(--font-mono); font-size: 10px; font-weight: 400; color: var(--label); }
.sv-vchap .is-on { border-color: var(--accent); }

/* ---------- What you get: pictures on the dark panel ---------- */

.sv-vsize { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-soft); }
.sv-vsize i { justify-self: center; width: var(--w); height: var(--h); box-sizing: border-box; border: 1.5px solid var(--ink); border-radius: 3px; }
.sv-vsize b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--label); }
.sv-vcap { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.35; color: var(--ink-soft); }
.sv-vcap b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 400; color: var(--label); }
.sv-row .sv-vtc { margin-right: 10px; color: var(--label); font-size: 11.5px; }

/* ---------- Videos we've made (hod_cases( 'video-production' ); hidden while the list is empty) ----------
   Two to a row (one on a phone). The first four show; "Show more" (service-video-production.js) adds four at a time,
   and without the script all of them show. A vertical or square video keeps a phone-like width in its cell.
   The showreel plays in the hero (.sv-hreel). */

.sv-reels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 4.5vw, 64px) clamp(16px, 2.4vw, 36px); margin: 0; padding: 0; list-style: none; }
.sv-reel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.js .sv-reel--later:not(.is-shown) { display: none; }
.sv-reel:not(.sv-reel--wide) .sv-reel__media { width: min(100%, 340px); }
.sv-reel__media { position: relative; overflow: hidden; background: var(--prm-01); border-radius: 14px; box-shadow: var(--shadow-media); }
.sv-reel__media iframe, .sv-reel__media video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.sv-reel .sv-work__text { gap: 8px; padding-right: 0; }
.sv-reel__name { margin: 0; font-size: clamp(22px, 1.8vw, 28px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 400; color: var(--ink); }
.sv-reel .sv-work__line { font-size: 15.5px; }
.sv-reel__concept { align-self: flex-start; display: inline-flex; padding: 4px 9px; border: 1px dashed var(--prm-c-05); border-radius: 8px; font-family: var(--font-mono); font-size: 11px; line-height: 1.5; color: var(--muted); }
/* No file yet: a dark frame that says so. */
.sv-reel__soon { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: radial-gradient(120% 80% at 50% 30%, #1d2c38 0%, var(--prm-01) 70%); color: var(--prm-c-05); }
.sv-reel__play { width: 52px; height: 52px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 50%; position: relative; }
.sv-reel__play::after { content: ""; position: absolute; left: 50%; top: 50%; margin: -8px 0 0 -4px; border-left: 14px solid rgba(255, 255, 255, .45); border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.sv-reel__soon-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
/* The large play button over a video file (shown by the script); the native controls take over once it plays. */
.sv-vplay { position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0; border: 0; border-radius: 50%; background: rgba(1, 4, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); cursor: pointer; transition: background .25s, transform .25s; }
.sv-vplay span { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px; border-left: 19px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.sv-vplay:hover { background: var(--accent); transform: scale(1.06); }
.sv-vplay:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.sv-vplay[hidden], .sv-more[hidden] { display: none; }
.sv-more { display: flex; justify-content: center; margin-top: clamp(40px, 4.5vw, 64px); }
.sv-more__btn { min-height: 48px; padding: 0 28px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: none; font: inherit; font-size: 16px; color: var(--ink); cursor: pointer; transition: border-color .2s; }
.sv-more__btn:hover { border-color: var(--ink); }
.sv-more__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 640px) { .sv-reels { grid-template-columns: minmax(0, 1fr); } .sv-vplay { width: 60px; height: 60px; margin: -30px 0 0 -30px; } }

/* The showreel in the hero, in place of the illustrated demo. */
.sv-hreel { gap: 16px; }
.sv-hreel__media { width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.sv-hreel__text { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
@media (max-width: 1000px) { .sv-hreel { align-items: stretch; } }
@media (prefers-reduced-motion: reduce) { .sv-vplay { transition: none; } .sv-vplay:hover { transform: none; } }
