/* Killed — portfolio shell. Void black, bone white, one dried-blood red. Grain and fog on top, desaturated pictures that wake up on hover. */
:root {
  --void: #070708; --void-2: #0d0d0f; --void-3: #141417; --bone: #d9d4c7; --bone-dim: #a39f94; --mute: #77746c; --line: #232327;
  --blood: #d11a24; --blood-deep: #7d0f16; --on-blood: #fff;
  --display: 'Unbounded', 'Arial Black', sans-serif; --serif: 'Cormorant Garamond', Georgia, serif; --body: 'Onest', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --gut: clamp(16px, 4vw, 56px); --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--void); color-scheme: dark; }
body { margin: 0; background: var(--void); color: var(--bone); font: 400 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
body.is-viewing, body.intro-on { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--blood); color: #fff; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bone); color: var(--void); padding: 8px 12px; z-index: 200; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blood); outline-offset: 3px; border-radius: 4px; }

/* ---------- atmosphere: fog, grain, vignette (under the demo viewer, over the page) ---------- */
.fx { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.fx i { position: absolute; inset: 0; display: block; }
.fx__fog { background: radial-gradient(60vmax 40vmax at 18% 8%, rgba(120, 130, 150, .10), transparent 70%), radial-gradient(50vmax 36vmax at 88% 70%, rgba(125, 15, 22, .16), transparent 70%); animation: drift 22s ease-in-out infinite alternate; }
.fx__grain { opacity: .09; mix-blend-mode: screen; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); animation: grain 1s steps(6) infinite; }
.fx__vig { background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .75) 100%); }
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
@keyframes grain { 0% { background-position: 0 0; } 20% { background-position: -40px 25px; } 40% { background-position: 30px -50px; } 60% { background-position: -70px -20px; } 80% { background-position: 55px 45px; } 100% { background-position: -15px 70px; } }

/* ---------- page ---------- */
.page { position: relative; padding: 0 var(--gut); max-width: 1480px; margin: 0 auto; }
.bar { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.bar__mark { font: 800 17px var(--display); letter-spacing: -.02em; text-decoration: none; text-transform: uppercase; }
.bar__mark b { color: var(--blood); font-weight: 800; }
.bar__tag { color: var(--mute); }
.bar__link { margin-left: auto; color: var(--bone-dim); text-decoration: none; padding: 7px 4px; }
.bar__link:hover { color: #fff; }
.bar__replay { background: none; border: 1px solid var(--line); color: var(--bone-dim); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.bar__replay:hover { color: #fff; border-color: var(--blood); }
.bar__note { color: var(--mute); display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blood); animation: beat 1.6s infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(209, 26, 36, .6); transform: scale(1); } 12% { transform: scale(1.35); } 24% { transform: scale(1); } 36% { transform: scale(1.25); box-shadow: 0 0 0 8px rgba(209, 26, 36, 0); } }

.hero { padding: clamp(48px, 9vw, 120px) 0 clamp(40px, 6vw, 80px); }
.kicker { color: var(--blood); margin: 0 0 22px; }
.hero__title { font: 800 clamp(38px, 8vw, 126px)/1 var(--display); letter-spacing: -.035em; margin: 0; text-transform: uppercase; text-shadow: 0 0 40px rgba(217, 212, 199, .08); }
.hero__title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__title .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards paused; }
.go .hero__title .ln > span { animation-play-state: running; }
.hero__title .ln:nth-child(2) > span { animation-delay: .14s; }
.hero__title em { font: italic 500 1.05em var(--serif); text-transform: none; letter-spacing: -.01em; color: var(--blood); padding-right: .12em; animation: flick 7s infinite 2s; }
@keyframes rise { to { transform: none; } }
@keyframes flick { 0%, 90%, 100% { opacity: 1; } 91% { opacity: .25; } 92% { opacity: 1; } 94% { opacity: .5; } 95% { opacity: 1; } }
.hero__row { display: flex; gap: 32px 64px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-top: clamp(28px, 4vw, 56px); }
.lead { max-width: 56ch; margin: 0; font: italic 500 clamp(21px, 2vw, 27px)/1.3 var(--serif); color: var(--bone-dim); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 1px solid var(--bone-dim); border-radius: 2px; text-decoration: none; font: 600 14px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--bone); background: transparent; transition: background .25s, color .25s, border-color .25s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.btn:hover { background: var(--bone); color: var(--void); border-color: var(--bone); }
.btn:hover span { transform: translateX(4px); }
.btn span { transition: transform .25s var(--ease); }
.btn--solid { background: var(--blood-deep); border-color: var(--blood); color: #fff; }
.btn--solid:hover { background: var(--blood); border-color: var(--blood); color: #fff; box-shadow: 0 0 30px rgba(209, 26, 36, .5); }

/* ---------- exhibits ---------- */
.sites { border-top: 1px solid var(--line); }
.exhibit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(40px, 7vw, 96px) 0; border-bottom: 1px solid var(--line); }
.exhibit--flip .exhibit__shot { order: 2; }
.exhibit__shot { display: block; text-decoration: none; cursor: none; }
.shot { position: relative; display: block; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px #000; transition: transform .6s var(--ease), box-shadow .6s var(--ease); clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }
.shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; transition: opacity .6s; }
.shot img, .shot video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #000; filter: grayscale(.92) contrast(1.15) brightness(.72); transition: transform .9s var(--ease), filter .7s; }
.exhibit__shot:hover .shot { transform: translateY(-6px); box-shadow: 0 0 0 1px var(--blood), 0 40px 90px -30px rgba(209, 26, 36, .5); }
.exhibit__shot:hover .shot::after { opacity: 0; }
.exhibit__shot:hover img, .exhibit__shot:hover video { transform: scale(1.03); filter: none; }
.num { color: var(--blood); margin: 0 0 14px; }
.exhibit h2 { font: 800 clamp(30px, 4.2vw, 60px)/1.02 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 12px; }
.exhibit__sub { font: italic 500 22px/1.2 var(--serif); color: var(--bone-dim); margin: 0 0 12px; }
.credit, .panel__credit { font: 400 12.5px/1.7 var(--mono); letter-spacing: .03em; color: var(--mute); margin: 0 0 22px; }
.credit a, .panel__credit a { color: var(--bone-dim); text-decoration: underline; text-decoration-color: var(--blood); text-underline-offset: 3px; }
.credit a:hover, .panel__credit a:hover { color: #fff; }
.panel__credit { margin: 10px 0 0; font-size: 12px; }
.exhibit p { max-width: 52ch; color: #bdb8ab; }
.facts { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--line); }
.facts li { padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--bone-dim); }
.facts b { display: inline-block; min-width: 3.4ch; font: 700 15px var(--display); color: var(--blood); }
.tags { color: var(--mute); margin: 0 0 26px; }

.how { padding: clamp(48px, 7vw, 100px) 0; }
.how__h { font: 800 clamp(26px, 3.2vw, 44px)/1.08 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 36px; max-width: 18ch; }
.how__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); }
.how__col { border-top: 1px solid var(--bone-dim); padding-top: 16px; margin: 0; }
.how__col h3 { margin: 0 0 10px; color: var(--blood); font-weight: 500; }
.how__col { max-width: 46ch; font-size: 16px; color: var(--bone-dim); }
.foot { padding: 20px 0 36px; border-top: 1px solid var(--line); overflow: hidden; }
.foot__name { margin: 0; font: 800 clamp(70px, 20vw, 300px)/.8 var(--display); letter-spacing: -.05em; color: var(--void); paint-order: stroke fill; -webkit-text-stroke: 2px #34343a; user-select: none; text-align: center; padding: .12em 0 .02em; }
.foot__row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--mute); margin: 16px 0 0; }

.contacts { padding: clamp(40px, 6vw, 84px) 0 clamp(48px, 7vw, 100px); border-top: 1px solid var(--line); scroll-margin-top: 12px; }
.contacts__h { font: 800 clamp(26px, 3.2vw, 44px)/1.08 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 14px; }
.contacts__lead { margin: 0 0 34px; font: italic 500 clamp(20px, 2vw, 26px)/1.3 var(--serif); color: var(--bone-dim); }
.contacts__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.contacts__list li { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; align-items: baseline; gap: 12px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.contacts__list li:hover { background: linear-gradient(90deg, rgba(209, 26, 36, .07), transparent 60%); }
.ct__k { color: var(--blood); }
.ct__v { font: italic 500 clamp(26px, 3.4vw, 46px)/1.1 var(--serif); color: var(--bone); text-decoration: none; overflow-wrap: anywhere; }
a.ct__v:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--blood); text-underline-offset: 6px; }
.ct__b { background: none; border: 1px solid var(--line); color: var(--bone-dim); padding: 9px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: color .2s, border-color .2s, background .2s; }
.ct__b:hover { color: #fff; border-color: var(--blood); }
.ct__b.is-done { color: #fff; background: var(--blood-deep); border-color: var(--blood); }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* scroll reveal */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .exhibit__shot.rv .shot { clip-path: polygon(0 0, 0 0, 0 0, 0 100%, 0 100%, 0 100%); transition: clip-path 1.2s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease); }
.js .exhibit__shot.rv.in .shot { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }

.cursor { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; background: var(--blood); color: #fff; padding: 8px 14px; opacity: 0; transform: translate3d(-100px, -100px, 0); white-space: nowrap; transition: opacity .2s; }
.cursor.on { opacity: 1; }
@media (hover: none) { .cursor { display: none; } .exhibit__shot { cursor: pointer; } }

/* ---------- living bits: pulse band, hero skull, tape reel ---------- */
.pulse { position: relative; height: 84px; border-top: 1px solid var(--line); overflow: hidden; }
.pulse canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pulse__t { position: absolute; right: 0; top: 8px; color: var(--mute); }
.hero { position: relative; }
.hero__skull { position: absolute; right: 0; top: clamp(24px, 4vw, 60px); margin: 0; font: 500 clamp(7px, .9vw, 12px)/1.08 var(--mono); color: #b9b4a6; opacity: .55; white-space: pre; text-shadow: -1px 0 rgba(209, 26, 36, .6), 1px 0 rgba(0, 229, 255, .35); pointer-events: none; user-select: none; }
.hero__skull span { display: block; }
.reel { padding: clamp(40px, 6vw, 84px) 0 0; border-bottom: 1px solid var(--line); }
.reel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.reel__head h2 { margin: 0; font: 800 clamp(26px, 3.2vw, 44px)/1.08 var(--display); letter-spacing: -.03em; text-transform: uppercase; }
.reel__head p { margin: 0; color: var(--mute); }
.reel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-left: var(--gut); padding: 4px 2px 34px; margin: 0 calc(var(--gut) * -1); padding-left: var(--gut); padding-right: var(--gut); scrollbar-color: #2a2a2e transparent; scrollbar-width: thin; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gut), #000 calc(100% - var(--gut)), transparent 100%); }
.tape { flex: 0 0 min(440px, 80vw); scroll-snap-align: start; display: grid; gap: 8px; text-decoration: none; color: var(--bone); align-content: start; }
.tape--phone { flex-basis: min(230px, 56vw); }
.tape__v { position: relative; display: block; background: #000; overflow: hidden; box-shadow: 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); transition: box-shadow .4s; }
.tape__v video { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(.9) contrast(1.15) brightness(.7); transition: filter .5s, transform .8s var(--ease); }
.tape--phone .tape__v video { aspect-ratio: 390 / 844; object-fit: cover; }
.tape__v::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .3) 0 1px, transparent 1px 3px); transition: opacity .4s; }
.tape__rec { position: absolute; left: 12px; top: 10px; z-index: 2; color: #fff; font-size: 10px; animation: blink 1.4s steps(2) infinite; text-shadow: 0 0 6px #000; }
.tape:hover .tape__v { box-shadow: 0 0 0 1px var(--blood), 0 20px 50px -20px rgba(209, 26, 36, .5); }
.tape:hover video { filter: none; transform: scale(1.03); }
.tape:hover .tape__v::after { opacity: 0; }
.tape__t { color: var(--blood); margin-top: 6px; }
.tape b { font: 700 17px/1.2 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.tape small { color: var(--mute); font-size: 14px; max-width: 40ch; }

/* ---------- viewer ---------- */
.viewer { position: fixed; inset: 0; z-index: 40; background: var(--void); display: grid; grid-template-columns: 348px minmax(0, 1fr); visibility: hidden; clip-path: inset(100% 0 0 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
body.is-viewing .viewer { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.panel { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--void-2); }
.panel__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.back { text-decoration: none; display: inline-flex; gap: 8px; color: var(--bone-dim); }
.back:hover { color: var(--blood); }
.panel__toggle { display: none; background: none; border: 1px solid var(--bone-dim); border-radius: 2px; padding: 6px 12px; cursor: pointer; color: var(--bone); }
.panel__body { padding: 22px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-color: #2a2a2e transparent; }
.panel h2 { font: 800 27px/1.05 var(--display); letter-spacing: -.03em; text-transform: uppercase; margin: 0 0 10px; }
.panel h3 { color: var(--mute); margin: 26px 0 10px; font-weight: 500; }
.panel__desc { margin: 0; font: italic 500 19px/1.3 var(--serif); color: var(--bone-dim); }
.chips { display: grid; gap: 8px; }
.chip { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; width: 100%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--void-3); color: var(--bone); cursor: pointer; font: 600 15px/1.25 var(--body); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.chip small { grid-column: 1; font: 400 12.5px var(--body); color: var(--mute); }
.chip::after { content: ''; grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 9px; height: 9px; border-radius: 50%; border: 1px solid #4a4a50; }
.chip:hover { border-color: var(--bone-dim); transform: translateX(3px); }
.chip.is-on { border-color: var(--blood); background: #1a0b0d; }
.chip.is-on::after { background: var(--blood); border-color: var(--blood); box-shadow: 0 0 10px var(--blood); }
.chip--out { text-align: center; grid-template-columns: 1fr; font-weight: 500; color: var(--mute); }
.chip--out::after { display: none; }
.hint { font-size: 13px; color: var(--mute); margin: 10px 0 0; }
.hint code { font: 500 12px var(--mono); background: #1c1c20; padding: 1px 5px; border-radius: 2px; color: var(--bone); }
.todo { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 8px; }
.todo li { counter-increment: t; }
.todo button { display: block; width: 100%; text-align: left; padding: 12px 14px 12px 44px; position: relative; border: 1px solid var(--line); border-radius: 2px; background: transparent; color: var(--bone-dim); cursor: pointer; font: 400 14.5px/1.4 var(--body); transition: border-color .2s, background .2s; }
.todo button b { color: var(--bone); font-weight: 600; }
.todo button::before { content: counter(t); position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; background: var(--bone); color: var(--void); display: grid; place-items: center; font: 500 11px var(--mono); }
.todo button:hover { border-color: var(--blood); background: var(--void-3); }
.todo button.is-done::before { background: var(--blood); color: #fff; content: '✓'; }

.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--void); }
.chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #000; border-bottom: 1px solid var(--line); color: #d8d6cd; }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2e; }
.lights i:first-child { background: var(--blood-deep); }
.addr { flex: 1; min-width: 0; background: var(--void-3); border-radius: 2px; padding: 8px 14px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: .02em; }
.dev { display: flex; gap: 2px; background: var(--void-3); border-radius: 2px; padding: 2px; }
.dev button { background: none; border: 0; color: var(--mute); width: 32px; height: 28px; border-radius: 2px; cursor: pointer; font-size: 15px; }
.dev button:hover { color: #fff; }
.dev button.is-on { background: #2c2c31; color: #fff; }
.tool { background: var(--void-3); color: var(--bone-dim); border: 0; border-radius: 2px; padding: 9px 12px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.tool:hover { background: var(--blood-deep); color: #fff; }
.tool.is-armed { background: var(--blood); color: #fff; }
.canvas { flex: 1; min-height: 0; display: grid; place-items: stretch center; background: repeating-linear-gradient(45deg, #09090a, #09090a 10px, #0f0f11 10px, #0f0f11 11px); }
.device { position: relative; width: var(--dw, 100%); max-width: 100%; height: 100%; background: #0a0a0a; transition: width .5s var(--ease); }
.device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0a0a0a; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; filter: grayscale(1) blur(2px) brightness(.5); transition: opacity .5s; }
.loading { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--bone); color: var(--void); padding: 9px 16px; transition: opacity .4s; }
.device.ready .poster, .device.ready .loading { opacity: 0; pointer-events: none; }
.canvas.is-small { padding: 18px 0; }
.canvas.is-small .device { border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 8px #1a1a1d, 0 24px 60px -20px #000; }

/* ---------- intro ---------- */
.i-clips { position: absolute; inset: 0; opacity: 0; background: #000; }
.i-clips.on { opacity: 1; }
.i-clips video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.45) contrast(1.2) brightness(.78) saturate(.85); }
.i-clips.contain video { object-fit: contain; }
.i-clips.on video { animation: track 2.8s steps(1) infinite; }
.i-clips.pop video { animation: pop .2s ease-out, track 2.8s steps(1) infinite; }
@keyframes pop { 0% { transform: scale(1.05); filter: grayscale(0) contrast(1.4) brightness(1.15); } 100% { transform: none; } }
@keyframes track { 0%, 100% { transform: none; } 6% { transform: translateX(-10px); } 7% { transform: none; } 38% { transform: translateX(12px) skewX(2deg); } 39% { transform: none; } 71% { transform: translateY(-5px); } 72% { transform: none; } 90% { transform: translateX(6px); } 91% { transform: none; } }
.i-cap { position: absolute; left: clamp(14px, 3vw, 34px); bottom: clamp(14px, 3vw, 30px); margin: 0; color: #e6e1d2; background: rgba(0, 0, 0, .6); padding: 7px 12px; border-left: 2px solid var(--blood); opacity: 0; transition: opacity .2s; z-index: 2; }
.i-cap.on { opacity: 1; }
.intro { position: fixed; inset: 0; z-index: 100; background: #000; color: var(--bone); overflow: hidden; display: grid; place-items: center; }
.intro.out { animation: curtain 1.1s cubic-bezier(.7, 0, .2, 1) forwards; }
.intro.gone { display: none; }
@keyframes curtain { 0% { clip-path: inset(0); } 100% { clip-path: inset(0 0 100% 0); } }
.i-noise { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; opacity: 0; filter: contrast(1.4); mix-blend-mode: screen; }
.i-scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 1px, transparent 1px 3px); pointer-events: none; }
.i-vig { position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, #000 100%); pointer-events: none; }
.i-hud { text-shadow: 0 0 8px #000, 0 0 3px #000; position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; padding: clamp(14px, 3vw, 34px); color: #9c988d; opacity: 0; transition: opacity .3s; }
.i-hud.on { opacity: 1; }
.i-hud__r { text-align: right; }
.rec { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--blood); margin-right: 6px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.i-skull { position: relative; margin: 0; font: 500 clamp(14px, 3.4vw, 32px)/1.08 var(--mono); letter-spacing: .02em; color: #e6e1d2; text-shadow: 0 0 16px rgba(217, 212, 199, .6), -2px 0 rgba(255, 0, 40, .55), 2px 0 rgba(0, 229, 255, .4); opacity: 0; white-space: pre; transform: translateY(-4vh); }
.i-skull.on { opacity: 1; }
.i-skull span { display: block; }
.i-line { position: absolute; left: 0; right: 0; bottom: 17%; text-align: center; margin: 0; min-height: 1.4em; color: #bdb8ab; font-size: clamp(11px, 1.6vw, 15px); letter-spacing: .14em; }
.i-line:empty::after { display: none; }
.i-line::after { content: '▌'; margin-left: 4px; animation: blink .8s steps(2) infinite; color: var(--blood); }
.i-name { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.i-name.on { display: flex; }
.i-name__w { position: relative; font: 800 clamp(54px, 17vw, 260px)/.9 var(--display); letter-spacing: -.05em; color: #f1ede2; text-shadow: -.04em 0 rgba(255, 0, 40, .85), .04em 0 rgba(0, 229, 255, .6); animation: slam .5s cubic-bezier(.1, .9, .2, 1) both, jit 2.4s steps(1) .5s infinite; }
.i-name__s { color: var(--blood); letter-spacing: .6em; font-size: clamp(11px, 1.6vw, 16px); opacity: 0; animation: fadein .8s .6s forwards; padding-left: .6em; }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0; filter: blur(14px); } 60% { transform: scale(.96); opacity: 1; filter: blur(0); } 100% { transform: scale(1); } }
@keyframes jit { 0%, 100% { transform: none; } 7% { transform: translate(-6px, 2px) skewX(6deg); } 9% { transform: none; } 41% { transform: translate(5px, -2px); } 43% { transform: none; } 78% { transform: translate(-3px, 0) skewX(-5deg); } 80% { transform: none; } }
@keyframes fadein { to { opacity: 1; } }
.i-gate { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 18px; padding: 24px; background: radial-gradient(ellipse at center, #0c0c0e 0%, #000 75%); z-index: 3; transition: opacity .5s; }
.i-gate.hide { opacity: 0; pointer-events: none; }
.i-gate__k { color: var(--blood); margin: 0; }
.i-gate__h { margin: 0; font: italic 500 clamp(26px, 4.6vw, 54px)/1.1 var(--serif); color: var(--bone); }
.i-gate__b { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.i-gate__n { color: var(--mute); margin: 0; }
.ibtn { font: 600 14px var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 15px 26px; background: var(--blood-deep); color: #fff; border: 1px solid var(--blood); cursor: pointer; transition: box-shadow .25s, background .25s; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px)); }
.ibtn:hover { background: var(--blood); box-shadow: 0 0 36px rgba(209, 26, 36, .6); }
.ibtn--ghost { background: transparent; border-color: #3b3b40; color: var(--bone-dim); }
.ibtn--ghost:hover { background: #17171a; box-shadow: none; color: #fff; }
.i-skip { position: absolute; right: clamp(14px, 3vw, 34px); bottom: clamp(14px, 3vw, 30px); z-index: 4; background: none; border: 0; color: #8d897f; cursor: pointer; padding: 8px; }
.i-skip:hover { color: #fff; }

/* ---------- small screens ---------- */
@media (max-width: 960px) {
  .hero__skull { display: none; }
  .contacts__list li { grid-template-columns: minmax(0, 1fr) auto; }
  .ct__k { grid-column: 1 / -1; }
  .exhibit, .exhibit--flip { grid-template-columns: minmax(0, 1fr); }
  .exhibit--flip .exhibit__shot { order: 0; }
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .bar__tag { display: none; }
  .viewer { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); max-height: 62vh; }
  .panel__toggle { display: inline-block; }
  .panel__body { display: none; }
  .panel.open .panel__body { display: block; max-height: 46vh; }
  .dev, #vOpen { display: none; }
  .chrome { padding: 8px 10px; gap: 8px; }
  .lights { display: none; }
}
@media (max-width: 520px) { .bar__note { display: none; } .hero__cta .btn { padding: 12px 18px; } #vReset { padding: 9px 10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .hero__title .ln > span { transform: none; }
}

@media (max-width: 640px) { .i-cap { bottom: 56px; right: 14px; font-size: 10px; } }
