/* ============================================================
   PICTORIAL PICTURES — shared stylesheet
   Palette and type are derived from the wordmark:
   ink serif, gallery white, one vermilion dot used as punctuation.
   ============================================================ */

:root {
  --paper: #FDFCFA;
  --ink: #17140F;
  --stone: #7A746B;
  --red: #C7492B;
  --hairline: rgba(23, 20, 15, 0.16);
  --card-bg: #1D1913;
  --card-ink: #EFEBE3;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--red); color: #fff; }

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- Wordmark ---------- */

.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark .paren {
  font-weight: 400;
  letter-spacing: 0;
  position: relative;
  top: -0.02em;
}
.wordmark .dot { color: var(--red); letter-spacing: 0; }

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); }

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.site-header .wordmark { font-size: 17px; }

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-nav a {
  text-decoration: none;
  color: var(--stone);
  padding: 4px 0;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
}

@media (max-width: 560px) {
  .site-header .bar { flex-direction: column; gap: 10px; padding-bottom: 14px; }
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}
.eyebrow .dot { color: var(--red); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; }

.display {
  font-size: clamp(44px, 7.5vw, 96px);
  letter-spacing: -0.01em;
}
.display em, .lede em { font-style: italic; font-weight: 500; }
.display .dot, h2 .dot { color: var(--red); }

.lede {
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 30px);
  line-height: 1.4;
  font-weight: 500;
  max-width: 34ch;
}

.body-copy { max-width: 62ch; color: #33302A; }
.body-copy p + p { margin-top: 1.1em; }

.small { font-size: 14px; color: var(--stone); }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--hairline); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: clamp(36px, 6vw, 72px);
}

.section.is-dark {
  background: var(--ink);
  color: var(--card-ink);
  border-top: 0;
}
.section.is-dark .eyebrow { color: rgba(239, 235, 227, 0.55); }
.section.is-dark .body-copy { color: rgba(239, 235, 227, 0.82); }

/* ---------- Hero ---------- */

.hero {
  padding: clamp(72px, 12vh, 140px) 0 clamp(64px, 9vw, 120px);
  text-align: center;
}

.hero-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3.5vw, 44px);
  user-select: none;
}
.hero-mark .paren {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(120px, 22vw, 300px);
  line-height: 0.9;
  transform: scaleX(0.72);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 6.4vw, 88px);
  letter-spacing: 0.32em;
  text-indent: 0.32em; /* optically recenter tracked caps */
  text-transform: uppercase;
  line-height: 1;
}
.hero-title .dot { color: var(--red); }

.hero .tagline {
  margin: clamp(28px, 5vw, 48px) auto 0;
  max-width: 44ch;
  font-family: var(--serif);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
  font-weight: 500;
}
.hero .sub {
  margin: 18px auto 0;
  max-width: 52ch;
}

/* Load-in: parens open, then the name settles between them */
@media (prefers-reduced-motion: no-preference) {
  .hero-mark .paren { animation: paren-in 1s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero-mark .paren.close { animation-delay: 0.08s; }
  .hero-title { animation: title-in 0.9s 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero .tagline, .hero .sub, .hero .hero-cta { animation: title-in 0.9s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes paren-in {
  from { opacity: 0; transform: scaleX(0.72) translateY(14px); }
  to   { opacity: 1; transform: scaleX(0.72) translateY(0); }
}
@keyframes title-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero-mark { gap: 10px; }
  .hero-mark .paren { font-size: 84px; }
  .hero-title { font-size: 22px; letter-spacing: 0.22em; text-indent: 0.22em; }
}

/* ---------- Buttons ---------- */

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .hero-cta { justify-content: center; margin-top: clamp(28px, 4vw, 44px); }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border: 1px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.is-solid { background: var(--ink); color: var(--paper); }
.btn.is-solid:hover { background: var(--red); border-color: var(--red); }
.is-dark .btn { border-color: rgba(239, 235, 227, 0.6); color: var(--card-ink); }
.is-dark .btn:hover { background: var(--card-ink); color: var(--ink); }

/* ---------- Title cards (key-art placeholders) ---------- */

.title-card {
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(239, 235, 227, 0.07), transparent 60%),
    var(--card-bg);
  color: var(--card-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.title-card.wide { aspect-ratio: 2.39 / 1; }
.title-card.tall { aspect-ratio: 2 / 3; }
.title-card::after {
  /* faint film grain */
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.07;
  pointer-events: none;
}
.title-card .inner { text-align: center; padding: 24px; }
.title-card .film-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: 0.04em;
}
.title-card.tall .film-title { font-size: clamp(26px, 3vw, 38px); }
.title-card .rule {
  width: 44px;
  height: 1px;
  background: rgba(239, 235, 227, 0.45);
  margin: 16px auto;
}
.title-card .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(239, 235, 227, 0.65);
}

/* ---------- Featured film split ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }

.status-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  color: var(--stone);
}
.status-tag.is-live { border-color: var(--red); color: var(--red); }

/* ---------- Film index rows ----------
   Signature interaction: titles sit inside parentheses;
   on hover the parentheses release and the red period lands. */

.film-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px 48px;
  align-items: baseline;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 1px solid var(--hairline);
  text-decoration: none;
}
.film-row:last-of-type { border-bottom: 1px solid var(--hairline); }
@media (max-width: 760px) { .film-row { grid-template-columns: 1fr; } }

.film-row .title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.05;
  display: inline-flex;
  align-items: baseline;
}
.film-row .p-open, .film-row .p-close {
  font-weight: 300;
  opacity: 0.55;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.film-row .p-open { margin-right: 0.18em; }
.film-row .p-close { margin-left: 0.18em; }
.film-row .full-stop {
  color: var(--red);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.film-row:hover .p-open { opacity: 0; transform: translateX(-8px); }
.film-row:hover .p-close { opacity: 0; transform: translateX(8px); }
.film-row:hover .full-stop { opacity: 1; transform: translateX(0); }

.film-row .info { max-width: 46ch; }
.film-row .meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 10px;
}
.film-row .logline { color: #33302A; }

.slate-group { margin-top: clamp(48px, 7vw, 88px); }
.slate-group > .eyebrow { display: block; margin-bottom: 8px; }

/* ---------- Stats ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 760px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--paper);
  padding: 28px 24px;
}
.stat .num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  line-height: 1;
}
.stat .num .dot { color: var(--red); }
.stat .label {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Two-column editorial ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(32px, 6vw, 96px);
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split .sticky-col { align-self: start; position: sticky; top: 110px; }
@media (max-width: 860px) { .split .sticky-col { position: static; } }

/* ---------- Pull quote ---------- */

.pull-quote {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.3;
  font-weight: 500;
  max-width: 26ch;
}
.pull-quote .dot { color: var(--red); }
.attribution {
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(239, 235, 227, 0.55);
}

/* ---------- Detail page ---------- */

.meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.note-list { list-style: none; }
.note-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 32px;
}
@media (max-width: 640px) { .note-list li { grid-template-columns: 1fr; } }
.note-list .k {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--stone);
  padding-top: 4px;
}

/* ---------- Contact ---------- */

.contact-email {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(26px, 4.6vw, 56px);
  text-decoration: none;
  border-bottom: 2px solid var(--red);
  line-height: 1.3;
  word-break: break-word;
}
.contact-email:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: clamp(48px, 7vw, 88px) 0 40px;
}
.site-footer .wordmark { font-size: clamp(20px, 3vw, 30px); }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.footer-links a { text-decoration: none; color: var(--stone); }
.footer-links a:hover { color: var(--ink); }
.colophon {
  margin-top: clamp(36px, 5vw, 60px);
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(18px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
