:root {
  --paper: #d6a364;
  --paper-light: #efd5a9;
  --paper-pale: #f4e7cf;
  --ink: #171512;
  --charcoal: #302f2c;
  --red: #a63e2d;
  --white: #fffaf0;
  --line: 2px solid var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--charcoal); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper-pale);
  font-family: "Courier New", Courier, monospace;
  overflow-x: hidden;
}
button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .15;
  mix-blend-mode: multiply;
  background-image: url('../assets/decor/kraft-noise.jpg');
  background-size: 520px 520px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 22px 28px;
  pointer-events: none;
}
.topbar a { pointer-events: auto; }
.brand-stamp {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--paper-light);
  border: var(--line);
  padding: 9px 12px 8px;
  transform: rotate(-2deg);
  box-shadow: 4px 4px 0 var(--ink);
  font-weight: 900;
}
.brand-name { font-family: Arial Black, Impact, sans-serif; letter-spacing: -1px; }
.brand-ticker { font-size: 11px; border-left: 1px solid var(--ink); padding-left: 10px; }
.edge-nav {
  display: flex;
  gap: 9px;
  transform: rotate(1deg);
}
.edge-nav a {
  padding: 8px 10px;
  background: #f5ead7;
  border: 1px solid var(--ink);
  font-size: 11px;
  font-weight: 700;
  transition: transform .15s ease, background .15s ease;
}
.edge-nav a:hover { transform: translateY(3px) rotate(-2deg); background: #fff; }
.edge-nav a:active { transform: translateY(5px); }

.hero {
  position: relative;
  min-height: 1080px;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(rgba(239,213,169,.82), rgba(239,213,169,.94)),
    url('../assets/background/scene-blur.jpg') center/cover no-repeat;
  border-bottom: 12px solid var(--ink);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../assets/decor/kraft-noise.jpg');
  background-size: 700px;
  opacity: .18;
  mix-blend-mode: multiply;
}
.hero-word {
  position: absolute;
  left: -3vw;
  top: 7vh;
  font: 900 clamp(220px, 27vw, 520px)/.72 Arial Black, Impact, sans-serif;
  letter-spacing: -0.075em;
  color: #d8aa70;
  text-shadow: 3px 3px 0 rgba(23,21,18,.12);
  z-index: -1;
  user-select: none;
  white-space: nowrap;
}
.hero-photo-wrap {
  position: absolute;
  width: min(46vw, 820px);
  aspect-ratio: 1;
  left: 47%;
  top: 11%;
  transform: translateX(-50%) rotate(-4deg);
  z-index: 3;
  transition: transform .2s ease;
  will-change: transform;
}
.photo-shadow {
  position: absolute;
  inset: 4% -2% -2% 4%;
  background: #1b1a18;
  clip-path: polygon(4% 2%, 98% 0, 100% 97%, 1% 100%);
  transform: rotate(3deg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  background: #f3e8d5;
  padding: 18px 18px 54px;
  border: 2px solid var(--ink);
  clip-path: polygon(2% 1%, 99% 0, 100% 96%, 97% 100%, 3% 98%, 0 4%);
}
.hero-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(.85) contrast(1.02);
}
.hero-photo figcaption {
  position: absolute;
  bottom: 16px;
  left: 22px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}
.hero-copy {
  position: absolute;
  left: 5vw;
  bottom: 16vh;
  width: 35vw;
  max-width: 640px;
  z-index: 6;
}
.eyebrow {
  display: inline;
  background: var(--ink);
  color: var(--paper-pale);
  padding: 6px 8px;
  line-height: 2;
  font-size: 13px;
  font-weight: 700;
}
.hero-copy h1 {
  margin: 18px 0 12px;
  font: 900 clamp(90px, 9vw, 180px)/.74 Arial Black, Impact, sans-serif;
  letter-spacing: -.07em;
}
.hero-copy h1 sup {
  font: 700 13px/1 "Courier New", monospace;
  letter-spacing: 0;
  vertical-align: top;
  margin-left: 10px;
  background: var(--red);
  color: #fff;
  padding: 7px 8px;
}
.intro {
  width: 86%;
  font-size: 16px;
  line-height: 1.55;
  background: rgba(244,231,207,.78);
  padding: 10px 12px;
  border-left: 4px solid var(--ink);
}
.hero-note {
  position: absolute;
  z-index: 8;
  background: #fff1ad;
  border: 1px solid rgba(23,21,18,.5);
  padding: 12px 14px;
  box-shadow: 3px 4px 0 rgba(23,21,18,.18);
  font-size: 11px;
  font-weight: 900;
}
.note-a { right: 7vw; top: 18vh; transform: rotate(6deg); }
.note-b { right: 4vw; top: 30vh; transform: rotate(-5deg); }
.note-c { right: 9vw; bottom: 27vh; transform: rotate(2deg); }
.ca-tape {
  position: absolute;
  left: 50%;
  bottom: 5.5vh;
  transform: translateX(-50%) rotate(-1deg);
  width: min(74vw, 1380px);
  min-height: 66px;
  display: grid;
  grid-template-columns: 90px 1fr 140px;
  align-items: center;
  background: #e6cf9c;
  border-top: 1px dashed rgba(23,21,18,.5);
  border-bottom: 1px dashed rgba(23,21,18,.5);
  box-shadow: 0 8px 18px rgba(23,21,18,.18);
  z-index: 10;
}
.ca-tape::before, .ca-tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 32px;
  background: #e6cf9c;
}
.ca-tape::before { left: -20px; clip-path: polygon(100% 0, 0 16%, 100% 30%, 0 50%, 100% 66%, 0 86%, 100% 100%); }
.ca-tape::after { right: -20px; clip-path: polygon(0 0, 100% 16%, 0 30%, 100% 50%, 0 66%, 100% 86%, 0 100%); }
.tape-label { padding-left: 20px; font: 900 24px/1 Arial Black, Impact, sans-serif; }
.ca-tape code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.copy-btn {
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 12px 14px;
  cursor: pointer;
  font-weight: 900;
  transition: transform .12s ease, background .12s ease, color .12s ease;
}
.copy-btn:hover { transform: rotate(-2deg) scale(1.03); background: var(--red); }
.copy-btn:active { transform: translateY(3px) scale(.99); }
.hero-links {
  position: absolute;
  right: 2.5vw;
  bottom: 13vh;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.hero-links a {
  background: var(--ink);
  color: var(--white);
  padding: 9px 13px 8px;
  font-size: 12px;
  border: 1px solid var(--ink);
  transition: transform .15s ease, color .15s ease, background .15s ease;
}
.hero-links a:nth-child(2) { transform: translateX(-18px) rotate(-1deg); }
.hero-links a:nth-child(3) { transform: translateX(6px) rotate(1deg); }
.hero-links a:hover { background: var(--paper-pale); color: var(--ink); transform: translateX(-8px) rotate(-2deg); }
.scroll-hint { position: absolute; right: 30px; bottom: 24px; z-index: 12; font-size: 10px; opacity: .7; }

.marquee {
  width: 100vw;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper-light);
  border-bottom: 3px solid var(--ink);
}
.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee-set { display: flex; flex-shrink: 0; white-space: nowrap; }
.marquee-set span {
  font: 900 30px/1 Arial Black, Impact, sans-serif;
  padding: 17px 0 15px;
  letter-spacing: .03em;
}
@keyframes marquee { to { transform: translateX(-50%); } }

.casefile {
  min-height: 1080px;
  padding: 110px 5vw 90px;
  background: #cfa061 url('../assets/decor/kraft-noise.jpg') center/700px repeat;
  border-bottom: 12px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.casefile::before {
  content: "CONFIDENTIAL";
  position: absolute;
  right: -60px;
  top: 100px;
  font: 900 110px/1 Arial Black, Impact, sans-serif;
  color: rgba(166,62,45,.15);
  transform: rotate(90deg);
  transform-origin: top right;
}
.case-grid { display: grid; grid-template-columns: 34% 66%; gap: 3vw; max-width: 1780px; margin: 0 auto; }
.case-title { position: sticky; top: 120px; align-self: start; }
.case-number { display: inline-block; border: 2px solid var(--ink); padding: 6px 8px; font-size: 11px; font-weight: 900; transform: rotate(-2deg); }
.case-title h2 { margin: 28px 0 24px; font: 900 clamp(72px, 7.7vw, 148px)/.82 Arial Black, Impact, sans-serif; letter-spacing: -.06em; }
.case-title p { max-width: 430px; font-size: 16px; line-height: 1.65; border-top: 2px solid var(--ink); padding-top: 16px; }
.evidence-board {
  min-height: 850px;
  position: relative;
  background: var(--charcoal) url('../assets/decor/charcoal-noise.jpg') center/450px repeat;
  border: 10px solid #6f5a3e;
  box-shadow: inset 0 0 0 2px #1a1712, 18px 20px 0 rgba(23,21,18,.22);
  overflow: hidden;
}
.evidence {
  position: absolute;
  margin: 0;
  padding: 13px 13px 42px;
  background: #f3eadc;
  border: 1px solid #171512;
  box-shadow: 6px 9px 0 rgba(0,0,0,.32);
  transition: transform .2s ease;
}
.evidence:hover { transform: scale(1.025) rotate(0deg) !important; z-index: 20; }
.evidence img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.1) contrast(1.05); }
.evidence figcaption { position: absolute; left: 14px; bottom: 13px; font-size: 10px; font-weight: 700; }
.ev-1 { width: 52%; height: 43%; top: 7%; left: 5%; transform: rotate(-5deg); }
.ev-2 { width: 39%; height: 42%; top: 36%; right: 5%; transform: rotate(7deg); }
.ev-3 { width: 46%; height: 36%; bottom: 7%; left: 10%; transform: rotate(-2deg); }
.thread { position: absolute; height: 2px; background: #b94637; transform-origin: left center; z-index: 8; pointer-events: none; }
.thread-1 { width: 49%; left: 36%; top: 34%; transform: rotate(22deg); }
.thread-2 { width: 45%; left: 25%; top: 62%; transform: rotate(-17deg); }
.pin { position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #b94637; border: 2px solid #6d1e18; box-shadow: 1px 2px 2px #0008; z-index: 12; }
.pin-a { top: 34%; left: 36%; } .pin-b { top: 50%; right: 19%; } .pin-c { bottom: 22%; left: 27%; }
.scribble { position: absolute; color: #f4e7cf; font: 900 17px/1.1 "Courier New", monospace; z-index: 15; }
.s1 { right: 8%; top: 14%; transform: rotate(5deg); }
.s2 { left: 8%; bottom: 3%; transform: rotate(-2deg); }
.s3 { right: 16%; bottom: 8%; color: #e45b46; transform: rotate(7deg); }

.rules {
  position: relative;
  min-height: 1080px;
  overflow: hidden;
  background: #f2e4cb;
  border-bottom: 12px solid var(--ink);
}
.rules::before { content: ""; position: absolute; inset: 0; background: url('../assets/decor/kraft-noise.jpg') center/780px repeat; opacity: .13; }
.rules-backdrop-word {
  position: absolute;
  left: -3vw; bottom: -12vh;
  font: 900 46vw/.7 Arial Black, Impact, sans-serif;
  letter-spacing: -.08em;
  color: #e8d3ad;
  user-select: none;
}
.rules-head { position: absolute; left: 6vw; top: 12vh; z-index: 5; }
.rules-head span { display: inline-block; background: var(--red); color: #fff; padding: 6px 9px; font-size: 12px; font-weight: 900; transform: rotate(-2deg); }
.rules-head h2 { margin: 16px 0; font: 900 clamp(72px, 7.5vw, 144px)/.82 Arial Black, Impact, sans-serif; letter-spacing: -.055em; }
.rule-paper {
  position: absolute;
  z-index: 7;
  width: 350px;
  min-height: 170px;
  padding: 24px 28px;
  background: #fff4bd;
  border: 1px solid #716443;
  box-shadow: 7px 10px 0 rgba(23,21,18,.16);
  clip-path: polygon(2% 0, 100% 4%, 97% 98%, 0 94%);
}
.rule-paper b { font: 900 44px/1 Arial Black, Impact, sans-serif; }
.rule-paper p { margin: 12px 0 0; font-weight: 700; line-height: 1.45; }
.r1 { left: 10vw; bottom: 12vh; transform: rotate(-5deg); }
.r2 { left: 39vw; bottom: 20vh; transform: rotate(3deg); }
.r3 { right: 6vw; bottom: 10vh; transform: rotate(-2deg); }
.duck-peek {
  position: absolute;
  right: -2vw;
  top: 7vh;
  width: min(38vw, 700px);
  height: min(38vw, 700px);
  border-radius: 50%;
  overflow: hidden;
  border: 18px solid var(--ink);
  box-shadow: -22px 24px 0 #cfa061;
  transform: rotate(4deg);
  z-index: 4;
}
.duck-peek img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.05); }
.stamp {
  position: absolute;
  right: 34vw;
  top: 35vh;
  color: var(--red);
  border: 6px double var(--red);
  padding: 12px 16px 10px;
  font: 900 24px/1 Arial Black, Impact, sans-serif;
  text-align: center;
  transform: rotate(-14deg);
  opacity: .8;
  z-index: 9;
}

.observation {
  min-height: 1080px;
  background: var(--charcoal) url('../assets/decor/charcoal-noise.jpg') center/420px repeat;
  color: var(--paper-pale);
  position: relative;
  overflow: hidden;
  border-bottom: 12px solid var(--paper);
}
.obs-copy { position: absolute; left: 6vw; top: 15vh; width: 42vw; z-index: 6; }
.tiny-label { display: inline-block; border: 1px solid var(--paper-pale); padding: 5px 7px; font-size: 11px; }
.obs-copy h2 { margin: 20px 0; font: 900 clamp(78px, 8vw, 154px)/.82 Arial Black, Impact, sans-serif; letter-spacing: -.06em; }
.obs-copy p { max-width: 560px; font-size: 16px; line-height: 1.6; color: #e6d7bd; }
.face-window {
  position: absolute;
  right: 5vw;
  top: 12vh;
  width: min(42vw, 760px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid var(--paper-light);
  box-shadow: 16px 18px 0 #131210;
  clip-path: polygon(4% 0, 100% 3%, 97% 100%, 0 96%);
}
.face-window img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); transition: transform .18s ease; will-change: transform; }
.window-label { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper-light); color: var(--ink); padding: 10px 14px; font-size: 10px; font-weight: 900; }
.crosshair::before, .crosshair::after { content: ""; position: absolute; background: rgba(244,231,207,.6); }
.crosshair::before { width: 44px; height: 1px; left: -22px; top: 0; }
.crosshair::after { height: 44px; width: 1px; left: 0; top: -22px; }
.crosshair { position: absolute; width: 1px; height: 1px; }
.x1 { top: 35%; left: 37%; } .x2 { top: 37%; left: 63%; }
.tap-duck {
  position: absolute;
  left: 7vw;
  bottom: 12vh;
  background: var(--paper-light);
  color: var(--ink);
  border: 3px solid var(--paper-light);
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 900;
  box-shadow: 8px 8px 0 #0f0e0d;
  transition: transform .12s ease, background .12s ease;
}
.tap-duck:hover { background: #fff; transform: rotate(-2deg) translateY(-2px); }
.tap-duck:active { transform: translate(5px,5px); box-shadow: 3px 3px 0 #0f0e0d; }
.duck-reply { position: absolute; left: 23vw; bottom: 13vh; font-weight: 900; color: #e2c68f; transform: rotate(-2deg); }

.final {
  min-height: 1080px;
  position: relative;
  overflow: hidden;
  background: #c99758 url('../assets/decor/kraft-noise.jpg') center/650px repeat;
}
.final::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 49.8%, rgba(23,21,18,.12) 50%, transparent 50.2%); }
.shipping-label {
  position: absolute;
  left: 6vw;
  top: 9vh;
  width: 52vw;
  min-height: 78vh;
  background: #f4ead9;
  border: 3px solid var(--ink);
  padding: 38px 44px;
  box-shadow: 18px 22px 0 rgba(23,21,18,.22);
  transform: rotate(-1deg);
  z-index: 5;
}
.label-topline { border-bottom: 3px solid var(--ink); padding-bottom: 12px; font-weight: 900; }
.shipping-label h2 { margin: 24px 0 20px; font: 900 clamp(100px, 11vw, 210px)/.78 Arial Black, Impact, sans-serif; letter-spacing: -.07em; }
.final-links { border-top: 2px solid var(--ink); }
.final-links a { display: flex; gap: 18px; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--ink); font-weight: 900; transition: padding-left .15s ease, background .15s ease; }
.final-links a span { font-size: 10px; opacity: .6; }
.final-links a:hover { padding-left: 18px; background: #ead6b5; }
.barcode { height: 68px; margin: 24px 0; background: repeating-linear-gradient(90deg, #171512 0 3px, transparent 3px 6px, #171512 6px 8px, transparent 8px 13px); }
.final-ca { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: center; border-top: 2px solid var(--ink); padding-top: 18px; }
.final-ca span { grid-column: 1 / -1; font-size: 10px; font-weight: 900; }
.final-ca code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.copy-btn.dark { background: var(--ink); }
.final-duck { position: absolute; right: -7vw; bottom: -4vh; width: 55vw; max-width: 1040px; transform: rotate(5deg); z-index: 3; }
.final-duck img { width: 100%; border: 4px solid var(--ink); box-shadow: -22px 18px 0 rgba(23,21,18,.22); }
.footer-note { position: absolute; right: 3vw; bottom: 2.5vh; z-index: 6; background: var(--ink); color: var(--paper-light); padding: 8px 11px; font-size: 10px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 20px) rotate(-2deg);
  z-index: 1000;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: 5px 6px 0 var(--ink);
  padding: 12px 22px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) rotate(-2deg); }

@media (max-width: 1500px) {
  .hero { min-height: 900px; }
  .hero-photo-wrap { width: 43vw; top: 13%; }
  .hero-copy { bottom: 18vh; width: 38vw; }
  .ca-tape { width: 76vw; grid-template-columns: 70px 1fr 125px; }
  .note-a { right: 5vw; }
  .casefile, .rules, .observation, .final { min-height: 920px; }
  .evidence-board { min-height: 720px; }
  .rule-paper { width: 300px; }
  .shipping-label { min-height: 76vh; }
}

@media (max-width: 1366px) {
  .edge-nav { display: none; }
  .hero-copy { left: 4vw; width: 40vw; }
  .hero-photo-wrap { left: 54%; width: 46vw; }
  .hero-links { right: 2vw; }
  .note-b { display: none; }
  .case-grid { grid-template-columns: 36% 64%; }
  .rule-paper { width: 280px; font-size: 14px; }
  .r1 { left: 6vw; }
  .r2 { left: 38vw; }
  .r3 { right: 3vw; }
  .shipping-label { width: 57vw; }
}
