@font-face {
  font-family: "Scrambles";
  src: url("../fonts/Scrambles-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =========================
   GLOBAL RESET
========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  background-color: #28347d;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;

  font-family: "Scrambles", sans-serif;
  background-color: #28347d;
  color: #f9b4ff;
}

body,
h1,
h2,
h3,
p,
a,
button,
span,
li {
  font-family: "Scrambles", sans-serif;
}

img,
video {
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

/* =========================
   PAGE BACKGROUND
========================= */

.page-bg {
  position: relative;
  min-height: 178vh;

  display: flex;
  flex-direction: column;
  overflow-x: hidden;

  background-color: #28347d;
}

.page-bg::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image: url("../assets/bg/background-template.png");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;

  z-index: 0;
  pointer-events: none;
}

.site-header,
.film-main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* =========================
   SHARED HEADER
========================= */

.site-header {
  width: 100%;
  padding-top: clamp(14px, 2vw, 28px);
}

.main-nav {
  width: min(94vw, 1120px);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: clamp(24px, 4.2vw, 72px);
  flex-wrap: nowrap;
}

.main-nav a {
  color: #48baff;
  text-decoration: none;

  font-size: clamp(0.9rem, 1.25vw, 1.45rem);
  letter-spacing: 1.5px;
  white-space: nowrap;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease,
    transform 0.2s ease;
}

.main-nav .current-page {
  color: white;
  text-shadow: none;
  transform: none;
}

.main-nav a:hover {
  color: white;
  text-shadow:
    0 0 6px white,
    0 0 12px white,
    0 0 18px #74ccff;
  transform: scale(1.08);
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.star-logo {
  width: clamp(125px, 12vw, 265px);
  height: auto;
  display: block;

  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.logo-link:hover .star-logo {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 3px white)
    drop-shadow(0 0 6px #e041e2);
}

/* =========================
   MAIN POSTER GRID
   Matched to Illustration title spacing
========================= */

.film-main {
  width: min(1180px, 92vw);
  margin: 70px auto 140px;
  padding-top: 95px;
}

.film-page-title {
  margin: 0 0 80px;

  text-align: center;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: normal;
  letter-spacing: 4.5px;
  text-transform: uppercase;

  color: #48baff;
  text-shadow: none;
}

.poster-grid {
  width: min(100%, 1120px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 52px);
  align-items: start;
}

.poster-card {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;

  transition:
    transform 0.22s ease,
    filter 0.22s ease;
}

.poster-card:hover img {
  transform: scale(1.06);
  filter: none;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  width: 100%;
  padding: 10px 20px 12px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.social-links img {
  width: 70px;
  height: auto;
  display: block;
}

/* =========================
   PROJECT POPUP / CLICKBOX
========================= */

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 42px;
}

.project-modal.show {
  display: flex;
}

.project-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 11, 44, 0.78);
}

.project-window {
  position: relative;
  z-index: 1;

  width: min(88vw, 980px);
  height: min(86vh, 820px);

  background: #263166;
  border: 1px solid rgba(249, 180, 255, 0.35);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.35);

  overflow: hidden;
}

.project-scroll {
  width: 100%;
  height: 100%;
  overflow-y: auto;

  background: #263166;

  padding: clamp(34px, 5vw, 72px);
  padding-right: clamp(30px, 4vw, 62px);
}

.project-close {
  position: absolute;
  top: 8px;
  right: 18px;
  z-index: 5;

  border: none;
  background: transparent;
  color: white;
  font-size: 3.4rem;
  line-height: 1;
  cursor: pointer;
}

.project-content {
  display: none;
}

.project-content.active {
  display: block;
}

/* =========================
   PROJECT TEXT
========================= */

.divider {
  width: 100%;
  height: 1px;
  background: rgba(249, 180, 255, 0.46);
  margin: 12px 0 22px;
}

.project-title,
.label {
  color: #ff5cf4;
  font-size: clamp(1.27rem, 1.47vw, 1.56rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-title {
  margin-bottom: 2px;
}

.project-title em {
  font-style: italic;
}

.project-credit {
  color: #f9b4ff;
  font-size: clamp(0.98rem, 1.13vw, 1.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 0;
}

.plain-copy {
  color: #f9b4ff;
  max-width: 470px;
  font-size: clamp(0.98rem, 1.13vw, 1.2rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.abalone-copy {
  max-width: none;
  width: 100%;
  white-space: nowrap;
}

.spaced-label {
  margin-top: 28px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.65fr);
  gap: clamp(32px, 8vw, 145px);
  align-items: start;
  margin-top: 0;
}

.roles-box {
  color: #f9b4ff;
}

.roles-box ul {
  padding-left: 28px;
}

.roles-box li {
  color: #f9b4ff;
  font-size: clamp(0.98rem, 1.13vw, 1.2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.full-roles {
  margin-top: 0;
  margin-bottom: 20px;
}

.youtube-line {
  color: #ff5cf4;
  font-size: clamp(0.95rem, 1.08vw, 1.14rem);
  line-height: 1.1;
  margin-bottom: 22px;
}

.youtube-line a {
  color: #ff5cf4;
  text-decoration: underline;
}

.youtube-line a:hover,
.full-film-link:hover {
  color: white;
}

/* =========================
   PROJECT MEDIA
========================= */

.media-grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 30px);
  align-items: start;
  margin-top: 18px;
}

.two-media {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-media {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  width: 100%;
}

.media-card img {
  width: 100%;
  height: auto;
  display: block;

  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.media-card:hover img {
  transform: scale(1.025);
  filter: none;
}

.laurel-card {
  margin-top: 28px;
}

.video-grid {
  display: grid;
  gap: clamp(18px, 2.5vw, 30px);
  margin-top: 14px;
}

.single-video-grid {
  grid-template-columns: minmax(0, 720px);
}

.two-video-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-video-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-five {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000000;
}

/* =========================
   RED MOON CYCLE SPECIAL LAYOUT
========================= */

.rmc-top-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.rmc-van-card {
  width: 100%;
  justify-self: end;
  overflow: visible;
}

.rmc-van-card img {
  width: 100%;
  max-width: none;
  max-height: 205px;
  object-fit: contain;
  object-position: right center;
  transform-origin: right center;
}

/* bottom row */
.rmc-bottom-images {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: stretch;
}

.rmc-bottom-images .media-card {
  height: 100%;
}

.rmc-bottom-images img {
  width: 100%;
  height: 175px;
  object-fit: contain;
}
.rmc-bottom-images .media-card:nth-child(2) img {
  height: 169px;
}

/* center the fifth/lone video */
.rmc-videos video:nth-child(5) {
  grid-column: 1 / -1;
  width: min(100%, 48%);
  justify-self: center;
}

/* =========================
   CONQUEST SPECIAL LAYOUT
========================= */

.conquest-intro-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 24px;
  margin-bottom: 10px;
}

.conquest-intro-layout .plain-copy {
  order: 1;

  max-width: 680px;
  width: 100%;
  margin: 0 auto;

  text-align: center;
}

.conquest-poster-card {
  order: 2;

  width: min(100%, 330px);
  margin: 0 auto;
}

.conquest-poster-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.conquest-pitch-label {
  text-align: center;
}

.conquest-deck {
  width: min(100%, 820px);
  margin-left: auto;
  margin-right: auto;
}

/* =========================
   HOME IS A FEELING SPECIAL LAYOUT
========================= */

.hiaf-storyboard-grid {
  grid-template-columns: minmax(0, 540px);
}

/* =========================
   NORA SPECIAL LAYOUT
========================= */

.nora-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(210px, 0.7fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
  margin-top: 0;
}

.nora-copy-wrap .plain-copy {
  margin-bottom: 24px;
}

.full-film-link {
  display: block;

  width: max-content;
  max-width: 360px;
  margin-top: 38px;
  margin-left: -23px;
  margin-right: auto;

  color: #ff5cf4;
  font-size: clamp(1.27rem, 1.4vw, 1.55rem);
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
}

/* =========================
   NABI SPECIAL LAYOUT
========================= */

.nabi-videos video:nth-child(5) {
  grid-column: 1 / -1;
  width: min(100%, 48%);
  justify-self: center;
}

/* =========================
   DECK VIEWERS
========================= */

.deck-viewer {
  width: min(100%, 820px);
  margin-top: 14px;

  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 14px;
}

.deck-image-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.deck-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    filter 0.18s ease;
}

.conquest-deck .deck-image {
  background: transparent;
}

.deck-image-button:hover .deck-image {
  filter: none;
}

.deck-image.slide-changing,
.image-lightbox img.slide-changing {
  opacity: 0;
  transform: translateX(24px) scale(0.985);
}

.deck-arrow {
  border: none;
  background: transparent;
  color: #f9b4ff;
  font-size: clamp(4rem, 6vw, 6.5rem);
  line-height: 1;
  cursor: pointer;
}

.deck-arrow:hover {
  color: white;
}

.deck-counter {
  color: #f9b4ff;
  margin-top: 8px;
  text-align: center;
  width: min(100%, 820px);
  font-size: 1rem;
}

/* =========================
   BIG IMAGE LIGHTBOX
========================= */

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(7, 11, 44, 0.92);
  padding: 35px;
}

.image-lightbox.show {
  display: flex;
}

.image-stage {
  width: min(92vw, 1200px);
  max-height: 90vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;

  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.image-counter {
  min-height: 24px;
  margin-top: 10px;
  color: #f9b4ff;
  font-size: 1rem;
  text-align: center;
}

.image-close {
  position: fixed;
  top: 18px;
  right: 28px;
  z-index: 10001;

  border: none;
  background: transparent;
  color: white;
  font-size: 4rem;
  line-height: 1;
  cursor: pointer;
}

.image-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;

  width: 70px;
  height: 90px;

  border: none;
  background: transparent;
  color: white;
  cursor: pointer;

  font-family: Arial, sans-serif;
  font-size: 5.5rem;
  line-height: 1;
}

.image-prev {
  left: 25px;
}

.image-next {
  right: 25px;
}

.hidden {
  display: none;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 1200px) {
  .page-bg {
    min-height: 178vh;
  }

  .film-main {
    width: min(1180px, 92vw);
    margin-top: 70px;
    padding-top: 95px;
  }
}

@media (max-width: 1000px) {
  .poster-grid {
    width: min(84vw, 780px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .two-col,
  .nora-grid,
  .rmc-top-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .three-media,
  .three-video-grid,
  .video-five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-window {
    width: 92vw;
  }

  .abalone-copy {
    white-space: normal;
  }

  .rmc-van-card img {
    width: 100%;
    max-height: none;
  }

  .rmc-bottom-images img {
    height: auto;
  }

  .rmc-videos video:nth-child(5),
  .nabi-videos video:nth-child(5) {
    width: 100%;
  }

  .conquest-deck {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .main-nav {
    width: min(96vw, 760px);
    gap: 18px 28px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 1.05rem;
  }

  .star-logo {
    width: 170px;
  }

  .film-main {
    width: 92vw;
    margin-top: 56px;
    padding-top: 70px;
  }

  .film-page-title {
    margin-bottom: 62px;
  }

  .social-links img {
    width: 52px;
  }
}

@media (max-width: 650px) {
  .poster-grid {
    width: min(88vw, 420px);
    grid-template-columns: 1fr;
  }

  .two-media,
  .three-media,
  .two-video-grid,
  .three-video-grid,
  .video-five,
  .rmc-bottom-images {
    grid-template-columns: 1fr;
  }

  .deck-viewer {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    gap: 6px;
  }

  .deck-arrow {
    font-size: 3.8rem;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-top: 12px;
  }

  .main-nav {
    width: 100%;
    padding: 0 10px;

    gap: 10px 16px;
    flex-wrap: wrap;
  }

  .main-nav a {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .star-logo {
    width: 125px;
  }

  .film-main {
    width: 90vw;
    margin-top: 40px;
    padding-top: 46px;
    margin-bottom: 90px;
  }

  .film-page-title {
    font-size: 2.5rem;
    margin-bottom: 44px;
    letter-spacing: 2.5px;
  }

  .project-modal {
    padding: 16px;
  }

  .project-window {
    width: 96vw;
    height: 86vh;
  }

  .project-scroll {
    padding: 42px 20px 28px;
  }

  .project-close {
    font-size: 3rem;
    top: 6px;
    right: 12px;
  }

  .image-lightbox {
    padding: 18px;
  }

  .image-close {
    font-size: 3rem;
    top: 12px;
    right: 16px;
  }

  .image-arrow {
    width: 42px;
    height: 62px;
    font-size: 3rem;
  }

  .image-prev {
    left: 8px;
  }

  .image-next {
    right: 8px;
  }

  .social-links {
    gap: 20px;
  }

  .social-links img {
    width: 36px;
  }
}

@media (max-width: 390px) {
  .main-nav a {
    font-size: 0.78rem;
  }

  .star-logo {
    width: 112px;
  }

  .film-page-title {
    font-size: 2.2rem;
  }
}