:root {
  --ink: #090605;
  --blood: #b50816;
  --red: #ef1930;
  --paper: #c68b4d;
  --paper-light: #f1c37d;
  --cream: #fff1d1;
  --white: #fffaf0;
  --shadow: 0 18px 40px rgba(0, 0, 0, .52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body {
  margin: 0;
  color: var(--white);
  background: #100504;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { color: inherit; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .14;
  background-image: url("assets/scene-tunnel.webp");
  background-size: 220px auto;
  mix-blend-mode: soft-light;
  filter: grayscale(1) contrast(2);
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: linear-gradient(180deg, rgba(7,3,2,.92), rgba(7,3,2,.22));
  backdrop-filter: blur(8px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; letter-spacing: .08em; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--paper); color: var(--ink); transform: rotate(-5deg); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--red); }
nav { display: flex; gap: 24px; }
nav a { font-size: .82rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid transparent; }
nav a:hover, nav a:focus-visible { border-color: var(--red); }
.ticker-copy { justify-self: end; display: flex; align-items: center; gap: 10px; border: 2px solid var(--paper-light); background: rgba(0,0,0,.58); padding: 9px 12px; cursor: pointer; transform: rotate(1deg); }
.ticker-copy span { color: var(--paper-light); font-weight: 1000; letter-spacing: .06em; }
.ticker-copy small { font-size: .62rem; letter-spacing: .15em; }

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: -4%; z-index: -3; background: url("assets/scene-tunnel.webp") center / cover no-repeat; transform: scale(1.08); will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(7,2,2,.9) 0%, rgba(7,2,2,.52) 48%, rgba(7,2,2,.05) 100%), linear-gradient(0deg, #100504 0%, transparent 24%); }
.hero-copy { width: min(850px, 90vw); margin-left: clamp(22px, 8vw, 140px); padding-top: 70px; }
.eyebrow { margin: 0 0 14px; color: var(--paper-light); font-size: .78rem; font-weight: 900; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 0; line-height: .82; letter-spacing: -.055em; text-transform: uppercase; text-shadow: 7px 7px 0 rgba(0,0,0,.55); }
.hero h1 span { display: block; font-size: clamp(3.2rem, 9vw, 9rem); }
.hero h1 strong { display: block; color: var(--red); font-size: clamp(3.6rem, 10.7vw, 10.8rem); -webkit-text-stroke: 2px var(--ink); }
.hero-thesis { margin: 28px 0; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.2vw, 2.15rem); font-style: italic; line-height: 1.2; }
.hero-actions, .market-links { display: flex; flex-wrap: wrap; gap: 12px; }
.paper-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 3px solid var(--ink); background: var(--paper); color: var(--ink); text-decoration: none; font-weight: 1000; letter-spacing: .08em; box-shadow: 6px 6px 0 rgba(0,0,0,.65); cursor: pointer; clip-path: polygon(2% 7%, 96% 0, 100% 88%, 6% 100%, 0 42%); transition: transform .18s ease, background .18s ease; }
.paper-button:hover, .paper-button:focus-visible { transform: translateY(-4px) rotate(-1deg); background: var(--paper-light); }
.paper-button.primary { background: var(--red); color: white; }
.paper-button.primary:hover { background: #ff3045; }
.enter-strip { position: absolute; right: 4vw; bottom: 7vh; display: flex; gap: 18px; align-items: center; padding: 14px 22px; background: var(--paper-light); color: var(--ink); text-decoration: none; font-weight: 1000; transform: rotate(-3deg); box-shadow: var(--shadow); }
.enter-strip span { font-size: 1.5rem; animation: bounce 1.4s infinite; }

.tape-loop { overflow: hidden; background: var(--paper-light); color: var(--ink); border-block: 5px solid var(--ink); transform: rotate(-1deg) scale(1.02); }
.tape-loop div { width: max-content; padding: 14px 0; font-size: 1.05rem; font-weight: 1000; letter-spacing: .14em; animation: ticker 25s linear infinite; }

.story-section { position: relative; display: grid; grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: center; padding: clamp(90px, 12vw, 170px) clamp(22px, 8vw, 140px); background: radial-gradient(circle at 80% 30%, rgba(199,14,31,.2), transparent 35%), #110706; }
.story-section::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: url("assets/scene-tunnel.webp") center / cover fixed; opacity: .06; }
.story-photo { position: relative; padding: 18px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(-2deg); }
.story-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 8px solid #120706; }
.pin { position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--red); border: 4px solid #4b030a; box-shadow: 3px 4px 6px rgba(0,0,0,.6); }
.pin-a { top: 5px; left: 8%; }
.pin-b { top: 4px; right: 7%; }
.story-card { position: relative; background: var(--paper-light); color: #20120a; padding: clamp(30px, 5vw, 70px); box-shadow: var(--shadow); clip-path: polygon(0 2%, 97% 0, 100% 94%, 92% 100%, 3% 97%); }
.story-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 12px solid rgba(69,35,15,.22); clip-path: inherit; }
.story-card h2, .section-heading h2, .signal-machine h2, .market-copy h2, .final-copy h2 { margin: 0 0 24px; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: .95; text-transform: uppercase; letter-spacing: -.045em; }
.story-card p { font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.72; }
.stamp { display: inline-block; border: 3px solid var(--blood); padding: 8px 12px; color: var(--blood); font-size: .72rem !important; font-weight: 1000; letter-spacing: .16em; transform: rotate(-2deg); }

.poster-break { background: #090403; border-block: 6px solid var(--paper); }
.poster-break img { width: 100%; min-height: 260px; object-fit: cover; }

.wall-section { padding: clamp(90px, 12vw, 160px) clamp(20px, 6vw, 90px); background: #080302; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 38px 38px; }
.section-heading { max-width: 950px; margin: 0 auto 70px; }
.evidence-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(30px, 5vw, 78px); max-width: 1240px; margin: 0 auto; }
.evidence-card { position: relative; border: 0; padding: 16px 16px 58px; background: var(--paper); box-shadow: var(--shadow); cursor: zoom-in; transition: transform .25s ease, filter .25s ease; }
.evidence-card::before { content: ""; position: absolute; top: -12px; left: 38%; width: 28%; height: 30px; background: rgba(242,204,136,.76); transform: rotate(2deg); box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.evidence-card img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: saturate(.95) contrast(1.03); }
.evidence-card span { position: absolute; left: 22px; bottom: 20px; color: #1f1007; font-weight: 1000; letter-spacing: .09em; font-size: .82rem; }
.evidence-card:hover, .evidence-card:focus-visible { transform: rotate(0) translateY(-10px) scale(1.015); filter: brightness(1.08); z-index: 2; }
.tilt-left { transform: rotate(-3deg); }
.tilt-right { transform: rotate(2.5deg) translateY(55px); }
.tilt-left-small { transform: rotate(-1.5deg); }
.tilt-right-small { transform: rotate(3deg) translateY(55px); }

.signal-section { min-height: 80vh; display: grid; place-items: center; padding: 90px 20px; background: url("assets/scene-desk.webp") center / cover fixed; position: relative; isolation: isolate; }
.signal-section::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(4,1,1,.77); }
.signal-machine { width: min(960px, 92vw); display: grid; grid-template-columns: .55fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; padding: clamp(32px, 6vw, 80px); background: rgba(14,6,4,.92); border: 10px solid var(--paper); box-shadow: 18px 18px 0 rgba(0,0,0,.65), inset 0 0 40px rgba(222,19,41,.2); clip-path: polygon(2% 0, 99% 3%, 96% 100%, 0 96%); }
.machine-eye { display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: clamp(5rem, 13vw, 10rem); border: 14px solid #2c160b; box-shadow: inset 0 0 0 16px var(--red), 0 0 30px rgba(245,17,47,.52); animation: stare 4s ease-in-out infinite; }
.signal-output { min-height: 70px; color: var(--paper-light); font-family: Georgia, serif; font-size: clamp(1.25rem, 2.4vw, 2rem); font-style: italic; line-height: 1.35; }

.market-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: stretch; padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 90px); background: #130604; }
.market-copy { align-self: center; }
.market-copy p:not(.eyebrow) { max-width: 520px; font-size: 1.08rem; line-height: 1.7; }
.chart-frame { min-height: 580px; padding: 16px; background: var(--paper); box-shadow: var(--shadow); clip-path: polygon(1% 2%, 99% 0, 100% 97%, 3% 100%); }
.chart-frame iframe { width: 100%; height: 100%; min-height: 548px; border: 0; background: #090909; }

.final-section { position: relative; min-height: 75vh; display: grid; place-items: center; overflow: hidden; }
.final-section > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.55) saturate(1.2); }
.final-section::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle, transparent 20%, rgba(0,0,0,.82) 85%); }
.final-copy { position: relative; z-index: 2; text-align: center; text-shadow: 5px 5px 0 #000; }
.final-copy p { color: var(--paper-light); letter-spacing: .26em; font-weight: 1000; }
.final-copy h2 { font-size: clamp(3.6rem, 9vw, 9rem); color: var(--red); -webkit-text-stroke: 2px #110000; }
.ticker-copy.large { margin: 0 auto; padding: 16px 24px; background: var(--paper); border-color: #1c0d05; }
.ticker-copy.large span { color: #1c0d05; font-size: 1.2rem; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(20px, 6vw, 90px); background: var(--paper); color: var(--ink); border-top: 5px solid var(--ink); font-weight: 1000; letter-spacing: .08em; }
.contract-address { overflow-wrap: anywhere; font-size: .78rem; text-align: right; }

.lightbox { width: min(900px, 94vw); max-height: 94vh; border: 12px solid var(--paper); padding: 0; background: #0c0503; color: white; box-shadow: 0 0 0 100vmax rgba(0,0,0,.82); }
.lightbox::backdrop { background: rgba(0,0,0,.72); }
.lightbox img { width: 100%; max-height: 76vh; object-fit: contain; }
.lightbox p { margin: 0; padding: 18px 22px; color: var(--paper-light); font-weight: 800; letter-spacing: .06em; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 46px; height: 46px; border: 3px solid var(--ink); background: var(--red); font-size: 2rem; font-weight: 900; cursor: pointer; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; padding: 14px 18px; background: var(--paper-light); color: var(--ink); border: 3px solid var(--ink); font-weight: 1000; transform: translateY(140%); transition: transform .25s ease; }
.toast.show { transform: translateY(0) rotate(-2deg); }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes bounce { 50% { transform: translateY(7px); } }
@keyframes stare { 0%,100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.03); } }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .story-section, .market-section { grid-template-columns: 1fr; }
  .story-photo { max-width: 650px; margin: 0 auto; }
  .chart-frame { min-height: 500px; }
  .signal-machine { grid-template-columns: 1fr; text-align: center; }
  .machine-eye { width: min(280px, 65vw); margin: auto; }
  .signal-button { margin: auto; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 10px 14px; }
  .brand span:last-child { display: none; }
  .ticker-copy small { display: none; }
  .hero-copy { margin-left: 18px; padding-top: 58px; }
  .hero h1 span { font-size: clamp(2.8rem, 14vw, 5rem); }
  .hero h1 strong { font-size: clamp(3.05rem, 15vw, 5.4rem); }
  .hero-actions { max-width: 330px; }
  .paper-button { min-height: 44px; padding: 10px 14px; font-size: .82rem; }
  .enter-strip { display: none; }
  .story-section { padding-inline: 18px; }
  .evidence-wall { grid-template-columns: 1fr; }
  .tilt-right, .tilt-right-small { transform: rotate(2deg); }
  .evidence-card { max-width: 560px; margin: 0 auto; }
  .market-section { padding-inline: 14px; }
  .chart-frame { min-height: 440px; padding: 8px; }
  .chart-frame iframe { min-height: 420px; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
