/* ─── Films Page — dark background throughout ────── */

/* Override footer brand text for films page */
.films-page .footer-brand-text {
  color: #fff;
}

/* ─── Shared dark-bg label ───────────────────────── */
.films-section-label {
  font-size: 36px;
  font-weight: var(--fw-regular);
  color: var(--text-white);
  line-height: 1.21;
}

/* ─── Shared button variants (films-only) ────────── */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 30px;
  font-weight: var(--fw-regular);
  color: var(--text-white);
  border-bottom: 2px solid var(--text-white);
  background: transparent;
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-outline-white:hover {
  opacity: 0.75;
  transform: translateY(-1px);
}

.btn-filled-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  font-size: 30px;
  font-weight: var(--fw-semi-bold);
  color: #000;
  background: var(--accent-green);
  border: 2px solid var(--accent-green);
  cursor: pointer;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-filled-yellow:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* ─── 1. Hero ─────────────────────────────────────── */
.films-hero {
  position: relative;
  height: 100vh;
  max-height: 1108px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #070707;
}

.films-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.films-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.films-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(7, 7, 7, 0.65);
}

.films-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 70px;
  max-width: 1100px;
  padding: 0 var(--section-padding);
  text-align: center;
}

.films-hero__desc {
  font-size: 40px;
  font-weight: var(--fw-bold);
  color: var(--text-white);
  line-height: 1.3;
}

.films-hero__ctas {
  display: flex;
  gap: 100px;
  align-items: center;
}

/* ─── 2. What ID8Films Do (scroll-driven reel animation) ── */
/* ─── 2. What ID8Films Do ─────────────────────────── */
.films-about {
  background: #0e0e0e;
  padding: var(--section-padding-y) var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.films-about-wrapper {
  height: 600vh;
  position: relative;
}

.films-about-section {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e0e0e;
}

.films-reel-scroll {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  transform: translate(-50%, -50%) scale(1) rotate(0deg);
  will-change: transform;
  z-index: 2;
}

.films-reel-scroll svg,
.films-reel-scroll img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.films-about-bg-fill {
  position: absolute;
  inset: 0;
  background: #0e0e0e;
  opacity: 0;
  z-index: 1;
  will-change: opacity;
}

.films-about-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 1400px;
  padding: 0 var(--section-padding);
  opacity: 0;
  will-change: opacity;
}

.films-about__body {
  font-size: 40px;
  font-weight: var(--fw-semi-bold);
  color: var(--primary-red);
  line-height: 1.3;
  max-width: 1400px;
}

.films-about__body--black {
  color: var(--border-dark);
}

/* ─── 3. Our Services ─────────────────────────────── */
.films-services {
  background: #0e0e0e;
  padding: var(--section-padding-y) 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.films-services__header {
  padding: 0 var(--section-padding) 40px;
}

.films-services__footer {
  padding: 40px var(--section-padding) 0;
  display: flex;
  justify-content: flex-end;
}

/* ─── Static panels ───────────────────────────────── */
.films-services__panels {
  display: flex;
  margin-left: var(--section-padding);
  margin-right: var(--section-padding);
  width: calc(100% - var(--section-padding) * 2);
}

.films-svc-panel {
  flex: 1;
  position: relative;
  padding: 0 24px 56px;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
}

.films-svc-panel:first-child {
  padding-left: 0;
}

.films-svc-panel:last-child {
  padding-right: 0;
}

/* faded vertical divider */
.films-svc-panel:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 30%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0.18) 70%,
    transparent 100%
  );
}

/* grey glow on hover */
.films-svc-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.05) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.films-svc-panel:hover::before {
  opacity: 1;
}

.films-svc-panel__title {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: var(--fw-regular);
  color: var(--text-white);
  line-height: 1.3;
  text-align: left;
}

/* ─── Services responsive ─────────────────────────── */
@media (max-width: 1024px) {
  .films-services__panels {
    flex-wrap: wrap;
    margin-left: 24px;
    margin-right: 24px;
    width: calc(100% - 48px);
  }
  .films-svc-panel {
    flex: 0 0 50%;
    min-height: 320px;
    padding: 0 24px 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .films-svc-panel:first-child,
  .films-svc-panel:nth-child(3),
  .films-svc-panel:nth-child(5) {
    padding-left: 0;
  }
  .films-svc-panel:not(:last-child)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .films-svc-panel {
    flex: 0 0 100%;
    min-height: 200px;
    padding: 0 0 32px;
  }
  .films-services__header {
    padding: 0 24px 32px;
  }
  .films-services__footer {
    padding: 32px 24px 0;
  }
}

/* ─── 4. Case Studies ─────────────────────────────── */
.films-work {
  background: #141414;
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.films-work__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--section-padding-y) var(--section-padding) 0;
}

.films-work .scroll-indicator__track {
  background: rgba(255, 255, 255, 0.2);
}

.films-work .scroll-arrow {
  color: var(--text-white);
}

/* ── Film strip perforations ───────────────────────── */
.films-work__strip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 56px;
}

.films-work__strip--top {
  margin-top: 40px;
}

.films-work__perfs {
  /* spans exactly between the section-padding guides */
  margin: 0 var(--section-padding);
  flex: 1;
  height: 36px;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 22px,
    #2c2c2c 22px,
    #2c2c2c 40px
  );
  border-radius: 3px;
}

.films-work__perfs--bottom {
  display: block;
  flex: unset;
  height: 36px;
  margin: 0 var(--section-padding);
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 22px,
    #2c2c2c 22px,
    #2c2c2c 40px
  );
  border-radius: 3px;
}

.films-work__footer {
  padding: 36px var(--section-padding) var(--section-padding-y);
  display: flex;
  justify-content: flex-end;
}

/* ── Stage & track ─────────────────────────────────── */
.films-work__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 28px var(--section-padding);
  box-sizing: border-box;
}

.films-work__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.films-work-card {
  flex-shrink: 0;
  /*
   * Layout: [half-card] [full-card] [half-card] all within the perf guide (100vw - 2*100px).
   * half + full + half = 2*full = guideWidth  =>  full = guideWidth / 2
   * But we want the active card to be bigger than the peeks, so:
   * active card = guideWidth * 0.65, peek each side = guideWidth * 0.175
   */
  width: calc((100vw - 200px) * 0.65);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  user-select: none;
  opacity: 0.45;
  transition: opacity 0.4s ease;
}

.films-work-card.is-active {
  opacity: 1;
  cursor: default;
}

/* ── Media area ────────────────────────────────────── */
.films-work-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #222;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.films-work-card__media img,
.films-work-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.films-work-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.films-work-card__overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.films-work-card__play {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.films-work-card__play:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}

/* ── Info bar inside grey container ────────────────── */
.films-work-card__info {
  background: #1e1e1e;
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.films-work-card__client {
  font-size: 18px;
  font-weight: var(--fw-semi-bold);
  color: var(--text-white);
}

.films-work-card__desc {
  font-size: 13px;
  font-weight: var(--fw-regular);
  color: var(--text-gray);
  line-height: 1.6;
}

/* ─── 5. Impact We Create ─────────────────────────── */
.films-impact {
  background: #0e0e0e;
  padding: var(--section-padding-y) var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.films-impact__label {
  font-size: clamp(22px, 2vw, 28px);
  font-weight: var(--fw-regular);
  color: var(--text-white);
  line-height: 1.2;
}

.films-impact__grid {
  display: flex;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.films-impact-stat {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 40px 60px 40px 0;
  position: relative;
  align-items: center;
}

/* thin red vertical bar on the left of each stat */
.films-impact-stat__bar {
  width: 2px;
  height: 200px;
  background: #c0001a;
  flex-shrink: 0;
  border-radius: 1px;
}

.films-impact-stat__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 28px;
}

.films-impact-stat__headline {
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: var(--fw-bold);
  color: var(--text-white);
  line-height: 1.2;
}

.films-impact-stat__desc {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: var(--fw-regular);
  color: var(--text-gray);
  line-height: 1.65;
  max-width: 280px;
}

/* ─── 6. FAQs ─────────────────────────────────────── */
.films-faqs {
  background: #0e0e0e;
  padding: var(--section-padding-y) var(--section-padding);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.films-faqs__inner {
  display: flex;
  align-items: start;
  gap: 200px;
}

.films-faqs__label {
  font-size: 36px;
  font-weight: var(--fw-medium);
  color: var(--text-white);
  padding-top: 6px;
}

.films-faqs__accordion {
  width: 100%;
}

.films-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.films-faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  cursor: pointer;
  color: var(--text-white);
  gap: 24px;
}

.films-faq-item__question {
  font-size: 25px;
  font-weight: var(--fw-regular);
  color: var(--text-white);
  line-height: 1.4;
  flex: 1;
}

/* red filled downward triangle */
.films-faq-item__toggle {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid #e8394a;
  transition: transform 0.3s ease;
  margin-top: 2px;
}

.films-faq-item--active .films-faq-item__toggle {
  transform: rotate(180deg);
}

.films-faq-item__body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              padding 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.films-faq-item--active .films-faq-item__body {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 26px;
}

.films-faq-item__answer {
  font-size: 15px;
  font-weight: var(--fw-regular);
  color: var(--text-gray);
  max-width: 720px;
  line-height: 1.65;
}

/* ─── 7. We Also Do ───────────────────────────────── */
.films-also {
  background: #0e0e0e;
  padding: var(--section-padding-y) var(--section-padding);
  display: flex;
  flex-direction: column;
  gap: 50px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.films-also__grid {
  display: flex;
  gap: 20px;
}

.films-also-card {
  flex: 1;
  position: relative;
  height: 703px;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.films-also-card__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.films-also-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.films-also-card__overlay {
  position: absolute;
  inset: 0;
  background: var(--overlay, rgba(0, 40, 97, 0.75));
}

.films-also-card__content {
  position: relative;
  z-index: 2;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.films-also-card__logo {
  max-width: 200px;
  height: auto;
  object-fit: contain;
}

.films-also-card__name {
  font-size: 32px;
  font-weight: var(--fw-bold);
  color: var(--text-white);
}

.films-also-card__desc {
  font-size: 20px;
  font-weight: var(--fw-light);
  color: var(--text-white);
  line-height: 1.5;
  max-width: 480px;
}

/* ─── FAQs responsive ─────────────────────────────── */
@media (max-width: 768px) {
  .films-faqs__inner {
    grid-template-columns: 1fr;
    gap: 32px 0;
  }
  .films-faq-item__question {
    font-size: 15px;
  }
}

/* ─── Responsive ──────────────────────────────────── */
@media (max-width: 1200px) {
  .films-hero__desc {
    font-size: 32px;
  }
  .films-about__body {
    font-size: 32px;
  }
  .films-impact__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1024px) {
  .films-also__grid {
    flex-direction: column;
  }
  .films-also-card {
    height: 480px;
  }
  .films-impact__grid {
    grid-template-columns: 1fr;
  }
  .films-impact-stat {
    padding: 32px 0;
  }
  .films-impact-stat__bar {
    min-height: 80px;
  }
}

@media (max-width: 768px) {
  .films-hero__desc {
    font-size: 22px;
  }
  .films-hero__ctas {
    flex-direction: column;
    gap: 20px;
  }
  .btn-outline-white,
  .btn-filled-yellow {
    font-size: 20px;
    padding: 12px 24px;
  }
  .films-section-label {
    font-size: 28px;
  }
  .films-about,
  .films-services,
  .films-impact,
  .films-faqs,
  .films-also {
    padding: 60px 0;
  }
  .films-about__body {
    font-size: 22px;
  }
  .films-impact-stat__headline {
    font-size: 26px;
  }
  .films-impact-stat__desc {
    font-size: 14px;
    max-width: 100%;
  }
  .films-work-card {
    width: calc((100vw - 48px) * 0.65);
  }
  .films-work__perfs {
    margin: 0 24px;
  }
  .films-also-card {
    height: 400px;
  }
  .films-also-card__content {
    padding: 32px 24px;
  }
}

/* ─── We Also Do (brands) — dark override on films page ── */
.brands-section--dark {
  background: #000;
}
.brands-section--dark .section-title,
.brands-section--dark .brand-description,
.brands-section--dark .btn-underline {
  color: #fff;
}
.brands-section--dark .btn-underline {
  border-color: #fff;
}
.brands-section--dark .scroll-arrow {
  color: #fff;
}
.brands-section--dark .scroll-indicator__track {
  background: rgba(255,255,255,0.2);
}
