/*
Theme Name: Stranger Than Fiction Films
Description: Custom Theme developed for Stranger Than Fiction Films by charlescalvinmarlow.com
Version: 1.0.1
Text Domain: stf
*/

/* variables */

:root {
  --stff-blue: #2727ff;
  --font-serif: "Archer", serif;
  --font-sans: "Helvetica", Arial, sans-serif;
  --white: #fff;
  --black: #000;
  --content-max: 100rem;                       /* 1600px */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --pad-inline: max(var(--gutter), calc((100% - var(--content-max)) / 2));
  --film-page-body-text: clamp(1rem, 2vw, 1.5rem);
  --film-page-credit-title-text: clamp(0.75rem, 1.6vw, 1.1rem);
}

.section, .header, .footer { padding-inline: var(--pad-inline); }
.slate__track { padding-inline: var(--pad-inline); scroll-padding-inline: var(--pad-inline); }


/* #################### */
/* GLOBAL RESET STYLES */
/* #################### */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  --header-h: 67px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  line-height: 1.6;
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* END global Reset */

/* FONTS */

@font-face {
    font-family: 'Archer Book';
    src: url('assets/fonts/Archer-BookItalic.woff2') format('woff2'),
        url('assets/fonts/Archer-BookItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Archer Book';
    src: url('assets/fonts/Archer-Book.woff2') format('woff2'),
        url('assets/fonts/Archer-Book.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Archer';
    src: url('assets/fonts/Archer-LightItalic.woff2') format('woff2'),
        url('assets/fonts/Archer-LightItalic.woff') format('woff');
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Archer';
    src: url('assets/fonts/Archer-Light.woff2') format('woff2'),
        url('assets/fonts/Archer-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* custom cursor styling */

body, a, button { cursor: none; }

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 21px;
  height: 21px;
  margin: -8px 0 0 -8px; /* centre on pointer */
  border-radius: 50%;
  background: var(--stff-blue);
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.15s;
}

.cursor.active {
  transform: scale(3) !important; /* see JS note below */
  mix-blend-mode: exclusion;
}

/* hide on touch devices */
@media (hover: none) { .cursor { display: none; } body, a, button { cursor: auto; } }

/* #################### */
/* HEADER STYLES */
/* #################### */

.header {
  display: flex;
  justify-content: space-between;
  position: fixed;
  top: 0;
  color: var(--white);
  padding: 20px 40px;
  z-index: 50;
  transition: background-color 0.3s, color 0.3s;
  inset-inline: 0;
}

.header__logo {
  height: 40px;
  max-width: none;
}

.nav {
  display: flex;
  gap: 40px;
  align-items: center;
}

.header__socials {
  display: flex;
  gap: 10px;
}

/* header after scrolling past hero */

header.scrolled,
header.is-open {
  background-color: var(--white);
  color: var(--stff-blue);
  border-bottom: 1px solid var(--stff-blue);
}

/* #################### */
/* HOME PAGE STYLES */
/* #################### */

section {
  border-bottom: 1px solid var(--stff-blue);
  padding: 100px 20px 150px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 32px;
  text-align: center;
  color: var(--stff-blue);
  font-weight: 100;
  margin-bottom: 50px;
}

.hero {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100dvh;
  overflow: hidden;
  /* PHP NOTE: background image needs to be next to video in the editor. Have a note saying image to show until video loads, 1920 x 1080px. Max 400KB. */
  background: var(--black) center / cover no-repeat;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.hero__title {
  position: absolute;
  bottom: 40px;
  left: 40px;
  display: flex;
  color: var(--white);
  align-items: end;
  gap: 15px;
  h4,
  p {
    text-box: trim-both cap alphabetic;
  }
  h4 {
    font-size: 40px;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: italic;
  }
  p {
    font-size: 22px;
    font-weight: 100;
  }
}

.hero__title a {
  position: relative;
  display: inline-block;
  text-decoration: none;
}

.hero__title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-out;
}

.hero__title:hover a::after {
  transform: scaleX(1);
}

.hero__arrow {
  animation: 1s infinite alternate ease-in-out bounce;
  position: absolute;
  bottom: 40px;
  left: 50%;
  translate: -50% 0;
  a {
    display: block;
    padding: 10px;
    transform: translateY(15px);
  }
}

.announcement {
  padding: 150px;
  /* scroll-margin-top: 67px; */
}

.announcement__banner {
  font-family: var(--font-serif);
  font-size: 64px;
  font-weight: 100;
  color: var(--stff-blue);
  text-decoration: underline;
  text-align: center;
  transition: opacity 0.3s;
  line-height: 1.2;
  &:hover {
    opacity: 0.5;
    transition: opacity 0.3s;
  }
}

.awards__container {
  display: flex;
  flex-wrap: wrap; /* extra items wrap instead of squashing */
  justify-content: center; /* last row stays centred */
  gap: 2rem;
}

.awards__award {
  flex: 0 1 min(100%, 24rem); /* every card gets the same width */
  aspect-ratio: 16 / 9; /* ratio lives on the card, not the children */
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  border-radius: 5px;
  overflow: hidden;
}

.awards__film-title {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--white);
  font-size: 24px;
  text-box: trim-both cap alphabetic;
}

.awards__awardimg,
.awards__hover {
  grid-area: 1 / 1; /* stack both in the same cell */
  min-width: 0;
  min-height: 0;
}

.awards__awardimg img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain; /* laurel is letterboxed, never distorted */
  padding: 1rem; /* optional breathing room */
}

.awards__hover {
  opacity: 0;
  transition: opacity 0.3s;
  background: var(--black) center / cover var(--award-bg);
  padding: 20px;
  display: flex;
  align-items: end;
}

@media (hover: hover) {
  .awards__hover:hover,
  .awards__hover:focus-visible {
    opacity: 1;
  }
}

/* festival selections start */

.laurels__container {
  --laurel-height: clamp(56px, 8vw, 97px); /* scales down on small screens */
  --laurel-gap: clamp(16px, 2.5vw, 28px);

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--laurel-gap);
  margin: 0;
  padding: 0;
}

/* Uniform height, natural width, never cropped or distorted */
.laurels__container img {
  display: block;
  height: var(--laurel-height);
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* slate carousel */

.slate {
  --poster-w: clamp(220px, 25.7vw, 389px);
  --poster-h: calc(var(--poster-w) * 1.5); /* 389 x 583 ratio */
  --slate-gap: 15px;
  --slate-pad: clamp(16px, 3.2vw, 48px);
  padding-left: 0;
  padding-right: 0;
}

.slate__viewport {
  position: relative;
}

/* ---- Track ---- */
.slate__track {
  display: flex;
  gap: var(--slate-gap);
  margin: 0;
  padding: 20px var(--slate-pad);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--slate-pad);
  scrollbar-width: none;
  overscroll-behavior-x: contain; /* swiping past the end won't trigger browser back/forward */
  cursor: grab;
}
.slate__track::-webkit-scrollbar {
  display: none;
}

.slate__item {
  flex: 0 0 auto;
  width: var(--poster-w);
  margin: 0;
  scroll-snap-align: start;
}

.slate__card {
  display: block;
  transition: transform 0.5s, opacity 0.5s;
  &:hover {
    transform: translateY(-20px);
  }
}

.slate__cardposter {
  display: block;
  width: 100%;
  aspect-ratio: 389 / 583;
  object-fit: cover;
  border-radius: 10px;
  -webkit-user-drag: none; /* stops the browser's ghost-image drag */
  user-select: none;
}

/* ---- Caption (revealed on hover/focus) ---- */
.slate__cardcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 17px;
  padding: 0 5px;
  font-size: 19px;
  line-height: normal;
  color: var(--black);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.slate__cardyear {
  font-weight: 300;
}

.slate__card:is(:hover, :focus-visible) .slate__cardcaption {
  opacity: 1;
}

/* Touch devices can't hover, so always show captions */
@media (hover: none) {
  .slate__cardcaption {
    opacity: 1;
  }
}

/* ---- Arrows ---- */
.slate__arrow {
  position: absolute;
  top: calc(var(--poster-h) / 2);
  transform: translateY(-50%);
  z-index: 2;
  width: 37px;
  height: 75px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.slate__arrow--prev {
  left: 24px;
}
.slate__arrow--next {
  right: 24px;
}

.slate__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: var(--stff-blue);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.slate__arrow:disabled {
  opacity: 0.2;
  cursor: default;
}
.slate__arrow:focus-visible {
  outline: 2px solid var(--stff-blue);
  outline-offset: 4px;
}

.slate__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none; /* free movement while dragging */
  user-select: none;
}

@media (max-width: 600px) {
  .slate__title {
    margin-bottom: 40px;
  }
  .slate__arrow {
    display: none;
  } /* swipe on touch */
}

/* footer styles */

.footer {
  color: var(--stff-blue);
  padding: 40px 40px 0px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 20px;

  h2 {
    font-size: 24px;
    font-family: var(--font-serif);
    font-weight: 100;
    text-box: trim-both cap alphabetic;
  }
  p {
    font-weight: 100;
    text-box: trim-both cap alphabetic;
  }
}

.footer__socials {
  display: flex;

  a img {
    height: 24px;
  }
}

.footer__policies {
  display: flex;
  flex-direction: column;
  font-weight: 100;
  font-size: 14px;
}

.footer__submissions {
  font-weight: 100;
  font-size: 14px;
  max-width: 35%;
  h5 {
    font-size: 14px;
    font-weight: 100;
  }
}

.footer__logo-image {
  mask-image: url(images/logos/stacked-logo.svg);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  max-height: 60vh;
  height: 600px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
  img {
    height: 100%;
    max-width: none;
  }
}

/* #################### */
/* ABOUT PAGE STYLES */
/* #################### */

.about {
  margin-top: 300px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: 20px 40px 60px;
}

.abt-section-title {
  grid-column: 1 / 4;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 48px;
  color: var(--stff-blue);
  text-box: trim-both cap alphabetic;
}

.about__content {
  grid-column: 5 / 12;
  p {
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 24px;
    line-height: 28px;
    margin-bottom: 1em;
  }
}

#team {
  scroll-margin-top: 67px;
}

.team {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 50px;
  gap: 50px 20px;
  padding: 20px 40px;
}

.team__title {
  grid-column: 1 / 4;
  position: sticky;
  top: 120px;
  height: 80px;
}

.team__members {
  grid-column: 5 / 13;
}

.team__member-card {
  display: grid;
  gap: 30px 20px;
  grid-template-columns: repeat(8, 1fr);
  border-bottom: 1px solid var(--stff-blue);
  padding-bottom: 80px;
  margin-bottom: 60px;
}

.team__members .team__member-card:last-of-type {
  border-bottom: none;
}

.team__member-card-name {
  grid-column: 1 / 4;
  color: var(--stff-blue);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 32px;
  text-box: trim-both cap alphabetic;
  line-height: 1.2;
}

.team__member-card-job {
  grid-column: 4 / 8;
  color: var(--stff-blue);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 100;
  font-size: 16px;
  line-height: 28px;
  align-self: end;
}

.team__member-card-image {
  grid-column: 1 / 3;
}

.team__member-card-bio {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.4;
  grid-column: 4 / 8;
}

/* LIGHTBOX STYLES */
/* Vimeo lightbox: structural CSS only (layout, show/hide, responsiveness).
   No colors, fonts, borders, radii or animation, so you can theme it yourself. */

.vbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px))
    max(16px, env(safe-area-inset-right, 0px))
    max(16px, env(safe-area-inset-bottom, 0px))
    max(16px, env(safe-area-inset-left, 0px));
  /* Needed so the page behind is dimmed; swap for your own value */
  background: rgba(0, 0, 0, 0.8);
}

.vbox.open {
  display: flex;
}

.vbox-inner {
  position: relative;
  width: min(100%, 960px);
  max-height: 100%;
}

.vbox-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.vbox-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Close button sits above the top-right corner of the player */
.vbox-close {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: 44px; /* minimum comfortable touch target */
  height: 44px;
}

/* Short landscape phones: fit the player to the height, button moves beside it */
@media (max-height: 480px) and (orientation: landscape) {
  .vbox-inner {
    width: min(100%, calc((100vh - 32px) * 16 / 9));
  }
  .vbox-close {
    right: -52px;
    bottom: auto;
    top: 0;
  }
}

/* Stops the page scrolling behind the open lightbox */
body.vbox-lock {
  overflow: hidden;
}

/* END LIGHTBOX STYLES */

/* STYLES FOR FILM PAGES */

/* ---------- Hero ---------- */
.filmhero {
  position: relative;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 30px 30px;
  color: var(--white);
  overflow: hidden;
}

/* gradient overlay for text legibility */
.filmhero::after {
  content: "";
  position: absolute;
  inset: 0; /* shorthand for top/right/bottom/left: 0 */
  background: linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none; /* lets clicks pass through to what's underneath */
  z-index: 2;
  mix-blend-mode: multiply;
}


.filmhero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.filmhero__bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 3;
}

.filmhero__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 80%;
}

.filmhero__title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 3em;
  text-box: trim-both cap alphabetic;
}

.filmhero__meta {
  font-size: 1.3em;
  font-weight: 300;
  text-box: trim-both cap alphabetic;
}

.filmhero__trailer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 134px;
  height: 56px;
  min-width: 134px;
  padding: 10px 20px;
  border: 1px solid var(--white);
  border-radius: 5px;
  transition: background-color 0.5s;
}

.filmhero__trailer:hover {
  background: var(--white);
  color: var(--stff-blue);
}

.filmhero__trailertext {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  text-box: trim-both cap alphabetic;
}

/* ---------- Film info ---------- */
.film {
  display: grid;
  grid-template-columns: 2fr 1fr;
  column-gap: 60px;
  row-gap: 87px;
  padding: 83px 29px 80px;
}

.film__about {
  display: flex;
  flex-direction: column;
  gap: 104px;
  grid-row: 1 / 3;
  grid-column: 1 / 2;
}

.film__description {
  font-size: var(--film-page-body-text);
  font-weight: 300;
  max-width: 837px;
  line-height: 1.3;
  p {
    margin-bottom: 1lh;
  }
}

.filmstills {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.filmstills__still {
  width: 100%;
  aspect-ratio: 16 / 9;
  img {
    display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  }
}

.film__watchbutton {
  grid-column: 2;
  justify-self: self-start;
  align-self: self-start;
  padding: 10px 20px;
  border: 1px solid var(--stff-blue);
  border-radius: 5px;
  font-size: 24px;
  font-weight: 300;
  color: var(--stff-blue);
  white-space: nowrap;
  transition: background-color 0.5s;
}

.film__watchbutton:hover {
  background: var(--stff-blue);
  color: white;
}

/* ---------- Awards ---------- */
.filmawards {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filmawards__award {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 225px;
  min-width: 150px;
}

.filmawards__awardimg img {
  width: 225px;
  height: 149px;
  object-fit: contain;
}

/* ---------- Credits ---------- */
.credits {
  display: flex;
  flex-direction: column;
  gap: 20px;
  grid-row: 1 / 2;
  grid-column: 2 / 3;
}

.credits__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.credits__role {
  font-size: var(--film-page-credit-title-text);
}

.credits__names {
  font-size: var(--film-page-body-text);
  line-height: 1.4;
}

/* END STYLES FOR FILM PAGES */

/* STYLES FOR LOGO ANIMATION */

@media (min-width: 961px) and (hover: hover) {
  .header__logo-animation {
    pointer-events: none;
    animation: enableHover 0s 1.75s forwards;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    div {
      grid-column: 1 / 2;
      grid-row: 1 / 2;
    }
  }

  .logoT {
    animation: logoT-reverse 1s reverse 0.6s backwards; /* load only */
    transition:
      transform 1s ease-out,
      opacity 0.07s linear 0.7s;
  }

  .logoF {
    animation: logoF-reverse 1.4s reverse 0.35s backwards; /* load only */
    transition:
      transform 1.4s ease-out,
      opacity 0.11s linear;
  }

  .header__logo-animation.settled .logoT {
    transition:
      transform 1s ease-out 0.75s,
      opacity 0.07s linear 0.7s;
  }
  .header__logo-animation.settled .logoF {
    transition:
      transform 1.4s ease-out 0.45s,
      opacity 0.11s linear;
  }

  .header__logo-animation:hover {
    .logoT {
      transform: translateX(310%);
      opacity: 0;
      transition:
        transform 0.6s ease-out 0.1s,
        opacity 0.07s linear 0.7s;
    }
    .logoF {
      transform: translateX(470%);
      opacity: 0;
      transition:
        transform 1s ease-out 0.1s,
        opacity 0.11s linear 1.3s;
    }
  }

  svg {
    overflow: visible;
  }

  .full-logo {
    width: 0px;
    overflow: hidden;
    transition: 2s ease-out;
    animation: fullLogoExpand 1s reverse ease-out;

    svg {
      max-width: none;
    }
  }

  .header__logo-animation:hover .full-logo {
    width: 100%;
    transition: 2s ease-out;
    /* animation: fullLogoExpand 1s forwards ease-out; */
  }

  
}
/* END LOGO ANIMATION STYLES (Keyframes are at bottom of stylesheet) */

/* mobile elements to hide when not mobile */
.header__logo-caption,
.header__nav-toggle {
  display: none;
}

@media screen and (max-width: 960px) {
  section {
    padding: 20px 20px 50px;
  }

  .announcement {
    padding: 100px 40px;
  }

  .about,
  .team {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .header {
    gap: 30px;
  }

  .nav {
    gap: 30px;
  }

  .header__logo {
    flex-shrink: 2;
  }

  .team__title {
    position: initial;
  }

  /* logo with full name for small screens */
  .acro-logo a {
    display: flex;
    align-items: flex-end;
    gap: 5px;
  }

  .full-logo {
    display: none;
  }

  .header__logo-caption {
    display: block;
    width: 42px;
    margin: 10px 0 0;
    font-family: var(--font-sans);
    font-size: 10px;
    line-height: 1;
  }

  /* STYLES FOR FILM PAGES */
  .film {
    display: flex;
    flex-direction: column;
    gap: 80px;
  }

  .film__about {
    gap: 80px;
  }

  .credits {
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    .credits__group {
      width: 250px;
    }
  }

  .film__watchbutton {
    align-self: center;
  }
}

@media screen and (max-width: 600px) {
  /* hamburger nav */
  .header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 20px;
  }

  .header__logo {
    display: block;
    width: 71.5px;
    height: 42.4px;
  }

  .header .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 40px;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    width: 100%;
    padding: 40px 20px;
    background: var(--white);
    border-bottom: 1px solid var(--stff-blue);

    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    transition:
      clip-path 0.35s ease,
      opacity 0.25s ease,
      visibility 0s linear 0.35s; /* delay hiding until the close animation ends */
  }

  header.is-open .nav {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
    transition:
      clip-path 0.35s ease,
      opacity 0.25s ease,
      visibility 0s;
  }

  .header .nav a {
    font-size: 16px;
    color: var(--stff-blue);
    text-decoration: none;
  }

  .header__socials {
    display: flex;
    gap: 11px;
    align-items: center;
  }

  /* Hamburger -> X */
  .header__nav-toggle {
    position: relative;
    display: block;
    width: 43px;
    height: 59px;
    cursor: pointer;

    /* middle bar */
    background: linear-gradient(var(--white), var(--white)) no-repeat 0 30px /
      24px 2px;
    transition: background-size 0.2s ease;
  }

  header.scrolled .header__nav-toggle,
  header.is-open .header__nav-toggle {
    --bar: var(--stff-blue);
  }

  .header__nav-toggle::before,
  .header__nav-toggle::after {
    content: "";
    position: absolute;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease;
  }

  .header__nav-toggle::before {
    top: 24px;
  }
  .header__nav-toggle::after {
    top: 36px;
  }

  header.is-open .header__nav-toggle {
    background-size: 0 2px; /* middle bar disappears */
  }

  header.is-open .header__nav-toggle::before {
    transform: translateY(6px) rotate(45deg);
  }

  header.is-open .header__nav-toggle::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .announcement__banner {
    font-size: 3em;
  }

  .hero__arrow {
    left: initial;
    right: 40px;
    translate: none;
  }

  .footer__content {
    flex-direction: column;
    gap: 30px;
  }

  .footer__submissions {
    max-width: none;
  }

  /* ABOUT mobile styles */

  .about {
    margin-top: 200px;
  }

  .abt-section-title {
    font-size: 2.5em;
  }

  .about__content p {
    font-size: 1em;
    line-height: 1.2;
  }

  .team__member-card {
    display: flex;
    flex-direction: column;
  }

  .team__member-card-name {
    font-size: 1.8em;
  }

  .team__member-card-job {
    align-self: start;
  }

  .team__member-card-image {
    max-width: 300px;
  }

  .footer__logo-image {
    height: 200px;
  }

  .slate__cardcaption {
    font-size: 1em;
    opacity: 1;
  }

  /* STYLES FOR FILM PAGES */
    .filmhero__title {
    font-size: 2em;
  }
  
  .filmhero__meta {
    font-size: 1em;
    line-height: 1.3;
  }

  .filmhero__trailer {
    padding: 15px 10px;
    width: auto;
    height: auto;
  }

  .filmawards {
    justify-content: center;
  }
  
  .filmawards__award {
    max-width: 200px;
  }

  .credits {
    flex-direction: column;
    align-items: center;
    .credits__group {
      width: 100%;
    }
  }

  /* END STYLES FOR FILM PAGES */
}

@media (prefers-reduced-motion: reduce) {
  .header .nav,
  header.is-open .nav,
  .header__nav-toggle,
  .header__nav-toggle::before,
  .header__nav-toggle::after {
    transition: none;
  }
}

@keyframes bounce {
  to {
    transform: translateY(-15px);
  }
}

@keyframes fullLogoExpand {
  to {
    width: 100%;
  }
}

@keyframes logoT-reverse {
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(310%);
    opacity: 0;
  }
}

@keyframes logoF-reverse {
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(470%);
    opacity: 0;
  }
}

@keyframes enableHover {
  to {
    pointer-events: auto;
  }
}

/* footer slideshow css */

/* FOOTER SLIDESHOW */
.footer__logo-image {
  position: relative;
  isolation: isolate;
  background: var(--stff-blue); /* underlay: the images multiply onto this */
}

.footer__logo-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: grayscale(1) contrast(1.1);
  mix-blend-mode: multiply;
}

.footer__logo-image img.is-active {
  opacity: 1;
}

.footer__logo-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--stff-blue);
  opacity: 0.25;
  mix-blend-mode: screen;
  pointer-events: none;
}

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