/* Big Bang Chicken brand page, loud and packaging first, told by scrolling: the emblem's BANG! blowing the packs out
   across the screen, the packs riding past with their names shouted behind them, the range in flash cuts, the bolt
   from the logo striking down with the tagline, the delivery scooter riding through, the A-board walked up to, the
   poster wall tracked along and the kiosk pulled back from. Red, yellow, orange; Anton. */
:root {
  --red: #D52F35;
  --yellow: #FBD20A;
  --orange: #F2891D;
  --cream: #FFF6E6;
  --char: #1E0607;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --gut: max(clamp(16px, 4vw, 56px), (100vw - 1840px) / 2);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, 1.6, .4, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--red); color: var(--cream); font: 500 16px/1.5 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: .9; letter-spacing: .005em; }
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; padding: 14px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }

/* Pinned sections: taller than the screen, with a stage that holds still while the scroll drives it */
.pin { position: relative; height: 220vh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
.tag { position: absolute; z-index: 2; left: var(--gut); bottom: clamp(20px, 5vh, 48px); padding: 10px 18px; border-radius: 999px; background: var(--yellow); color: var(--char);
  font: 400 clamp(18px, 1.8vw, 26px)/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }

/* 1. The big bang: the scroll sets it off (--q): the BANG! pops and the packs fly out along their own lines */
.bang { height: 280vh; }
.bang .stage { background: var(--red); }
.bang-core { position: absolute; left: 50%; top: 52%; width: min(70vh, 92vw); aspect-ratio: 1; translate: calc(-50% + var(--jx, 0px)) calc(-50% + var(--jy, 0px)); display: grid; place-items: center;
  scale: calc(1 - var(--q, 0) * .25); animation: pop .9s .1s var(--spring) both; }
@keyframes pop { from { scale: 0; rotate: -20deg; } }
.burst { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.burst polygon { stroke: var(--char); stroke-width: 2.4; stroke-linejoin: round; }
.burst-back { scale: calc(1.08 + var(--q, 0) * .5); rotate: calc(8deg + var(--q, 0) * 40deg); }
.burst-back polygon { fill: var(--yellow); }
.burst-front polygon { fill: var(--cream); }
.bang-emblem { position: relative; width: 52%; animation: beat 1.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { scale: 1; } 12% { scale: 1.05; } 24% { scale: 1; } 36% { scale: 1.03; } }
.blast { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(60vmin, 520px); aspect-ratio: 1; translate: -50% -50%; scale: var(--bs, 0); opacity: var(--bo, 0); pointer-events: none; }
.blast svg { width: 100%; height: 100%; overflow: visible; }
.blast polygon { fill: var(--yellow); stroke: var(--char); stroke-width: 3; stroke-linejoin: round; }
.blast b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; rotate: -8deg; font: 400 calc(min(60vmin, 520px) * .22)/1 var(--display); color: var(--red); -webkit-text-stroke: 2px var(--char); }
.flyers { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.flyers img { position: absolute; left: 50%; top: 52%; width: clamp(90px, 11vw, 180px); max-width: none; translate: -50% -50%; opacity: 0; will-change: transform;
  filter: drop-shadow(0 16px 18px rgba(30, 6, 7, .3)); }
.bang-hint { position: absolute; left: 50%; bottom: clamp(18px, 4vh, 36px); translate: -50% 0; color: var(--cream); white-space: nowrap; opacity: calc(1 - var(--q, 0) * 5); }

/* 2. The packs ride past (each one's --d is how far it is from the middle); the one in the middle shouts its name */
.packs .stage { background: var(--yellow); color: var(--char); }
.pack-name { position: absolute; inset: 0; display: grid; place-items: start center; padding-top: clamp(64px, 10vh, 110px); pointer-events: none;
  font: 400 clamp(84px, 23vw, 400px)/.8 var(--display); text-transform: uppercase; color: var(--red); white-space: nowrap; }
.pack-name span { display: block; }
.pack-name span.slam { animation: slam .55s var(--spring); }
@keyframes slam { from { scale: 1.35; opacity: 0; } }
.pack-run { position: absolute; inset: 0; }
.pack { position: absolute; left: 50%; top: 61%; height: min(52vh, 92vw); width: auto; max-width: none; translate: -50% -50%; will-change: transform;
  filter: drop-shadow(0 30px 28px rgba(30, 6, 7, .28)); }
.pack.hop { animation: hop .6s var(--spring); }
@keyframes hop { 40% { translate: -50% -58%; } }
.pack-count { position: absolute; right: var(--gut); bottom: clamp(20px, 4.5vh, 44px); font: 400 clamp(22px, 2.4vw, 36px)/1 var(--display); color: var(--red); }

/* 3. Flash cuts */
.flash { height: 520vh; }
.flash-stage { background: var(--char); }
.shot { position: absolute; inset: 0; visibility: hidden; }
.shot.on { visibility: visible; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot.on img { animation: punch .5s var(--ease); }
@keyframes punch { from { scale: 1.12; } }
.shot figcaption { position: absolute; left: var(--gut); bottom: clamp(20px, 5vh, 48px); font: 400 clamp(40px, 7vw, 120px)/.9 var(--display); text-transform: uppercase; color: var(--cream);
  -webkit-text-stroke: 1px rgba(30, 6, 7, .3); text-shadow: 0 6px 0 var(--char); }
.flash-light { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.flash-light.go { animation: light .4s ease-out; }
@keyframes light { 0% { opacity: .85; } 100% { opacity: 0; } }
.flash-bolt { position: absolute; left: 50%; top: 50%; height: 70vh; width: auto; translate: -50% -50%; opacity: 0; pointer-events: none; overflow: visible; }
.flash-bolt path { fill: var(--yellow); stroke: var(--char); stroke-width: 4; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.flash-bolt.go { animation: bolt .45s ease-out; }
@keyframes bolt { 0% { opacity: 1; scale: .7 1.1; } 100% { opacity: 0; scale: 1.1 1; } }
.flash-title { position: absolute; left: var(--gut); top: clamp(80px, 13vh, 130px); font-size: clamp(34px, 4.6vw, 76px); color: var(--yellow); text-shadow: 0 5px 0 var(--char); }
.flash-count { position: absolute; right: var(--gut); bottom: clamp(20px, 5vh, 48px); font: 400 clamp(22px, 2.4vw, 36px)/1 var(--display); color: var(--cream); text-shadow: 0 3px 0 var(--char); }
.flash-count b { font-weight: 400; color: var(--yellow); }

/* 4. The strike: the bolt comes down the page (--sb), the rooster rises behind (--sr) and the tagline slams in (--st) */
.strike .stage { background: var(--red); display: grid; place-items: center; }
.bolt { position: absolute; left: 50%; top: -4vh; width: min(30vw, 36vh); height: 108vh; translate: -50% 0; overflow: visible;
  clip-path: inset(0 -20% calc((1 - var(--sb, 0)) * 100%) -20%); }
.bolt path { fill: var(--yellow); stroke: var(--char); stroke-width: 5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.rooster { position: absolute; left: 50%; bottom: 0; width: min(62vh, 80vw); aspect-ratio: 757 / 829; translate: -50% calc((1 - var(--sr, 0)) * 70%); background: var(--cream); opacity: .16;
  -webkit-mask: url(img/mark-rooster.png) center / contain no-repeat; mask: url(img/mark-rooster.png) center / contain no-repeat; }
.strike-flash { position: absolute; inset: 0; background: #fff; opacity: var(--sf, 0); pointer-events: none; }
.tagline { position: relative; z-index: 2; display: grid; justify-items: center; font-size: clamp(64px, 13vw, 240px); line-height: .85; text-align: center; }
.tagline .t1 { color: var(--yellow); text-shadow: 0 8px 0 var(--char); translate: calc((1 - var(--st, 0)) * -130vw) 0; }
.tagline .t2 { color: var(--cream); text-shadow: 0 8px 0 var(--char); translate: calc((1 - var(--st, 0)) * 130vw) 0; }

/* 5. The ride */
.ride { height: 260vh; }
.ride-stage { background: var(--orange); }
.ride h2 { position: absolute; left: var(--gut); top: clamp(80px, 13vh, 130px); font-size: clamp(48px, 8.4vw, 150px); color: var(--cream); text-shadow: 0 6px 0 var(--char); }
.ride h2 span { color: var(--char); text-shadow: none; }
.road { position: absolute; left: 0; right: 0; bottom: 15vh; height: 4px; background: repeating-linear-gradient(90deg, var(--char) 0 46px, transparent 46px 80px); opacity: .5;
  background-position-x: var(--road, 0px); }
.scooter { position: absolute; left: 0; bottom: calc(15vh + 2px); width: min(48vw, 600px); translate: var(--sx, -100vw) 0; rotate: var(--tilt, 0deg); transform-origin: 30% 100%; }
.scooter img { width: 100%; }
.scooter.moving img { animation: putt .14s linear infinite alternate; }
@keyframes putt { to { translate: 0 -2px; } }
.scooter.honk img { animation: honk .5s var(--spring); }
@keyframes honk { 30% { translate: 0 -8%; rotate: -3deg; } }
.lines { position: absolute; left: -38%; top: 30%; width: 40%; height: 40%; display: grid; align-content: space-around; opacity: var(--blur, 0); }
.lines i { display: block; height: 4px; border-radius: 4px; background: var(--char); }
.lines i:nth-child(2) { margin-left: 30%; }
.lines i:nth-child(3) { margin-left: 12%; }
.beep { position: absolute; left: 58%; top: -14%; padding: 10px 18px; border-radius: 26px; background: var(--cream); color: var(--red); border: 3px solid var(--char);
  font: 400 clamp(20px, 2.2vw, 34px)/1 var(--display); text-transform: uppercase; white-space: nowrap; rotate: -8deg; scale: 0; transform-origin: 0 100%; transition: scale .3s var(--spring); }
.scooter.honk .beep { scale: 1; }

/* 6. The A-board: the scroll walks up to it (--bz) */
.board .stage { background: var(--char); }
.board-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 52% 50%; scale: calc(1 + var(--bz, 0) * 1.15); }

/* 7. The poster wall: the camera tracks along it (--pt, -1 to 1) */
.posters .stage { background: var(--char); }
.posters-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 58%; scale: 1.7;
  translate: calc(var(--pt, 0) * -21%) 0; }

/* 8. The kiosk: the view pulls back from it (--kz) */
.street .stage { background: var(--char); }
.street-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 55%; scale: calc(1.45 - var(--kz, 0) * .45); }
.street .stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 6, 7, .85), transparent 50%); pointer-events: none; }
.street h2 { position: absolute; z-index: 1; left: var(--gut); bottom: clamp(32px, 8vh, 80px); font-size: clamp(64px, 11vw, 200px); color: var(--yellow); opacity: var(--kz, 0);
  translate: 0 calc((1 - var(--kz, 0)) * 40px); }

/* The end */
.end { display: grid; justify-items: center; gap: 22px; padding: clamp(80px, 12vh, 140px) var(--gut) clamp(48px, 8vh, 80px); background: var(--cream); color: var(--char); text-align: center; }
.end-emblem { width: clamp(150px, 16vw, 230px); }
.end-line { font: 400 clamp(28px, 3vw, 46px)/1 var(--display); text-transform: uppercase; color: var(--red); }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--red); background: var(--red); color: #fff;
  text-decoration: none; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; transition: background-color .25s, color .25s, border-color .25s; }
.pill span { transition: translate .3s var(--spring); }
.pill:hover span { translate: 4px 0; }
.pill:hover { background: var(--yellow); border-color: var(--yellow); color: var(--char); }
.pill.ghost { background: transparent; color: var(--char); border-color: var(--char); }

@media (max-width: 700px) {
  .bang-core { width: min(92vw, 60vh); }
  .scooter { width: 86vw; }
  .pack { height: min(44vh, 80vw); }
  /* the street shots are wider than a phone: the photo itself pans instead */
  .posters-img { scale: 1.15; translate: 0 0; object-position: calc(50% + var(--pt, 0) * 50%) 58%; }
  .bolt { width: 44vw; }
}
@media (prefers-reduced-motion: reduce) {
  .bang-emblem, .scooter.moving img { animation: none; }
}

/* Back to Grit Fox: the agency's own chip on every brand page. The fox blinks now and then, and tilts its head and
   glances back when you point at it. */
.bar-back.fox-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 12px;
  border-radius: 999px; background: #1A1A1A; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; opacity: 1;
  transition: translate .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s;
}
.bar-back.fox-back:hover { color: #fff; text-decoration: none; opacity: 1; translate: -2px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.bar-back.fox-back:focus-visible { outline: 3px solid #F0AC1D; outline-offset: 3px; }
.fox-back i { font-style: normal; font-weight: 400; font-size: 14px; color: #F0AC1D; transition: translate .3s cubic-bezier(.2, 1.4, .4, 1); }
.fox-back:hover i { translate: -3px 0; }
.fox-back .fx { width: 24px; height: 24px; flex: none; overflow: visible; }
.fox-back .fx-head { transform-box: view-box; transform-origin: 500px 430px; transition: rotate .5s cubic-bezier(.2, 1.6, .4, 1); }
.fox-back:hover .fx-head { rotate: -12deg; }
.fox-back .fx-iris { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.fox-back:hover .fx-iris { translate: -24px 6px; }
.fox-back .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.2s ease-in-out infinite; }
.fox-back:active .fx-eye { animation: none; scale: 1 .08; }
@keyframes fxBlink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .08; } }
/* a wink when pointed at: it stays even with reduced motion, as it is tiny and only follows the pointer */
.fox-back:hover .fx-eye { animation: fxWink .34s ease-in-out; }
@keyframes fxWink { 0%, 100% { scale: 1 1; } 50% { scale: 1 .08; } }
@media (max-width: 760px) { .bar-back.fox-back { gap: 5px; padding: 0 11px 0 10px; } .fox-back span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fox-back .fx-eye { animation: none; } }
