/* Caught Out! - packaging-system landing page
   Palette from the key art: meat-locker black, styrofoam tray white, stamp red. */

:root {
  --bg: #101114;
  --bg-deep: #0b0c0e;
  --bg-lift: #17181c;
  --tray: #e9e7e2;
  --tray-dim: #c9c6bf;
  --ink: #16150f;          /* text on tray */
  --text: #d9d7d2;         /* text on dark */
  --text-dim: #a3a19b;
  --red: #c2231f;          /* stamp red on light */
  --red-bright: #e8382d;   /* stamp red on dark */
  --line: #2a2b2f;
  --display: "Anton", "Arial Narrow", sans-serif;
  --body: "Archivo", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: radial-gradient(120% 90% at 50% 0%, var(--bg-lift) 0%, var(--bg) 55%, var(--bg-deep) 100%) fixed var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: #fff; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.bang { color: var(--red-bright); }

/* ---------- top bar ---------- */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}

.topnav {
  display: flex;
  gap: clamp(0.9rem, 2.5vw, 1.75rem);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topnav a {
  color: var(--text-dim);
  text-decoration: none;
  padding: 0.25rem 0;
}
.topnav a:hover { color: #fff; }

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(2rem, 6vh, 4.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 7vh, 5rem);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin-bottom: 1.2rem;
}

.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.25rem, 11.5vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: 0.005em;
  color: #fff;
  text-transform: uppercase;
}

.title .line { display: block; }

.tagline {
  margin-top: 1.4rem;
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 600;
  color: var(--tray);
}

.sub {
  margin-top: 0.9rem;
  color: var(--text-dim);
  max-width: 34ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}
.btn:hover { background: #a81c19; border-color: #a81c19; transform: translateY(-1px); }

.btn .icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.btn-outline {
  background: transparent;
  color: var(--tray);
  border-color: #4a4b50;
}
.btn-outline:hover { background: rgba(233, 231, 226, 0.07); border-color: var(--tray-dim); transform: translateY(-1px); }

.trailer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-decoration: none;
}
.trailer-chip:hover { color: #fff; }

.trailer-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red-bright);
  animation: pulse 2.2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .trailer-chip .dot { animation: none; }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-art img {
  border-radius: 14px;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, 0.75);
}

/* hero load-in */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-copy > *:nth-child(2) { animation-delay: 60ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 140ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 200ms; }
  .hero-copy > *:nth-child(5) { animation-delay: 260ms; }
  .hero-copy > *:nth-child(6) { animation-delay: 320ms; }
  .hero-art { animation: rise 720ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- the label (signature) ---------- */

.label-wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(1rem, 3vh, 2rem) 1.25rem clamp(3.5rem, 8vh, 6rem);
}

.sticker {
  background: var(--tray);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.6rem 1.8rem 0;
  transform: rotate(-1.2deg);
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.06) inset,
    0 24px 50px -12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.sticker-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.7rem;
}

.sticker-head h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.9rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.pct {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sticker-rows { margin-top: 0.4rem; }

.sticker-rows .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed rgba(22, 21, 15, 0.35);
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sticker-rows dt { color: rgba(22, 21, 15, 0.62); font-weight: 500; }
.sticker-rows dd { font-weight: 600; text-align: right; }

.sticker-rows .price { border-bottom: none; }
.sticker-rows .price dd {
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--red);
  line-height: 1;
}

.barcode { padding: 0.4rem 0 0.9rem; }

.barcode .bars {
  height: 46px;
  background: repeating-linear-gradient(
    90deg,
    var(--ink) 0 2px, transparent 2px 5px,
    var(--ink) 5px 9px, transparent 9px 11px,
    var(--ink) 11px 12px, transparent 12px 16px,
    var(--ink) 16px 18px, transparent 18px 23px,
    var(--ink) 23px 27px, transparent 27px 29px
  );
}

.barcode .digits {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  margin-top: 0.35rem;
}

.sticker-strip {
  margin: 0 -1.8rem;
  background: var(--red);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.7rem 1rem;
}

/* ---------- sections shared ---------- */

.wrapper-section,
.credits {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 4vw, 3rem);
}

.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.4rem;
}

.section-copy {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 1rem;
}

/* ---------- sealed shelf ---------- */

.shelf {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.2rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
}

.tile {
  position: relative;
  flex: 0 0 clamp(120px, 16vw, 150px);
  aspect-ratio: 9 / 16;
  border-radius: 10px;
  background: linear-gradient(160deg, #1d1e23 0%, #141519 70%);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
  overflow: hidden;
}

/* cling-film sheen */
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.09) 42%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(255, 255, 255, 0.11) 58%,
    transparent 70%);
  pointer-events: none;
}

.tile-num {
  font-family: var(--display);
  font-size: 2.4rem;
  color: #3c3e45;
  line-height: 1;
}

.tile-name {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tile-tag {
  position: absolute;
  bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-bright);
  border: 1px solid rgba(232, 56, 45, 0.4);
  border-radius: 3px;
  padding: 0.15rem 0.45rem;
}

.tile.more .tile-num { color: var(--red-bright); }

/* ---------- credits ---------- */

.credit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.credit {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem 1.6rem;
  background: rgba(23, 24, 28, 0.6);
}

.credit h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.55rem;
  text-transform: uppercase;
  color: #fff;
}

.credit-role {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-bright);
  margin: 0.35rem 0 0.8rem;
}

.credit-bio {
  font-size: 0.95rem;
  color: var(--text-dim);
}

.credit-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
.credit-link:hover { color: var(--red-bright); }

.smallprint {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(2rem, 6vh, 4rem);
  padding: 2.2rem clamp(1.25rem, 4vw, 3rem) 2.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- reveals ---------- */

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* the sticker keeps its rotation through the reveal */
.sticker.reveal { transform: rotate(-1.2deg) translateY(16px) scale(1.02); }
.sticker.reveal.in { transform: rotate(-1.2deg); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .sticker.reveal { transform: rotate(-1.2deg); }
}

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }
  .hero-art { order: 2; max-width: 520px; }
  .credit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .topbar { flex-direction: column; gap: 0.6rem; }
  .btn { width: 100%; text-align: center; }
  .cta-row { flex-direction: column; }
  .sticker { transform: rotate(-0.8deg); padding: 1.3rem 1.3rem 0; }
  .sticker-strip { margin: 0 -1.3rem; }
  .sticker-rows .row { flex-direction: column; gap: 0.1rem; align-items: flex-start; }
  .sticker-rows dd { text-align: left; }
}
