:root {
  --color-bg: #000000;
  --color-text: #efeae0;
  --color-text-muted: #8a857c;
  --color-rule: #1f1d1a;

  --font-display: 'EB Garamond', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-width: 720px;
  --gutter: 24px;
  --section-spacing: 140px;
  --section-spacing-mobile: 88px;

  --fs-title: clamp(48px, 9vw, 120px);
  --fs-h2: clamp(28px, 4vw, 40px);
  --fs-body: 16px;
  --fs-small: 13px;
}

html,
body {
  min-height: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #000000;
  background-image: linear-gradient(
    to bottom,
    #000000 0%,
    #000000 8%,
    #131f1b 18%,
    #131f1b 30%,
    #412a12 38%,
    #412a12 60%,
    #1c1910 67%,
    #1c1910 80%,
    #000000 90%,
    #000000 100%
  );
  background-attachment: scroll;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--fs-body);
  line-height: 1.7;
}

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

a {
  color: var(--color-text);
  text-decoration: underline;
  transition: color 200ms ease;
}

a:hover {
  color: var(--color-text-muted);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.rule {
  border: 0;
  border-top: 1px solid var(--color-rule);
}

.label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

@media (max-width: 767px) {
  .section {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
  }
}


/* HERO */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

.hero-statement {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  width: 100%;
  max-width: 720px;
  padding: 0 var(--gutter);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.6vh, 18px);
}

.hero-line {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--color-text);
  margin: 0;
  text-wrap: balance;
}

@media (max-width: 768px) {
  #hero {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
  }

  .hero-statement {
    gap: clamp(10px, 1.6vh, 18px);
  }
}

/* FILM REVEAL */
#poster {
  min-height: 150vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 50vh;
  padding-bottom: 0;
}

#poster .container {
  max-width: 1600px;
  width: 100%;
}

.reveal-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 96px;
  width: 100%;
}

.reveal-poster {
  flex-shrink: 0;
}

.poster-image {
  display: block;
  width: auto;
  height: 78vh;
  max-height: 720px;
  min-height: 520px;
  max-width: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.reveal-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 540px;
  flex-shrink: 0;
}

.fiscal-sponsor {
  margin-top: 32px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  max-width: 100%;
}

.fiscal-sponsor-logo {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  mix-blend-mode: screen;
}

.fiscal-sponsor-text {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0;
  max-width: 420px;
  flex: 1;
}

.logline-primary {
  font-family: var(--font-mono);
  font-size: 19px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 0 0 32px 0;
}

.logline-secondary {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin: 0 0 56px 0;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-text);
  padding: 22px 44px;
  transition: background-color 200ms ease, color 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}

.cta-button:hover,
.cta-button:focus-visible {
  background-color: var(--color-text);
  color: var(--color-bg);
}

@media (max-width: 900px) {
  .reveal-grid {
    flex-direction: column;
    gap: 48px;
  }

  #poster {
    min-height: 130vh;
    padding-top: 30vh;
  }

  .poster-image {
    width: auto;
    height: auto;
    max-width: 380px;
    min-width: 0;
    max-height: none;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }

  .reveal-content {
    width: 100%;
    max-width: 380px;
    align-items: center;
  }

  .fiscal-sponsor {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .fiscal-sponsor-logo {
    height: 32px;
  }

  .logline-primary {
    font-size: 17px;
  }

  .logline-secondary {
    font-size: 14px;
  }

  .cta-button {
    padding: 18px 32px;
    font-size: 13px;
  }
}

/* DIRECTOR'S STATEMENT */
#statement {
  display: flex;
  flex-direction: column;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}

#statement > .statement-viewport {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

#statement > .carousel-viewport {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.statement-block {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.statement-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 48px 0;
}

.statement-body {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.5;
  font-weight: 400;
  color: var(--color-text);
  margin: 0 0 64px 0;
  text-wrap: pretty;
}

.cta-secondary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--color-text-muted);
  background: transparent;
  border: 1px solid var(--color-text-muted);
  padding: 16px 32px;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  white-space: nowrap;
  display: inline-block;
  align-self: center;
}

.cta-secondary:hover,
.cta-secondary:focus-visible {
  background-color: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

@media (max-width: 768px) {
  .statement-block {
    max-width: 100%;
  }

  .statement-body {
    font-size: 21px;
    margin-bottom: 40px;
  }

  .statement-label {
    margin-bottom: 28px;
  }

  .cta-secondary {
    padding: 14px 26px;
    font-size: 12px;
  }

}

/* STILLS CAROUSEL */
.stills-carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stills-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0 calc((100vw - 880px) / 2);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.stills-track::-webkit-scrollbar {
  display: none;
}

.still-item {
  flex: 0 0 auto;
  width: 880px;
  aspect-ratio: 3420 / 1924;
  scroll-snap-align: center;
  transition: opacity 400ms ease, filter 400ms ease;
  opacity: 0.35;
  filter: blur(2px);
}

.still-item.is-focused {
  opacity: 1;
  filter: blur(0);
}

.still-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.stills-controls {
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.stills-counter {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  display: flex;
  gap: 8px;
}

.stills-counter-current {
  color: var(--color-text);
}

.stills-progress {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.stills-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: var(--color-rule);
}

.stills-progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: var(--color-text);
  width: 8.33%;
  left: 0;
  transition: left 200ms ease, width 200ms ease;
}

.stills-fullscreen {
  background: transparent;
  border: 1px solid var(--color-rule);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: color 200ms ease, border-color 200ms ease;
  margin-top: 8px;
  min-height: 44px;
  min-width: 120px;
}

.stills-fullscreen:hover,
.stills-fullscreen:focus-visible {
  color: var(--color-text);
  border-color: var(--color-text);
}

.stills-fullscreen svg {
  display: block;
}

.stills-carousel.is-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #000000;
  z-index: 9999;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  overflow: hidden;
}

.stills-carousel.is-fullscreen .stills-track {
  min-height: 0;
  align-items: center;
  padding: 0 calc((100vw - 90vw) / 2);
}

.stills-carousel.is-fullscreen .still-item {
  height: auto;
  max-height: 100%;
  width: 90vw;
  max-width: 95vw;
  max-width: none;
  aspect-ratio: 3420 / 1924;
  flex-shrink: 0;
}

.stills-carousel.is-fullscreen .still-item img {
  height: 100%;
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.stills-carousel.is-fullscreen .stills-controls {
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.5);
  max-width: none;
  align-self: end;
}

.stills-carousel.is-fullscreen .stills-fullscreen {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Lock body scroll when fullscreen is active */
body.is-stills-fullscreen {
  overflow: hidden;
}

@media (max-width: 1100px) {
  .still-item {
    width: 720px;
  }

  .stills-track {
    padding: 0 calc((100vw - 720px) / 2);
  }
}

@media (max-width: 768px) {
  .stills-controls {
    max-width: 100%;
  }

  .stills-progress {
    max-width: 280px;
  }

  .still-item {
    width: 88vw;
    filter: blur(1.5px);
  }

  .stills-track {
    padding: 0 6vw;
  }
}

/* CREDITS & QUOTES */
#credits {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
  width: 100%;
}

#credits.container {
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}

.credits-grid {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 96px;
  align-items: start;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}

.credits-label {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0 0 40px 0;
}

.credits-quotes {
  display: flex;
  flex-direction: column;
  gap: 56px;
  max-width: 440px;
  align-items: flex-start;
}

.quote-block {
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 1px solid var(--color-rule);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.55;
  color: var(--color-text);
  margin: 0;
  text-wrap: pretty;
}

.quote-citation {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.credits-list {
  display: flex;
  flex-direction: column;
  max-width: 280px;
  align-items: flex-start;
}

.credits-dl {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.credit-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.credit-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin: 0;
}

.credit-name {
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  margin: 0;
}

@media (max-width: 900px) {
  .credits-grid {
    grid-template-columns: 1fr;
    gap: 72px;
    justify-content: stretch;
  }

  .quote-text {
    font-size: 19px;
  }

  .credits-quotes {
    gap: 40px;
  }

  .credits-quotes,
  .credits-list {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .credits-label {
    margin-bottom: 28px;
  }

  .credits-quotes {
    gap: 32px;
  }

  .credits-dl {
    gap: 20px;
  }
}

/* SECTION 5 — CONTACT & FOOTER */
#site-footer {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--section-spacing);
  padding-bottom: var(--section-spacing);
}

#site-footer .container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  text-align: center;
  width: 100%;
}

.contact-row {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 56px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.contact-role {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-value {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--color-text);
  text-decoration: none;
  transition: color 200ms ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a.contact-value:hover,
a.contact-value:focus-visible {
  color: var(--color-text-muted);
}

.instagram-icon-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.instagram-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease;
  opacity: 0.9;
}

.footer-logo-link:hover,
.footer-logo-link:focus-visible {
  opacity: 1;
}

.footer-logo {
  height: 64px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
}

.footer-logo-okay {
  height: 88px;
  max-width: 200px;
}

.footer-logo-fth {
  height: 56px;
  max-width: 240px;
  mix-blend-mode: screen;
}

@media (max-width: 768px) {
  #site-footer {
    padding-top: var(--section-spacing-mobile);
    padding-bottom: var(--section-spacing-mobile);
  }

  .footer-inner {
    gap: 56px;
  }

  .contact-row {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 28px;
  }

  .footer-logos {
    gap: 48px;
  }

  .footer-logo {
    height: 48px;
  }

  .footer-logo-okay {
    height: 64px;
  }

  .footer-logo-fth {
    height: 44px;
  }

  .contact-value {
    font-size: 16px;
  }
}

/* TRANSITIONS */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
}

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

  * {
    scroll-behavior: auto;
  }

  .fade-section {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero-statement {
    opacity: 1 !important;
  }
}
