/* Jesse Dacri — lightbox */
:root {
  --paper: #F5F5F2;
  --ink: #151515;
  --mute: #74746C;
  --rule: #DAD9D2;
  --base: #101726;      /* film base blue-black */
  --cream: #EFE9DA;
  --leader: #E4B32E;    /* leader yellow from the title card */
  --bg: var(--paper);
  --fg: var(--ink);
  --fg-2: var(--mute);
  --line: var(--rule);
  --gutter: clamp(20px, 4vw, 56px);
  --max: 1280px;
  --t: 700ms cubic-bezier(.4,0,.2,1);
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  color-scheme: light;
  --grain: .28;
}
:root.lights-off {
  --grain: .4;
  --bg: var(--base);
  --fg: var(--cream);
  --fg-2: #9AA0AE;
  --line: #27304A;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-size: 17px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  transition: background-color var(--t), color var(--t);
}
@media (prefers-reduced-motion: reduce) {
  body, .film-frame, .lights, .film-start, .still img { transition: none !important; }
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--leader); outline-offset: 3px; border-radius: 2px; }
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { font-weight: 500; margin: 0; letter-spacing: -0.012em; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 22px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mute { color: var(--fg-2); }
.small { font-size: 14px; }

#grain { mix-blend-mode: multiply; transition: opacity var(--t); }
:root.lights-off #grain { mix-blend-mode: screen; }

/* header */
.top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 26px 0 0;
}
.name {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 125;
}
.name small { display: block; font-weight: 400; font-size: 14px; color: var(--fg-2); font-variation-settings: "wdth" 100; margin-top: 2px; }
.nav { display: flex; gap: clamp(16px, 2.5vw, 34px); font-size: 15px; }
.nav a[aria-current] { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.nav .book { color: var(--ink); background: var(--leader); padding: 4px 11px 5px; border-radius: 999px; }
.nav .book:hover { text-decoration: none; filter: brightness(.96); }

/* film player */
.film { margin: clamp(28px, 5vw, 64px) 0 0; width: min(100%, calc(78vh * 1.32)); }
.film + .film { margin-top: clamp(40px, 6vw, 80px); }
.film-frame {
  position: relative; background: #000; overflow: hidden;
  border-radius: min(16px, 1.5vw);
  aspect-ratio: 1280 / 1000;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
}
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-start {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #fff; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500;
  font-variation-settings: "wdth" 118;
  text-shadow: 0 1px 12px rgba(0,0,0,.5);
  transition: opacity 300ms;
}
.film-start span { padding: 10px 18px 12px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; backdrop-filter: blur(6px); }
.film[data-state="playing"] .film-start { opacity: 0; }
.film[data-state="playing"] .film-frame:hover .film-start { opacity: 0; }
.film-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 14px; padding: 12px 0 0; font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.film-bar .ctl { display: flex; gap: 14px; }
.film-bar button:hover { text-decoration: underline; text-underline-offset: .18em; }
.film-track {
  position: relative; height: 22px; cursor: pointer; display: flex; align-items: center;
}
.film-track::before { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.film-fill { position: absolute; left: 0; height: 3px; width: 0; background: var(--leader); }
.film-buf { position: absolute; left: 0; height: 1px; width: 0; background: var(--fg-2); opacity: .5; }
.film-tip {
  position: absolute; bottom: 100%; transform: translateX(-50%); padding: 2px 6px;
  background: var(--fg); color: var(--bg); font-size: 12px; border-radius: 3px;
  opacity: 0; pointer-events: none; white-space: nowrap;
}
.film-track:hover .film-tip { opacity: 1; }
.film-time { display: flex; gap: 14px; color: var(--fg-2); }
.film-time b { font-weight: 500; color: var(--fg); }
figcaption { margin-top: 10px; font-size: 14px; color: var(--fg-2); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.film-frame:fullscreen video { object-fit: contain; }
@media (max-width: 640px) {
  .film-bar { grid-template-columns: 1fr auto; }
  .film-track { grid-column: 1 / -1; grid-row: 2; }
  .film-bar .ctl .hide-s { display: none; }
}

/* sections */
.sec { padding: clamp(56px, 9vw, 120px) 0 0; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: 10px 48px; align-items: end; margin-bottom: clamp(22px, 3vw, 40px); }
@media (min-width: 860px) { .sec-head { grid-template-columns: 7fr 5fr; } }
.lede { font-size: clamp(19px, 2vw, 24px); line-height: 1.4; letter-spacing: -0.008em; max-width: 30ch; }
.two { display: grid; gap: 28px 48px; }
@media (min-width: 860px) { .two { grid-template-columns: 7fr 5fr; } }
.facts { display: grid; gap: 10px 24px; grid-template-columns: max-content 1fr; font-size: 15px; align-content: start; }
.facts dt { color: var(--fg-2); }
.facts dd { margin: 0; }
.cta {
  display: inline-block; margin-top: 8px; color: var(--ink); background: var(--leader);
  padding: 10px 18px 12px; border-radius: 999px; font-weight: 500;
}
.cta:hover { text-decoration: none; filter: brightness(.96); }
.link { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* stills */
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 8px; scrollbar-width: thin; }
.strip .still { flex: 0 0 min(72vw, 420px); scroll-snap-align: start; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.still { margin: 0; background: #000; border-radius: min(10px, 1.5vw); overflow: hidden; }
.still img { width: 100%; aspect-ratio: 1280 / 1000; object-fit: cover; }

/* credits */
.credits { border-top: 1px solid var(--line); margin: 0; }
.credits .row {
  display: grid; grid-template-columns: 5ch 1fr; gap: 8px 24px;
  padding: 13px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
@media (min-width: 720px) { .credits .row { grid-template-columns: 6ch 1fr 20ch; } }
.credits .yr { color: var(--fg-2); font-variant-numeric: tabular-nums; }
.credits .role { color: var(--fg-2); font-size: 15px; }
.credits .row.lead .ttl { font-size: clamp(19px, 2vw, 24px); letter-spacing: -0.008em; }
.credits .row a.ttl:hover { text-decoration: underline; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-2); }
.faq details[open] summary::after { content: "–"; }
.faq details p { max-width: 62ch; padding-bottom: 12px; }

/* quotes */
.quotes { display: grid; gap: 28px 48px; }
@media (min-width: 860px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quotes blockquote { margin: 0; font-size: 18px; line-height: 1.45; }
.quotes cite { display: block; font-style: normal; font-size: 14px; color: var(--fg-2); margin-top: 8px; }

/* form */
.form { display: grid; gap: 18px 24px; grid-template-columns: 1fr; max-width: 720px; }
@media (min-width: 640px) { .form { grid-template-columns: 1fr 1fr; } .form .full { grid-column: 1 / -1; } }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--fg-2); }
.form input, .form textarea, .form select {
  font: inherit; color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--fg-2);
  padding: 6px 0 8px; border-radius: 0; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-bottom-color: var(--fg); }
.form textarea { min-height: 110px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form button { justify-self: start; }

/* footer */
.foot { margin-top: clamp(64px, 10vw, 140px); padding: 28px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); display: flex; flex-wrap: wrap; gap: 8px 32px; justify-content: space-between; }
.foot a { color: var(--fg); }

/* work grid */
.works { display: grid; gap: clamp(28px, 4vw, 56px) 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .works { grid-template-columns: 1fr 1fr; } .works .work:first-child { grid-column: 1 / -1; } }
.work-open { position: relative; display: block; width: 100%; background: #000; border-radius: min(16px, 1.5vw); overflow: hidden; }
.work-open img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 600ms cubic-bezier(.2,.7,.2,1); }
.work-open:hover img { transform: scale(1.015); }
.work-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: #fff; padding: 8px 16px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px; font-variation-settings: "wdth" 118; font-size: 16px; backdrop-filter: blur(6px); text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.work-film { margin: 0; width: 100%; }
.work-meta { margin-top: 12px; }
.work-meta h3 { font-size: 20px; }
.work-meta p { margin: 4px 0 0; font-size: 15px; }
.still.wide { flex-basis: min(80vw, 520px); }
.still.wide img { aspect-ratio: 16 / 9; }
.works .work:first-child .work-meta h3 { font-size: clamp(22px, 2.4vw, 30px); }
/* mobile audit */
.name { white-space: nowrap; }
.nav a { white-space: nowrap; }
@media (max-width: 720px) {
  .top { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 20px; }
  .nav { width: 100%; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
  .nav .book { margin-left: auto; padding: 5px 12px 6px; }
  .film-bar { font-size: 13px; gap: 10px; }
  .film-bar .ctl { gap: 10px; }
  figcaption { flex-direction: column; gap: 6px; }
  .sec-head { gap: 8px; }
  .lede { max-width: none; }
  .facts { grid-template-columns: 1fr; gap: 2px 0; }
  .facts dt { margin-top: 10px; }
  .facts dd { margin: 0; }
  .credits .row { grid-template-columns: 5ch 1fr; }
  .credits .role { grid-column: 2; }
  h2 { font-size: 28px; }
  .foot { flex-direction: column; }
}
@media (hover: none), (max-width: 720px) { .key-hint { display: none; } }

/* hidden must win over display rules */
[hidden] { display: none !important; }
