/* ============================================================
   SNACKLINS · CRUNCH NOIR · 970×250 DESKTOP BILLBOARD
   Same Crunch Noir story, reframed horizontally.
   Three editorial "panels": [crisp] | [headline + pack] | [CTA]
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Archivo:wght@400;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --gunmetal: #1A1D21;
  --obsidian: #0B0C0D;
  --saffron:  #F2A618;
  --bone:     #EDE6D6;
  --chili:    #E24B1A;

  --pad: 16px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #0a0a0a;
  width: 970px;
  height: 250px;
  min-height: 250px;
  overflow: hidden;
  font-family: 'Archivo', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
}

/* ============================================================
   THE AD — exactly 970 × 250
   ============================================================ */
.ad {
  position: relative;
  width: 970px;
  height: 250px;
  background: var(--gunmetal);
  overflow: hidden;
  cursor: pointer;
  font-family: 'Archivo', sans-serif;
  color: var(--bone);
  box-shadow:
    inset 0 0 80px rgba(0,0,0,.35),
    0 30px 60px -20px rgba(0,0,0,.6),
    0 0 0 1px rgba(237,230,214,.04);
  user-select: none;
}

.ad::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(237,230,214,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(237,230,214,.018) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 1;
}
.ad::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(237,230,214,.04) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
  opacity: .5;
  pointer-events: none;
  z-index: 2;
}

/* corner crops */
.crop {
  position: absolute;
  width: 8px; height: 8px;
  border-color: rgba(237,230,214,.35);
  z-index: 5;
}
.crop.tl { top: 6px; left: 6px;  border-top: 1px solid; border-left: 1px solid; }
.crop.tr { top: 6px; right: 6px; border-top: 1px solid; border-right: 1px solid; }
.crop.bl { bottom: 6px; left: 6px;  border-bottom: 1px solid; border-left: 1px solid; }
.crop.br { bottom: 6px; right: 6px; border-bottom: 1px solid; border-right: 1px solid; }

/* ============================================================
   HEADER STRIP — top bar, full-width
   wordmark left · sku right · thin saffron rule below
   ============================================================ */
.header {
  position: absolute;
  top: var(--pad);
  left: var(--pad);
  right: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 30;
}
.wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: .04em;
  color: var(--bone);
  line-height: 1;
}
.wordmark .slash { color: var(--saffron); margin-left: 1px; }

.header-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
  color: rgba(237,230,214,.55);
  text-transform: uppercase;
}
.header-meta .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.header-meta .pill::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--saffron);
}
.header-meta .issue { color: var(--bone); opacity: .85; }

.header-rule {
  position: absolute;
  top: calc(var(--pad) + 24px);
  left: var(--pad);
  right: var(--pad);
  height: 1px;
  background: rgba(237,230,214,.12);
  z-index: 30;
}

/* vertical column dividers — editorial gridlines (thin, dim) */
.col-divider {
  position: absolute;
  top: 56px;
  bottom: 16px;
  width: 1px;
  background: rgba(237,230,214,.08);
  z-index: 4;
}
.col-divider.left  { left: 290px; }
.col-divider.right { left: 680px; }

/* ============================================================
   PANEL 1 — THE CRISP (left)
   ============================================================ */
.panel-crisp {
  position: absolute;
  top: 56px;
  left: var(--pad);
  width: 274px;
  bottom: 16px;
  z-index: 10;
}

.crisp {
  position: absolute;
  top: 4px;
  left: 38px;
  width: 200px;
  height: 170px;
  transform: rotate(-8deg);
  transform-origin: 50% 50%;
  filter: drop-shadow(0 10px 0 rgba(0,0,0,.55));
  z-index: 12;
  animation: crisp-zoom 6s var(--ease) infinite;
}
.crisp img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}

.panel-crisp .label {
  position: absolute;
  bottom: 4px;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237,230,214,.6);
  line-height: 1.55;
}
.panel-crisp .label b {
  color: var(--bone);
  font-weight: 500;
}
.panel-crisp .label .lead {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.panel-crisp .label .lead::before {
  content: "";
  width: 10px; height: 1px;
  background: var(--bone);
  opacity: .5;
}

/* ============================================================
   PANEL 2 — HEADLINE + PACK (middle)
   In Frame 1: huge "SALT & RIOT." headline only.
   In Frame 2: pack slides in from the right, headline cross-fades to a smaller form.
   ============================================================ */
.panel-mid {
  position: absolute;
  top: 56px;
  left: 306px;
  width: 360px;
  bottom: 16px;
  z-index: 10;
}

.headline {
  position: absolute;
  top: 8px;
  left: 0;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 76px;
  line-height: .88;
  letter-spacing: .02em;
  color: var(--bone);
  z-index: 13;
  animation: headline-out 6s var(--ease) infinite;
}
.headline .amp { color: var(--saffron); }
.headline .dot { color: var(--saffron); }

.tagline {
  position: absolute;
  left: 174px;   /* sits right of pack */
  top: 10px;
  width: 186px;
  font-family: 'Archivo', sans-serif;
  font-weight: 900;
  font-size: 19px;
  line-height: 1;
  letter-spacing: -.005em;
  color: var(--bone);
  text-transform: uppercase;
  opacity: 0;
  z-index: 14;
  animation: tagline-in 6s var(--ease) infinite;
}
.tagline .dim {
  color: rgba(237,230,214,.55);
  display: block;          /* force a real new line */
  margin-top: 2px;
}

.proof {
  position: absolute;
  left: 174px;
  top: 78px;               /* clearly below the 2-line tagline */
  width: 186px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237,230,214,.62);
  line-height: 1.6;
  opacity: 0;
  z-index: 14;
  animation: proof-in 6s var(--ease) infinite;
  /* faint top divider so it reads as a separate block */
  padding-top: 10px;
  border-top: 1px solid rgba(237,230,214,.12);
}
.proof b {
  margin-bottom: 4px;
}
.proof b {
  color: var(--bone);
  font-weight: 500;
  display: block;
}

/* ----- the pack ----- */
.pack {
  position: absolute;
  top: 0;
  left: 0;
  width: 152px;
  height: 178px;
  background: var(--chili);
  border: 1px solid rgba(237,230,214,.16);
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 12px 0 rgba(0,0,0,.55));
  z-index: 13;
  transform: translateX(420px);
  opacity: 0;
  animation: pack-slide 6s var(--ease) infinite;
}
.pack::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,.18) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .35;
  pointer-events: none;
}
.pack::after {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--obsidian) 0 4px, var(--chili) 4px 8px);
  opacity: .5;
}
.pack-top {
  height: 18px;
  background: var(--obsidian);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 7px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone);
  position: relative; z-index: 2;
}
.pack-top .hot { color: var(--saffron); font-weight: 500; }
.pack-mark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--bone);
  padding: 6px 8px 0;
  line-height: 1;
  position: relative; z-index: 2;
}
.pack-mark .slash { color: var(--saffron); }
.pack-rule {
  height: 1px;
  background: rgba(237,230,214,.25);
  margin: 5px 8px 0;
  position: relative; z-index: 2;
}
.pack-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  line-height: .88;
  letter-spacing: .02em;
  color: var(--bone);
  position: relative; z-index: 2;
}
.pack-hero .crash { color: var(--obsidian); }
.pack-mark-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  position: relative; z-index: 2;
}
.pack-mark-row .diamond {
  width: 8px; height: 8px;
  background: var(--obsidian);
  transform: rotate(45deg);
}
.pack-mark-row .net {
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--bone);
}
.pack-foot {
  padding: 6px 8px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 6.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237,230,214,.7);
  display: flex;
  justify-content: space-between;
  position: relative; z-index: 2;
}

/* ============================================================
   PANEL 3 — CTA (right)
   ============================================================ */
.panel-cta {
  position: absolute;
  top: 56px;
  left: 696px;
  width: 258px;
  bottom: 16px;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cta-pretitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237,230,214,.55);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: pretitle-in 6s var(--ease) infinite;
}
.cta-pretitle::before {
  content: "";
  width: 14px; height: 1px;
  background: var(--saffron);
}

.cta-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 38px;
  line-height: .9;
  letter-spacing: .02em;
  color: var(--bone);
  margin: 6px 0 0;
  opacity: 0;
  animation: cta-headline-in 6s var(--ease) infinite;
}
.cta-headline .ko { color: var(--saffron); }

.cta {
  height: 44px;
  background: var(--saffron);
  color: var(--obsidian);
  border: none;
  border-radius: 2px;
  font-family: 'Archivo', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  animation: cta-in 6s var(--ease) infinite;
  transition: background-color .18s var(--ease), color .18s var(--ease);
  width: 100%;
}
.cta:hover { background: var(--bone); }
.cta .arrow { font-weight: 800; font-size: 16px; }

.cta-foot {
  display: flex;
  justify-content: space-between;
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(237,230,214,.4);
  margin-top: 6px;
  opacity: 0;
  animation: foot-in 6s var(--ease) infinite;
}

/* In frame 1, the right column shows a quiet "issue" mark instead of CTA.
   We let cta-headline cover both states via the keyframes. */

/* ============================================================
   TRANSITION — saffron slash bar sweeps across
   ============================================================ */
.slash-bar {
  position: absolute;
  top: 50%;
  left: -8px;
  width: 0;
  height: 30px;
  background: var(--saffron);
  transform: translateY(-50%) skewX(-18deg);
  transform-origin: left center;
  z-index: 25;
  animation: slash-sweep 6s var(--ease) infinite;
  pointer-events: none;
}

/* ============================================================
   KEYFRAMES — 6s loop
   0 – 2.5s    Frame 1 holds (crisp big, headline big)
   2.5 – 3.0s  transition (slash sweep, pack slides in, headline shrinks)
   3.0 – 5.5s  Frame 2 holds (pack + tagline + CTA)
   5.5 – 6.0s  reverse → loop
   ============================================================ */

/* CRISP — gentle in-frame zoom in frame 1, then small ken-burns drift in frame 2 */
@keyframes crisp-zoom {
  0%   { transform: rotate(-8deg) scale(1);    }
  41.67% { transform: rotate(-8deg) scale(1.05); }
  50%  { transform: rotate(-8deg) scale(.92); }
  91.67% { transform: rotate(-8deg) scale(.96); }
  100% { transform: rotate(-8deg) scale(1);    }
}

/* HEADLINE — full size in frame 1, fades out during transition */
@keyframes headline-out {
  0%, 38% { opacity: 1; transform: translateY(0); }
  46%, 95% { opacity: 0; transform: translateY(-10px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* SLASH BAR — sweeps L→R at 2.5–3, then R→L at 5.5–6 */
@keyframes slash-sweep {
  0%, 41.67% { width: 0; left: -8px; opacity: 0; }
  43%        { opacity: 1; }
  47%        { width: 1000px; left: -8px; opacity: 1; }
  50%        { width: 0; left: 982px; opacity: 0; }
  91.67%     { width: 0; left: 982px; opacity: 0; }
  93%        { opacity: 1; }
  97%        { width: 1000px; left: -8px; opacity: 1; }
  100%       { width: 0; left: -8px; opacity: 0; }
}

/* PACK — slides in from right during transition, holds, slides off */
@keyframes pack-slide {
  0%, 43%        { transform: translateX(420px); opacity: 0; }
  47%            { opacity: 1; }
  50%, 91.67%    { transform: translateX(0);     opacity: 1; }
  95%            { transform: translateX(-420px); opacity: 0; }
  100%           { transform: translateX(420px); opacity: 0; }
}

/* tagline + proof appear once pack lands */
@keyframes tagline-in {
  0%, 48% { opacity: 0; transform: translateY(6px); }
  54%, 90% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes proof-in {
  0%, 50% { opacity: 0; }
  56%, 90% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

/* right column — pretitle + cta-headline + cta + foot */
@keyframes pretitle-in {
  0%, 48% { opacity: 0; }
  54%, 90% { opacity: 1; }
  93%, 100% { opacity: 0; }
}
@keyframes cta-headline-in {
  0%, 50% { opacity: 0; transform: translateY(6px); }
  56%, 90% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(6px); }
}
@keyframes cta-in {
  0%, 51% { opacity: 0; transform: translateY(8px); }
  57%, 90% { opacity: 1; transform: translateY(0); }
  93%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes foot-in {
  0%, 53% { opacity: 0; }
  60%, 90% { opacity: 1; }
  93%, 100% { opacity: 0; }
}

/* ============================================================
   REDUCED MOTION — show frame 2 statically
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .crisp, .headline, .slash-bar, .pack,
  .tagline, .proof, .cta-pretitle, .cta-headline, .cta, .cta-foot {
    animation: none !important;
  }
  .headline { opacity: 0; }
  .crisp { transform: rotate(-8deg) scale(.92); }
  .pack { transform: translateX(0); opacity: 1; }
  .tagline, .proof, .cta-pretitle, .cta-headline, .cta-foot { opacity: 1; transform: none; }
  .cta { opacity: 1; transform: none; }
}
