/* Sitekit V2 — CMI Video Solutions. Glue only; everything else is settings. */
/* The page scales with the screen above 1440 (as the Readymag original does): every
   size on the site is in rem, so this one rule is the scale. 16px up to 1440 wide. */
html { font-size: clamp(16px, calc(100vw / 90), 40px); }
html, body { overflow-x: clip; }
html.cv-lock, html.cv-lock body { overflow: hidden; }
.elementor-widget-text-editor p { margin-block-start: 0; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; margin-block-end: 0 !important; }

/* Fixed things clear the WP admin bar when logged in (core's own height variable;
   below 600px core makes the bar scroll away, so no offset there). */
:root { --sk-admin-offset: 0px; }
body.admin-bar { --sk-admin-offset: var(--wp-admin--admin-bar--height, 32px); }
@media screen and (max-width: 600px) { body.admin-bar { --sk-admin-offset: 0px; } }

/* Links in copy — the Readymag link style: black, underlined, violet on hover. */
.cv-copy a { color: inherit; text-decoration: underline; text-underline-offset: .2em;
  text-decoration-thickness: 1px; transition: color .2s ease; }
.cv-copy a:hover, .cv-copy a:focus-visible { color: #6600FF; }
.cv-back a:hover { text-decoration: underline; }

/* Lists: news bullets sit inline, POV / case lists hang (as the source). */
.cv-list ul { margin: 0; padding: 0; }
.cv-news ul { list-style: none; }
.cv-news li + li { margin-top: .55em; }
.cv-news li::before { content: "\2022\00a0"; }
.cv-pov ul { padding-left: 1.45em; list-style: disc; }
.cv-pov li { margin-top: 1em; padding-left: .1em; }
.cv-pov ul + p { margin-top: 2.7em; }
.cv-src-list p { margin-top: 1.1em; }
.cv-src-list p:first-child { margin-top: 0; letter-spacing: .17em; text-transform: uppercase; }
.cv-src-list ul { margin: .3em 0 0; padding-left: 1.1em; }

/* Hero letters (split by the page script). */
.cv-letters .cv-l { display: inline-block; will-change: transform, translate; transition: translate .18s ease-out; }
.cv-letters .elementor-heading-title { padding-left: .24em; }  /* balance the trailing letter-spacing */

/* Team — avatars grow on hover, open a bio layer over the stage. */
.cv-av { cursor: pointer; transition: transform .3s ease; }
.cv-av img { border-radius: 50%; filter: drop-shadow(0 0 4px rgba(102, 0, 255, .16)); }
.cv-av:hover, .cv-av:focus-visible { transform: scale(1.2); outline: none; }
.cv-av:focus-visible img { outline: 2px solid #6600FF; outline-offset: 3px; }
.cv-team-head, .cv-arrow { transition: opacity .2s ease; }
.cv-team.is-open .cv-team-head, .cv-team.is-open .cv-arrow { opacity: 0; }
.cv-team-layer { top: 0; bottom: 0; opacity: 0; visibility: hidden;
  transition: opacity .2s ease, visibility 0s linear .2s; }
.cv-team.is-open .cv-team-layer { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.cv-bio { display: none !important; }
.cv-bio.is-active { display: flex !important; }
.cv-cut { opacity: 0; transition: opacity .2s ease; }
.cv-cut.is-active { opacity: 1; }
.cv-circle { aspect-ratio: 1 / 1; }
.cv-bio-close .elementor-icon { cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
  transition: background-color .2s ease, color .2s ease; }
.cv-bio-close .elementor-icon:hover, .cv-bio-close .elementor-icon:focus-visible {
  background-color: rgba(200, 0, 0, .8) !important; color: #FFFFFF !important; fill: #FFFFFF !important; }
.cv-bio-close .elementor-icon:hover svg { fill: #FFFFFF !important; }
@media (max-width: 1024px) {
  .cv-team-layer { position: fixed !important; inset: 0; z-index: 1000 !important;
    overflow-y: auto; justify-content: flex-start !important; background-color: #F4F4F4 !important; }
  .cv-team-layer { top: var(--sk-admin-offset, 0px) !important; }
  .cv-bio-close { position: fixed !important; top: calc(16px + var(--sk-admin-offset, 0px)) !important;
    right: 16px; left: auto !important; }
}
/* In the editor every bio is shown, stacked, so each one can be edited. */
.elementor-editor-active .cv-team-layer { position: relative !important; opacity: 1; visibility: visible; }
.elementor-editor-active .cv-bio { display: flex !important; padding: 16px 0; border-top: 1px dashed #bbb; }
.elementor-editor-active .cv-cut:first-child { opacity: 1; }

/* Engagement — the screen, its three video panels, tiles and sources popover. */
.cv-screen { aspect-ratio: 1 / 1; }
.cv-intro video, .cv-tab-video video { object-fit: cover; }
.cv-dim { top: 0; bottom: 0; pointer-events: none; }
.cv-panel { top: 0; bottom: 0; opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s; }
.cv-panel.is-active { opacity: 1; visibility: visible; transition: opacity .3s ease; }
.cv-intro video { border-radius: .8688rem; }
/* Phones: no screen and no tiles — the three videos stacked under their titles (as
   the source's phone layout), and the sources list always open. */
@media (max-width: 767px) {
  .cv-tiles { display: none !important; }
  .cv-screen { aspect-ratio: auto; background: none !important; box-shadow: none !important; }
  .cv-intro, .cv-dim, .cv-src-btn, .cv-src-x { display: none !important; }
  .cv-panel { position: static !important; opacity: 1 !important; visibility: visible !important; background: none !important;
    padding: 0 !important; margin-bottom: 32px; }
  .cv-panel:last-child { margin-bottom: 0; }
  .cv-plabel { position: static !important; margin-bottom: 10px; }
  .cv-panel .cv-tab-video video { border-radius: 12px; }
  .cv-src-panel { position: static !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; }
}
.cv-tile { cursor: pointer; }
.cv-tile:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }
.cv-tile-x { opacity: 0; transform: scale(.6); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; }
.cv-tile.is-active .cv-tile-x { opacity: 1; transform: none; }
.cv-tile-x .elementor-icon { transition: background-color .2s ease, color .2s ease; }
.cv-tile.is-active:hover .cv-tile-x .elementor-icon { background-color: rgba(255, 84, 0, .8) !important;
  color: #EFEFEF !important; fill: #EFEFEF !important; }
.cv-tile.is-active:hover .cv-tile-x .elementor-icon svg { fill: #EFEFEF !important; }
.cv-src-btn .elementor-icon { cursor: pointer; transition: background-color .2s ease; }
.cv-src-x { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.cv-engage.src-open .cv-src-x { opacity: 1; pointer-events: auto; }
.cv-engage.src-open .cv-src-btn { opacity: 0; }
.cv-src-panel { opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.cv-engage.src-open .cv-src-panel { opacity: 1; visibility: visible; transform: none;
  transition: opacity .2s ease, transform .2s ease; }
.elementor-editor-active .cv-src-panel, .elementor-editor-active .cv-panel { opacity: 1; visibility: visible; }

/* Behind the scenes photo + its link chip */
.cv-bts-photo img { display: block; }
.cv-chip { pointer-events: none; }

/* Slideshows: fixed 524:296 frame, round arrow buttons like the source. */
.cv-car .swiper-slide-image { display: block; width: 100%; aspect-ratio: 524 / 296; object-fit: cover; }
.cv-case-car .swiper-slide-image { aspect-ratio: auto; object-fit: contain; }
.cv-car .elementor-swiper-button { width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: rgba(0, 0, 0, .28); display: flex; align-items: center; justify-content: center; }
.cv-case-car .elementor-swiper-button { background: rgba(102, 0, 255, .08); }
.cv-case img { box-shadow: 0 2px 18px rgba(0, 0, 0, .12); }
