/* The homepage. Two worlds on one page:
   - the opening is the camcorder's own world (src/scripts/opening/): deep blue-violet
     space, cream type, vermilion only for REC and the primary action. The camera's UI
     is drawn on the canvas; the page's words, nav and buttons are plain HTML beside it.
   - below it, the site's quiet paper: the films as tapes (films.css), the reading
     room, About and Follow. */
.evidence-home { --space: #1b1747; --peri: #8c97ff; --verm: #f2603f; --cream: #fbedd2; }

/* ------------------------------------------------------- header over the shot */
.evidence-home .site-header { position: absolute; z-index: 4; top: 0; left: 0; right: 0; width: auto; margin: 0; min-height: 0; padding: 24px var(--gut) 10px; border: 0; color: var(--cream); flex-wrap: wrap; gap: 18px; }
.evidence-home .wordmark canvas { width: 38px; height: 38px; display: block; }
.evidence-home .wordmark img { mix-blend-mode: normal; }
html:not(.js) .evidence-home .wordmark canvas { display: none; }
.evidence-home .wordmark-dot { color: var(--verm); }
.evidence-home .desktop-nav a { padding-block: 4px; }
.evidence-home .site-header :focus-visible { outline-color: var(--cream); }

/* --------------------------------------------------------------- the opening */
.opening { position: relative; height: 100svh; min-height: 600px; max-height: 1200px; overflow: hidden; background: var(--space); color: var(--cream); }
.opening #opening-canvas { position: absolute; left: 0; top: 0; display: block; }
.opening .opening-still { position: absolute; right: var(--gut); top: 50%; width: min(52vw, 760px); height: auto; aspect-ratio: 16 / 9; object-fit: cover; transform: translateY(-46%); box-shadow: 0 0 0 10px var(--verm); }
.opening a { color: var(--cream); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.opening a:hover { color: var(--cream); text-decoration-thickness: 2px; }
.opening :focus-visible { outline: 3px solid var(--verm); outline-offset: 3px; }
.opening-copy { position: absolute; z-index: 3; left: var(--gut); top: 0; bottom: 0; width: min(440px, 37vw); display: flex; flex-direction: column; justify-content: center; gap: 30px; padding-block: 112px 72px; }
.opening-brand .kicker { display: block; font: 500 12px/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--peri); }
.opening-brand h1 { margin: 10px 0 0; font: 600 clamp(46px, 5.4vw, 78px)/.98 var(--display); letter-spacing: -.025em; }
.opening-brand h1 .dot { color: var(--verm); }
.opening-brand .tagline { margin: 12px 0 0; font-size: 17px; color: rgba(251, 237, 210, .86); }
.opening-films { border-top: 1px solid rgba(140, 151, 255, .45); padding-top: 22px; transition: opacity .6s ease, transform .6s ease; }
/* the film's details appear when the camera locks (straight away for repeat visitors) */
.js:not(.opening-seen) .opening:not(.is-locked) .opening-films { opacity: 0; transform: translateY(8px); }
.opening-film { display: grid; gap: 10px; }
.opening-film .tape-label { font: 500 12px/1.4 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--peri); font-variant-numeric: tabular-nums; }
.opening-film h2 { margin: 0; font: 600 clamp(26px, 2.5vw, 36px)/1.08 var(--display); letter-spacing: -.015em; text-wrap: balance; }
.opening-film .film-line { margin: 0; font-size: 17px; }
.opening-film .film-meta { margin: 0; font-size: 14px; color: rgba(251, 237, 210, .74); font-variant-numeric: tabular-nums; }
.opening-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 6px; font-size: 15px; }
.opening .btn-play { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 999px; background: var(--cream); color: var(--space); text-decoration: none; font-weight: 500; }
.opening .btn-play:hover { background: #fff6e4; color: var(--space); text-decoration: none; }
.opening .btn-play b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--verm); color: var(--cream); font-size: 11px; padding-left: 2px; }
.opening-tapes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.opening-tapes button { display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px; background: transparent; border: 1px solid rgba(140, 151, 255, .55); border-radius: 4px; color: var(--cream); font: 500 13px/1.3 var(--sans); }
.opening-tapes button span { font-variant-numeric: tabular-nums; color: var(--peri); }
.opening-tapes button[aria-pressed="true"] { border-color: var(--cream); background: rgba(251, 237, 210, .08); }
.opening-tapes button:hover { border-color: var(--cream); }
.opening-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 13px; color: rgba(251, 237, 210, .78); }
.opening-controls button { background: none; border: 0; padding: 4px 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; }
.opening-controls a { color: inherit; }
.opening-controls :is(button, a):hover { color: var(--cream); }

/* short screens: tighter copy so everything fits beside the shot */
@media (min-aspect-ratio: 112/100) and (max-height: 820px) {
  .opening-copy { gap: 20px; padding-block: 92px 40px; }
  .opening-brand h1 { font-size: clamp(42px, 4.8vw, 64px); }
  .opening-brand .tagline { margin-top: 8px; font-size: 16px; }
  .opening-films { padding-top: 16px; }
  .opening-film { gap: 7px; }
  .opening-film h2 { font-size: clamp(24px, 2.2vw, 30px); }
  .opening-tapes { margin-top: 16px; }
}

/* tall screens: the shot sits on top, the words below it; Skip and Pause come first */
@media (max-aspect-ratio: 112/100) {
  .opening { height: auto; min-height: 100svh; max-height: none; }
  .evidence-home .site-header { min-height: 112px; align-content: flex-start; padding-top: 18px; row-gap: 12px; }
  .opening .opening-still { left: calc(var(--gut) + 10px); top: 150px; width: calc(100% - 2 * var(--gut) - 20px); transform: none; }
  .opening-copy { position: relative; left: auto; top: auto; bottom: auto; width: auto; padding: calc(236px + 56vw) var(--gut) 30px; justify-content: flex-start; gap: 18px; }
  .opening-controls { order: -1; margin-bottom: -4px; }
  .opening-brand .kicker { display: none; }
  .opening-brand h1 { margin-top: 0; font-size: clamp(34px, 9vw, 52px); }
  .opening-brand .tagline { margin-top: 6px; font-size: 15px; }
  .opening-films { padding-top: 18px; }
  .opening-film h2 { font-size: clamp(24px, 7vw, 32px); }
  .opening-tapes { margin-top: 18px; }
}

/* ------------------------------------------------------- the screening room */
.screening { width: min(1250px, 96vw); max-width: 96vw; max-height: 96dvh; padding: 20px; border: 0; background: #071b2c; color: #fff6e7; }
.screening::backdrop { background: #020c18ed; }
.screening-bar { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 13px; margin-bottom: 16px; }
.screening-bar button { color: inherit; font-size: 12px; border-color: #fff6e755; }
.screening-player { aspect-ratio: 16 / 9; max-height: 75dvh; }
.screening-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.screening > a { display: block; margin-top: 15px; font-size: 12px; }
.screening :focus-visible { outline-color: #fff6e7; }

/* ---------------------------------------------------------- the quiet paper */
.evidence-home .section-head { display: grid; gap: 8px; max-width: 720px; padding-block: 72px 26px; }
.evidence-home .section-head h2 { margin: 0; font: 600 clamp(32px, 4vw, 50px)/1.04 var(--display); letter-spacing: -.02em; }
.evidence-home .section-head p { margin: 4px 0 0; color: var(--muted); font-size: 17px; }
.evidence-home .essay-row { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; padding-block: 30px; border-top: 1px solid var(--line); }
.evidence-home .essay-row .num { font: 600 34px/1 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; }
.evidence-home .essay-row h3 { margin: 6px 0 8px; font: 600 clamp(26px, 3vw, 36px)/1.1 var(--display); letter-spacing: -.015em; }
.evidence-home .essay-row h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.evidence-home .essay-row p { margin: 0 0 8px; color: var(--muted); max-width: 62ch; }
.evidence-home .essay-row small { display: block; margin-top: 8px; color: var(--muted); }
.evidence-home .about-follow { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); padding-block: 72px; border-top: 1px solid var(--line); margin-top: 40px; }
.evidence-home .about-follow h2 { margin: 6px 0 14px; font: 600 clamp(28px, 3.2vw, 40px)/1.08 var(--display); letter-spacing: -.015em; }
.evidence-home .about-follow p { margin: 0 0 12px; color: var(--muted); max-width: 60ch; }
.evidence-home .about-follow a, .evidence-home .follow-links a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.evidence-home .follow-links { display: grid; gap: 8px; margin-top: 8px; justify-items: start; }
@media (max-width: 760px) {
  .evidence-home .essay-row { grid-template-columns: 1fr; gap: 6px; }
  .evidence-home .about-follow { grid-template-columns: 1fr; }
}
