/* ─────────────────────────────────────────────────────────
   ID8Films Page — light/cream design matching id8nxt.com/id8films
   Uses the standard site nav and footer.
   ───────────────────────────────────────────────────────── */

/* ─── Shared tokens ─────────────────────────────────────── */
:root {
  --id8f-primary:    #c0001a;
  --id8f-secondary:  #cadb36;
  --id8f-bg:         #fafaf5;
  --id8f-fg:         #111827;
  --id8f-muted:      #6b7280;
  --id8f-border:     #e5e7eb;
  --id8f-hover-bg:   #f2f2f2;
}

.id8f-text-primary   { color: var(--id8f-primary); }
.id8f-text-secondary { color: var(--id8f-secondary); }

/* ─── Container ─────────────────────────────────────────── */
.id8f-container {
  width: 91.666%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Small overline label ──────────────────────────────── */
.id8f-label {
  font-size: 14px;
  font-weight: 400;
  color: var(--id8f-muted);
  margin: 0 0 12px;
}

/* ─── Scroll reveal ─────────────────────────────────────── */
.id8f-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.id8f-reveal.id8f-revealed {
  opacity: 1;
  transform: none;
}

.id8f-br-md { display: none; }
@media (min-width: 768px) { .id8f-br-md { display: block; } }


/* ══════════════════════════════════════════════════════════
   1. HERO
══════════════════════════════════════════════════════════ */
.id8f-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #111;
  color: #fff;
  text-align: center;
}

.id8f-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.id8f-hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.id8f-hero__iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 177.77vh;
  height: 100vh;
  min-width: 100vw;
  min-height: 56.25vw;
}

.id8f-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.id8f-hero__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 900px;
  padding: 0 24px;
}

.id8f-hero__logo {
  height: 64px;
  width: auto;
  margin-bottom: 8px;
}

.id8f-hero__heading {
  font-size: clamp(36px, 5.5vw, 80px);
  font-weight: 500;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}

.id8f-hero__sub {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  max-width: 520px;
  margin: 0;
}


/* ══════════════════════════════════════════════════════════
   2. PORTFOLIO / CASE STUDIES
══════════════════════════════════════════════════════════ */
.id8f-portfolio {
  padding: 64px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.id8f-portfolio__intro {
  margin-bottom: 16px;
}

.id8f-portfolio__heading {
  font-size: clamp(22px, 3vw, 44px);
  font-weight: 700;
  color: var(--id8f-fg);
  line-height: 1.2;
  margin: 0;
}

/* ── Cards ──────────────────────────────────────────────── */
.id8f-card-full,
.id8f-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  height: 400px;
}

@media (min-width: 1280px) {
  .id8f-card-full,
  .id8f-card { height: 560px; }
}

.id8f-card-full { width: 100%; }

.id8f-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.id8f-card-full:hover .id8f-card__img,
.id8f-card:hover .id8f-card__img {
  transform: scale(1.04);
}

.id8f-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 36px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  color: #fff;
}

.id8f-card-full:hover .id8f-card__overlay,
.id8f-card:hover .id8f-card__overlay {
  opacity: 1;
  transform: none;
}

.id8f-card__overlay-inner {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.id8f-card__meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.id8f-card__category {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.12em;
  margin: 0;
}

.id8f-card__title {
  font-size: clamp(18px, 2.2vw, 32px);
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.id8f-card__tagline {
  font-size: clamp(13px, 1.1vw, 18px);
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.id8f-card__arrow {
  flex-shrink: 0;
  color: #fff;
  transition: transform 0.25s ease;
}

.id8f-card-full:hover .id8f-card__arrow,
.id8f-card:hover .id8f-card__arrow {
  transform: rotate(45deg);
}

/* ── 10-col grid ────────────────────────────────────────── */
.id8f-grid {
  display: flex;
  gap: 8px;
}

.id8f-col-4 { flex: 4; min-width: 0; }
.id8f-col-6 { flex: 6; min-width: 0; }

@media (max-width: 768px) {
  .id8f-grid { flex-direction: column; }
  .id8f-col-4, .id8f-col-6 { flex: none; width: 100%; }
  .id8f-card-full, .id8f-card { height: 280px; }
  .id8f-card__overlay { opacity: 1; transform: none; }
}

/* ── Portfolio footer link ──────────────────────────────── */
.id8f-portfolio__footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
}

.id8f-portfolio__footer-label {
  font-size: 14px;
  color: var(--id8f-muted);
  margin: 0;
}

.id8f-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--id8f-secondary);
  text-decoration: none;
  transition: gap 0.2s;
}

.id8f-link-arrow:hover { gap: 10px; }

.id8f-link-arrow__icon {
  transition: transform 0.25s ease;
}

.id8f-link-arrow:hover .id8f-link-arrow__icon {
  transform: rotate(45deg);
}


/* ══════════════════════════════════════════════════════════
   3. OUR EDGE
══════════════════════════════════════════════════════════ */
.id8f-edge-bg {
  background: #fff;
}

.id8f-edge {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  align-items: flex-start;
  padding: 64px 0;
}

.id8f-edge__left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.id8f-edge__heading {
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 500;
  color: var(--id8f-fg);
  line-height: 1.2;
  margin: 0 0 8px;
}

.id8f-edge__subhead {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 400;
  color: var(--id8f-fg);
  margin: 0;
}

.id8f-edge__stats {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.id8f-edge-stat {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.id8f-edge-stat__dot {
  display: flex;
  align-items: center;
}

.id8f-edge-stat__dot svg {
  flex-shrink: 0;
  transition: transform 0.4s ease;
}

.id8f-edge-stat:hover .id8f-edge-stat__dot svg {
  transform: scale(1.2);
}

.id8f-edge-stat__line {
  flex: 1;
  height: 1px;
  background: var(--id8f-border);
  transition: background 0.3s;
}

.id8f-edge-stat:hover .id8f-edge-stat__line {
  background: var(--id8f-secondary);
}

.id8f-edge-stat__text {
  font-size: clamp(15px, 1.3vw, 22px);
  font-weight: 600;
  color: var(--id8f-fg);
  line-height: 1.3;
  padding-right: 32px;
  margin: 0;
}

/* ── Apollo card ────────────────────────────────────────── */
.id8f-edge__right {
  width: 42%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  outline: none;
}

.id8f-edge__feature-img {
  height: 340px;
  overflow: hidden;
  flex: 1;
}

@media (min-width: 1280px) {
  .id8f-edge__feature-img { height: 480px; }
}

.id8f-edge__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.id8f-edge__feature-caption {
  padding: 0 8px;
  background: #fff;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.4s ease;
}

.id8f-edge__feature-caption--open,
.id8f-edge__right[aria-expanded="true"] .id8f-edge__feature-caption {
  max-height: 200px;
  opacity: 1;
  padding: 16px 8px;
}

.id8f-edge__caption-title {
  font-size: clamp(16px, 1.4vw, 22px);
  font-weight: 600;
  color: var(--id8f-fg);
  margin: 0 0 6px;
}

.id8f-edge__caption-text {
  font-size: clamp(14px, 1.1vw, 18px);
  font-weight: 400;
  color: var(--id8f-muted);
  margin: 0;
  line-height: 1.6;
}

@media (max-width: 1023px) {
  .id8f-edge { flex-direction: column; gap: 48px; }
  .id8f-edge__right { width: 100%; }
}




/* ══════════════════════════════════════════════════════════
   4. SERVICES
══════════════════════════════════════════════════════════ */
.id8f-services {
  padding: 64px 0;
  display: flex;
  gap: 64px;
  align-items: flex-start;
  justify-content: space-between;
}

.id8f-services__left {
  flex-basis: 38%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.id8f-services__heading {
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 500;
  color: var(--id8f-fg);
  line-height: 1.2;
  max-width: 320px;
  margin: 0;
}

.id8f-services__sub {
  font-size: clamp(15px, 1.3vw, 22px);
  font-weight: 400;
  color: var(--id8f-fg);
  max-width: 420px;
  line-height: 1.5;
  margin: 0;
}

.id8f-services__list {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.id8f-svc-item {
  position: relative;
  overflow: hidden;
}

.id8f-svc-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--id8f-hover-bg);
  transform: translateX(100%);
  transition: transform 0.45s ease;
  z-index: 0;
}

.id8f-svc-item:hover::before {
  transform: translateX(0);
}

.id8f-svc-item__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px;
}

.id8f-svc-item__num {
  font-size: clamp(20px, 2vw, 32px);
  font-weight: 600;
  flex-shrink: 0;
  margin: 0;
  line-height: 1;
}

.id8f-svc-item__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.id8f-svc-item__title {
  font-size: clamp(18px, 2vw, 30px);
  font-weight: 600;
  color: var(--id8f-fg);
  margin: 0;
}

.id8f-svc-item__desc {
  font-size: clamp(14px, 1.2vw, 22px);
  font-weight: 400;
  color: var(--id8f-fg);
  line-height: 1.5;
  margin: 0;
}

.id8f-svc-item__divider {
  border: none;
  border-top: 1px solid var(--id8f-border);
  margin: 0;
}

@media (max-width: 1023px) {
  .id8f-services { flex-direction: column; gap: 40px; }
  .id8f-services__left { flex-basis: auto; }
  .id8f-services__heading { max-width: none; }
}


/* ══════════════════════════════════════════════════════════
   5. IMPACT
══════════════════════════════════════════════════════════ */
.id8f-impact {
  padding: 64px 0 32px;
  text-align: center;
}

.id8f-impact__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.id8f-impact__heading {
  font-size: clamp(32px, 5vw, 72px);
  font-weight: 700;
  color: var(--id8f-fg);
  line-height: 1.15;
  margin: 0;
}

.id8f-impact__sub {
  font-size: clamp(16px, 1.8vw, 24px);
  font-weight: 400;
  color: var(--id8f-muted);
  margin: 0;
  max-width: 680px;
}

.id8f-impact__divider {
  border: none;
  border-top: 1px solid var(--id8f-border);
  margin: 24px 0 0;
}


/* ══════════════════════════════════════════════════════════
   6. CLIENT LOGOS MARQUEE  (mirrors react-fast-marquee rfm-*)
══════════════════════════════════════════════════════════ */
.id8f-logos-section {
  padding: 32px 0;
  overflow: hidden;
  background: var(--id8f-bg);
}

/* Outer container: two marquee strips side by side, clipped */
.id8f-rfm-container {
  overflow-x: hidden;
  display: flex;
  flex-direction: row;
  position: relative;
  width: 100%;
}

/* Each strip fills at least 100% of the container width */
.id8f-rfm-marquee {
  flex: 0 0 auto;
  min-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  animation: id8f-scroll 67.84s linear infinite;
  will-change: transform;
}

/* The inner row of logos */
.id8f-rfm-child {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  padding-right: 40px; /* matches gap so the loop restart is seamless */
  min-width: auto;
}

/* Individual logo image */
.id8f-rfm-img {
  height: 80px;
  width: 112px;
  object-fit: contain;
  flex-shrink: 0;
  user-select: none;
  pointer-events: none;
  display: block;
}

@keyframes id8f-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
  .id8f-rfm-marquee { animation: none; }
}


/* ══════════════════════════════════════════════════════════
   7. FILMS CTA  (between marquee and footer)
══════════════════════════════════════════════════════════ */
.id8f-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 64px 16px;
  text-align: center;
  background: var(--id8f-bg);
}

.id8f-cta__heading {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  color: var(--id8f-fg);
  margin: 0;
  line-height: 1.3;
}

.id8f-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--id8f-primary);
  color: #fff;
  font-size: clamp(18px, 1.67vw, 24px);
  font-weight: 400;
  padding: 8px 24px;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.id8f-cta__btn:hover {
  background: var(--id8f-fg);
  color: #fff;
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .id8f-hero__heading { font-size: 32px; }
  .id8f-hero__sub { font-size: 16px; }
  .id8f-portfolio { padding: 48px 0; }
  .id8f-rfm-img { height: 56px; width: 80px; }
  .id8f-rfm-child { gap: 24px; padding-right: 24px; }
}

/* ─── Responsive: 1680px+ ────────────────────────── */
@media (min-width: 1680px) {
  .id8f-container {
    max-width: 1640px;
  }
  .id8f-hero__content {
    max-width: 1080px;
    gap: 28px;
  }
  .id8f-hero__sub {
    max-width: 640px;
  }
}

/* ─── Responsive: 1920px+ ────────────────────────── */
@media (min-width: 1920px) {
  .id8f-container {
    max-width: 1820px;
  }
  .id8f-hero__content {
    max-width: 1240px;
  }
  .id8f-hero__sub {
    max-width: 720px;
  }
  .id8f-card-full,
  .id8f-card {
    height: 520px;
  }
}

/* ─── Responsive: 2400px+ ────────────────────────── */
@media (min-width: 2400px) {
  .id8f-container {
    max-width: 2080px;
  }
  .id8f-hero__content {
    max-width: 1400px;
  }
  .id8f-hero__sub {
    max-width: 820px;
    font-size: 28px;
  }
  .id8f-card-full,
  .id8f-card {
    height: 640px;
  }
}
