/* Stars Mini Films · starsminifilms.com */
:root {
  --void: #05070d;
  --deep: #0a0f1c;
  --ink: #f4f1ea;
  --mute: rgba(244, 241, 234, .66);
  --faint: rgba(244, 241, 234, .38);
  --gold: #e3c27a;
  --gold-dim: rgba(227, 194, 122, .38);
  --line: rgba(244, 241, 234, .12);
  --sans: "Jost", "Futura", "Avenir Next", sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, .foot { position: relative; z-index: 1; }

/* ---------- type ---------- */
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
h2 {
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(32px, 6vw, 60px); line-height: 1.08; letter-spacing: -.005em;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 15px 30px; border: 1px solid var(--gold-dim); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: rgba(5, 7, 13, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: border-color .4s var(--ease), background .4s var(--ease), color .4s var(--ease);
}
.btn:hover { border-color: var(--gold); background: rgba(227, 194, 122, .1); }
.btn-ghost { background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- header ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  transition: background .5s var(--ease), border-color .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(5, 7, 13, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; }
.brand-name { font-size: 12px; font-weight: 500; letter-spacing: .36em; text-transform: uppercase; }
.brand-name em { font-style: normal; color: var(--mute); }
.nav { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav a { font-size: 11px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; text-decoration: none; color: var(--mute); transition: color .3s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .brand-name { display: none; } .nav a:nth-child(2) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate; text-align: center;
}
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--void); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: opacity, transform; animation: slide 28s linear infinite; }
.slide:nth-child(1) { animation-delay: -1.4s; }
.slide:nth-child(2) { animation-delay: 5.6s; }
.slide:nth-child(3) { animation-delay: 12.6s; }
.slide:nth-child(4) { animation-delay: 19.6s; }
@keyframes slide {
  0% { opacity: 0; transform: scale(1); }
  5% { opacity: 1; }
  25% { opacity: 1; }
  30% { opacity: 0; transform: scale(1.08); }
  100% { opacity: 0; transform: scale(1.08); }
}
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(5, 7, 13, .2) 0%, rgba(5, 7, 13, .62) 70%, rgba(5, 7, 13, .9) 100%),
    linear-gradient(180deg, rgba(5, 7, 13, .55) 0%, rgba(5, 7, 13, 0) 30%, rgba(5, 7, 13, 0) 62%, var(--void) 100%);
}
.hero-inner { display: flex; flex-direction: column; align-items: center; padding: 120px var(--pad) 140px; }
.hero-mark { width: clamp(104px, 18vw, 168px); height: auto; overflow: visible; filter: drop-shadow(0 0 18px rgba(255, 233, 184, .25)); }
.hm-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .9s forwards; }
.hm-dots circle { opacity: 0; transform-box: fill-box; transform-origin: center; animation: twinkle-in .7s var(--ease) calc(.5s + var(--i) * .22s) forwards; }
.hm-flare { opacity: 0; transform-box: fill-box; transform-origin: center; animation: flare 1.1s var(--ease) 2.7s forwards; }
.wordmark { display: flex; flex-direction: column; align-items: center; margin-top: clamp(22px, 4vw, 36px); font-weight: 400; }
.wm-1 {
  font-size: clamp(44px, 11vw, 104px); letter-spacing: .32em; margin-right: -.32em; line-height: 1;
  font-weight: 500; text-transform: uppercase; opacity: 0; animation: rise 1.2s var(--ease) 3.0s forwards;
}
.wm-2 {
  font-size: clamp(12px, 2.1vw, 18px); letter-spacing: .62em; margin-right: -.62em; margin-top: clamp(12px, 1.8vw, 18px);
  font-weight: 400; text-transform: uppercase; color: var(--mute); opacity: 0; animation: rise 1.2s var(--ease) 3.3s forwards;
}
.tagline {
  font-family: var(--serif); font-style: italic; font-size: clamp(21px, 3vw, 30px); color: var(--ink);
  margin: clamp(26px, 4vw, 40px) 0 clamp(30px, 4vw, 44px); opacity: 0; animation: rise 1.2s var(--ease) 3.7s forwards;
}
.hero .btn { opacity: 0; animation: rise 1.2s var(--ease) 4.1s forwards; }
.now-showing {
  position: absolute; left: var(--pad); bottom: max(28px, env(safe-area-inset-bottom)); font-size: 11px; letter-spacing: .28em;
  text-transform: uppercase; color: var(--faint); opacity: 0; animation: fade 1.4s var(--ease) 4.6s forwards; text-align: left;
}
.now-showing span { color: var(--gold); margin-right: 14px; }
.scroll-cue { position: absolute; right: var(--pad); bottom: max(28px, env(safe-area-inset-bottom)); width: 1px; height: 54px; background: var(--line); overflow: hidden; opacity: 0; animation: fade 1.4s var(--ease) 4.6s forwards; }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--gold); animation: fall 2.4s var(--ease) infinite; }
@media (max-width: 560px) { .now-showing { display: none; } .scroll-cue { right: 50%; } }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes twinkle-in { 0% { opacity: 0; transform: scale(.3); } 60% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes flare { 0% { opacity: 0; transform: scale(.2) rotate(-25deg); } 55% { opacity: 1; transform: scale(1.45) rotate(0); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }
@keyframes fall { to { top: 110%; } }

/* ---------- thread between sections ---------- */
.thread { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: clamp(40px, 7vw, 80px); }
.thread i { width: 1px; height: clamp(60px, 10vw, 110px); background: linear-gradient(var(--gold-dim), var(--gold)); transform-origin: top; transform: scaleY(0); transition: transform 1.4s var(--ease); }
.thread svg { width: 14px; height: 14px; color: var(--gold); opacity: 0; transform: scale(.3); transition: opacity .8s var(--ease) .9s, transform .8s var(--ease) .9s; }
.thread.in i { transform: scaleY(1); }
.thread.in svg { opacity: 1; transform: none; }

/* ---------- sections ---------- */
section:not(.hero) { padding: clamp(40px, 7vw, 80px) var(--pad) clamp(80px, 12vw, 150px); }
.sec-head { max-width: 1240px; margin: 0 auto clamp(48px, 8vw, 96px); text-align: center; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- films ---------- */
.film { max-width: 1240px; margin: 0 auto clamp(80px, 12vw, 150px); display: grid; gap: 28px; }
.film:last-child { margin-bottom: 0; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 4px; background: var(--deep);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px var(--line);
}
.film-frame img, .film-frame .teaser { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-frame img { transition: transform 1.6s var(--ease), opacity .8s var(--ease); }
.film-frame .teaser { opacity: 0; transition: opacity .8s var(--ease); }
.film.playing .teaser { opacity: 1; }
.film:hover .film-frame img { transform: scale(1.03); }
.film-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,13,0) 55%, rgba(5,7,13,.55)); pointer-events: none; }
.play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(244,241,234,.5); background: rgba(5,7,13,.35);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .5s var(--ease), border-color .5s var(--ease), background .5s var(--ease);
}
.play svg { width: 26px; height: 26px; fill: var(--ink); margin-left: 3px; }
.play:hover, .film-frame:hover .play { transform: scale(1.08); border-color: var(--gold); background: rgba(227,194,122,.14); }
.film-no { font-size: 12px; font-weight: 500; letter-spacing: .42em; color: var(--gold); text-transform: uppercase; }
.film h3 { font-size: clamp(30px, 5vw, 50px); font-weight: 400; letter-spacing: .14em; text-transform: uppercase; line-height: 1.1; margin: 12px 0 14px; }
.film-meta { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: rgba(244,241,234,.58); }
.logline { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.4vw, 26px); line-height: 1.4; color: var(--mute); margin: 20px 0 30px; max-width: 30ch; }

@media (min-width: 960px) {
  .film { grid-template-columns: repeat(12, 1fr); align-items: center; gap: 0; }
  .film-frame { grid-column: 1 / span 8; grid-row: 1; }
  .film-text { grid-column: 9 / span 4; grid-row: 1; padding-left: 48px; }
  .film-flip .film-frame { grid-column: 5 / span 8; }
  .film-flip .film-text { grid-column: 1 / span 4; padding: 0 48px 0 0; text-align: right; }
  .film-flip .logline { margin-left: auto; }
}

/* ---------- letter ---------- */
.letter { position: relative; overflow: hidden; isolation: isolate; }
.letter-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background: radial-gradient(60% 50% at 50% 55%, rgba(5,7,13,0), var(--void) 75%), url("assets/still-planet.jpg") center 60% / cover no-repeat;
}
.letter-inner { max-width: 640px; margin: 0 auto; }
.letter-inner p { font-family: var(--serif); font-size: clamp(21px, 2.4vw, 25px); line-height: 1.6; color: var(--mute); margin-bottom: 1.1em; }
.letter-inner .eyebrow { font-family: var(--sans); font-size: 12px; line-height: 1.6; color: var(--gold); margin-bottom: 26px; }
.letter-inner .lead { font-style: italic; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.18; color: var(--ink); margin-bottom: .9em; }
.signature { display: flex; align-items: center; gap: 14px; margin-top: 1.8em; }
.signature svg { width: 40px; height: 40px; }
.signature span { font-style: italic; font-size: 30px; color: var(--ink); }

/* ---------- process ---------- */
.steps { list-style: none; max-width: 1240px; margin: 0 auto; display: grid; gap: clamp(56px, 8vw, 72px); }
.step figure { aspect-ratio: 16 / 10; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); margin-bottom: 26px; }
.step figure img { width: 100%; height: 100%; object-fit: cover; }
.step-no { font-size: 12px; font-weight: 500; letter-spacing: .42em; color: var(--gold); }
.step h3 { font-size: 22px; font-weight: 400; letter-spacing: .22em; text-transform: uppercase; margin: 8px 0 10px; }
.step > p:last-child { color: var(--mute); max-width: 38ch; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- follow ---------- */
.follow { text-align: center; }
.follow-inner { max-width: 760px; margin: 0 auto; }
.follow-sub { color: var(--mute); margin: 18px 0 40px; }
.socials { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.socials a {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; border: 1px solid var(--line); border-radius: 999px;
  text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  transition: border-color .4s var(--ease), background .4s var(--ease);
}
.socials a:hover { border-color: var(--gold); background: rgba(227,194,122,.08); }
.socials svg { width: 18px; height: 18px; fill: var(--ink); }
.handle { margin-top: 26px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 60px var(--pad) max(60px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot-mark { width: 44px; height: 44px; margin: 0 auto 16px; }
.foot-name { font-size: 13px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; margin-bottom: 18px; }
.foot-name em { font-style: normal; color: var(--mute); }
.foot-small { font-size: 12px; letter-spacing: .08em; color: var(--faint); }
.foot-small + .foot-small { margin-top: 6px; }

/* ---------- player ---------- */
.player { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; color: var(--ink); }
.player::backdrop { background: rgba(3, 4, 8, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.player[open] { display: grid; place-items: center; animation: fade .5s var(--ease); }
.player-inner { position: relative; width: min(94vw, calc((100dvh - 140px) * 16 / 9)); }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 4px; }
.player-title { font-size: 12px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.player-close { position: absolute; top: -10px; right: -6px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; }
.player-close svg { width: 22px; height: 22px; stroke: var(--ink); stroke-width: 1.5; fill: none; }
.player-close:hover svg { stroke: var(--gold); }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
  .thread i { transform: none; } .thread svg { opacity: 1; transform: none; }
  .scroll-cue span { display: none; }
  .slide { animation: none !important; }
  .slide:first-child { opacity: 1; }
}
