/* Beverly Films - VFX & AI Premium Cinematic Styling Sheet */

body:not(.wp-admin) .ai {
  overflow-x: hidden;
  color: #fff;
  background-color: #030b0f;
  background-image:
    linear-gradient(rgba(3, 11, 15, 0.88), rgba(3, 11, 15, 0.98)),
    radial-gradient(circle at 15% 15%, rgba(255, 138, 96, 0.12), transparent 45%),
    radial-gradient(circle at 85% 45%, rgba(100, 196, 203, 0.12), transparent 50%);
  position: relative;
}

body:not(.wp-admin) .ai::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 138, 96, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 138, 96, 0.015) 1px, transparent 1px);
  background-size: 8rem 8rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.3));
  z-index: 1;
}

/* Subtle digital camera scanline overlay */
body:not(.wp-admin) .ai::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: 
    linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  opacity: 0.1;
  z-index: 1;
}

.ai * {
  box-sizing: border-box;
}

/* Common telemetry monospaced labels */
.bf-ai-mono-label,
.bf-ai-kicker,
.bf-ai-mono-btn,
.bf-campaign-card .card-category,
.bf-campaign-card .card-title,
.bf-pipeline-step .step-number,
.bf-pipeline-step .step-title,
.bf-cases-title span,
.bf-cases-card .case-tag {
  font-family: IBMPlexMono, monospace;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.bf-ai-kicker {
  color: rgba(255, 138, 96, 0.95);
  text-shadow: 0 0 8px rgba(255, 138, 96, 0.35);
  font-size: clamp(0.9rem, 0.72vw, 1.15rem);
  margin-bottom: 1.5rem;
}

/* Section base border grid lines */
.bf-ai-section {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(4rem, 6vw, 8rem) var(--padding-container);
}

/* 1. Hero Section - Sleek dark layout with Mustang */
.bf-ai-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(6rem, 10vw, 12rem) var(--padding-container) clamp(4rem, 6vw, 8rem);
  background: 
    linear-gradient(rgba(3, 11, 15, 0.35), rgba(3, 11, 15, 0.9)),
    url("photos/hero-mustang.jpg?v=20260527-nanobanan2") center bottom / cover no-repeat;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  position: relative;
}

.bf-ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(3, 11, 15, 0.7));
  pointer-events: none;
}

.bf-ai-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
}

.bf-ai-hero-title-group {
  margin-bottom: 4rem;
}

.bf-ai-hero h1 {
  font-size: clamp(3rem, 6.2vw, 8.4rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0.5rem 0 1.5rem;
  background: linear-gradient(135deg, #ffffff 30%, rgba(255, 255, 255, 0.7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bf-ai-hero-sub {
  font-size: clamp(1.4rem, 1.8vw, 2.8rem);
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.78);
  max-width: 68rem;
}

.bf-ai-hero-actions {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-top: 3.5rem;
}

/* Watch Reel button */
.bf-btn-watch {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.5rem 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: IBMPlexMono, monospace;
  font-size: clamp(1rem, 0.78vw, 1.2rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.bf-btn-watch::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
  transition: transform 0.35s ease;
}

.bf-btn-watch:hover {
  background: #fff;
  color: #030b0f;
  border-color: #fff;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.bf-btn-watch:hover::before {
  border-left-color: #030b0f;
  transform: scale(1.15) translateX(1px);
}

/* Solid project button */
.bf-btn-solid {
  display: inline-flex;
  align-items: center;
  padding: 1.5rem 3rem;
  border: 1px solid #ff8a60;
  background: #ff8a60;
  color: #030b0f;
  font-family: IBMPlexMono, monospace;
  font-size: clamp(1rem, 0.78vw, 1.2rem);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 138, 96, 0.25);
}

.bf-btn-solid:hover {
  background: #ff7643;
  border-color: #ff7643;
  box-shadow: 0 8px 30px rgba(255, 138, 96, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.bf-hero-scroll {
  position: absolute;
  bottom: 4rem;
  left: var(--padding-container);
  font-family: IBMPlexMono, monospace;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bf-hero-scroll::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}


/* 2. CAMPAIGN WORLDS - Gorgeous 9:16 Vertical Grid */
.bf-campaign-worlds {
  background: rgba(3, 11, 15, 0.4);
}

.bf-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: clamp(3rem, 4vw, 5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.5rem;
}

.bf-section-header h2 {
  font-size: clamp(2rem, 2.5vw, 3.8rem);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.bf-header-link {
  font-family: IBMPlexMono, monospace;
  font-size: clamp(0.9rem, 0.7vw, 1.1rem);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  letter-spacing: 0.12em;
  transition: color 0.3s ease;
}

.bf-header-link:hover {
  color: #ff8a60;
}

/* 5-Column Grid */
.bf-campaign-worlds-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.2rem, 1.6vw, 2.4rem);
}

.bf-campaign-card {
  position: relative;
  aspect-ratio: 9 / 16;
  background: rgba(3, 11, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 1.8vw, 2.4rem);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  z-index: 10;
}

.bf-campaign-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(3, 11, 15, 0.3) 30%, rgba(3, 11, 15, 0.85) 90%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
}

/* HTML5 Video Backdrop */
.bf-card-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bf-card-video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: saturate(0.95) contrast(1.05);
}

/* Telemetry detail overlays */
.bf-campaign-card .card-header-telemetry {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bf-campaign-card .card-category {
  color: rgba(255, 138, 96, 0.95);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  opacity: 0.85;
}

.bf-campaign-card .card-title {
  color: #fff;
  font-size: clamp(1.1rem, 1.15vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.bf-campaign-card .card-footer-action {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
}

.bf-campaign-card .bf-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: IBMPlexMono, monospace;
  font-size: 0.78rem;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.6rem 1.2rem;
  background: rgba(3, 11, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.35s ease;
}

.bf-campaign-card .bf-play-btn::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #fff;
}

/* Hover States for Cards */
.bf-campaign-card:hover {
  border-color: rgba(255, 138, 96, 0.6);
  box-shadow: 0 16px 40px rgba(255, 138, 96, 0.15);
  transform: translateY(-4px);
}

.bf-campaign-card:hover .bf-card-video-wrapper video {
  transform: scale(1.07);
  filter: saturate(1.1) contrast(1.1);
}

.bf-campaign-card:hover .bf-play-btn {
  border-color: #ff8a60;
  background: #ff8a60;
  color: #030b0f;
}

.bf-campaign-card:hover .bf-play-btn::before {
  border-left-color: #030b0f;
}


/* 3. FROM BRIEF TO CAMPAIGN WORLD - Roadmap */
.bf-pipeline-section {
  background: rgba(3, 11, 15, 0.6);
}

.bf-pipeline-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1.4rem, 1.8vw, 2.6rem);
  position: relative;
}

/* Connecting timeline line in background */
.bf-pipeline-grid::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15) 20%, rgba(255, 255, 255, 0.15) 80%, transparent);
  z-index: 1;
}

.bf-pipeline-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bf-pipeline-step .step-number-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bf-pipeline-step .step-number {
  font-size: 1.8rem;
  font-weight: 500;
  color: #ff8a60;
  text-shadow: 0 0 10px rgba(255, 138, 96, 0.3);
  background: #030b0f;
  padding: 0 0.8rem;
}

.bf-pipeline-step .step-title {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.12em;
}

.bf-pipeline-step .step-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.012);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.4s ease;
}

.bf-pipeline-step .step-image-w {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.bf-pipeline-step img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bf-pipeline-step:hover .step-card {
  border-color: rgba(100, 196, 203, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(100, 196, 203, 0.08);
}

.bf-pipeline-step:hover img {
  transform: scale(1.05);
}


/* 4. AI TESTS & VISUAL EXPLORATION - Slider Track */
.bf-ai-exploration-section {
  background: rgba(3, 11, 15, 0.2);
}

.bf-exploration-track {
  display: flex;
  align-items: flex-start;
  gap: clamp(1.4rem, 1.8vw, 2.4rem);
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 138, 96, 0.5) rgba(255, 255, 255, 0.05);
  scroll-snap-type: x proximity;
}

.bf-exploration-item {
  flex: 0 0 auto;
  width: clamp(19rem, 16vw, 24rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  background: rgba(3, 11, 15, 0.5);
  scroll-snap-align: start;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.bf-exploration-item .img-w {
  aspect-ratio: 9 / 16;
  width: 100%;
  overflow: hidden;
}

.bf-exploration-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

/* Premium viewfinder telemetry / watermark overlay */
.bf-exploration-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.2rem, 1.4vw, 1.8rem);
  background: linear-gradient(to top, rgba(3, 11, 15, 0.8) 0%, transparent 40%, transparent 60%, rgba(3, 11, 15, 0.5) 100%);
  opacity: 0.8;
  transition: opacity 0.4s ease;
}

/* Corner crosshairs crop marks */
.bf-exploration-overlay::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
  transition: border-color 0.4s ease;
}

.bf-watermark-logo {
  height: clamp(16px, 1.2vw, 22px);
  width: auto !important;
  opacity: 0.45;
  object-fit: contain !important;
  align-self: flex-start;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.bf-telemetry-text {
  font-family: IBMPlexMono, monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.bf-telemetry-status {
  color: #ff8a60;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.bf-telemetry-status::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background-color: #ff8a60;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff8a60;
}

.bf-exploration-item:hover {
  border-color: rgba(255, 138, 96, 0.45);
  box-shadow: 0 12px 30px rgba(255, 138, 96, 0.12);
}

.bf-exploration-item:hover img {
  transform: scale(1.04);
}

.bf-exploration-item:hover .bf-exploration-overlay {
  opacity: 1;
}

.bf-exploration-item:hover .bf-exploration-overlay::before {
  border-color: rgba(255, 138, 96, 0.2);
}

.bf-exploration-item:hover .bf-watermark-logo {
  opacity: 0.85;
  transform: scale(1.02);
}


/* 5. FULL CAMPAIGN CASES */
.bf-cases-section {
  background: rgba(3, 11, 15, 0.5);
}

.bf-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 2vw, 3rem);
}

.bf-cases-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.bf-cases-card .case-img-w {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  margin-bottom: 1.5rem;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.bf-cases-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.bf-cases-card .case-tag {
  color: rgba(255, 138, 96, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

.bf-cases-card h3 {
  font-size: clamp(1.6rem, 1.8vw, 2.6rem);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.05;
}

.bf-cases-card:hover .case-img-w {
  border-color: rgba(100, 196, 203, 0.5);
  box-shadow: 0 12px 30px rgba(100, 196, 203, 0.12);
}

.bf-cases-card:hover img {
  transform: scale(1.04);
}


/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
  .bf-campaign-worlds-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .bf-pipeline-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .bf-pipeline-grid::before {
    display: none;
  }
}

@media (max-width: 768px) {
  .bf-ai-section {
    padding: clamp(3rem, 5vw, 6rem) var(--padding-container);
  }
  
  .bf-ai-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }
  
  .bf-btn-watch, .bf-btn-solid {
    justify-content: center;
    width: 100%;
  }

  .bf-campaign-worlds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
  }
  
  .bf-pipeline-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  
  .bf-cases-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 480px) {
  .bf-campaign-worlds-grid {
    grid-template-columns: 1fr;
  }
}
