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

:root {
  --type-scale: max(2.5rem, min(7.5vw, 90px));
  --title-size: var(--type-scale);
  --copy-size: calc(var(--type-scale) * 0.5);
  --secondary-size: calc(var(--type-scale) * 0.25);
  --secondary-line-height: 1.45;
  --sub-size: calc(var(--type-scale) * 13 / 90);
  --page-width: 75rem;
  --pad-x: clamp(1.5rem, 4vw, 3rem);
  --pad-y: clamp(3rem, 6vw, 5rem);
  --header-height: 0px;
  --section-title-gap: calc(clamp(4rem, 10vw, 7rem) + clamp(0.75rem, calc(5vw - 1.25rem), 2.75rem));
  --section-intro-to-content: calc(var(--section-title-gap) * 2.5 / 9.75);
  --section-title-lead-gap: 0.5rem;
  --work-feature-gap: var(--section-intro-to-content);
  --bg: #000;
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --contact-muted: rgba(255, 255, 255, 0.35);
  --line: rgba(255, 255, 255, 0.12);
  --accent-warm: #e8c4a0;
  --accent-cool: #a8c4d4;
  --accent-neutral: #d4cfc4;
  --accent-contrast: #1a1a1a;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
  overflow-x: hidden;
}

body {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

input,
textarea,
button {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

.hero-carousel {
  --carousel-fade-duration: 1.2s;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
}

.hero-carousel.is-hidden {
  visibility: hidden;
}

.hero-carousel-track {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-carousel-scrim {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
  pointer-events: none;
}

.hero-carousel-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.page {
  position: relative;
  z-index: 1;
  width: var(--page-width);
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
}

.site-header {
  position: fixed;
  top: 0;
  left: max(0px, calc((100vw - min(var(--page-width), 100vw)) / 2));
  width: min(var(--page-width), 100vw);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--pad-x);
  background: transparent;
  will-change: transform, opacity;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.logo {
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 2rem;
  flex-shrink: 0;
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.main {
  padding-top: 0;
}

.parallax-item {
  will-change: transform;
}

.hero {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad-x) var(--section-title-gap);
  text-align: left;
  background: transparent;
}

.hero-title {
  font-size: var(--title-size);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-left: -8px;
  margin-bottom: clamp(0.5rem, 0.2em, 1.875rem);
}

.hero-title-line {
  display: block;
}

.hero-intro {
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  width: min(100%, 27em);
  max-width: 27em;
  color: var(--text);
}

.section {
  padding: 0 var(--pad-x);
}

.work-feature + .work-feature {
  margin-top: var(--work-feature-gap);
}

.work {
  position: relative;
  isolation: isolate;
  border-bottom: 0;
  background: transparent;
}

.work::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--bg);
  z-index: -1;
  pointer-events: none;
}

.section > :is(.section-intro, .work-heading--solo) {
  margin-top: var(--section-title-gap);
}

.hero + .section {
  padding-top: var(--section-title-gap);
}

.hero + .section > :is(.section-intro, .work-heading--solo) {
  margin-top: 0;
}

.work-heading {
  font-size: var(--copy-size);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: clamp(0.3rem, 0.35em, 0.75rem);
}

.section > .section-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-title-lead-gap);
  max-width: 100%;
  margin-bottom: var(--section-intro-to-content);
}

.section > .section-intro :is(.work-heading, .work-heading-note) {
  margin: 0;
}

.section > .section-intro .work-heading-note {
  margin-bottom: 0;
}

.work-heading-note {
  font-size: var(--secondary-size);
  color: var(--text);
  line-height: var(--secondary-line-height);
  width: min(100%, 26em);
  max-width: 26em;
  margin-bottom: 0;
}

.contact {
  --contact-copy-width: calc(var(--secondary-size) * 32);
}

.contact .work-heading-note,
.contact-form {
  width: min(100%, var(--contact-copy-width));
  max-width: var(--contact-copy-width);
}

.section > .work-heading--solo {
  margin-bottom: var(--section-intro-to-content);
}

.work-feature {
  max-width: 100%;
}

.work-feature-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  overflow: hidden;
  text-align: left;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}

.work-feature-media.is-dragging {
  cursor: grabbing;
  touch-action: none;
}

.work-feature-media.is-coming-soon {
  cursor: default;
  touch-action: auto;
}

.work-feature-viewport {
  overflow: hidden;
  width: 100%;
}

.work-feature-track {
  display: flex;
  align-items: flex-start;
  will-change: transform;
}

.work-feature-slide-frame {
  flex: 0 0 100%;
  width: 100%;
}

.work-feature-slide {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.work-feature-meta {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  max-width: min(100%, 36rem);
  text-align: left;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.5);
}

.work-feature-meta-grid {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: clamp(1.25rem, 3vw, 2rem);
  row-gap: 0.1rem;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
}

.work-feature-title {
  grid-column: 1;
  grid-row: 1;
  font-size: var(--sub-size);
  line-height: 1.05;
  color: inherit;
  white-space: nowrap;
}

.work-feature-year {
  grid-column: 1;
  grid-row: 2;
  font-size: var(--sub-size);
  line-height: 1.05;
  color: inherit;
  white-space: nowrap;
}

.work-feature-role,
.work-feature-name {
  font-size: var(--sub-size);
  line-height: 1.05;
  color: inherit;
  white-space: nowrap;
}

.work-feature-role {
  grid-column: 2;
  grid-row: 1;
}

.work-feature-name {
  grid-column: 2;
  grid-row: 2;
}

.work-feature-meta-grid--coming-soon {
  grid-template-columns: max-content max-content max-content;
}

.work-feature-status {
  grid-column: 3;
  grid-row: 1;
  font-size: var(--sub-size);
  line-height: 1.05;
  color: inherit;
  white-space: nowrap;
}

.is-temporarily-hidden {
  display: none !important;
}

.work-feature-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent);
  pointer-events: none;
  z-index: 1;
}

.work-feature-nav {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  padding: 0.5rem;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.work-feature-nav-icon {
  display: block;
  width: 2rem;
  height: 2rem;
  overflow: visible;
}

.work-feature-nav:hover {
  opacity: 1;
}

.work-feature-nav--prev {
  left: clamp(0.5rem, 1.5vw, 1rem);
}

.work-feature-nav--next {
  right: clamp(0.5rem, 1.5vw, 1rem);
}

@media (min-width: 769px) {
  .work-feature-media.has-gallery .work-feature-nav {
    display: block;
  }
}

.reveal-on-scroll {
  opacity: 0;
  transition: opacity 1.2s ease;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
}

.contact,
.case-studies {
  background: var(--bg);
}

.contact-success {
  font-size: var(--copy-size);
  line-height: 1.45;
  max-width: 36rem;
}

.contact-form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.case-studies-list {
  display: flex;
  flex-direction: column;
  gap: var(--work-feature-gap);
}

.case-study-media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #111;
  overflow: hidden;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-touch-callout: none;
}

.case-study-cover {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.case-study-meta-grid {
  display: grid;
  grid-template-columns: max-content;
  row-gap: 0.1rem;
  align-items: baseline;
  width: max-content;
  max-width: 100%;
}

.case-study-subtitle {
  grid-column: 1;
  grid-row: 2;
}

.case-study-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
  pointer-events: none;
}

.case-study-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.case-study-overlay[hidden] {
  display: none;
}

body.is-case-study-open {
  overflow: hidden;
}

.case-study-overlay-close {
  position: fixed;
  top: 1.5rem;
  right: var(--pad-x);
  z-index: 201;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--copy-size);
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.case-study-overlay-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(1.5rem + var(--copy-size) + 1.5rem) var(--pad-x) var(--pad-y);
}

.case-study-overlay-section + .case-study-overlay-section {
  margin-top: var(--section-title-gap);
}

.case-study-overlay-title {
  font-size: var(--copy-size);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--section-title-lead-gap);
}

.case-study-overlay-copy {
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  color: var(--text);
  width: min(100%, 26em);
  max-width: 26em;
  margin-bottom: var(--section-intro-to-content);
}

.case-study-overlay-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.about-posters {
  position: relative;
  max-width: 100%;
  margin-top: 2.5rem;
}

.about-posters-image {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.about-posters-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.about-poster-link {
  display: block;
  transition: background-color 0.2s ease;
}

.about-poster-link:hover,
.about-poster-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  outline: none;
}

.about-poster-link:focus-visible {
  box-shadow: inset 0 0 0 2px var(--text);
}

.contact-success[hidden] {
  display: none;
}

.contact-form[hidden] {
  display: none;
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  .work-feature-title,
  .work-feature-year,
  .work-feature-role,
  .work-feature-name {
    font-size: calc(max(2.5rem, min(7.5vmin, 90px)) * 13 / 90);
  }
}

.contact-field {
  width: 100%;
  border: 1px solid #fff;
  border-radius: 0;
  padding: 0.85rem 1rem;
  background: transparent;
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
  letter-spacing: inherit;
}

.contact-field--message {
  min-height: 8rem;
  resize: vertical;
}

.contact-field::placeholder {
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
  color: #fff;
  opacity: 1;
}

.contact-field:focus {
  outline: none;
  border-color: #fff;
}

.contact-button {
  justify-self: end;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--secondary-size);
  line-height: var(--secondary-line-height);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.contact-button:hover {
  opacity: 0.65;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.contact-social-link {
  display: inline-flex;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.contact-social-link:hover {
  opacity: 0.65;
}

.contact-social-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.contact-social-icon--imdb {
  width: 2.35rem;
  height: 1.5rem;
}

.footer-copy {
  display: block;
  text-align: center;
  margin: 60px 0 120px;
  font-size: var(--sub-size);
  line-height: 1.45;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 768px) {
  :root {
    --type-scale: 50px;
    --title-size: 50px;
    --copy-size: 34px;
    --secondary-size: 17px;
    --sub-size: 8px;
  }

  body.is-menu-open {
    overflow: hidden;
    background: var(--bg);
  }

  body.is-menu-open .hero-carousel,
  body.is-menu-open .main,
  body.is-menu-open .logo {
    visibility: hidden;
  }

  body.is-menu-open .site-header {
    transform: none !important;
    will-change: auto !important;
    opacity: 1 !important;
    background: transparent;
    pointer-events: none;
  }

  .menu-toggle {
    display: flex;
  }

  body.is-menu-open .menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: var(--pad-x);
    z-index: 102;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5em;
    margin: 0;
    padding: 0;
    background: var(--bg);
    font-size: var(--copy-size);
    line-height: 1.05;
    letter-spacing: -0.03em;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
  }

  body.is-menu-open .nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
}

@media (max-width: 768px) and (orientation: portrait) {
  .hero-intro,
  .work-heading-note {
    width: 100%;
    max-width: none;
  }

  .hero-intro br,
  .work-heading-note br {
    display: none;
  }
}

@media (max-width: 768px) and (orientation: landscape) {
  .hero-intro {
    width: min(100%, 27em);
    max-width: 27em;
  }

  .work-heading-note {
    width: min(100%, 26em);
    max-width: 26em;
  }
}
