/* Layout: dark single-column reel. Big serif masthead overlapping the hero frame,
   then film rows: meta column left, wide 16:9 frame right. */
:root {
  --bg: #121211;
  --bg-raise: #1b1b19;
  --fg: #e8e5df;
  --fg-dim: #8f8c85;
  --line: #2c2b28;
  --overlay: rgba(10, 10, 9, 0.92);

  --f-display: "Lavishly Yours", "Snell Roundhand", "Brush Script MT", cursive;
  --f-body: "Jost", "Futura", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.5;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--fg); color: var(--bg); padding: 8px 12px; }

/* Hero: full-screen looping video with the name set over it, bottom left */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 460px;
  overflow: hidden;
  background: var(--bg-raise);
}
.hero__frame { position: absolute; inset: 0; display: block; }
.hero__frame:hover { text-decoration: none; }
.hero__frame video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) brightness(0.78);
}
/* Caption starts at the top centre and is slid down by site.js */
.hero__caption {
  position: absolute; z-index: 2;
  top: 0; left: 0; right: 0;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding-inline: 16px;
  color: #fff;
  text-align: center;
  pointer-events: none;
  transform: translateY(clamp(24px, 5vw, 60px));
  will-change: transform;
}
.hero__title {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: clamp(22px, 6.6vw, 60px);
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
}
.hero__cue { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Play labels follow the cursor on hover (positioned by JS); centred otherwise */
.play-label {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
}

/* Intro */
.intro { padding-block: clamp(80px, 12vw, 160px) clamp(64px, 10vw, 140px); }
.intro__lead {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 88px);
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.intro__row {
  display: flex; flex-wrap: wrap; gap: 20px 48px; align-items: flex-start;
  margin-top: 48px;
  font-size: 13px; line-height: 1.35;
}
.intro__row p { margin: 0; max-width: 24ch; }
.pill {
  display: inline-block;
  border: 1px solid var(--fg);
  border-radius: 999px;
  padding: 5px 22px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
}
.pill:hover { background: var(--fg); color: var(--bg); text-decoration: none; }

/* Films */
.section-label {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--fg-dim);
}
.films { display: grid; gap: clamp(72px, 10vw, 150px); padding-bottom: clamp(80px, 12vw, 160px); }
.film {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.film__meta { display: grid; gap: 22px; min-width: 0; }
.film__kind {
  display: flex; justify-content: space-between; align-items: center;
  margin: 0; font-size: 12px; color: var(--fg-dim);
}
.star { color: var(--fg); }
.film__title {
  margin: 0;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.film__title span { display: block; margin-top: 6px; color: var(--fg-dim); font-weight: 400; font-size: 0.62em; letter-spacing: 0.06em; }
.film__desc { margin: 0; font-size: 14px; color: var(--fg-dim); max-width: 38ch; }
.film__time { margin: 0; font-size: 13px; font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.04em; }

.film__frame {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--ratio, 1.778);
  overflow: hidden;
  background: var(--bg-raise);
}
.film__frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.6s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.film__frame:hover img, .film__frame:focus-visible img { filter: grayscale(0); transform: scale(1.03); }

/* Alternate rows for rhythm on wide screens */
@media (min-width: 900px) {
  .film:nth-child(odd of .film) { grid-template-columns: minmax(0, 2.6fr) minmax(0, 1fr); }
  .film:nth-child(odd of .film) .film__meta { order: 2; }
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 40px clamp(24px, 6vw, 96px);
  padding-block: clamp(80px, 10vw, 140px);
  border-top: 1px solid var(--line);
}
.about__title {
  margin: 0;
  font-family: "Lavishly Yours", var(--f-display); font-weight: 400;
  font-size: clamp(76px, 11vw, 160px); line-height: 0.9;
}
.about__body { max-width: 62ch; font-size: 17px; line-height: 1.6; }
.about__body p { margin: 0 0 1.1em; }
.about__body p:first-child { font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.about__lists {
  grid-column: 2;
  display: flex; flex-wrap: wrap; gap: 32px 64px; margin: 8px 0 0;
  font-size: 14px;
}
.about__lists dt { margin-bottom: 10px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--fg-dim); }
.about__lists dd { margin: 0 0 4px; }

/* Footer */
.foot { padding-block: clamp(80px, 10vw, 140px) 32px; border-top: 1px solid var(--line); }
.foot__title {
  margin: 0 0 48px;
  font-family: "Lavishly Yours", var(--f-display); font-weight: 400;
  font-size: clamp(64px, 11vw, 170px); line-height: 1;
}
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 48px; font-size: 15px; }
.foot__row p { margin: 0; }
.foot__small { margin: 72px 0 0; font-size: 12px; color: var(--fg-dim); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: var(--overlay); animation: fade 0.25s ease; }
.modal__inner {
  position: relative;
  width: min(92vw, calc((100vh - 140px) * var(--ratio, 1.778)), 1400px);
  animation: rise 0.35s cubic-bezier(.2,.7,.2,1);
}
.modal__bar {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  margin-bottom: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
}
.modal__title { margin: 0; }
.modal__video { position: relative; aspect-ratio: var(--ratio, 1.778); background: #000; overflow: hidden; }
.modal__sound { margin-left: auto; }
.modal__video iframe, .modal__video > div { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
body.is-locked { overflow: hidden; }

/* Small screens */
@media (max-width: 899px) {
  .film { grid-template-columns: minmax(0, 1fr); }
  .film__frame { order: -1; }
  .film__meta { gap: 14px; }
  .about { grid-template-columns: minmax(0, 1fr); }
  .about__lists { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

