:root {
  --bg: #0e0f12;
  --panel: #16171b;
  --line: #24252a;
  --text: #ecebe6;
  --dim: #8e8c87;
  --paper: #e6dfcf;
  --ink: #1d1c1a;
  --red: #a63c2e;
  --blue: #3b82f6;
  --green: #4ade80;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --type: "Special Elite", "Courier Prime", "Courier New", monospace;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 100vh;
  padding: 100px 0 90px;
}
.hero-left { position: relative; z-index: 2; }
.hook { margin-top: 28px; font-size: 17px; line-height: 1.55; color: #bdbbb5; }
.hook b { color: #fff; font-weight: 600; }

.ca-box {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.ca-text { font-family: var(--mono); font-size: 13px; color: #b8b6b0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: transform .15s, background .15s;
}
.btn-light { background: #f2f1ed; color: #111; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }

.hostage {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 440px;
  padding: 10px 10px 10px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .2s;
}
.hostage:hover { border-color: #3a3b41; }
.hostage-avatar {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  background: #222327;
  box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--red);
}
.hostage-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hostage-info strong { font-size: 14px; }
.hostage-status {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dim);
}

.links { margin-top: 18px; display: flex; gap: 18px; }
.links a { font-size: 12px; color: var(--dim); border-bottom: 1px solid #34353a; padding-bottom: 3px; transition: color .2s; }
.links a:hover { color: var(--text); }

/* ---------- Cut-out letters ---------- */
.cutout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: .32em;
  row-gap: .1em;
  line-height: 1;
  font-weight: 400;
}
.cutout .word { display: inline-flex; align-items: center; white-space: nowrap; }
.tile {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-width: .7em;
  padding: .1em .1em .04em;
  margin: 0 .02em;
  box-shadow: 0 .08em .22em rgba(0, 0, 0, .45);
  opacity: 0;
  transform: translateY(-.5em) rotate(var(--r0));
  transition: opacity .35s ease var(--d), transform .55s cubic-bezier(.2, 1.4, .4, 1) var(--d);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  mix-blend-mode: multiply;
  opacity: .55;
  pointer-events: none;
}
.tile.bare { box-shadow: none; }
.tile.bare::after { display: none; }
.cutout.in .tile { opacity: 1; transform: translateY(var(--y)) rotate(var(--r)); }
.cutout-hero { font-size: clamp(34px, 5.2vw, 58px); max-width: 9.5em; }
.cutout-big { font-size: clamp(52px, 10vw, 124px); max-width: 7.5em; margin-top: 28px; }

/* ---------- Phone ---------- */
.hero-right { position: relative; display: flex; justify-content: center; }
.hero-right::before {
  content: "";
  position: absolute;
  inset: -10% -25%;
  background: radial-gradient(closest-side, rgba(59, 130, 246, .16), transparent 72%);
  pointer-events: none;
}
.phone {
  position: relative;
  z-index: 1;
  width: 310px;
  height: 610px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 48px;
  background: #0a0b0d;
  border: 10px solid #030304;
  box-shadow: 0 0 0 1px #2a2b30, 0 40px 90px rgba(0, 0, 0, .6);
}
.chat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 22px 0 12px;
  background: #17181c;
  border-bottom: 1px solid #1f2025;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 19px;
  background: #2a2b30;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-head strong { margin-top: 4px; font-size: 13px; }
.chat-head small { font-size: 10px; color: var(--dim); }
.online { color: var(--green); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.chat-day, .chat-read { align-self: center; margin: 4px 0; font-size: 10px; color: #6b6a66; }
.msg {
  max-width: 80%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 12.5px;
  line-height: 1.4;
  animation: pop .3s cubic-bezier(.2, 1.3, .4, 1) both;
}
.msg.them { align-self: flex-start; background: #26272c; color: #ecebe6; border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.photo {
  position: relative;
  width: 180px;
  height: 112px;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 34px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(135deg, #3b3226, #1c1a17);
}
.msg.photo img { width: 100%; height: 100%; object-fit: cover; }
.msg.photo small {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255, 255, 255, .55);
}
.typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 16px;
  background: #26272c;
  animation: pop .25s ease both;
}
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8a8984; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }

.pinned {
  margin: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #17181c;
  border: 1px solid #26272c;
}
.pinned-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim); }
.live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--green);
  background: rgba(74, 222, 128, .1);
}
.live i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 1.6s infinite; }
.pinned-amount { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 12px; font-size: 11.5px; color: #a9a7a1; }
.pinned-amount strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.bar { height: 7px; border-radius: 99px; overflow: hidden; background: #2a2b31; }
.bar-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width 1.4s cubic-bezier(.2, .8, .2, 1);
}
.bar-labels { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9.5px; color: #6b6a66; }

/* ---------- Paper ---------- */
.paper {
  color: var(--ink);
  font-family: var(--type);
  background-color: var(--paper);
  background-image: var(--noise), linear-gradient(160deg, rgba(255, 255, 255, .35), rgba(0, 0, 0, .07));
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55), 0 2px 4px rgba(0, 0, 0, .3);
}
.tape {
  position: absolute;
  width: 84px;
  height: 24px;
  background: rgba(214, 203, 170, .78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.sticky {
  position: absolute;
  z-index: 3;
  left: -110px;
  bottom: -30px;
  width: 232px;
  padding: 30px 20px 22px;
  transform: rotate(-5deg);
  transition: transform .3s cubic-bezier(.2, 1.4, .4, 1);
}
.sticky:hover { transform: rotate(-2deg) scale(1.03); }
.sticky .tape-top { top: -12px; left: 50%; margin-left: -42px; transform: rotate(-3deg); }
.stamp {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 10px;
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 15px;
  letter-spacing: .2em;
  opacity: .9;
  transform: rotate(-6deg);
}
.sticky p { margin-top: 6px; font-size: 11.5px; line-height: 1.5; }
.sticky u { text-decoration-color: var(--red); }
.sticky-to { transform: rotate(-2deg); }
.sticky .sticky-circle {
  display: inline-block;
  padding: 3px 14px;
  font-family: "Archivo Black", sans-serif;
  font-size: 15px;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 50%;
  transform: rotate(-4deg);
}
.sticky .sticky-sign { margin-top: 12px; }
.sticky-mark { position: absolute; right: 14px; bottom: 12px; font-size: 20px; }

/* ---------- Story ---------- */
.rule { border: 0; border-top: 1px solid var(--line); }
.story { padding: 110px 0 70px; }
.intro { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; color: var(--dim); }
.intro b { color: var(--text); font-weight: 500; }
.avatar-sm { width: 24px; height: 24px; font-size: 13px; }
.x-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #ddd;
  background: #1c1d21;
  border: 1px solid var(--line);
  transition: border-color .2s;
}
.x-btn:hover { border-color: #45464c; }

.story-lines {
  max-width: 560px;
  margin-top: 28px;
  font-family: var(--serif);
  font-size: clamp(28px, 3.3vw, 38px);
  line-height: 1.12;
  color: #d6d3cc;
}
.story-lines p + p { margin-top: .7em; }
.story-lines em { color: #fff; }
.dim { color: var(--dim); }
code {
  padding: .2em .5em;
  font-family: var(--mono);
  font-size: .55em;
  vertical-align: .25em;
  color: #e5e3de;
  background: #1c1d21;
  border: 1px solid #2a2b30;
  border-radius: 6px;
}
.leadin {
  margin-top: 170px;
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 30px);
  letter-spacing: .01em;
  color: #8f8d88;
}
.leadin s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 130px; }
.split-left { font-family: var(--serif); font-style: italic; font-size: clamp(34px, 4vw, 46px); color: #fff; }
.split-right { max-width: 360px; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; color: #d6d3cc; }
.split-right b { color: #fff; font-weight: 400; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Ransom note ---------- */
.note-wrap { position: relative; width: 360px; max-width: 100%; height: 290px; margin: 150px auto 0; }
.note {
  position: absolute;
  inset: 0;
  padding: 40px 30px 24px;
  transform: rotate(-1.5deg);
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.note.dragging { cursor: grabbing; }
.note .tape-l { top: -6px; left: -24px; transform: rotate(-35deg); }
.note .tape-r { top: -6px; right: -24px; transform: rotate(35deg); }
.note-title { padding-bottom: 10px; font-size: 11px; letter-spacing: .25em; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.note-row { padding: 12px 0 6px; font-size: 15px; border-bottom: 1px solid rgba(0, 0, 0, .08); }
.note-demand { text-transform: uppercase; }
.red { color: var(--red); }
.note-rules { margin-top: 18px; font-size: 12.5px; line-height: 1.6; }
.note-foot {
  position: absolute;
  left: 30px;
  right: 26px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.half { pointer-events: none; transition: transform 1.1s cubic-bezier(.5, 0, .75, 0), opacity 1.1s ease; }
.rip-hint { margin-top: 26px; text-align: center; font-family: var(--mono); font-size: 10px; letter-spacing: .15em; color: #55565c; }

.footer {
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: #5b5c62;
}

@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.96); } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pulse { 50% { opacity: .35; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 70px; min-height: 0; padding-top: 70px; }
  .hero-right { flex-direction: column; align-items: center; }
  .sticky { position: relative; left: auto; bottom: auto; margin-top: -50px; transform: rotate(-4deg); }
  .leadin { margin-top: 110px; }
  .split { grid-template-columns: 1fr; gap: 20px; margin-top: 90px; }
}
@media (max-width: 420px) {
  .container { width: calc(100% - 36px); }
  .phone { width: 280px; height: 560px; }
  .hostage .btn { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .tile, .reveal, .msg, .typing, .bar-fill { transition: none; animation: none; }
}
