/* Shared by every page: base type, the projector (background footage), grain, viewfinder HUD, nav, reveals. */
:root { --red:#ff2b1d; --w:#f4f1ea; --dim:#9a958c; --title:'Cormorant Garamond',Georgia,serif; --mono:'Courier Prime',Courier,monospace; }
* { margin:0; padding:0; box-sizing:border-box; min-width:0; }
html { scroll-behavior:smooth; background:#000; }
body { color:var(--w); /* no background: it would paint over the footage layer */ font:17px/1.6 var(--mono); overflow-x:clip; }
a { color:inherit; text-decoration:none; }
button, input, textarea, select { font:inherit; color:inherit; }
::selection { background:var(--red); color:#000; }
:focus-visible { outline:2px solid var(--red); outline-offset:4px; }

/* ---------- the projector ---------- */
.bg { position:fixed; inset:0; z-index:-2; overflow:hidden; background:#000; animation:weave .18s steps(2) infinite; }
.bg video { position:absolute; inset:-3%; width:106%; height:106%; object-fit:cover; opacity:0; filter:grayscale(1) contrast(1.45) brightness(var(--exposure,.57)) blur(var(--blur,3px)); }
.bg video.on { opacity:1; }
.bg::after { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at center, #0000 40%, #0009 100%), linear-gradient(#0006, #0000 25%, #0000 72%, #0008); }
body.dim { --exposure:.4; } /* reading pages: darker footage */
.tint  { position:absolute; inset:0; background:var(--red); mix-blend-mode:color; opacity:0; z-index:1; }
.flash { position:fixed; inset:0; z-index:-1; background:#fff; opacity:0; pointer-events:none; }
@keyframes weave { 50% { transform:translate(.6px,-.6px); } }
.grain { position:fixed; inset:-50%; z-index:90; pointer-events:none; opacity:.17;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain .5s steps(5) infinite; }
@keyframes grain { 20%{transform:translate(-4%,3%)} 40%{transform:translate(3%,-2%)} 60%{transform:translate(-2%,-4%)} 80%{transform:translate(4%,2%)} }
.scratch { position:fixed; top:0; bottom:0; width:1px; background:#fff6; z-index:89; pointer-events:none; animation:scratch 3.7s steps(1) infinite; }
.scratch.b { animation-duration:5.3s; animation-delay:-2s; background:#fff3; }
@keyframes scratch { 0%{left:12%;opacity:1} 8%{left:71%} 15%{opacity:0} 41%{left:33%;opacity:.8} 47%{opacity:0} 73%{left:88%;opacity:1} 77%{opacity:0} }

/* ---------- viewfinder HUD + nav ---------- */
.hud { position:fixed; inset:0; pointer-events:none; z-index:80; font-size:12px; letter-spacing:.08em; color:var(--dim); }
.hud > * { position:absolute; }
.corner { width:22px; height:22px; border:1px solid #fff5; }
.c1 { top:18px; left:18px; border-width:1px 0 0 1px; } .c2 { top:18px; right:18px; border-width:1px 1px 0 0; }
.c3 { bottom:18px; left:18px; border-width:0 0 1px 1px; } .c4 { bottom:18px; right:18px; border-width:0 1px 1px 0; }
.hud .tl { top:24px; left:52px; pointer-events:auto; color:var(--w); }
.hud .tl b { font:500 20px var(--title); letter-spacing:.3em; }
.hud .tr { top:28px; right:52px; display:flex; gap:10px; align-items:center; font-variant-numeric:tabular-nums; }
.rec { width:8px; height:8px; border-radius:50%; background:var(--red); animation:rec 1.2s steps(1) infinite; }
@keyframes rec { 50% { opacity:0; } }
.hud .bl { bottom:26px; left:52px; max-width:60vw; }
.hud .br { bottom:26px; right:52px; color:var(--w); }
.hud nav { top:22px; left:50%; translate:-50% 0; display:flex; gap:6px; pointer-events:auto; font-size:13px; letter-spacing:.12em; text-transform:uppercase; }
.hud nav a { color:var(--dim); padding:6px 12px; border:1px solid transparent; border-radius:99px; transition:color .2s, border-color .2s; }
.hud nav a:hover { color:var(--w); }
.hud nav a[aria-current] { color:var(--w); border-color:#ffffff40; }
.hud nav a[aria-current]::before { content:'● '; color:var(--red); font-size:.7em; vertical-align:2px; }
.progress { position:fixed; left:0; bottom:0; height:2px; background:var(--red); z-index:81; width:0; }

/* ---------- shared type + reveals ---------- */
section { position:relative; }
.pad { padding:clamp(90px,16vh,180px) max(5vw,20px); }
.slug { font-size:13px; letter-spacing:.14em; color:var(--dim); text-transform:uppercase; }
.slug b { color:var(--red); font-weight:400; }
.big { font:300 clamp(3.2rem,10vw,10rem)/.92 var(--title); letter-spacing:-.01em; text-shadow:0 0 40px #0008; }
.h2 { font:300 clamp(2.8rem,7vw,6.5rem)/.95 var(--title); letter-spacing:-.01em; margin:.8rem 0 clamp(40px,7vh,80px); }
.h2 em, .big em { font-style:italic; }
.h2 em { color:var(--red); }
.rv { clip-path:inset(-.35em -.15em 100% -.15em); translate:0 .3em; transition:clip-path 1s cubic-bezier(.7,0,.2,1), translate 1s cubic-bezier(.7,0,.2,1); }
.rv.in { clip-path:inset(-.35em -.15em -.35em -.15em); translate:0 0; } /* room for tall letters and descenders */
.fade { opacity:0; transition:opacity 1.2s .2s; } .fade.in { opacity:1; }

/* sub-page header */
.page-head { min-height:62vh; display:flex; flex-direction:column; justify-content:flex-end; padding:0 max(5vw,20px) clamp(40px,8vh,90px); }
.page-head p { max-width:52ch; margin-top:1.4rem; font-size:clamp(16px,1.5vw,19px); color:#e6e1d7; }

@media (max-width:760px) {
  .hud .tr, .hud .bl, .hud .br { display:none; }
  .hud nav { left:auto; right:18px; translate:none; gap:0; font-size:11px; }
  .hud nav a { padding:6px 7px; }
  .hud nav a[aria-current]::before { content:none; }
  .hud .tl b { font-size:16px; letter-spacing:.2em; }
}
@media (max-width:420px) { .hud .tl { display:none; } .hud nav { right:auto; left:50%; translate:-50% 0; } }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation:none !important; }
  .bg video { transition:opacity 2s; }
}
