/* 49 SUNSET BLVD — shared */
:root {
  --black: #030303; --ink: #0b0a09; --bone: #c9c2b2; --bone-dim: #8a8375; --mute: #5d584e;
  --blood: #6e1414; --blood-hi: #a31a1a; --paper: #d8cfbb; --line: #1f1c18;
  --fell: 'IM Fell English', Georgia, serif; --fell-sc: 'IM Fell English SC', Georgia, serif;
  --type: 'Special Elite', 'Courier New', monospace; --hand: 'Reenie Beanie', 'Comic Sans MS', cursive;
  --term: 'VT323', 'Courier New', monospace;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--black); -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { margin: 0; background: var(--black); color: var(--bone); font-family: var(--fell); font-size: 17px; line-height: 1.6; overflow-x: hidden; cursor: crosshair; }
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
body.leaving main, body.leaving .masthead { opacity: 0; transition: opacity .6s; filter: blur(2px); }
::selection { background: var(--blood); color: #000; }

/* ================= SCROLLBAR — a mark dragged down the frame ================= */
html { scrollbar-color: #4a0e0e #030303; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #030303; box-shadow: inset 0 0 8px #000; border-left: 1px solid #0d0b09; }
::-webkit-scrollbar-thumb {
  background: repeating-linear-gradient(to bottom, #4a0e0e 0 14px, #2a0707 14px 16px, #571010 16px 30px);
  border: 2px solid #030303; border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover { background: repeating-linear-gradient(to bottom, #6e1414 0 14px, #4a0e0e 14px 16px, #7a1a1a 16px 30px); }
::-webkit-scrollbar-corner { background: #030303; }
/* inner scrollers (drawer, terminals) match */
.dr-inner, .term-out, .cam-feed, .g-upg, .closet .c-inside { scrollbar-width: thin; scrollbar-color: #4a0e0e #030303; }

[hidden] { display: none !important; }
button { font: inherit; cursor: pointer; color: inherit; }
a { color: var(--bone); text-decoration-color: var(--blood); text-underline-offset: 3px; }
a:hover { color: var(--blood-hi); }
img { max-width: 100%; }
.red { color: var(--blood-hi); }
.tiny { font-size: 12px; color: var(--mute); font-family: var(--type); }
.show { opacity: 1 !important; }

/* ================= OVERLAYS ================= */
#grain { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; opacity: .055; mix-blend-mode: screen; }
.scanlines { position: fixed; inset: 0; pointer-events: none; z-index: 91; background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(0,0,0,.22) 3px); animation: roll 9s linear infinite; }
@keyframes roll { to { background-position: 0 300px; } }
.vignette { position: fixed; inset: 0; pointer-events: none; z-index: 92; background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.88) 100%); }
#behind { position: fixed; inset: 0; z-index: 0; pointer-events: none; display: flex; justify-content: center; align-items: center; opacity: .03; transition: opacity 6s; overflow: hidden; }
#behind img { height: 120vh; max-width: none; filter: grayscale(1) contrast(1.8); }
#behind.near { opacity: .1; }
#flash { position: fixed; inset: 0; z-index: 95; pointer-events: none; opacity: 0; background: #000; }
#flash img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(2.2) brightness(.7); }
#dim { position: fixed; inset: 0; z-index: 85; pointer-events: none; background: #000; opacity: 0; transition: opacity 1.5s; }
#dim.on { opacity: .78; }
#whisper-text { position: fixed; z-index: 96; pointer-events: none; font-family: var(--hand); color: transparent; font-size: 30px; transition: color 1.6s; max-width: 80vw; line-height: 1.05; }
#whisper-text.on { color: rgba(163,26,26,.8); }
#takeover { position: fixed; inset: 0; z-index: 97; pointer-events: none; background: #000; opacity: 0; transition: opacity 3s; display: flex; justify-content: center; align-items: center; }
#takeover.on { opacity: 1; pointer-events: auto; }
#takeover img { width: min(70vh, 86vw); filter: grayscale(1) contrast(1.9) brightness(.6); opacity: 0; transition: opacity 5s, transform 12s linear; }
#takeover.on img { opacity: .55; transform: scale(1.35); }
#takeover p { position: absolute; bottom: calc(12vh + var(--safe-b)); left: 0; right: 0; font-family: var(--fell-sc); font-size: clamp(16px, 2.6vw, 30px); letter-spacing: .25em; color: var(--blood-hi); text-align: center; padding: 0 20px; margin: 0; }
#ghost-cursor { position: fixed; z-index: 99; pointer-events: none; left: 0; top: 0; opacity: 0; transition: opacity .6s; }
#ghost-cursor.on { opacity: .85; }
#print { position: fixed; z-index: 99; pointer-events: none; opacity: 0; transition: opacity 2s; }
#print.on { opacity: 1; }
body.flicker main, body.flicker .masthead { animation: flick .9s steps(1) 1; }
@keyframes flick { 10% { opacity: .1 } 20% { opacity: 1 } 35% { opacity: .3 } 40% { opacity: 1 } 70% { opacity: .05 } 75% { opacity: 1 } }
body.shake main { animation: shake .5s 2; }
@keyframes shake { 25% { transform: translate(2px, -1px) } 50% { transform: translate(-2px, 1px) skewX(.6deg) } 75% { transform: translate(1px, 2px) } }
body.redshift main { filter: sepia(1) hue-rotate(-50deg) saturate(4) contrast(1.3); }
.mutating { color: var(--blood-hi) !important; font-family: var(--hand) !important; font-size: 1.2em; }

/* ================= THRESHOLD — a door you knock on ================= */
#threshold { position: fixed; inset: 0; z-index: 100; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; transition: opacity 2s; overflow-y: auto; overflow-x: hidden; }
#threshold::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 42%, rgba(40,12,10,.5), #000 75%); }
#threshold.thump .th-inner { animation: thump .3s 1; }
#threshold.opening .th-inner { animation: thump .35s 3; }
#threshold.gone { opacity: 0; pointer-events: none; }
@keyframes thump { 40% { transform: scale(.985); filter: brightness(1.6); } }
/* the strip of warm light under the door — it goes out on the second knock */
.th-doorlight { position: fixed; left: 50%; bottom: 0; width: min(560px, 84vw); height: 3px; transform: translateX(-50%); pointer-events: none; }
.th-doorlight i { display: block; height: 100%; background: linear-gradient(90deg, transparent, rgba(214,166,90,.5) 20%, rgba(230,190,110,.85) 50%, rgba(214,166,90,.5) 80%, transparent); box-shadow: 0 0 22px 4px rgba(214,166,90,.28); animation: lightflick 7s infinite steps(1); transition: opacity .18s, box-shadow .18s; }
.th-doorlight.out i { opacity: 0; animation: none; box-shadow: none; }
@keyframes lightflick { 0%,88%,92%,100% { opacity: 1 } 89%,91% { opacity: .3 } }
.th-inner { position: relative; z-index: 1; max-width: 720px; margin: auto; }
.th-ch { font-family: var(--type); letter-spacing: .5em; color: var(--blood-hi); font-size: 12px; margin: 0 0 14px; }
.th-scratch { display: flex; gap: 7px; justify-content: center; margin: 0 auto 26px; width: 90px; }
.th-scratch i { width: 3px; height: 34px; background: linear-gradient(#3a0a0a, var(--blood)); transform: skewX(-14deg); opacity: .7; }
.th-scratch i:nth-child(2) { height: 44px; }
.th-scratch i:nth-child(4) { height: 28px; }
.th-title { font-family: var(--fell-sc); font-weight: normal; font-size: clamp(22px, 4.6vw, 44px); line-height: 1; letter-spacing: .1em; margin: 0 0 14px; color: var(--bone); text-shadow: 0 0 40px rgba(163,26,26,.35); }
.th-title span { display: inline-block; opacity: 0; transform: translateY(14px) scale(1.25); filter: blur(7px); transition: all .55s cubic-bezier(.2,.9,.3,1); }
.th-title span.on { opacity: 1; transform: none; filter: none; }
.th-title:hover { animation: titleflick .7s steps(1) 1; }
@keyframes titleflick { 20% { color: var(--blood-hi); text-shadow: 0 0 60px var(--blood-hi) } 40% { transform: skewX(-3deg) } }
.th-sub { font-style: italic; color: var(--bone-dim); max-width: 520px; margin: 0 auto 22px; }
.th-you { font-family: var(--hand); font-size: 24px; line-height: 1.25; color: rgba(163,26,26,.85); max-width: 520px; margin: 0 auto 30px; min-height: 34px; }
.th-you span { display: block; }
.th-knock { background: transparent; border: 1px solid var(--blood); color: var(--blood-hi); font-family: var(--fell-sc); letter-spacing: .35em; font-size: 16px; padding: 14px 30px; min-height: 48px; animation: pulse 2.2s infinite; transition: opacity .6s; }
.th-knock:hover { background: rgba(110,20,20,.15); box-shadow: 0 0 30px rgba(163,26,26,.25); }
.th-count { font-family: var(--hand); font-size: 26px; color: var(--blood-hi); margin: 12px 0 0; min-height: 32px; }
.th-hp { font-family: var(--type); font-size: 11px; color: #3c3832; margin-top: 26px; }
@keyframes pulse { 50% { opacity: .35 } }

/* ================= TOPBAR / DRAWER ================= */
#topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; gap: 14px; padding: calc(8px + var(--safe-t)) 14px 8px; background: linear-gradient(#000 60%, transparent); font-family: var(--term); font-size: 17px; letter-spacing: .08em; }
.tb-home { font-family: var(--fell-sc); letter-spacing: .2em; font-size: 15px; text-decoration: none; color: var(--bone-dim); margin-right: auto; white-space: nowrap; }
#presence { color: var(--bone-dim); white-space: nowrap; }
#presence .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blood-hi); margin-right: 6px; box-shadow: 0 0 8px var(--blood-hi); animation: pulse 2s infinite; }
#presence b { font-weight: normal; }
#presence.three { color: var(--blood-hi); }
#topbar button { background: rgba(0,0,0,.6); border: 1px solid #2a2722; color: var(--bone-dim); font-family: var(--term); font-size: 17px; letter-spacing: .1em; padding: 4px 10px; min-height: 34px; }
#topbar button:hover { border-color: var(--blood); color: var(--bone); }
#topbar b { font-weight: normal; color: var(--blood-hi); }
#tb-pockets.full { border-color: var(--blood-hi); animation: pulse 1.5s infinite; }
#drawer { position: fixed; inset: 0; z-index: 98; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .5s; overflow: hidden; }
#drawer.on { opacity: 1; pointer-events: auto; }
.dr-inner { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #070606; border-left: 1px solid #2a2722; padding: calc(24px + var(--safe-t)) 24px calc(30px + var(--safe-b)); overflow-y: auto; transform: translateX(30px); transition: transform .5s; }
#drawer.on .dr-inner { transform: none; }
.dr-close { position: absolute; top: calc(10px + var(--safe-t)); right: 14px; background: none; border: 0; font-size: 34px; color: var(--bone-dim); width: 48px; height: 48px; }
.dr-h { font-family: var(--fell-sc); font-weight: normal; letter-spacing: .2em; margin: 10px 0 2px; }
.dr-h small { font-family: var(--term); color: var(--blood-hi); font-size: 16px; margin-left: 8px; }
.dr-sub { font-style: italic; color: var(--mute); font-size: 14px; margin: 0 0 14px; }
#dr-list { list-style: none; padding: 0; margin: 0 0 30px; counter-reset: r; }
#dr-list li { border-bottom: 1px dashed #1d1a16; padding: 9px 0; counter-increment: r; display: flex; flex-direction: column; }
#dr-list li::before { content: counter(r, upper-roman) "."; font-family: var(--term); color: var(--blood); font-size: 14px; }
#dr-list a { font-family: var(--fell-sc); letter-spacing: .12em; text-decoration: none; font-size: 18px; }
#dr-list li.here a { color: var(--blood-hi); }
#dr-list span { font-family: var(--type); font-size: 12px; color: var(--mute); }
#dr-list .unk b { color: #1c1a17; letter-spacing: -.05em; font-weight: normal; }
#dr-frags { display: flex; flex-wrap: wrap; gap: 8px; }
.pk { font-family: var(--term); font-size: 20px; padding: 2px 8px; border: 1px solid #221f1b; color: #2c2925; }
.pk.has { color: var(--blood-hi); border-color: var(--blood); font-family: var(--hand); font-size: 26px; }

/* ================= FOOTER / MUTE ================= */
.sitefoot { position: relative; z-index: 1; text-align: center; padding: 60px 20px calc(90px + var(--safe-b)); color: var(--mute); font-family: var(--type); font-size: 13px; border-top: 1px dashed var(--line); margin-top: 60px; }
#foot-secret a { color: var(--blood-hi); font-size: 16px; }
/* bare/immersive pages have no footer — secrets slide in from below instead */
#secret-toast { position: fixed; left: 50%; bottom: calc(52px + var(--safe-b)); transform: translateX(-50%) translateY(14px); z-index: 90; margin: 0; max-width: 88vw; text-align: center; opacity: 0; pointer-events: none; transition: opacity .5s, transform .5s; }
#secret-toast.on { opacity: 1; transform: translateX(-50%); pointer-events: auto; }
#secret-toast a { color: var(--blood-hi); font-size: 16px; }
#mute { position: fixed; left: 12px; bottom: calc(10px + var(--safe-b)); z-index: 80; background: rgba(0,0,0,.75); border: 1px solid #2a2722; color: #6a6458; font-family: var(--type); font-size: 11px; padding: 6px 10px; min-height: 34px; }
#mute.on { color: var(--blood-hi); border-color: var(--blood); }

/* ================= PAGE LAYOUT ================= */
main { position: relative; z-index: 1; max-width: 1140px; margin: 0 auto; padding: 0 18px; }
.masthead { position: relative; z-index: 1; text-align: center; padding: calc(96px + var(--safe-t)) 18px 30px; }
.kicker { font-family: var(--type); color: var(--bone-dim); letter-spacing: .3em; font-size: 12px; text-transform: lowercase; margin: 0; }
.pg-title { font-family: var(--fell-sc); font-weight: normal; font-size: clamp(38px, 8.5vw, 108px); line-height: 1.02; margin: 12px 0; letter-spacing: .05em; color: var(--bone); text-shadow: 0 0 40px rgba(163,26,26,.25); position: relative; display: inline-block; }
/* the house watches back */
#veins { position: fixed; inset: -4%; z-index: 84; pointer-events: none; opacity: 0; transition: opacity 2.2s;
  background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(120,10,8,.5) 92%); animation: veinbeat 1.1s infinite; }
body.vein #veins { opacity: 1; }
@keyframes veinbeat { 0%,100% { transform: scale(1) } 18% { transform: scale(1.035) } 36% { transform: scale(1.008) } 54% { transform: scale(1.03) } }
#edge { position: fixed; z-index: 86; pointer-events: none; opacity: 0; transition: left 3.8s cubic-bezier(.2,.6,.3,1), right 3.8s cubic-bezier(.2,.6,.3,1), bottom 3.8s cubic-bezier(.2,.6,.3,1), opacity 2.2s; }
#edge img { height: 44vh; filter: brightness(.6) contrast(1.55) grayscale(1); opacity: .95; mix-blend-mode: lighten; -webkit-mask-image: radial-gradient(ellipse at 50% 44%, #000 50%, transparent 74%); mask-image: radial-gradient(ellipse at 50% 44%, #000 50%, transparent 74%); }
#edge.edge-l { left: -34vw; top: 28vh; }
#edge.edge-l.in { left: -5vw; opacity: 1; }
#edge.edge-r { right: -34vw; top: 32vh; }
#edge.edge-r img { transform: scaleX(-1); }
#edge.edge-r.in { right: -5vw; opacity: 1; }
#edge.edge-b { left: 42vw; bottom: -44vh; }
#edge.edge-b.in { bottom: -9vh; opacity: 1; }
#eyes { position: fixed; z-index: 83; pointer-events: none; opacity: 0; transition: opacity .7s; display: flex; gap: 12px; }
#eyes i { width: 7px; height: 10px; border-radius: 50%; background: radial-gradient(#d63c3c, #5a0a0a); box-shadow: 0 0 9px 2px rgba(214,60,60,.6); }
#eyes.on { opacity: .95; }
#watcher { position: fixed; left: 50%; top: 48%; transform: translate(-50%,-50%) scale(1.06); z-index: 87; pointer-events: none; opacity: 0; transition: opacity .8s; }
#watcher img { width: min(34vw, 260px); filter: grayscale(1) brightness(.5) contrast(2.1); mix-blend-mode: hard-light; }
#watcher.on { opacity: .55; }
body.tear main, body.tear .masthead { animation: tearA .46s steps(2) 1; }
@keyframes tearA { 25% { transform: translate(7px,-3px) skewX(-2deg); clip-path: inset(8% 0 12% 0); } 50% { transform: translate(-5px,4px); clip-path: inset(30% 0 0 0); } 75% { transform: translate(3px,0) skewX(1.4deg); clip-path: none; } }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%; overflow: hidden; pointer-events: none; }
.glitch::before { color: var(--blood-hi); clip-path: inset(0 0 60% 0); animation: gl1 5s infinite steps(1); }
.glitch::after { color: #3a6d6d; clip-path: inset(55% 0 0 0); animation: gl2 7s infinite steps(1); opacity: .5; }
@keyframes gl1 { 0%, 90%, 100% { transform: none; opacity: 0 } 91% { transform: translate(-4px, 1px); opacity: .8 } 93% { transform: translate(3px, -2px) } 95% { opacity: 0 } }
@keyframes gl2 { 0%, 85%, 100% { transform: none; opacity: 0 } 86% { transform: translate(5px); opacity: .6 } 89% { transform: translate(-3px, 2px) } 90% { opacity: 0 } }
.lede { max-width: 680px; margin: 0 auto; color: var(--bone-dim); font-style: italic; }
.status { font-family: var(--term); font-size: 18px; color: var(--bone-dim); letter-spacing: .06em; margin: 8px 0; }
.blink-red { color: var(--blood-hi); animation: pulse 1.4s infinite; }

.panel { padding: 56px 0 30px; border-bottom: 1px dashed var(--line); }
.panel:last-child { border-bottom: 0; }
.sec-title { font-family: var(--fell-sc); font-weight: normal; font-size: clamp(26px, 5vw, 46px); letter-spacing: .12em; margin: 0 0 12px; line-height: 1.1; }
.sec-title > span:first-child { color: var(--blood-hi); margin-right: 10px; }
.sec-sub { color: var(--bone-dim); max-width: 760px; font-style: italic; }
.next { margin: 40px 0 10px; font-family: var(--type); font-size: 14px; color: var(--mute); }
.next a { font-family: var(--fell-sc); letter-spacing: .15em; font-size: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 28px; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 18px; }

/* five foot three */
.ft53 { font-family: var(--term); color: var(--blood-hi); font-size: 1.15em; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 0 8px rgba(163,26,26,.5); }
.big53 { display: block; font-family: var(--fell-sc); font-size: clamp(90px, 28vw, 280px); line-height: .9; color: var(--blood-hi); text-align: center; letter-spacing: -.02em; text-shadow: 0 0 60px rgba(163,26,26,.35); margin: 20px 0; }

/* redaction */
.redact { background: #000; color: #000; padding: 0 4px; transition: color .4s, background .4s; cursor: help; letter-spacing: -.05em; border-radius: 1px; box-shadow: 0 0 0 1px #151515; }
.redact.revealed { background: transparent; color: var(--blood-hi); letter-spacing: normal; font-family: var(--hand); font-size: 1.3em; box-shadow: none; }

/* fragments */
.frag { font-family: var(--hand); color: var(--blood-hi); font-size: 1.5em; cursor: pointer; text-shadow: 0 0 10px rgba(163,26,26,.7); animation: fragpulse 3s ease-in-out infinite; padding: 0 4px; border-bottom: 1px dotted var(--blood); }
@keyframes fragpulse { 50% { opacity: .45; } }
.frag.taken { animation: none; opacity: .18; text-decoration: line-through; pointer-events: none; text-shadow: none; }

/* paper documents */
.paper { background: var(--paper); color: #1d1913; padding: 24px 22px; box-shadow: 0 14px 40px rgba(0,0,0,.85); position: relative; background-image: radial-gradient(circle at 82% 14%, rgba(110,70,20,.18) 0 34px, transparent 35px), radial-gradient(circle at 15% 92%, rgba(80,40,10,.13), transparent 50%); }
.paper:nth-child(odd) { transform: rotate(-.6deg); }
.paper:nth-child(even) { transform: rotate(.5deg); }
.paper h4 { font-family: var(--type); font-weight: normal; font-size: 13px; letter-spacing: .12em; margin: 0 0 14px; color: #5a1010; border-bottom: 1px solid rgba(0,0,0,.25); padding-bottom: 8px; }
.paper .type, .type { font-family: var(--type); font-size: 15px; line-height: 1.6; }
.paper p { margin: 0 0 10px; }
.paper .redact { box-shadow: none; }
.paper .redact.revealed, .paper .frag { color: #7a0000; }
.hand { font-family: var(--hand); font-size: 24px; line-height: 1.2; }
.lined { background-color: #ece6d4; background-image: repeating-linear-gradient(transparent 0 29px, rgba(40,80,160,.25) 30px); }
.sig { font-family: var(--hand) !important; font-size: 30px !important; }
.stamp { position: absolute; font-family: var(--type); font-size: 13px; letter-spacing: .2em; padding: 3px 8px; border: 2px solid currentColor; color: rgba(140,20,20,.75); transform: rotate(-8deg); right: 16px; top: 16px; }
.clip { position: absolute; top: -10px; left: 30px; width: 18px; height: 46px; border: 3px solid #777; border-radius: 9px; border-bottom-color: transparent; }
[data-type] p, [data-type] li { visibility: hidden; }
[data-type].typed p, [data-type].typed li { visibility: visible; }
.mono { font-family: var(--type); font-size: 14px; }

/* dossier */
.dossier { display: grid; grid-template-columns: 1fr; gap: 22px; background: #0a0908; border: 1px solid var(--line); padding: 20px; position: relative; }
.dossier::after { content: 'CONFIDENTIAL'; position: absolute; right: 14px; top: 10px; font-family: var(--type); font-size: 11px; color: var(--blood); letter-spacing: .3em; }
.d-photo { position: relative; overflow: hidden; background: #000; border: 1px solid #222; aspect-ratio: 3/4; max-width: 340px; width: 100%; }
.d-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35) brightness(.8) sepia(.15); transition: filter .4s, transform .5s; }
.d-tag { position: absolute; left: 10px; bottom: 12px; font-family: var(--type); font-size: 12px; color: var(--bone); background: rgba(0,0,0,.75); padding: 3px 8px; letter-spacing: .2em; border: 1px solid #333; }
.d-text h3 { font-family: var(--fell-sc); font-weight: normal; letter-spacing: .1em; font-size: clamp(22px, 4vw, 28px); margin: 0 0 12px; line-height: 1.15; }
.d-text dl { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; font-family: var(--type); font-size: 13px; margin: 0 0 16px; }
.d-text dt { color: #6a6458; }
.d-text dd { margin: 0; }
.d-text p { color: var(--bone-dim); margin: 0 0 12px; }
.d-text p b { color: var(--bone); font-weight: normal; }
.d-note { font-style: italic; border-left: 2px solid var(--blood); padding-left: 12px; }

/* height chart (lineup) overlay */
.lineup { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to top, transparent 0 calc(var(--u) - 1px), rgba(255,255,255,.22) calc(var(--u) - 1px) var(--u)); --u: 5.4%; mix-blend-mode: screen; }
.lineup span { position: absolute; right: 4px; font-family: var(--term); font-size: 13px; color: rgba(255,255,255,.6); transform: translateY(50%); }
.lineup .mark53 { position: absolute; left: 0; right: 0; border-top: 2px solid var(--blood-hi); box-shadow: 0 0 10px var(--blood-hi); }
.lineup .mark53::after { content: "5'3\""; position: absolute; left: 6px; top: -22px; font-family: var(--term); font-size: 20px; color: var(--blood-hi); text-shadow: 0 0 6px #000; }

/* buttons */
.btn-blood { background: transparent; color: var(--blood-hi); border: 1px solid var(--blood); padding: 14px 34px; font-family: var(--fell-sc); font-size: 20px; letter-spacing: .25em; transition: all .4s; min-height: 50px; }
.btn-blood:hover { background: var(--blood); color: #000; box-shadow: 0 0 40px rgba(163,26,26,.6); }
.btn-ghost { background: transparent; color: #57524a; border: 1px solid #2a2722; padding: 14px 34px; font-family: var(--fell-sc); font-size: 20px; letter-spacing: .25em; transition: all .4s; min-height: 50px; }
.btn-ghost:hover { color: var(--bone-dim); border-color: #57524a; }
.btn-ghost.small { font-size: 13px; padding: 8px 16px; min-height: 38px; }
.btn-ghost.gone { opacity: 0; pointer-events: none; transition: opacity 3s; }

/* VHS / CRT frame used by tapes + gerald */
.crt { position: relative; background: #000; border: 1px solid #222; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 0 0 10px #0b0a09, 0 0 0 11px #222, 0 30px 60px rgba(0,0,0,.9); border-radius: 14px / 10px; }
.crt canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.osd { position: absolute; font-family: var(--term); color: #e8e8e8; text-shadow: 2px 2px 0 #000, 0 0 6px rgba(255,255,255,.5); font-size: clamp(16px, 3vw, 26px); letter-spacing: .08em; z-index: 3; }

@media (min-width: 760px) {
  body { font-size: 18px; }
  main { padding: 0 26px; }
  .grid2 { grid-template-columns: 1fr 1fr; gap: 34px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .dossier { grid-template-columns: 300px 1fr; gap: 30px; padding: 24px; }
  .d-text dl { grid-template-columns: 160px 1fr; font-size: 14px; }
  .paper { padding: 28px 32px; }
  #topbar { padding-left: 22px; padding-right: 22px; gap: 20px; }
  .tb-home { font-size: 16px; }
}
@media (max-width: 420px) {
  #presence { display: none; }
  .tb-home { font-size: 13px; letter-spacing: .14em; }
}

/* ---- the house leaking through ---- */
#weep { position: fixed; inset: 0; z-index: 88; pointer-events: none; opacity: 0; transition: opacity 1.6s; }
#weep.on { opacity: 1; }
#weep i { position: absolute; top: -10px; width: 2px; height: 0; background: linear-gradient(#7a1414, #380606 60%, transparent); border-radius: 0 0 4px 4px; animation: weepd linear forwards; box-shadow: 0 0 4px rgba(120,16,16,.5); }
@keyframes weepd { 0% { height: 0; opacity: 0; } 8% { opacity: .9; } 100% { height: var(--wl, 90px); opacity: 0; } }
#sublim { position: fixed; inset: 0; z-index: 97; display: none; place-items: center; background: transparent; pointer-events: none; }
#sublim.on { display: grid; }
#sublim img { width: 44vmin; opacity: .3; filter: grayscale(1) contrast(2.2) brightness(.7); mix-blend-mode: screen; -webkit-mask-image: radial-gradient(ellipse at 50% 44%, #000 50%, transparent 74%); mask-image: radial-gradient(ellipse at 50% 44%, #000 50%, transparent 74%); }
#fog { position: fixed; inset: 0; z-index: 82; pointer-events: none; opacity: 0; transition: opacity 3.5s;
  background: radial-gradient(130% 90% at 50% 115%, rgba(190,198,204,.16), transparent 55%),
              radial-gradient(110% 70% at 8% -5%, rgba(190,198,204,.10), transparent 50%),
              radial-gradient(110% 70% at 96% -5%, rgba(190,198,204,.09), transparent 50%); }
body.fogged #fog { opacity: 1; }
#smear { position: fixed; z-index: 85; pointer-events: none; width: 130px; height: 190px; opacity: 0; transition: opacity 2.4s; }
#smear.sl { left: -10px; top: 30vh; }
#smear.sr { right: -10px; top: 30vh; transform: scaleX(-1); }
#smear.on { opacity: .5; }
#smear::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(22px 30px at 40px 20px, rgba(150,140,125,.5), transparent 70%),
    linear-gradient(105deg, transparent 18%, rgba(150,140,125,.4) 20%, transparent 24%, rgba(150,140,125,.35) 28%, transparent 32%, rgba(150,140,125,.42) 36%, transparent 40%, rgba(150,140,125,.3) 44%, transparent 48%),
    radial-gradient(46px 60px at 46px 90px, rgba(150,140,125,.45), transparent 72%);
  filter: blur(1px); }
body.mirror main, body.mirror #topbar, body.mirror footer.sitefoot { transform: scaleX(-1); }
body.mirror main *, body.mirror #topbar * { pointer-events: none; }
