.service-film {
  --fm-dark: #090b10;
  --fm-border: rgba(16, 19, 26, 0.14);
}

.service-film .fm-hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(340px, 5fr);
  gap: clamp(52px, 7vw, 112px);
  align-items: end;
  min-height: min(78svh, 760px);
  padding-top: clamp(120px, 11vw, 160px);
  padding-bottom: clamp(96px, 8vw, 120px);
}

.fm-hero__heading {
  max-width: 720px;
}

.fm-hero__heading h1 {
  max-width: 720px;
  font-size: clamp(4rem, 7vw, 6.5rem);
  line-height: 0.94;
  letter-spacing: -0.06em;
}

.fm-hero__intro {
  max-width: 44ch;
  padding-bottom: 0.55em;
}

.fm-hero__intro p {
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1.3vw, 1.28rem);
  line-height: 1.55;
}

.fm-hero__intro p + p {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.fm-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--fm-dark);
  color: #fff;
  cursor: pointer;
  isolation: isolate;
}

.fm-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.32));
  opacity: 0.7;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.fm-frame:hover::after {
  opacity: 0.42;
}

.fm-preview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--fm-dark);
  transform: scale(1);
  transition: transform 260ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .fm-frame:hover .fm-preview {
    transform: scale(1.012);
  }
}

.fm-frame:focus-visible,
.fm-lightbox__close:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.fm-play {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  background: rgba(8, 11, 18, 0.62);
  backdrop-filter: blur(10px);
  transition: background 220ms ease, transform 220ms ease;
}

.fm-play span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #fff;
}

.fm-frame:hover .fm-play {
  transform: scale(1.05);
  background: rgba(8, 11, 18, 0.8);
}

.fm-films {
  padding-top: clamp(112px, 10vw, 150px);
  padding-bottom: clamp(120px, 11vw, 170px);
}

.fm-section-intro {
  max-width: 900px;
  margin-bottom: clamp(64px, 6vw, 80px);
}

.fm-section-intro h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.fm-section-intro > p:last-child {
  max-width: 52ch;
  margin-top: clamp(24px, 2.4vw, 32px);
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.25vw, 1.22rem);
  line-height: 1.6;
}

.fm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(72px, 7vw, 96px) clamp(28px, 4vw, 64px);
}

.fm-project__meta {
  padding-top: 25px;
}

.fm-project__category {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-project h3 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 2.1vw, 2.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.fm-project__meta > p:last-child {
  max-width: 44ch;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.55;
}

.fm-capabilities {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(64px, 9vw, 150px);
  padding-top: clamp(130px, 12vw, 180px);
  padding-bottom: clamp(130px, 12vw, 180px);
  border-top: 1px solid var(--line);
}

.fm-capabilities h2 {
  max-width: 13ch;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.fm-capabilities__body > p {
  max-width: 48ch;
  color: var(--text-secondary);
  font-size: clamp(1.08rem, 1.25vw, 1.24rem);
  line-height: 1.65;
}

.fm-capabilities ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(26px, 4vw, 58px);
  margin-top: clamp(44px, 5vw, 70px);
  list-style: none;
}

.fm-capabilities li {
  min-width: 0;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
  line-height: 1.35;
}

.fm-cta {
  padding-top: clamp(120px, 11vw, 160px);
  padding-bottom: clamp(120px, 11vw, 160px);
  text-align: center;
}

.fm-cta__inner {
  max-width: 850px;
  margin-inline: auto;
}

.fm-cta h2 {
  font-size: clamp(3rem, 5.5vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.fm-cta__inner > p:not(.eyebrow) {
  max-width: 42ch;
  margin: 34px auto 0;
  color: var(--text-secondary);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.6;
}

.fm-cta .button {
  margin-top: 38px;
}

body.fm-lightbox-open {
  overflow: hidden;
}

.fm-lightbox[hidden] {
  display: none;
}

.fm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 64px);
}

.fm-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.94);
}

.fm-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1180px, 92vw);
  max-height: 92svh;
  color: #fff;
}

.fm-lightbox__video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
}

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

.fm-lightbox__close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 16px);
  min-width: 58px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.fm-lightbox__meta {
  padding-top: 18px;
}

.fm-lightbox__meta p {
  margin-bottom: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fm-lightbox__meta h2 {
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  letter-spacing: -0.03em;
}

@media (max-width: 1080px) {
  .service-film .fm-hero {
    grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
    gap: 44px;
    min-height: min(76svh, 680px);
  }

  .fm-hero__heading h1 {
    font-size: clamp(4rem, 7vw, 5.7rem);
  }

  .fm-capabilities {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
    gap: 54px;
  }
}

@media (max-width: 900px) {
  .service-film .fm-hero,
  .fm-section-intro,
  .fm-capabilities {
    grid-template-columns: 1fr;
  }

  .service-film .fm-hero {
    gap: 44px;
    min-height: auto;
    padding-top: 112px;
    padding-bottom: 96px;
  }

  .fm-hero__heading {
    max-width: 680px;
  }

  .fm-hero__intro {
    max-width: 54ch;
    padding: 0;
  }

  .fm-grid {
    gap: 76px 26px;
  }

  .fm-capabilities {
    gap: 52px;
  }
}

@media (max-width: 640px) {
  .service-film .fm-hero {
    gap: 38px;
    padding-top: 86px;
    padding-bottom: 86px;
  }

  .fm-hero__heading h1 {
    max-width: 100%;
    font-size: clamp(2.75rem, 11.5vw, 4.1rem);
  }

  .fm-grid {
    grid-template-columns: 1fr;
    gap: 68px;
  }

  .fm-section-intro h2,
  .fm-capabilities h2 {
    font-size: clamp(3rem, 13vw, 4.15rem);
  }

  .fm-capabilities ul {
    grid-template-columns: 1fr;
  }

  .fm-play {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
  }

  .fm-frame,
  .fm-lightbox__video-wrap {
    border-radius: 14px;
  }

  .fm-lightbox {
    padding: 14px;
  }

  .fm-lightbox__panel {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-preview,
  .fm-play,
  .fm-frame::after {
    transition: none;
  }
}
