:root {
  --black: #050505;
  --ink: #0b0b0b;
  --paper: #e7e2d7;
  --bone: #f2eee4;
  --red: #c9142c;
  --blue: #536daa;
  --line: rgba(242, 238, 228, .18);
  --max: 1540px;
  --ease: cubic-bezier(.2,.75,.15,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--bone);
  font-family: Arial, Helvetica, sans-serif;
  cursor: none;
}
body.is-loading { overflow: hidden; }
img { display: block; width: 100%; }
a { color: inherit; cursor: none; }
button, summary, .cursor-target { cursor: none; }

.paper-noise,
.boot__grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  opacity: .11;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.12) 0 1px, transparent 1.5px),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.08) 0 1px, transparent 1.5px);
  background-size: 4px 4px, 5px 5px;
  mix-blend-mode: overlay;
}

.cursor-shadow {
  position: fixed;
  width: 420px;
  height: 420px;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  background: radial-gradient(circle, rgba(83,109,170,.12), transparent 64%);
  opacity: 0;
  transition: opacity .4s ease;
}
body:hover .cursor-shadow { opacity: 1; }


/* --- YAMI V3: forbidden crosshair and retention layers --- */
.yami-cursor {
  position: fixed;
  z-index: 180;
  left: 0;
  top: 0;
  width: 46px;
  height: 46px;
  transform: translate(-50%,-50%);
  pointer-events: none;
  opacity: 0;
  transition: width .18s ease, height .18s ease, opacity .2s ease, filter .18s ease;
  filter: drop-shadow(0 0 10px rgba(201,20,44,.18));
}
body:hover .yami-cursor { opacity: 1; }
.yami-cursor::before,
.yami-cursor::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: rgba(231,226,215,.5);
  transform: translate(-50%,-50%);
}
.yami-cursor::before { width: 58px; height: 1px; }
.yami-cursor::after { width: 1px; height: 58px; }
.yami-cursor__ring {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201,20,44,.74);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.72);
  transition: transform .18s ease, border-radius .18s ease, border-color .18s ease;
}
.yami-cursor__dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  transform: translate(-50%,-50%);
  box-shadow: 0 0 12px rgba(201,20,44,.9);
}
.yami-cursor b {
  position: absolute;
  right: -7px;
  bottom: -8px;
  color: rgba(231,226,215,.48);
  font-family: serif;
  font-size: 10px;
  font-weight: 400;
}
.yami-cursor.is-target { width: 70px; height: 70px; }
.yami-cursor.is-target .yami-cursor__ring {
  border-radius: 2px;
  border-color: rgba(231,226,215,.78);
  transform: rotate(45deg);
}
.yami-cursor.is-down .yami-cursor__ring { transform: rotate(135deg) scale(.62); border-color: var(--red); }

.ink-mote {
  position: fixed;
  z-index: 175;
  width: var(--mote-size, 3px);
  height: calc(var(--mote-size, 3px) * 3.6);
  border-radius: 60% 20% 70% 25%;
  background: rgba(201,20,44,.62);
  pointer-events: none;
  transform: translate(-50%,-50%) rotate(var(--mote-rot, 0deg));
  animation: moteVanish .75s ease-out forwards;
  box-shadow: 0 0 8px rgba(201,20,44,.28);
}
@keyframes moteVanish {
  to { opacity: 0; transform: translate(-50%,12px) rotate(calc(var(--mote-rot, 0deg) + 48deg)) scale(.15); }
}

.ink-bloom {
  position: fixed;
  z-index: 174;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(201,20,44,.74);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%,-50%);
  animation: inkBloom .6s ease-out forwards;
}
@keyframes inkBloom { to { width: 116px; height: 116px; opacity: 0; border-width: 0; box-shadow: inset 0 0 24px rgba(201,20,44,.35); } }

.whisper-feed {
  position: fixed;
  z-index: 57;
  right: 24px;
  bottom: 22px;
  display: grid;
  grid-template-columns: 26px minmax(170px,280px);
  align-items: center;
  gap: 10px;
  pointer-events: none;
  color: rgba(242,238,228,.52);
  text-transform: uppercase;
  mix-blend-mode: screen;
}
.whisper-feed::before {
  content: "";
  position: absolute;
  inset: -12px -14px;
  border-top: 1px solid rgba(201,20,44,.24);
  border-right: 1px solid rgba(201,20,44,.12);
  opacity: .7;
}
.whisper-feed span { color: var(--red); font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.whisper-feed p { margin: 0; font-size: 8px; font-weight: 900; letter-spacing: .2em; line-height: 1.6; }
.whisper-feed.is-changing p { animation: whisperSwitch .34s steps(2,end); }
@keyframes whisperSwitch { 0% { opacity: .15; transform: translateX(8px); } 40% { opacity: 1; transform: translateX(-3px); } 100% { opacity: .58; transform: translateX(0); } }

.seal-overlay {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: rgba(0,0,0,.94);
  opacity: 0;
  visibility: hidden;
}
.seal-overlay__stamp {
  width: min(72vw, 560px);
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  border: 8px double var(--red);
  color: var(--red);
  transform: rotate(-8deg) scale(1.45);
  box-shadow: inset 0 0 0 9px #000, inset 0 0 0 11px rgba(201,20,44,.55);
  background: #050505;
}
.seal-overlay__stamp span { font-family: serif; font-size: clamp(5rem,15vw,10rem); line-height: .7; }
.seal-overlay__stamp strong { margin-top: 34px; font-size: clamp(1.2rem,3vw,2.6rem); letter-spacing: .16em; }
.seal-overlay__stamp small { margin-top: 10px; color: var(--bone); letter-spacing: .4em; }
.seal-overlay.is-active { visibility: visible; animation: sealHit 1.15s steps(2,end) forwards; }
@keyframes sealHit {
  0% { opacity: 0; filter: invert(1); }
  10%,74% { opacity: 1; filter: invert(0); }
  20% { transform: translateX(-8px); }
  28% { transform: translateX(7px); }
  82% { opacity: .75; }
  100% { opacity: 0; visibility: hidden; }
}
.seal-overlay.is-active .seal-overlay__stamp { animation: stampLand .48s cubic-bezier(.12,.74,.13,1) both; }
@keyframes stampLand { from { transform: rotate(-18deg) scale(2.2); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }

.file-card { transform-style: preserve-3d; will-change: transform; }
.file-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--cx,50%) var(--cy,50%), rgba(201,20,44,.16), transparent 32%);
  opacity: 0;
  transition: opacity .25s ease;
  mix-blend-mode: screen;
}
.file-card:hover::after { opacity: 1; }

.hero__kanji { animation: kanjiBreath 7s ease-in-out infinite; }
@keyframes kanjiBreath { 0%,100% { opacity: .035; transform: scale(1); } 50% { opacity: .072; transform: scale(1.025); } }

.boot {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
  transition: opacity .2s linear, visibility .2s linear;
}
.boot.is-gone { opacity: 0; visibility: hidden; }
.boot__slice {
  position: absolute;
  left: 0;
  width: 100%;
  height: 51%;
  background: #000;
  z-index: 3;
  transition: transform 1s var(--ease);
}
.boot__slice--top { top: 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.boot__slice--bottom { bottom: 0; border-top: 1px solid rgba(255,255,255,.14); }
.boot.is-opening .boot__slice--top { transform: translateY(-103%); }
.boot.is-opening .boot__slice--bottom { transform: translateY(103%); }
.boot__eye {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.04);
  animation: eyeWake 1.35s steps(2,end) .3s forwards;
}
.boot__eye::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #000 0 31%, transparent 44% 56%, #000 69% 100%);
}
.boot__eye img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.35); }
.boot__copy {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 9px;
  text-align: center;
  letter-spacing: .2em;
}
.boot__copy span { color: var(--red); font-size: clamp(2rem, 7vw, 7rem); font-weight: 900; line-height: .8; }
.boot__copy strong { font-size: 12px; }
.boot__copy small { color: #777; font-size: 9px; }
@keyframes eyeWake {
  0%, 20% { opacity: 0; clip-path: inset(49% 0 49% 0); }
  35% { opacity: .9; clip-path: inset(36% 0 36% 0); }
  52% { opacity: 0; clip-path: inset(49% 0 49% 0); }
  68%,100% { opacity: .8; clip-path: inset(21% 0 21% 0); }
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 62px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(5,5,5,.76);
  backdrop-filter: blur(12px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
}
.topbar__status { display: flex; align-items: center; gap: 10px; }
.topbar__status i { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 14px var(--red); animation: blink 1.1s steps(2,end) infinite; }
@keyframes blink { 50% { opacity: .2; } }

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5,5,5,.99) 0 18%, transparent 42% 62%, rgba(5,5,5,.96) 86% 100%),
    radial-gradient(circle at 50% 46%, #1a1a1a, #050505 68%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255,255,255,.018) 4px 5px);
}
.hero__kanji {
  position: absolute;
  right: -4vw;
  top: 1vh;
  z-index: -1;
  color: rgba(255,255,255,.025);
  font-family: serif;
  font-size: min(83vw, 1000px);
  line-height: .9;
  user-select: none;
}
.hero__panel {
  position: absolute;
  overflow: hidden;
  border: 9px solid #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
  transition: transform .12s linear;
}
.hero__panel img { height: 100%; object-fit: cover; }
.hero__panel--center { width: min(42vw, 660px); aspect-ratio: 1 / 1; left: 50%; top: 51%; transform: translate(-50%,-50%) rotate(-1deg); z-index: 2; }
.hero__panel--left { width: min(24vw, 370px); aspect-ratio: .78; left: 5vw; top: 14vh; transform: rotate(-5deg); filter: grayscale(1) contrast(1.12); opacity: .8; }
.hero__panel--right { width: min(24vw, 390px); aspect-ratio: .82; right: 3.5vw; bottom: 4vh; transform: rotate(4deg); filter: grayscale(1) contrast(1.15); opacity: .72; }
.hero__content {
  position: absolute;
  left: clamp(30px, 6vw, 100px);
  bottom: clamp(50px, 8vh, 110px);
  z-index: 8;
  width: min(700px, 72vw);
}
.eyebrow { margin: 0 0 12px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .24em; }
.hero h1 {
  margin: 0;
  font-size: clamp(7rem, 18vw, 19rem);
  line-height: .68;
  letter-spacing: -.08em;
  font-weight: 950;
  color: var(--bone);
  text-shadow: 9px 9px 0 #000;
}
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--bone); }
.hero__line { margin: 26px 0 20px; max-width: 520px; font-family: Georgia, serif; font-size: clamp(1rem, 1.6vw, 1.45rem); font-style: italic; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__meta span { padding: 10px 13px; border: 1px solid var(--line); background: rgba(5,5,5,.8); font-size: 9px; letter-spacing: .11em; }
.hero__meta b { color: var(--red); margin-right: 6px; }
.hero__warning { position: absolute; right: 24px; top: 50%; writing-mode: vertical-rl; letter-spacing: .28em; font-size: 8px; color: #666; }
.hero__flash {
  position: absolute;
  inset: 0;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  background: #000;
}
.hero__flash img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(2); }
.hero__flash.flash { animation: badFrame .34s steps(2,end); }
@keyframes badFrame { 0%,100% { opacity: 0; } 10%,22% { opacity: .85; filter: invert(1); } 38% { opacity: .3; } }

.manifesto {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(100px, 13vw, 210px) 0;
  display: grid;
  grid-template-columns: 100px 1fr minmax(360px, .9fr);
  gap: clamp(30px, 6vw, 100px);
  align-items: center;
}
.manifesto__index { align-self: start; color: var(--red); font-family: serif; font-size: 28px; line-height: 1.05; }
.manifesto__label { color: #777; font-size: 9px; letter-spacing: .26em; }
.manifesto h2,
.archive h2,
.signal h2,
.faq h2,
.exit h2 {
  margin: 0;
  font-size: clamp(3rem, 6vw, 7.2rem);
  line-height: .82;
  letter-spacing: -.055em;
  font-weight: 950;
}
.manifesto__copy > p:last-child { max-width: 650px; margin-top: 30px; color: #aaa; font-family: Georgia, serif; font-size: 17px; line-height: 1.7; }
.manifesto__image { margin: 0; border: 8px solid #000; outline: 1px solid var(--line); transform: rotate(2deg); }
.manifesto__image img { aspect-ratio: 1; object-fit: cover; filter: grayscale(1) contrast(1.2); }
.manifesto__image figcaption { padding: 12px; background: #0b0b0b; color: #888; font-size: 8px; letter-spacing: .16em; }

.archive { padding: 120px 0 170px; overflow: hidden; background: var(--paper); color: #050505; }
.archive__header { width: min(var(--max), calc(100% - 96px)); margin: 0 auto 55px; }
.archive__header p { font-size: 9px; letter-spacing: .25em; }
.archive__header h2 { max-width: 1020px; }
.archive__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 30vw);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
  padding: 10px max(48px, calc((100vw - var(--max))/2)) 32px;
}
.archive__track::-webkit-scrollbar { display: none; }
.file-card {
  position: relative;
  min-height: 500px;
  scroll-snap-align: center;
  background: #000;
  border: 10px solid #000;
  overflow: hidden;
  transform: rotate(-1deg);
}
.file-card:nth-child(even) { transform: translateY(28px) rotate(1.4deg); }
.file-card img { height: 100%; object-fit: cover; transition: filter .35s ease, transform .7s var(--ease); }
.file-card:hover img { filter: grayscale(1) contrast(1.3); transform: scale(1.035); }
.file-card div { position: absolute; inset: auto 0 0; padding: 18px; display: flex; justify-content: space-between; gap: 20px; background: #000; color: #fff; font-size: 9px; letter-spacing: .16em; }
.file-card b { color: var(--red); }

.signal {
  position: relative;
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  padding: clamp(110px, 13vw, 200px) 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(50px, 9vw, 150px);
  align-items: center;
}
.signal__portrait { position: relative; }
.signal__portrait::before { content: ""; position: absolute; inset: -18px 22px 18px -18px; border: 1px solid var(--red); z-index: -1; }
.signal__portrait img { filter: grayscale(1) contrast(1.25); }
.signal__copy span { color: var(--red); font-size: 9px; font-weight: 900; letter-spacing: .25em; }
.signal__copy p { margin-top: 30px; color: #999; font-family: Georgia, serif; font-size: 17px; }

.faq {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
  padding: 80px 0 160px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(60px, 9vw, 140px);
}
.faq__title > span { color: var(--red); font-size: 9px; letter-spacing: .24em; }
.faq__title h2 { margin-top: 18px; font-size: clamp(3rem, 5vw, 6rem); }
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary { list-style: none; min-height: 98px; display: grid; grid-template-columns: 42px 1fr 26px; align-items: center; gap: 16px; cursor: pointer; font-size: clamp(1.1rem, 2vw, 2rem); font-weight: 900; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary > span { color: var(--red); font-size: 9px; letter-spacing: .12em; }
.faq__list summary i { position: relative; width: 20px; height: 20px; }
.faq__list summary i::before, .faq__list summary i::after { content: ""; position: absolute; left: 0; top: 9px; width: 20px; height: 1px; background: #aaa; }
.faq__list summary i::after { transform: rotate(90deg); transition: transform .2s ease; }
.faq__list details[open] summary i::after { transform: rotate(0); }
.faq__list details p { margin: -10px 0 28px 58px; color: #999; max-width: 680px; line-height: 1.65; }

.exit {
  position: relative;
  min-height: 92svh;
  padding: 150px 48px;
  display: grid;
  place-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--paper);
  color: #050505;
}
.exit__ghost { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%); font-family: serif; font-size: min(80vw, 1000px); line-height: .7; color: rgba(5,5,5,.045); }
.exit > p { position: relative; z-index: 1; margin: 0 0 18px; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .28em; }
.exit h2 { position: relative; z-index: 1; font-size: clamp(4rem, 9vw, 11rem); }
.exit__links { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 52px; }
.exit__links a { min-width: 220px; padding: 19px 22px; display: flex; justify-content: space-between; border: 2px solid #050505; text-decoration: none; font-size: 11px; font-weight: 900; letter-spacing: .16em; transition: .25s var(--ease); }
.exit__links a:hover { background: #050505; color: var(--paper); transform: translateY(-4px); }

footer { height: 92px; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; color: #777; font-size: 9px; letter-spacing: .16em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0) rotate(0); }

@media (max-width: 900px) {
  .topbar { padding: 0 18px; }
  .hero__panel--left, .hero__panel--right { display: none; }
  .hero__panel--center { width: 88vw; top: 42%; opacity: .56; }
  .hero__content { left: 22px; bottom: 58px; width: calc(100% - 44px); }
  .hero h1 { font-size: clamp(6rem, 31vw, 10rem); }
  .hero__line { max-width: 330px; }
  .manifesto, .signal, .faq { width: calc(100% - 40px); grid-template-columns: 1fr; }
  .manifesto { padding: 100px 0; }
  .manifesto__index { display: none; }
  .archive__header { width: calc(100% - 40px); }
  .archive__track { grid-auto-columns: 80vw; padding-inline: 20px; }
  .signal { padding: 100px 0; }
  .signal__portrait { max-width: 580px; }
  .faq { padding-bottom: 100px; }
  .exit { padding-inline: 20px; }
  footer { padding-inline: 18px; gap: 20px; }
}

@media (max-width: 560px) {
  .topbar__status { font-size: 0; }
  .hero__meta { gap: 5px; }
  .hero__meta span { padding: 8px; font-size: 8px; }
  .manifesto h2, .archive h2, .signal h2, .faq h2 { font-size: 2.85rem; }
  .archive { padding: 90px 0 120px; }
  .file-card { min-height: 420px; }
  .faq__list summary { min-height: 84px; grid-template-columns: 30px 1fr 22px; font-size: 1.05rem; }
  .faq__list details p { margin-left: 46px; }
  .exit h2 { font-size: 3.8rem; }
  footer { flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .cursor-shadow { display: none; }
}

/* --- YAMI V2: forbidden archive enhancements --- */
.scroll-spine {
  position: fixed;
  z-index: 58;
  left: 15px;
  top: 82px;
  bottom: 22px;
  width: 12px;
  pointer-events: none;
}
.scroll-spine::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 28px;
  border-left: 1px solid rgba(255,255,255,.12);
}
.scroll-spine span {
  position: absolute;
  left: 4px;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--red);
  box-shadow: 0 0 14px rgba(201,20,44,.55);
}
.scroll-spine b {
  position: absolute;
  bottom: 0;
  left: -1px;
  color: var(--red);
  font-family: serif;
  font-size: 15px;
}

.watcher {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  background: #000;
  opacity: 0;
  visibility: hidden;
}
.watcher img {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.9) brightness(.42);
  transform: scale(1.08);
}
.watcher::before,
.watcher::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  width: 100%;
  height: 39%;
  background: #000;
}
.watcher::before { top: 0; }
.watcher::after { bottom: 0; }
.watcher__copy {
  position: relative;
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  mix-blend-mode: screen;
}
.watcher__copy span {
  color: var(--red);
  font-family: serif;
  font-size: clamp(3rem, 9vw, 9rem);
  line-height: .75;
}
.watcher__copy strong {
  font-size: clamp(.8rem, 1.4vw, 1.1rem);
  letter-spacing: .48em;
}
.watcher.is-active {
  visibility: visible;
  animation: watcherHit .72s steps(2,end) forwards;
}
@keyframes watcherHit {
  0% { opacity: 0; filter: invert(0); }
  10% { opacity: 1; filter: invert(1); }
  18% { opacity: .1; filter: invert(0); }
  28%, 72% { opacity: 1; filter: invert(0); }
  82% { opacity: .7; transform: translateX(-5px); }
  88% { opacity: .95; transform: translateX(6px); }
  100% { opacity: 0; visibility: hidden; transform: translateX(0); }
}

.hero__panel--center {
  --rx: 50%;
  --ry: 50%;
}
.hero__panel--center .hero__base {
  filter: grayscale(1) contrast(1.25) brightness(.82);
}
.hero__reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(0 at var(--rx) var(--ry));
  transition: clip-path .22s var(--ease), filter .2s ease;
  filter: saturate(1.15) contrast(1.05);
}
.hero__panel--center:hover .hero__reveal,
.hero__panel--center.is-revealed .hero__reveal {
  clip-path: circle(135px at var(--rx) var(--ry));
}
.hero__panel-code {
  position: absolute;
  z-index: 4;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 10px;
  background: rgba(0,0,0,.78);
  color: rgba(255,255,255,.65);
  border-top: 1px solid rgba(255,255,255,.22);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
  backdrop-filter: blur(4px);
}
.hero__panel-code b { color: var(--red); }
.hero__scratch {
  position: absolute;
  z-index: 7;
  left: 50%;
  top: -8%;
  width: 2px;
  height: 116%;
  background: linear-gradient(to bottom, transparent, rgba(201,20,44,.1) 18%, var(--red) 50%, rgba(201,20,44,.1) 82%, transparent);
  box-shadow: 0 0 22px rgba(201,20,44,.32);
  transform: rotate(12deg);
  opacity: .52;
  animation: scratchDrift 8s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__scratch::before,
.hero__scratch::after {
  content: "";
  position: absolute;
  top: 13%;
  width: 1px;
  height: 72%;
  background: rgba(255,255,255,.14);
}
.hero__scratch::before { left: -9px; }
.hero__scratch::after { right: -13px; }
@keyframes scratchDrift {
  from { transform: translateX(-28vw) rotate(12deg); opacity: .16; }
  48% { opacity: .72; }
  to { transform: translateX(29vw) rotate(12deg); opacity: .14; }
}

.hero h1 {
  position: relative;
  isolation: isolate;
  text-shadow: 7px 7px 0 #000, -1px 0 0 rgba(201,20,44,.35);
}
.hero h1::before {
  content: "闇";
  position: absolute;
  z-index: -1;
  left: 58%;
  top: 44%;
  transform: translate(-50%,-50%) rotate(-7deg) scale(.82);
  color: transparent;
  -webkit-text-stroke: 1px rgba(201,20,44,.18);
  font-family: serif;
  font-size: .9em;
  opacity: .58;
  pointer-events: none;
}
.hero h1.is-disturbed { animation: titleDisturb .44s steps(2,end); }
@keyframes titleDisturb {
  0%,100% { transform: translate(0); filter: none; }
  18% { transform: translate(-4px,2px); filter: contrast(1.5); }
  35% { transform: translate(5px,-1px); }
  52% { transform: translate(-2px,0); }
}

.interruption {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.interruption::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.022) 5px 6px),
    radial-gradient(circle at 50% 50%, rgba(201,20,44,.11), transparent 46%);
}
.interruption__frame {
  width: min(48vw, 660px);
  margin: 0;
  border: 12px solid #080808;
  outline: 1px solid rgba(255,255,255,.18);
  transform: rotate(-1.7deg);
  box-shadow: 0 45px 100px rgba(0,0,0,.8);
}
.interruption__frame img {
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1) contrast(1.35) brightness(.65);
  transition: filter .5s ease, transform .7s var(--ease);
}
.interruption:hover .interruption__frame img {
  filter: grayscale(.72) contrast(1.3) brightness(.78);
  transform: scale(1.02);
}
.interruption__word {
  position: absolute;
  z-index: 3;
  top: 50%;
  font-size: clamp(5rem, 15vw, 15rem);
  line-height: .72;
  font-weight: 950;
  letter-spacing: -.08em;
  color: var(--bone);
  mix-blend-mode: difference;
  pointer-events: none;
}
.interruption__word--left { left: 3vw; transform: translateY(-58%) rotate(-3deg); }
.interruption__word--right { right: 2vw; transform: translateY(-41%) rotate(3deg); }
.interruption > p {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  width: min(90%, 850px);
  margin: 0;
  text-align: center;
  color: #aaa;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: .12em;
}
.interruption > span {
  position: absolute;
  right: 22px;
  top: 50%;
  writing-mode: vertical-rl;
  color: var(--red);
  font-family: serif;
  font-size: 18px;
  letter-spacing: .3em;
}

.archive {
  position: relative;
}
.archive::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 86px;
  background:
    radial-gradient(28px 65px at 4% 0, #000 0 64%, transparent 67%),
    radial-gradient(42px 84px at 12% 0, #000 0 62%, transparent 65%),
    radial-gradient(25px 60px at 21% 0, #000 0 61%, transparent 64%),
    radial-gradient(48px 92px at 34% 0, #000 0 63%, transparent 66%),
    radial-gradient(31px 78px at 48% 0, #000 0 62%, transparent 65%),
    radial-gradient(46px 91px at 61% 0, #000 0 62%, transparent 65%),
    radial-gradient(29px 68px at 74% 0, #000 0 61%, transparent 64%),
    radial-gradient(43px 90px at 87% 0, #000 0 62%, transparent 65%),
    radial-gradient(30px 70px at 98% 0, #000 0 62%, transparent 65%);
  pointer-events: none;
}
.file-card img { filter: grayscale(1) contrast(1.22); }
.file-card:hover img { filter: grayscale(0) contrast(1.08) saturate(.92); }

@media (max-width: 900px) {
  .scroll-spine { display: none; }
  .hero__panel--center:hover .hero__reveal { clip-path: circle(0 at var(--rx) var(--ry)); }
  .hero__panel--center.is-revealed .hero__reveal { clip-path: circle(44vw at var(--rx) var(--ry)); }
  .hero__panel-code { font-size: 7px; letter-spacing: .12em; }
  .interruption__frame { width: min(78vw, 620px); }
  .interruption__word { font-size: clamp(4rem, 21vw, 9rem); }
  .interruption__word--left { left: -2vw; top: 26%; }
  .interruption__word--right { right: -2vw; top: 69%; }
  .interruption > p { bottom: 7vh; font-size: 12px; }
}

@media (max-width: 560px) {
  .interruption { min-height: 90svh; }
  .interruption__frame { width: 82vw; border-width: 8px; }
  .interruption__word { font-size: 22vw; }
  .interruption > span { right: 8px; font-size: 13px; }
  .watcher__copy strong { letter-spacing: .28em; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__scratch,
  .watcher { display: none; }
}

.hero h1.cursor-target { display: inline-block; }
.hero h1.cursor-target:hover span { -webkit-text-stroke-color: rgba(201,20,44,.88); }
@media (pointer: coarse), (max-width: 900px) {
  body, a, button, summary, .cursor-target { cursor: auto; }
  .yami-cursor, .cursor-shadow, .whisper-feed { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ink-mote, .ink-bloom, .seal-overlay { display: none; }
}

/* =========================================================
   YAMI FINAL — archive protection, living cursor, 10 events
   ========================================================= */

img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Replace the crosshair with a small forbidden Japanese warning. */
.yami-cursor {
  width: auto;
  height: auto;
  min-width: 54px;
  padding: 7px 9px 6px;
  display: grid;
  justify-items: center;
  gap: 2px;
  background: rgba(4,4,4,.88);
  border: 1px solid rgba(201,20,44,.72);
  border-radius: 1px;
  transform: translate(14px, 14px) rotate(-3deg);
  color: var(--red);
  box-shadow: 0 0 0 1px rgba(0,0,0,.9), 0 8px 28px rgba(0,0,0,.55);
  transition: opacity .18s ease, transform .16s ease, background .16s ease, color .16s ease;
  filter: none;
}
.yami-cursor::before,
.yami-cursor::after,
.yami-cursor__ring,
.yami-cursor__dot,
.yami-cursor > b { display: none !important; }
.yami-cursor__glyph {
  writing-mode: vertical-rl;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .15em;
}
.yami-cursor small {
  color: rgba(242,238,228,.56);
  font-size: 5px;
  font-weight: 900;
  letter-spacing: .14em;
  white-space: nowrap;
}
.yami-cursor.is-target {
  width: auto;
  height: auto;
  transform: translate(12px, 12px) rotate(2deg) scale(1.08);
  background: var(--red);
  color: #050505;
}
.yami-cursor.is-target small { color: rgba(5,5,5,.72); }
.yami-cursor.is-down { transform: translate(12px,12px) rotate(-8deg) scale(.86); }

/* Browser-level deterrence only: the original files remain accessible to a determined visitor. */
.hero__panel,
.manifesto__image,
.interruption__frame,
.file-card,
.signal__portrait {
  -webkit-touch-callout: none;
  user-select: none;
}
.file-card::before,
.manifesto__image::after,
.interruption__frame::after,
.signal__portrait::after {
  content: "ARCHIVE PROPERTY / 複製禁止";
  position: absolute;
  z-index: 8;
  right: 10px;
  top: 10px;
  padding: 6px 7px;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.42);
  border: 1px solid rgba(255,255,255,.12);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .16em;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.file-card:hover::before,
.manifesto__image:hover::after,
.interruption__frame:hover::after,
.signal__portrait:hover::after { opacity: 1; }
.manifesto__image,
.interruption__frame,
.signal__portrait { position: relative; }

/* Clicking an image causes the whole archive to break for a moment. */
body.site-glitching main {
  animation: siteGlitch .58s steps(2,end);
}
body.site-glitching::before,
body.site-glitching::after {
  content: "";
  position: fixed;
  z-index: 210;
  inset: 0;
  pointer-events: none;
}
body.site-glitching::before {
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(201,20,44,.27) 8% 9%, transparent 9% 31%, rgba(83,109,170,.26) 31% 33%, transparent 33% 72%, rgba(255,255,255,.1) 72% 73%, transparent 73%),
    repeating-linear-gradient(0deg, transparent 0 7px, rgba(255,255,255,.08) 7px 8px);
  mix-blend-mode: screen;
  animation: glitchCurtain .58s steps(3,end);
}
body.site-glitching::after {
  background: radial-gradient(circle at var(--gx,50%) var(--gy,50%), transparent 0 5%, rgba(0,0,0,.96) 14% 100%);
  animation: glitchIris .58s ease-out;
}
@keyframes siteGlitch {
  0%,100% { transform:none; filter:none; }
  12% { transform: translate(-9px,3px) skewX(1deg); filter: invert(1) contrast(1.8); }
  27% { transform: translate(8px,-2px); filter: hue-rotate(155deg) contrast(1.5); }
  49% { transform: translate(-3px,0); clip-path: inset(12% 0 44% 0); }
  70% { transform: translate(4px,2px); clip-path: inset(62% 0 8% 0); }
}
@keyframes glitchCurtain {
  0% { opacity:0; transform:translateX(0); }
  15% { opacity:1; transform:translateX(-2%); }
  45% { transform:translateX(3%); }
  100% { opacity:0; transform:translateX(0); }
}
@keyframes glitchIris { 0% { opacity:0; } 30% { opacity:1; } 100% { opacity:0; } }

/* Ten one-time scroll events share one flexible overlay. */
.surprise-overlay {
  position: fixed;
  z-index: 205;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: #030303;
}
.surprise-overlay > img {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  object-fit: cover;
  opacity: .16;
  filter: grayscale(1) contrast(1.8) brightness(.42);
}
.surprise-overlay__scan {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255,255,255,.04) 5px 6px),
    linear-gradient(90deg, transparent 0 48%, rgba(201,20,44,.34) 49% 50%, transparent 51%);
  mix-blend-mode: screen;
}
.surprise-overlay__copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 12px;
  max-width: 88vw;
  text-align: center;
}
.surprise-overlay__copy span {
  color: var(--red);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(4rem,14vw,13rem);
  line-height: .68;
}
.surprise-overlay__copy strong {
  color: var(--bone);
  font-size: clamp(1.1rem,3vw,3.3rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.surprise-overlay__copy small {
  color: rgba(242,238,228,.48);
  font-size: 8px;
  letter-spacing: .35em;
}
.surprise-overlay.is-active {
  visibility: visible;
  animation: surpriseBase var(--event-duration, .88s) steps(2,end) forwards;
}
@keyframes surpriseBase {
  0% { opacity:0; }
  9%,72% { opacity:1; }
  18% { transform:translateX(-7px); }
  28% { transform:translateX(6px); }
  100% { opacity:0; visibility:hidden; transform:none; }
}

.surprise-overlay[data-mode="slit"]::before,
.surprise-overlay[data-mode="slit"]::after {
  content:""; position:absolute; z-index:4; left:0; width:100%; height:43%; background:#000;
}
.surprise-overlay[data-mode="slit"]::before { top:0; }
.surprise-overlay[data-mode="slit"]::after { bottom:0; }
.surprise-overlay[data-mode="slit"] > img { opacity:.72; filter:grayscale(1) contrast(2.1) brightness(.55); }

.surprise-overlay[data-mode="paper"] { background: var(--paper); }
.surprise-overlay[data-mode="paper"] .surprise-overlay__copy strong { color:#050505; }
.surprise-overlay[data-mode="paper"] .surprise-overlay__copy small { color:#333; }
.surprise-overlay[data-mode="paper"] .surprise-overlay__scan { background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(0,0,0,.06) 16px 17px); }
.surprise-overlay[data-mode="paper"] > img { opacity:.08; filter:grayscale(1) contrast(2); }

.surprise-overlay[data-mode="red"] { background: var(--red); }
.surprise-overlay[data-mode="red"] .surprise-overlay__copy span,
.surprise-overlay[data-mode="red"] .surprise-overlay__copy strong { color:#050505; }
.surprise-overlay[data-mode="red"] .surprise-overlay__copy small { color:rgba(5,5,5,.58); }
.surprise-overlay[data-mode="red"] > img { opacity:.12; mix-blend-mode:multiply; }

.surprise-overlay[data-mode="void"] .surprise-overlay__scan { background: radial-gradient(circle at 50% 50%, transparent 0 7%, #000 18% 100%); }
.surprise-overlay[data-mode="void"] > img { opacity:.75; filter:grayscale(1) contrast(2.4) brightness(.25); }

.surprise-overlay[data-mode="number"] .surprise-overlay__copy span { font-size:min(37vw,520px); color:transparent; -webkit-text-stroke:2px var(--red); }
.surprise-overlay[data-mode="number"] > img { opacity:.06; }

/* FAQ becomes a classified interrogation board rather than a normal accordion. */
.faq {
  position: relative;
  padding-top: 130px;
  padding-bottom: 190px;
  grid-template-columns: .7fr 1.3fr;
}
.faq::before {
  content:"CONFIDENTIAL / CONFIDENTIAL / CONFIDENTIAL";
  position:absolute;
  left:0;
  top:52px;
  color:rgba(201,20,44,.26);
  font-size:8px;
  font-weight:900;
  letter-spacing:.58em;
  white-space:nowrap;
}
.faq__title { position:sticky; top:120px; align-self:start; }
.faq__title h2 {
  white-space:pre-line;
  font-size:clamp(3.2rem,5.4vw,6.5rem);
}
.faq__title h2 em {
  display:block;
  margin-top:12px;
  color:transparent;
  -webkit-text-stroke:1px rgba(242,238,228,.72);
  font-style:normal;
}
.faq__title > p {
  max-width:420px;
  margin-top:28px;
  color:#777;
  font-family:Georgia,serif;
  line-height:1.7;
}
.faq__list { counter-reset: interrogation; }
.faq__list details {
  counter-increment: interrogation;
  position:relative;
  border:1px solid rgba(242,238,228,.16);
  border-bottom:0;
  background:linear-gradient(110deg,rgba(255,255,255,.025),transparent 55%);
  overflow:hidden;
}
.faq__list details:last-child { border-bottom:1px solid rgba(242,238,228,.16); }
.faq__list details::before {
  content:"CASE " counter(interrogation, decimal-leading-zero);
  position:absolute;
  right:18px;
  top:12px;
  color:rgba(201,20,44,.28);
  font-size:7px;
  font-weight:900;
  letter-spacing:.18em;
}
.faq__list summary {
  min-height:116px;
  grid-template-columns:110px 1fr 26px;
  padding:0 22px;
  font-family:Georgia,serif;
  font-weight:700;
  transition:background .22s ease,color .22s ease;
}
.faq__list summary:hover { background:var(--paper); color:#050505; }
.faq__list summary > span {
  color:var(--red);
  font-family:Arial,Helvetica,sans-serif;
  font-size:8px;
}
.faq__list details p {
  position:relative;
  max-width:none;
  margin:0;
  padding:26px 64px 34px 154px;
  color:#a6a6a6;
  border-top:1px dashed rgba(242,238,228,.15);
  font-family:"Courier New",monospace;
  font-size:13px;
  line-height:1.9;
}
.faq__list details p::before {
  content:"TRANSCRIPT";
  position:absolute;
  left:22px;
  top:30px;
  color:rgba(201,20,44,.55);
  font-size:7px;
  font-weight:900;
  letter-spacing:.2em;
}
.faq__list details p b {
  display:inline-block;
  padding:0 7px;
  background:#d8d3c9;
  color:#050505;
  letter-spacing:.12em;
}
.faq__list details[open] { box-shadow:inset 4px 0 0 var(--red); }
.faq__list details[open] summary { color:var(--bone); background:rgba(201,20,44,.06); }
.faq__list details[open] summary::after {
  content:"RECORDED";
  position:absolute;
  right:58px;
  bottom:10px;
  color:rgba(201,20,44,.7);
  font:900 6px Arial,sans-serif;
  letter-spacing:.24em;
}

/* Event-specific page states. */
body.event-invert main { filter:invert(1) contrast(1.4); }
body.event-shift main { animation:pageShift .7s steps(3,end); }
body.event-bleed::after {
  content:"";
  position:fixed;
  z-index:170;
  inset:0;
  pointer-events:none;
  background:linear-gradient(to bottom,rgba(201,20,44,.92),transparent 68%);
  animation:bleedAway .9s ease-out forwards;
}
@keyframes pageShift {
  0%,100%{transform:none;clip-path:none}
  18%{transform:translateX(-12px);clip-path:inset(0 0 68% 0)}
  35%{transform:translateX(9px);clip-path:inset(35% 0 33% 0)}
  62%{transform:translateX(-4px);clip-path:inset(72% 0 0 0)}
}
@keyframes bleedAway { from{opacity:1;transform:translateY(-70%)} to{opacity:0;transform:translateY(70%)} }

@media (max-width:900px) {
  .faq { grid-template-columns:1fr; }
  .faq__title { position:static; }
  .faq__list summary { grid-template-columns:80px 1fr 22px; padding:0 14px; }
  .faq__list details p { padding:24px 22px 30px; }
  .faq__list details p::before { position:static; display:block; margin-bottom:14px; }
}

@media (max-width:560px) {
  .faq::before { letter-spacing:.22em; }
  .faq__list summary { min-height:100px; grid-template-columns:64px 1fr 20px; font-size:1rem; }
  .surprise-overlay__copy strong { letter-spacing:.08em; }
}

@media (prefers-reduced-motion:reduce) {
  .surprise-overlay,
  body.site-glitching::before,
  body.site-glitching::after { display:none !important; }
}
