/* The Featured floppies under the big Mac on the home page (Justinas picked the fanned hand on 1 Dec 2026, over the marquee): each
   Featured app is a 3.5" floppy whose whole label is its icon, fanned out like a hand of cards, then one empty "Your app here" disk.
   Pointing at a disk (or a first tap) lifts it out of the fan and shows its name; a click puts it in the Mac (public/fan.js), which
   ejects the disk that was playing back into the fan, takes the new one in through its slot and warms up its screen to play it.
   The fan is drawn from two numbers per disk, its place --k and the fan's size --n (functions/_sponsors.js dockBox), so it needs no
   script to look right, and the script only changes those numbers. fan.js does the same sums (TILT, CURVE, DROP), so keep them equal.
   Motion is transform and opacity only. Colors are the site's vars, so night.css follows. */

.clh-feat{min-width:0;max-width:100%;z-index:5}
.dockbox{display:block;max-width:100%}
.fanbox{--d:52px;--step:29px;--dir:1;position:relative;width:max-content;max-width:100%;padding:12px 0 4px}
.boot .fanbox{animation:stagein .5s .34s var(--ease) backwards}
.quick .fanbox{animation:stagein .62s .31s var(--ease) backwards}
/* Arabic: the fan opens the other way, from the inline start (fan.js reads the same direction). */
html[dir=rtl] .fanbox{--dir:-1}
.fan{--mid:calc((var(--n) - 1) / 2);position:relative;width:calc((var(--n) - 1) * var(--step) + var(--d) + 8px);max-width:100%;height:calc(var(--d) + 12px)}

/* One disk: its place in the fan. TILT 3.2deg a step, CURVE .7px times the steps from the middle squared, DROP 5px. */
.fdisk{position:absolute;inset-inline-start:4px;top:0;display:block;width:var(--d);height:var(--d);z-index:calc(40 - var(--k));transform-origin:50% 100%;
  transform:translate(calc(var(--k) * var(--step) * var(--dir)),calc((var(--k) - var(--mid)) * (var(--k) - var(--mid)) * .7px + 5px)) rotate(calc((var(--k) - var(--mid)) * 3.2deg * var(--dir)));
  transition:transform .62s cubic-bezier(.34,1.28,.64,1),opacity .25s ease;color:var(--ink);text-decoration:none;outline:none;-webkit-tap-highlight-color:transparent;cursor:pointer}
.fdisk.fin{opacity:0;visibility:hidden;pointer-events:none;transition:none}
.fan.fset .fdisk{transition:none}

/* The disk itself */
.fface{position:relative;display:block;width:100%;height:100%;transition:translate .42s cubic-bezier(.34,1.56,.64,1),rotate .42s cubic-bezier(.34,1.56,.64,1),scale .28s cubic-bezier(.34,1.56,.64,1)}
.fdsvg{display:block;width:100%;height:100%;overflow:visible;filter:drop-shadow(1.5px 2px 0 rgba(40,30,10,.25));transition:filter .3s ease}
.fdb{fill:var(--fc);stroke:var(--ink);stroke-width:3;stroke-linejoin:round}
.fdg{fill:none;stroke:#fff;stroke-opacity:.45;stroke-width:1.5}
.fds1{fill:#e3e1da;stroke:var(--ink);stroke-width:2.5}
.fds3{fill:#fff;fill-opacity:.75}
.fds2{fill:var(--ink)}
/* The disk is a drawing: its label sits where the art puts it, in any language (inset, not a side). */
.flab{position:absolute;inset:40.6% auto auto 17.2%;width:65.6%;height:53.1%;overflow:hidden;background:#fff}
.flab .icon{position:absolute;inset:0;width:100%!important;height:100%!important;margin:0;border:0;border-radius:0;box-shadow:none;background:#fff;font-size:calc(var(--d) * .3)}
.flab .icon img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0;transform:scale(1.04)}
.flab:after{content:"";position:absolute;inset:0;border:calc(var(--d) * 2.5 / 64) solid var(--ink);pointer-events:none}
.fdopen .fdb{fill:#fff8dd;stroke:#c2951f;stroke-dasharray:5 4;stroke-width:2.5}
.fdopen .fds1,.fdopen .fds2,.fdopen .fds3,.fdopen .fdg{opacity:.3}
.fdl{fill:#fffdf6;stroke:#c2951f;stroke-width:2.5;stroke-dasharray:4 3}
.fdopen .fdsvg{filter:none}
.fface .fplus{position:absolute;inset:73% auto auto 50%;transform:translate(-50%,-50%);font:300 calc(var(--d) * .38)/1 var(--sans);color:#a67a14}

/* Pointing at a disk (or a first tap, .peek) lifts it out of the fan, stands it up and names it */
.fdisk:hover,.fdisk:focus-visible,.fdisk.peek{z-index:60}
.fdisk:hover .fface,.fdisk:focus-visible .fface,.fdisk.peek .fface{translate:0 -13px;rotate:calc((var(--k) - var(--mid)) * -3.2deg * var(--dir));scale:1.08}
.fdisk:hover .fdsvg,.fdisk.peek .fdsvg{filter:drop-shadow(3px 6px 0 rgba(40,30,10,.2))}
.fdisk:active .fface{scale:1}
.fdisk:focus-visible .fface{outline:2px solid var(--b);outline-offset:4px;border-radius:4px}
/* The first two cards lean inward (--tx), so a long name never runs off a narrow window; the arrow still points at its disk. */
.ftip{--tx:calc(max(0px, (1.5 - var(--k)) * 26px) * var(--dir));position:absolute;inset:auto auto calc(100% + 19px) 50%;z-index:2;display:flex;align-items:center;gap:6px;padding:5px 8px 5px 9px;background:var(--paper);border:1.5px solid var(--ink);border-radius:6px;box-shadow:2px 2px 0 var(--ink);white-space:nowrap;pointer-events:none;opacity:0;translate:calc(-50% + var(--tx)) 6px;rotate:calc((var(--k) - var(--mid)) * -3.2deg * var(--dir));transform-origin:50% 100%;transition:opacity .16s ease,translate .34s cubic-bezier(.34,1.56,.64,1)}
.ftip:after{content:"";position:absolute;inset:100% auto auto calc(50% - var(--tx));width:8px;height:8px;margin:-3px 0 0 -4px;background:var(--paper);border:solid var(--ink);border-width:0 1.5px 1.5px 0;transform:rotate(45deg)}
.ftip b{font:500 15px/1 var(--serif);color:var(--ink)}
.ftip i{font:7.5px/1 var(--pixel);font-style:normal;letter-spacing:.06em;text-transform:uppercase;padding:2px 4px 1px;border-radius:3px;background:var(--y);color:#1d1b17;border:1px solid rgba(29,27,23,.4)}
.ftip i.ftpick{background:var(--box);color:var(--ink);border-color:color-mix(in srgb,var(--ink) 30%,transparent)}
.fdisk:hover .ftip,.fdisk:focus-visible .ftip,.fdisk.peek .ftip{opacity:1;translate:calc(-50% + var(--tx)) 0}

/* A disk on its way to or from the Mac, and the slot's edge it slides behind */
.fghost{position:fixed;z-index:80;pointer-events:none;transform-origin:50% 100%;will-change:transform;contain:layout style}
.fghost .fface{transition:none}
/* contain:paint makes the clip box the disk's containing block, so a fixed disk inside it is really cut at the slot's line. */
.fclip{position:fixed;inset:0 auto auto 0;width:100%;height:0;overflow:hidden;contain:paint;z-index:81;pointer-events:none}

/* The Mac: a drive light beside the slot, and the screen warming up like an old CRT */
.fled{flex:none;width:5px;height:5px;margin-inline-start:auto;border-radius:50%;background:#46523a;box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}
.fled+i{margin-inline-start:0!important}
.fled.on{animation:fled .9s steps(1) 1}
@keyframes fled{0%,22%,48%,72%{background:#7cf06a;box-shadow:0 0 6px #7cf06a}11%,36%,60%,100%{background:#46523a;box-shadow:inset 0 0 0 1px rgba(0,0,0,.35)}}
.fboot{position:absolute;inset:0;z-index:6;display:none;overflow:hidden;pointer-events:none;background:#0d0d0b}
.fboot.on{display:block}
.fcrt{position:absolute;inset:0;background:radial-gradient(ellipse at center,#fffdf6 0 55%,#ece2c6 100%);opacity:0;transform:scale(.2,.006)}
.fhm{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;background:#fffdf6;opacity:0}
.fhm svg{width:13%;min-width:15px;max-width:30px;height:auto}
.fhm b{font:8px/1 var(--pixel);letter-spacing:.1em;text-transform:uppercase;color:#1d1b17}
.fhm i{display:block;width:44%;height:7px;border:1.5px solid #1d1b17;background:#fff;overflow:hidden}
.fhm i i{width:100%;height:100%;border:0;background:linear-gradient(90deg,var(--g) 0 16.6%,var(--y) 0 33.3%,var(--o) 0 50%,var(--r) 0 66.6%,var(--v) 0 83.3%,var(--b) 0);transform:scaleX(0);transform-origin:left}
.tvmac .tv-shot img{transform-origin:50% 30%}
@media (max-width:640px){.fhm b{display:none}.fhm i{height:5px;border-width:1px}}

/* The first screen fits a 1440x900 or 1280x800 window with the whole row in view (Justinas, 20 Nov 2026: "make sure it all fits
   the homepage view"). Only desktop windows short enough to need it; taller ones keep the usual spacing. */
@media (min-width:901px) and (max-height:900px){
  .stage .growline .drchip{margin:7px 0 2px}
  .stage .clh-quick{margin-top:16px}
  .stage .clh-trust{margin-top:10px}
  .clh-feat{margin-top:2px}
}
@media (min-width:901px) and (max-height:780px){
  .stage h1.growh{margin-bottom:6px}
  .stage .growline .pitchsub{display:inline;line-height:1.55}
  .stage .growline .drchip{display:inline-flex;vertical-align:middle;margin:0 0 0 6px}
  .stage .clh-quick{margin-top:12px}
  .stage .mac.tvmac{width:166px;min-width:0}
  .fanbox{--d:44px;--step:25px;padding-top:10px}
}

@media (max-width:640px){
  .fanbox{--d:46px;--step:26px;width:100%;padding-bottom:6px}
  /* Where the row leaves no room beside it, the Tuesday envelope sits under it (public/firstview.js), so the card grows to hold it. */
  .stagein>.pitchtail:has(.mx-btn.mx-low:not([hidden])){padding-block-end:44px}
}

/* Less motion: the fan holds still, nothing flies, and the screen just fades to the next app (public/fan.js) */
@media (prefers-reduced-motion:reduce){
  .fdisk,.fface,.ftip,.fdsvg{transition:none}
  .fdisk:hover .fface,.fdisk:focus-visible .fface,.fdisk.peek .fface{translate:0 -6px;scale:none}
  .fled.on{animation:none}
}

/* The label over the row */
.clh-feat>.clh-lbl{width:max-content;color:var(--ink);font-size:10px;letter-spacing:.1em;margin-bottom:2px}
.clh-feat>.clh-lbl:after{content:"";display:block;height:3px;margin-top:4px;border-radius:2px;background:linear-gradient(90deg,var(--r) 0 16.6%,var(--o) 0 33.3%,var(--y) 0 50%,var(--g) 0 66.6%,var(--b) 0 83.3%,var(--v) 0)}
