/* Universal Project Media Player Modal — Avataar Visora (Editorial Light Design) */
:root {
  --av-bg-glass: rgba(255, 255, 255, 0.96);
  --av-border: rgba(0, 0, 0, 0.09);
  --av-text-primary: #000000;
  --av-text-secondary: #666666;
  --av-card-bg: #ffffff;
}

/* Global Viewframe Lock - The entire website fits in the viewport and does NOT scroll */
html,
body {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  position: fixed !important;
  inset: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overscroll-behavior: none !important;
  -webkit-overflow-scrolling: auto !important;
  background: var(--token-280bd9a0-bf37-41b4-a3c3-9a122b679a65, #ffffff) !important;
}

#main,
[data-framer-root],
.framer-5dGci,
.framer-JHLJv,
main,
.framer-tnt2m9,
.framer-1yqizxt,
.framer-10nc5dh,
.framer-6f8bvo {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Total Removal of Extra Trailing Containers That Cause Scroll Height */
.framer-1f7zz0w-container,
.framer-mfyutm-container,
.framer-n0lf92-container,
.framer-pczdbx-container,
.framer-1w9ow87-container,
[data-framer-name="Footer section"],
[data-framer-name="Footer"],
footer,
div:has(> footer),
div:has(> .framer-l3pwO) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* Responsive Viewframe Adjustments for Tablet & Mobile */
@media (max-width: 1199.98px) {
  .framer-JHLJv.framer-72rtr7,
  .framer-WFveD.framer-tuko7d {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
  }
  .framer-6f8bvo {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    position: relative !important;
  }
}

@media (max-width: 809.98px) {
  .framer-JHLJv.framer-72rtr7,
  .framer-WFveD.framer-tuko7d {
    width: 100% !important;
    max-width: 100vw !important;
    height: 100% !important;
    max-height: 100dvh !important;
  }
  .framer-6f8bvo {
    height: 100% !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    position: relative !important;
  }
  /* Keep intro text cleanly anchored at bottom-left without overflow */
  .framer-WFveD.framer-v-1428u4a .framer-ss0lsh {
    position: fixed !important;
    bottom: 20px !important;
    top: auto !important;
    left: 16px !important;
    right: auto !important;
    max-width: 250px !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06) !important;
    z-index: 10 !important;
    pointer-events: none !important;
  }
  .framer-WFveD.framer-v-1428u4a .framer-ss0lsh p {
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #000000 !important;
    opacity: 0.9 !important;
    margin: 0 !important;
  }
}

/* Modal Overlay */
.av-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}

.av-modal-overlay.av-open {
  opacity: 1;
  visibility: visible;
}

.av-modal-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  box-shadow: 0 35px 90px -15px rgba(0, 0, 0, 0.16), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.av-modal-card.av-card-audio {
  max-width: 660px;
}

.av-modal-overlay.av-open .av-modal-card {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.av-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.av-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.av-badge {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.av-badge-adfilm {
  color: #ffffff;
  background: #000000;
  border: 1px solid #000000;
}

.av-badge-ugc {
  color: #000000;
  background: #f0f0f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.av-badge-jingle {
  color: #000000;
  background: #f0f0f2;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.av-title {
  font-family: 'Anton', -apple-system, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #000000;
  margin: 0;
  line-height: 1.1;
}

.av-year {
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
  font-size: 0.8rem;
  color: #777777;
}

.av-close-btn {
  background: #f4f4f6;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #222;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  padding: 0;
}

.av-close-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: rotate(90deg) scale(1.05);
}

.av-close-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Media body */
.av-modal-body {
  position: relative;
  width: 100%;
  background: #fbfbfb;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Video Player */
.av-video-container {
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 75vh;
  position: relative;
  background: #000;
}

.av-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Audio Player */
.av-audio-container {
  width: 100%;
  padding: 2.25rem 2rem 2rem;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.av-audio-waveform {
  width: 100%;
  height: 90px;
  background: #f6f6f8;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  margin-bottom: 1.75rem;
}

.av-audio-timeline {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.5rem;
}

.av-progress-bar {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  accent-color: #000000;
}

.av-time-row {
  display: flex;
  justify-content: space-between;
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: #777777;
}

.av-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.av-play-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #000000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s, background-color 0.2s;
}

.av-play-btn:hover {
  transform: scale(1.08);
  background: #222222;
}

.av-play-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.av-audio-vol-row {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666666;
  font-size: 0.75rem;
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
}

.av-vol-slider {
  width: 85px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  accent-color: #000000;
  cursor: pointer;
}

/* Footer / Direct Link */
.av-modal-footer {
  padding: 0.75rem 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.av-footer-phone,
.av-footer-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.av-footer-phone:hover,
.av-footer-link:hover {
  opacity: 0.7;
}

.av-modal-footer-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.av-footer-dot {
  color: #bbbbbb;
  font-size: 0.7rem;
}

.av-project-route {
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: #666666;
  text-decoration: none;
  transition: color 0.2s;
}

.av-project-route:hover {
  color: #000000;
  text-decoration: underline;
}

@media (max-width: 640px) {
  .av-modal-footer {
    flex-direction: column;
    gap: 6px;
    padding: 0.65rem 1rem;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .av-modal-header {
    padding: 1rem 1.25rem;
  }
  .av-title {
    font-size: 1.3rem;
  }
  .av-audio-container {
    padding: 1.5rem 1.25rem 1.25rem;
  }
  .av-hint {
    display: none;
  }
}

/* Suppress all hover thumbnail and cursor preview images */
.framer-n30PI .framer-rjiaqv,
.framer-rjiaqv,
[data-framer-name="Project 1"],
[data-framer-name="Project 2"],
[data-framer-name="Project 3"],
[data-framer-name="Project 4"],
[data-framer-name="Project 5"],
[data-framer-name="Project 6"],
[data-framer-name="Project 7"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.av-footer-copy {
  font-family: 'Fragment Mono', 'Geist Mono', monospace;
  font-size: 0.75rem;
  color: #888888;
}
