/* ==========================================================================
   Desk mode: the home page's hero.

   A desk under the name: a lamp that switches the theme, a record player
   that plays when pressed, a phone that AirDrops the résumé, a paint chip
   that explains the day's colours, the drink of the day, a card holder, a
   window, and a laptop whose screen lists the case studies. Every
   [data-drag] object can be picked up and moved. Everything here exists
   only in [data-mode='desk'] at >= 900px, except the screen's list, which
   stacks under the name below that. Behaviour lives in js/hero-hover.js
   and js/desk-objects.js.

   Each object is placed with percentage --x/--y/--w against the .desk box
   (inline in index.html), so the composition scales with the viewport.
   ========================================================================== */

/* The tabletop is wood, after the references in references/: pale ash by
   day (a strip of the photograph itself), walnut once the room goes dark (a
   top-down walnut photograph laid back into the same front view, so its grain
   shrinks with distance). The photographs carry their own light; the clock
   (data-time, js/boot.js) only grades them (--desk-filter) and adds one soft
   wash where the light comes from (--desk-sheen at --desk-sheen-x): a window
   on the left in the morning, a low sun on the right in the evening, and at
   night the lamp itself, which it follows when the lamp is dragged (--lamp-x,
   set by js/hero-hover.js). No text sits on any of it. */
:root {
  --mon-screen: var(--surface);
  --prop-filter: ;
  --prop-shadow: rgba(28, 55, 90, 0.22);
  --prop-shadow-held: rgba(28, 55, 90, 0.30);
  --desk-wood: url("../public/assets/props/desk-ash.webp");
  --desk-filter: none;
  --desk-sheen: transparent;
  --desk-sheen-x: 50%;
  --desk-crease: rgba(120, 92, 64, 0.30);
  --desk-ao: rgba(60, 50, 40, 0.06);
  --device: #1c1e23;   /* the phone's body, below 900px */
}
/* The props are photographs lit for a bright room; on a dark ground they
   glare. Dim them, except the glow (the light source) and the lamp (on). */
:root[data-theme='dark'] {
  --mon-screen: var(--bg-sunken);
  --prop-filter: brightness(0.78) saturate(0.9) contrast(1.02);
  --prop-shadow: rgba(0, 0, 0, 0.5);
  --prop-shadow-held: rgba(0, 0, 0, 0.62);
  --desk-wood: url("../public/assets/props/desk-walnut.webp");
  --desk-filter: brightness(0.5) saturate(0.85);
  --desk-sheen: rgba(255, 196, 120, 0.22);
  --desk-sheen-x: var(--lamp-x, 14%);
  --desk-crease: rgba(0, 0, 0, 0.6);
  --desk-ao: rgba(0, 0, 0, 0.3);
  --device: #0d0e11;
}
:root[data-time='day'] {
  --desk-filter: sepia(0.12) brightness(1.02);
  --desk-sheen: rgba(255, 228, 180, 0.30);
  --desk-sheen-x: 12%;
}
:root[data-time='evening'] {
  --desk-filter: sepia(0.2) saturate(1.05) brightness(0.97);
  --desk-sheen: rgba(255, 160, 100, 0.28);
  --desk-sheen-x: 86%;
}

/* --- The desk ------------------------------------------------------------
   The nav and the hero are two components. The stage is pulled up under the
   header, so the desk starts at the header's bottom edge and clips there:
   nothing on it — not a prop bleeding off the top, not a hover lift — can
   paint into the nav. z-index: 1 makes it its own stacking context, so the
   lockup (z 20) is always above every object, however high dragging has
   stacked it: things slide under the name, never over it.
   Absent outside desk mode, and below the stage breakpoint. */
.desk {
  position: absolute;
  inset: var(--header-h, 80px) 0 0 0;
  z-index: 1;
  overflow: hidden;
  display: none;
}
@media (min-width: 900px) {
  [data-mode='desk'] .desk { display: block; }
}
/* Below 900px the desk keeps only its wall and tabletop, behind the phone
   that stands in for the laptop (.handset, css/style.css §5). The hero is not
   pulled under the header there, so the desk fills the stage. */
@media (max-width: 899.98px) {
  [data-mode='desk'] .desk { display: block; inset: 0; }
  .desk > :not(.desk__wall, .desk__top) { display: none; }
  .desk__top { height: 20%; }
}

/* --- The wall ---------------------------------------------------------------
   Leaf shadows on the wall behind everything on the desk, drawn by
   js/desk-wall.js on a canvas it puts first in .desk: z 0 and earlier in the
   order than the tabletop, so the tabletop and every object paint over it.
   Only the leaves move, with the cursor, as on emilycampbell.co. */
.desk__wall {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
  pointer-events: none;
}

/* --- The tabletop ----------------------------------------------------------
   The top of a table seen from the front, across the bottom of the hero and
   flush with it: only the surface going back to the wall shows, no front
   edge, as in references/Untitled design.png. Deep enough (32%) for the
   laptop, lamp, mug and the rest to stand on; the lockup's lines are on the
   laptop's screen, so no text lands on wood.
   z-index 0: under every object. The photograph is anchored at its back
   edge, so the line where wood meets wall is always the photographed one. */
.desk__top {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  z-index: 0;
  pointer-events: none;
}
/* Where the desk meets the wall: a fine crease, and the wall darkening just
   above it where the desk blocks the room's light. */
.desk__top::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--desk-ao));
  box-shadow: 0 1px 0 var(--desk-crease);
}
.desk__surface {
  position: absolute;
  inset: 0;
  background: var(--desk-wood) center top / cover no-repeat;
  filter: var(--desk-filter);
}
/* The light from the room, over the wood. On .desk__top, not the surface,
   so the night's darkening filter does not dim the lamp's own light. */
.desk__top::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 32% 85% at var(--desk-sheen-x) 55%, var(--desk-sheen), transparent 70%);
  mix-blend-mode: screen;
}

/* --- The laptop ------------------------------------------------------------
   The MacBook from the owner's references in the middle of the desk. Its
   glass was cut out of the photograph (tools/build-desk-props.py), so the
   page paints the screen behind it (--mon-screen: lighter than the page by
   day, darker at night, so text on it only ever gains contrast).

   From the photograph: the glass is 80.3% of the laptop's width and 85.4%
   of its height, starting 3.24% down, and the laptop is 710/432 = 1.6435
   wide to high. --lw is its width before scaling; the laptop's top is set so
   the glass starts at 31% of the stage. It is then scaled by --lap-s (0.62
   inline on .stage) about the centre of its glass, and moved by --lap-seat
   so its base sits on the tabletop at about 89% of the stage: the glass
   centre is 31% + 0.2598 * lw down, the base 0.329 * s * lw below that.
   --lap-dx/--lap-dy (the editor's nudge) are added on top.

   What the screen shows is .hero__work, outside the desk (the desk is its
   own stacking context under the name, and hidden below 900px), placed on
   the same numbers so it lands exactly on the glass. */
.stage {
  --lw: max(54vw, 85svh, 700px);
  --lap-seat: calc(58svh - var(--lw) * (0.2598 + 0.329 * var(--lap-s, 1)));
}
.laptop {
  --hh: var(--header-h, 80px);
  position: absolute;
  left: 50%;
  width: var(--lw);
  translate: calc(-50% + var(--lap-dx, 0vw)) calc(var(--lap-dy, 0svh) + var(--lap-seat, 0px));
  /* Scaled about the centre of its glass (3.24% + 85.4% / 2 down). */
  scale: var(--lap-s, 1);
  transform-origin: 50% 45.94%;
  top: calc(0.31 * (100% + var(--hh)) - var(--hh) - var(--lw) * 0.0197);
  z-index: 4;
  pointer-events: none;
  filter: var(--prop-filter);
}
.laptop__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 10px var(--prop-shadow));
}
/* Slightly larger than the glass, so no ground shows at its edges. */
.laptop__screen {
  position: absolute;
  inset: 3% 9.7% 11.2% 9.7%;
  background: var(--mon-screen);
}

/* --- The laptop's screen: the case studies --------------------------------
   At 900px and up the screen is a desktop: each case study is a shortcut, an
   icon over its name (js/desk-objects.js), on the glass. The glass is 31% of
   the stage down, 0.803 lw wide and 0.5196 lw high, and this moves and scales
   with the laptop. Type and icons are divided by --lap-s, so they land at
   their stated size whatever the laptop's scale. Below 900px the shortcuts
   are a plain list under the name, with their descriptions. */
.hero__work { position: relative; padding: 22px var(--gap-lg) 0; }
/* No laptop below 900px: the shortcuts, and the section icons after them
   (.apps), are app icons on a phone's home screen (css/style.css §5). */
@media (max-width: 899.98px) {
  .hero__work { padding: 0; }
  :is(.hero__work, .apps) .screen__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 4px; }
  :is(.hero__work, .apps) .shortcut { flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: center; }
  :is(.hero__work, .apps) .shortcut__icon { width: 52px; height: 52px; border-radius: 14px; }
  :is(.hero__work, .apps) .shortcut__icon svg { width: 27px; height: 27px; }
  :is(.hero__work, .apps) .shortcut__name {
    display: -webkit-box;
    overflow: hidden;
    font-size: clamp(8.5px, 2.6vw, 10px);   /* "Quantamental" fits on a 360px phone's handset */
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.25;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  :is(.hero__work, .apps) .shortcut__desc { display: none; }
}
.screen__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shortcut {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-body);
  text-decoration: none;
}
.shortcut__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--c);
  color: var(--bg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.18);
}
.shortcut__icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shortcut__name { display: block; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.3; }
.shortcut__desc { display: block; margin-top: 2px; color: var(--ink-body); font-family: var(--font-serif); font-size: 14px; line-height: 1.4; }
.shortcut:hover .shortcut__name { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.shortcut:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lterm-open, .lterm { display: none; }

@media (min-width: 900px) {
  [data-mode='desk'] .hero__work {
    /* 1px on screen at --lw 777 (1440 x 900), larger with a larger laptop */
    --k: calc(max(1px, var(--lw) / 777) / var(--lap-s, 1));
    position: absolute;
    left: 50%;
    top: 31%;
    z-index: 20;
    width: calc(var(--lw) * 0.803);
    height: calc(var(--lw) * 0.5196);
    padding: 0;
    translate: calc(-50% + var(--lap-dx, 0vw)) calc(var(--lap-dy, 0svh) + var(--lap-seat, 0px));
    scale: var(--lap-s, 1);
    pointer-events: none;
  }
  [data-mode='desk'] .screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: calc(16 * var(--k)) calc(14 * var(--k));
    overflow: hidden;
  }
  [data-mode='desk'] .screen__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(8 * var(--k)) calc(6 * var(--k));
    align-content: center;
  }
  [data-mode='desk'] .shortcut {
    flex-direction: column;
    justify-content: flex-start;
    gap: calc(7 * var(--k));
    min-width: 0;
    padding: calc(6 * var(--k)) calc(4 * var(--k));
    border: 0;
    border-radius: calc(8 * var(--k));
    background: none;
    text-align: center;
    pointer-events: auto;
  }
  [data-mode='desk'] .shortcut:hover,
  [data-mode='desk'] .shortcut:focus-visible { background: color-mix(in srgb, var(--ink) 6%, transparent); }
  [data-mode='desk'] .shortcut:focus-visible { outline-width: calc(2 * var(--k)); }
  [data-mode='desk'] .shortcut__icon {
    width: calc(54 * var(--k));
    height: calc(54 * var(--k));
    border-radius: calc(13 * var(--k));
    box-shadow: 0 calc(2 * var(--k)) calc(6 * var(--k)) rgb(0 0 0 / 0.2);
  }
  [data-mode='desk'] .shortcut__icon svg { width: calc(28 * var(--k)); height: calc(28 * var(--k)); }
  [data-mode='desk'] .shortcut__name {
    font-size: calc(12.5 * var(--k));
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }
  [data-mode='desk'] .shortcut:hover .shortcut__name { text-decoration: none; }
  [data-mode='desk'] .shortcut__desc { display: none; }
  /* Hover: the icon swells a little, as a desktop icon does. Same on touch. */
  [data-mode='desk'] .shortcut:hover .shortcut__icon,
  [data-mode='desk'] .shortcut:focus-visible .shortcut__icon { scale: 1.14; }
  @media (prefers-reduced-motion: no-preference) {
    [data-mode='desk'] .shortcut__icon { transition: scale 0.25s var(--ease), box-shadow 0.25s var(--ease); }
  }
  [data-mode='desk'] .lterm-open { display: block; top: auto; bottom: 3%; }
  [data-mode='desk'] .lterm:not([hidden]) { display: flex; }
}
/* The terminal open: the list steps off the screen. */
.stage.is-term .screen { visibility: hidden; }

/* --- The terminal (js/desk-objects.js) ------------------------------------
   On the laptop's screen (.hero__work). Sizes are divided by --lap-s so the
   type lands at 11px whatever the laptop's scale. */
.lterm-open {
  position: absolute;
  top: 5%;
  right: 3.5%;
  z-index: 10;
  padding: 0.25em 0.6em;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 6px;
  background: rgb(10 10 10 / 0.7);
  color: #f2f2f2;
  font: 500 calc(11px / var(--lap-s, 1))/1.2 var(--font-mono);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease);
}
.lterm-open:hover,
.lterm-open:focus-visible { opacity: 1; }
.lterm-open:focus-visible { outline: calc(2px / var(--lap-s, 1)) solid var(--accent); outline-offset: 2px; }
.lterm {
  position: absolute;
  inset: 0;
  z-index: 11;
  flex-direction: column;
  padding: 6% 5% 4%;
  background: var(--term-bg, #0a0a0a);
  color: var(--term-ink, #e5e5e5);
  font: 400 calc(11px / var(--lap-s, 1))/1.5 var(--font-mono);
  pointer-events: auto;
  cursor: text;
}
/* The input's own outline is replaced by one round the whole terminal, so
   focus stays visible. */
.lterm:focus-within { box-shadow: inset 0 0 0 calc(2px / var(--lap-s, 1)) var(--on-photo-accent, #8fb8e8); }
.lterm__out {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scrollbar-width: none;
}
.lterm__out p { margin: 0; }
.lterm__out .t-cmd { color: var(--term-dim, rgba(229, 229, 229, 0.55)); }
.lterm__out .t-key { color: var(--on-photo-accent, #8fb8e8); }
.lterm__out a { color: var(--on-photo-accent, #8fb8e8); }
.lterm__out i {
  display: inline-block;
  width: 1.6em;
  height: 0.9em;
  margin-right: 0.4em;
  border-radius: 2px;
  vertical-align: -0.05em;
}
.lterm__line { display: flex; gap: 0.6em; align-items: baseline; flex: 0 0 auto; }
.lterm__ps { color: var(--on-photo-accent, #8fb8e8); }
.lterm__in {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  caret-color: var(--on-photo-accent, #8fb8e8);
}
.lterm__in:focus { outline: none; }

/* --- Props ---------------------------------------------------------------- */
.prop {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h, auto);
  object-fit: contain;
  object-position: center;
  transform: rotate(var(--r, 0deg));
  z-index: var(--z, 1);
  /* --prop-filter's fallback is empty, not `none`: `none drop-shadow()` is
     invalid and would drop the whole declaration. */
  filter: var(--prop-filter, ) drop-shadow(0 3px 3px var(--prop-shadow));
  pointer-events: none;
  user-select: none;
}

/* The lamp is a <button> that must look exactly like the image props.
   Its box is the authored --w/--h; .lamp__fig is the lamp image contained in
   it (object-fit: contain, done by hand with container units), so the glow
   can be placed in the image's own pixels. The button's own --prop-filter is
   emptied so the dark theme dims the lamp, not the light it gives off. */
.prop--lamp-btn {
  --prop-filter: ;
  display: grid;
  place-items: center;
  container-type: size;
  padding: 0;
  border: 0;
  background: none;
  appearance: none;
  cursor: pointer;
  pointer-events: auto;
}
.lamp__fig {
  position: relative;
  width: min(100cqw, 100cqh * 354 / 743);
  aspect-ratio: 354 / 743;
  /* The hit test is the lamp, not the button's box, which is far wider than
     the lamp and would catch presses meant for anything placed beside it.
     Presses on the figure still reach the button's listeners by bubbling. */
  pointer-events: auto;
}
.lamp__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
:root[data-theme='dark'] .lamp__img { filter: brightness(0.94) saturate(0.95); }
.prop--lamp-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}

/* The glow is a halo round a transparent hole. Measured from the two images:
   the bulb is 166px wide centred at (178, 200) of the 354x743 lamp, the hole
   about 285px wide centred at (302, 295) of the 600x599 glow. Scaled so the
   hole fits the bulb and centred on it, the halo hugs the bulb and the shade,
   drawn on top, covers its upper half. Dark until the lamp is hovered or the
   dark theme is on. */
.lamp__glow {
  position: absolute;
  left: 0.65%;
  top: 0.7%;
  width: 98.6%;
  height: auto;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.prop--lamp-btn:hover .lamp__glow,
:root[data-theme='dark'] .lamp__glow { opacity: 1; }

/* --- The record player ----------------------------------------------------
   public/assets/desk/turntable.webp: "A turntable with a record player
   inside of it" by Bhautik Patel (a 3D render), Unsplash License,
   https://unsplash.com/photos/LnGU5KjbBpM . Cut out of its dark ground with
   OpenCV (the ground is a warm near-black, the record a cool one), the
   maker's name on the lid covered with leather cloned from above it, lifted
   and warmed a little to sit with the laptop. Lit from the left, as the
   room is. Pressed, it plays (js/hero-hover.js) and the record spins: a
   sheen turning in an ellipse laid exactly over the record (measured off
   the image: 7.8% / 56.8%, 58.5% x 15.4% of it). */
.tt {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  text-align: center;
  cursor: pointer;
}
.tt__fig { position: relative; display: block; }
.tt__img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--prop-filter, ) drop-shadow(-2px 6px 6px var(--prop-shadow));
  -webkit-user-drag: none;
}
.tt__spin {
  position: absolute;
  left: 7.8%;
  top: 56.8%;
  width: 58.5%;
  height: 15.4%;
  border-radius: 50%;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
}
/* A square turning inside the ellipse, squashed to it: light catching the
   grooves on two opposite sides, as on a real record. */
.tt__spin::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  aspect-ratio: 1;
  translate: 0 -50%;
  scale: 1 0.234;
  background: conic-gradient(from 0deg, transparent 0 8%, rgb(255 255 255 / 0.22) 13%, transparent 20% 58%, rgb(255 255 255 / 0.16) 63%, transparent 70%);
  border-radius: 50%;
}
.tt.is-playing .tt__spin { opacity: 1; }
.tt__label {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px 4px;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 1px 3px var(--prop-shadow);
  color: var(--paper-ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.35;
}
.tt__label span { display: block; color: var(--paper-ink); font-weight: 600; }
.tt.is-playing .tt__label span::before { content: '♪ '; }
.tt:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* --- The phone ---------------------------------------------------------------
   public/assets/desk/phone.webp: "Smartphone with blank screen on wood" by
   Vojtech Bruzek, Unsplash License,
   https://unsplash.com/photos/J82GxqnwKSs . Shot from straight above; cut
   out with OpenCV, turned 68 degrees as a phone put down by hand lies, then
   laid back in perspective (far edge 8% narrower each side, depth
   foreshortened to 36%) so it lies flat on the desk as the laptop stands
   on it. Its own lit screen is the cue to press it. */
.phone__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
/* The first shadow is the phone's own edge, seen from the front. */
.phone__btn img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--prop-filter, ) drop-shadow(0 1.5px 0 #17181a) drop-shadow(0 3px 3px var(--prop-shadow));
  -webkit-user-drag: none;
}
.phone__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

/* The AirDrop card, left of the phone and past the drink beside it (right:
   160% of the phone's width), so it covers neither the drink nor the laptop. Its picture is the day's three accent
   tiers, drifting slowly (still under reduced motion). */
.airdrop {
  position: absolute;
  right: 160%;
  bottom: 0;
  width: 144px;
  padding: 9px 9px 7px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-card-hover);
  text-align: center;
  cursor: default;
}
.airdrop[hidden] { display: none; }
.phone:has(.airdrop:not([hidden])) { z-index: 90; }
.airdrop__title { margin: 0 0 1px; color: var(--ink); font-size: 11.5px; font-weight: 600; }
.airdrop__sub { margin: 0 0 6px; color: var(--ink-muted); font-size: 11px; line-height: 1.3; text-wrap: balance; }
.airdrop__thumb {
  height: 54px;
  margin-bottom: 6px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 34% 44%, var(--accent-pale) 0%, transparent 46%),
    radial-gradient(circle at 62% 58%, var(--accent) 0%, transparent 50%),
    linear-gradient(135deg, var(--accent-deep), var(--accent-mid) 55%, var(--accent-pale));
  background-size: 200% 200%, 200% 200%, 100% 100%;
}
.airdrop__actions { display: flex; gap: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.airdrop__btn {
  flex: 1;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: 11px;
  line-height: 24px;
  cursor: pointer;
}
.airdrop__btn--go { font-weight: 600; }
.airdrop__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .airdrop:not([hidden]) { animation: airdrop-in 0.35s cubic-bezier(0.2, 0.8, 0.3, 1.15); }
  .airdrop__thumb { animation: airdrop-drift 9s ease-in-out infinite alternate; }
}
@keyframes airdrop-in { from { opacity: 0; translate: 12px 0; scale: 0.92; } }
@keyframes airdrop-drift {
  to { background-position: 100% 70%, 0% 30%, 0 0; filter: hue-rotate(-14deg) saturate(1.15); }
}

/* ==========================================================================
   The things on the desk (js/desk-objects.js)
   Window, paint chip, drink, card holder, the drink's rings and the night.
   All drawn here, except the photographs. Colours that are only paint (the
   wood, the paper) are tokens below with a dark counterpart;
   nothing that carries text sits on a Wada colour.
   ========================================================================== */
:root {
  --win-frame: #f6f3ee;
  --win-sky: linear-gradient(180deg, #cfe6fa, #eef6fc 70%, #f8f4ea);
  --curtain: #ece1cf;
  --curtain-fold: #d8c7ac;
  --rod: #7b6550;
  --beam: rgba(255, 250, 236, 0.75);
  --paper: #fbfaf6;
  --paper-ink: #24211c;
  --paper-ink-soft: #4a443b;
  --leaf: #4f8a3c;
  --stand: #8c7863;
  --ring: rgba(110, 72, 40, 0.28);
}
:root[data-time='day'] {
  --win-sky: linear-gradient(180deg, #f9d7b9, #fbe9d6 60%, #fdf3e6);
  --beam: rgba(255, 232, 196, 0.6);
}
:root[data-time='evening'] {
  --win-sky: linear-gradient(180deg, #f1a274, #f7c79b 60%, #fbe0bf);
  --beam: rgba(255, 186, 130, 0.5);
}
:root[data-theme='dark'] {
  --win-frame: #2d3450;
  --win-sky: linear-gradient(180deg, #0f1428, #1d2747 70%, #2b3558);
  --curtain: #3d4563;
  --curtain-fold: #2c3350;
  --rod: #232a40;
  --beam: transparent;
  --paper: #ecebe6;
  --leaf: #4a7f39;
  --stand: #6e5f4f;
  --ring: rgba(0, 0, 0, 0.35);
}

/* Shared placement: percentages of the desk, as for the props. */
.window, .chip, .mug, .cards, .tt, .phone {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  z-index: var(--z, 5);
  transform: rotate(var(--r, 0deg));
}
.js .desk :is(.chip, .mug, .cards, .tt, .phone).is-held {
  filter: drop-shadow(0 16px 18px var(--prop-shadow-held));
}

/* --- The window ----------------------------------------------------------- */
.window { height: var(--h); z-index: 2; pointer-events: none; }
.window__glass {
  position: absolute;
  inset: 7% 5% 6%;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 5px;
  padding: 6px;
  border-radius: 2px;
  background: var(--win-frame);
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 3px 10px var(--prop-shadow);
}
.window__glass span {
  background: var(--win-sky);
  box-shadow: inset 0 0 14px rgb(0 0 0 / 0.08);
}
.window__sill {
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 2%;
  height: 5%;
  border-radius: 2px;
  background: var(--win-frame);
  box-shadow: 0 4px 6px var(--prop-shadow);
}
.window__rod {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 2%;
  height: 4px;
  border-radius: 2px;
  background: var(--rod);
}
/* The button is the whole window's width, but only the fabric takes the
   pointer, so a press beside the window is not a press on the curtains. */
.window__curtains {
  position: absolute;
  inset: 2.6% -7% 5%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  pointer-events: none;
}
.window__curtains:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 20%;
  background: repeating-linear-gradient(90deg, var(--curtain) 0 7px, var(--curtain-fold) 9px, var(--curtain) 12px 15px);
  box-shadow: 0 4px 10px var(--prop-shadow);
  pointer-events: auto;
}
.curtain--l { left: 0; border-radius: 0 0 40% 8% / 0 0 6% 3%; }
.curtain--r { right: 0; border-radius: 0 0 8% 40% / 0 0 3% 6%; }
.desk.is-shut .curtain { width: 51%; }

/* The daylight the window lets in: a soft slant of light across the wall and
   down onto the desk. Not at night, and not with the curtains drawn. */
.desk__beam {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(118deg, transparent 6%, var(--beam) 16%, var(--beam) 30%, transparent 52%);
  clip-path: polygon(5% 6%, 20.5% 6%, 62% 100%, 24% 100%);
  mix-blend-mode: soft-light;
  filter: blur(14px);
}
.desk.is-shut .desk__beam { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .curtain { transition: width 0.9s cubic-bezier(0.45, 0, 0.2, 1); }
  .desk__beam { transition: opacity 1.4s ease; }
}

/* --- Today's Palette: a paint chip ----------------------------------------
   Pinned to the wall; a button that opens the palette card. Its ground is
   paper in both themes, so its inks are the paper's. */
.chip {
  display: block;
  padding: 6px 6px 8px;
  border: 0;
  border-radius: 3px;
  background: var(--paper);
  box-shadow: 0 2px 6px var(--prop-shadow);
  color: var(--paper-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chip__sw { display: grid; margin-bottom: 7px; }
.chip__sw i { display: block; height: 0; padding-bottom: 34%; }
.chip__title { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.25; }
.chip__no { display: block; margin-top: 2px; color: var(--paper-ink-soft); font-size: 10px; }

/* --- The mug ---------------------------------------------------------- */
.mug__steam { stroke: color-mix(in srgb, var(--ink) 30%, transparent); opacity: 0; }
:root[data-time='morning'] .mug__steam { opacity: 1; }
:root[data-time='day'] .mug__steam { opacity: 0.45; }
.mug.is-cold .mug__steam { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .mug__steam path { animation: steam 3.4s ease-in-out infinite; }
  .mug__steam path:nth-child(2) { animation-delay: -1.1s; }
  .mug__steam path:nth-child(3) { animation-delay: -2.3s; }
}
@keyframes steam {
  0% { translate: 0 6px; opacity: 0; }
  35% { opacity: 1; }
  100% { translate: 0 -6px; opacity: 0; }
}

/* --- The drinks: condensation tokens ----------------------------------- */
:root {
  --dew: rgba(255, 255, 255, 0.18);
  --dew-hi: rgba(255, 255, 255, 0.95);
}
:root[data-theme='dark'] {
  --dew: rgba(215, 230, 250, 0.14);
  --dew-hi: rgba(240, 248, 255, 0.8);
}
/* The photographed drink, sized in real centimetres by js/desk-objects.js
   (--dw), with steam or condensation over it. The photograph is a button:
   pressed, the drink's ingredients float up out of the cup and settle on an
   arc over it (--tx/--ty from js/desk-objects.js), each with a small mark
   in its own colour and its name in handwriting. */
.mug { width: var(--dw, var(--w)); }
.mug__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.mug__btn > svg { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 3px 3px var(--prop-shadow)); }
.mug__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.ings {
  position: absolute;
  left: 50%;
  top: 8%;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-script);
  font-size: 19px;
  line-height: 1;
  color: var(--ink);
  pointer-events: none;
}
.ings li {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  translate: -50% -50%;
  scale: 0.4;
  opacity: 0;
  visibility: hidden;
  /* A halo of the wall's own colour, so the name reads over leaf shadow,
     wood or the window alike. */
  text-shadow: 0 0 3px var(--bg), 0 0 6px var(--bg), 0 0 10px var(--bg);
}
/* Each ingredient's cut-out picture, beside its name. */
.ings img {
  flex: none;
  width: auto;
  height: 46px;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px var(--prop-shadow));
}
.mug.is-open .ings li {
  translate: calc(-50% + var(--tx)) calc(-50% + var(--ty));
  scale: 1;
  opacity: 1;
  visibility: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .ings li {
    transition: translate 0.5s ease-in var(--d, 0ms), scale 0.5s ease-in var(--d, 0ms),
                opacity 0.35s ease-in var(--d, 0ms), visibility 0s linear calc(var(--d, 0ms) + 0.5s);
  }
  .mug.is-open .ings li {
    transition: translate 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.1) var(--d, 0ms), scale 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.1) var(--d, 0ms),
                opacity 0.5s ease-out var(--d, 0ms), visibility 0s linear var(--d, 0ms);
  }
}
.drink__img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 3px var(--prop-shadow));
  -webkit-user-drag: none;
  pointer-events: none;
}
.drink__steam {
  position: absolute;
  translate: -50% -88%;
  pointer-events: none;
}
.drink__steam svg { display: block; width: 100%; height: auto; overflow: visible; }
.drink__dew { position: absolute; pointer-events: none; }
/* A bead of water: clear, with a bright point where the light catches it
   and a darker lip underneath, not a white dot. */
.drink__dew i {
  position: absolute;
  width: calc(2.4px * var(--s, 1));
  height: calc(3px * var(--s, 1));
  border-radius: 50% 50% 50% 50% / 42% 42% 58% 58%;
  background: radial-gradient(circle at 38% 30%, var(--dew-hi) 0 16%, transparent 34%), var(--dew);
  box-shadow: inset 0 -0.6px 0.6px rgb(0 0 0 / 0.18);
  opacity: 0.7;
}
@media (prefers-reduced-motion: no-preference) {
  .drink__dew i { opacity: 0; animation: dew 9s ease-in infinite; }
}
@keyframes dew {
  0% { opacity: 0; scale: 0.3; translate: 0 0; }
  18% { opacity: 0.75; scale: 1; translate: 0 0; }
  70% { opacity: 0.75; scale: 1.15; translate: 0 1px; }
  100% { opacity: 0; scale: 1.2; translate: 0 14px; }
}

/* --- The business-card holder ----------------------------------------- */
.cards__take {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1.45;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.cards__take:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.cards__card {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 6%;
  height: 56%;
  border-radius: 2px;
  background: var(--paper);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
}
.cards__card--2 { top: 10%; rotate: -2deg; }
.cards__card--3 { top: 13%; rotate: 2deg; }
/* Printed lines, not printed words: at this size words would be a smudge. */
.cards__card--1::before,
.cards__card--1::after {
  content: '';
  position: absolute;
  left: 12%;
  height: 7%;
  border-radius: 2px;
  background: var(--paper-ink);
}
.cards__card--1::before { top: 22%; width: 52%; }
.cards__card--1::after { top: 38%; width: 30%; background: var(--accent-deep); }
.cards__holder {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  border-radius: 3px 3px 4px 4px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--stand) 75%, #fff), var(--stand));
  box-shadow: 0 3px 5px var(--prop-shadow);
}
.cards.is-taken .cards__card--1 { translate: 0 -78%; rotate: -7deg; box-shadow: 0 8px 12px var(--prop-shadow-held); }
@media (prefers-reduced-motion: no-preference) {
  .cards__card--1 { transition: translate 0.5s cubic-bezier(0.2, 0.8, 0.3, 1.2), rotate 0.5s ease, box-shadow 0.5s ease; }
  .cards__take:hover .cards__card--1 { translate: 0 -14%; }
  .cards.is-taken .cards__take:hover .cards__card--1 { translate: 0 -78%; }
}

/* The card, taken out and held up to the screen (js/desk-objects.js). A
   <dialog> on <body>, outside the desk, so it is never clipped by it. Paper
   is pale in both themes, so its ink is the dark --paper-ink in both. */
.bizcard {
  inset: 0;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}
.bizcard::backdrop {
  background: var(--veil-centre, rgba(6, 12, 20, 0.62));
  backdrop-filter: blur(6px);
}
.bizcard__card {
  position: relative;
  /* 3:2, as big as the owner's mark-up (2026-11-26), and never taller than
     the window. */
  width: min(700px, 90vw, (100svh - 64px) * 1.5);
  aspect-ratio: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px 28px 24px;
  border-radius: 4px;
  background: var(--paper, #fbfaf6);
  color: var(--paper-ink, #24211c);
  box-shadow: 0 24px 48px -16px rgb(0 0 0 / 0.55);
  rotate: -2deg;
}
/* The palette card is the same paper with more to say. */
.wada .bizcard__card { width: min(460px, 90vw); aspect-ratio: auto; justify-content: flex-start; padding-top: 44px; }
.wada__sw { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 14px; padding: 0; list-style: none; }
.wada__sw i { display: block; height: 46px; margin-bottom: 4px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08); }
.wada__sw code { font-family: var(--font-mono); font-size: 12px; }
.wada__p { margin: 0 0 8px; font-family: var(--font-serif); font-size: 14.5px; line-height: 1.5; }
.wada__p a {
  color: var(--paper-ink);
  text-decoration: underline;
  text-decoration-color: var(--biz-accent, var(--accent-deep));
  text-underline-offset: 3px;
}
.wada__p a:focus-visible { outline: 2px solid var(--biz-accent, var(--accent-deep)); outline-offset: 2px; }
.bizcard__card::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 26px;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--biz-accent, var(--accent-deep));
}
.bizcard__name { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 1.1; }
.bizcard__role { margin: 4px 0 14px; color: var(--paper-ink-soft, #4a443b); font-size: 13px; letter-spacing: 0.04em; }
.bizcard__lines { margin: 0; padding: 0; list-style: none; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.75; }
/* The card's body: the details on the left, the LinkedIn QR on the right,
   both sitting on the card's bottom edge. */
.bizcard__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.bizcard__text { min-width: 0; }
/* The QR is a link, drawn as a tree (js/desk-objects.js qrTree). */
.bizcard__qr {
  position: relative;
  flex: none;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 4px;
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
  text-decoration: none;
  overflow: hidden;
}
.bizcard__qrcap {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--paper-ink-soft);
}
.bizcard__qr:hover,
.bizcard__qr:focus-visible { box-shadow: 0 0 0 2px var(--biz-accent, var(--accent-deep)); }
.bizcard__qr:focus-visible { outline: 2px solid var(--biz-accent, var(--accent-deep)); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .bizcard__qr { transition: box-shadow 0.25s ease; }
}

/* The tree (js/qr-tree.js draws it). Its season buttons sit under it,
   outside the link. */
.bizcard__tree { flex: none; display: grid; justify-items: center; gap: 8px; }
.qt { display: block; width: 340px; height: 340px; }
.qt__seasons { display: flex; gap: 4px; }
.qt__seasons button {
  padding: 3px 8px;
  border: 1px solid rgb(0 0 0 / 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--paper-ink-soft);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: capitalize;
  cursor: pointer;
}
.qt__seasons button[aria-pressed='true'] { border-color: var(--biz-accent, var(--accent-deep)); color: var(--paper-ink); }
.qt__seasons button:hover { color: var(--paper-ink); }
.qt__seasons button:focus-visible { outline: 2px solid var(--biz-accent, var(--accent-deep)); outline-offset: 2px; }
.bizcard__lines a {
  color: var(--paper-ink, #24211c);
  text-decoration: underline;
  text-decoration-color: var(--biz-accent, var(--accent-deep));
  text-underline-offset: 3px;
}
.bizcard__lines a:focus-visible,
.bizcard__close:focus-visible { outline: 2px solid var(--biz-accent, var(--accent-deep)); outline-offset: 2px; }
.bizcard__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--paper-ink, #24211c);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bizcard__close:hover { background: rgb(0 0 0 / 0.06); }
@media (prefers-reduced-motion: no-preference) {
  .bizcard[open] .bizcard__card { animation: bizcard-in 0.45s cubic-bezier(0.2, 0.8, 0.3, 1.15); }
}
@keyframes bizcard-in {
  from { translate: 0 60px; rotate: -9deg; opacity: 0; }
}

/* --- Rings the mug left ------------------------------------------------ */
.desk__rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.desk__rings span {
  position: absolute;
  aspect-ratio: 3.2;
  border: 2px solid var(--ring);
  border-radius: 50%;
  translate: -50% -50%;
}

/* --- At night, only the lamp lights the desk ---------------------------
   One layer over everything on the desk (the lockup is above the desk, so
   it is never under it), multiplied in: white where there is light, a cool
   shadow everywhere else. The light is the union of two pools, the lamp's
   (at --lamp-x/--lamp-y, which follows a dragged lamp) and the laptop
   screen's own glow (--scr-*), both set by js/desk-objects.js; `lighten`
   is what unions them. The tidy button stays above it.

   Text on the desk is under it too, so at night every ink tier inside the
   desk is the top one: the muted tier would fall to about 4:1 through it. */
.desk__night,
.desk__dusk {
  --pools:
    radial-gradient(circle at var(--lamp-x, 9%) var(--lamp-y, 45%), #fff1d8 0, #fff1d8 calc(var(--pool, 32vw) * 0.28), rgb(255 241 216 / 0) var(--pool, 32vw)),
    radial-gradient(ellipse var(--scr-w, 30vw) var(--scr-h, 20vw) at var(--scr-x, 50%) var(--scr-y, 60%), #eef1ff 0, #eef1ff 40%, rgb(238 241 255 / 0) 100%);
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  mix-blend-mode: multiply;
  background: var(--pools), var(--shade);
  background-blend-mode: lighten;
}
/* Two layers, because text has to stay readable in the dark: the deep one
   (.desk__dusk, z 3) is over the wall, the tabletop and the window only, and
   the light one (z 99990) over everything. Text on a card only ever has the
   light one over it: #f6f6f8 on the slate surface measures 6.5:1 through it. */
.desk__dusk { z-index: 3; --shade: rgb(100 106 132); }
.desk__night { z-index: 99990; --shade: rgb(178 184 205); }
:root[data-mode='desk'][data-theme='dark'] :is(.desk__night, .desk__dusk) { display: block; }
:root[data-mode='desk'][data-theme='dark'] .desk {
  --ink-body: var(--ink);
  --ink-soft: var(--ink);
  --ink-muted: var(--ink);
  --link: var(--ink);
}
:root[data-mode='desk'][data-theme='dark'] .desk .airdrop__btn { text-decoration: underline; text-underline-offset: 2px; }

/* --- Dragging -------------------------------------------------------------
   js/hero-hover.js moves an object with the individual `translate` property
   and tilts it with `rotate`, both of which compose with each object's
   authored `transform: rotate(--r)` instead of replacing it. Tidying up is
   removing them. Pointer only: everything an object *does* is still a real
   button or link, and a keyboard loses nothing by not being able to move a
   mug. */
.js .desk [data-drag] {
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.js .desk [data-drag]:not(button) { cursor: grab; }
.js .desk .prop--lamp-btn { pointer-events: none; }
.js .desk [data-drag].is-held { cursor: grabbing; scale: 1.07; }
.js .desk .prop.is-held {
  /* --prop-filter's fallback is empty, not `none`: `none drop-shadow()` is
     invalid and would drop the whole declaration. */
  filter: var(--prop-filter, ) drop-shadow(0 18px 26px var(--prop-shadow-held));
}

.desk__tidy {
  position: absolute;
  left: 3%;
  bottom: 5%;
  z-index: 100000;   /* above anything dragging can stack */
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-raised);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.desk__tidy[hidden] { display: none; }
.desk__tidy:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--on-accent-deep, #fff); }
.desk__tidy:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* --- Motion: entrance, idle spin, hover lift and the slide home -----------
   All of it motion-safe only; with reduced motion objects still move with
   the pointer, and tidy-up puts them back at once. */
@media (prefers-reduced-motion: no-preference) {
  .js .stage :is(.prop, .window, .chip, .tt) { animation: appear 0.62s var(--ease) 0.4s backwards; }
  .js .stage :is(.mug, .cards, .phone) { animation: appear 0.62s var(--ease) 0.62s backwards; }

  .js .desk [data-drag] {
    transition: translate 0.55s cubic-bezier(0.2, 0.7, 0.3, 1),
                scale 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
                rotate 0.25s ease-out,
                filter 0.32s cubic-bezier(0.2, 0.7, 0.3, 1),
                box-shadow 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  /* While held, translate follows the pointer exactly; it only eases when
     tidy-up sends the object home. */
  .js .desk [data-drag].is-held { transition-property: scale, rotate, filter, box-shadow; }

  .js .desk [data-drag]:hover:not(.is-held) { scale: 1.04; }
  .js .desk .prop:hover:not(.is-held) {
    filter: var(--prop-filter, ) drop-shadow(0 10px 20px var(--prop-shadow));
  }
  .tt__spin::before { animation: tt-spin 1.8s linear infinite; }
}

@media (prefers-reduced-motion: reduce) {
  .lamp__glow { transition: none; }
}

/* The record turns at 33 1/3 rpm: one turn in 1.8 s. The sheen is
   squashed by `scale`, so `rotate` turns it in the record's own plane. */
@keyframes tt-spin { to { rotate: 360deg; } }

@media print {
  .desk { display: none !important; }
}
