/* iRPMovies — site stylesheet
   Cinematic studio presentation: black ground, full-bleed key art,
   condensed display type, restrained red. No external requests;
   fonts are self-hosted under the SIL Open Font License (assets/fonts). */

@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --black: #000;
  --ink: #0b0b0c;
  --charcoal: #141416;
  --charcoal-2: #1d1d20;
  --rule: #2a2a2d;
  --white: #f5f3ef;
  --text: #cfccc6;
  --muted: #9c9993;      /* 7.0:1 on black */
  --red: #b3141c;        /* fills and rules; white text on it 6.6:1 */
  --red-text: #e8434b;   /* red as text; 5.6:1 on black */
  --display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section: clamp(4.5rem, 10vw, 8.5rem);
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--black); color: var(--text);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; text-decoration-color: var(--red-text); }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  color: var(--white); line-height: 1.02; letter-spacing: 0.005em; margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.75rem); }
h2 { font-size: clamp(2.25rem, 5vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); font-weight: 500; letter-spacing: 0.02em; line-height: 1.15; }
p { margin: 0 0 1.1em; max-width: 64ch; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 100; background: var(--white); color: var(--black); padding: 0.6rem 1rem; font-weight: 600; }
.skip-link:focus { top: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 500 0.8rem/1.3 var(--display); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red-text); margin: 0 0 1.1rem; display: block;
}
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.94); border-bottom: 1px solid #1c1c1e; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 0 1.5rem; flex-wrap: wrap; }
.wordmark { font: 600 1.6rem/1 var(--display); color: var(--white); text-decoration: none; letter-spacing: 0.01em; }
.wordmark span { color: var(--red-text); }
.wordmark:hover { color: var(--white); }

.nav-toggle {
  display: none; background: transparent; color: var(--white); border: 1px solid #3a3a3d; border-radius: 0;
  font: 500 0.85rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.75rem 1rem; cursor: pointer; min-height: 44px;
}
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }
.site-nav a {
  display: inline-block; padding: 0.7rem 0; text-decoration: none; color: var(--text);
  font: 500 0.95rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--red); }

/* The menu only collapses once the script runs, so it works without JavaScript. */
@media (max-width: 1100px) {
  .nav-ready .nav-toggle { display: inline-flex; align-items: center; }
  .nav-ready .site-nav { display: none; width: 100%; padding: 0.25rem 0 1.5rem; }
  .nav-ready .site-nav.is-open { display: block; }
  .nav-ready .site-nav ul { flex-direction: column; }
  .nav-ready .site-nav li { border-top: 1px solid var(--rule); }
  .nav-ready .site-nav a { display: block; padding: 1.1rem 0; font-size: 1.25rem; border-bottom: 0; }
  .nav-ready .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--red); padding-left: 1rem; }
  .site-nav ul { gap: 0 1.25rem; }
}

/* ---------- Home hero: key art first ----------
   The approved artwork is always shown whole, at its original proportions:
   no cropping, masking, filters or overlays on the image itself. */
.key-art { position: relative; margin: 0; background: var(--black); border-bottom: 1px solid #1c1c1e; }
.key-art-frame {
  position: relative; margin: 0 auto; container-type: inline-size;
  /* Cap the width so the full frame fits the first screen beneath the navigation. */
  width: min(100%, calc((100svh - var(--header-h)) * 1.7768));
}
.key-art-frame img { width: 100%; height: auto; }
.key-art-caption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.75rem;
  padding: 1.25rem var(--gutter) 1.5rem;
}
.key-art-caption .tag { font: 500 0.8rem/1.3 var(--display); letter-spacing: 0.22em; text-transform: uppercase; color: var(--red-text); }
.key-art-caption .genre { font: 500 0.95rem/1.3 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); white-space: nowrap; }
@media (max-width: 420px) { .key-art-caption .genre { white-space: normal; } }
/* On large frames the caption sits over the dark upper-left corner of the artwork,
   clear of the character and the title treatment. */
@container (min-width: 1150px) {
  .key-art-caption {
    position: absolute; top: 2.25rem; left: 2.5rem; padding: 0;
    flex-direction: column; align-items: flex-start; gap: 0.55rem;
  }
  .key-art-caption .genre { font-size: 0.85rem; letter-spacing: 0.1em; }
  .key-art-caption .text-link { margin-top: 0.6rem; font-size: 0.85rem; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.85rem 1.75rem;
  background: var(--red); color: #fff; border: 1px solid var(--red); border-radius: 0;
  font: 500 0.95rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; cursor: pointer;
}
.button:hover { background: #c81b24; border-color: #c81b24; color: #fff; }
.button--outline { background: transparent; border-color: rgba(245,243,239,0.55); color: var(--white); }
.button--outline:hover { background: var(--white); border-color: var(--white); color: var(--black); }
.button[disabled], .button[aria-disabled="true"] { background: var(--charcoal-2); border-color: var(--charcoal-2); color: var(--muted); cursor: not-allowed; }
.text-link {
  font: 500 0.95rem/1 var(--display); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); text-decoration: none; display: inline-flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0;
  border-bottom: 1px solid var(--red);
}
.text-link:hover { color: var(--red-text); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; border-bottom: 1px solid var(--rule); }
.section--ink { background: var(--ink); }
.section-head { max-width: 900px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* Featured film */
.film-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
@media (max-width: 880px) { .film-intro { grid-template-columns: 1fr; } }
.film-intro .facts { margin-top: 0; }
.art-figure { margin: 0 0 clamp(3rem, 6vw, 4.5rem); }
.art-figure img { width: 100%; height: auto; }
.subhead { font-size: 1rem; letter-spacing: 0.2em; color: var(--muted); margin-bottom: 0.9rem; }
.film-title { font-size: clamp(2.9rem, 6.5vw, 5.5rem); line-height: 0.95; margin-bottom: 0.35em; }
.film-title .alt { display: block; color: var(--red-text); }
.genre-line { font: 500 clamp(0.85rem, 3.4vw, 1.05rem)/1.4 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--white); margin: 0 0 2rem; white-space: nowrap; }
@media (max-width: 340px) { .genre-line { white-space: normal; } }

.facts { margin: 0 0 2rem; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--rule); max-width: 40rem; }
.facts dt, .facts dd { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font: 500 0.8rem/1.6 var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); padding-right: 2.5rem; }
.facts dd { color: var(--white); }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
  .facts dd { padding-top: 0.2rem; }
}

.portfolio-note { margin-top: clamp(3.5rem, 7vw, 5.5rem); padding-top: 2rem; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 14rem 1fr; gap: 1rem 3rem; }
.portfolio-note p { margin: 0; color: var(--white); font-size: 1.15rem; max-width: 52ch; }
@media (max-width: 700px) { .portfolio-note { grid-template-columns: 1fr; } }

/* Interactive Role-Playing Movies statement */
.statement { font-family: var(--display); font-weight: 600; text-transform: uppercase; color: var(--white); font-size: clamp(2.6rem, 7.5vw, 6.25rem); line-height: 0.98; margin: 0 0 clamp(2rem, 4vw, 3rem); max-width: 16ch; }
.statement em { font-style: normal; color: var(--red-text); }

.sequence { list-style: none; margin: clamp(2.5rem, 5vw, 4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); counter-reset: seq; }
.sequence li { counter-increment: seq; padding: 1.75rem 2rem 0 0; }
.sequence li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
.sequence li::before { content: counter(seq, decimal-leading-zero); display: block; font: 500 0.85rem/1 var(--display); letter-spacing: 0.2em; color: var(--red-text); margin-bottom: 1rem; }
.sequence p { margin: 0; font-size: 1rem; }
@media (max-width: 880px) {
  .sequence { grid-template-columns: 1fr; }
  .sequence li, .sequence li + li { padding: 1.5rem 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* Audience columns */
.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 2.25rem; }
.columns > * { border-top: 1px solid var(--rule); padding: 1.75rem 0 1.5rem; }
.columns p { margin: 0; font-size: 1rem; }
@media (max-width: 1000px) { .columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .columns { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.split h2 { margin: 0; }
.split p { margin: 0; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.disclosure { margin: 2.75rem 0 0; font-size: 0.85rem; color: var(--muted); max-width: 90ch; padding-left: 1rem; border-left: 2px solid var(--red); }

/* Contact band */
.contact-band { padding: clamp(4.5rem, 9vw, 7.5rem) 0; background: var(--ink); border-bottom: 1px solid var(--rule); }
.contact-band .wrap { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.contact-band h2 { margin: 0 0 0.5rem; }
.contact-band p { margin: 0; color: var(--muted); }

/* ---------- Interior pages ---------- */
.page-hero { padding: clamp(4rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 4.5rem); border-bottom: 1px solid var(--rule); }
.page-hero h1 { max-width: 14ch; }
.page-hero .lede { margin: 0; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--rule); max-width: 900px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1rem; padding: 1.9rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(step, decimal-leading-zero); font: 500 1rem/1.5 var(--display); letter-spacing: 0.18em; color: var(--red-text); }
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; }

.plain-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); max-width: 900px; }
.plain-list li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.plain-list li::before { content: ""; position: absolute; left: 0; top: 1.75rem; width: 0.7rem; height: 2px; background: var(--red); }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 2.5em; }
.prose h2:first-child { margin-top: 0; }

/* Placeholders — every one must be resolved before launch */
.placeholder { display: inline; padding: 0.05em 0.4em; border: 1px dashed var(--red-text); color: var(--red-text); font: 400 0.85em/1.4 var(--sans); letter-spacing: 0; text-transform: none; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.4rem; max-width: 780px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font: 500 0.85rem/1.3 var(--display); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.55rem; }
.field .req { color: var(--red-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 0.8rem 0.95rem; background: var(--charcoal); color: var(--white);
  border: 1px solid #38383b; border-radius: 0; font: 400 1rem/1.5 var(--sans);
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%; background-size: 0.35rem 0.35rem; background-repeat: no-repeat; padding-right: 2.75rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--white); outline-offset: 1px; border-color: var(--white); }
.field [aria-invalid="true"] { border-color: var(--red-text); }
.field-hint { font-size: 0.85rem; color: var(--muted); margin: 0.45rem 0 0; }
.field-error { font-size: 0.85rem; color: var(--red-text); margin: 0.45rem 0 0; }
.form-status { font-size: 0.95rem; padding: 1rem 1.1rem; border-left: 2px solid var(--red); background: var(--charcoal); margin: 0; }
.form-status:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside h2 { font-size: 1.4rem; font-weight: 500; letter-spacing: 0.06em; }
.contact-aside address { font-style: normal; margin-bottom: 2rem; line-height: 1.8; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); padding: 4rem 0 2.5rem; font-size: 0.875rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 2.5rem; padding-bottom: 2.75rem; border-bottom: 1px solid var(--rule); }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .wordmark { font-size: 1.9rem; display: inline-block; margin-bottom: 0.85rem; }
.footer-brand p { margin: 0; max-width: 36ch; }
.site-footer h2 { font: 500 0.8rem/1.3 var(--display); letter-spacing: 0.2em; color: var(--muted); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal { padding-top: 1.75rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.8rem; }
.footer-legal p { margin: 0; max-width: none; }

@media print {
  .site-header, .nav-toggle, .contact-band, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, .statement, .facts dd { color: #000; }
}

/* Spacing utilities (used instead of inline styles, which the CSP blocks) */
.mt-sm { margin-top: 1.5rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 2.5rem; }

.form-done { border-left: 2px solid var(--red); background: var(--charcoal); padding: 1.75rem; max-width: 780px; }
.form-done[hidden] { display: none; }
.form-done h2 { font-size: 1.8rem; margin-bottom: 0.4rem; }
.form-done p { margin: 0; }
.form-status.is-pending { color: var(--muted); }
.form[hidden] { display: none; }
.section--compact { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.portfolio-note--flush { margin-top: 0; padding-top: 0; border-top: 0; }
