/* Night site: black-rock ground, bone-white type, pomegranate only at the horizon,
   and heartbeat blue only on the one link that asks you to follow. */
:root {
  --rock: #0E0D0D;        /* Black Rock, the film's darkest color */
  --bone: #F2EEE6;        /* the moon, the white rose */
  --ash: #D4CEC4;         /* running text */
  --graygreen: #8B9A8E;   /* Los Angeles, metadata */
  --dusk: #A8233F;        /* pomegranate dusk, Imageo's sky */
  --rose: #2F5BFF;        /* heartbeat blue, used once */
  --rule: rgba(242, 238, 230, 0.16);

  --display: "Forum", "Cormorant Garamond", Georgia, serif;
  --text: "Spectral", Georgia, "Times New Roman", serif;
  --bill: "Oswald", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --measure: 36rem;
  color-scheme: dark;
}

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

html { background: var(--rock); }

body {
  margin: 0;
  background: var(--rock);
  color: var(--ash);
  font-family: var(--text);
  font-weight: 300;
  font-size: var(--step-0);
  line-height: 1.75;
  padding-inline: clamp(16px, 5vw, 48px);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--bone); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--bone); text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-2); line-height: 1.2; letter-spacing: 0.02em; }
h3 { font-size: var(--step-1); letter-spacing: 0.04em; }
p { margin: 0; }

.wrap { max-width: 60rem; margin-inline: auto; }

/* Site bar */
.site-bar {
  max-width: 60rem;
  margin-inline: auto;
  padding-block: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.site-bar a { text-decoration: none; }
.site-bar a:hover { text-decoration: underline; }
.site-mark { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0.12em; }
.site-bar .side { font-size: 0.95rem; color: var(--ash); }

/* ---------- Studio home ---------- */
.home { display: grid; gap: 4rem; padding-block: 3rem 5rem; }

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

/* The studio reel: lightning, glass, the blue rose, the name. Plays once and holds on the logo. */
.reel { margin: 0; display: grid; gap: 0.75rem; justify-items: end; }
.reel video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: var(--rock);
  border-radius: 6px;
}
.replay {
  font: inherit;
  font-size: 0.95rem;
  color: var(--ash);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  cursor: pointer;
}
.replay:hover { color: var(--bone); border-color: var(--bone); }
.replay:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

.definition { display: grid; gap: 0.35rem; max-width: var(--measure); }
.definition .headword { font-family: var(--display); font-size: var(--step-1); color: var(--bone); letter-spacing: 0.06em; }
.definition .pos { font-style: italic; color: var(--graygreen); margin-left: 0.5rem; font-size: 1rem; }
.definition .sense { font-size: var(--step-1); line-height: 1.5; }

.about { max-width: var(--measure); }

.slate { display: grid; gap: 1.25rem; border-top: 1px solid var(--rule); padding-top: 2rem; }
.slate h2 { font-size: var(--step-1); color: var(--graygreen); letter-spacing: 0.04em; }

.film-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  text-decoration: none;
  color: var(--ash);
  padding-block: 0.5rem;
}
.film-card .disc {
  width: clamp(64px, 14vw, 120px);
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 50%;
  background: var(--bone);
  box-shadow: 0 0 0 1px var(--rule);
}
.film-card .film-body { display: grid; gap: 0.5rem; min-width: 0; }
.film-card .film-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 6vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bone);
}
.film-card .film-line { max-width: var(--measure); }
.film-card .film-go { color: var(--bone); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.film-card:hover .film-go { text-decoration-thickness: 2px; }
.film-card:focus-visible { outline: 2px solid var(--bone); outline-offset: 6px; border-radius: 4px; }

.contact { display: grid; gap: 0.5rem; border-top: 1px solid var(--rule); padding-top: 2rem; }
.contact h2 { font-size: var(--step-1); color: var(--graygreen); letter-spacing: 0.04em; }
.contact .address { font-size: var(--step-1); color: var(--bone); user-select: all; overflow-wrap: anywhere; }

.legal { max-width: 60rem; margin-inline: auto; padding-block: 2rem 3rem; font-size: 0.9rem; color: var(--graygreen); border-top: 1px solid var(--rule); }

/* ---------- Film page ---------- */
.hero {
  text-align: center;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(2.5rem, 6vw, 4rem);
  display: grid;
  justify-items: center;
  gap: 1.5rem;
  background: radial-gradient(ellipse 70% 45% at 50% 115%, rgba(168, 35, 63, 0.32), transparent 70%);
  margin-inline: calc(-1 * clamp(16px, 5vw, 48px));
  padding-inline: clamp(16px, 5vw, 48px);
}

/* The moon cards: two discs, a hand's width apart; then touching; then one. Hard cuts, no easing. */
.moons {
  --d: clamp(52px, 11vw, 104px);
  position: relative;
  width: calc(var(--d) * 3);
  max-width: 100%;
  height: var(--d);
  margin-bottom: 1rem;
}
.moon {
  position: absolute;
  top: 0;
  left: calc(50% - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  border-radius: 50%;
  background: var(--bone);
}
.moon.left { animation: moon-left 4.2s step-end 0.4s both; }
.moon.right { animation: moon-right 4.2s step-end 0.4s both; }
@keyframes moon-left {
  0% { transform: translateX(calc(var(--d) * -1)); }
  33.333% { transform: translateX(calc(var(--d) * -0.5)); }
  66.666%, 100% { transform: translateX(0); }
}
@keyframes moon-right {
  0% { transform: translateX(var(--d)); }
  33.333% { transform: translateX(calc(var(--d) * 0.5)); }
  66.666%, 100% { transform: translateX(0); }
}

.title {
  font-size: clamp(2.1rem, 8.6vw, 6rem);
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-right: -0.14em; /* balance the trailing letter-space so the word centers */
}
.kind { font-family: var(--display); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.9rem; color: var(--graygreen); margin-right: -0.3em; }
.credit { font-size: 1rem; line-height: 1.6; }

.logline {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--bone);
  padding-block: 1rem 2rem;
}

.follow { display: grid; justify-items: center; gap: 0.75rem; padding-bottom: 4rem; text-align: center; }
.follow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--rose);
  color: var(--bone);
  text-decoration: none;
  font-family: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
}
.follow-link:hover { text-decoration: none; filter: brightness(1.08); }
.follow-link:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 999px; }
.pulse { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--bone); animation: lub-dub 1s ease-out infinite; }
/* The rose's program: a two-beat lub-dub at 60 BPM. */
@keyframes lub-dub {
  0%, 100% { transform: scale(1); opacity: 0.75; }
  10% { transform: scale(1.45); opacity: 1; }
  20% { transform: scale(1); opacity: 0.8; }
  30% { transform: scale(1.3); opacity: 1; }
  45% { transform: scale(1); opacity: 0.75; }
}
.follow .note { font-size: 0.95rem; color: var(--graygreen); }

.film-main { display: grid; gap: 4.5rem; padding-bottom: 5rem; }

.key-art { margin: 0; display: grid; gap: 0.75rem; }
.key-art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}
.key-art figcaption { font-style: italic; font-size: 0.95rem; color: var(--graygreen); max-width: var(--measure); }

.details { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding-block: 1.5rem; }
.details dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
}
.details dt { font-size: 0.9rem; color: var(--graygreen); }
.details dd { margin: 0; color: var(--bone); }

.story { display: grid; gap: 1.25rem; max-width: var(--measure); }
.story p + p { margin-top: 0.25rem; }

.worlds { display: grid; gap: 1.75rem; }
.worlds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem; }
.world { display: grid; gap: 0.75rem; padding-top: 1rem; border-top: 2px solid var(--world, var(--rule)); align-content: start; min-width: 0; }
.world.imageo { --world: var(--dusk); }
.world.la { --world: var(--graygreen); }

/* Credits in the vernacular of a poster billing block */
.billing {
  text-align: center;
  font-family: var(--bill);
  font-weight: 300;
  text-transform: uppercase;
  color: var(--ash);
  line-height: 1.5;
  display: grid;
  gap: 0.35rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--rule);
}
.billing p { font-size: clamp(1rem, 2.6vw, 1.35rem); letter-spacing: 0.04em; }
.billing .role { font-size: 0.55em; letter-spacing: 0.14em; color: var(--graygreen); margin-inline: 0.35em 0.15em; }
.billing .name { white-space: nowrap; }
.billing .billed-title { font-family: var(--display); font-size: clamp(1.4rem, 4vw, 2rem); letter-spacing: 0.18em; color: var(--bone); }

.film-footer { display: grid; gap: 0.5rem; }
.film-footer .address { color: var(--bone); user-select: all; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .details dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worlds-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .billing .name { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  .moon.left, .moon.right { animation: none; transform: none; }
  .pulse { animation: none; }
}
