/* The same Proto footer composition is used by the homepage and retained pages. */
.proto-film-footer {
  --footer-paper: #dfe1e4;
  --footer-ink: #212326;
  --footer-muted: #42454b;
  --footer-line: rgb(41 43 48 / 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; }
/* Only legacy roaming actions yield to the footer. Aurbliq keeps Download
   in its persistent header throughout both flow and reveal layouts. */
html:not(.aurbliq) 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 .proto-footer-film,
.proto-film-footer .proto-footer-film__poster,
.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; }
/* The film keeps its original 41rem framing on the bottom edge; a taller footer extends the paper above it. */
.proto-film-footer .proto-footer-film {
  inset: auto 0 0;
  height: min(100%, 41rem);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 9rem);
  mask-image: linear-gradient(180deg, transparent, #000 9rem);
}
.proto-film-footer .proto-footer-film__poster { z-index: 0; }
.proto-film-footer .proto-footer-film video { z-index: 1; display: block; }
.proto-film-footer .proto-footer-film__poster,
.proto-film-footer .proto-footer-film video {
  object-fit: cover;
  object-position: center 57%;
  filter: grayscale(.9) contrast(1.12) brightness(1.04);
}

.proto-film-footer__veil {
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgb(235 236 238 / 77%) 0%,
    rgb(226 227 229 / 62%) 48%,
    rgb(213 214 218 / 34%) 100%);
}

html.dark .proto-film-footer {
  --footer-paper: #222327;
  --footer-ink: #eeeff0;
  --footer-muted: #cdcfd4;
  --footer-line: rgb(238 239 240 / 34%);
}

html.dark .proto-film-footer .proto-footer-film__poster,
html.dark .proto-film-footer .proto-footer-film video {
  filter: grayscale(.9) contrast(1.16) brightness(.76);
}

html.dark .proto-film-footer .proto-film-footer__veil {
  background: linear-gradient(180deg,
    rgb(31 32 35 / 86%) 0%,
    rgb(35 36 40 / 67%) 48%,
    rgb(25 26 29 / 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(12 12 13 / 88%), rgb(17 18 20 / 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);
  /* Keeps the link groups above the skyline at the bottom of the film. */
  margin-bottom: clamp(6rem, 11vw, 11rem);
}

.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(5, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 3rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.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: space-between;
  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__closing {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.5rem;
}
.proto-film-footer__copyright {
  padding: .4rem .65rem;
  border-radius: 999px;
  background: var(--footer-control-surface);
  white-space: nowrap;
}
.proto-film-footer__copyright a { text-decoration: underline; text-underline-offset: .2em; }
.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 > .icon { 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 > .icon { 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(41 43 48 / 18%);
  border-radius: 999px;
  background: var(--footer-control-surface);
  box-shadow: inset 0 1px 1px rgb(14 15 16 / 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(14 15 16 / 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: #5a5e68;
  cursor: pointer;
  transition: color .15s ease-out, transform .15s ease-out;
}
.proto-film-footer__theme .theme-btn:hover { color: #212326; }
.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,
.proto-film-footer__cookie { 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 .proto-film-footer__film-toggle:focus-visible,
.proto-film-footer .proto-film-footer__cookie:focus-visible { border-radius: 50%; }
.proto-film-footer__cookie svg { display: block; width: 1.125rem; height: 1.125rem; }
.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,
.proto-film-footer__cookie: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; }
.proto-film-footer__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.125rem;
  padding-inline: .75rem;
  border: 1px solid var(--footer-line);
  border-radius: 999px;
  background: var(--footer-control-surface);
  color: var(--footer-ink);
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.proto-film-footer .proto-film-footer__status:hover { background: var(--footer-ink); color: var(--footer-paper); text-decoration: none; }
html.dark .proto-film-footer__theme { border-color: rgb(238 239 240 / 32%); box-shadow: inset 0 1px 1px rgb(14 15 16 / 32%), 0 1px 0 rgb(238 239 240 / 14%); }
html.dark .proto-film-footer__theme .theme-btn { color: #c3c5cb; }
html.dark .proto-film-footer__theme .theme-btn:hover { color: #f5f6f7; }
html.dark .proto-film-footer__theme .theme-btn[aria-checked='true'],
html.dark .proto-film-footer__theme .theme-btn[aria-checked='true']:hover { color: #222327; }

.proto-back-to-top {
  --back-size: 2.125rem;
  --back-right: 10px;
  --back-bottom: 10px;
  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: #212326;
  color: #eeeff0;
  box-shadow: 0 5px 15px rgb(var(--a-floating-shadow-rgb, 20 20 22) / 20%);
  cursor: pointer;
  touch-action: manipulation;
  translate: var(--back-dock-x, 0px) var(--back-dock-y, 0px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease-out, visibility .18s, translate .3s 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; }
@media (hover: hover) and (pointer: fine) {
  .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: calc(var(--back-size) * 3 / 7); height: calc(var(--back-size) * 3 / 7); 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: var(--a-back-progress, #ff8a50);
  stroke-dasharray: 100;
  stroke-dashoffset: var(--back-progress-offset, 100);
  stroke-linecap: round;
}
html.dark .proto-back-to-top { background: #eeeff0; color: #222327; }
html.dark .proto-back-to-top__value { stroke: var(--a-back-progress, #a8421e); }

.proto-mono-toggle {
  position: fixed;
  right: 10px;
  bottom: calc(10px + 2.125rem + 8px);
  z-index: 80;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  padding: 0;
  border: 1px solid var(--a-line);
  border-radius: 50%;
  background: var(--a-paper);
  color: var(--a-ink);
  box-shadow: 0 5px 15px rgb(var(--a-floating-shadow-rgb) / 20%);
  cursor: pointer;
  touch-action: manipulation;
  translate: 0 var(--mono-dock-y, 0px);
  transition: translate .3s var(--proto-ease), transform .18s ease-out, background-color .18s ease-out;
}
html.aurbliq:not([data-aurbliq-test]) .proto-mono-toggle { display: none; }
.proto-mono-toggle__swatch {
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--a-ink) 50%, var(--a-paper) 50%);
}
.proto-mono-toggle[aria-pressed='true'] { background: var(--a-ink); color: var(--a-paper); border-color: var(--a-ink); }
.proto-mono-toggle[aria-pressed='true'] .proto-mono-toggle__swatch { background: linear-gradient(90deg, var(--a-paper) 50%, var(--a-ink) 50%); }
@media (hover: hover) and (pointer: fine) { .proto-mono-toggle:hover { transform: translateY(-2px); } }
.proto-mono-toggle:active { transform: scale(.95); }

/* The same control sits inline on pages without a floating progress indicator.
   Its dimensions match Home's compact footer dock; the ring marks page end. */
.proto-back-to-top--footer {
  --back-progress-offset: 0;
  position: relative; right: auto; bottom: auto; flex: none;
  opacity: 1; visibility: visible; pointer-events: auto; translate: none;
}
.proto-film-footer .proto-back-to-top--footer:focus-visible { border-radius: 50%; }

@media (max-width: 1360px) {
  .proto-film-footer__main { grid-template-columns: 1fr; gap: 3.25rem; }
  .proto-film-footer__copy { margin-top: 1.5rem; }
}
@media (max-width: 900px) {
  .proto-film-footer__nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@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 { align-items: flex-start; gap: .75rem; margin-top: 5rem; }
  .proto-film-footer__closing { min-height: 2.125rem; gap: .75rem; }
  .proto-film-footer__controls { min-height: 2.125rem; margin-inline-start: auto; margin-inline-end: 2.75rem; gap: .5rem; }
  .proto-film-footer__status { padding-inline: .5rem; }
  .proto-film-footer .proto-footer-film__poster,
  .proto-film-footer .proto-footer-film video { object-position: 54% center; }
}
@media (max-width: 360px) {
  .proto-film-footer__status-prefix { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .proto-film-footer__theme-thumb { transition: none; }
  .proto-back-to-top { transition: none; }
  .proto-mono-toggle { transition: none; }
}
