/* Showcase: Video, an editing timeline (scripts/services/showcase/video.html, assets/js/show/video.js) */
.show--video { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 40px 24px 100px; scroll-margin-top: 40px; }
.show--video .sec-head { margin-bottom: 34px; }
.show--video .sec-head__lead { max-width: 430px; }
.show--video .ved { position: relative; padding: 12px; border-radius: 28px; color: #fff; box-shadow: 0 40px 80px -30px rgba(17,17,17,.4); }
.show--video :where(.ved__top, .ved__file, .ved__dots, .ved__tabs, .ved__ctl, .ved__fmts, .ved__fmts button, .ved__tc, .ved__hd, .ved__vu, .ved-cap) { display: flex; align-items: center; }
.show--video :where(.ved__insp, .ved__row, .ved__tl) { border: 1px solid var(--dark-line); }

/* Top bar: file name, tabs, Eksempel */
.show--video .ved__top { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; padding: 2px 4px 12px 8px; }
.show--video .ved__file { gap: 14px; min-width: 0; font-size: 13px; color: var(--dark-muted); white-space: nowrap; }
.show--video .ved__file > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.show--video .ved__dots { gap: 6px; }
.show--video .ved__dots i { width: 10px; height: 10px; border-radius: 50%; background: #343434; }
.show--video .ved__top .tag-eks { justify-self: end; }
.show--video :is(.ved__tabs, .ved__fmts) { gap: 3px; padding: 4px; background: #1b1b1b; border: 1px solid var(--dark-line); border-radius: 999px; }
.show--video :is(.ved__tabs, .ved__fmts) button { border: 0; cursor: pointer; background: none; color: var(--dark-muted); border-radius: 999px; padding: 9px 18px; font: 700 14px/1.1 var(--body); white-space: nowrap; transition: background .25s, color .25s; }
.show--video :is(.ved__tabs, .ved__fmts) button.is-on { background: #fff; color: var(--ink); }

/* Preview monitor and properties */
.show--video .ved__mid { display: grid; grid-template-columns: 1fr 236px; gap: 10px; }
.show--video .ved__stage { display: grid; place-items: center; height: clamp(300px, 29vw, 392px); overflow: hidden; border-radius: 16px; background: radial-gradient(#202020 1px, transparent 1.4px) 0 0 / 18px 18px, #0b0b0b; }
.show--video .ved__frame { position: relative; width: 62%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 30px 60px -24px #000; }
.show--video :is(.ved__pic, .vs, .vs__scene, .vs__ph, .vs__ex, .vs__mo) { position: absolute; inset: 0; overflow: hidden; }
.show--video .ved__pic { container-type: size; }
.show--video .ved__guide { position: absolute; inset: 7%; display: grid; place-items: center; border: 1.5px dashed rgba(255,255,255,.75); border-radius: 4px; opacity: 0; transition: opacity .5s; }
.show--video .ved__guide span { background: var(--accent); font: 800 9cqmin/1 var(--display); padding: .3em .45em; border-radius: .25em; }
.show--video .is-flash .ved__guide { opacity: 1; transition-duration: .12s; }
.show--video .ved__insp { display: flex; flex-direction: column; padding: 16px 16px 14px; background: #181818; border-radius: 16px; font-size: 13px; }
.show--video .ved__ih { margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.show--video .ved__row { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-width: 0 0 1px; }
.show--video :is(.ved__row, .ved__to) span { color: var(--dark-muted); white-space: nowrap; }
.show--video .ved__row b { text-align: right; }
.show--video .ved__to { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding: 12px 14px; background: #222; border-radius: 12px; }
.show--video .ved__to b { font: 800 19px/1.08 var(--display); letter-spacing: -.02em; }

/* Transport: play, timecode, formats */
.show--video .ved__ctl { gap: 14px; padding: 12px 4px 10px; }
.show--video .ved__play { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: background .25s, color .25s, transform .3s; }
.show--video .ved__play svg { width: 20px; height: 20px; fill: currentColor; }
.show--video .ved__play:active { transform: scale(.9); }
@media (hover: hover) { .show--video .ved__play:hover { background: var(--accent); color: #fff; } }
.show--video .ved__ip, .show--video .is-paused .ved__iz, html:not(.motion) .show--video .ved__play { display: none; }
.show--video .is-paused .ved__ip { display: block; }
.show--video .ved__tc { font-size: 15px; font-variant-numeric: tabular-nums; white-space: pre; }
.show--video .ved__dur { color: var(--dark-muted); }
.show--video .ved__fmts { margin-left: auto; }
.show--video .ved__fmts button { gap: 8px; padding: 8px 14px; font-size: 13px; }
.show--video .ved__ar { width: 9px; height: 16px; border: 1.6px solid; border-radius: 2.5px; opacity: .8; }
.show--video [data-ved-fmt="11"] .ved__ar { width: 13px; height: 13px; }
.show--video [data-ved-fmt="169"] .ved__ar { width: 18px; height: 11px; }

/* Timeline */
.show--video .ved__tl { display: grid; grid-template-columns: 92px 1fr; padding: 0 10px 10px 0; background: #181818; border-radius: 16px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.show--video :is(.ved__heads, .ved__lanes) { display: grid; grid-template-rows: 30px repeat(3, 42px); gap: 6px; }
.show--video .ved__hd { gap: 8px; padding: 0 8px 0 12px; font-size: 12px; font-weight: 700; color: var(--dark-muted); }
.show--video .ved__hd i { flex: none; display: grid; place-items: center; width: 24px; height: 20px; border-radius: 6px; background: #2a2a2a; color: #fff; font: normal 700 10px/1 var(--body); }
.show--video .ved__vu { gap: 2px; height: 16px; margin-left: auto; }
.show--video .ved__vu b { width: 3px; height: 100%; border-radius: 2px; background: linear-gradient(to top, var(--green) 60%, var(--yellow) 85%, var(--accent)); transform-origin: 50% 100%; transform: scaleY(.15); }
.show--video .ved__lanes { position: relative; cursor: ew-resize; touch-action: pan-y; }
.show--video .ved__ruler { position: relative; border-bottom: 1px solid var(--dark-line); background: repeating-linear-gradient(90deg, #3a3a3a 0 1px, transparent 1px calc(100% / var(--n, 20))) 0 100% / 100% 6px no-repeat; }
.show--video .ved__nums span { position: absolute; z-index: 2; top: 7px; transform: translateX(-50%); font-size: 11px; color: #8a857d; font-variant-numeric: tabular-nums; }
.show--video .ved__nums span:first-child { transform: none; }
.show--video .ved__lane { position: relative; border-radius: 9px; background: rgba(255,255,255,.03); }
.show--video .ved__clip { --d: 10; position: absolute; top: 0; bottom: 0; left: calc(var(--s) / var(--d) * 100% + 1px); width: calc((var(--e) - var(--s)) / var(--d) * 100% - 2px); display: flex; align-items: flex-end; padding: 0 8px 5px; overflow: hidden; border-radius: 8px; font: normal 700 11px/1.2 var(--body); transition: opacity .3s, transform .5s cubic-bezier(.3,1.5,.5,1), visibility .3s, box-shadow .25s; transition-delay: calc(var(--i, 0) * 45ms); }
.show--video .ved__clip[data-tab="e"] { --d: 15; }
.show--video .ved__clip[data-tab="m"] { --d: 8; }
.show--video .ved__clip:not(.is-tab) { opacity: 0; visibility: hidden; transform: translateY(12px) scale(.92); transition-delay: 0s; }
.show--video .ved__clip b { position: relative; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show--video .ved__clip.is-live { box-shadow: inset 0 0 0 2px #fff; }
.show--video .ved__clip--p { color: #fff; background: #2c2c2c 0 0 / auto 100% repeat-x; }
.show--video .ved__clip--p::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgba(0,0,0,.7)); }
.show--video .ved__clip--g { color: #1f4d3d; background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(31,77,61,.14) 38px 40px), #e6dccb; }
.show--video .ved__clip--g[data-tab="r"] { color: #f6efe3; background-color: #1f4d3d; }
.show--video .ved__clip--k { color: #fff; background: #333; }
.show--video .ved__kf { position: absolute; top: 9px; width: 9px; height: 9px; margin-left: -4.5px; background: var(--accent); transform: rotate(45deg); border-radius: 1.5px; }
.show--video .ved__clip--t { align-items: center; padding-block: 0; color: var(--ink); background: var(--yellow); }
.show--video .ved__clip--a { color: #bfe8cd; background: #163a26; }
.show--video .ved__clip--a svg { position: absolute; inset: 4px 0; width: 100%; height: calc(100% - 8px); fill: none; stroke: #3fbf72; stroke-width: 2.2px; stroke-linecap: round; }
.show--video .ved__clip--a b { padding: 1px 6px; border-radius: 4px; background: rgba(22,58,38,.85); }
.show--video .ved__mark { z-index: 1; top: 4px; height: 18px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 4px; border-left: 2px solid var(--accent); background: rgba(224,85,43,.22); color: #ffb197; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.show--video .ved__ph { position: absolute; z-index: 3; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--accent); pointer-events: none; will-change: transform; }
.show--video .ved__ph i { position: absolute; top: 2px; left: -6px; width: 14px; height: 18px; background: var(--accent); border-radius: 4px 4px 7px 7px; box-shadow: 0 4px 12px rgba(224,85,43,.5); }

/* The example video. Sizes in cqmin, so every format keeps its proportions */
.show--video .vs { transition: opacity .35s; }
.show--video .vs:not(.is-tab), .show--video .vs [data-on]:not(.is-on) { visibility: hidden; }
.show--video .vs:not(.is-tab) { opacity: 0; }
.show--video :where(.vs [data-k]) { display: inline-block; }
.show--video .vs svg [data-k] { transform-box: fill-box; transform-origin: 50% 50%; }
.show--video .vs__scene::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0,0,0,.55)); }
.show--video .vs__ph { width: 100%; height: 100%; object-fit: cover; }
.show--video .vs__sub { position: absolute; z-index: 2; left: 5%; right: 5%; bottom: 9%; margin: 0; text-align: center; color: #fff; font: 800 10cqmin/1.05 var(--display); letter-spacing: -.02em; -webkit-text-stroke: .15em #111; paint-order: stroke fill; text-shadow: 0 .08em .3em rgba(0,0,0,.45); }
.show--video .vs__sub .hl { color: var(--yellow); }
.show--video [data-fmt="916"] .vs__sub { bottom: 30%; font-size: 13.5cqmin; }
.show--video [data-fmt="11"] .vs__sub { bottom: 11%; font-size: 11cqmin; }
.show--video :is(.vs__end, .vs__mo, .vs__lk) { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.show--video .vs__end { gap: 2.4cqmin; background: radial-gradient(circle at 50% 30%, #2a6350, #1f4d3d 70%); color: #f6efe3; }
.show--video .vs__end::after { display: none; }
.show--video .vs__end .nv { font-size: 20cqmin; margin-bottom: 1cqmin; }
.show--video .vs__nm { font: 800 13cqmin/1 var(--display); letter-spacing: -.045em; }
.show--video .vs__ln { font-size: 4.6cqmin; opacity: .8; }
.show--video .vs__cta { margin-top: 2.4cqmin; padding: 1.8cqmin 4.4cqmin; border-radius: 999px; background: #e0a458; color: #1d1a14; font-size: 5cqmin; font-weight: 700; }

/* Nordvik's mark: two roof planks and a beam */
.show--video .nv { position: relative; display: inline-block; width: 1em; height: 1em; flex: none; }
.show--video .nv i { position: absolute; top: .37em; left: .02em; width: .6em; height: .17em; border-radius: .05em; background: #e0a458; transform: rotate(-40deg); }
.show--video .nv i:nth-child(2) { left: .38em; transform: rotate(40deg); }
.show--video .nv i:nth-child(3) { top: .74em; left: .15em; width: .7em; background: #f6efe3; transform: none; }

/* Explainer: cream, icons and short lines */
.show--video .vs--e { background: #f2ede4; color: #1f4d3d; }
.show--video .vs__brand { position: absolute; z-index: 1; top: 5cqmin; left: 5cqmin; display: flex; align-items: center; gap: 1.6cqmin; font: 800 4.6cqmin/1 var(--display); }
.show--video .vs__brand .nv { font-size: 5.4cqmin; }
.show--video .vs--e .nv i { background: #c98a4b; }
.show--video .vs--e .nv i:nth-child(3) { background: #1f4d3d; }
.show--video .vs__ex { display: flex; align-items: center; justify-content: center; gap: 6cqmin; padding: 0 8cqw; }
.show--video .vs__ic { flex: none; display: grid; place-items: center; width: 40cqmin; height: 40cqmin; border-radius: 50%; background: #fff; box-shadow: 0 2cqmin 5cqmin -2cqmin rgba(31,77,61,.35); }
.show--video .vs__ic svg { width: 62%; height: 62%; overflow: visible; fill: none; stroke: #1f4d3d; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.show--video .vs__ic .wd { stroke: #c98a4b; }
.show--video .vs__ic .dt { fill: #c98a4b; stroke: none; }
.show--video .vs__ic .tp { transform-origin: 0 50%; }
.show--video .vs__ic text { fill: #1f4d3d; stroke: none; font: 800 9px var(--display); }
.show--video .vs__tx { margin: 0; font: 800 9.5cqmin/1.02 var(--display); letter-spacing: -.04em; }
.show--video .vs__tx > span { display: block; }
.show--video .vs .vs__em { color: #c98a4b; }
.show--video .vs__tx small { display: block; margin-top: 2.6cqmin; font: 700 4.2cqmin/1 var(--body); letter-spacing: 0; color: var(--muted); }
.show--video :is([data-fmt="916"], [data-fmt="11"]) .vs__ex { flex-direction: column; text-align: center; padding: 0 7cqw; }
.show--video [data-fmt="916"] .vs__ex { gap: 8cqmin; }
.show--video [data-fmt="916"] .vs__ic { width: 58cqmin; height: 58cqmin; }
.show--video [data-fmt="916"] .vs__tx { font-size: 12cqmin; }
.show--video [data-fmt="11"] .vs__ic { width: 34cqmin; height: 34cqmin; }

/* Motion graphics: dark green, logo and type */
.show--video .vs--m { background: radial-gradient(circle at 50% 40%, #1d4a3a, #102a21 75%); color: #f6efe3; }
.show--video .vs__lk { gap: 2.6cqmin; }
.show--video .vs__lk .nv { font-size: 22cqmin; }
.show--video .vs__word { position: relative; display: flex; font: 800 15cqmin/1 var(--display); letter-spacing: -.05em; }
.show--video .vs__tag { font-size: 4.6cqmin; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.show--video .vs__dot { position: absolute; top: .02em; right: -.24em; width: .17em; height: .17em; border-radius: 50%; background: #e0a458; }
.show--video .vs__bar { width: 60cqmin; height: 1.2cqmin; border-radius: 1cqmin; background: #e0a458; transform-origin: 0 50%; }
.show--video .vs__kin b { position: relative; font: 800 17cqmin/.98 var(--display); letter-spacing: -.05em; }
.show--video :is(.vs__orb, .vs__ring) { position: absolute; left: 50%; top: 50%; width: 66cqmin; height: 66cqmin; margin: -33cqmin; border-radius: 50%; background: rgba(224,164,88,.16); }
.show--video .vs__ring { width: 86cqmin; height: 86cqmin; margin: -43cqmin; background: none; border: .8cqmin dashed rgba(246,239,227,.3); }

/* Under the editor */
.show--video .ved-cap { justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; margin-top: 16px; padding: 18px 18px 18px 26px; background: var(--cream); border-radius: 24px; }
.show--video .ved-cap p { margin: 0; font-size: 16px; line-height: 1.45; color: var(--muted); transition: opacity .25s; }
.show--video .ved-cap p b { display: block; margin-bottom: 4px; font: 800 26px/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); }
.show--video .ved-cap.is-swap p { opacity: 0; }
.show--video .ved-cap__go { padding: 16px 26px; font-size: 16px; }
html:not(.motion) .show--video :is(.vs, .ved__clip, .ved__guide) { transition: none; }

@media (max-width: 999px) {
  .show--video .ved__mid { grid-template-columns: 1fr; }
  .show--video .ved__insp { display: none; }
}
@media (max-width: 699px) {
  .show--video { padding: 40px 20px 80px; }
  .show--video .sec-head { margin-bottom: 26px; }
  .show--video .ved { padding: 8px; border-radius: 22px; }
  .show--video .ved__top { grid-template-columns: 1fr auto; gap: 10px; padding: 4px 4px 10px 8px; }
  .show--video .ved__tabs { grid-column: 1 / -1; grid-row: 2; }
  .show--video .ved__tabs button { flex: 1 1 auto; padding: 9px 8px; font-size: 13px; }
  .show--video :is(.ved__long, .ved__dur, .ved__ar, .ved__mark, .ved__hd > span) { display: none; }
  .show--video .ved__stage { height: 300px; border-radius: 14px; }
  .show--video .ved__ctl { gap: 10px; padding: 10px 2px 8px; }
  .show--video .ved__play { width: 40px; height: 40px; }
  .show--video .ved__tc { font-size: 14px; }
  .show--video .ved__fmts button { padding: 8px 10px; font-size: 12.5px; }
  .show--video .ved__tl { grid-template-columns: 40px 1fr; padding-right: 8px; border-radius: 14px; }
  .show--video :is(.ved__heads, .ved__lanes) { grid-template-rows: 28px repeat(3, 36px); gap: 5px; }
  .show--video .ved__hd { padding-left: 8px; }
  .show--video .ved__nums span { font-size: 10px; }
  .show--video .ved__clip { padding-inline: 6px; font-size: 10px; border-radius: 6px; }
  .show--video .ved__clip--a svg { stroke-width: 1.3px; }
  .show--video .ved-cap { padding: 18px; border-radius: 20px; }
  .show--video .ved-cap p b { font-size: 22px; }
  .show--video .ved-cap__go { width: 100%; text-align: center; }
}
