* {
  box-sizing: border-box;
}

body.film-page {
  margin: 0;
  min-height: 100%;
  background: #000;
  color: #fff;
}

.film {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.film.is-home,
.sizes.is-home {
  align-self: stretch;
  margin-right: -1.25rem;
  margin-left: -1.25rem;
}

.film.is-home {
  margin-top: -2.5rem;
}

.sizes.is-home + .headline {
  margin-top: 0;
}

.film__frames,
.film__frame,
.film__frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.film__frame {
  opacity: 0;
  transition: opacity 1.8s ease;
}

.film__frame.is-on {
  opacity: 1;
}

.film__frame img {
  object-fit: cover;
  will-change: transform;
  animation: drift-left 16s ease-out forwards paused;
}

.film__frame[data-drift="right"] img {
  animation-name: drift-right;
}

.film__frame[data-drift="rise"] img {
  animation-name: drift-rise;
}

.film__frame[data-drift="settle"] img {
  animation-name: drift-settle;
}

.film__frame.is-on img {
  animation-play-state: running;
}

/* Conductor slide: keep face present but quieter under the veil */
.film__frame--soft img {
  object-position: 42% 28%;
  filter: brightness(0.88) contrast(1.05) saturate(0.92);
}

@keyframes drift-soft {
  from { transform: scale(1.12) translate3d(0.8%, 1.2%, 0); }
  to { transform: scale(1.2) translate3d(-1.2%, -0.2%, 0); }
}

.film__frame--soft[data-drift="left"] img {
  animation-name: drift-soft;
}

@keyframes drift-left {
  from { transform: scale(1.05) translate3d(1.2%, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.6%, -0.4%, 0); }
}

@keyframes drift-right {
  from { transform: scale(1.08) translate3d(-1.4%, 0.4%, 0); }
  to { transform: scale(1.14) translate3d(1.2%, -0.6%, 0); }
}

@keyframes drift-rise {
  from { transform: scale(1.1) translate3d(0, 1.2%, 0); }
  to { transform: scale(1.16) translate3d(-0.6%, -1.4%, 0); }
}

@keyframes drift-settle {
  from { transform: scale(1.04); }
  to { transform: scale(1.1) translate3d(0, -0.8%, 0); }
}

.film__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 40%, transparent 26%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.42) 28%, transparent 56%);
}

.film__brand {
  position: absolute;
  top: 1.45rem;
  left: 1.75rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.film__brand img {
  display: block;
  width: 3.075rem;
  height: auto;
  opacity: 0.92;
}

.film__brand:hover {
  color: #fff;
}

.film__brand:hover img {
  opacity: 1;
}

.film__more {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10.5vh;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.62rem 1.35rem;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-shadow: none;
}

.film__more:hover {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.film .offer {
  position: absolute;
  z-index: 2;
  top: 1.45rem;
  right: 1.75rem;
  width: min(34rem, calc(100% - 22rem));
  margin: 0;
  padding: 0.9rem 1.35rem 0.85rem;
  background: #fff;
  color: #000;
  border: 1px solid #111;
  border-radius: 0;
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
}

.film .offer__title {
  font-size: 1.02rem;
  line-height: 1.2;
}

.film .offer__copy {
  margin-top: 0.55rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.film .offer .pill {
  min-width: 0;
  min-height: 2.4rem;
  margin-top: 0.85rem;
  padding: 0.45rem 1.15rem;
  background: #111;
  color: #fff;
  border-color: #111;
  font-size: 0.82rem;
  text-decoration: none;
}

.film__line {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 18vh;
  width: min(18em, calc(100% - 2.5rem));
  margin: 0;
  transform: translate(-50%, 14px);
  opacity: 0;
  text-align: center;
  color: #fff;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-style: normal;
  font-size: clamp(1.85rem, 3.6vw, 3.05rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.9);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.7s ease, transform 0.9s ease;
}

.film__line.is-title {
  bottom: 16vh;
  width: min(11em, calc(100% - 2rem));
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 500;
  font-size: clamp(3.4rem, 7.6vw, 7rem);
  letter-spacing: -0.03em;
  line-height: 0.92;
}

.film__line.is-in {
  opacity: 1;
  transform: translate(-50%, 0);
}

.film__line .is-soft {
  display: block;
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.film__line .is-cite {
  display: block;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.film__progress {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 5.5vh;
  display: flex;
  gap: 0.45rem;
  transform: translateX(-50%);
}

.film__tick {
  position: relative;
  width: 1.7rem;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.28);
}

.film__tick::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
}

.film__tick.is-on::after {
  animation: tick-fill linear forwards;
  animation-duration: var(--hold, 5.2s);
}

@keyframes tick-fill {
  to { width: 100%; }
}

@media (max-width: 640px) {
  .film__brand {
    left: 1.15rem;
    gap: 0.45rem;
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .film__brand img {
    width: 2.625rem;
  }

  .film .offer {
    top: 4.6rem;
    right: 1.15rem;
    left: 1.15rem;
    width: auto;
  }

  .film__line {
    bottom: 16vh;
  }

  .film__line.is-title {
    bottom: 18vh;
  }

  .film__progress {
    bottom: 9vh;
  }

  .film.is-home {
    height: auto;
    overflow: visible;
  }

  .film.is-home .film__frames,
  .film.is-home .film__veil {
    height: 100dvh;
    bottom: auto;
  }

  .film.is-home .film__frames {
    position: relative;
  }

  .film.is-home .film__line {
    bottom: auto;
    top: 46dvh;
  }

  .film.is-home .film__line.is-title {
    top: 44dvh;
  }

  .film.is-home .film__more {
    top: 84dvh;
    bottom: auto;
  }

  .film.is-home .film__progress {
    bottom: auto;
    top: 93dvh;
  }

  .film.is-home .offer {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: auto;
    margin: 1.75rem 1.15rem 0;
  }

  .sizes.is-home {
    padding-top: 2.5rem;
  }
}

.film.is-services .film__line {
  top: 50%;
  bottom: auto;
  width: max-content;
  max-width: calc(100% - 2.5rem);
  white-space: nowrap;
  font-size: clamp(1.53rem, 5.25vw, 3.825rem);
  transform: translate(-50%, calc(-50% + 14px));
}

.film.is-services .film__line.is-in {
  transform: translate(-50%, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .film__frame {
    transition: none;
  }

  .film__frame.is-on img,
  .film__tick.is-on::after {
    animation: none;
  }

  .film__tick.is-on::after {
    width: 100%;
  }

  .film__line {
    transition: none;
  }
}

.sizes {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.75rem 1.5rem 5.5rem;
  background: #000;
  color: #fff;
  text-align: center;
}

.sizes__lead {
  max-width: 16em;
  margin: 0 0 2.6rem;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.28;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.sizes__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.65rem 1.85rem;
  width: min(100%, 52rem);
}

.sizes__box {
  position: relative;
  flex: 1 1 13.5rem;
  max-width: 16rem;
  margin: 0;
  padding: 1.55rem 1.15rem;
  appearance: none;
  background: #fff;
  color: #000;
  border: 1px solid #111;
  outline: 1px solid rgba(255, 255, 255, 0.72);
  outline-offset: 6px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
  cursor: pointer;
  transition: outline-color 0.25s ease;
}

.sizes__box:hover,
.sizes__box:focus-visible,
.sizes__box.is-on {
  outline-color: #fff;
}

.sizes__box:focus-visible {
  outline-offset: 6px;
}

@media (max-width: 640px) {
  .sizes {
    padding: 3.5rem 1.35rem 4.25rem;
  }

  .sizes__box {
    flex-basis: 100%;
    max-width: 18rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sizes__box {
    transition: none;
  }
}
