/* The same Proto footer composition is used by the homepage and retained pages. */
.proto-film-footer {
  --footer-paper: #eee4d5;
  --footer-ink: #29221e;
  --footer-muted: #50463d;
  --footer-line: rgb(56 43 33 / 28%);
  --footer-control-surface: color-mix(in srgb, var(--footer-paper) 88%, transparent);
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  min-height: 41rem;
  overflow: hidden;
  padding: 0;
  color: var(--footer-ink);
  background: var(--footer-paper);
  font-family: 'Supreme', sans-serif;
  box-sizing: border-box;
}

.kinetic-page:has(> .proto-film-footer) { padding-bottom: 0; }
body.proto-footer-in-view .k-roaming-download { visibility: hidden; opacity: 0; pointer-events: none; }
body.proto-footer-in-view .k-mobile-download-dock { display: none !important; }

.proto-film-footer.site-footer {
  border: 0;
  background-image: none;
  box-shadow: var(--footer-rich-surface-shadow);
}

.proto-film-footer .proto-footer-film,
.proto-film-footer .proto-footer-film video,
.proto-film-footer__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.proto-film-footer .proto-footer-film { z-index: -2; }
.proto-film-footer .proto-footer-film video {
  display: block;
  object-fit: cover;
  object-position: center 57%;
  filter: sepia(.08) saturate(.78) contrast(1.14) brightness(1.04);
}

.proto-film-footer__veil {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgb(244 238 229 / 77%) 0%,
    rgb(239 229 216 / 62%) 48%,
    rgb(231 217 200 / 34%) 100%);
}

html.dark .proto-film-footer {
  --footer-paper: #302019;
  --footer-ink: #f8f0e6;
  --footer-muted: #e2d0bf;
  --footer-line: rgb(248 240 230 / 34%);
}

html.dark .proto-film-footer .proto-footer-film video {
  filter: sepia(.24) saturate(.94) contrast(1.18) brightness(.76);
}

html.dark .proto-film-footer .proto-film-footer__veil {
  background: linear-gradient(180deg,
    rgb(48 28 18 / 86%) 0%,
    rgb(54 32 21 / 67%) 48%,
    rgb(38 23 16 / 43%) 100%);
}

html.dark .proto-film-footer::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 6rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgb(18 10 7 / 88%), rgb(27 15 10 / 56%) 28%, transparent);
}

.proto-film-footer__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 41rem;
  max-width: 100rem;
  margin-inline: auto;
  padding: clamp(2.5rem, 5vw, 5.5rem) clamp(1.5rem, 4.5vw, 5rem) 1.5rem;
  box-sizing: border-box;
}

.proto-film-footer__main {
  display: grid;
  grid-template-columns: minmax(20rem, .95fr) minmax(0, 2.6fr);
  gap: clamp(2rem, 4vw, 5rem);
}

.proto-film-footer__logo {
  display: inline-block;
  text-decoration: none;
}
.proto-film-footer__logo img { display: block; width: clamp(8.5rem, 11vw, 10.5rem); height: auto; }
html.dark .proto-film-footer .proto-film-footer__logo img { filter: brightness(0) invert(1); }
.proto-film-footer__copy { margin-top: clamp(1.75rem, 3vw, 2.75rem); }
.proto-film-footer__copy p {
  margin: 0;
  color: var(--footer-muted);
  font-size: clamp(.8rem, 1.1vw, 1rem);
  line-height: 1.55;
}
.proto-film-footer__description { white-space: nowrap; }
.proto-film-footer__built { display: flex; align-items: center; gap: .35rem; margin-top: .25rem !important; }
.proto-film-footer__maker { display: inline-flex; align-items: center; }
.proto-film-footer__maker img { display: block; width: 4rem; height: auto; filter: brightness(0) saturate(100%) opacity(.78); }
html.dark .proto-film-footer .proto-film-footer__maker img { filter: brightness(0) invert(1) opacity(.92); }

.proto-film-footer__nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem);
}
.proto-film-footer__group h2 {
  margin: .5rem 0 1.5rem;
  color: var(--footer-ink);
  font-family: 'Supreme', sans-serif;
  font-size: .95rem;
  font-weight: 650;
  letter-spacing: 0;
}
.proto-film-footer__group ul { list-style: none; margin: 0; padding: 0; }
.proto-film-footer__group li + li { margin-top: .85rem; }
.proto-film-footer__group a,
.proto-film-footer__group button {
  display: inline-block;
  padding: .1rem 0;
  border: 0;
  background: none;
  color: var(--footer-muted);
  font: inherit;
  font-size: .9rem;
  line-height: 1.4;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.proto-film-footer a:hover,
.proto-film-footer__group button:hover { color: var(--footer-ink); text-decoration: underline; text-underline-offset: .2em; }
.proto-film-footer a:focus-visible,
.proto-film-footer button:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 2px; }

.proto-film-footer__bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--footer-line);
  color: var(--footer-ink);
  font-size: .8rem;
}
.proto-film-footer__copyright {
  padding: .4rem .65rem;
  border-radius: 999px;
  background: var(--footer-control-surface);
  white-space: nowrap;
}
.proto-film-footer__back { display: inline-flex; align-items: center; gap: .35rem; padding: .55rem .75rem; border-radius: 999px; background: var(--footer-control-surface); color: var(--footer-ink); text-decoration: none; white-space: nowrap; }
.proto-film-footer__back svg { width: 1rem; height: 1rem; }
.proto-film-footer__back--slot {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.125rem;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
}
.proto-film-footer__back--slot svg { width: 1.25rem; height: 1.25rem; }
body[data-proto-back-ready] .proto-film-footer__back--slot { visibility: hidden; }
.proto-film-footer__controls {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 1rem;
  min-height: 3.5rem;
}
.proto-film-footer__theme {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  flex: 0 0 4.625rem;
  width: 4.625rem;
  height: 2.125rem;
  padding: .1875rem;
  border: 1px solid rgb(56 43 33 / 18%);
  border-radius: 999px;
  background: var(--footer-control-surface);
  box-shadow: inset 0 1px 1px rgb(18 15 12 / 18%), 0 1px 0 rgb(255 255 255 / 72%);
  isolation: isolate;
}
.proto-film-footer__theme-thumb {
  position: absolute;
  z-index: 0;
  top: .1875rem;
  bottom: .1875rem;
  left: .1875rem;
  width: calc(50% - .1875rem);
  border: 1px solid var(--footer-ink);
  border-radius: 999px;
  background: var(--footer-ink);
  box-shadow: 0 .45rem .85rem -.25rem rgb(18 15 12 / 32%), inset 0 1px 0 rgb(255 255 255 / 28%);
  transition: transform .2s ease-out, background .15s ease-out, border-color .15s ease-out;
  pointer-events: none;
}
.proto-film-footer__theme:has([data-theme='dark'][aria-checked='true']) .proto-film-footer__theme-thumb { transform: translateX(100%); }
.proto-film-footer__theme .theme-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6c6056;
  cursor: pointer;
  transition: color .15s ease-out, transform .15s ease-out;
}
.proto-film-footer__theme .theme-btn:hover { color: #29221e; }
.proto-film-footer__theme .theme-btn[aria-checked='true'],
.proto-film-footer__theme .theme-btn[aria-checked='true']:hover { color: var(--footer-paper); }
.proto-film-footer__theme .theme-btn:active { transform: translateY(1px); }
.proto-film-footer__theme .theme-btn:focus-visible { outline: 2px solid var(--proto-orange); outline-offset: .125rem; }
.proto-film-footer__theme svg { width: .9375rem; height: .9375rem; stroke-width: 2.15; }
.proto-film-footer__film-toggle svg { display: block; width: 1rem; height: 1rem; }
.proto-film-footer__film-toggle { display: inline-grid; place-items: center; flex: 0 0 2.125rem; width: 2.125rem; height: 2.125rem; padding: 0; border: 1px solid var(--footer-line); border-radius: 50%; background: var(--footer-control-surface); color: var(--footer-ink); cursor: pointer; }
.proto-film-footer__film-toggle span:not([hidden]) { display: grid; place-items: center; width: 100%; height: 100%; line-height: 0; }
.proto-film-footer__film-toggle:hover { background: var(--footer-ink); color: var(--footer-paper); }
.proto-film-footer__film-toggle[hidden] { display: none; }
.proto-film-footer__film-toggle span[hidden] { display: none; }
html.dark .proto-film-footer__theme { border-color: rgb(248 240 230 / 32%); box-shadow: inset 0 1px 1px rgb(18 15 12 / 32%), 0 1px 0 rgb(248 240 230 / 14%); }
html.dark .proto-film-footer__theme .theme-btn { color: #d8c7b6; }
html.dark .proto-film-footer__theme .theme-btn:hover { color: #fff7ed; }
html.dark .proto-film-footer__theme .theme-btn[aria-checked='true'],
html.dark .proto-film-footer__theme .theme-btn[aria-checked='true']:hover { color: #302019; }

.proto-back-to-top {
  --back-size: 3.5rem;
  --back-right: clamp(1.5rem, 4.5vw, 5rem);
  --back-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  position: fixed;
  right: var(--back-right);
  bottom: var(--back-bottom);
  z-index: 80;
  display: grid;
  place-items: center;
  width: var(--back-size);
  height: var(--back-size);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #29221e;
  color: #f8f0e6;
  box-shadow: 0 8px 24px rgb(27 20 15 / 20%);
  cursor: pointer;
  translate: var(--back-dock-x, 0px) var(--back-dock-y, 0px);
  scale: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease-out, visibility .18s, scale .35s var(--proto-ease), transform .18s ease-out;
}
.proto-back-to-top[hidden] { display: none; }
.proto-back-to-top[data-visible='true'] { opacity: 1; visibility: visible; pointer-events: auto; }
.proto-back-to-top[data-compact='true'] { scale: var(--back-compact-scale); }
.proto-back-to-top:hover { transform: translateY(-2px); }
.proto-back-to-top:active { transform: scale(.95); }
.proto-back-to-top:focus-visible { outline: 3px solid var(--proto-orange); outline-offset: 4px; }
.proto-back-to-top > .icon { width: 1.5rem; height: 1.5rem; stroke-width: 2.25; }
.proto-back-to-top__progress {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 2;
  transform: rotate(-90deg);
  pointer-events: none;
}
.proto-back-to-top__track { stroke: currentColor; opacity: .3; }
.proto-back-to-top__value {
  stroke: #ff8a50;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--back-progress-offset, 100);
  stroke-linecap: round;
}
html.dark .proto-back-to-top { background: #f8f0e6; color: #302019; }
html.dark .proto-back-to-top__value { stroke: #a8421e; }

@media (max-width: 900px) {
  .proto-film-footer__main { grid-template-columns: 1fr; gap: 3.25rem; }
  .proto-film-footer__copy { margin-top: 1.5rem; }
}
@media (max-width: 620px) {
  .proto-film-footer__content { min-height: 0; padding: 2.5rem 1.5rem 1.25rem; }
  .proto-film-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.25rem 1.5rem; }
  .proto-film-footer__group h2 { margin-bottom: .8rem; }
  .proto-film-footer__group li + li { margin-top: .55rem; }
  .proto-film-footer__bottom { justify-content: space-between; gap: .75rem; margin-top: 5rem; }
  .proto-film-footer__controls { margin-left: auto; }
  .proto-film-footer .proto-footer-film video { object-position: 54% center; }
  .proto-back-to-top { --back-right: 1.5rem; --back-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .proto-film-footer__theme-thumb { transition: none; }
  .proto-back-to-top { transition: none; }
}
