/*
 * Video band (4 Nov 2026). The About Us "60 years & beyond" treatment of
 * 3 Nov as one shared piece, for the client's videos: the founder's centenary
 * (About Us, after the 60 years band), Safe water for rural India (Rural),
 * World Environment Day (Sustainability) and the Industrial Chemical Division
 * (Specialty Chemicals). A full-bleed band in the stacked page hero's look
 * (frosted navy fade, on-dark heading with the blue accent line) over a
 * silent loop cut from the film; "Watch the video" opens the full film from
 * the client's YouTube channel, with sound, in a pop-up (assets/film-band.js).
 * Every value is the About Us band's own, written out here so the band reads
 * the same on pages that do not carry that hero's styles.
 */
.film-band {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: #03152F;
  color: #FFFFFF;
}
.film-band__media { position: absolute; inset: 0; }
.film-band__media video,
.film-band__media .film-band__still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.film-band .film-band__still { display: none; }
/* frosted glass on the left, tapering off toward the middle */
.film-band__frost {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  -webkit-backdrop-filter: blur(10px) saturate(1.05);
          backdrop-filter: blur(10px) saturate(1.05);
  -webkit-mask-image: linear-gradient(100deg, #000 0%, #000 26%, rgba(0,0,0,0.55) 44%, rgba(0,0,0,0) 62%);
          mask-image: linear-gradient(100deg, #000 0%, #000 26%, rgba(0,0,0,0.55) 44%, rgba(0,0,0,0) 62%);
}
/* deep-navy tint over the frost, opaque behind the copy */
.film-band__overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(100deg, rgba(9,24,39,0.94) 0%, rgba(11,30,49,0.86) 24%, rgba(11,30,49,0.55) 44%, rgba(11,30,49,0.20) 60%, rgba(11,30,49,0) 76%),
    linear-gradient(0deg, rgba(6,18,32,0.30) 0%, rgba(6,18,32,0) 32%);
}
/* on desktop the copy sits 144px down the band, as on About Us */
.film-band__inner {
  position: relative; z-index: 3;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 144px clamp(16px, 4vw, 32px) 56px;
}
.film-band__copy { max-width: 620px; }
.film-band .film-band__eyebrow {
  margin: 0 0 20px;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(125, 195, 255, 0.78);
}
/* :is() lifts this over the pages' own heading resets, some of them set on
   #main-content (Specialty Chemicals zeroes every heading margin) */
:is(#main-content, body) .film-band .film-band__title {
  margin: 0 0 32px;
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(32px, 4.8vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  text-wrap: balance;
}
.film-band .film-band__accent {
  display: block;
  font-weight: 700;
  background: linear-gradient(90deg, #38BDF8 0%, #00A2FF 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  /* paint the descenders below the tight line box, without moving anything */
  padding-bottom: 0.16em;
  margin-bottom: -0.16em;
}
@supports not (background-clip: text) {
  .film-band .film-band__accent { background: none; color: #2EA8FF; }
}
.film-band__play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px 0 22px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 6px rgba(3, 21, 47, 0.08), 0 18px 40px -22px rgba(3, 21, 47, 0.5);
  color: #0F172A;
  cursor: pointer;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  transition: transform 0.2s ease, background 0.2s ease;
}
.film-band__play:hover { transform: scale(1.04); background: #FFFFFF; }
.film-band__play:focus-visible { outline: none; box-shadow: 0 0 0 3px #0B1E31, 0 0 0 5px #FFFFFF; }
.film-band__icon { display: inline-flex; align-items: center; justify-content: center; color: #005691; }
.film-band__label { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.film-band__time { font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif; font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; color: #64748B; }

@media (min-width: 861px) and (max-width: 1024px) {
  .film-band__inner { padding-top: 128px; }
}
/* Phones and small tablets: the copy settles at the foot of the band over a
   top-to-bottom fade, as in the page hero */
@media (max-width: 860px) {
  .film-band { min-height: 480px; }
  .film-band__inner { align-items: flex-end; min-height: 480px; padding-top: 32px; padding-bottom: 48px; }
  .film-band__copy { max-width: 100%; }
  .film-band__media video,
  .film-band__media .film-band__still { object-position: 50% 30%; }
  .film-band__frost {
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,0.5) 46%, #000 72%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0) 24%, rgba(0,0,0,0.5) 46%, #000 72%);
  }
  .film-band__overlay {
    background: linear-gradient(180deg, rgba(9,24,39,0.55) 0%, rgba(9,24,39,0.35) 30%, rgba(11,30,49,0.78) 66%, rgba(11,30,49,0.96) 100%);
  }
}
/* phones: 65% of the screen, as every photo banner (site-mobile.css) */
@media (max-width: 767px) {
  .film-band,
  .film-band__inner { min-height: 65vh; min-height: 65svh; }
  .film-band__inner { padding-top: 120px; }
}

/* ---- The pop-up ---- */
.film-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
}
.film-modal[hidden] { display: none; }
.film-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 21, 47, 0.62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms ease;
}
.film-modal__panel {
  position: relative;
  width: min(1100px, 100%, calc((100vh - 120px) * 16 / 9));
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 240ms ease, transform 280ms ease;
}
.film-modal.is-open .film-modal__backdrop,
.film-modal.is-open .film-modal__panel { opacity: 1; transform: none; }
.film-modal__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 30px 80px rgba(3, 21, 47, 0.28);
}
.film-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  color: #FFFFFF;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.film-modal__close:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.film-modal__close:focus-visible { outline: none; box-shadow: 0 0 0 3px #FFFFFF; }
body.film-modal-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .film-band .film-band__loop { display: none; }
  .film-band .film-band__still { display: block; }
  .film-band__play,
  .film-modal__backdrop,
  .film-modal__panel { transition: none; }
  .film-band__play:hover { transform: none; }
}
