.festa-film-hero {
  position: relative;
  width: min(100%, 980px);
  height: clamp(600px, 52vw, 650px);
  margin: 32px auto 14px;
  overflow: hidden;
  isolation: isolate;
  perspective: 1400px;
  border-top: 1px solid rgba(221, 176, 91, 0.2);
  border-bottom: 1px solid rgba(221, 176, 91, 0.2);
  background-color: #06101a;
  background-image: url("../img/festa60/film-hero-backdrop-v1.webp");
  background-position: center;
  background-size: cover;
  background-blend-mode: normal;
  box-shadow:
    inset 0 0 110px rgba(0, 0, 0, 0.92),
    0 24px 60px rgba(0, 0, 0, 0.28);
  transition: background-color 1200ms ease;
  animation: festaFilmBackdropDrift 34s cubic-bezier(0.37, 0, 0.2, 1) infinite alternate;
}

@keyframes festaFilmBackdropDrift {
  0%, 14% { background-position: 49% 50%; }
  43% { background-position: 51% 48.5%; }
  76% { background-position: 50% 51%; }
  100% { background-position: 48.5% 49%; }
}

.festa-film-science-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.82;
  pointer-events: none;
}

.festa-film-projector-light {
  position: absolute;
  z-index: 2;
  top: -42%;
  left: -68%;
  width: 78%;
  height: 188%;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(102deg, transparent 22%, rgba(255, 231, 177, 0.025) 38%, rgba(255, 224, 159, 0.15) 49%, rgba(206, 154, 70, 0.035) 59%, transparent 73%);
  filter: blur(8px);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0) rotate(-8deg) scaleX(0.82);
  will-change: transform, opacity;
  animation: festaProjectorSweep 18s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

@keyframes festaProjectorSweep {
  0%, 8% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-8deg) scaleX(0.82); }
  16% { opacity: 0.38; }
  39% { opacity: 0.68; transform: translate3d(105.13%, 0, 0) rotate(-3deg) scaleX(1); }
  61% { opacity: 0.34; transform: translate3d(153.85%, 0, 0) rotate(2deg) scaleX(0.92); }
  72%, 100% { opacity: 0; transform: translate3d(220.51%, 0, 0) rotate(6deg) scaleX(0.78); }
}

.festa-film-hero[data-field="origin"] { background-color: #101018; }
.festa-film-hero[data-field="expansion"] { background-color: #07121c; }
.festa-film-hero[data-field="digital"] { background-color: #07131a; }
.festa-film-hero[data-field="network"] { background-color: #06121b; }
.festa-film-hero[data-field="quantum"] { background-color: #08101c; }

.festa-film-hero__kicker {
  position: absolute;
  z-index: 4;
  top: 16px;
  left: 50%;
  margin: 0;
  color: rgba(224, 186, 112, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  text-transform: uppercase;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.festa-film-hero__kicker em {
  padding-left: 10px;
  border-left: 1px solid rgba(224, 186, 112, 0.28);
  color: rgba(244, 227, 190, 0.92);
  font-style: normal;
}

.festa-film-hero::before,
.festa-film-hero::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 0;
  width: clamp(30px, 8vw, 110px);
  pointer-events: none;
}

.festa-film-hero::before {
  left: 0;
  background: linear-gradient(90deg, #060709 12%, rgba(6, 7, 9, 0));
}

.festa-film-hero::after {
  right: 0;
  background: linear-gradient(270deg, #060709 12%, rgba(6, 7, 9, 0));
}

.festa-film-strip {
  --film-angle: -8deg;
  position: absolute;
  z-index: 1;
  left: -8%;
  width: 116%;
  height: 92px;
  overflow: hidden;
  padding: 13px 0;
  border-top: 1px solid rgba(208, 163, 82, 0.58);
  border-bottom: 1px solid rgba(208, 163, 82, 0.58);
  background-color: #100c08;
  background-image:
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(206, 158, 73, 0.7) 15px 19px, transparent 19px 27px),
    repeating-linear-gradient(90deg, transparent 0 15px, rgba(206, 158, 73, 0.7) 15px 19px, transparent 19px 27px);
  background-position: 0 3px, 0 calc(100% - 3px);
  background-size: auto 5px;
  background-repeat: repeat-x;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.78), inset 0 0 22px rgba(179, 119, 31, 0.12);
  transform: rotate(var(--film-angle)) translateZ(-30px);
  transform-origin: center;
}

.festa-film-strip--past {
  top: 58px;
  opacity: 0.72;
  filter: saturate(0.72) brightness(0.82);
  animation: festaFilmFeatherPast 30s cubic-bezier(0.45, 0, 0.16, 1) infinite;
}

.festa-film-strip--present {
  --film-angle: 3deg;
  z-index: 3;
  bottom: 184px;
  height: 120px;
  padding: 16px 0;
  transform: rotate(var(--film-angle)) rotateX(8deg) translateZ(18px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.86), inset 0 0 26px rgba(195, 134, 38, 0.14);
  animation: festaFilmFeatherPresent 32s cubic-bezier(0.42, 0, 0.18, 1) infinite;
}

@keyframes festaFilmFeatherPast {
  0%, 12% { transform: rotate(-9.2deg) rotateY(-2deg) translate3d(-0.8%, 2px, -34px); }
  34% { transform: rotate(-7.2deg) rotateY(2deg) translate3d(0.4%, -6px, -24px); }
  57% { transform: rotate(-6.4deg) rotateY(4deg) translate3d(1%, 3px, -18px); }
  76% { transform: rotate(-8deg) rotateY(-1deg) translate3d(0.2%, 7px, -30px); }
  100% { transform: rotate(-9.2deg) rotateY(-2deg) translate3d(-0.8%, 2px, -34px); }
}

@keyframes festaFilmFeatherPresent {
  0%, 10% { transform: rotate(2deg) rotateX(10deg) rotateY(1deg) translate3d(-0.7%, 5px, 14px); }
  31% { transform: rotate(3.6deg) rotateX(6deg) rotateY(-2deg) translate3d(0.2%, -8px, 28px); }
  53% { transform: rotate(4.5deg) rotateX(9deg) rotateY(-1deg) translate3d(0.9%, -2px, 22px); }
  72% { transform: rotate(2.8deg) rotateX(12deg) rotateY(2deg) translate3d(0.3%, 7px, 12px); }
  100% { transform: rotate(2deg) rotateX(10deg) rotateY(1deg) translate3d(-0.7%, 5px, 14px); }
}

/* Waltz opens the chronology with a restrained rise-and-fall. */
.festa-film-hero[data-dance="waltz"] .festa-film-strip--past {
  animation-name: festaFilmFeatherPast;
}

.festa-film-hero[data-dance="waltz"] .festa-film-strip--present {
  animation-name: festaFilmFeatherPresent;
}

@keyframes festaFilmNaturalPast {
  0% { transform: rotate(-11deg) rotateY(-4deg) translate3d(-1.2%, 7px, -38px); }
  50% { transform: rotate(-5deg) rotateY(4deg) translate3d(0.8%, -8px, -16px); }
  100% { transform: rotate(-8deg) rotateY(-2deg) translate3d(1.4%, 3px, -30px); }
}

@keyframes festaFilmNaturalPresent {
  0% { transform: rotate(5deg) rotateX(10deg) translate3d(-1%, -3px, 10px); }
  50% { transform: rotate(0deg) rotateX(4deg) translate3d(0.5%, 9px, 28px); }
  100% { transform: rotate(4deg) rotateX(9deg) translate3d(1.2%, -5px, 18px); }
}

@keyframes festaFilmCounterPast {
  from { transform: rotate(-12deg) translate3d(-2.5%, -4px, -26px); }
  to { transform: rotate(-5deg) translate3d(1.2%, 9px, -36px); }
}

@keyframes festaFilmCounterPresent {
  from { transform: rotate(-1deg) rotateX(7deg) translate3d(-1.2%, 8px, 14px); }
  to { transform: rotate(8deg) rotateX(11deg) translate3d(2.5%, -7px, 22px); }
}

@keyframes festaFilmSambaPast {
  0%, 100% { transform: rotate(-10deg) rotateY(-3deg) translate3d(-1%, 6px, -34px); }
  35% { transform: rotate(-6deg) rotateY(4deg) translate3d(0.4%, -8px, -18px); }
  70% { transform: rotate(-9deg) rotateY(-1deg) translate3d(1.2%, 5px, -28px); }
}

@keyframes festaFilmSambaPresent {
  0%, 100% { transform: rotate(5deg) rotateX(12deg) rotateY(2deg) translate3d(-1.2%, -4px, 16px); }
  35% { transform: rotate(1deg) rotateX(5deg) rotateY(-3deg) translate3d(0.4%, 9px, 30px); }
  70% { transform: rotate(7deg) rotateX(10deg) rotateY(2deg) translate3d(1.3%, -2px, 18px); }
}

@keyframes festaFilmSpiralPast {
  0% { transform: rotate(-13deg) rotateY(-8deg) scaleX(1.02) translate3d(-1.5%, 8px, -44px); }
  50% { transform: rotate(-4deg) rotateY(7deg) scaleX(0.97) translate3d(0.4%, -10px, -12px); }
  100% { transform: rotate(-9deg) rotateY(-4deg) scaleX(1.01) translate3d(1.5%, 4px, -30px); }
}

@keyframes festaFilmSpiralPresent {
  0% { transform: rotate(-1deg) rotateX(5deg) rotateY(6deg) scaleX(0.98) translate3d(-1.5%, 10px, 12px); }
  50% { transform: rotate(8deg) rotateX(14deg) rotateY(-5deg) scaleX(1.02) translate3d(0.5%, -9px, 34px); }
  100% { transform: rotate(3deg) rotateX(8deg) rotateY(3deg) scaleX(1) translate3d(1.4%, 2px, 18px); }
}

.festa-film-hero[data-dance="natural"] .festa-film-strip--past { animation-name: festaFilmNaturalPast; }
.festa-film-hero[data-dance="natural"] .festa-film-strip--present { animation-name: festaFilmNaturalPresent; }
.festa-film-hero[data-dance="counter"] .festa-film-strip--past { animation-name: festaFilmCounterPast; }
.festa-film-hero[data-dance="counter"] .festa-film-strip--present { animation-name: festaFilmCounterPresent; }
.festa-film-hero[data-dance="samba"] .festa-film-strip--past { animation-name: festaFilmSambaPast; }
.festa-film-hero[data-dance="samba"] .festa-film-strip--present { animation-name: festaFilmSambaPresent; }
.festa-film-hero[data-dance="spiral"] .festa-film-strip--past { animation-name: festaFilmSpiralPast; }
.festa-film-hero[data-dance="spiral"] .festa-film-strip--present { animation-name: festaFilmSpiralPresent; }

.festa-film-rail,
.festa-film-sequence {
  display: flex;
  width: max-content;
  height: 100%;
  align-items: stretch;
}

.festa-film-sequence {
  gap: 5px;
  padding-right: 5px;
}

.festa-film-frame {
  transition: transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.festa-film-frame:nth-child(6n + 1) { transform: translateY(5px) rotate(1.4deg); }
.festa-film-frame:nth-child(6n + 2) { transform: translateY(1px) rotate(0.5deg); }
.festa-film-frame:nth-child(6n + 3) { transform: translateY(-4px) rotate(-1deg); }
.festa-film-frame:nth-child(6n + 4) { transform: translateY(-1px) rotate(-0.4deg); }
.festa-film-frame:nth-child(6n + 5) { transform: translateY(5px) rotate(1.1deg); }
.festa-film-frame:nth-child(6n + 6) { transform: translateY(2px) rotate(0.4deg); }

.festa-film-hero[data-dance="counter"] .festa-film-strip--past .festa-film-frame:nth-child(odd),
.festa-film-hero[data-dance="counter"] .festa-film-strip--present .festa-film-frame:nth-child(even) {
  transform: translateY(-6px) rotate(-1.8deg);
}

.festa-film-hero[data-dance="samba"] .festa-film-frame:nth-child(3n + 1) { transform: translateY(7px) rotate(2deg); }
.festa-film-hero[data-dance="samba"] .festa-film-frame:nth-child(3n + 2) { transform: translateY(-5px) rotate(-1.5deg); }
.festa-film-hero[data-dance="spiral"] .festa-film-frame:nth-child(odd) { transform: translateY(6px) rotate(1.8deg) scale(0.98); }
.festa-film-hero[data-dance="spiral"] .festa-film-frame:nth-child(even) { transform: translateY(-5px) rotate(-1.6deg) scale(1.02); }

.festa-film-frame {
  display: block;
  width: clamp(118px, 14vw, 168px);
  height: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(213, 169, 89, 0.5);
  background: #080706;
  box-shadow: inset 0 0 14px rgba(0, 0, 0, 0.55);
}

.festa-film-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(0.3) saturate(0.66) contrast(1.1) brightness(0.78);
}

.festa-film-strip--past .festa-film-frame:nth-child(-n + 3) img {
  filter: grayscale(0.78) sepia(0.3) contrast(1.1) brightness(0.74);
}

.festa-film-frame--invitation {
  position: relative;
  display: grid;
  place-items: center;
  border-color: rgba(239, 201, 125, 0.72);
  background:
    linear-gradient(118deg, transparent 18%, rgba(255, 222, 155, 0.08) 49%, transparent 72%),
    radial-gradient(circle at 50% 46%, rgba(197, 139, 45, 0.2), transparent 66%),
    #080706;
  box-shadow: inset 0 0 20px rgba(224, 175, 82, 0.1), 0 0 12px rgba(224, 175, 82, 0.12);
  color: #f2dfb7;
  text-align: center;
}

.festa-film-frame--invitation::before,
.festa-film-frame--invitation::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(transparent, rgba(229, 187, 104, 0.62), transparent);
}

.festa-film-frame--invitation::before { left: 8px; }
.festa-film-frame--invitation::after { right: 8px; }

.festa-film-frame--invitation > span {
  display: grid;
  gap: 3px;
  padding: 8px 12px;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  line-height: 1.2;
}

.festa-film-frame--invitation small {
  color: #c99b4e;
  font: 8px/1.2 Georgia, "Times New Roman", serif;
}

.festa-film-frame--invitation strong {
  color: #fff0cd;
  font-size: clamp(10px, 1.05vw, 13px);
  font-weight: 600;
}

.festa-film-frame--invitation em {
  color: rgba(228, 203, 155, 0.76);
  font-size: 8px;
  font-style: normal;
}

.festa-film-emblem {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 27%;
  display: grid;
  justify-items: center;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: festaEmblemEntrance 1800ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes festaEmblemEntrance {
  0% { opacity: 0; filter: blur(9px); transform: translate(-50%, -44%) scale(0.94); }
  58% { opacity: 1; filter: blur(0); }
  100% { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
}

.festa-film-emblem img {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(102px, 14vw, 158px);
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 16px rgba(222, 172, 73, 0.26));
  animation: festaEmblemLight 18s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

@keyframes festaEmblemLight {
  0%, 16%, 100% { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 13px rgba(222, 172, 73, 0.19)); transform: translateY(0) scale(1); }
  39% { filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 27px rgba(238, 190, 94, 0.38)); transform: translateY(-2px) scale(1.015); }
  68% { filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.96)) drop-shadow(0 0 17px rgba(222, 172, 73, 0.24)); transform: translateY(1px) scale(1); }
}

.festa-film-emblem__name,
.festa-film-emblem__anniversary,
.festa-film-emblem__relay {
  position: relative;
  z-index: 2;
  color: #d8aa54;
  font-family: Georgia, "Times New Roman", serif;
  text-shadow: 0 3px 14px #000;
  letter-spacing: 0;
}

.festa-film-emblem__name {
  margin-top: 5px;
  font-size: clamp(15px, 1.9vw, 22px);
  letter-spacing: 0;
}

.festa-film-emblem__anniversary {
  margin-top: 5px;
  color: #eee0bd;
  font-size: clamp(10px, 1.2vw, 13px);
  letter-spacing: 0;
  text-transform: uppercase;
}

.festa-film-dance-relay {
  position: absolute;
  z-index: 1;
  top: calc(100% - 98px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  width: min(90vw, 570px);
  height: 86px;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.72));
  transform: translateX(-50%);
}

.festa-film-dance-relay__photo {
  position: relative;
  display: block;
  height: 78px;
  overflow: visible;
  opacity: 0.34;
  transform: scale(0.94);
  -webkit-mask-image: radial-gradient(ellipse 68% 66% at 50% 48%, #000 46%, rgba(0, 0, 0, 0.72) 63%, transparent 100%);
  mask-image: radial-gradient(ellipse 68% 66% at 50% 48%, #000 46%, rgba(0, 0, 0, 0.72) 63%, transparent 100%);
}

.festa-film-dance-relay__photo--waltz { animation: festaRelayMemory 18s cubic-bezier(0.45, 0, 0.18, 1) infinite; }
.festa-film-dance-relay__photo--exchange { animation: festaRelayExchange 18s cubic-bezier(0.45, 0, 0.18, 1) infinite; }
.festa-film-dance-relay__photo--future { animation: festaRelayFuture 18s cubic-bezier(0.45, 0, 0.18, 1) infinite; }

.festa-film-dance-relay__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.72) sepia(0.24) saturate(0.62) brightness(0.64) contrast(1.17);
}

.festa-film-dance-relay__photo--waltz img { object-position: 43% 48%; }
.festa-film-dance-relay__photo--exchange img { object-position: 50% 56%; }
.festa-film-dance-relay__photo--future img { object-position: 50% 50%; }

.festa-film-dance-relay__photo small {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  color: rgba(248, 226, 180, 0.88);
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 7px;
  text-align: center;
  text-shadow: 0 1px 7px #000, 0 0 10px #000;
}

.festa-film-dance-relay__photo small b {
  color: #e4b75f;
  font-weight: 400;
}

.festa-film-dance-relay__light {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 3%;
  width: 31%;
  height: 54px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(246, 205, 122, 0.18), rgba(213, 156, 62, 0.04) 55%, transparent 74%);
  filter: blur(2px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
  animation: festaRelayLight 18s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

@keyframes festaRelayMemory {
  0%, 8% { opacity: 0.2; transform: translate3d(6px, 4px, 0) scale(0.92); }
  17%, 34% { opacity: 0.9; transform: translate3d(0, -2px, 0) scale(1.045); }
  48% { opacity: 0.38; transform: translate3d(-3px, 1px, 0) scale(0.98); }
  66%, 100% { opacity: 0.16; transform: translate3d(-6px, 3px, 0) scale(0.94); }
}

@keyframes festaRelayExchange {
  0%, 24% { opacity: 0.18; transform: translate3d(5px, 3px, 0) scale(0.94); }
  39%, 58% { opacity: 0.94; transform: translate3d(0, -3px, 0) scale(1.055); }
  71% { opacity: 0.42; transform: translate3d(-3px, 0, 0) scale(0.99); }
  84%, 100% { opacity: 0.18; transform: translate3d(-5px, 3px, 0) scale(0.94); }
}

@keyframes festaRelayFuture {
  0%, 48% { opacity: 0.16; transform: translate3d(6px, 3px, 0) scale(0.93); }
  62%, 82% { opacity: 0.92; transform: translate3d(0, -2px, 0) scale(1.05); }
  94%, 100% { opacity: 0.24; transform: translate3d(-4px, 2px, 0) scale(0.96); }
}

@keyframes festaRelayLight {
  0%, 10% { opacity: 0.1; transform: translate3d(0, 0, 0) scale(0.78); }
  22% { opacity: 0.72; transform: translate3d(0, 0, 0) scale(1); }
  45% { opacity: 0.92; transform: translate3d(101.61%, 0, 0) scale(1.12); }
  70% { opacity: 0.74; transform: translate3d(203.23%, 0, 0) scale(1); }
  88%, 100% { opacity: 0; transform: translate3d(203.23%, 0, 0) scale(0.82); }
}

.festa-film-baton {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto minmax(100px, 180px) auto;
  align-items: center;
  gap: 9px;
  width: min(72vw, 390px);
  margin-top: 7px;
  color: rgba(226, 196, 132, 0.66);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 9px;
  line-height: 1;
}

.festa-film-baton__track {
  position: relative;
  display: block;
  height: 18px;
  container-type: inline-size;
}

.festa-film-baton__track::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(206, 161, 75, 0.12), rgba(225, 184, 100, 0.72), rgba(206, 161, 75, 0.12));
}

.festa-film-baton__track i {
  position: absolute;
  top: 6px;
  left: 0;
  display: block;
  width: 42px;
  height: 5px;
  border: 1px solid rgba(255, 226, 163, 0.92);
  background: linear-gradient(90deg, #8c5b19, #f2c86f 46%, #fff0c4 65%, #ad7221);
  box-shadow: 0 0 8px rgba(240, 191, 90, 0.7), 0 0 22px rgba(240, 191, 90, 0.3);
  transform: rotate(-12deg);
  will-change: transform, opacity;
  animation: festaBatonPass 18s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

@keyframes festaBatonPass {
  0%, 12% { opacity: 0; transform: translate3d(-3px, 5px, 0) rotate(-15deg) scale(0.84); }
  20% { opacity: 1; }
  34% { transform: translate3d(calc(31cqw - 21px), -5px, 0) rotate(-7deg) scale(1); }
  43%, 52% { opacity: 1; transform: translate3d(calc(50cqw - 21px), 1px, 0) rotate(1deg) scale(1.06); }
  67% { transform: translate3d(calc(72cqw - 21px), -4px, 0) rotate(8deg) scale(1); }
  81% { opacity: 1; transform: translate3d(calc(100cqw - 39px), -1px, 0) rotate(14deg) scale(0.9); }
  90%, 100% { opacity: 0; transform: translate3d(calc(100cqw - 39px), -2px, 0) rotate(14deg) scale(0.86); }
}

.festa-film-emblem__relay {
  width: min(74vw, 460px);
  margin-top: 5px;
  padding-top: 7px;
  border-top: 1px solid rgba(220, 177, 94, 0.36);
  color: rgba(247, 235, 202, 0.92);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(11px, 1.35vw, 14px);
  line-height: 1.5;
  text-align: center;
  text-shadow: 0 2px 8px #000, 0 0 18px #000;
}

.festa-film-decade-nav {
  position: absolute;
  z-index: 7;
  right: 5%;
  bottom: 174px;
  left: 5%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid rgba(216, 170, 84, 0.3);
  border-bottom: 1px solid rgba(216, 170, 84, 0.22);
  background: rgba(3, 5, 8, 0.64);
  backdrop-filter: blur(6px);
}

.festa-film-decade-nav button {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 7px 4px 6px;
  border: 0;
  border-right: 1px solid rgba(216, 170, 84, 0.14);
  color: rgba(222, 199, 151, 0.7);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: 0;
  background: transparent;
  cursor: pointer;
}

.festa-film-decade-nav button:last-child { border-right: 0; }
.festa-film-decade-nav button strong { font-size: 10px; font-weight: 600; }
.festa-film-decade-nav button span { font: 9px/1.2 Georgia, "Times New Roman", serif; }
.festa-film-decade-nav button:hover,
.festa-film-decade-nav button:focus-visible,
.festa-film-decade-nav button[aria-pressed="true"] { color: #f4ddb0; }
.festa-film-decade-nav button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(215, 170, 84, 0.12), rgba(215, 170, 84, 0.025));
  box-shadow: inset 0 -2px #d4a14a;
}
.festa-film-decade-nav button:focus-visible { outline: 1px solid #e8bd69; outline-offset: -3px; }

.festa-film-era-flow {
  position: absolute;
  z-index: 6;
  left: 30%;
  right: 30%;
  bottom: 112px;
  display: grid;
  grid-template-columns: repeat(var(--period-count, 4), minmax(0, 1fr));
  align-items: end;
  height: 52px;
  margin: 0;
  padding: 0 2%;
  list-style: none;
}

.festa-film-era-flow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 12px;
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, rgba(216, 170, 84, 0.5) 15%, rgba(216, 170, 84, 0.5) 85%, transparent);
  pointer-events: none;
}

.festa-film-era-flow li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1px;
  font-size: 11px;
}

.festa-film-era-flow li[hidden] {
  display: none;
}

.festa-film-era-flow button::before {
  content: "";
  width: 5px;
  height: 5px;
  margin-bottom: 3px;
  border: 1px solid #c99c4b;
  background: #060709;
  transform: rotate(45deg);
  transition: background-color 240ms ease, box-shadow 240ms ease, transform 240ms ease;
}

.festa-film-era-flow button {
  display: grid;
  justify-items: center;
  gap: 1px;
  min-width: 44px;
  padding: 3px 2px;
  border: 0;
  color: #d8aa54;
  font: inherit;
  font-family: Georgia, "Times New Roman", "Yu Mincho", serif;
  line-height: 1.2;
  text-shadow: 0 2px 8px #000;
  background: transparent;
  cursor: pointer;
}

.festa-film-era-flow button:hover,
.festa-film-era-flow button:focus-visible,
.festa-film-era-flow button[aria-pressed="true"] {
  color: #fff2cd;
}

.festa-film-era-flow button:focus-visible {
  outline: 1px solid #e8bd69;
  outline-offset: 3px;
}

.festa-film-era-flow button[aria-pressed="true"]::before {
  background: #e7b85d;
  box-shadow: 0 0 12px rgba(235, 187, 91, 0.92);
  transform: rotate(45deg) scale(1.45);
}

.festa-film-era-flow button[aria-pressed="true"]::before {
  animation: festaEraMarkerPulse 3.2s cubic-bezier(0.45, 0, 0.18, 1) infinite;
}

@keyframes festaEraMarkerPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(226, 182, 93, 0), 0 0 10px rgba(226, 182, 93, 0.34); }
  50% { box-shadow: 0 0 0 5px rgba(226, 182, 93, 0.06), 0 0 18px rgba(238, 199, 119, 0.56); }
}

.festa-film-era-flow small {
  color: #efe1bc;
  font-size: 10px;
  letter-spacing: 0;
}

.festa-film-era-story {
  position: absolute;
  z-index: 7;
  right: 4.5%;
  bottom: 12px;
  left: 4.5%;
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 84px;
  border-top: 1px solid rgba(223, 180, 98, 0.46);
  border-bottom: 1px solid rgba(223, 180, 98, 0.18);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(240, 210, 149, 0.035), transparent 24%, transparent 78%, rgba(240, 210, 149, 0.025)),
    repeating-linear-gradient(0deg, rgba(255, 245, 220, 0.012) 0 1px, transparent 1px 7px),
    rgba(4, 6, 10, 0.92);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 229, 171, 0.05);
  isolation: isolate;
  transform-origin: 50% 100%;
}

.festa-film-era-story::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(100deg, transparent 10%, rgba(255, 233, 190, 0.07) 47%, transparent 72%);
  opacity: 0;
  transform: translate3d(-42%, 0, 0);
  pointer-events: none;
}

.festa-film-era-story::after {
  content: "";
  position: absolute;
  z-index: 4;
  top: -1px;
  left: -18%;
  width: 22%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 143, 0.64) 58%, #fff1c5 84%, transparent);
  box-shadow: 0 0 8px rgba(241, 191, 91, 0.72), 0 0 22px rgba(241, 191, 91, 0.28);
  opacity: 0;
  pointer-events: none;
}

.festa-film-era-story.is-revealing {
  animation: festaEraStoryReveal 920ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.festa-film-era-story.is-revealing::before {
  animation: festaArchivePageLight 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.festa-film-era-story.is-revealing::after {
  animation: festaArchivePenTrace 920ms cubic-bezier(0.36, 0, 0.2, 1) both;
}

@keyframes festaEraStoryReveal {
  0% { opacity: 0.22; filter: blur(2px); transform: perspective(900px) translate3d(0, 7px, 0) rotateX(-4deg); }
  44% { opacity: 0.86; filter: blur(0.3px); }
  100% { opacity: 1; filter: blur(0); transform: perspective(900px) translate3d(0, 0, 0) rotateX(0); }
}

@keyframes festaArchivePageLight {
  0% { opacity: 0; transform: translate3d(-42%, 0, 0); }
  34% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(72%, 0, 0); }
}

@keyframes festaArchivePenTrace {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scaleX(0.18); }
  18% { opacity: 1; }
  72% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(535%, 0, 0) scaleX(1); }
}

.festa-film-era-story__year {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1px;
  margin: 0;
  border-right: 1px solid rgba(223, 180, 98, 0.22);
  color: #dec184;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.festa-film-era-story__year span {
  font-size: 12px;
}

.festa-film-era-story__year strong {
  position: relative;
  color: #f2d38d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 400;
}

.festa-film-era-story__year strong::after {
  content: "";
  position: absolute;
  right: 2%;
  bottom: -2px;
  left: 2%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 190, 93, 0.9) 18%, rgba(255, 225, 158, 0.62) 82%, transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.festa-film-era-story.is-revealing .festa-film-era-story__year strong {
  animation: festaArchiveYearInk 760ms 80ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.festa-film-era-story.is-revealing .festa-film-era-story__year strong::after {
  animation: festaArchiveUnderline 680ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes festaArchiveYearInk {
  0% { opacity: 0; clip-path: inset(0 100% 0 0); text-shadow: 0 0 14px rgba(248, 201, 104, 0); }
  64% { opacity: 1; text-shadow: 0 0 14px rgba(248, 201, 104, 0.4); }
  100% { opacity: 1; clip-path: inset(0 0 0 0); text-shadow: none; }
}

@keyframes festaArchiveUnderline {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 1; transform: scaleX(1); }
}

.festa-film-era-story dl {
  display: grid;
  grid-template-columns: 1.15fr 0.82fr 1fr 1fr;
  align-items: stretch;
  margin: 0;
}

.festa-film-era-story dl > div {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 12px 15px;
  border-right: 1px solid rgba(223, 180, 98, 0.12);
}

.festa-film-era-story dl > div:last-child {
  border-right: 0;
}

.festa-film-era-story dt {
  color: #c39345;
  font-size: 10px;
  font-weight: 700;
}

.festa-film-era-story__competition {
  background: linear-gradient(180deg, rgba(213, 169, 86, 0.055), rgba(213, 169, 86, 0.012));
}

.festa-film-era-story__competition dd {
  color: #f0d79f;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.festa-film-era-story dd {
  margin: 0;
  color: #ede4cf;
  font-size: clamp(11px, 1.2vw, 13px);
  line-height: 1.55;
}

@media (max-width: 720px) {
  .festa-film-hero {
    width: calc(100% + 32px);
    height: 660px;
    margin: 22px -16px 8px;
  }

  .festa-film-strip {
    left: -18%;
    width: 136%;
    height: 72px;
    padding: 11px 0;
  }

  .festa-film-strip--past {
    top: 48px;
  }

  .festa-film-strip--present {
    bottom: 322px;
    height: 92px;
    padding: 13px 0;
  }

  .festa-film-frame {
    width: 118px;
  }

  .festa-film-emblem img {
    width: 104px;
  }

  .festa-film-emblem__name {
    font-size: 14px;
  }

  .festa-film-emblem__relay {
    width: 250px;
    margin-top: 6px;
    padding-top: 5px;
    font-size: 10px;
  }

  .festa-film-baton {
    grid-template-columns: auto minmax(72px, 116px) auto;
    gap: 6px;
    width: 240px;
    font-size: 8px;
  }

  .festa-film-decade-nav {
    right: 16px;
    bottom: 254px;
    left: 16px;
  }

  .festa-film-decade-nav button {
    padding: 7px 1px 6px;
  }

  .festa-film-decade-nav button strong { font-size: 9px; }
  .festa-film-decade-nav button span { font-size: 8px; }

  .festa-film-era-flow {
    left: 12%;
    right: 12%;
    bottom: 196px;
    padding: 0;
  }

  .festa-film-era-flow li {
    font-size: 10px;
  }

  .festa-film-era-flow button {
    min-width: 0;
    padding-right: 0;
    padding-left: 0;
  }

  .festa-film-era-flow small {
    font-size: 9px;
  }

  .festa-film-era-story {
    right: 16px;
    bottom: 12px;
    left: 16px;
    grid-template-columns: 74px 1fr;
    min-height: 184px;
  }

  .festa-film-emblem {
    top: 26%;
  }

  .festa-film-era-story__year strong {
    font-size: 20px;
  }

  .festa-film-era-story dl {
    grid-template-columns: 1fr;
  }

  .festa-film-era-story dl > div {
    grid-template-columns: 38px 1fr;
    align-items: baseline;
    gap: 6px;
    padding: 5px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(223, 180, 98, 0.1);
  }

  .festa-film-era-story dl > div:last-child {
    border-bottom: 0;
  }

  .festa-film-era-story dd {
    font-size: 11px;
    line-height: 1.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  .festa-film-hero,
  .festa-film-projector-light,
  .festa-film-emblem,
  .festa-film-emblem img,
  .festa-film-rail,
  .festa-film-strip,
  .festa-film-era-flow button[aria-pressed="true"]::before,
  .festa-film-era-story.is-revealing {
    animation: none !important;
    transform: none !important;
  }

  .festa-film-era-story.is-revealing::before,
  .festa-film-era-story.is-revealing::after,
  .festa-film-era-story.is-revealing .festa-film-era-story__year strong,
  .festa-film-era-story.is-revealing .festa-film-era-story__year strong::after {
    animation: none !important;
  }

  .festa-film-baton__track i {
    left: calc(50% - 21px);
    opacity: 1;
    animation: none !important;
    transform: rotate(0deg);
  }

  .festa-film-dance-relay__photo,
  .festa-film-dance-relay__light {
    animation: none !important;
  }

  .festa-film-dance-relay__photo { opacity: 0.58; }
  .festa-film-dance-relay__light { left: 34.5%; opacity: 0.42; }
}

/* 60th anniversary stage: the archive, emblem and chronology share one space. */
@media (min-width: 721px) {
  .festa-film-hero {
    width: 100vw;
    height: clamp(710px, 66vw, 820px);
    margin: 38px calc(50% - 50vw) 18px;
    border: 0;
    background-position: 50% 46%;
    box-shadow:
      inset 0 110px 130px rgba(0, 0, 0, 0.36),
      inset 0 -150px 170px rgba(0, 0, 0, 0.82),
      0 36px 90px rgba(0, 0, 0, 0.34);
  }

  .festa-film-hero::before,
  .festa-film-hero::after {
    width: clamp(70px, 12vw, 210px);
  }

  .festa-film-hero::before {
    background: linear-gradient(90deg, #03070d 4%, rgba(3, 7, 13, 0.74) 34%, transparent);
  }

  .festa-film-hero::after {
    background: linear-gradient(270deg, #03070d 4%, rgba(3, 7, 13, 0.74) 34%, transparent);
  }

  .festa-film-hero__kicker {
    top: 22px;
    padding: 0 18px;
    color: rgba(222, 187, 119, 0.84);
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .festa-film-sixty {
    position: absolute;
    z-index: 1;
    top: 31px;
    left: 50%;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    column-gap: clamp(12px, 2vw, 28px);
    width: min(82vw, 940px);
    color: rgba(217, 174, 91, 0.5);
    font-family: Georgia, "Times New Roman", serif;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .festa-film-sixty::before,
  .festa-film-sixty::after {
    content: "";
    position: absolute;
    top: 47%;
    width: 31%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(222, 181, 102, 0.38));
  }

  .festa-film-sixty::before { left: 0; }
  .festa-film-sixty::after { right: 0; transform: scaleX(-1); }

  .festa-film-sixty strong {
    grid-column: 2;
    color: transparent;
    font-size: clamp(170px, 25vw, 320px);
    font-weight: 400;
    line-height: 0.82;
    -webkit-text-stroke: 1px rgba(226, 184, 103, 0.16);
    text-shadow: 0 0 65px rgba(199, 143, 50, 0.08);
  }

  .festa-film-sixty__years {
    position: relative;
    z-index: 1;
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .festa-film-sixty__years:first-of-type { justify-self: end; }
  .festa-film-sixty__years:nth-of-type(2) { justify-self: start; }

  .festa-film-sixty small {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: -12px;
    color: rgba(236, 211, 160, 0.48);
    font-size: 9px;
    letter-spacing: 0.22em;
  }

  .festa-film-strip {
    left: -5%;
    width: 110%;
    border-color: rgba(215, 171, 88, 0.44);
  }

  .festa-film-strip--past {
    top: 106px;
    height: 106px;
    opacity: 0.62;
  }

  .festa-film-strip--present {
    bottom: 250px;
    height: 136px;
  }

  .festa-film-emblem {
    top: 35%;
  }

  .festa-film-emblem img {
    width: clamp(126px, 13vw, 176px);
  }

  .festa-film-emblem__name {
    margin-top: 7px;
    font-size: clamp(18px, 2vw, 26px);
    letter-spacing: 0.08em;
  }

  .festa-film-emblem__anniversary {
    letter-spacing: 0.12em;
  }

  .festa-film-dance-relay {
    top: calc(100% - 112px);
    width: min(72vw, 720px);
    height: 104px;
  }

  .festa-film-dance-relay__photo {
    height: 94px;
  }

  .festa-film-baton {
    width: min(70vw, 520px);
    margin-top: 11px;
    font-size: 10px;
  }

  .festa-film-emblem__relay {
    width: min(72vw, 600px);
    margin-top: 8px;
    font-size: clamp(12px, 1.25vw, 15px);
  }

  .festa-film-decade-nav {
    right: max(5%, calc((100vw - 1180px) / 2));
    bottom: 214px;
    left: max(5%, calc((100vw - 1180px) / 2));
    background: linear-gradient(90deg, rgba(3, 6, 10, 0.9), rgba(8, 12, 18, 0.7), rgba(3, 6, 10, 0.9));
  }

  .festa-film-decade-nav button {
    padding: 10px 5px 9px;
  }

  .festa-film-decade-nav button strong { font-size: 11px; }
  .festa-film-decade-nav button span { font-size: 10px; }

  .festa-film-era-flow {
    right: max(28%, calc((100vw - 610px) / 2));
    bottom: 147px;
    left: max(28%, calc((100vw - 610px) / 2));
  }

  .festa-film-era-story {
    right: max(5%, calc((100vw - 1180px) / 2));
    bottom: 24px;
    left: max(5%, calc((100vw - 1180px) / 2));
    min-height: 100px;
    border-top-color: rgba(232, 194, 119, 0.52);
    background:
      linear-gradient(105deg, rgba(240, 210, 149, 0.045), transparent 24%, transparent 78%, rgba(240, 210, 149, 0.035)),
      repeating-linear-gradient(0deg, rgba(255, 245, 220, 0.012) 0 1px, transparent 1px 7px),
      rgba(3, 6, 11, 0.94);
  }
}

@media (min-width: 721px) and (max-width: 900px) {
  .festa-film-hero {
    height: 790px;
  }

  .festa-film-emblem {
    z-index: 6;
    top: 33%;
  }

  .festa-film-emblem img {
    filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.98)) drop-shadow(0 0 22px rgba(232, 183, 86, 0.38));
  }

  .festa-film-strip--present {
    bottom: 320px;
  }

  .festa-film-decade-nav {
    bottom: 274px;
  }

  .festa-film-era-flow {
    right: 22%;
    bottom: 206px;
    left: 22%;
  }

  .festa-film-era-story {
    bottom: 24px;
    grid-template-columns: 104px 1fr;
    min-height: 170px;
  }

  .festa-film-era-story dl {
    grid-template-columns: 1fr 1fr;
  }

  .festa-film-era-story dl > div {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(223, 180, 98, 0.1);
  }

  .festa-film-era-story dl > div:nth-child(2n) {
    border-right: 0;
  }

  .festa-film-era-story dl > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .festa-film-sixty {
    position: absolute;
    z-index: 1;
    top: 42px;
    left: 50%;
    display: grid;
    grid-template-columns: auto auto auto;
    align-items: center;
    gap: 7px;
    width: 90%;
    color: rgba(218, 178, 99, 0.48);
    font-family: Georgia, "Times New Roman", serif;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .festa-film-sixty strong {
    color: transparent;
    font-size: 102px;
    font-weight: 400;
    line-height: 0.8;
    -webkit-text-stroke: 1px rgba(226, 184, 103, 0.16);
  }

  .festa-film-sixty__years { font-size: 8px; }
  .festa-film-sixty__years:first-of-type { justify-self: end; }
  .festa-film-sixty small {
    grid-column: 1 / -1;
    justify-self: center;
    margin-top: -5px;
    font-size: 6px;
    letter-spacing: 0.12em;
  }
}
