/* =========================================================
   Mow&Rake Productions
   Layout: dark "screening room" page, condensed poster type,
   straw-gold accent; films stack on phones and sit beside
   their slate details on laptops.
   ========================================================= */

:root {
  /* Color */
  --ink:        #11130e;   /* page background, near-black with a moss bias */
  --soil:       #181b14;   /* raised surfaces */
  --bark:       #22261c;   /* cards, inputs */
  --line:       rgba(236, 230, 214, 0.12);
  --bone:       #ece6d6;   /* primary text */
  --dust:       #a3a593;   /* secondary text */
  --straw:      #d8b25c;   /* accent */
  --straw-ink:  #1a1609;   /* text on accent */

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Helvetica Neue", Impact, sans-serif;
  --font-body:    "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    "DM Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Scale */
  --step--1: 0.8125rem;
  --step-0:  1rem;
  --step-1:  1.1875rem;
  --step-2:  clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --step-3:  clamp(2.5rem, 1.6rem + 4vw, 4.25rem);
  --step-4:  clamp(4rem, 2rem + 11vw, 9.5rem);

  --radius: 6px;
  --header-h: 60px;
  --bar-h: 72px;

  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Paint the iPhone status-bar area behind the sticky header */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--ink);
  z-index: 60;
}

html.theater-open, html.theater-open body { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--straw); outline-offset: 3px; border-radius: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--straw); color: var(--straw-ink);
  padding: 8px 14px; border-radius: var(--radius); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--straw);
}

.icon { width: 18px; height: 18px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font: 600 var(--step-0)/1 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--straw); color: var(--straw-ink); }
.btn--primary:hover { background: var(--bone); }
.btn--ghost { background: transparent; color: var(--bone); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--small { min-height: 38px; padding: 0 16px; font-size: var(--step--1); background: var(--straw); color: var(--straw-ink); }
.btn--small:hover { background: var(--bone); }
.btn--block { width: 100%; }

/* ---------- Brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--bone);
}
.brand__mark { width: 30px; height: 30px; color: var(--straw); flex: none; }
.brand__word {
  font: 800 1.6rem/1 var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.brand__amp { color: var(--straw); padding: 0 1px; }
.brand__tagline {
  font-family: var(--font-mono); font-size: 0.7rem;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--dust);
  align-self: flex-end; padding-bottom: 3px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(17, 19, 14, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 16px;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  text-decoration: none; font-weight: 500; color: var(--dust);
  transition: color .2s;
}
.site-nav a:not(.btn):hover { color: var(--bone); }

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: var(--bone); cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block; width: 22px; height: 2px; background: currentColor;
    border-radius: 2px; transition: transform .25s, opacity .2s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after  { top: 7px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--soil);
    border-bottom: 1px solid var(--line);
    padding: 8px max(20px, env(safe-area-inset-right, 0px)) 20px max(20px, env(safe-area-inset-left, 0px));
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) {
    padding: 14px 0; font-size: var(--step-1); color: var(--bone);
    border-bottom: 1px solid var(--line);
  }
  .site-nav .btn { margin-top: 16px; min-height: 48px; font-size: var(--step-0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: clamp(56px, 10vw, 120px) clamp(48px, 8vw, 96px);
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  opacity: 0.38;
  filter: grayscale(0.5) contrast(1.05);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--ink) 0%, rgba(17,19,14,.82) 45%, rgba(17,19,14,.35) 100%),
    linear-gradient(0deg, var(--ink) 0%, rgba(17,19,14,0) 40%);
}
.hero__inner { display: grid; gap: 22px; }
.hero__title {
  font-family: var(--font-display);
  text-transform: uppercase;
  line-height: 0.86;
  display: grid;
}
.hero__line { font-size: var(--step-4); font-weight: 900; letter-spacing: -0.005em; }
.hero__amp { color: var(--straw); }
.hero__sub {
  font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(0.85rem, 0.7rem + 0.8vw, 1.25rem);
  letter-spacing: 0.5em; color: var(--dust);
  margin-top: 14px;
}
.hero__lede { max-width: 34ch; font-size: var(--step-1); color: var(--bone); }

.hero__now { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }
.tag {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--straw); color: var(--straw);
  padding: 4px 8px; border-radius: 3px;
}
.hero__now-title { font: 700 var(--step-2)/1 var(--font-display); text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 112px); }
.section--alt { background: var(--soil); border-block: 1px solid var(--line); }
.section__head { display: grid; gap: 12px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 60ch; }
.section__title {
  font: 800 var(--step-3)/0.95 var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
}
.section__intro { color: var(--dust); }

/* ---------- Films ---------- */
.film-list { display: grid; gap: clamp(56px, 8vw, 96px); }

.film {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .film { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 40px; align-items: start; }
}

.film__info { display: grid; gap: 18px; min-width: 0; }
.film__title { font: 800 var(--step-2)/1 var(--font-display); text-transform: uppercase; text-wrap: balance; }
.film__logline { color: var(--dust); max-width: 52ch; }
.film__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 480px) { .film__actions .btn { flex: 1 1 auto; } }

/* Clapperboard-style slate */
.slate {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.slate > div { padding: 10px 14px; border-top: 1px solid var(--line); min-width: 0; }
.slate > div:nth-child(-n+2) { border-top: 0; }
.slate > div:nth-child(odd) { border-right: 1px solid var(--line); }
.slate dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dust); }
.slate dd { margin: 2px 0 0; font-size: 0.92rem; color: var(--bone); }

/* ---------- Player (inline) ---------- */
.player { min-width: 0; }
.player__bar { display: none; }
.player__stage { width: 100%; }
.player__frame {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}
.player__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.player__poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: #000; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.player__poster img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s, transform .6s; opacity: 0.88; }
.player__poster:hover img { opacity: 1; transform: scale(1.02); }
.player__play {
  position: absolute; left: 50%; top: 50%;
  width: 76px; height: 76px; margin: -38px 0 0 -38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--straw); color: var(--straw-ink);
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  transition: transform .2s;
}
.player__play svg { width: 32px; height: 32px; margin-left: 4px; }
.player__poster:hover .player__play { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) {
  .player__poster img, .player__play { transition: none; }
  .player__poster:hover img, .player__poster:hover .player__play { transform: none; }
}

/* ---------- Theater Mode ----------
   The same player element is pinned over the whole screen, so the
   iframe is never moved or reloaded and playback continues. */
.player.is-theater {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column;
  background: #050604;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: theater-in .3s ease-out;
}
@keyframes theater-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .player.is-theater { animation: none; } }

.player.is-theater .player__bar {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex: none;
  min-height: var(--bar-h);
  padding: 10px max(64px, calc(env(safe-area-inset-right, 0px) + 56px)) 10px max(64px, calc(env(safe-area-inset-left, 0px) + 56px));
  border-bottom: 1px solid var(--line);
}
.brand--theater .brand__mark { width: 40px; height: 40px; }
.brand--theater .brand__word { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.player__now {
  position: absolute; left: max(20px, env(safe-area-inset-left, 0px)); bottom: -26px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dust);
}
.player__close {
  position: absolute; top: 50%; right: max(12px, env(safe-area-inset-right, 0px));
  transform: translateY(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; color: var(--bone);
  border: 1px solid var(--line); border-radius: 50%; cursor: pointer;
}
.player__close:hover { border-color: var(--bone); }
.player__close svg { width: 20px; height: 20px; }

.player.is-theater .player__stage {
  flex: 1 1 auto; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  padding-top: 32px;
}
.player.is-theater .player__frame {
  /* Full width, unless the screen is too short; then as wide as 16:9 allows */
  width: min(100%, calc((100dvh - var(--bar-h) - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * 16 / 9));
  border-radius: 0;
  box-shadow: none;
}

/* Phone held sideways: slimmer logo bar so the video gets the height */
@media (orientation: landscape) and (max-height: 500px) {
  :root { --bar-h: 48px; }
  .brand--theater .brand__mark { width: 26px; height: 26px; }
  .brand--theater .brand__word { font-size: 1.5rem; }
  .player.is-theater .player__stage { padding-top: 0; }
  .player.is-theater .player__frame { width: min(100%, calc((100dvh - var(--bar-h) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)) * 16 / 9)); }
  .player__now { display: none; }
}
@media (max-width: 420px) {
  .brand--theater .brand__tagline { display: none; }
}

/* ---------- Teaser ---------- */
.teaser { border-bottom: 1px solid var(--line); }
.teaser__grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .teaser__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; } }
.teaser__copy { display: grid; gap: 18px; min-width: 0; }
.teaser__logline { color: var(--dust); max-width: 48ch; }
.teaser__eta { font-family: var(--font-mono); font-size: 0.9rem; color: var(--dust); }
.teaser__eta strong { color: var(--bone); font-weight: 500; }

.teaser__placeholder {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 12px;
  background:
    repeating-linear-gradient(135deg, rgba(216,178,92,.05) 0 14px, transparent 14px 28px),
    var(--bark);
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dust);
}
.teaser__mark { width: 56px; height: 56px; color: var(--straw); opacity: 0.8; }

/* Production status tracker: a real sequence, so it's numbered */
.stages {
  list-style: none; margin: 4px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px;
  counter-reset: stage;
}
.stages li {
  counter-increment: stage;
  display: grid; gap: 8px; align-content: start;
  font-family: var(--font-mono); font-size: 0.66rem; line-height: 1.3;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--dust);
}
.stages li::before {
  content: counter(stage, decimal-leading-zero);
  display: block; padding-top: 8px;
  border-top: 3px solid var(--line);
  font-size: 0.75rem; color: var(--dust);
}
.stages li.is-done::before { border-top-color: var(--straw); color: var(--straw); }
.stages li.is-current { color: var(--bone); }
.stages li.is-current::before { border-top-color: var(--straw); color: var(--straw); }
@media (max-width: 480px) { .stages li { font-size: 0.6rem; letter-spacing: 0.02em; } }

/* ---------- About ---------- */
.about { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .about { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: end; gap: 64px; } }
.about__copy { display: grid; gap: 18px; max-width: 62ch; }
.about__copy p:not(.eyebrow) { color: var(--dust); }
.about__copy p:not(.eyebrow):first-of-type { color: var(--bone); font-size: var(--step-1); }

.stats { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.stats > div { padding: 16px 12px 0 0; min-width: 0; }
.stats dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dust); }
.stats dd { margin: 6px 0 0; font: 800 clamp(1.6rem, 1.2rem + 2vw, 2.4rem)/1 var(--font-display); text-transform: uppercase; font-variant-numeric: tabular-nums; }

.crew { margin-top: clamp(48px, 7vw, 72px); }
.crew__title { font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dust); margin-bottom: 18px; }
.crew__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.crew__item { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--bark); border-radius: var(--radius); min-width: 0; }
.crew__initials {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--straw); color: var(--straw);
  font: 800 1.2rem/1 var(--font-display);
}
.crew__name { font-weight: 600; }
.crew__role { font-size: var(--step--1); color: var(--dust); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; } }
.contact__copy { display: grid; gap: 18px; min-width: 0; }
.contact__copy > p:not(.eyebrow) { color: var(--dust); max-width: 52ch; }
.ask-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.ask-list li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--dust); }
.ask-list strong { color: var(--bone); font-weight: 600; }
.contact__direct { display: grid; gap: 8px; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.email { font-family: var(--font-mono); color: var(--bone); user-select: all; word-break: break-all; }
.copy-btn {
  font: 500 0.75rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 10px; border-radius: 4px;
  background: transparent; color: var(--straw); border: 1px solid var(--straw); cursor: pointer;
}

.contact-form {
  display: grid; gap: 16px; min-width: 0;
  background: var(--soil); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
}
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); font-weight: 600; color: var(--dust); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font-body); /* 16px stops iOS from zooming on focus */
  color: var(--bone); background: var(--bark);
  border: 1px solid var(--line); border-radius: 4px;
  padding: 12px 14px; min-height: 48px;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--dust) 50%), linear-gradient(135deg, var(--dust) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat;
  padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--straw); box-shadow: 0 0 0 3px rgba(216,178,92,.2); }
.field.has-error input, .field.has-error textarea { border-color: #e07a5f; }
.form-status { font-size: var(--step--1); color: var(--dust); min-height: 1.4em; }
.form-status.is-error { color: #e9967f; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--dust); }
.footer-links a:hover { color: var(--bone); }
.site-footer__legal { width: 100%; font-size: var(--step--1); color: var(--dust); }
