/* FOFITOS brand page: Fofi rising behind the logo (he leans toward you and talks when tapped), Nothing to hide with
   shy Fofi, the story, a scroll flipbook of Fofi's poses, a sideways packaging run, Eat heavy. Feel light. with a
   rolling Fofi, the city, digital, the marks and colours, credits. Fofi is line art drawn as a mask (--src), so each
   section can colour him. */
:root {
  --purple: #5B0B8D;
  --yellow: #FBC802;
  --white: #F6F2FA;
  --ink: #1B1028;
  --font: 'Outfit', system-ui, sans-serif;
  --gut: max(clamp(16px, 4vw, 56px), (100vw - 1840px) / 2); /* content stops at 1840px on 27" and ultrawide screens */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 300 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, .sec { font-weight: 800; line-height: .95; letter-spacing: -.03em; }
em { font-style: normal; color: var(--yellow); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.wrap { padding-inline: var(--gut); }
.sec { font-size: clamp(44px, 7vw, 116px); color: var(--purple); margin-bottom: clamp(16px, 2.4vw, 30px); }
.label { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--purple); }
/* Fofi as a mask: the PNG's lines, in the section's colour. */
.ink { display: block; aspect-ratio: var(--ar); background: var(--ink-c, currentColor); -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }

/* Bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px var(--gut); color: #fff; transition: background-color .3s, color .3s; }
.bar.solid { background: rgba(246, 242, 250, .94); color: var(--purple); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(91, 11, 141, .12); }
.bar-back { font-weight: 600; text-decoration: none; font-size: 15px; }
.bar-mark .ink { width: 44px; transition: transform .4s var(--spring); }
.bar-mark:hover .ink { transform: rotate(-12deg) scale(1.1); }
.bar-nav { justify-self: end; display: flex; gap: 22px; font-size: 15px; font-weight: 400; }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { color: var(--yellow); }
.bar.solid .bar-nav a:hover { color: var(--ink); }
@media (max-width: 760px) { .bar-nav { display: none; } .bar { grid-template-columns: 1fr auto; } .bar-mark { justify-self: end; } }

/* 1. Landing: pinned. --p (0 to 1) brings Fofi up behind the logo; --lean is the pointer; .hop is a tap. */
.land { position: relative; height: 210vh; background: var(--purple); color: #fff; }
.land-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.land-logo { position: relative; z-index: 2; width: min(78vw, 860px); transform: translateY(calc(var(--p, 0) * -18vh)) scale(calc(1 - var(--p, 0) * .25)); animation: drop .9s var(--spring) both; }
@keyframes drop { from { transform: translateY(-40px) scale(1.2); opacity: 0; } }
.land-fofi { all: unset; position: absolute; z-index: 3; left: 50%; bottom: 0; width: min(62vmin, 560px); cursor: pointer; transform-origin: 50% 100%;
  transform: translate(-50%, max(calc((1 - var(--p, 0)) * 92%), var(--min-y, 0px))) rotate(var(--lean, 0deg)); transition: transform .25s var(--ease); }
.land-fofi img { width: 100%; pointer-events: none; user-select: none; }
.land-fofi.hop { animation: hop .7s var(--spring); }
@keyframes hop { 30% { scale: 1.08 .9; } 55% { translate: 0 -12%; scale: .95 1.06; } 100% { translate: 0 0; scale: 1; } }
.bubble { position: absolute; z-index: 4; left: 50%; bottom: calc(min(62vmin, 560px) * var(--p, 0) * .86 + 10px); translate: 10% 0; max-width: min(70vw, 300px); padding: 12px 18px; border-radius: 22px 22px 22px 4px;
  background: var(--yellow); color: var(--ink); font-weight: 600; font-size: clamp(15px, 1.4vw, 19px); line-height: 1.25; opacity: 0; scale: .6; transform-origin: 0 100%; transition: opacity .25s, scale .35s var(--spring); pointer-events: none; }
.bubble.on { opacity: 1; scale: 1; }
@media (max-width: 760px) { .bubble { left: var(--gut); right: var(--gut); translate: 0 0; max-width: none; margin-inline: auto; width: fit-content; transform-origin: 50% 100%; } }
.land-cue { position: absolute; z-index: 5; top: 76px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: calc(.85 - var(--p, 0) * 2); }

/* 2. Nothing to hide */
.hide { position: relative; overflow: hidden; background: var(--yellow); padding: clamp(110px, 16vw, 230px) var(--gut); text-align: center; color: var(--purple); }
.hide-line { position: relative; z-index: 2; font-weight: 800; font-size: clamp(44px, 9vw, 170px); line-height: .9; letter-spacing: -.04em; }
.hide-line .w { padding-inline: .06em; margin-inline: -.06em; } /* room for the heavy N and full stop, which overhang their boxes */
.hide-fofi { --ink-c: var(--purple); position: absolute; z-index: 1; right: 4%; bottom: -4%; width: clamp(140px, 20vw, 300px); transform: translateX(var(--hx, 120%)) rotate(-8deg); transition: transform .9s var(--spring); }
.hide.in .hide-fofi { --hx: 0%; }

/* 3. Story */
.story { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: stretch; }
.story-pic { overflow: hidden; min-height: 70vh; }
.story-pic img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.12); }
/* page gutter on the outer edge only: on ultrawide screens the full gutter on both sides was wider than this half column */
.story-text { padding: clamp(70px, 9vw, 140px) var(--gut) clamp(70px, 9vw, 140px) clamp(16px, 4vw, 56px); display: grid; align-content: center; gap: 20px; }
.story h1 { font-size: clamp(40px, 4.6vw, 76px); color: var(--purple); }
.story-text p:not(.label) { max-width: 46ch; font-size: clamp(17px, 1.3vw, 19px); }
@media (max-width: 860px) { .story { grid-template-columns: minmax(0, 1fr); } .story-pic { min-height: 50vh; } }

/* 4. Meet Fofi: pinned flipbook; main.js shows one .pose at a time (.on) from the scroll. */
.fofi { position: relative; height: 340vh; background: var(--purple); color: #fff; }
.fofi-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; padding: clamp(80px, 11vh, 120px) var(--gut) clamp(24px, 5vh, 50px); }
.fofi .sec { color: #fff; margin: 0; }
.fofi-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 30px; }
.fofi-head p { max-width: 34ch; color: #DCC8EE; }
.flip { all: unset; position: relative; cursor: pointer; display: grid; place-items: center; min-height: 0; }
.pose { --ink-c: #fff; position: absolute; height: min(58vh, 520px); max-width: 86vw; opacity: 0; transform: scale(.7) rotate(-10deg); transition: opacity .25s, transform .5s var(--spring); }
.pose.on { opacity: 1; transform: none; }
.flip:active .pose.on { transform: scale(.94); }
.fofi-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.cap { font-weight: 800; font-size: clamp(28px, 3.6vw, 56px); color: var(--yellow); letter-spacing: -.02em; }
.dots { display: flex; gap: 8px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .3); transition: background-color .3s, transform .3s var(--spring); }
.dots i.on { background: var(--yellow); transform: scale(1.4); }

/* 5. Packaging: pinned; main.js sizes the section to the track and runs it sideways. */
.packs { position: relative; background: var(--white); }
.packs-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3vh, 34px); }
.packs-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-inline: var(--gut); }
.packs .sec { margin: 0; font-size: clamp(38px, 5.6vw, 92px); }
/* Burger Fofi. Each way of playing with him moves differently: he waddles on his own, leans toward the pointer,
   perks up on hover, struggles when grabbed and springs back when let go, and every tap plays the next of five
   reactions (toss, bounce, turn round, nearly drop it, dance), each with its own line. */
.pf { position: relative; flex: none; }
.packs-fofi { --ink-c: var(--purple); width: clamp(90px, 11vw, 170px); cursor: grab; touch-action: none; user-select: none; outline-offset: 6px;
  transform: translate(var(--dx, 0px), var(--dy, 0px)) rotate(calc(var(--fr, 0deg) + var(--lean, 0deg))); transform-origin: 50% 100%;
  transition: transform .3s var(--ease); animation: burgerStep 1.4s ease-in-out infinite; }
.packs-fofi:hover:not([data-act]):not(.held) { animation: burgerPerk .32s ease-in-out infinite alternate; }
.packs-fofi.held { cursor: grabbing; transition: none; animation: burgerStruggle .16s ease-in-out infinite alternate; }
.packs-fofi.letgo { transition: transform .75s var(--spring); }
.packs-fofi[data-act="toss"] { animation: burgerToss .95s var(--spring); }
.packs-fofi[data-act="bounce"] { animation: burgerBounce .9s ease-out; }
.packs-fofi[data-act="turn"] { animation: burgerTurn .8s ease-in-out; }
.packs-fofi[data-act="tip"] { animation: burgerTip 1s ease-out; }
.packs-fofi[data-act="dance"] { animation: burgerDance 1.2s ease-in-out; }
@keyframes burgerStep { 0%, 100% { translate: 0 0; scale: 1 1; } 25% { translate: -4% -6%; scale: .97 1.03; } 50% { translate: 0 0; scale: 1.05 .95; } 75% { translate: 4% -6%; scale: .97 1.03; } }
@keyframes burgerPerk { to { translate: 0 -6%; scale: 1.04 .96; } }
@keyframes burgerStruggle { from { rotate: -5deg; } to { rotate: 5deg; translate: 0 -3%; } }
@keyframes burgerToss { 0% { translate: 0 0; rotate: 0deg; scale: 1; } 18% { translate: 0 4%; scale: 1.12 .86; } 55% { translate: 0 -60%; rotate: -200deg; scale: 1; } 85% { translate: 0 0; rotate: -360deg; scale: 1.08 .92; } 100% { translate: 0 0; rotate: -360deg; scale: 1; } }
@keyframes burgerBounce { 15% { scale: 1.15 .85; } 35% { translate: 0 -35%; scale: .9 1.1; } 55% { translate: 0 0; scale: 1.12 .88; } 70% { translate: 0 -15%; scale: .95 1.05; } 85% { translate: 0 0; scale: 1.05 .95; } }
@keyframes burgerTurn { 25% { scale: 0 1; } 50% { scale: -1 1; } 75% { scale: 0 1; } }
@keyframes burgerTip { 30% { rotate: 28deg; translate: 12% 0; } 50% { rotate: -18deg; translate: -8% 0; } 70% { rotate: 10deg; } 85% { rotate: -4deg; } }
@keyframes burgerDance { 12% { rotate: -14deg; translate: -6% -4%; } 25% { rotate: 14deg; translate: 6% 0; } 37% { rotate: -14deg; translate: -6% -4%; } 50% { rotate: 14deg; translate: 6% 0; } 62% { rotate: -10deg; translate: -4% -8%; } 75% { rotate: 10deg; translate: 4% 0; } 88% { rotate: 0deg; translate: 0 -12%; } }
.pf-say { position: absolute; z-index: 3; right: calc(100% + 8px); bottom: 62%; width: max-content; max-width: min(60vw, 240px); margin: 0; padding: 10px 16px; border-radius: 20px 20px 4px 20px;
  background: var(--purple); color: #fff; font-weight: 600; font-size: clamp(14px, 1.2vw, 17px); line-height: 1.25; opacity: 0; scale: .6; transform-origin: 100% 100%;
  transition: opacity .25s, scale .35s var(--spring); pointer-events: none; }
.pf-say.on { opacity: 1; scale: 1; }
.packs-track { display: flex; width: max-content; will-change: transform; }
.packs-track figure { flex: none; height: min(clamp(218px, 34.5vw, 540px), 60vh); position: relative; overflow: hidden; } /* every photo at one height and its own shape, so none is cropped */
.packs-track img { display: block; height: 100%; width: auto; transition: transform .8s var(--ease); }
.packs-track figure:hover img { transform: scale(1.05); }
.packs-track figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 20px 16px; background: linear-gradient(transparent, rgba(27, 16, 40, .7)); color: #fff; }
.packs-track b { font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); }
.packs-track span { font-size: 14px; color: var(--yellow); }

/* 6. Eat heavy. Feel light. */
.light { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 5vw, 80px); padding: clamp(90px, 12vw, 170px) var(--gut); background: #5B0B8D; color: #fff; overflow: hidden; }
.light h2 { font-size: clamp(48px, 7vw, 120px); }
.light p { margin-top: 18px; max-width: 40ch; color: #E6D9F2; }
/* Mat rocket: the sticker stays as drawn. The rolled spiral end is the nose, so he flies left: a flame and smoke blast out of the far end, streaks rush past,
   he floats nose-up with an engine rumble and tilts toward the pointer. A tap launches him off and he loops back in. */
.mat { all: unset; cursor: pointer; position: relative; display: block; width: min(70%, 470px); justify-self: start; margin-left: 4%; --pitch: 0deg; } /* room on the right for the flame */
.mat .ink { --ink-c: var(--yellow); }
.rk { position: relative; z-index: 2; display: block; rotate: calc(8deg + var(--pitch)); transition: rotate .5s var(--ease); animation: rkFloat 2.6s ease-in-out infinite alternate; }
.rk-body { display: block; animation: rkRumble .09s linear infinite alternate; }
@keyframes rkFloat { from { translate: 0 6px; } to { translate: 0 -18px; } }
@keyframes rkRumble { from { translate: -1px .5px; } to { translate: 1px -.5px; } }
.rk-flame { position: absolute; z-index: -1; left: 97%; top: 81%; width: 34%; height: 26%; translate: 0 -50%; transform-origin: 0 50%; animation: rkFlick .12s ease-in-out infinite alternate; }
.rk-flame i { position: absolute; left: 0; top: 50%; translate: 0 -50%; border-radius: 40% 100% 100% 40% / 50%; transform-origin: 0 50%; animation: rkFlick .09s ease-in-out infinite alternate; }
.rk-flame i:nth-child(1) { width: 100%; height: 100%; background: radial-gradient(ellipse at 0 50%, #FF8A1E 0 35%, rgba(255, 90, 20, .85) 55%, rgba(255, 60, 20, 0) 75%); filter: blur(2px); }
.rk-flame i:nth-child(2) { width: 70%; height: 66%; background: radial-gradient(ellipse at 0 50%, #FFE680 0 30%, var(--yellow) 55%, rgba(251, 200, 2, 0) 75%); animation-duration: .07s; }
.rk-flame i:nth-child(3) { width: 36%; height: 34%; background: radial-gradient(ellipse at 0 50%, #fff 0 40%, rgba(255, 255, 255, 0) 72%); animation-duration: .05s; }
@keyframes rkFlick { from { scale: .82 .9; } to { scale: 1.08 1.04; } }
.rk-puff { position: absolute; z-index: 1; width: var(--s, 22px); aspect-ratio: 1; border-radius: 50%; background: rgba(255, 240, 220, .55); pointer-events: none;
  translate: -50% -50%; animation: rkPuff var(--t, 1.1s) ease-out forwards; }
@keyframes rkPuff { from { opacity: .9; scale: .4; } to { opacity: 0; scale: 1.9; translate: calc(-50% + var(--dx)) calc(-50% + var(--dy)); } }
.rk-lines { position: absolute; z-index: 0; inset: 10% -60% 10% -40%; pointer-events: none; overflow: hidden; }
.rk-lines b { position: absolute; left: -30%; height: 2px; width: 22%; border-radius: 2px; background: linear-gradient(90deg, rgba(251, 200, 2, .7), rgba(251, 200, 2, 0)); animation: rkStreak 1.1s linear infinite; }
.rk-lines b:nth-child(1) { top: 12%; animation-delay: -.1s; }
.rk-lines b:nth-child(2) { top: 30%; width: 14%; animation-delay: -.55s; animation-duration: .9s; }
.rk-lines b:nth-child(3) { top: 46%; width: 30%; animation-delay: -.3s; animation-duration: 1.3s; }
.rk-lines b:nth-child(4) { top: 62%; width: 18%; animation-delay: -.8s; }
.rk-lines b:nth-child(5) { top: 78%; width: 26%; animation-delay: -.2s; animation-duration: .8s; }
.rk-lines b:nth-child(6) { top: 92%; width: 12%; animation-delay: -.65s; animation-duration: 1.2s; }
@keyframes rkStreak { to { left: 100%; } }
.mat:hover .rk-flame { width: 42%; }
.mat:hover .rk-lines b { animation-duration: .6s; }
.mat.launch .rk { animation: rkLaunch 1.6s cubic-bezier(.5, 0, .3, 1); }
.mat.launch .rk-flame { width: 60%; height: 34%; }
@keyframes rkLaunch {
  0% { translate: 0 0; } 12% { translate: 6% 4%; } 42% { translate: -120vw -45vh; rotate: 24deg; opacity: 1; }
  43% { translate: 120vw 20vh; opacity: 0; } 46% { opacity: 1; } 100% { translate: 0 0; }
}
@media (max-width: 860px) { .light { grid-template-columns: minmax(0, 1fr); } }

/* 7. City: the shopfront drawn across, then a seamless mosaic that pops in. */
.full { overflow: hidden; }
.full img { width: 100%; transform: translateY(var(--py, 0px)) scale(1.1); }
.full.wipe { clip-path: inset(0 calc((1 - var(--w, 0)) * 100%) 0 0); }
.city-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 32px; padding-top: clamp(70px, 9vw, 130px); }
.city-head p { max-width: 40ch; margin-bottom: clamp(24px, 4vw, 48px); }
.city-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 19vw, 300px); }
.city-grid figure { overflow: hidden; }
.city-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.city-grid figure:hover img { transform: scale(1.05); }
.c-subway { grid-column: span 4; grid-row: span 2; }
.c-sign { grid-column: span 2; }
.c-posters { grid-column: span 2; }
.c-delivery { grid-column: span 3; grid-row: span 2; }
.c-beach { grid-column: span 3; }
.c-tote { grid-column: span 3; }
.pop { opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .8s ease calc(var(--i) * 80ms), transform .8s var(--spring) calc(var(--i) * 80ms); }
.pop.in { opacity: 1; transform: none; }
@media (max-width: 760px) { .city-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 62vw; } .city-grid figure { grid-column: auto !important; grid-row: auto !important; } }

/* 8. Digital */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo figure { overflow: hidden; aspect-ratio: 4 / 3; }
.duo img { width: 100%; height: 100%; object-fit: cover; transform: translateY(var(--py, 0px)) scale(1.12); }
@media (max-width: 760px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* 9. Marks */
.band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band-third { background: var(--bg); display: grid; place-items: center; padding: clamp(60px, 9vw, 130px) 8%; }
.band-third img { width: min(92%, 420px); transition: transform .5s var(--spring); }
@media (max-width: 760px) { .band { grid-template-columns: minmax(0, 1fr); } }
.colours { display: flex; height: clamp(240px, 40vh, 420px); overflow: hidden; }
.sw { flex: 1; min-width: 0; background: var(--c); color: var(--t); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(16px, 2vw, 28px);
  transform: translateY(70%); transition: transform 1s var(--ease), flex-grow .6s var(--ease); }
.colours.in .sw { transform: none; }
.sw:nth-child(2) { transition-delay: .1s, 0s; }
.sw:nth-child(3) { transition-delay: .2s, 0s; }
.sw:nth-child(4) { transition-delay: .3s, 0s; }
.sw:hover { flex-grow: 2.2; }
.sw b { font-weight: 800; font-size: clamp(20px, 2vw, 30px); white-space: nowrap; }
.sw span { font-size: 13px; }
@media (max-width: 760px) { .colours { flex-direction: column; height: auto; } .sw { min-height: 100px; } }

/* 10. Credits */
.credits { background: var(--purple); color: #fff; padding-block: clamp(64px, 8vw, 120px); }
.credits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-bottom: 1px solid rgba(255, 255, 255, .25); padding-bottom: clamp(40px, 6vw, 80px); }
.credits h3 { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-bottom: 12px; }
.outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 80px); }
.outro p { font-weight: 800; font-size: clamp(34px, 4.6vw, 72px); line-height: .95; letter-spacing: -.03em; max-width: 14ch; }
.outro-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--yellow); color: var(--ink); text-decoration: none; font-weight: 600; border: 2px solid var(--yellow); transition: background-color .25s, color .25s; }
.btn:hover { background: transparent; color: var(--yellow); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--purple); }
@media (max-width: 760px) { .credits-grid { grid-template-columns: minmax(0, 1fr); } }

/* Motion: headings rise word by word; the rest fades up. */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .22em; margin-bottom: -.22em; } /* room for descenders (g, y, p) under the rising words */
.split .w > span { display: inline-block; transform: translateY(110%) rotate(5deg); transition: transform .9s var(--spring) calc(var(--k) * 70ms); }
.split.in .w > span { transform: none; }
.reveal { opacity: 0; transform: translate(-16px, 34px) rotate(2.5deg); transform-origin: 0 100%; transition: opacity .8s ease, transform .8s cubic-bezier(.65, 0, .35, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- More to play with ---------- */
/* Shy Fofi ducks back behind the words when the pointer comes close. */
.hide.duck .hide-fofi { --hx: 78%; transition-duration: .35s; }

/* Marks: each logo leans toward the pointer and squishes when tapped; a colour copies its hex when tapped. */
.band-third { cursor: pointer; }
.band-third img { transform: translate(var(--mx, 0px), var(--my, 0px)) rotate(var(--mr, 0deg)); transition: transform .6s var(--spring); }
.band-third.squish img { animation: squish .6s var(--spring); }
@keyframes squish { 30% { scale: 1.12 .86; } 60% { scale: .94 1.08; } 100% { scale: 1; } }
button.sw { border: 0; margin: 0; font: inherit; text-align: left; cursor: pointer; }
button.sw:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.sw.copied { animation: jelly .6s var(--spring); }
.sw.copied span { font-weight: 600; }
@keyframes jelly { 30% { scale: 1.04 .96; } 60% { scale: .98 1.02; } 100% { scale: 1; } }

/* Story: the boring switch drains the colour and the weight out of it; the flavour comes back with a pop. */
.story-pic img { transition: filter .7s var(--ease), transform .2s linear; }
.story h1, .story .label { transition: color .5s var(--ease); }
.story.is-boring .story-pic img { filter: grayscale(1) contrast(.8) brightness(1.08); }
.story.is-boring h1 { color: #A9A4AF; font-weight: 300; letter-spacing: 0; }
.story.is-boring .label { color: #A9A4AF; }
.boring-btn { justify-self: start; margin-top: 8px; }
.pop-dot { position: fixed; z-index: 60; width: var(--s, 12px); height: var(--s, 12px); border-radius: 50%; background: var(--c); pointer-events: none; animation: popDot .9s var(--ease) forwards; }
@keyframes popDot { from { transform: translate(-50%, -50%) scale(.4); opacity: 1; } to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; } }

/* Packaging: the photo nearest the middle comes forward; the photos tilt toward the pointer. */
.packs-track figure { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(calc(1 - var(--d, 0) * .1)); opacity: calc(1 - var(--d, 0) * .4); transition: transform .35s var(--ease); }
.packs-track figure.tilting { transition: transform .08s linear; }

/* The lines band: two rows running opposite ways (main.js moves them). */
.lines { background: var(--yellow); color: var(--purple); padding: clamp(28px, 4vw, 54px) 0; overflow: hidden; display: grid; gap: clamp(6px, 1vw, 14px); }
.lines-row { overflow: hidden; }
.lines-track { display: flex; align-items: center; width: max-content; will-change: transform; }
.lines-track span { font-weight: 800; font-size: clamp(34px, 5.4vw, 92px); line-height: 1.05; letter-spacing: -.03em; white-space: nowrap; padding-inline: clamp(14px, 1.6vw, 26px); }
.lines-track i { flex: none; width: clamp(14px, 1.6vw, 24px); aspect-ratio: 1; border-radius: 50%; background: var(--purple); }
.lines-row.rev i { background: none; box-shadow: inset 0 0 0 3px var(--purple); }

/* City: every photo opens large. */
.city-grid figure { cursor: zoom-in; }
.city-grid figure:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.lightbox { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 5vh 3vw;
  background: rgba(27, 16, 40, .92); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; touch-action: pan-y; }
.lightbox.on { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox figure { display: grid; justify-items: center; gap: 14px; max-height: 90vh; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); transform: scale(.88); transition: transform .5s var(--spring); }
.lightbox.on img { transform: none; }
.lightbox figcaption { color: #fff; font-weight: 600; text-align: center; max-width: 60ch; }
.lightbox button { all: unset; cursor: pointer; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 24px; transition: background-color .2s, transform .3s var(--spring); }
.lightbox button:hover { background: var(--yellow); color: var(--ink); transform: scale(1.08); }
.lightbox button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 760px) { .lightbox { grid-template-columns: minmax(0, 1fr); padding: 70px 12px 24px; } .lb-prev, .lb-next { display: none !important; } }

/* Digital: the app's notifications drop in over the phone; an order you place runs through its steps. */
.phone { position: relative; }
.notes { position: absolute; z-index: 2; top: 6%; left: 50%; translate: -50% 0; width: min(84%, 380px); display: grid; gap: 8px; pointer-events: none; }
.note { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: rgba(246, 242, 250, .94); color: var(--ink); box-shadow: 0 14px 30px rgba(27, 16, 40, .3); backdrop-filter: blur(8px); font-size: 14px; line-height: 1.3;
  animation: noteIn .6s var(--spring); }
.note.out { animation: noteOut .4s ease-in forwards; }
.note::before { content: "F"; grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--purple); color: var(--yellow); font-weight: 800; font-size: 20px; }
.note b { font-weight: 600; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--purple); }
@keyframes noteIn { from { opacity: 0; transform: translateY(-30px) scale(.9); } }
@keyframes noteOut { to { opacity: 0; transform: translateY(-20px) scale(.95); } }
.order { position: absolute; z-index: 2; left: 5%; bottom: 6%; display: grid; gap: 10px; justify-items: start; }
.track { display: none; width: min(78vw, 320px); padding: 14px 16px; border-radius: 16px; background: rgba(27, 16, 40, .88); color: #fff; font-size: 14px; }
.track.on { display: grid; gap: 10px; animation: noteIn .5s var(--spring); }
.track-say { font-weight: 600; }
.track i { display: block; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.track i b { display: block; height: 100%; width: calc(var(--step, 0) / 3 * 100%); background: var(--yellow); border-radius: inherit; transition: width .7s var(--ease); }
.track ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255, 255, 255, .5); }
.track li.done { color: var(--yellow); }
.story .boring-btn { background: var(--purple); color: #fff; border-color: var(--purple); cursor: pointer; }
.story .boring-btn:hover { background: transparent; color: var(--purple); }
.order-btn { cursor: pointer; box-shadow: 0 10px 24px rgba(27, 16, 40, .3); }
.order-btn:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.order-btn:disabled { opacity: .6; cursor: default; }

/* 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; } }
