/* THE LAST RECORDING — landing page */

@font-face { font-family: "Rubik Mono One"; font-weight: 400; font-display: swap; src: url("fonts/rubik-mono-one-latin.woff2") format("woff2"); }
@font-face { font-family: "IM Fell English"; font-weight: 400; font-display: swap; src: url("fonts/im-fell-english-latin.woff2") format("woff2"); }
@font-face { font-family: "Special Elite"; font-weight: 400; font-display: swap; src: url("fonts/special-elite-latin.woff2") format("woff2"); }

body.home {
  --ink: #0a0607;
  --blood: #c8131f;
  --blood-hi: #ff2b37;
  --bone: #efe6d6;
  --paper: #161112;
  --block: "Rubik Mono One", Impact, sans-serif;
  --fell: "IM Fell English", Georgia, serif;
  --type: "Special Elite", "Courier New", monospace;
  margin: 0; background: var(--ink); color: var(--bone);
  font-family: var(--type); font-size: 17px; line-height: 1.5;
  overflow-x: hidden;
}
body.home::after { display: none; }                 /* no CRT scanlines out here */
.home a { color: inherit; }
.home :focus-visible { outline: 3px solid var(--blood-hi); outline-offset: 3px; }

/* film grain over everything */
.grain {
  position: fixed; inset: -50%; z-index: 30; pointer-events: none; opacity: .13;
  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 type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .6s steps(4) infinite;
}
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 3%); } }

/* ═════ shared: the play button ═════ */
.h-play {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--block); font-size: clamp(16px, 2.2vw, 24px); letter-spacing: 2px;
  color: var(--bone); background: var(--ink); text-decoration: none;
  padding: 16px 28px; border: 3px solid var(--bone);
  box-shadow: 8px 8px 0 var(--blood), 8px 8px 0 3px var(--ink);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.h-play:hover, .h-play:focus-visible { background: var(--blood); transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink), 11px 11px 0 3px var(--bone); outline: none; }
.h-play:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.h-play.small { font-size: 16px; padding: 12px 20px; }
.h-play-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--blood-hi); box-shadow: 0 0 12px var(--blood-hi); animation: rec 1.2s steps(1) infinite; }
.h-play:hover .h-play-dot { background: var(--bone); box-shadow: 0 0 12px var(--bone); }
@keyframes rec { 50% { opacity: .15; } }

/* ═════ 1. hero: hands on red glass ═════ */
.h-hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  display: grid; place-items: center; text-align: center;
  background: radial-gradient(ellipse at 50% 45%, #e0242c 0%, #b3121b 45%, #5c060c 100%);
}
.h-hands { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, .55) 100%);
}
.h-hero-in { position: relative; z-index: 2; padding: 90px 20px 110px; max-width: 980px; }
.h-kicker { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; font-family: var(--type); font-size: 13px; letter-spacing: 3px; }
.h-kicker span { background: var(--ink); padding: 3px 10px; }
.h-title {
  position: relative; margin: 0; font-family: var(--block); font-weight: 400; line-height: .9;
  font-size: clamp(42px, 10vw, 140px); color: var(--ink); letter-spacing: -1px;
  text-shadow: 4px 4px 0 rgba(255, 220, 210, .35);
  display: flex; flex-direction: column;
}
.h-title span:last-child { color: var(--bone); -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill; }
.h-title::before, .h-title::after {
  content: attr(data-text); position: absolute; inset: 0; font-size: .4em; display: none;
}
.h-tag { font-family: var(--fell); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.25; margin: 22px auto 30px; color: #fff3ea; text-shadow: 0 2px 8px rgba(0, 0, 0, .6); }
.h-sub { font-size: 13px; letter-spacing: 2px; margin: 22px 0 0; color: #ffd8d2; }
.h-notice { background: var(--ink); color: var(--bone); display: inline-block; padding: 6px 12px; border: 1px dashed var(--bone); margin: 0 0 20px; }
.h-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 2;
  text-decoration: none; font-size: 22px; color: var(--ink); animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ═════ 2. the poster ═════ */
.h-poster {
  max-width: 1100px; margin: 0 auto; padding: 50px 24px 60px;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, .04), transparent 60%),
    var(--paper);
  border-left: 1px solid #2a2022; border-right: 1px solid #2a2022;
}
.p-top { display: flex; align-items: center; gap: 14px; font-family: var(--block); font-size: 12px; color: var(--blood); letter-spacing: 2px; }
.p-top i { flex: 1; height: 2px; background: var(--blood); }
.p-bars { display: flex; align-items: center; gap: 10px; margin: 16px 0 26px; }
.p-bars b { width: 36px; height: 12px; border-radius: 6px; background: var(--blood); }
.p-bars b.long { width: 160px; }
.p-bars .rings { width: 60px; height: 22px; background: radial-gradient(circle at 12px 50%, transparent 8px, var(--blood) 9px, transparent 10px), radial-gradient(circle at 26px 50%, transparent 8px, var(--blood) 9px, transparent 10px), radial-gradient(circle at 40px 50%, transparent 8px, var(--blood) 9px, transparent 10px); }
.p-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; align-items: stretch; }
.p-grid-b { grid-template-columns: 1.6fr 1fr; margin-top: 10px; }
.p-left { display: flex; flex-direction: column; gap: 18px; }
.p-item svg, .p-items svg { image-rendering: pixelated; }
.p-item { width: 34%; transform: rotate(-12deg); filter: drop-shadow(3px 3px 0 var(--blood)); }
.p-item svg { width: 100%; height: auto; }
.p-items { display: flex; gap: 16px; }
.p-items svg { width: 64px; height: 64px; filter: drop-shadow(3px 3px 0 #000); }
.p-copy { margin: 0; font-size: 15px; color: #ddd3c3; text-align: justify; }
.p-x { font-family: var(--block); color: var(--bone); font-size: 22px; letter-spacing: 6px; }
.p-panel { position: relative; margin: 0; border: 2px solid var(--bone); background: #000; overflow: hidden; min-height: 320px; }
.p-warp { position: absolute; inset: 0; width: 100%; height: 100%; }
.p-enemy { position: relative; display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.p-father .p-enemy { mix-blend-mode: screen; filter: grayscale(.25) contrast(1.2); }
.p-panel figcaption {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--block); font-size: 10px; letter-spacing: 2px;
  background: var(--blood); color: var(--ink); padding: 3px 8px;
}
.p-title {
  margin: 34px 0 18px; font-family: var(--block); font-weight: 400; color: var(--blood);
  font-size: clamp(40px, 9vw, 112px); line-height: .88; letter-spacing: -2px;
  text-shadow: 3px 3px 0 #000;
}
.p-patients { min-height: 260px; }
.p-patients .p-enemy { filter: grayscale(1) contrast(1.3) brightness(1.15); }
.p-right { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; font-size: 18px; }
.p-right p { margin: 0; }
.p-hazard { display: flex; gap: 10px; font-size: 26px; }
.p-hazard span { border: 2px solid var(--bone); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; }
.p-barcode {
  height: 60px; width: 100%;
  background: repeating-linear-gradient(90deg, var(--bone) 0 2px, transparent 2px 4px, var(--bone) 4px 5px, transparent 5px 9px, var(--bone) 9px 12px, transparent 12px 14px);
}

/* ═════ 3. the box ═════ */
.h-box-wrap {
  display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 50px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 90px 24px;
}
.h-box {
  background: #0b0b0d; border: 1px solid #333; box-shadow: 0 30px 60px rgba(0, 0, 0, .7), 18px 18px 0 var(--blood);
  transform: rotate(-2deg); transition: transform .4s;
}
.h-box:hover { transform: rotate(0deg) scale(1.01); }
.b-spine-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #000; font-family: var(--block); font-size: 12px; letter-spacing: 1px; }
.b-brand { font-size: 18px; }
.b-format { color: #888; }
.b-region { border: 1px solid var(--bone); padding: 0 4px; font-size: 10px; }
.b-cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #050405; }
.b-mosaic { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.b-crack {
  position: absolute; inset: 0;
  background: repeating-conic-gradient(from 10deg at 80% 18%, rgba(200, 19, 31, .55) 0 1deg, transparent 1deg 9deg);
  mix-blend-mode: screen;
  -webkit-mask: radial-gradient(circle at 80% 18%, #000 0, transparent 55%);
  mask: radial-gradient(circle at 80% 18%, #000 0, transparent 55%);
}
.b-title {
  position: absolute; left: 6%; top: 5%; margin: 0; font-family: var(--block); font-weight: 400;
  font-size: clamp(22px, 3.6vw, 38px); line-height: 1; color: var(--bone);
  display: flex; flex-direction: column;
  text-shadow: 2px 2px 0 var(--blood), -1px -1px 0 #000;
}
.b-hand { position: absolute; right: 7%; top: 8%; width: 22%; fill: #d61a24; filter: drop-shadow(0 0 2px #000); transform: rotate(-24deg); }
.b-ribbons { position: absolute; right: -6%; top: 42%; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.b-ribbons li {
  font-family: var(--block); font-size: clamp(14px, 2.2vw, 22px); color: var(--bone); letter-spacing: 1px;
  background: repeating-linear-gradient(135deg, #8d0d15 0 6px, #b3121b 6px 12px);
  border: 2px solid #000; padding: 6px 40px 6px 30px; transform: rotate(-14deg) translateX(calc(var(--i) * 14px));
  clip-path: polygon(0 50%, 8% 0, 100% 0, 100% 100%, 8% 100%);
  box-shadow: 4px 4px 0 #000;
}
.b-blurb { position: absolute; left: 6%; bottom: 5%; width: 54%; margin: 0; font-family: var(--block); font-size: 8px; line-height: 1.45; color: var(--bone); text-shadow: 1px 1px 0 #000; }
.b-badges { position: absolute; right: 5%; bottom: 4%; display: flex; gap: 8px; align-items: flex-end; font-family: var(--block); font-size: 8px; text-align: center; }
.b-tape { border: 1px solid var(--bone); padding: 4px 6px; line-height: 1.2; }
.b-rating { background: var(--bone); color: #000; padding: 4px 6px; line-height: 1.15; }
.h-box-copy h3 { font-family: var(--block); font-weight: 400; color: var(--blood); font-size: 28px; margin: 0 0 18px; }
.h-features { list-style: none; margin: 0 0 30px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.h-features li { padding-left: 26px; position: relative; color: #ddd3c3; }
.h-features li::before { content: "▶"; position: absolute; left: 0; color: var(--blood-hi); font-size: 12px; top: 4px; }
.h-features b { color: var(--bone); }

/* ═════ 4. the lock ═════ */
.h-lock {
  display: grid; grid-template-columns: minmax(320px, 520px) 1fr; gap: 50px; align-items: center;
  max-width: 1100px; margin: 0 auto; padding: 60px 24px 90px;
}
.mandala { width: 100%; min-width: 0; height: auto; aspect-ratio: 3 / 4; overflow: visible; display: block; }
.m-frame rect { fill: #050304; stroke: var(--blood); stroke-width: 2; }
.m-frame line { stroke: var(--blood); stroke-width: 1; opacity: .7; }
.m-ring circle { fill: none; stroke: var(--blood); stroke-width: 3; }
.m-ticks line { stroke: var(--blood); stroke-width: 2; }
.m-runes rect { fill: var(--blood); }
.m-ring-a { transform-origin: 300px 400px; animation: spin 90s linear infinite; }
.m-ring-b { transform-origin: 300px 400px; animation: spin 60s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.m-eye-ring { fill: #000; stroke: var(--blood); stroke-width: 4; }
.m-eye-iris { fill: var(--blood); }
.m-eye-pupil { fill: #000; }
.m-eye-iris, .m-eye-pupil { transform-box: fill-box; transform-origin: center; animation: squint 6s infinite; animation-delay: var(--d); }
@keyframes squint { 0%, 93%, 100% { transform: none; } 95% { transform: scaleY(.1); } }
.m-lips { fill: #4a070c; stroke: #8c0d16; stroke-width: 4; }
.m-mouth { transform-origin: 300px 400px; animation: chew 4s ease-in-out infinite; }
@keyframes chew { 50% { transform: scaleY(.97); } }
.tooth path { fill: url(#m-tooth); stroke: #2a2a2e; stroke-width: 2; stroke-linejoin: round; }
.tooth .t-shade { fill: rgba(0, 0, 0, .18); stroke: none; }
.drool { stroke: rgba(230, 230, 235, .7); stroke-width: 2; stroke-linecap: round; }
.m-skin { fill: url(#m-skin); stroke: #e8ecf6; stroke-width: 2; }
.m-void { fill: #000; }
.m-vein { fill: none; stroke: #d01422; stroke-width: 2; }
.m-heart { fill: #ff2b37; animation: beat 1.1s ease-in-out infinite; transform-origin: 300px 380px; }
@keyframes beat { 15% { transform: scale(1.5); } 30% { transform: scale(1); } 45% { transform: scale(1.3); } 60% { transform: scale(1); } }
.m-phone { fill: #1a1a1e; stroke: #e8ecf6; stroke-width: 1.5; }
.m-screen { fill: #ff2b37; animation: rec 2s steps(1) infinite; }
.m-tape { fill: none; stroke: #f0f0f0; stroke-width: 7; stroke-linecap: round; }
.lock-copy h2 { font-family: var(--fell); font-weight: 400; font-size: clamp(26px, 3.4vw, 42px); margin: 0; color: var(--bone); }
.lock-big { font-family: var(--block); color: var(--blood); font-size: clamp(36px, 6vw, 76px); line-height: .95; margin: 10px 0 24px; }
.lock-copy p:last-child { color: #c9bfae; max-width: 520px; }

/* ═════ 5. the eye and the water ═════ */
.h-eye { position: relative; background: #000; }
.eye-wrap { position: relative; max-height: 70vh; overflow: hidden; }
.eye { display: block; width: 100%; height: auto; filter: saturate(1.1) contrast(1.05); }
.e-folds { fill: none; stroke: #2a0c08; stroke-width: 6; opacity: .55; }
.e-veins { fill: none; stroke: #b4352a; stroke-width: 2; opacity: .7; }
.e-lid { animation: eyeBlink 7s infinite; }
@keyframes eyeBlink { 0%, 91%, 100% { height: 0; } 94% { height: 320px; } }
.water-wrap { position: relative; min-height: 640px; overflow: hidden; }
.water { position: absolute; inset: 0; width: 100%; height: 100%; }
.eye-text {
  position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end;
  padding: 120px 6% 90px; text-align: right;
}
.g-line {
  margin: 0; font-family: var(--fell); font-size: clamp(24px, 4vw, 46px); line-height: 1.05; color: #f1c9c1;
  opacity: var(--o); text-shadow: 2px 0 #ff1e2d, -2px 0 #19e0ff; animation: jitter 3s steps(1) infinite;
}
.g-line:nth-child(2) { animation-delay: -.7s; } .g-line:nth-child(4) { animation-delay: -1.9s; }
@keyframes jitter { 0%, 88%, 100% { transform: none; } 90% { transform: translateX(-6px); } 92% { transform: translateX(4px) skewX(-8deg); } 94% { transform: none; } }
.g-big {
  position: relative; margin: 14px 0 36px; font-family: var(--fell); font-weight: 400;
  font-size: clamp(46px, 9vw, 120px); line-height: .95; color: #f6ddd6;
  text-shadow: 3px 0 #ff1e2d, -3px 0 #19e0ff, 0 0 30px rgba(255, 0, 0, .4);
}
.g-big::after {
  content: attr(data-text); position: absolute; inset: 0; color: #f6ddd6;
  clip-path: inset(40% 0 45% 0); transform: translateX(8px); animation: slice 2.4s steps(1) infinite;
}
@keyframes slice { 0%, 80%, 100% { clip-path: inset(100% 0 0 0); } 82% { clip-path: inset(40% 0 45% 0); transform: translateX(10px); } 86% { clip-path: inset(10% 0 80% 0); transform: translateX(-8px); } 90% { clip-path: inset(70% 0 12% 0); transform: translateX(5px); } }

/* ═════ footer ═════ */
.h-foot { text-align: center; padding: 40px 20px 60px; font-size: 13px; color: #8a7f74; border-top: 1px solid #2a2022; }
.h-warn { color: var(--blood-hi); letter-spacing: 1px; }
.h-more { display: inline-block; margin-top: 10px; text-decoration: none; border: 1px solid #555; padding: 6px 14px; color: #bbb; }
.h-more:hover { border-color: var(--bone); color: var(--bone); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ═════ phones ═════ */
@media (max-width: 820px) {
  .p-grid, .p-grid-b, .h-box-wrap, .h-lock { grid-template-columns: 1fr; }
  .h-box-wrap { padding: 60px 20px; gap: 40px; }
  .h-box { max-width: 420px; margin: 0 auto; }
  .h-lock { padding-top: 30px; }
  .mandala { max-width: 380px; margin: 0 auto; display: block; }
  .p-item { width: 50%; }
  .eye-text { align-items: center; text-align: center; padding: 90px 16px 70px; }
  .water-wrap { min-height: 560px; }
  .h-poster { padding: 36px 16px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ═════ music ═════ */
.music-btn {
  position: fixed; left: 16px; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  font-family: var(--block); font-size: 11px; letter-spacing: 1px; color: var(--bone);
  background: rgba(10, 6, 7, .85); border: 2px solid var(--bone); padding: 8px 12px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--blood);
}
.music-btn:hover, .music-btn:focus-visible { background: var(--blood); outline: none; }
.m-state { background: var(--bone); color: var(--ink); padding: 1px 5px; font-size: 10px; }
.music-btn.on .m-state { background: var(--blood-hi); color: #fff; }
.m-bars { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.m-bars i { width: 3px; height: 3px; background: var(--bone); }
.music-btn.on .m-bars i { animation: eq .9s ease-in-out infinite alternate; }
.music-btn.on .m-bars i:nth-child(2) { animation-delay: -.3s; }
.music-btn.on .m-bars i:nth-child(3) { animation-delay: -.6s; }
.music-btn.on .m-bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.music-hint {
  position: fixed; left: 16px; bottom: 64px; z-index: 40; margin: 0;
  font-family: var(--type); font-size: 13px; color: var(--ink); background: var(--bone);
  padding: 6px 10px; box-shadow: 3px 3px 0 var(--blood);
  animation: hintPulse 1.6s ease-in-out infinite;
}
.music-hint[hidden] { display: none; }
@keyframes hintPulse { 50% { transform: translateY(-3px); } }
@media (max-width: 600px) { .m-label { display: none; } }
