:root {
  --ink: #17120c;         /* warm cinema black */
  --ink-2: #201a12;       /* warm panel */
  --paper: #f4eee1;       /* warm bone */
  --paper-2: #ebe3d2;
  --ember: #e0632a;       /* tungsten/golden accent from the imagery */
  --ember-soft: #f0a35f;
  --muted-d: #9c8f7c;     /* warm gray on dark */
  --muted-l: #6b6153;     /* warm gray on light */
  --line-d: rgba(244, 238, 225, 0.14);
  --line-l: rgba(23, 18, 12, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.wrap.narrow { max-width: 760px; }

/* Type roles */
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--ember-soft); }

.kicker, .tag, .filmstrip, .fno, .sl-no, .st, .book-link, .foot-meta, .foot-copy {
  font-family: "Space Mono", ui-monospace, monospace;
}
.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ember);
  margin: 0 0 20px;
}
.kicker.light { color: var(--muted-l); }

/* Topbar */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.topbar.scrolled {
  background: rgba(23, 18, 12, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
}
.bar { display: flex; align-items: center; gap: 28px; height: 74px; }
.brand {
  font-family: "Fraunces", serif; font-weight: 600; font-size: 1.32rem;
  letter-spacing: -0.02em; color: var(--paper); text-decoration: none;
}
.menu { display: flex; gap: 26px; margin-left: auto; }
.menu a { color: var(--muted-d); text-decoration: none; font-size: 0.92rem; font-weight: 500; transition: color .15s; }
.menu a:hover { color: var(--paper); }
.book-link {
  font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--paper); text-decoration: none;
  border: 1px solid var(--line-d); padding: 9px 15px; border-radius: 2px;
  transition: background .2s, border-color .2s;
}
.book-link:hover { background: var(--ember); border-color: var(--ember); color: #1a1206; }

/* Buttons */
.btn {
  display: inline-block; font-family: "Inter", sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 15px 30px; border-radius: 2px; text-decoration: none; cursor: pointer; border: none;
  background: var(--ember); color: #1a1206;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { background: var(--ember-soft); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-line { background: transparent; color: var(--paper); border: 1px solid var(--line-d); }
.btn-line:hover { background: rgba(244,238,225,0.08); color: var(--paper); }

/* HERO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,18,12,0.55) 0%, rgba(23,18,12,0) 30%),
    linear-gradient(0deg, rgba(23,18,12,0.94) 6%, rgba(23,18,12,0.30) 46%, rgba(23,18,12,0.05) 70%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: 92px; padding-top: 120px; }
.tag {
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ember-soft);
  margin: 0 0 18px;
}
.hero h1 { font-size: clamp(3rem, 9vw, 7rem); font-weight: 600; letter-spacing: -0.025em; }
.hero-sub { max-width: 540px; color: rgba(244,238,225,0.86); font-size: 1.14rem; margin: 22px 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Film-strip metadata bar */
.filmstrip {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 22px;
  padding: 11px 28px;
  background: rgba(23,18,12,0.6);
  border-top: 1px solid var(--line-d);
  backdrop-filter: blur(6px);
  font-size: 0.7rem; letter-spacing: 0.14em; color: var(--muted-d);
}
.rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ember); }
.rec i { width: 9px; height: 9px; border-radius: 50%; background: var(--ember); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 0%,55% { opacity: 1; } 56%,100% { opacity: 0.15; } }
.tc { color: var(--paper); }
.filmstrip .meta { margin-left: auto; }

/* REEL */
.reel { padding: 118px 0 128px; background: var(--ink); }
.head { max-width: 720px; margin-bottom: 46px; }
.head h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; gap: 14px;
  grid-auto-flow: dense;
}
.frame {
  position: relative; margin: 0; overflow: hidden; border-radius: 3px;
  background: var(--ink-2); border: 1px solid var(--line-d);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s; filter: saturate(1.02); }
.frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(23,18,12,0.78) 0%, rgba(23,18,12,0) 46%);
}
.frame figcaption {
  position: absolute; z-index: 2; left: 16px; bottom: 14px; right: 16px;
  font-family: "Fraunces", serif; font-weight: 500; font-size: 1.18rem; color: var(--paper);
  display: flex; align-items: baseline; gap: 10px;
}
.frame .fno {
  font-family: "Space Mono", monospace; font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--ember-soft); border: 1px solid var(--line-d); padding: 2px 6px; border-radius: 2px;
}
.frame:hover img { transform: scale(1.06); }
.f-wide { grid-column: span 2; }
.f-tall { grid-row: span 2; }

/* CRAFT / shot list */
.craft { padding: 118px 0; background: var(--ink-2); border-top: 1px solid var(--line-d); border-bottom: 1px solid var(--line-d); }
.shotlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.shotlist li {
  padding: 34px 34px 34px 0; border-top: 1px solid var(--line-d);
  display: grid; grid-template-columns: auto 1fr; column-gap: 22px; align-items: start;
}
.shotlist li:nth-child(odd) { padding-right: 44px; }
.shotlist li:nth-child(even) { padding-left: 44px; border-left: 1px solid var(--line-d); }
.sl-no { color: var(--ember); font-size: 0.8rem; letter-spacing: 0.1em; padding-top: 8px; }
.shotlist h3 { font-size: 1.5rem; margin-bottom: 8px; }
.shotlist p { color: var(--muted-d); margin: 0; grid-column: 2; }
.shotlist h3 { grid-column: 2; }

/* PROCESS (light band) */
.process { padding: 120px 0; background: var(--paper); color: var(--ink); }
.process .head h2 { color: var(--ink); }
.process .steps { list-style: none; margin: 0; padding: 0; }
.process .steps li {
  display: grid; grid-template-columns: 168px 1fr; gap: 26px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid var(--line-l);
}
.process .steps li:last-child { border-bottom: 1px solid var(--line-l); }
.st { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); padding-top: 6px; }
.process h3 { font-size: 1.7rem; color: var(--ink); margin-bottom: 6px; }
.process .steps p { color: var(--muted-l); margin: 0; max-width: 46ch; }

/* BOOK / contact */
.book { position: relative; padding: 130px 0; overflow: hidden; }
.book-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.book-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,18,12,0.9), rgba(23,18,12,0.82)); }
.book-inner { position: relative; z-index: 2; }
.book-sub { color: rgba(244,238,225,0.84); font-size: 1.08rem; margin: 8px 0 0; max-width: 52ch; }
.book-sub a { color: var(--ember-soft); }

#contact-form { display: grid; gap: 18px; margin-top: 40px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-family: "Space Mono", monospace; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-d); }
.field input, .field textarea {
  font-family: "Inter", sans-serif; font-size: 1rem; color: var(--paper);
  background: rgba(244,238,225,0.05); border: 1px solid var(--line-d); border-radius: 2px;
  padding: 13px 15px; width: 100%; resize: vertical;
}
.field input::placeholder { color: #7a6f5e; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ember); background: rgba(244,238,225,0.08); }
#contact-form .btn { justify-self: start; margin-top: 4px; }
.form-status { font-family: "Space Mono", monospace; font-size: 0.82rem; letter-spacing: 0.04em; margin: 0; min-height: 1.2em; }
.form-status.success { color: var(--ember-soft); }
.form-status.error { color: #ff8f6b; }

/* Footer */
.foot { background: var(--ink); border-top: 1px solid var(--line-d); padding: 40px 0 26px; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; }
.foot .brand { font-size: 1.15rem; }
.foot-meta { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted-d); }
.foot-inner a { margin-left: auto; color: var(--ember-soft); text-decoration: none; font-family: "Space Mono", monospace; font-size: 0.8rem; }
.foot-inner a:hover { text-decoration: underline; }
.foot-copy { font-size: 0.68rem; letter-spacing: 0.1em; color: var(--muted-l); margin-top: 22px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .f-wide { grid-column: span 2; }
  .f-tall { grid-row: span 1; }
  .shotlist { grid-template-columns: 1fr; }
  .shotlist li:nth-child(even) { padding-left: 0; border-left: none; }
  .shotlist li:nth-child(odd) { padding-right: 0; }
}
@media (max-width: 620px) {
  .menu { display: none; }
  .grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .f-wide { grid-column: span 1; }
  .row { grid-template-columns: 1fr; }
  .process .steps li { grid-template-columns: 1fr; gap: 6px; }
  .filmstrip .meta { display: none; }
  .hero-content { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .rec i { animation: none; }
  .frame img { transition: none; }
}
