/* Live tiles on the homepage: Petro-Points Platinum, Passkeys, Duet Booth and Petro-Canada × WestJet.
   The animations are in js/tiles.js. */

/* Petro-Points Platinum tile: the full phone, a zoom into the litre tracker,
   the arc filling to 1,000 L, then confetti. The screen is your Figma export;
   the gauge, the numbers and the confetti are drawn live on top of it. */

.card__img.plat-tile { isolation: isolate; }
.plat { position: absolute; left: 50%; top: 4%; height: 92%; aspect-ratio: 1091 / 2364; border-radius: 11% / 5.1%; overflow: hidden;
  transform: translateX(-50%); transform-origin: 50% 0;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6);
  transition: transform 1.15s cubic-bezier(.65, 0, .35, 1); }
.plat.zoom { transform: translateX(-50%) translateY(1.5%) scale(1.52); }
.card__img .plat img { position: absolute; inset: 0; width: 100%; height: 100%; transition: none; }
.card:hover .plat img { transform: none; }
.plat svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.plat .num { font-family: 'Inter', system-ui, sans-serif; font-weight: 700; font-size: 122px; letter-spacing: -5px; fill: #1a1a1a; }
.plat .small { font-family: 'Inter', system-ui, sans-serif; font-weight: 400; font-size: 31.5px; fill: #4c4c4c; }
.plat .keep { transition: opacity .18s; }
.plat .keep.swap { opacity: 0; }
.plat .keep.kept { font-weight: 600; fill: #8a2225; }
.confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

/* Passkeys tile: the sign-in screen, a tap on the passkey icon, the standard iOS passkey sheet,
   Face ID, a tick, and back to the start. Everything moves with transforms and opacity only, in the
   screen image's own 1125 x 2436 pixel space, so nothing is measured or laid out mid-animation. */
.pk-phone svg text { font-family: -apple-system, 'SF Pro Text', 'Inter', system-ui, sans-serif; }
.pk-t { font-size: 57px; font-weight: 600; fill: #000; letter-spacing: -.5px; }
.pk-s { font-size: 45px; fill: #6c6c70; }
.pk-a { font-size: 50px; fill: #000; }
.pk-k { font-size: 38px; fill: #8a8a8e; }
.pk-b { font-size: 51px; font-weight: 600; fill: #fff; }
.pk-dim { opacity: 0; transition: opacity .45s ease; }
.pk-phone.sheet .pk-dim { opacity: .22; }
.pk-sheet { transform: translateY(1100px); transition: transform .55s cubic-bezier(.2, .8, .25, 1); }
.pk-phone.sheet .pk-sheet { transform: none; }
.pk-phone.drop .pk-sheet { transition-duration: .4s; transition-timing-function: cubic-bezier(.5, 0, .75, 0); }
.pk-go, .pk-b { transition: opacity .12s; }
.pk-phone.press .pk-go { opacity: .7; }
.pk-hud { opacity: 0; transform: scale(.9); transform-box: fill-box; transform-origin: center; transition: opacity .22s, transform .3s cubic-bezier(.2, .8, .25, 1); }
.pk-phone.fid .pk-hud { opacity: 1; transform: none; }
.pk-face { transform-box: fill-box; transform-origin: center; transition: opacity .2s; }
.pk-phone.fid .pk-face { animation: pk-scan 1.1s ease-in-out; }
@keyframes pk-scan { 0%, 100% { transform: none; } 35% { transform: scale(.92) rotate(-6deg); } 70% { transform: scale(1.04) rotate(4deg); } }
.pk-tick { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.pk-phone.ok .pk-face { opacity: 0; }
.pk-phone.ok .pk-tick { stroke-dashoffset: 0; transition: stroke-dashoffset .35s ease-out .1s; }
/* the tap: a soft dot that appears where the finger lands, presses, and lifts away. It never travels. */
.plat .tap circle { fill: rgba(28, 28, 30, .22); stroke: rgba(255, 255, 255, .95); stroke-width: 5; opacity: 0; transform: scale(1.4);
  transform-box: fill-box; transform-origin: center; transition: opacity .2s, transform .22s cubic-bezier(.2, .8, .25, 1); }
.plat .tap.on circle { opacity: 1; transform: none; }
.plat .tap.on.press circle { transform: scale(.8); transition-duration: .12s; }
.plat .tap.off circle { opacity: 0; transform: scale(1.3); transition-duration: .3s; }

/* Duet Booth tile: your real "strip ready" screen in a browser window. The "me and me" strip prints
   down into the window, each photo develops in turn from blank paper, then the words and buttons appear. */
.dw { position: absolute; left: 50%; top: 7%; width: 53.5%; transform: translateX(-50%);
  border-radius: 8px; overflow: hidden; background: #f8f2ed; container-type: inline-size;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .6); }
.dw__bar { position: relative; display: flex; align-items: center; gap: 1.1cqw; height: 6cqw; padding: 0 2.4cqw; background: #fcfbf9; border-bottom: 1px solid #ebe7e1; }
.dw__bar i { width: 1.7cqw; height: 1.7cqw; border-radius: 50%; background: #ddd8cf; }
.dw__url { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 40cqw; height: 3.4cqw; border-radius: 1cqw; background: #f0ede6;
  font: 400 1.9cqw/3.4cqw 'Inter', system-ui, sans-serif; color: #7b7772; text-align: center; letter-spacing: 0; }
.dw__page { display: block; width: 100%; height: auto; }
.dw-print { transform: translateY(-860px); transition: transform 1.6s cubic-bezier(.25, .8, .25, 1), opacity .5s ease; }
.dw.is-print .dw-print { transform: none; }
.dw-dev { transition: opacity 1.1s ease; }
.dw-dev.gone { opacity: 0; }
.dw-copy { opacity: 0; transition: opacity .7s ease; }
.dw.is-words .dw-copy { opacity: 1; }
.dw.is-out .dw-print, .dw.is-out .dw-copy { opacity: 0; }
.card__img .dw__still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .dw__page { display: none; }
  .card__img .dw__still { display: block; position: static; width: 100%; height: auto; }
}

/* WestJet tile: a hand-drawn airplane window in butter line on midnight, like the circles on the
   site's links. The shade is down, with the lockup printed on it. Every so often it lifts
   a little for a glimpse of a doodled sky (a low sun, drifting clouds), then closes: it's under wraps.
   Nothing from the real product or campaign is shown. The drawing comes from tools/wj-window.py. */
.card__img.wj-tile { container-type: size; }
.wj-draw { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--ink); }
.wj-draw path, .wj-draw circle { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.wj-draw .wj-panel { fill: var(--tile); stroke: none; }
.wj-draw .wj-cl { fill: var(--tile); }
.wj-shd { transition: transform 1.15s cubic-bezier(.65, 0, .35, 1); }
.wj-tile.peek .wj-shd { transform: translateY(-100px); }
.wj-c { animation: wj-drift linear infinite; animation-play-state: paused; }
.wj-tile.on .wj-c { animation-play-state: running; }
.wj-c0 { animation-duration: 24s; animation-delay: -3s; }
.wj-c1 { animation-duration: 30s; animation-delay: -17s; }
.wj-c2 { animation-duration: 20s; animation-delay: -11s; }
.wj-c3 { animation-duration: 27s; animation-delay: -7s; }
.wj-c4 { animation-duration: 22s; animation-delay: -19s; }
.wj-c5 { animation-duration: 33s; animation-delay: -26s; }
@keyframes wj-drift { from { transform: translateX(-330px); } to { transform: translateX(330px); } }
/* the printing on the shade: a full-size layer clipped to the window opening, so it never crosses the frame */
.wj-print { position: absolute; inset: 0; clip-path: inset(10.57% 33.7% 10.57% 33.7% round 13.74% / 22.66%); }
.wj-ink > span { position: absolute; left: 50%; }
.wj-print .lockup { top: 50%; transform: translate(-50%, -50%); }
/* the homepage's hover lift on .lockup would drop the centring, so lift it here with the centring kept */
.card:hover .wj-print .lockup { transform: translate(-50%, calc(-50% - 3px)); }
.wj-ink { position: absolute; inset: 0; transition: transform 1.15s cubic-bezier(.65, 0, .35, 1); }
.wj-tile.peek .wj-ink { transform: translateY(-15.11cqh); }
.wj-print .lockup { flex-direction: column; align-items: center; gap: .08em; font-size: clamp(18px, 5.2cqw, 46px); }
.wj-line2 { display: flex; align-items: baseline; gap: .3em; }
@container (max-width: 480px) { 