.brand-film {
  position: relative;
  width: 100%;
  aspect-ratio: 1210 / 402;
  min-height: 0;
  max-height: 804px;
  overflow: hidden;
  isolation: isolate;
  color: #f7f1e6;
  background: #020b09 url("assets/jpy-business-film-poster.jpg") center / cover no-repeat;
}

.brand-film video {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.film-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(1, 10, 8, .94) 0%, rgba(1, 15, 12, .78) 33%, rgba(1, 15, 12, .18) 64%, rgba(1, 10, 8, .2)),
    linear-gradient(0deg, rgba(1, 10, 8, .82), transparent 34%);
}

.brand-film::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(218, 181, 104, .18) 50%, transparent 50.1%),
    linear-gradient(rgba(218, 181, 104, .08) 1px, transparent 1px);
  background-size: 100% 100%, 100% 25%;
  mix-blend-mode: screen;
}

.film-chrome {
  position: absolute;
  top: clamp(20px, 4vw, 58px);
  right: clamp(24px, 4.2vw, 104px);
  left: clamp(24px, 4.2vw, 104px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #d9b978;
  font: 800 clamp(8px, .7vw, 14px) / 1 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .2em;
}

.film-chrome b { color: #e9dfcb; font-size: .85em; }

.film-scenes {
  position: absolute;
  top: 50%;
  left: clamp(24px, 6.2vw, 150px);
  width: min(52%, 920px);
  transform: translateY(-48%);
}

.film-scene {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 22px, 0);
  transition: opacity .42s ease, transform .55s cubic-bezier(.2, .8, .2, 1);
}

.film-scene.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
}

.film-scene span,
.film-reduced-summary > span {
  display: block;
  color: #d9b978;
  font: 800 clamp(9px, .8vw, 15px) / 1.3 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .2em;
}

.film-scene h2 {
  max-width: 960px;
  margin: clamp(10px, 1.4vw, 22px) 0 10px;
  font-family: Georgia, "Noto Serif SC", serif;
  font-size: clamp(34px, 4.3vw, 82px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.film-scene p {
  margin: 0;
  color: #f1e7d3;
  font-size: clamp(13px, 1.25vw, 24px);
  line-height: 1.5;
  text-shadow: 0 2px 18px #000;
}

.film-progress {
  position: absolute;
  bottom: clamp(52px, 6.5vw, 104px);
  left: clamp(24px, 6.2vw, 150px);
  display: flex;
  gap: 7px;
}

.film-progress i {
  width: clamp(22px, 2.4vw, 52px);
  height: 2px;
  background: #eee2c833;
  transform-origin: left;
  transition: background .3s ease, transform .3s ease;
}

.film-progress i.active { background: #d9b978; transform: scaleY(2); }

.film-cta {
  position: absolute;
  right: clamp(24px, 4.2vw, 104px);
  bottom: clamp(48px, 5.8vw, 92px);
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 13px 16px;
  border: 1px solid #d9b97888;
  color: #f7f1e6;
  background: #071b16c7;
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.film-cta b { color: #d9b978; font-size: 17px; }

.film-disclaimer {
  position: absolute;
  bottom: clamp(17px, 2.2vw, 34px);
  left: clamp(24px, 6.2vw, 150px);
  max-width: 70%;
  color: #b7c4bf;
  font-size: clamp(7px, .65vw, 11px);
  letter-spacing: .04em;
}

.film-reduced-summary { display: none; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .brand-film {
    aspect-ratio: 16 / 10;
    height: clamp(220px, 60vw, 320px);
    min-height: 0;
    max-height: 320px;
    background-position: 70% center;
  }
  .brand-film video { object-position: 70% center; }
  .film-shade {
    background:
      linear-gradient(0deg, rgba(1, 10, 8, .96) 0%, rgba(1, 13, 10, .76) 42%, rgba(1, 10, 8, .08) 78%),
      linear-gradient(90deg, rgba(1, 10, 8, .72), transparent 76%);
  }
  .film-chrome { top: 11px; right: 12px; left: 12px; font-size: 7px; letter-spacing: .14em; }
  .film-chrome b { display: none; }
  .film-scenes {
    top: auto;
    right: 12px;
    bottom: 43px;
    left: 12px;
    width: auto;
    transform: none;
  }
  .film-scene { top: auto; bottom: 0; }
  .film-scene span { font-size: 7px; letter-spacing: .12em; }
  .film-scene h2 { max-width: 82%; margin: 5px 0 4px; font-size: clamp(21px, 6.4vw, 29px); line-height: 1.02; }
  .film-scene p { max-width: 80%; font-size: 10px; line-height: 1.3; }
  .film-progress { bottom: 18px; left: 12px; gap: 4px; }
  .film-progress i { width: 28px; }
  .film-cta { display: none; }
  .film-disclaimer { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-film video { display: none; }
  .film-scenes,
  .film-progress { display: none; }
  .film-reduced-summary {
    position: absolute;
    top: 50%;
    left: clamp(24px, 6.2vw, 150px);
    display: block;
    width: min(64%, 980px);
    transform: translateY(-50%);
  }
  .film-reduced-summary h2 {
    margin: 16px 0 12px;
    font-family: Georgia, "Noto Serif SC", serif;
    font-size: clamp(28px, 4vw, 64px);
    font-weight: 500;
    line-height: 1.08;
  }
  .film-reduced-summary p { margin: 0; color: #f1e7d3; }
  .film-scene { transition: none; }
  .film-cta { backdrop-filter: none; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
  .film-reduced-summary {
    top: auto;
    right: 12px;
    bottom: 40px;
    left: 12px;
    width: auto;
    transform: none;
  }
  .film-reduced-summary h2 { margin: 8px 0 5px; font-size: 21px; line-height: 1.05; }
  .film-reduced-summary p { font-size: 10px; }
}
