/* Notes front page: the film "The Room" as the masthead — a muted 10 s loop of the drawers wall behind three lines of
   text; "Watch the film" plays the whole film in the same place. Year pages and essays keep the plain masthead.
   (Kept by build-notes.cjs: listed in KEEP.) */
.mast-film{background:#06100b;border-bottom:0;color:#efe6d3;min-height:clamp(560px,78vh,820px);display:flex;flex-direction:column;justify-content:center;isolation:isolate}
.mf-bg,.mf-veil{position:absolute;inset:0;pointer-events:none}
.mf-bg{background:#06100b url(/film/the-room-still.jpg) center/cover no-repeat}
.mf-bg video{width:100%;height:100%;object-fit:cover;display:block;opacity:0;transition:opacity 1.8s ease,filter .8s ease}
.mf-bg video.on{opacity:1}
.mf-veil{background:linear-gradient(180deg,rgba(4,16,10,.66) 0%,rgba(4,16,10,.34) 38%,rgba(4,16,10,.42) 68%,rgba(4,16,10,.9) 100%),radial-gradient(ellipse 85% 75% at 50% 50%,transparent 35%,rgba(4,16,10,.6) 100%)}
.mast-film .wrap{position:relative;z-index:1;width:100%;box-sizing:border-box}
.mast-film .mf-text{padding:clamp(120px,15vh,176px) 28px clamp(72px,9vh,112px)}
.mast-film .crumbs{color:rgba(243,226,182,.62)}
.mast-film .crumbs a{color:inherit}
.mast-film .kicker{color:#ebcb8b}
.mast.mast-film h1{color:#fffdf7;text-shadow:0 10px 40px rgba(0,0,0,.45)}
.mast-film .rule{color:#ddb46a}
.mast-film .rule img{filter:brightness(0) invert(.92) sepia(.6) saturate(1.8) brightness(.98)}
.mf-keys{margin:26px auto 0;max-width:none;font:500 clamp(11px,1.2vw,13.5px)/1.9 var(--caps);letter-spacing:.3em;text-indent:.3em;color:rgba(255,253,247,.88);text-wrap:balance}
.mf-watch{display:inline-flex;align-items:center;gap:14px;margin:34px auto 0;padding:0;background:none;border:0;color:#ebcb8b;font:500 11.5px/1 var(--caps);letter-spacing:.28em;cursor:pointer;transition:color .3s}
.mf-watch i{position:relative;display:block;width:40px;height:40px;border:1px solid rgba(235,203,139,.85);border-radius:50%;transition:background .3s,border-color .3s}
.mf-watch i::before{content:"";position:absolute;inset:-6px;border:1px solid rgba(221,180,106,.3);border-radius:50%}
.mf-watch i::after{content:"";position:absolute;left:15px;top:12px;border-style:solid;border-width:8px 0 8px 12px;border-color:transparent transparent transparent currentColor}
.mf-watch:hover{color:#fffdf7}.mf-watch:hover i{background:rgba(221,180,106,.18);border-color:#fffdf7}
.mast-film .mf-stage{display:block;padding:clamp(96px,13vh,150px) 28px 56px}
.mast-film .mf-stage[hidden]{display:none}
.mf-frame{position:relative;box-sizing:border-box;width:100%;max-width:1180px;margin:0 auto;padding:clamp(8px,1.2vw,14px);border:1px solid rgba(221,180,106,.5);background:rgba(0,0,0,.4)}
.mf-frame::before{content:"";position:absolute;inset:-8px;border:1px solid rgba(221,180,106,.2);pointer-events:none}
.mf-pic{position:relative;aspect-ratio:1920/804;background:#000;outline:1px solid rgba(221,180,106,.3);outline-offset:-1px}
.mf-close{display:block;margin:24px auto 0;padding:8px 2px;background:none;border:0;border-bottom:1px solid rgba(235,203,139,.3);color:#ebcb8b;font:500 11px/1 var(--caps);letter-spacing:.3em;text-indent:.3em;cursor:pointer;transition:color .3s,border-color .3s}
.mf-close:hover{color:#fffdf7;border-color:#fffdf7}
.mast-film.is-film .mf-text{display:none}
.mast-film.is-film .mf-bg video{opacity:.22;filter:blur(3px)}
.mast-film.is-film .mf-veil{background:rgba(4,16,10,.55)}
.mast-film.is-film{min-height:0}
.mf-stage:fullscreen .mf-frame{padding:0;border:0;background:#000;max-width:none;width:100%;height:100%}
.mf-stage:fullscreen .mf-frame::before,.mf-stage:fullscreen .mf-close{display:none}
.finder-band{background:linear-gradient(180deg,var(--cream-100),var(--cream-50));border-bottom:1px solid var(--rule);text-align:center;padding:30px 0 8px}
.finder-band .tagline{margin:0 auto;max-width:34em;font:500 italic 18px/1.6 var(--head);color:var(--ink-soft)}
.finder-band .finder{margin-top:22px}
@media (max-width:720px){.mast-film{min-height:72vh}.mast-film .mf-text{padding:112px 20px 60px}.mf-keys{letter-spacing:.22em;text-indent:.22em;font-size:11px}.mf-watch{margin-top:28px}.mast-film .mf-stage{padding:92px 12px 40px}.mf-frame{padding:6px}.mf-frame::before{inset:-6px}.finder-band{padding-top:22px}.finder-band .tagline{font-size:16px}}
@media (prefers-reduced-motion:reduce){.mf-bg video{display:none}}
/* scripts that must never be letter-spaced (Thai, Khmer, Lao, Burmese, Arabic, Persian, Urdu, Hebrew, Devanagari, Bengali, CJK) */
html[lang=th] .mf-keys,html[lang=km] .mf-keys,html[lang=lo] .mf-keys,html[lang=my] .mf-keys,html[lang=ar] .mf-keys,html[lang=fa] .mf-keys,html[lang=ur] .mf-keys,html[lang=he] .mf-keys,html[lang=hi] .mf-keys,html[lang=bn] .mf-keys,html[lang=ja] .mf-keys,html[lang=ko] .mf-keys,html[lang^=zh] .mf-keys,
html[lang=th] .mf-watch,html[lang=km] .mf-watch,html[lang=lo] .mf-watch,html[lang=my] .mf-watch,html[lang=ar] .mf-watch,html[lang=fa] .mf-watch,html[lang=ur] .mf-watch,html[lang=he] .mf-watch,html[lang=hi] .mf-watch,html[lang=bn] .mf-watch,html[lang=ja] .mf-watch,html[lang=ko] .mf-watch,html[lang^=zh] .mf-watch,
html[lang=th] .mf-close,html[lang=km] .mf-close,html[lang=lo] .mf-close,html[lang=my] .mf-close,html[lang=ar] .mf-close,html[lang=fa] .mf-close,html[lang=ur] .mf-close,html[lang=he] .mf-close,html[lang=hi] .mf-close,html[lang=bn] .mf-close,html[lang=ja] .mf-close,html[lang=ko] .mf-close,html[lang^=zh] .mf-close{letter-spacing:0;text-indent:0}
html[lang=th] .mf-keys,html[lang=km] .mf-keys,html[lang=lo] .mf-keys,html[lang=my] .mf-keys,html[lang=hi] .mf-keys,html[lang=bn] .mf-keys{font-size:clamp(13px,1.3vw,16px);line-height:1.9}
html[lang=ja] .mf-keys,html[lang=ko] .mf-keys,html[lang^=zh] .mf-keys{font-size:clamp(13px,1.3vw,16px);word-spacing:.3em}
html[lang=ar] .mf-keys,html[lang=fa] .mf-keys,html[lang=ur] .mf-keys,html[lang=he] .mf-keys{font-size:clamp(14px,1.4vw,17px)}
/* the kicker is always Latin ("Legal Wealth · The Room"): keep the Latin caps face in every language; CJK labels use the page's own serif */
.mast-film .kicker{font-family:"Cinzel",var(--caps)}
html[lang=ja] .mf-watch,html[lang=ko] .mf-watch,html[lang^=zh] .mf-watch,html[lang=ja] .mf-close,html[lang=ko] .mf-close,html[lang^=zh] .mf-close{font-family:var(--head);font-weight:600;font-size:14px}
@font-face{font-family:"Cinzel";font-weight:600;font-display:swap;src:url(/fonts/cinzel-latin-600-normal.woff2) format("woff2")}
.mast-film .kicker{font-family:"Cinzel",var(--caps);font-weight:600}
/* the keywords line never wraps: notes-film.js shrinks it to fit narrow phones */
.mf-keys{white-space:nowrap;text-wrap:nowrap;max-width:100%}

/* the runtime 3′56″ keeps the Latin caps face in every language (CJK fonts draw the primes oddly) */
.mf-rt{font-family:"Cinzel",var(--caps);font-weight:600;letter-spacing:.12em;font-size:.92em}
/* slow network (2026-11-12): while the loop is still on its way, the brand's gold ring (lw-load.css --lw-spin, on every
   page) turns at the foot of the masthead; it fades out the moment the loop plays. Absolute: nothing moves.
   Selectors are `.mast.mast-film` on purpose: notes-v1.css loads later and has `.mast::after` (the faint 340px crest
   watermark); with equal weight its size, position and image replaced the ring (2026-11-11 phone bug). */
.mast.mast-film::after{content:"";position:absolute;left:50%;top:auto;bottom:34px;z-index:2;width:40px;height:40px;margin-left:-20px;transform:none;-webkit-mask:none;mask:none;background:var(--lw-spin) center/contain no-repeat;opacity:0;transition:opacity .7s ease;pointer-events:none}
.mast.mast-film.mf-waiting::after{opacity:.9}
.mast.mast-film.is-film::after{display:none}
@media (max-width:720px){.mast.mast-film::after{width:34px;height:34px;margin-left:-17px;bottom:26px}}
@media (prefers-reduced-motion:reduce){.mast.mast-film::after{display:none}}
