/* ============================================================
   KIMOVA STUDIO — style.css
   Shared across all pages. No inline <style> blocks anywhere.
   ============================================================ */

/* === Variables === */
:root {
  --bg: #090909;
  --surface: #111111;
  --border: rgba(255, 255, 255, 0.1);
  --border-hover: rgba(255, 255, 255, 0.25);
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-muted: rgba(255, 255, 255, 0.3);
  --text-faint: rgba(255, 255, 255, 0.2);
  --transition: all 0.2s ease;
}

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
}

/* ============================================================
   NAV — shared across all pages
   ============================================================ */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  background: #090909;
  z-index: 10;
}

.logo {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

/* ============================================================
   SECTION HEADER PATTERN — label + rule
   ============================================================ */

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.section-label {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   FOOTER — shared across all pages
   ============================================================ */

footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */

.hero {
  position: relative;
  height: 100vh;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 56px 48px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-play {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-play-tri {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.4);
  margin-left: 4px;
}

.reel-text {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9, 9, 9, 0.92) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  max-width: 680px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  max-width: 520px;
}

/* ============================================================
   HOMEPAGE — WORK SECTION
   ============================================================ */

.section {
  padding: 80px 48px 0;
}

/* Card grid — dividers via gap + background trick */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card {
  background: #090909;
  text-decoration: none;
  color: #fff;
  display: block;
  transition: background 0.2s ease;
}

.card:hover {
  background: #111;
}

.card:hover .card-title {
  color: #fff;
}

.card:hover .thumb-inner {
  transform: scale(1.025);
}

.thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.thumb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover loop video — hidden by default, fades in on card hover */
.thumb-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover .thumb-video {
  opacity: 1;
}

.thumb-label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.2;
}

.card-body {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.card-num {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.card-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.card-tags {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

/* ============================================================
   HOMEPAGE — ABOUT SECTION
   ============================================================ */

.about {
  padding: 80px 48px 0;
}

.about-frame {
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.about-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.about-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* iframe fills the about-video area in background mode */
.about-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 0;
}

.about-video:hover .video-hover {
  opacity: 1;
}

.video-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}

.vid-play {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vid-tri {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid rgba(255, 255, 255, 0.3);
  margin-left: 3px;
}

.vid-idle-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

.video-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 2;
}

.hover-play {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hover-tri {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.8);
  margin-left: 4px;
}

.hover-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.about-text {
  padding: 32px 40px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-col p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
}

.about-col:first-child p {
  color: rgba(255, 255, 255, 0.82);
}

/* ============================================================
   HOMEPAGE — CONTACT SECTION
   ============================================================ */

.contact {
  padding: 80px 48px 0;
}

.contact-inner {
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.contact-headline {
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.contact-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #090909;
  background: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.contact-btn:hover {
  opacity: 0.85;
}

.contact-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.contact-linkedin {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}

.contact-linkedin:hover {
  color: #fff;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  width: 100%;
  max-width: 900px;
  position: relative;
}

.lightbox-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.lightbox-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lightbox-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: 'Poppins', -apple-system, sans-serif;
}

.lightbox-close:hover {
  color: #fff;
}

/* ============================================================
   CASE STUDY — SHARED
   ============================================================ */

/* Hero */
.cs-hero {
  padding: 72px 48px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cs-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}

.cs-num {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.2em;
}

.cs-meta-rule {
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.cs-tags {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.08em;
}

.cs-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 16px;
}

.cs-sub {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  font-weight: 300;
}

/* Video wrapper — 16/9 responsive iframe */
.cs-video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
}

.cs-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Two-column text sections */
.cs-content {
  padding: 0 48px;
}

.cs-section {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 52px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  align-items: start;
}

.cs-section-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding-top: 4px;
}

.cs-section-text {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 300;
  max-width: 620px;
}

/* Result — standalone, own horizontal padding */
.cs-result {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  padding: 52px 48px;
  align-items: start;
}

.cs-result-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  padding-top: 4px;
}

.cs-result-text {
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  max-width: 580px;
}

/* Next project */
.cs-next {
  margin: 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 40px;
  transition: background 0.2s ease;
}

.cs-next:hover {
  background: #111;
}

.cs-next:hover .cs-next-arrow {
  color: #fff;
  transform: translateX(4px);
}

.cs-next-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 8px;
}

.cs-next-title {
  font-size: 20px;
  font-weight: 500;
}

.cs-next-tags {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 6px;
}

.cs-next-arrow {
  font-size: 24px;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.2s, transform 0.2s;
}

/* ============================================================
   VALINOR — SECOND VIDEO + STATS
   ============================================================ */

.valinor-second-video {
  margin: 0 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.valinor-second-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.valinor-second-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
}

.valinor-second-meta {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.08em;
}

.valinor-second-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
}

.valinor-second-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.valinor-stats {
  margin: 52px 48px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 36px 40px;
  display: flex;
  gap: 56px;
  align-items: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 52px;
  background: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   ELASTIC — 1 + 3 VIDEO BLOCK
   ============================================================ */

.elastic-video-block {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.elastic-main-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08132a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.elastic-main-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.elastic-main-badge {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  z-index: 1;
  pointer-events: none;
}

.elastic-main-num {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.15em;
  z-index: 1;
  pointer-events: none;
}

.elastic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.elastic-card {
  background: #090909;
  transition: background 0.2s;
}

.elastic-card:hover {
  background: #0f0f0f;
}

.elastic-card:hover .elastic-card-play {
  border-color: rgba(255, 255, 255, 0.35);
}

.elastic-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #08132a;
}

.elastic-card-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.elastic-card-num {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.15em;
  z-index: 1;
  pointer-events: none;
}

.elastic-card-body {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.elastic-card-partner {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}

.elastic-card-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  letter-spacing: 0.04em;
}

/* ============================================================
   FLOWO — FEATURE ANIMATIONS SECTION
   ============================================================ */

.flowo-features {
  padding: 52px 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.flowo-features-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.flowo-features-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.flowo-features-rule {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.flowo-features-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.6;
}

/* Browser mockup frame */
.product-frame {
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.frame-bar {
  background: #f5f0e8;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(55, 35, 15, 0.1);
}

.frame-dots {
  display: flex;
  gap: 6px;
}

.frame-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(55, 35, 15, 0.15);
}

.frame-url {
  flex: 1;
  background: rgba(55, 35, 15, 0.06);
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 10px;
  color: rgba(55, 35, 15, 0.3);
  letter-spacing: 0.04em;
  text-align: center;
}

.frame-tabs {
  background: #fffdf8;
  display: flex;
  border-bottom: 1px solid rgba(55, 35, 15, 0.08);
  padding: 0 24px;
}

.flowo-tab {
  padding: 14px 20px;
  font-size: 12px;
  font-family: 'Poppins', -apple-system, sans-serif;
  color: rgba(55, 35, 15, 0.35);
  cursor: pointer;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
  user-select: none;
}

.flowo-tab.active {
  color: #37352f;
  border-bottom-color: #b8624a;
}

.flowo-tab:hover:not(.active) {
  color: rgba(55, 35, 15, 0.6);
}

.frame-content {
  background: #ede8df;
  aspect-ratio: 16 / 9;
  position: relative;
}

.frame-content iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   RESPONSIVE — 768px and below
   ============================================================ */

@media (max-width: 768px) {
  /* Nav */
  nav {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Hero */
  .hero {
    padding: 56px 20px;
  }

  /* Work section */
  .section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  /* About */
  .about {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-text {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 20px;
  }

  /* Contact */
  .contact {
    padding-left: 20px;
    padding-right: 20px;
  }

  .contact-inner {
    padding: 36px 24px;
  }

  /* Footer */
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Case study shared */
  .cs-hero {
    padding-left: 20px;
    padding-right: 20px;
  }

  .cs-content {
    padding: 0 20px;
  }

  .cs-section {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cs-result {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 52px 20px;
  }

  .cs-next {
    margin: 0 20px;
  }

  /* Valinor */
  .valinor-second-video {
    margin: 0 20px;
  }

  .valinor-second-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .valinor-stats {
    margin: 52px 20px 0;
    flex-wrap: wrap;
    gap: 28px;
  }

  /* Elastic */
  .elastic-grid {
    grid-template-columns: 1fr;
  }

  /* Flowo */
  .flowo-features {
    padding-left: 20px;
    padding-right: 20px;
  }

  .frame-tabs {
    overflow-x: auto;
  }
}

/* ============================================================
   VIDEO OVERLAY — hover to reveal UI, click for sound
   Works on all Vimeo embeds using background=1 (muted autoplay)
   ============================================================ */

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* Reveal on parent hover */
.cs-video-wrap:hover .video-overlay,
.elastic-main-wrap:hover .video-overlay,
.elastic-card-thumb:hover .video-overlay,
.valinor-second-wrap:hover .video-overlay,
.frame-content:hover .video-overlay,
.about-video:hover .video-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Permanently hide after user has clicked (playing with sound) */
.video-overlay.playing {
  display: none;
}

.video-overlay-play {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.elastic-card-thumb .video-overlay-play {
  width: 36px;
  height: 36px;
}

.video-overlay-tri {
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 16px solid rgba(255, 255, 255, 0.85);
  margin-left: 4px;
}

.elastic-card-thumb .video-overlay-tri {
  border-top-width: 6px;
  border-bottom-width: 6px;
  border-left-width: 11px;
}

.video-overlay-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

/* Hide text label on small grid cards */
.elastic-card-thumb .video-overlay-label {
  display: none;
}
