:root {
  color-scheme: dark;
  --ink: #111110;
  --paper: #eee9df;
  --red: #f04432;
  --muted: #b6b2a9;
  --line: #44433e;
  --space: clamp(1.25rem, 5vw, 5rem);
  --display: Impact, 'Arial Narrow', 'Helvetica Neue', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: Arial, Helvetica, sans-serif; line-height: 1.6; }
a { color: inherit; text-underline-offset: .25em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 6px; }
::selection { background: var(--red); color: var(--ink); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .95; }
h2 { font-family: var(--display); font-size: clamp(3.2rem, 8vw, 7rem); font-weight: 900; text-transform: uppercase; letter-spacing: -.035em; }
h3 { font-size: 1.5rem; }
p { max-width: 65ch; }
.skip-link { position: absolute; top: -8rem; left: 1rem; z-index: 3; background: var(--paper); color: var(--ink); padding: 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.25rem var(--space); border-bottom: 1px solid var(--line); }
.wordmark { font-family: var(--display); font-size: 1.5rem; line-height: .9; text-decoration: none; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; }
.site-nav a { font-size: .85rem; text-decoration: none; padding-block: .35rem; }
.site-nav a:hover { text-decoration: underline; }
.languages { display: flex; align-items: center; gap: .6rem; font-size: .8rem; }
.languages a { text-decoration: none; padding: .25rem; }
.languages [aria-current] { color: var(--red); text-decoration: underline; }
.eyebrow, .section-label { font-family: 'Courier New', monospace; }
.eyebrow, .section-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; padding: clamp(1.5rem, 4vh, 3rem) var(--space) 2rem; }
.hero-art { display: none; }
.hero-subtitle { position: relative; }
.hero .eyebrow { position: relative; margin-bottom: 1.25rem; }
.hero-title { position: relative; margin: 0 0 1rem; font-family: var(--display); font-size: clamp(3.5rem, min(14vw, 20vh), 12rem); text-transform: uppercase; font-weight: 900; line-height: .83; letter-spacing: -.035em; }
.hero-title span { display: block; }
.hero-title .title-red { color: var(--red); transform: rotate(-2deg); transform-origin: left center; }
.hero-subtitle { margin: 1.25rem 0; font-size: clamp(1rem, 2.2vw, 1.75rem); text-transform: uppercase; font-weight: 800; letter-spacing: .035em; }
.hero-bottom { position: relative; display: grid; gap: 1.25rem 2rem; }
.hero-intro { min-width: 0; }
.hero-logline { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 48ch; margin-bottom: 1.25rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; background: var(--red); color: var(--ink); padding: 1rem 1.25rem; text-decoration: none; font-weight: 800; border: 1px solid transparent; font-size: 1rem; }
.button:hover { background: var(--paper); }
.text-link { font-size: .9rem; }
.festival-laurel { width: min(100%, 11rem); align-self: center; }
.festival-laurel img { display: block; width: 100%; height: auto; filter: brightness(0) saturate(100%) invert(76%) sepia(28%) saturate(618%) hue-rotate(2deg) brightness(91%) contrast(88%); }
.section { padding: clamp(4rem, 9vw, 8rem) var(--space); }
.section-label { display: flex; gap: 1rem; margin-bottom: 2rem; }
.section-label span { color: var(--red); }
.section-heading { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.section-heading h2 { margin-bottom: 0; }
.trailer { padding-top: 1.5rem; }
.trailer .section-heading { margin-bottom: 1rem; }
.trailer h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); letter-spacing: 0; }
.video-frame { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.video-frame iframe { width: 100%; height: 100%; display: block; border: 0; }
.film { background: var(--paper); color: var(--ink); }
.film h2 { overflow-wrap: anywhere; }
.split { display: grid; gap: 3rem; align-items: start; }
.film-copy { font-size: 1.1rem; }
.film-poster, .maker-portrait { margin: 0; width: 100%; }
.film-poster { max-width: 26rem; padding: .5rem; transform: rotate(2deg); }
.film-poster img, .maker-portrait img { display: block; width: 100%; height: auto; }
[data-embers] { position: relative; isolation: isolate; overflow: hidden; }
.maker h2 { max-width: 10ch; }
.maker-portrait { max-width: 25rem; }
.maker-name { font-family: var(--display); font-size: 2.5rem; text-transform: uppercase; margin-bottom: 1rem; }
.contact { background: var(--red); color: var(--ink); }
.contact .section-label span { color: var(--ink); }
.contact h2 { max-width: 11ch; }
.contact .split > div > p { max-width: 48ch; font-size: 1.125rem; line-height: 1.65; }
.contact-form { color-scheme: light; }
.contact-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field { margin-bottom: 1.25rem; }
.field label { display: block; font-size: 1rem; font-weight: bold; margin-bottom: .4rem; }
.field input, .field textarea { display: block; width: 100%; border: 2px solid var(--ink); border-radius: 0; padding: .9rem; font: inherit; color: var(--ink); -webkit-text-fill-color: var(--ink); background: var(--paper); opacity: 1; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field textarea { resize: vertical; min-height: 9rem; }
.contact-form button { width: 100%; background: var(--ink); color: var(--paper); padding: 1rem; border: 0; font: inherit; font-weight: bold; cursor: not-allowed; }
.form-help { font-size: .875rem; margin-bottom: 1rem; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 2rem var(--space); font-size: .75rem; }
.site-footer p { margin-bottom: 0; }
.production-credit { display: inline-flex; gap: .75rem; align-items: center; padding-block: .25rem; text-decoration: none; font-size: .875rem; font-weight: bold; }
.production-credit:hover { text-decoration: underline; }
.production-credit img { display: block; width: 2.75rem; height: auto; }

.ember-layer { display: none; pointer-events: none; user-select: none; }
.motion-toggle { border: 0; background: transparent; color: var(--muted); padding: .75rem 0; font: inherit; font-size: .75rem; text-decoration: underline; text-underline-offset: .25em; cursor: pointer; }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { color: var(--paper); }

@media (min-width: 64rem) and (prefers-reduced-motion: no-preference) {
  .ember-layer { display: block; position: absolute; z-index: 0; overflow: hidden; visibility: hidden; }
  .ember-layer.is-running { visibility: visible; }
  .hero > .ember-layer { inset: 6% 9% 27% 65%; }
  .hero > :not(.hero-art):not(.ember-layer) { position: relative; z-index: 1; }
  .ember { --drift: 18px; --rise: -190px; --tilt: -18deg; --peak: .95; position: absolute; bottom: 0; left: 18%; width: 4px; height: 6px; border-radius: 35% 15% 45% 20%; background: #ffd09a; box-shadow: 0 0 6px 1px #e9753b99; opacity: 0; animation: ember-rise 5.4s linear -1.2s infinite both paused; }
  .is-running .ember { animation-play-state: running; }
  .ember:nth-child(2) { left: 63%; --drift: -16px; --rise: -225px; --tilt: 24deg; animation-duration: 5.8s; animation-delay: -3.4s; height: 4px; }
  .ember:nth-child(3) { left: 35%; --drift: 23px; --rise: -160px; animation-duration: 4.9s; animation-delay: -4.4s; background: #ed9860; }
  .ember:nth-child(4) { left: 77%; --drift: -22px; --rise: -205px; --tilt: 32deg; animation-duration: 5.6s; animation-delay: -2.7s; width: 2px; }
  .ember:nth-child(5) { left: 48%; --drift: 12px; --rise: -240px; animation-duration: 6s; animation-delay: -.3s; height: 4px; }
  .ember:nth-child(6) { left: 24%; --drift: -17px; --rise: -175px; --tilt: 16deg; animation-duration: 5.2s; animation-delay: -3.9s; width: 2px; }
  .ember:nth-child(7) { left: 89%; --drift: -20px; --rise: -185px; animation-duration: 5.7s; animation-delay: -1.9s; height: 4px; }
  .ember:nth-child(8) { left: 9%; --drift: 24px; --rise: -220px; animation-duration: 5.1s; animation-delay: -3.1s; width: 3px; }
  .ember:nth-child(9) { left: 56%; --drift: -13px; --rise: -195px; animation-duration: 6.2s; animation-delay: -4.7s; }
  .ember:nth-child(10) { left: 41%; --drift: 21px; --rise: -230px; animation-duration: 5.5s; animation-delay: -.8s; width: 2px; }
  .section > .ember-layer { inset: 1rem .5rem; }
  .section .ember { --peak: .65; --drift: 5px; --rise: -150px; left: calc(var(--space) * .28); bottom: 8%; width: 3px; height: 5px; box-shadow: 0 0 4px #e9753b66; }
  .section .ember:nth-child(even) { left: auto; right: calc(var(--space) * .28); --drift: -5px; }
  .section .ember:nth-child(3), .section .ember:nth-child(4) { bottom: 38%; }
  .section .ember:nth-child(5), .section .ember:nth-child(6) { bottom: 68%; }
  .section .ember:nth-child(7), .section .ember:nth-child(8) { bottom: 88%; }
  .film .ember { --peak: .75; background: #9c4426; box-shadow: none; }
  .contact .ember { --peak: .8; background: #ffe2af; box-shadow: 0 0 4px #ffd09a66; }
}

@keyframes ember-rise {
  0% { opacity: 0; transform: translate(0, 0) rotate(var(--tilt)); }
  12% { opacity: var(--peak); }
  38% { opacity: var(--peak); }
  62%, 100% { opacity: 0; transform: translate(var(--drift), var(--rise)) rotate(36deg); }
}

@media (min-width: 48rem) {
  .hero .eyebrow { order: -1; }
  .hero-art { display: block; position: absolute; z-index: -1; inset: 0 0 0 40%; pointer-events: none; background-image: linear-gradient(90deg, var(--ink), #11111088 35%, transparent 65%), linear-gradient(0deg, var(--ink), transparent 28%, transparent 80%, var(--ink)), url('/assets/images/hero-flare.webp'); background-position: center; background-size: cover; background-repeat: no-repeat; }
  .hero-title { width: 72%; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) 11rem; align-items: center; }
  .hero .festival-laurel { position: relative; isolation: isolate; }
  .hero .festival-laurel::before { content: ''; position: absolute; z-index: -1; inset: -2rem; background: radial-gradient(ellipse, #111110f5 25%, #111110b8 45%, transparent 72%); pointer-events: none; }
  .hero .festival-laurel img { filter: brightness(0) saturate(100%) invert(86%) sepia(25%) saturate(550%) hue-rotate(354deg) brightness(105%) contrast(95%) drop-shadow(0 1px 2px #000); }
  .split { grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 7rem); }
  .film .split { grid-template-columns: 1.3fr 1fr; }
  .film-poster { justify-self: end; margin-top: 1rem; }
  .maker .split { grid-template-columns: .85fr 1.15fr; }
}

@media (min-width: 64rem) {
  .hero-art { inset: 0 0 0 43%; background-image: linear-gradient(90deg, var(--ink), transparent 35%), linear-gradient(0deg, var(--ink), transparent 24%, transparent 85%, var(--ink)), url('/assets/images/hero-flare.webp'); }
  .hero-title { width: 64%; }
  .hero-bottom { grid-template-columns: minmax(0, 1fr) 9rem; }
  .hero .festival-laurel { width: 9rem; }
}

@media (max-width: 47.999rem) {
  .hero { padding-block: 1.5rem 1.25rem; }
  .hero-title { font-size: clamp(3.5rem, min(16vw, 15vh), 7rem); margin-bottom: 0; }
  .hero-subtitle { font-size: clamp(.9rem, 2.8vw, 1.15rem); margin: 1rem 0 .4rem; letter-spacing: .015em; }
  .hero .eyebrow { font-family: inherit; font-size: .8rem; letter-spacing: 0; text-transform: none; color: var(--muted); margin-bottom: 1.25rem; }
  .hero-logline { font-size: 1rem; margin-bottom: 1rem; }
  .hero .actions .text-link { display: none; }
  .hero .festival-laurel { width: 7.5rem; }
  .hero-bottom { gap: 1rem; }
}

@media (max-width: 30rem) {
  .site-header { padding-block: .75rem .25rem; gap: .25rem 1rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 0 .5rem; }
  .site-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .languages a { display: inline-flex; align-items: center; min-height: 2.75rem; }
}