/* farey's cover pieces on the wall, while the variations are being judged. Each piece is one
   part of the cover, placed, turned and sized by hand in the editor. */
.piece canvas[data-fy] { display: block; width: 100%; height: 100%; }
/* the phone: Pixel 9 Pro device art, the screen drawn live between its body and its mask */
.fy-px { position: relative; width: 100%; height: 100%; filter: drop-shadow(0 18px 24px rgba(24, 24, 34, .18)) drop-shadow(0 3px 6px rgba(24, 24, 34, .12)); }
.fy-px > img, .fy-px > .scr { position: absolute; display: block; }
.fy-px > .body { inset: 0; width: 100%; height: 100%; }
.fy-px > .scr, .fy-px > .mask { left: 4.2614%; top: 2.0511%; width: 90.9091%; height: 96.0323%; }
.fy-px > .scr { border-radius: 4.6875% / 2.1008%; overflow: hidden; background: #000; box-shadow: 0 0 0 1px #000; }
/* the name, as every other project's: in the hello's voice, ink, the way in to its page */
.fy-title { margin: 0; font-size: 21px; line-height: 1.142; letter-spacing: -0.015em; white-space: nowrap; width: max-content; color: var(--title-words, var(--faint)); }
.fy-title a { color: inherit; text-decoration: none; }
.fy-title b { font-weight: 500; color: var(--title-name, var(--ink)); }
.fy-title i { display: inline-block; vertical-align: .154em; margin-left: .316em; font-style: normal; color: var(--title-name, var(--ink)); }
.fy-title i svg { display: block; width: .447em; height: .447em; overflow: visible; }
.fy-title a:focus-visible b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
/* pointing at the name leaves only farey lit */
.wall:has(.fy-title a:focus-visible) .piece:not(.me):not(:has([data-fy], [data-fyv], .fy-title)) { opacity: .2 !important; }
@media (hover: hover) { .wall:has(.fy-title a:hover) .piece:not(.me):not(:has([data-fy], [data-fyv], .fy-title)) { opacity: .2 !important; } }
/* the recording, cropped to the screen, its corners the phone's own */
.fy-vid { width: 100%; height: 100%; }
.fy-vid video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fy-vid.screen { border-radius: 8.5% / 3.9%; overflow: hidden; background: #000; box-shadow: 0 18px 30px rgba(24, 24, 34, .16), 0 3px 8px rgba(24, 24, 34, .12); }
/* on the table: the photo's edges fade into the page, so it's the phone that sits there, not a box */
.fy-vid:not(.screen) {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent), linear-gradient(transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* the recording inside the phone */
.fy-px > .scr > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* the real time, quietly: each variation says how long the check really takes as it plays */
.fy-t { font-variant-numeric: tabular-nums; }
/* in the phone's own status bar: Android's screen-recording chip, a red pill beside the clock */
.fy-rec { position: absolute; left: 17.6%; top: 2.45%; height: 2.2%; box-sizing: border-box; display: flex; align-items: center; gap: 3.5px; padding: 0 5px 0 4px; border-radius: 99px;
  background: #D2302A; color: #fff; font: 600 10px/1 "Google Sans", Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.fy-rec svg { width: 9px; height: 9px; flex: none; }
.fy-rec rect { fill: none; stroke: #fff; stroke-width: 2.4; }
.fy-rec circle { fill: #fff; }
/* scribbled beside it, in the case studies' blue biro, but in the wall's grey */
@font-face { font-family: Reenie; src: url(../hand-fonts/ReenieBeanie-latin.woff2) format("woff2"); font-display: block; }
.fy-hand { margin: 0; font: 30px/1.2 Reenie, "Bradley Hand", cursive; color: var(--faint); white-space: nowrap; }
.fy-hand span { font-variant-numeric: tabular-nums; }
/* a hairline that fills as the minute passes, the time at its end */
.fy-line { display: flex; align-items: center; gap: 10px; height: 100%; font: 400 14px/1 Inter, sans-serif; color: var(--faint); font-variant-numeric: tabular-nums; }
.fy-line i { flex: 1; height: 1px; background: linear-gradient(90deg, var(--faint) calc(var(--p, 1) * 100%), rgba(133, 133, 127, .25) 0); }
/* Pointed at, the phone is picked up: it straightens and lifts a touch, on a spring (Emil Kowalski's
   rule for something that should feel alive and can be let go mid-way: a spring, bounce about 0.2,
   as a transition so a quick in-and-out reverses smoothly from wherever it is). The spring is a
   damped oscillator, duration 0.5 s, bounce 0.2, sampled into linear(). */
.piece:has(> .art .fy-px video) {
  --fy-spring: linear(0, 0.0343, 0.1179, 0.2274, 0.3464, 0.4638, 0.5728, 0.6694, 0.7519, 0.8203, 0.8753, 0.9182, 0.9508, 0.9746, 0.9914, 1.0026, 1.0096, 1.0134, 1.015, 1.015, 1.0141, 1.0126, 1.0109, 1.009, 1.0073, 1.0057, 1.0044, 1.0032, 1.0023, 1.0016, 1.001, 1.0006, 1.0003, 1);
  transition: opacity .25s ease, rotate .9s var(--fy-spring), scale .9s var(--fy-spring), translate .9s var(--fy-spring), top .5s cubic-bezier(.23, 1, .32, 1);
}
.wall .piece.fy-playing { rotate: 0deg !important; scale: 1.02; translate: 0 -4px; }
@media (hover: hover) { .wall .piece:has(> .art .fy-px video):hover, .wall:has(.fy-title a:hover) .piece:has(> .art .fy-px video) { rotate: 0deg !important; scale: 1.02; translate: 0 -4px; } }
@media (prefers-reduced-motion: reduce) { .piece:has(> .art .fy-px video) { transition: opacity .25s ease; } }
/* the phone opens farey's page */
.piece .fy-px { cursor: pointer; }
.fy-px:focus-visible { outline: 2px solid var(--ink, #1a1a1a); outline-offset: 6px; border-radius: 28px; }
