/* ════════════════════════════════════════════════════
   videos.css — /videos gallery (inherits tokens from ../styles.css)
   ════════════════════════════════════════════════════ */

/* ── HERO ──────────────────────────────────────────── */
.vg-hero {
  position: relative;
  min-height: clamp(560px, 82vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 64px;
  border-bottom: 1px solid var(--border);
}
.vg-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.vg-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(108%) contrast(102%);
  opacity: 0.42;
}
.vg-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 18% 30%, rgb(34 211 238 / 0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 92% 10%, rgb(129 140 248 / 0.12), transparent 55%),
    linear-gradient(180deg, rgb(6 9 15 / 0.55) 0%, rgb(6 9 15 / 0.8) 60%, var(--bg) 100%);
}
.vg-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}
.vg-hero-title {
  font-size: clamp(2.2rem, 6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 900;
  margin: 6px 0 22px;
}
.vg-grad {
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.vg-hero-sub {
  font-size: clamp(0.98rem, 1.6vw, 1.18rem);
  color: var(--fg-2);
  max-width: 640px;
  line-height: 1.65;
}
.vg-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 46px);
  margin: 34px 0 30px;
}
.vg-hstat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vg-hstat strong {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
  font-family: 'JetBrains Mono', monospace;
}
.vg-hstat span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.vg-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Buttons ───────────────────────────────────────── */
.vg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition:
    transform 0.2s var(--ease),
    filter 0.2s,
    background 0.2s,
    border-color 0.2s;
  white-space: nowrap;
}
.vg-btn-primary {
  background: linear-gradient(135deg, var(--accent), #06b6d4);
  color: #06090f;
  box-shadow: 0 8px 24px rgb(34 211 238 / 0.25);
}
.vg-btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.vg-btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--fg);
  background: rgb(255 255 255 / 0.02);
}
.vg-btn-ghost:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
}

/* ── Section ───────────────────────────────────────── */
.vg-section {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 10vw, 120px);
}
.vg-section-sub {
  color: var(--fg-2);
  margin: 10px 0 0;
  max-width: 560px;
}

/* ── Controls (filter + search) ────────────────────── */
.vg-controls {
  position: sticky;
  top: 64px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 30px 0 34px;
  padding: 14px;
  border-radius: var(--radius-lg);
  background: rgb(8 12 20 / 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border);
}
.vg-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vg-chip {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-2);
  border: 1px solid var(--border-2);
  background: rgb(255 255 255 / 0.02);
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.vg-chip:hover {
  color: var(--fg);
  border-color: var(--border-h);
}
.vg-chip .vg-chip-n {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  opacity: 0.6;
}
.vg-chip.active {
  color: #06090f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}
.vg-chip.active .vg-chip-n {
  opacity: 0.8;
}
.vg-search {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: rgb(6 9 15 / 0.5);
  color: var(--muted);
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 320px;
}
.vg-search:focus-within {
  border-color: var(--border-h);
  color: var(--accent);
}
.vg-search input {
  border: none;
  background: none;
  outline: none;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  width: 100%;
}
.vg-search input::placeholder {
  color: var(--muted);
}

/* ── Grid — single wide column ─────────────────────── */
.vg-grid {
  display: flex;
  flex-direction: column;
  gap: clamp(44px, 6vw, 80px);
  max-width: 1000px;
  margin: 0 auto;
}

/* ── Card ──────────────────────────────────────────── */
.vg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s,
    box-shadow 0.3s;
  opacity: 0;
  transform: translateY(14px);
  animation: vgIn 0.5s var(--ease-out-expo) forwards;
}
@keyframes vgIn {
  to {
    opacity: 1;
    transform: none;
  }
}
.vg-card:hover {
  border-color: var(--border-h);
  box-shadow: var(--shadow-xl);
}

/* thumb / player — big 16:10 stage, full frame visible (no crop) */
.vg-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #04060b;
  overflow: hidden;
}
.vg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #04060b;
}
.vg-dur {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: rgb(0 0 0 / 0.78);
  color: #fff;
  letter-spacing: 0.02em;
}
.vg-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg);
  background: rgb(6 9 15 / 0.66);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
}
.vg-badge .vg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgb(16 232 158 / 0.6);
  animation: vgPulse 2s infinite;
}
@keyframes vgPulse {
  0% { box-shadow: 0 0 0 0 rgb(16 232 158 / 0.55); }
  70% { box-shadow: 0 0 0 7px rgb(16 232 158 / 0); }
  100% { box-shadow: 0 0 0 0 rgb(16 232 158 / 0); }
}

/* play overlay */
.vg-play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.vg-thumb:hover .vg-play {
  opacity: 1;
}
.vg-play svg {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 6px 16px rgb(0 0 0 / 0.55));
  transform: scale(0.85);
  transition: transform 0.25s var(--ease);
}
.vg-thumb:hover .vg-play svg {
  transform: scale(1);
}

/* mute toggle */
.vg-mute {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 4;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(6 9 15 / 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-2);
  color: var(--fg);
  transition:
    background 0.2s,
    border-color 0.2s,
    transform 0.2s;
}
.vg-mute:hover {
  transform: scale(1.08);
  border-color: var(--border-h);
}
.vg-mute.is-on {
  background: var(--accent);
  color: #06090f;
  border-color: transparent;
}
.vg-mute svg {
  width: 16px;
  height: 16px;
}
.vg-mute .ic-on {
  display: none;
}
.vg-mute.is-on .ic-on {
  display: block;
}
.vg-mute.is-on .ic-off {
  display: none;
}

/* meta */
.vg-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 6px 4px;
}
.vg-meta-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.vg-title {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.22;
}
.vg-dur-text {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-2);
  padding: 4px 11px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid var(--border);
}
.vg-plat {
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.vg-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 760px;
}
.vg-meta-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.vg-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  color: var(--green-2);
  background: rgb(16 232 158 / 0.08);
  border: 1px solid rgb(16 232 158 / 0.2);
}
.vg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.vg-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-2);
  padding: 4px 9px;
  border-radius: 6px;
  background: rgb(255 255 255 / 0.03);
  border: 1px solid var(--border);
}

.vg-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  font-size: 15px;
}

/* ── Lightbox ──────────────────────────────────────── */
.vg-lb[hidden] {
  display: none;
}
.vg-lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 40px);
}
.vg-lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(2 4 8 / 0.82);
  backdrop-filter: blur(10px);
  animation: vgFade 0.25s ease forwards;
}
@keyframes vgFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.vg-lb-panel {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 92vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-2xl);
  animation: vgPop 0.32s var(--ease-out-expo) forwards;
}
@keyframes vgPop {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.vg-lb-close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgb(6 9 15 / 0.7);
  border: 1px solid var(--border-2);
  color: var(--fg);
  transition: transform 0.2s, background 0.2s;
}
.vg-lb-close:hover {
  transform: rotate(90deg);
  background: var(--red);
  color: #fff;
}
.vg-lb-player {
  background: #000;
  display: flex;
  align-items: center;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
}
.vg-lb-video {
  width: 100%;
  max-height: 92vh;
  display: block;
  background: #000;
}
.vg-lb-meta {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.vg-lb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vg-lb-badges .vg-badge {
  position: static;
}
.vg-lb-title {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.vg-lb-plat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--accent);
}
.vg-lb-desc {
  color: var(--fg-2);
  font-size: 14.5px;
  line-height: 1.7;
}
.vg-lb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.vg-lb-hire {
  margin-top: 8px;
  align-self: flex-start;
}

/* ── Responsive ────────────────────────────────────── */
@media (width <= 880px) {
  .vg-lb-panel {
    grid-template-columns: 1fr;
    max-height: 94vh;
  }
  .vg-lb-player {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .vg-controls {
    top: 58px;
  }
}
@media (width <= 620px) {
  .vg-hero {
    min-height: auto;
    padding: 104px 0 52px;
  }
  .vg-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .vg-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
  }
  .vg-search {
    max-width: none;
  }
  .vg-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .vg-filters::-webkit-scrollbar {
    display: none;
  }
  .vg-chip {
    flex: 0 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .vg-card,
  .vg-video,
  .vg-badge .vg-dot {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== AUDIT-FIXES: brand alignment + accessibility ===== */
:root{
  --bg:#08090c; --bg-2:#0d0f14; --bg-card:#12151c; --bg-card-2:#181c26; --bg-card-3:#1c2130;
  --accent:#4f8eff; --accent-2:#9b6dff; --accent-3:#00d4aa;
  --fg:#f1f3f9; --fg-2:#aab2c5; --muted:#6b7689;
  --border:rgba(255,255,255,.06); --border-2:rgba(255,255,255,.12); --border-h:rgba(79,142,255,.45);
}
body{ font-family:'Figtree',ui-sans-serif,system-ui,sans-serif; }
.vg-hero-title,.section-title,.vg-title,.vg-lb-title,.brand-text,.vg-grad{ font-family:'Bricolage Grotesque',ui-sans-serif,sans-serif; }
.section-label,.vg-plat,.vg-dur,.vg-dur-text,.vg-chip-n,.vg-hstat strong{ font-family:'Figtree',ui-sans-serif,sans-serif; }
.vg-search input::placeholder,.vg-hstat span,.vg-dur-text{ color:#8b93a8; }
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,.vg-chip:focus-visible,.vg-card:focus-visible,.nav-hamburger:focus-visible,.vg-video:focus-visible{
  outline:2px solid var(--accent); outline-offset:2px; border-radius:6px;
}
@media (max-width:620px){ .nav-cta{ padding:12px 22px; } }
html,body{ overflow-x:hidden; }
.vg-noscript{ list-style:none; padding:0; margin:24px auto; max-width:1000px; display:grid; gap:14px; }
.vg-noscript li{ color:var(--fg-2); font-size:15px; line-height:1.6; }
.vg-noscript strong{ color:var(--fg); }
@media (prefers-reduced-motion: reduce){ .vg-video,.vg-hero-video{ animation:none !important; } }
