/* ==========================================================================
   Lara Mendonça — local rebuild
   Hand-authored from the design values of the original Webflow build.
   Class names mirror the originals so the two stay easy to compare.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("../fonts/NeueHaasGroteskTextPro-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("../fonts/NeueHaasGroteskTextPro-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("../fonts/NeueHaasGroteskTextPro-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("../fonts/NeueHaasGroteskTextPro-MediumItalic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Text Pro";
  src: url("../fonts/NeueHaasGroteskTextPro-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Grotesk Display";
  src: url("../fonts/NeueHaasGroteskDisplayPro-Roman.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Monarcha";
  src: url("../fonts/Monarcha-Book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- tokens --------------------------------------------------------------- */

:root {
  --neutral-1300: #181818;
  --neutral-700: #424548;
  --neutral-400: #aaabad;
  --neutral-000: #fff;
  --purple-300: #c5c8f3;
  --purple-500: #9b88e6;
  --purple-600: #714ad8;
  --fonts-body: "Neue Haas Grotesk Text Pro", Arial, sans-serif;
  --fonts-display: "Neue Haas Grotesk Display", Arial, sans-serif;
  --fonts-serif: "Monarcha", Arial, sans-serif;

  --page-max: 1440px;
  --gutter: 24px; /* wrapper inset; columns add another 24px */
}

/* --- base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--neutral-1300);
  color: var(--neutral-000);
  font-family: var(--fonts-body);
  font-size: 20px;
  line-height: 32px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: inherit;
}

/* --- type scale ----------------------------------------------------------- */

.h1 {
  margin: 0;
  font-family: var(--fonts-body);
  font-size: 28px;
  font-weight: 400;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--neutral-000);
}

.h2 {
  margin: 0;
  font-family: var(--fonts-body);
  font-size: 28px;
  font-weight: 400;
  font-style: normal;
  line-height: 40px;
  letter-spacing: 0;
  color: var(--neutral-000);
}

/* the original keeps this upright despite the name — it only adds space */
.h2.italic {
  margin-bottom: 16px;
}

.h6 {
  margin: 0 0 24px;
  font-family: var(--fonts-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--neutral-400);
}

.h6.end {
  color: var(--purple-300);
}

.copy {
  margin: 0;
  font-family: var(--fonts-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--neutral-400);
}

.copy.list {
  margin-bottom: 8px;
}

.copy.list.last {
  margin-bottom: 0;
}

.copy.end {
  margin-bottom: 24px;
  color: var(--neutral-000);
}

.copy.date {
  display: inline-block;
  margin-bottom: 48px;
  color: var(--neutral-700);
}

.crossed {
  text-decoration: line-through;
}

/* --- links ---------------------------------------------------------------- */

.link {
  color: var(--neutral-000);
  background-color: transparent;
  border-bottom: 1px solid var(--neutral-000);
  text-decoration: none;
  transition: all 0.2s;
}

.link:hover {
  background-color: var(--neutral-000);
  color: var(--neutral-1300);
  border-color: var(--neutral-1300);
}

.link.current {
  display: inline;
  cursor: text;
  border-bottom: 0;
}

.link.current:hover {
  background-color: transparent;
  color: var(--neutral-000);
}

.link.purple {
  border-bottom: 1px solid var(--neutral-000);
  color: var(--neutral-000);
}

.link.purple:hover {
  background-color: var(--purple-500);
  color: var(--neutral-000);
}

/* --- layout --------------------------------------------------------------- */

.wrap {
  display: flex;
  justify-content: space-between;
  /* width:100% matters — .wrap is a flex item inside .header and .footer, so
     without it the row shrinks to fit its content instead of filling the page */
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
}

/* the bio and role rows are inset by a further gutter; featured/press/footer
   are not — matching the original */
.header .wrap,
.work .wrap {
  padding: 0 var(--gutter);
}

.col {
  padding: 0 24px;
}

.col-1 { width: 8.3333%; }
.col-2 { width: 16.6667%; }
.col-3 { width: 25%; }
.col-4 { width: 33.3333%; }
.col-5 { width: 41.6667%; }
.col-8 { width: 66.6667%; }

/* empty spacer columns carry no padding */
.space {
  padding: 0;
  flex: 0 0 auto;
}

/* --- navbar --------------------------------------------------------------- */

.navbar {
  display: flex;
  flex-flow: row;
  justify-content: space-between;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 48px 48px 0;
  font-family: var(--fonts-display);
  /* the original inherits Webflow's 14/20 base here; it only sets the strut of
     the line box the logo and smile sit on, but it decides the bar's height */
  font-size: 14px;
  line-height: 20px;
}

.logo {
  flex: 1;
  order: 0;
}

.logo-link {
  display: inline-block;
  font-family: var(--fonts-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 36px;
  color: var(--neutral-000);
  text-decoration: none;
  transition: all 0.2s;
}

.logo-link.current {
  cursor: default;
  line-height: 32px;
}

.smile {
  flex: 0 auto;
  order: 0;
  text-align: center;
}

.smile-link {
  display: block;
  border: 0;
  text-decoration: none;
}

.smile img {
  width: 32px;
}

.nav-menu {
  flex: 1;
  order: 1;
  text-align: right;
}

.nav-link {
  display: inline-block;
  margin-right: 32px;
  font-family: var(--fonts-body);
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0;
  color: var(--neutral-000);
  text-decoration: none;
  border-bottom: 1px solid var(--neutral-000);
  transition: all 0.2s;
}

.nav-link:hover {
  background-color: var(--purple-300);
  border-bottom-color: var(--purple-300);
  color: var(--neutral-1300);
}

.nav-link.last {
  margin-right: 0;
}

.nav-link.last:hover {
  background-color: var(--neutral-000);
  border-bottom-color: var(--purple-300);
  color: var(--neutral-1300);
}

.nav-link.current,
.nav-link.current:hover {
  cursor: default;
  background-color: transparent;
  border-bottom: 0;
  color: var(--neutral-000);
}

/* the "Menu" trigger — only shown on small screens */
.mobile-nav-menu {
  display: none;
  order: 1;
  flex: 1;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  font-family: var(--fonts-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 33.6px;
  color: var(--neutral-000);
  text-align: right;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-nav-menu:hover {
  background-color: var(--purple-300);
  color: var(--neutral-1300);
}

/* --- full-screen mobile menu --------------------------------------------- */

.menu-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--purple-600);
}

.menu-mobile.is-open {
  display: flex;
}

.menu-wrapper {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
}

.menu-item {
  margin-bottom: 24px;
}

.menu-item.last {
  margin-top: 64px;
  margin-bottom: 0;
}

.h1.menu-link {
  font-size: 48px;
  line-height: 57.6px;
  text-align: center;
  text-decoration: none;
}

.link-white {
  color: var(--neutral-000);
  background-color: transparent;
  border-bottom: 1px solid var(--neutral-000);
  text-decoration: none;
  transition: all 0.2s;
}

.link-white:hover {
  background-color: var(--neutral-000);
  color: var(--neutral-1300);
}

.link-white.current,
.link-white.current:hover {
  cursor: default;
  border-bottom: 0;
  background-color: transparent;
  color: var(--neutral-000);
}

.close-button {
  display: block;
  position: fixed;
  margin-top: 32px;
  padding: 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--neutral-000);
  border-radius: 0;
  color: var(--neutral-000);
  cursor: pointer;
  transition: all 0.2s;
}

.close-button:hover {
  background-color: var(--neutral-000);
  color: var(--neutral-1300);
}

.close-text {
  font-family: var(--fonts-serif);
  font-size: 24px;
  line-height: 32px;
}

/* --- info page: bio ------------------------------------------------------- */

.header {
  display: flex;
  position: relative;
  justify-content: flex-start;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 160px 0;
}

/* --- 404 ------------------------------------------------------------------ */

.not-found {
  width: 100%;
  text-align: center;
}

/* --- info page: roles ----------------------------------------------------- */

.work {
  display: block;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-bottom: 160px;
}

.work-image {
  margin-bottom: 48px;
}

/* In the original these images take their width from Webflow's `sizes`
   attribute rather than from the column, so on wide screens they sit a touch
   narrower than the text beside them. Kept for fidelity — drop this block (and
   the three overrides further down) to have them fill the column instead. */
.work-image img {
  width: 59vw;
}

.rounded {
  border-radius: 16px;
}

.work-copy {
  line-height: 24px;
}

/* --- info page: featured + press ----------------------------------------- */

.featured,
.press {
  margin: 0 auto;
  border-top: 1px solid var(--neutral-700);
  background-color: var(--neutral-1300);
}

.featured {
  padding: 80px 0 96px;
}

.press {
  padding: 80px 0 112px;
}

.featured-block {
  margin-bottom: 64px;
}

.press-block {
  margin-bottom: 48px;
}

.h6.press-h6 {
  margin-bottom: 8px;
}

/* --- info page: footer --------------------------------------------------- */

.footer {
  display: flex;
  align-items: center;
  height: 100vh;
  background-color: var(--purple-600);
}

.footer .wrap {
  align-items: flex-start;
}

/* --- back to top --------------------------------------------------------- */

.button-top {
  /* driven by scroll position in site.js, mirroring the original's
     scroll-progress interaction; this is the state before you scroll */
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  position: fixed;
  inset: auto 48px 48px auto;
  display: inline-block;
  padding: 8px 20px;
  border: 0;
  border-radius: 30px;
  background-color: var(--neutral-000);
  color: var(--neutral-1300);
  font-family: var(--fonts-body);
  font-size: 18px;
  line-height: 28px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
}

.back-to-top-anchor {
  display: none;
}

/* --- collections index --------------------------------------------------- */

.collections {
  margin-top: 80px;
  padding-top: 80px;
  padding-bottom: 0;
}

.collections-wrapper {
  display: flex;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  max-width: var(--page-max);
  margin: 0 auto;
}

.h2.collections-title {
  margin-bottom: 32px;
}

.collections-item {
  display: flex;
  align-items: stretch;
  margin-bottom: 16px;
}

.h1.collections-name {
  font-size: 64px;
  line-height: 76.8px;
  text-align: center;
  text-decoration: none;
}

/* --- cinema -------------------------------------------------------------- */

.cinema-header {
  margin-top: 160px;
}

.cinema-header .wrap {
  padding: 0 48px;
}

.cinema-header-content {
  width: 66.6667%;
  padding: 0;
}

.cinema-header-title {
  margin-bottom: 88px;
}

.h1.cinema-header-title {
  display: inline-block;
  margin-bottom: 32px;
}

.cinema {
  padding-bottom: 120px;
}

.cinema-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-column-gap: 24px;
  grid-row-gap: 24px;
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 48px;
}

.cinema-img {
  width: 100%;
  margin-bottom: 16px;
}

.h2.cinema-title {
  margin-bottom: 48px;
  font-size: 24px;
  line-height: 36px;
}

/* --- long-form list page (100 greatest films) ---------------------------- */

.blog {
  margin-top: 160px;
  padding-bottom: 120px;
}

.blog-columns {
  display: flex;
  justify-content: space-between;
  max-width: var(--page-max);
  margin: 0 auto;
}

.blog-content {
  width: 66.6667%;
  padding: 0 48px;
}

.h1.subheader-title {
  display: inline-block;
  margin-bottom: 32px;
}

/* --- scroll reveal ------------------------------------------------------- */

/* The original's two Webflow interactions, to the letter: `slideInBottom`
   (opacity 0 + 100px below -> in place) and `slideInTop` (from 100px above),
   both over 1000ms on an out-quart curve, played once when the element first
   enters the viewport. */

.reveal {
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.from-top {
  transform: translateY(-100px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .reveal.from-top {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   ≤ 991px
   ========================================================================== */

@media screen and (max-width: 991px) {
  :root {
    --gutter: 12px;
  }

  .navbar {
    margin: 0;
    padding: 24px 24px 0;
  }

  .nav-link,
  .nav-link.current {
    font-size: 20px;
    line-height: 30px;
  }

  .logo-link {
    font-size: 20px;
    line-height: 28px;
  }

  .mobile-nav-menu {
    font-size: 20px;
    line-height: 28px;
  }

  .header {
    padding: 120px 0;
  }

  .header .wrap,
  .work .wrap,
  .featured .wrap,
  .press .wrap,
  .footer .wrap {
    display: block;
  }

  .col {
    width: auto;
    padding: 0 16px;
  }

  .space {
    display: none;
  }

  .h1.padding {
    margin-bottom: 48px;
  }

  .work {
    padding-bottom: 120px;
  }

  .work-image img {
    width: 94vw;
  }

  .featured {
    padding: 64px 0 72px;
  }

  .press {
    padding: 64px 0 88px;
  }

  .featured-block {
    margin-bottom: 48px;
  }

  .press-block {
    margin-bottom: 32px;
  }

  .h2 {
    font-size: 24px;
    line-height: 30px;
  }

  .copy {
    font-size: 22px;
    line-height: 34px;
  }

  .copy.end {
    margin-bottom: 16px;
  }

  .h6 {
    margin-bottom: 16px;
  }

  .footer {
    height: auto;
    padding: 88px 0 40px;
  }

  .footer-block {
    margin-bottom: 48px;
  }

  .button-top {
    inset: auto 24px 24px auto;
  }

  .collections {
    margin-top: 60px;
    padding-top: 60px;
    padding-bottom: 120px;
  }

  .h1.collections-name {
    font-size: 48px;
    line-height: 57.6px;
  }

  /* the grid collapses to a single stacked column, as in the original */
  .cinema-header {
    margin-top: 120px;
  }

  .cinema-header .wrap {
    margin-left: 24px;
    margin-right: 24px;
    padding: 0;
  }

  .cinema-header-content {
    width: auto;
  }

  .cinema-header-title {
    margin-bottom: 64px;
  }

  .cinema {
    padding-bottom: 88px;
  }

  .cinema-grid {
    grid-template-columns: 1fr;
    margin-left: 16px;
    margin-right: 16px;
    padding: 0;
  }

  .cinema-item {
    margin-bottom: 64px;
  }

  .h2.cinema-title {
    margin-bottom: 32px;
    font-size: 24px;
    line-height: 36px;
  }

  .blog {
    margin-top: 120px;
    padding-bottom: 88px;
  }

  .blog-content {
    width: auto;
    padding: 0 12px;
  }

  .blog-columns .space {
    display: none;
  }
}

/* ==========================================================================
   ≤ 767px
   ========================================================================== */

@media screen and (max-width: 767px) {
  :root {
    --gutter: 8px;
  }

  .navbar {
    justify-content: center;
    align-items: center;
    padding: 24px 16px 0;
  }

  .mobile-nav-menu {
    display: block;
  }

  .nav-menu {
    display: none;
  }

  .header {
    padding: 88px 0;
  }

  .h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .h1.subheader-title {
    margin-bottom: 24px;
  }

  .h1.padding {
    margin-bottom: 32px;
  }

  .h1.collections-name {
    font-size: 32px;
    line-height: 44.8px;
  }

  .col {
    padding: 0 8px;
  }

  .featured {
    padding: 48px 0 56px;
  }

  .press {
    padding: 48px 0 56px;
  }

  .work {
    padding-bottom: 88px;
  }

  .work-image img {
    width: 96vw;
  }

  .work-image,
  .featured-block {
    margin-bottom: 32px;
  }

  .footer {
    padding: 88px 0 40px;
  }

  .button-top {
    inset: auto 16px 16px auto;
  }

  .cinema {
    padding-bottom: 48px;
  }

  .cinema-item {
    margin-bottom: 48px;
  }

  .cinema-header .wrap,
  .cinema-grid {
    margin-left: 16px;
    margin-right: 16px;
  }

  .blog-content {
    padding: 0 8px;
  }
}

/* ==========================================================================
   ≤ 479px
   ========================================================================== */

@media screen and (max-width: 479px) {
  .logo {
    display: none;
  }

  /* below 480 the "Menu" and "Back" labels drop the serif */
  .mobile-nav-menu,
  .close-text {
    font-family: var(--fonts-body);
  }

  .h1 {
    font-size: 24px;
    line-height: 36px;
  }

  .h1.menu-link {
    font-size: 32px;
    line-height: 38.4px;
  }

  .h1.collections-name {
    margin-left: 16px;
    margin-right: 16px;
    font-size: 28px;
    line-height: 33.6px;
  }

  .h2 {
    font-size: 22px;
    line-height: 34px;
  }

  .h2.cinema-title {
    margin-bottom: 16px;
    font-size: 22px;
    line-height: 34px;
  }

  .h2.italic {
    font-size: 22px;
    line-height: 34px;
  }

  .copy {
    font-size: 20px;
    line-height: 30px;
  }

  .work-image img {
    width: 93vw;
  }

  .collections-item {
    flex-flow: column;
    align-items: center;
    margin-bottom: 32px;
  }

  .collections {
    padding-bottom: 88px;
  }

  .cinema-header {
    margin-top: 88px;
  }

  .blog {
    margin-top: 88px;
  }

  .footer {
    padding-bottom: 56px;
  }

  .footer-block {
    margin-bottom: 32px;
  }
}
