:root {
  --bg: #FBF7F0;
  --fg: #1F1A17;
  --accent: #CC6E5D;
  --d: 0;
  --card: color-mix(in srgb, var(--bg) 72%, white);
  --line: color-mix(in srgb, var(--fg) 13%, transparent);
  --muted: color-mix(in srgb, var(--fg) 62%, transparent);
  --sans: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.gated { overflow: hidden; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section { position: relative; }

/* ---------- WELCOME GATE ---------- */
#entryGate {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 35%, #FFFBF5 0%, #F7EFE4 65%, #EFE4D6 100%);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.65s;
}
#entryGate.opening {
  opacity: 0;
  transform: scale(1.04);
  pointer-events: none;
  visibility: hidden;
}
.gate-card {
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: 44px 32px 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 26, 23, 0.08);
  box-shadow: 0 30px 70px -30px rgba(100, 55, 30, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.gate-mark {
  width: 68px;
  height: 68px;
  margin: 0 auto 18px;
  color: #cc6e5d;
  animation: breathe 4s ease-in-out infinite;
}
.gate-mark svg { width: 100%; height: 100%; display: block; }
.gate-card h2 {
  font-size: 28px;
  margin: 10px 0 10px;
  letter-spacing: -0.02em;
}
.gate-sub {
  font-size: 15px;
  color: rgba(31, 26, 23, 0.64);
  margin-bottom: 26px;
}
#enterBtn {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
}
.gate-silent {
  margin-top: 14px;
  background: none;
  border: 0;
  font: 500 13px var(--sans);
  color: rgba(31, 26, 23, 0.56);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.gate-silent:hover { color: rgba(31, 26, 23, 0.88); }

/* ---------- CRITTERS CANVAS ---------- */
#critterField {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  appearance: none;
  background: none;
  border: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  user-select: none;
}
.logo svg {
  width: 30px;
  height: 30px;
  overflow: visible;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
.logo:not([data-critters="hidden"]):hover svg {
  transform: translateY(-2px) rotate(-4deg) scale(1.06);
}
.logo[data-critters="hidden"] svg {
  opacity: 0.45;
  transform: translateY(2px) scale(0.92);
}
.logo .pm-eyes {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.logo.haunted .pm-eyes {
  opacity: 1;
}
.nav-exits {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-txt {
  appearance: none;
  background: none;
  border: 0;
  font: 500 15px var(--sans);
  color: var(--muted);
  cursor: pointer;
  padding: 6px 2px;
}
.nav-txt:hover { color: var(--fg); }
.nav-opt {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  max-width: 180px;
  transition: opacity 0.55s ease, transform 0.55s ease, filter 0.55s ease, max-width 0.55s ease, padding 0.55s ease, margin 0.55s ease, color 0.2s ease;
}
.nav-opt.vanishing {
  color: #b5130a !important;
  text-decoration: line-through;
  filter: blur(2.5px);
  opacity: 0.22;
  transform: translateY(-3px) scale(0.92);
  pointer-events: none;
}
.nav-opt.vanished {
  opacity: 0;
  max-width: 0;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
  border-width: 0 !important;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}
.nav-leave {
  padding: 9px 18px;
  font-size: 14px;
}
.nav.lock-jolt {
  border-bottom-color: rgba(196, 22, 16, 0.72);
  box-shadow: 0 6px 24px -4px rgba(185, 24, 18, 0.52);
  animation: lockRecoil 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes lockRecoil {
  0% { transform: translateY(-4px); }
  45% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, background-color 0.25s;
  box-shadow: 0 6px 20px -8px var(--accent);
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: none;
  border: 1.5px solid var(--line);
}
@media (max-width: 780px) {
  .nav-exits { gap: 12px; }
  .nav-txt { font-size: 13px; }
  #navToTop { display: none; }
  .nav-leave { padding: 7px 12px; font-size: 12px; }
}

/* ---------- HERO ---------- */
.hero { padding: 146px 0 86px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}
.pill {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
}
.pill b {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
}
h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 22px 0 20px;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.ctas { display: flex; gap: 16px; margin-top: 30px; flex-wrap: wrap; align-items: center; }
.scroll-cue {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.03em;
}
.tiny { font-size: 13px; color: var(--muted); margin-top: 16px; line-height: 1.6; }
.tiny button {
  background: none;
  border: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.device {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 32px;
  background: linear-gradient(145deg, #F9E3D8, #F4CFC0 42%, #F3E9DE);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent);
}
.hub {
  width: 48%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #efe6dc 62%, #d9cdc0);
  box-shadow: 0 30px 60px -20px rgba(120, 60, 30, 0.35), inset 0 -8px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  display: grid;
  place-items: center;
  transform: translate(-14%, -12%);
}
.hub::before {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204, 110, 93, 0.28), rgba(204, 110, 93, 0.04) 70%);
  box-shadow: 0 0 34px 8px rgba(204, 110, 93, 0.28);
  animation: breathe 4s ease-in-out infinite;
}
.hub-core {
  position: relative;
  z-index: 2;
  width: 56%;
  height: 56%;
  color: #cc6e5d;
  animation: breathe 4s ease-in-out infinite;
}
.hub-core svg { width: 100%; height: 100%; display: block; }
@keyframes breathe {
  50% { opacity: 0.65; transform: scale(0.93); }
}
.phone {
  position: absolute;
  right: 6%;
  bottom: 7%;
  width: 50%;
  background: #fff;
  border-radius: 20px;
  padding: 15px 16px;
  box-shadow: 0 20px 50px -18px rgba(60, 30, 10, 0.32);
  font-size: 13px;
  color: #1F1A17;
}
.phone h4 { font-size: 14px; margin-bottom: 8px; }
.row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid #f0e8df;
  gap: 8px;
}
.row span:last-child { font-weight: 700; }
.ok { color: #268c60; }
.bad { color: #b81f16; }
.logos { padding: 10px 0 80px; text-align: center; }
.logos p {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.08em;
}
.logos .row2 {
  display: flex;
  justify-content: center;
  gap: 42px;
  flex-wrap: wrap;
  margin-top: 22px;
  font-weight: 800;
  font-size: 18px;
  opacity: 0.48;
  letter-spacing: 0.04em;
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 116px; }
}

/* ---------- GENERIC ---------- */
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
}
h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.16;
  font-weight: 800;
  margin: 10px 0 14px;
}
.sec { padding: 104px 0; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
@media (max-width: 860px) { .grid3, .grid4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin: 16px 0 8px; }
.card p { color: var(--muted); font-size: 15px; }
.ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: 22px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* integrations */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 42px;
  max-width: 880px;
  margin-inline: auto;
}
.chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 14px;
}
.chip i {
  font-style: normal;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  font-size: 15px;
}
.chip.more { color: var(--muted); }

/* day timeline */
.day { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 8px; }
.slot { position: relative; padding: 0 0 28px 28px; }
.slot::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.slot b { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--accent); }
.slot p { font-size: 16px; font-weight: 600; margin-top: 2px; }
.slot.late { opacity: 0.44; }
.slot.late::before { background: #555; }
.slot.late b { color: var(--muted); }
.appcard {
  background: #fff;
  color: #1F1A17;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 30px 60px -30px rgba(60, 30, 10, 0.3);
}
.appcard h4 { font-size: 15px; margin-bottom: 14px; }
.bar { height: 10px; border-radius: 99px; background: #f1ebe4; margin: 8px 0 16px; overflow: hidden; }
.bar span { display: block; height: 100%; background: #CC6E5D; border-radius: 99px; }
.appcard small { color: #7d736a; font-size: 13px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.step { border-top: 2px solid var(--line); padding-top: 22px; }
.step .n { font-weight: 800; font-size: 42px; color: var(--accent); letter-spacing: -0.04em; font-family: var(--mono); }
.step h3 { font-size: 20px; margin: 4px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* testimonials & wrong avatar (paper effigy) */
.quote { display: flex; flex-direction: column; gap: 16px; }
.stars { color: #E29B26; letter-spacing: 2px; }
.who { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  flex: none;
}
.who small { display: block; color: var(--muted); font-size: 13px; }
.av.wrong {
  background: #140f0e !important;
  border: 1.5px solid #4a1c17;
  position: relative;
  overflow: hidden;
}
.av.wrong::before,
.av.wrong::after {
  content: "";
  position: absolute;
  top: 14px;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #f2ebe0;
}
.av.wrong::before { left: 11px; }
.av.wrong::after { right: 11px; }
.av.wrong .blush {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.av.wrong .blush::before,
.av.wrong .blush::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(185, 24, 18, 0.72);
}
.av.wrong .blush::before { left: 7px; }
.av.wrong .blush::after { right: 7px; }
.updated { font-size: 12px; color: var(--muted); font-style: italic; }

/* rules slip */
.rules-slip {
  max-width: 780px;
  margin: 34px auto 0;
  padding: 26px 28px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 52%, #efe5d5);
  border: 1.5px solid color-mix(in srgb, #9b221a 38%, var(--line));
  box-shadow: inset 0 0 0 4px color-mix(in srgb, #9b221a 8%, transparent);
  font-family: var(--serif);
}
.slip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px dashed color-mix(in srgb, #8e1e16 32%, transparent);
  font-weight: 700;
  font-size: 17px;
}
.stamp {
  font-size: 12px;
  font-weight: 900;
  color: #a61e16;
  border: 2px solid #a61e16;
  padding: 2px 8px;
  border-radius: 4px;
  transform: rotate(-5deg);
  letter-spacing: 0.14em;
  flex: none;
}
.rules-slip ol {
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 15px;
  color: color-mix(in srgb, var(--fg) 84%, transparent);
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 52px;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: var(--card);
}
.stat { padding: 30px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .v {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  white-space: nowrap;
}
.stat p { color: var(--muted); font-size: 14px; margin-top: 6px; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
}
.aside { margin-top: 26px; font-size: 15px; color: var(--muted); text-align: center; }

/* cctv */
.cctv {
  position: relative;
  max-width: 920px;
  margin: 48px auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0d0c0c;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65);
  border: 1px solid var(--line);
}
.cctv svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: grayscale(0.75) contrast(1.18) brightness(0.95);
  animation: flick 5s infinite steps(1);
}
.cctv-lantern {
  transform-origin: 800px 90px;
  animation: sway 5.5s ease-in-out infinite;
}
@keyframes sway {
  0%, 100% { transform: rotate(-2.4deg); }
  50% { transform: rotate(2.4deg); }
}
@keyframes flick {
  0%, 100% { opacity: 1; }
  47% { opacity: 0.85; }
  48% { opacity: 1; }
  73% { opacity: 0.91; }
}
.cctv .hud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: var(--mono);
  font-size: 13px;
  color: #e8e2da;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-shadow: 0 0 4px #000;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.22) 0 1px, transparent 1px 3px);
}
.hud .top, .hud .bot { display: flex; justify-content: space-between; gap: 12px; }
.rec::before { content: "● "; color: #ff2b2b; animation: blink 1.2s infinite steps(1); }
@keyframes blink { 50% { opacity: 0; } }
.motion { color: #ff4d4d; opacity: 0; transition: opacity 0.3s; font-weight: 700; }
.static { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: #888; mix-blend-mode: hard-light; }
.cap { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; align-items: stretch; }
.price { display: flex; flex-direction: column; position: relative; }
.price .amt { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price .amt small { font-size: 15px; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; margin: 20px 0 28px; display: grid; gap: 10px; font-size: 15px; }
.price li::before { content: "✓  "; color: var(--accent); font-weight: 800; }
.price .btn { margin-top: auto; justify-content: center; }
.price.forever {
  background: #130c0b;
  color: #dfd3c4;
  border: 1.5px solid #4d1914;
  transform: rotate(-0.8deg);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.55);
}
.price.forever p { color: #9c8f83; }
.price.forever li::before { content: "✕  "; color: #b91c12; }
.price.forever .amt { font-family: var(--serif); font-weight: 700; color: #ece0d0; }
.price.forever .btn { background: #75120a; box-shadow: 0 0 30px -6px #b91c12; }
.price.forever .seal {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 2.5px solid #b51a12;
  color: #b51a12;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: 0.12em;
  border-radius: 6px;
  transform: rotate(12deg);
  opacity: 0.86;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}
.price.forever .seal.stamped {
  transform: rotate(6deg) scale(1.12);
  box-shadow: 0 0 18px rgba(181, 26, 18, 0.55);
  opacity: 1;
}
.plan-btn.denied {
  opacity: 0.52;
  text-decoration: line-through;
  cursor: not-allowed;
  transform: none !important;
}
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* blog */
.post { display: flex; flex-direction: column; gap: 10px; }
.thumb {
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  margin: -6px -6px 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.thumb svg { width: 100%; height: 100%; display: block; }
.post .meta { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); }
.post h3 { margin: 0; font-size: 18px; line-height: 1.4; }

/* team */
.member { text-align: center; }
.member .av { width: 92px; height: 92px; font-size: 28px; margin: 0 auto 14px; }
.member .av.wrong::before,
.member .av.wrong::after { top: 30px; width: 12px; height: 16px; }
.member .av.wrong::before { left: 24px; }
.member .av.wrong::after { right: 24px; }
.member .av.wrong .blush::before,
.member .av.wrong .blush::after { bottom: 20px; width: 15px; height: 15px; }
.member .av.wrong .blush::before { left: 14px; }
.member .av.wrong .blush::after { right: 14px; }
.member b { display: block; font-size: 17px; }
.member small { color: var(--muted); }

/* FAQ */
.faq { max-width: 760px; margin: 52px auto 0; display: grid; gap: 12px; }
details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
}
summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--accent); flex: none; }
details[open] summary::after { content: "−"; }
details p {
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
}
.jit span { display: inline-block; white-space: pre; }

/* contact (拜帖) */
.contact form {
  position: relative;
  max-width: 560px;
  margin: 48px auto 0;
  display: grid;
  gap: 16px;
  padding: 32px 28px;
  border: 1px solid color-mix(in srgb, #9a1810 42%, var(--line));
  border-radius: 18px;
  background: rgba(10, 5, 5, 0.35);
}
.slip-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #96160e;
  border-style: solid;
  pointer-events: none;
}
.slip-corner.tl { top: 10px; left: 10px; border-width: 2px 0 0 2px; }
.slip-corner.tr { top: 10px; right: 10px; border-width: 2px 2px 0 0; }
.slip-corner.bl { bottom: 10px; left: 10px; border-width: 0 0 2px 2px; }
.slip-corner.br { bottom: 10px; right: 10px; border-width: 0 2px 2px 0; }
.contact label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.contact input,
.contact textarea {
  width: 100%;
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  color: var(--fg);
  font-family: var(--serif);
  font-size: 17px;
}
.contact textarea { min-height: 110px; resize: vertical; }
.contact .btn { justify-self: start; letter-spacing: 0.12em; }
.formmsg { font-family: var(--serif); font-size: 20px; color: #cc2218; min-height: 28px; }

/* ---------- LATE STAGE ---------- */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: 0.02em; }
.glitch { position: relative; display: inline-block; }
.glitch::before,
.glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; }
.glitch::before { color: #ff1133; mix-blend-mode: screen; animation: g1 2.6s infinite steps(1); }
.glitch::after { color: #00e5ff; mix-blend-mode: screen; animation: g2 3.1s infinite steps(1); opacity: 0.6; }
@keyframes g1 {
  0%, 92%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  93% { transform: translate(-4px, 1px); clip-path: inset(20% 0 50% 0); }
  96% { transform: translate(3px, -2px); clip-path: inset(60% 0 10% 0); }
}
@keyframes g2 {
  0%, 88%, 100% { transform: none; clip-path: inset(0 0 100% 0); }
  89% { transform: translate(4px, 0); clip-path: inset(10% 0 70% 0); }
  94% { transform: translate(-3px, 2px); clip-path: inset(45% 0 30% 0); }
}

/* system log */
.log { height: 320vh; }
.log .stick {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  padding: 0 24px;
  z-index: 2;
}
.term {
  width: min(820px, 100%);
  font-family: var(--mono);
  font-size: clamp(13px, 1.6vw, 16px);
  color: #b9aca0;
  line-height: 1.8;
  min-height: 60vh;
}
.term .l { opacity: 0; white-space: pre-wrap; }
.term .l.on { opacity: 1; }
.term .l.warn { color: #d9a441; }
.term .l.red { color: #d9281c; }
.term .l.big {
  font-family: var(--serif);
  font-size: clamp(32px, 5.4vw, 60px);
  line-height: 1.25;
  margin-top: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.1em;
  background: #b9aca0;
  vertical-align: -3px;
  animation: blink 1s infinite steps(1);
}

/* eyes & talismans */
.eyes { height: 260vh; }
.eyes .stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  place-items: center;
  z-index: 2;
}
.letusin {
  position: absolute;
  inset: -12%;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.35;
  color: #630c07;
  opacity: 0;
  word-break: break-all;
  user-select: none;
  pointer-events: none;
  transform: rotate(-4deg);
}
.eye {
  position: absolute;
  width: var(--w);
  aspect-ratio: 2 / 1;
  transform: translate(-50%, -50%) rotate(var(--r));
  clip-path: ellipse(50% calc(var(--o, 0) * 50%) at 50% 50%);
  background: radial-gradient(ellipse at 50% 50%, #ede3cf 30%, #baaa93 70%, #5c4637);
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.92));
}
.eye i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #000 0 30%, #680c06 34%, #2a0402 62%, #000 72%);
  transform: translate(calc(-50% + var(--x, 0px)), calc(-50% + var(--y, 0px)));
}
.talisman {
  position: absolute;
  width: 58px;
  height: 112px;
  background: linear-gradient(180deg, #b8984c 0%, #8f7234 100%);
  border: 1.5px solid #4d3b18;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  transition: opacity 0.6s ease;
}
.talisman svg { width: 34px; height: 34px; }
.talisman span {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 12px;
  color: #6b0d07;
  writing-mode: vertical-rl;
  letter-spacing: 0.25em;
}
.eyetext {
  position: relative;
  z-index: 4;
  text-align: center;
  font-family: var(--serif);
  color: #ded4c8;
  padding: 0 24px;
}
.eyetext p {
  font-size: clamp(26px, 4.6vw, 54px);
  line-height: 1.25;
  opacity: 0;
  transition: opacity 1.2s;
  text-shadow: 0 0 30px #000, 0 0 10px #000;
  margin-bottom: 10px;
}
.eyetext p.on { opacity: 1; }
.eyetext p.red { color: #c4130a; font-weight: 900; }

/* climax & banners */
.end { height: 240vh; }
.end .stick {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  z-index: 2;
}
.banners {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 12vh 5vw;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.banners.on { opacity: 0.36; }
.banner {
  width: 44px;
  padding: 14px 6px;
  background: linear-gradient(180deg, #dcd2c4 0%, #9b9081 85%, transparent 100%);
  color: #160908;
  font-family: var(--serif);
  font-weight: 900;
  font-size: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 220px;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.8);
  animation: bannerSway 4.8s ease-in-out infinite;
}
.banner.right { animation-delay: -2.4s; }
@keyframes bannerSway {
  0%, 100% { transform: rotate(-1.6deg); }
  50% { transform: rotate(1.6deg); }
}
.face { width: min(74vw, 460px); opacity: 0; filter: blur(6px); }
.endtext {
  position: absolute;
  bottom: 12vh;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(22px, 3.3vw, 38px);
  color: #92877c;
  padding: 0 24px;
}
.inside {
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(38px, 6.8vw, 84px);
  color: #b5130a;
  text-align: center;
  line-height: 1.1;
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 2s;
  pointer-events: none;
  text-shadow: 0 0 40px #4d0703;
  letter-spacing: 0.08em;
}

footer {
  position: relative;
  z-index: 2;
  padding: 88px 24px 64px;
  text-align: center;
  font-size: 14px;
  color: #786d64;
  background: #000;
}
.sealed-exit {
  margin-top: 26px;
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid #3c120e;
  border-radius: 999px;
  color: #7e1c14;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.16em;
  text-decoration: line-through;
  user-select: none;
}

/* ---------- OVERLAYS ---------- */
#noise {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
  opacity: 0;
  mix-blend-mode: overlay;
  image-rendering: pixelated;
}
#vig {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 59;
  opacity: 0;
  background: radial-gradient(ellipse at center, transparent 36%, rgba(18, 2, 2, 0.94) 100%);
}
#scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 61;
  opacity: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
}
#lockVeil {
  position: fixed;
  inset: 0;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.lock-edge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44vh;
  background: linear-gradient(180deg, rgba(10, 2, 2, 0.94) 0%, rgba(128, 14, 10, 0.44) 36%, transparent 100%);
  transform: translateY(-28px);
  transition: transform 0.26s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.lock-peeks {
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  height: 156px;
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}
#lockVeil.hit[data-level="1"] { opacity: 0.62; }
#lockVeil.hit[data-level="1"] .lock-edge { transform: translateY(0); }
#lockVeil.hit[data-level="1"] .lock-peeks { opacity: 0.34; transform: translateY(-6px); }

#lockVeil.hit[data-level="2"] { opacity: 0.84; }
#lockVeil.hit[data-level="2"] .lock-edge { transform: translateY(6px); }
#lockVeil.hit[data-level="2"] .lock-peeks { opacity: 0.68; transform: translateY(6px); }

#lockVeil.hit[data-level="3"] { opacity: 1; }
#lockVeil.hit[data-level="3"] .lock-edge { transform: translateY(12px); }
#lockVeil.hit[data-level="3"] .lock-peeks {
  opacity: 0.95;
  transform: translateY(16px);
  filter: drop-shadow(0 0 18px rgba(190, 16, 10, 0.65));
  animation: lockGlitch 0.26s steps(2);
}
@keyframes lockGlitch {
  0% { transform: translate(-4px, 16px); }
  50% { transform: translate(5px, 14px); }
  100% { transform: translate(0, 16px); }
}
#whisper {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 27vh;
  text-align: center;
  z-index: 70;
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  color: #cf1f15;
  opacity: 0;
  transition: opacity 2.2s;
  pointer-events: none;
  text-shadow: 0 0 16px #000, 0 2px 6px #000;
  padding: 0 20px;
}
#whisper.on { opacity: 1; }
#toast {
  position: fixed;
  top: 84px;
  left: 50%;
  transform: translate(-50%, -20px);
  z-index: 80;
  background: #fff;
  color: #1F1A17;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 40px -10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: 0.4s;
  pointer-events: none;
  max-width: 90vw;
  text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

#sound {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  font: 600 13px var(--sans);
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}
#sound .eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
#sound .eq i {
  display: block;
  width: 2.5px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transition: height 0.2s;
}
#sound.playing .eq i:nth-child(1) { animation: eq1 0.7s ease-in-out infinite; }
#sound.playing .eq i:nth-child(2) { animation: eq2 0.55s ease-in-out infinite 0.1s; }
#sound.playing .eq i:nth-child(3) { animation: eq1 0.65s ease-in-out infinite 0.2s; }
#sound.playing .eq i:nth-child(4) { animation: eq2 0.6s ease-in-out infinite 0.05s; }
@keyframes eq1 { 0%, 100% { height: 4px; } 50% { height: 12px; } }
@keyframes eq2 { 0%, 100% { height: 9px; } 50% { height: 3px; } }

#scare {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #000;
  display: none;
  place-items: center;
  overflow: hidden;
}
#scare.on { display: grid; }
#scare svg {
  width: min(118vw, 118vh);
  height: auto;
  animation: lunge 0.9s cubic-bezier(0.2, 1.6, 0.4, 1) forwards;
}
@keyframes lunge {
  0% { transform: scale(0.6); }
  30% { transform: scale(1.25) translate(-1%, 2%); }
  40% { transform: scale(1.2) translate(2%, -1%); }
  50% { transform: scale(1.28) translate(-2%, 0); }
  100% { transform: scale(1.36); }
}
.shake { animation: shake 0.5s linear infinite; }
@keyframes shake {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-6px, 4px); }
  40% { transform: translate(5px, -5px); }
  60% { transform: translate(-4px, -3px); }
  80% { transform: translate(6px, 3px); }
}

@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 78px 0; }
  .phone { position: relative; right: auto; bottom: auto; width: 88%; margin-top: -16px; margin-bottom: 12px; }
  .device { padding: 28px 0 10px; aspect-ratio: auto; }
  .hub { width: 56%; transform: none; }
  #sound { left: 12px; bottom: 12px; font-size: 12px; padding: 8px 12px; }
  .banners { padding: 8vh 3vw; }
}

@media (prefers-reduced-motion: reduce) {
  #scare svg { animation: fadeIn 0.6s forwards; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
  .glitch::before, .glitch::after, .cctv svg, .cctv-lantern, .banner, #sound.playing .eq i, .nav.lock-jolt, #lockVeil.hit[data-level="3"] .lock-peeks { animation: none !important; }
}
