/* AIVULIX. Static site, no JavaScript. Palette from the brand kit: void, paper and the projector lamp. */

@font-face { font-family: "Jost"; src: url("fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant"; src: url("fonts/cormorant-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --void: #090a0e;
  --charcoal: #111217;
  --graphite: #1b1c22;
  --paper: #f3efe6;
  --ash: #b9b4a9;
  --lamp: #f5a524;
  --hairline: rgba(243, 239, 230, .14);
  --sans: "Jost", "Avenir Next", "Futura", "Century Gothic", system-ui, sans-serif;
  --serif: "Cormorant", "Cormorant Garamond", "EB Garamond", "Baskerville", Georgia, serif;
  --gutter: clamp(20px, 5.4vw, 80px);
  --space: clamp(96px, 13vw, 188px);
  --wm: clamp(262px, 44vw, 860px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--paper);
  font: 400 clamp(17px, 1.05vw + 13px, 19px)/1.68 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
/* Film grain over the whole page. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  background: url("img/grain.png");
  opacity: .055;
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--lamp); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; border-radius: 1px; }
em { font-style: italic; }
::selection { background: var(--lamp); color: var(--void); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 18px;
  background: var(--paper);
  color: var(--void);
}
.skip:focus { top: 16px; color: var(--void); }

.wrap { width: min(100%, 1400px); margin-inline: auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------ type */
.eyebrow {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--lamp);
}
.eyebrow--quiet { color: var(--ash); font-weight: 400; }
.display {
  font: 300 clamp(38px, 5.1vw, 78px)/1.08 var(--serif);
  letter-spacing: -.008em;
  text-wrap: balance;
}
.display--narrow { max-width: 17em; margin-top: 26px; }

/* ------------------------------------------------------------ header */
.site-head {
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 30px) var(--gutter);
}
.site-head__home { flex: none; display: block; padding: 8px 8px 8px 0; }
.site-head__home img { width: clamp(30px, 2.6vw, 36px); max-width: none; }
.site-nav { display: flex; align-items: center; gap: clamp(2px, 1.6vw, 30px); }
.site-nav a {
  display: block;
  padding: 12px clamp(5px, 1vw, 8px);
  font-size: clamp(11.5px, .8vw + 8px, 13px);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.site-nav a:hover { color: var(--lamp); }
.site-nav .site-nav__channel {
  padding: 9px 18px;
  border: 1px solid var(--hairline);
  transition: border-color .2s;
}
.site-nav .site-nav__channel:hover { border-color: var(--lamp); }
.site-nav__wide { display: none; }

/* ------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: max(100svh, 580px);
  display: grid;
  grid-template-rows: 1fr 1fr;
  overflow: hidden;
  background: var(--void);
}
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero__field {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.hero__upper {
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 84px var(--gutter) calc(var(--wm) * .038);
}
.hero__mark { width: var(--wm); }
.hero__mark img { width: 100%; filter: drop-shadow(0 0 44px rgba(245, 165, 36, .1)); }
.hero__lower {
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: calc(var(--wm) * .036) var(--gutter) 26px;
  text-align: center;
}
.hero__descriptor {
  font-size: clamp(11px, .55vw + 8.8px, 15px);
  letter-spacing: .46em;
  margin-right: -.46em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--paper);
  opacity: .9;
}
.hero__tagline {
  margin-top: clamp(14px, 1.6vw, 24px);
  font: italic 300 clamp(24px, 2.5vw, 38px)/1.2 var(--serif);
  color: var(--paper);
}
.hero__teaser {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 2px 14px;
  margin-top: auto;
  padding: 26px 12px 10px;
  font-size: 12.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
}
.hero__teaser-status { color: var(--lamp); }

/* Opening: a slit of lamp light draws across the black, then opens like an aperture. */
.hero__shutter { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__shutter::before, .hero__shutter::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 50.1%;
  background: var(--void);
  transform: scaleY(0);
  animation: aperture 1.5s cubic-bezier(.72, 0, .18, 1) .55s backwards;
}
.hero__shutter::before { top: 0; transform-origin: top; }
.hero__shutter::after { bottom: 0; transform-origin: bottom; }
.hero__beam {
  position: absolute;
  z-index: 1;
  top: calc(50% - 1px);
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--lamp) 22%, #ffe9c4 50%, var(--lamp) 78%, transparent);
  opacity: 0;
  animation: beam 1.45s ease-out backwards;
}
@keyframes aperture { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes beam {
  0% { transform: scaleX(0); opacity: 1; }
  55% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}
.hero__mark, .hero__descriptor, .hero__tagline, .hero__teaser, .site-head { animation: rise 1.1s ease-out 1s backwards; }
.hero__tagline { animation-delay: 1.25s; }
.hero__teaser, .site-head { animation-delay: 1.55s; }
@keyframes rise { from { opacity: 0; } }

/* ------------------------------------------------------------ sections */
.section { padding-block: var(--space); }

.studio { display: grid; gap: 26px; }
.studio__body { display: grid; gap: 22px; margin-top: clamp(30px, 4vw, 60px); color: var(--ash); }

.section--film { background: linear-gradient(var(--void), var(--charcoal) 22%, var(--charcoal) 78%, var(--void)); }
.film__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 32px; margin-bottom: clamp(20px, 2.6vw, 34px); }

/* The letterboxed title card. There is no footage here: the figure is an original drawing. */
.screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(ellipse at center, var(--graphite), var(--void) 72%);
  box-shadow: 0 0 0 1px var(--hairline), 0 30px 120px -40px rgba(245, 165, 36, .2);
}
.screen__figure {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(135%, 1180px);
  max-width: none;
  margin: 0;
  translate: -50% -50%;
  opacity: .8;
  animation: orbit 360s linear infinite;
}
@keyframes orbit { to { rotate: 360deg; } }
.screen__card {
  position: relative;
  display: grid;
  justify-items: center;
  gap: clamp(18px, 2vw, 28px);
  padding: 44px 24px;
  width: 100%;
  background: radial-gradient(closest-side, rgba(9, 10, 14, .9) 30%, rgba(9, 10, 14, .62) 66%, transparent);
  text-align: center;
}
.screen__title {
  font: 400 clamp(38px, 5.6vw, 88px)/1.1 var(--serif);
  letter-spacing: .15em;
  margin-right: -.15em;
  text-transform: uppercase;
  text-wrap: balance;
  max-width: 11em;
}
.status {
  padding: 8px 18px 8px calc(18px + .34em);
  border: 1px solid var(--lamp);
  color: var(--lamp);
  background: rgba(9, 10, 14, .55);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.film__details { display: grid; gap: 40px; margin-top: clamp(36px, 5vw, 72px); }
.facts { display: grid; gap: 0; align-content: start; }
.facts > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 12px; border-top: 1px solid var(--hairline); }
.facts > div:last-child { border-bottom: 1px solid var(--hairline); }
.facts dt { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ash); padding-top: .2em; }
.facts dd { text-align: right; }
.film__copy { display: grid; gap: 18px; justify-items: start; color: var(--ash); }
.lede { font: 300 clamp(27px, 2.9vw, 42px)/1.2 var(--serif); color: var(--paper); text-wrap: pretty; }
.film__copy .button { margin-top: 14px; }

.button {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid rgba(243, 239, 230, .36);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: border-color .2s, color .2s, background-color .2s;
}
.button:hover { border-color: var(--lamp); color: var(--lamp); }

.genres { display: grid; margin-top: clamp(44px, 5.4vw, 84px); border-bottom: 1px solid var(--hairline); }
.genres li { padding-block: 26px 30px; border-top: 1px solid var(--hairline); }
.genres h3 { font: 400 clamp(29px, 2.5vw, 38px)/1.12 var(--serif); }
.genres p { margin-top: 12px; color: var(--ash); font-size: .94em; max-width: 34ch; }

.section--inquiries { position: relative; background: var(--charcoal); }
.section--inquiries::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lamp) 50%, transparent);
}
.inquiries { display: grid; gap: 34px; }
.inquiries .display { margin-top: 22px; }
.inquiries__body { display: grid; gap: 22px; justify-items: start; align-content: end; color: var(--ash); }
.inquiries__body > p:first-child { font: 300 clamp(25px, 2.3vw, 34px)/1.2 var(--serif); color: var(--paper); }
.contact { width: 100%; border-bottom: 1px solid var(--hairline); }
.contact li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 20px; padding-block: 14px; border-top: 1px solid var(--hairline); }
.contact span { font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; }
.contact a { color: var(--paper); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ footer */
.site-foot { padding-block: clamp(52px, 6vw, 84px) 36px; border-top: 1px solid var(--hairline); }
.site-foot__inner { display: grid; gap: 18px; }
.site-foot__mark { width: 148px; }
.site-foot__tag { font: italic 300 22px/1.3 var(--serif); }
.site-foot__links a { display: inline-block; padding-block: 8px; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.site-foot__legal { color: var(--ash); font-size: 13.5px; line-height: 1.6; }

/* ------------------------------------------------------------ 404 */
.lost { display: grid; min-height: 100vh; min-height: 100svh; place-items: center; }
.lost__main { display: grid; justify-items: center; gap: 24px; padding: 40px var(--gutter); text-align: center; }
.lost__mark { width: 64px; margin-bottom: 18px; }
.lost .button { margin-top: 14px; }

/* ------------------------------------------------------------ phones */
@media (max-width: 599px) {
  :root { --wm: min(80vw, 440px); }
}

/* ------------------------------------------------------------ the narrowest phones */
@media (max-width: 359px) {
  .site-nav { gap: 0; }
  .site-nav a { padding-inline: 4px; font-size: 11px; letter-spacing: .1em; }
}

/* ------------------------------------------------------------ wider screens */
@media (min-width: 600px) {
  .genres { grid-template-columns: repeat(2, 1fr); column-gap: clamp(28px, 4vw, 56px); }
  .screen { aspect-ratio: 16 / 10; }
  .screen__figure { width: min(92%, 1180px); }
}
@media (min-width: 760px) {
  .site-nav__wide { display: block; }
  .studio__body { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 5vw, 80px); }
  .film__details { grid-template-columns: minmax(240px, 4fr) 8fr; column-gap: clamp(40px, 7vw, 120px); }
  .inquiries { grid-template-columns: 7fr 5fr; column-gap: clamp(40px, 6vw, 96px); }
  .site-foot__inner { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 32px; }
  .site-foot__legal { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--hairline); margin-top: 12px; }
}
@media (min-width: 1000px) {
  .studio { grid-template-columns: minmax(180px, 3fr) 9fr; column-gap: 32px; }
  .studio .eyebrow { padding-top: 1.1em; }
  .genres { grid-template-columns: repeat(4, 1fr); }
  .screen { aspect-ratio: 2.39 / 1; }
  .screen__figure { width: min(72%, 1040px); opacity: .95; }
  .screen__title { max-width: none; font-size: clamp(40px, 5.2vw, 84px); white-space: nowrap; }
  .screen__card { background: radial-gradient(ellipse 58% 62% at center, rgba(9, 10, 14, .92) 30%, rgba(9, 10, 14, .55) 68%, transparent); }
}

/* ------------------------------------------------------------ preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-contrast: more) {
  :root { --ash: var(--paper); --hairline: rgba(243, 239, 230, .5); }
  body::after { display: none; }
}
@media print {
  body::after, .hero__shutter, .site-head { display: none; }
}
