/* Protein'D brand page, rebuilt around energy: hold the D to charge it (it splits the red onto the store), the warning
   tape and the burrito cartons that tip toward you, the hunger meter, the order on its way, the crew's prints to snap
   and shake, and the turning billboard around town. Red, volt, cream and iron; Archivo, heavy and lowercase. */
:root {
  --red: #EE3F24;
  --volt: #EFFF00;
  --cream: #FFEFCB;
  --iron: #111111;
  --coal: #1C1A19;
  --font: '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.5, .4, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--iron); color: var(--cream); font: 500 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, figure, ol { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--volt); outline-offset: 4px; }
h2 { font-weight: 900; font-size: clamp(52px, 8.4vw, 150px); line-height: .86; letter-spacing: -.045em; text-transform: lowercase; }
h2 em { font-style: normal; color: var(--red); }

/* small capitals after a short rule that breathes */
.hint { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; line-height: 1; letter-spacing: .2em; text-transform: uppercase; }
.hint i { width: 24px; height: 2px; background: currentColor; transform-origin: 0 50%; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scaleX(.4); } }

/* bar, and the page's one flash */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; padding: 14px var(--gut); pointer-events: none; }
.bar > * { pointer-events: auto; }
.flash { position: fixed; inset: 0; z-index: 50; background: #FFFDEA; opacity: 0; pointer-events: none; }

/* 1. Hold to charge: the D fills with volt from the bottom (--c), the ring round it fills too, and it shakes (--sx,
   --sy) as it nears full; then the two halves of the red part along the bolt onto the store */
.charge { position: relative; height: 230vh; background: var(--red); }
.charge-stage { position: sticky; top: 0; display: grid; place-items: center; height: 100vh; height: 100svh; overflow: hidden; }
.charge-shop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: var(--shop, 1.12); }
.charge:not(.open) .charge-shop { opacity: 0; } /* so nothing shows along the seam between the halves until they part */
.charge-logo { position: absolute; inset: 0; display: grid; place-items: center; padding: var(--gut); opacity: 0; transition: opacity .8s .3s;
  background: radial-gradient(70% 60% at 50% 52%, rgba(17, 17, 17, .66), rgba(17, 17, 17, .2) 72%); }
.charge-logo img { width: min(80vw, 860px); translate: 0 30px; scale: .92; transition: translate 1s .3s var(--ease), scale 1s .3s var(--ease); }
.charge.open .charge-logo { opacity: 1; }
.charge.open .charge-logo img { translate: 0 0; scale: 1; }
.charge-half { position: absolute; inset: -2px; background: var(--red); will-change: transform; transition: transform 1s cubic-bezier(.7, 0, .2, 1); }
.charge-half.a { clip-path: polygon(0 0, 60% 0, 44% 54%, 58% 50%, 40% 100%, 0 100%); }
.charge-half.b { clip-path: polygon(60% 0, 100% 0, 100% 100%, 40% 100%, 58% 50%, 44% 54%); }
.charge.open .charge-half.a { transform: translate(-64%, -16%) rotate(-7deg); }
.charge.open .charge-half.b { transform: translate(64%, 16%) rotate(7deg); }
.charge-d { position: relative; z-index: 2; display: grid; place-items: center; width: min(44vw, 40vh, 340px); aspect-ratio: 1; touch-action: none; user-select: none;
  -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .7s var(--ease), opacity .45s; }
.charge.open .charge-d { transform: scale(2.6); opacity: 0; pointer-events: none; }
.charge-d::before { content: ""; position: absolute; inset: -30%; border-radius: 50%; background: radial-gradient(circle, rgba(239, 255, 0, .55), rgba(239, 255, 0, 0) 62%); opacity: var(--c, 0); }
.charge-ring { position: absolute; inset: -14%; width: 128%; height: 128%; rotate: -90deg; overflow: visible; pointer-events: none; }
.charge-ring circle { fill: none; stroke: rgba(255, 239, 203, .28); stroke-width: 3; }
.charge-ring .ring-fill { stroke: var(--volt); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 352; stroke-dashoffset: calc(352 * (1 - var(--c, 0)));
  filter: drop-shadow(0 0 6px rgba(239, 255, 0, .9)); }
.charge-d img { position: absolute; width: 72%; translate: var(--sx, 0px) var(--sy, 0px); pointer-events: none; -webkit-user-drag: none; }
.d-off { opacity: .4; }
.d-on { clip-path: inset(calc((1 - var(--c, 0)) * 100%) 0 0 0); filter: drop-shadow(0 0 calc(var(--c, 0) * 22px) rgba(239, 255, 0, .9)); }
.sparks i { position: absolute; left: 50%; top: 50%; width: 3px; height: 22px; margin: -11px 0 0 -1.5px; border-radius: 2px; background: var(--volt);
  box-shadow: 0 0 10px var(--volt); opacity: 0; }
.charge-hint { position: absolute; z-index: 2; left: 50%; bottom: clamp(26px, 6vh, 56px); translate: -50% 0; color: var(--cream); transition: opacity .4s; }
.charge.open .charge-hint { opacity: 0; }

/* 2. Warning: hazard tape run by the script (--tx), and two cartons that tip toward the pointer (--rx, --ry) under a
   glare that follows it (--gx, --gy, --go) */
.warn { position: relative; padding: clamp(160px, 24vh, 240px) var(--gut) clamp(90px, 14vh, 150px); background: var(--iron); overflow: hidden; }
.tape { position: absolute; left: -10%; right: -10%; top: clamp(44px, 8vh, 80px); padding: 10px 0; overflow: hidden; background: var(--volt); color: var(--iron); rotate: -3.5deg;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8); }
.tape::before, .tape::after { content: ""; position: absolute; left: 0; right: 0; height: 9px; background: repeating-linear-gradient(-45deg, var(--iron) 0 10px, var(--volt) 10px 20px); }
.tape::before { top: 0; }
.tape::after { bottom: 0; }
.tape-run { display: inline-block; padding: 12px 0 10px; white-space: nowrap; font-weight: 900; font-size: clamp(18px, 2vw, 30px); letter-spacing: -.01em; text-transform: uppercase;
  translate: var(--tx, 0px) 0; }
.warn h2 { position: relative; margin-bottom: clamp(36px, 6vh, 70px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); perspective: 1300px; }
.tilt { position: relative; aspect-ratio: 1672 / 941; border-radius: clamp(14px, 1.6vw, 24px); overflow: hidden; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .85); will-change: transform; }
.tilt img { width: 100%; height: 100%; object-fit: cover; }
.glare { position: absolute; inset: 0; pointer-events: none; opacity: var(--go, 0); transition: opacity .35s; mix-blend-mode: screen;
  background: radial-gradient(55% 55% at var(--gx, 50%) var(--gy, 0%), rgba(255, 250, 220, .42), transparent 62%); }

/* 3. How hungry: the meter's fill and knob follow the script (--m), the packaging changes with a zap */
.hunger { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(26px, 4vh, 44px) clamp(28px, 4vw, 70px); align-items: center;
  padding: clamp(90px, 13vh, 150px) var(--gut); background: var(--cream); color: var(--iron); }
.hunger h2 { grid-row: 1 / span 2; color: var(--iron); }
.plate { position: relative; grid-column: 2; aspect-ratio: 1672 / 941; border-radius: clamp(16px, 2vw, 28px); overflow: hidden; background: var(--iron); box-shadow: 0 40px 70px -40px rgba(60, 20, 0, .6); }
.plate-img { width: 100%; height: 100%; object-fit: cover; }
.zap { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(105deg, transparent 30%, var(--volt) 48%, #fff 50%, var(--volt) 52%, transparent 70%) 0 0 / 300% 100%; }
.plate.zapping .plate-img { animation: zapImg .5s steps(1) 1, zapShift .5s ease-out; }
.plate.zapping .zap { animation: zapFlash .5s ease-out; }
@keyframes zapImg { 0%, 100% { filter: none; } 10% { filter: brightness(1.9) saturate(1.8) hue-rotate(-14deg); } 30% { filter: brightness(1.3) contrast(1.3); } 50% { filter: none; } }
@keyframes zapShift { 10% { translate: -8px 0; } 25% { translate: 6px 0; } 40% { translate: -3px 0; } 100% { translate: 0 0; } }
@keyframes zapFlash { 0% { opacity: .9; background-position: 100% 0; } 100% { opacity: 0; background-position: 0 0; } }
.meter { position: relative; grid-column: 2; height: 110px; touch-action: pan-y; }
.meter-track { position: absolute; left: 0; right: 0; top: 23px; height: 18px; border-radius: 999px; background: rgba(17, 17, 17, .1); overflow: hidden; cursor: pointer; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: var(--m, 0%); background: linear-gradient(90deg, var(--red), #FF8A1E 55%, var(--volt)) 0 0 / var(--tw, 600px) 100% no-repeat; }
.meter-knob { position: absolute; top: 32px; left: var(--m, 0%); display: grid; place-items: center; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%;
  background: var(--iron); box-shadow: 0 10px 24px rgba(17, 17, 17, .35), 0 0 0 4px var(--cream); cursor: grab; touch-action: none; transition: scale .3s var(--spring); }
.meter-knob img { width: 54%; pointer-events: none; -webkit-user-drag: none; }
.meter-knob:active { cursor: grabbing; scale: 1.1; }
.meter-steps li { position: absolute; top: 74px; font-weight: 900; font-size: clamp(18px, 1.8vw, 28px); line-height: 1; letter-spacing: -.03em; opacity: .3; cursor: pointer;
  transition: opacity .3s, color .3s; }
.meter-steps li:nth-child(1) { left: 0; }
.meter-steps li:nth-child(2) { left: 33.33%; translate: -50% 0; }
.meter-steps li:nth-child(3) { left: 66.67%; translate: -50% 0; }
.meter-steps li:nth-child(4) { right: 0; }
.meter-steps li.on { opacity: 1; color: var(--red); }

/* 4. On its way: the photos come up one over another (--r, --k), the line fills (--p) and the scooter rides it */
.track { position: relative; height: 520vh; background: var(--coal); }
.track-stage { position: sticky; top: 0; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); height: 100vh; height: 100svh; overflow: hidden; }
.track-photos { position: relative; overflow: hidden; }
.track-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: var(--k, 1.08); clip-path: inset(calc((1 - var(--r, 0)) * 100%) 0 0 0); }
.track-photos img:first-child { --r: 1; }
.track-panel { position: relative; display: grid; align-content: center; gap: clamp(18px, 3vh, 30px); padding: clamp(80px, 12vh, 120px) var(--gut) clamp(40px, 8vh, 80px) clamp(28px, 4vw, 64px); }
.track h2 { font-size: clamp(48px, 6vw, 112px); }
.eta { display: flex; align-items: baseline; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eta-n { font-size: clamp(44px, 4.6vw, 76px); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: var(--volt); font-variant-numeric: tabular-nums; text-transform: lowercase; }
.eta.done .eta-k, .eta.done .eta-u { display: none; }
.steps { position: relative; display: grid; gap: clamp(12px, 2.2vh, 22px); padding-left: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 12px; top: 12px; width: 3px; border-radius: 2px; }
.steps::before { bottom: 12px; background: rgba(255, 239, 203, .15); }
.steps::after { height: calc((100% - 24px) * var(--p, 0)); background: linear-gradient(var(--red), var(--volt)); }
.steps li { position: relative; }
.steps li::before { content: ""; position: absolute; left: -35px; top: 50%; width: 15px; height: 15px; translate: 0 -50%; border-radius: 50%; background: var(--coal);
  box-shadow: 0 0 0 3px rgba(255, 239, 203, .25); transition: background-color .3s, box-shadow .3s; }
.steps li.done::before { background: var(--volt); box-shadow: 0 0 0 3px var(--volt), 0 0 16px rgba(239, 255, 0, .6); }
.steps button { font-weight: 900; font-size: clamp(22px, 2.3vw, 36px); line-height: 1; letter-spacing: -.035em; opacity: .32; transition: opacity .3s, color .3s; }
.steps li.done button { opacity: 1; }
.steps li.now button { color: var(--volt); }
.scooter { position: absolute; left: 0; top: 0; width: 46px; height: 35px; translate: var(--sx, 0px) calc(var(--sy, 0px) + var(--bob, 0px)); pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.scooter rect { fill: var(--red); }
.scooter path, .scooter circle { fill: none; stroke: var(--cream); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }

/* 5. Meet the crew: polaroids that come up out of the dark as they develop (--dev) */
.crew { padding: clamp(90px, 13vh, 150px) var(--gut); background: var(--red); color: var(--cream); overflow: hidden; }
.prints { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4.5vw, 80px); max-width: 1180px; margin: clamp(40px, 7vh, 70px) auto 0; }
.print { padding: clamp(10px, 1.3vw, 18px) clamp(10px, 1.3vw, 18px) 0; border-radius: 6px; background: #FFF9EC; color: var(--iron); box-shadow: 0 34px 60px -26px rgba(70, 10, 0, .7);
  rotate: var(--tilt, 0deg); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: translate .5s var(--spring); }
.print:nth-child(1) { --tilt: -3deg; }
.print:nth-child(2) { --tilt: 2.5deg; margin-top: clamp(20px, 5vh, 60px); }
.print.held { cursor: grabbing; transition: none; }
.print-photo { aspect-ratio: 4 / 3; overflow: hidden; background: #241712; }
.print-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; opacity: calc(.35 + var(--dev, 0) * .65);
  filter: brightness(calc(.1 + var(--dev, 0) * .9)) sepia(calc((1 - var(--dev, 0)) * .9)) blur(calc((1 - var(--dev, 0)) * 7px)); }
.print figcaption { padding: clamp(12px, 1.6vw, 18px) 4px clamp(16px, 2vw, 24px); font-weight: 900; font-size: clamp(18px, 2vw, 30px); line-height: 1; letter-spacing: -.035em; text-align: center; }
.crew-foot { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: clamp(34px, 6vh, 60px); }
.shutter { display: grid; place-items: center; width: 78px; height: 78px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 0 7px rgba(255, 239, 203, .28), 0 14px 28px rgba(70, 10, 0, .45);
  transition: scale .25s var(--spring); }
.shutter span { width: 50px; height: 50px; border-radius: 50%; background: var(--volt); box-shadow: inset 0 0 0 4px var(--iron); }
.shutter:hover { scale: 1.06; }
.shutter:active { scale: .9; }

/* 6. Around town: a billboard of three-sided slats; each face holds its slice of a scene (--bx), and the slats turn
   (--step) one after another (--d) */
.town { padding: clamp(90px, 13vh, 150px) var(--gut) clamp(80px, 12vh, 130px); background: var(--iron); }
.board { position: relative; display: flex; width: min(100%, 1200px, 138vh); aspect-ratio: 16 / 9; margin: clamp(36px, 6vh, 64px) auto 0; overflow: hidden; perspective: 2400px;
  border: clamp(8px, 1vw, 14px) solid #2A2726; border-radius: 6px; background: #0B0B0B; box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .9); cursor: pointer; touch-action: pan-y;
  user-select: none; -webkit-user-select: none; }
.slat { position: relative; flex: 1; transform-style: preserve-3d; transform: translateZ(calc(var(--r, 0px) * -1)) rotateY(calc(var(--step, 0) * -120deg));
  transition: transform .9s cubic-bezier(.65, 0, .25, 1) var(--d, 0s); }
.face { position: absolute; inset: 0; backface-visibility: hidden; background-size: var(--bw, 100%) var(--bh, 100%); background-position: var(--bx, 0px) 0;
  transform: rotateY(var(--fa, 0deg)) translateZ(var(--r, 0px)); box-shadow: inset -1px 0 0 rgba(0, 0, 0, .45); }
.board-foot { display: flex; justify-content: space-between; align-items: center; width: min(100%, 1200px, 138vh); margin: 18px auto 0; }
.board-count { font-weight: 900; font-size: 22px; letter-spacing: -.02em; color: var(--volt); }

/* The end */
.end { display: grid; justify-items: center; gap: 22px; padding: clamp(90px, 14vh, 150px) var(--gut) clamp(48px, 8vh, 80px); background: var(--red); color: var(--cream); text-align: center; }
.end-d { width: 74px; animation: jolt 3.2s ease-in-out infinite; }
@keyframes jolt { 0%, 86%, 100% { transform: none; } 90% { transform: rotate(-8deg) scale(1.08); } 94% { transform: rotate(6deg) scale(1.04); } }
.end-logo { width: min(80vw, 520px); }
.end-line { font-weight: 700; }
.end-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--cream); background: var(--cream); color: var(--red);
  text-decoration: none; font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; transition: background-color .3s, color .3s; }
.pill span { transition: translate .3s var(--spring); }
.pill:hover span { translate: 4px 0; }
.pill:hover { background: transparent; color: var(--cream); }
.pill.ghost { background: transparent; color: var(--cream); }
.pill.ghost:hover { background: var(--cream); color: var(--red); }

@media (max-width: 860px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .hunger { grid-template-columns: minmax(0, 1fr); }
  .hunger h2 { grid-row: auto; }
  .plate, .meter { grid-column: 1; }
  .meter { margin-inline: 22px; }
  .track-stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44% 56%; }
  .track-panel { align-content: start; gap: 14px; padding: 22px var(--gut) 24px; }
  .track h2 { font-size: 40px; }
  .steps { gap: 10px; }
  .steps button { font-size: 21px; }
  .eta-n { font-size: 40px; }
  .prints { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .print:nth-child(2) { margin-top: -10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hint i { 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; } }
