:root {
  /* One face, four roles.
   *
   * The site used to run three: Instrument Serif for display, Archivo for UI,
   * Plus Jakarta Sans for name plates, and a system mono for the loading
   * label. Four voices on a portfolio whose content is already busy — the
   * type was doing the arguing rather than the work.
   *
   * It is one monospace now, everywhere: menu, titles, plates, body. A single
   * fixed advance under all of it is the strongest thing a site like this can
   * have, because the work in the cards is what varies and the frame around
   * it should not.
   *
   * SWAPPING THE FACE: this is the only line to change. Add an @font-face
   * block above and put its family at the front of this stack; every token
   * below and every consumer in the other five stylesheets follows. Saans
   * Mono is the intended face and is not licensed for web use on the trial,
   * so Geist Mono stands in — same genre, same proportions, OFL.
   *
   * The system monos behind it are deliberate: if the webfont is slow the
   * fallback is still fixed-advance, so the page reflows in width but never
   * changes character.
   */
  --font-stack: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, 'Roboto Mono', monospace;

  /* The four role tokens stay, so every existing consumer keeps working and
     the roles stay nameable if the site ever wants a second face again. */
  --font-display: var(--font-stack);
  --font-ui: var(--font-stack);
  /* Tile name plates */
  --font-plate: var(--font-stack);
  /* Loading label */
  --font-mono: var(--font-stack);

  /* Mono tracking, as three steps rather than a value guessed per rule.
   *
   * A fixed advance gives narrow letters a lot of side bearing, so mono sets
   * looser than a proportional face at the same size, and the bigger it is
   * set the looser it looks. Display sizes need pulling in; body text does
   * not, because at 16-18px the extra space is what makes mono readable
   * rather than what makes it look gappy. Uppercase labels still want to
   * open up, just less than they would in a proportional face — the advance
   * has already done half the job. */
  --track-display: -0.03em;
  --track-tight: -0.015em;
  --track-label: 0.04em;
  --bg: #f0f0f0;
  --card-bg: #fff;
  /* The studio card and the frame it opens into are the one dark surface on
     the site — off-black rather than black, so it sits on the grey canvas as a
     material and not a hole. */
  --ink: #0e0e10;
  --ink-text: #fff;
  --ink-soft: rgba(255, 255, 255, 0.58);
  --text: #111;
  --text-muted: #77776f;
  --border: rgba(0, 0, 0, 0.06);
  --focus: #111;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.15);
  --radius: 16px;
  --gap: 32px;
  /* Card size matches the list-view hover preview: small enough that several
     fit on screen and the canvas feels light to drag. Hover does the enlarging. */
  --col-w: clamp(240px, 24vw, 380px);
  --row-h: calc(var(--col-w) * 0.632);
  --card-hover-scale: 1.18;
  /* Every duration and easing comes from motion.css — load it first. */
  /* The move into the frame. Long enough to read as travel rather than a
     transition, eased so it accelerates away and settles rather than stopping. */
  --dolly-duration: 640ms;
  /* The curve Apple uses for a zoom transition: leaves immediately, spends most
     of its time decelerating, arrives without a bounce. It is what makes a card
     growing into a screen read as one object moving rather than a box being
     resized. */
  --ease-dolly: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --dolly-duration: 1ms;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  background: var(--bg);
  font-family: var(--font-ui);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  /* The canvas handles its own panning; stop the browser scrolling/zooming the page */
  position: fixed;
  inset: 0;
  touch-action: none;
}

.drawer,
.filter-overlay {
  touch-action: pan-y;
}

body.dragging {
  cursor: grabbing;
}

/* Browser surfaces: selection, caret and focus belong to the palette too */
::selection {
  background: var(--text);
  color: var(--bg);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

input {
  caret-color: var(--text);
}

/* The floating nav lives in nav.css — shared with the editorial pages. */

/* Bottom search */
.nav-bottom {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 8px;
}

.nav-bottom-btn {
  height: 48px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  color: #555;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--duration-quick) ease;
}

.nav-bottom-btn:hover {
  background: rgba(255, 255, 255, 0.95);
}

.nav-bottom-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Canvas */
.canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(var(--cols, 7), var(--col-w));
  grid-auto-rows: var(--row-h);
  gap: var(--gap);
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: auto;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  z-index: 0;
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--duration-slow) var(--ease-smooth-out),
    box-shadow var(--duration-slow) var(--ease-smooth-out);
  text-decoration: none;
  color: inherit;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: scale(var(--card-hover-scale));
    box-shadow: var(--shadow-lg);
    z-index: 3;
  }

  .card:hover .card-name {
    opacity: 1;
    transform: translateY(0);
  }

  .card:hover .card-video {
    opacity: 1;
  }
}

/* Touch: no hover, so reveal hover videos while the card is on screen */
@media (hover: none) {
  .card.in-view video.card-video {
    opacity: 1;
  }
}

.card:active {
  transform: scale(0.98);
}

/* Keyboard parity with hover: the name and the motion both arrive on focus */
.card:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
  transform: scale(var(--card-hover-scale));
  box-shadow: var(--shadow-lg);
  z-index: 3;
}

.card:focus-visible .card-name {
  opacity: 1;
  transform: translateY(0);
}

.card:focus-visible .card-video {
  opacity: 1;
}

.card-media {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* The poster image stays in flow and holds the card open; the thumbnail video,
   which is only fitted while the card is near the screen, lies over it. Taking
   it out of flow is what lets the two coexist — the image is still there
   underneath, so a card that hasn't hydrated yet, or has been torn back down
   behind you, looks the same as one that has. */
video.card-thumb {
  position: absolute;
  inset: 0;
}

.card-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth-out);
  pointer-events: none;
}

/* Typographic plate for projects with no artwork yet — the name set the way
   the detail page sets it, rather than a decorative gradient. */
.card-plate {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--card-bg);
  border-bottom: 3px solid var(--text);
}

.card-plate span {
  font-family: var(--font-plate);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 23px);
  line-height: 1.25;
  letter-spacing: var(--track-display);
  text-align: center;
  text-wrap: balance;
  color: var(--text);
}

/* Glass name badge (hover only) */
.card-name {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #333;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 180ms var(--ease-smooth-out),
    transform 180ms var(--ease-smooth-out);
  pointer-events: none;
}

/* Video badge (top-right) */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.video-badge svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

/* Center card */
.center-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
  background: var(--ink);
  color: var(--ink-text);
  cursor: pointer;
}

/* The two states the card passes through on the way in. It empties first, so
   what grows is a bare ink rectangle; then it hands its place to the frame and
   drops out of sight without moving, which is what makes the swap invisible. */
.center-card > * {
  transition: opacity 170ms ease;
}

.center-card.is-emptying > * {
  opacity: 0;
}

.center-card.is-masked {
  opacity: 0;
}

@media (hover: hover) and (pointer: fine) {
  .center-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }
}

.center-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.center-card .btn-primary,
.center-card .btn-secondary {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* The buttons invert with the card they sit on. */
.max-frame .btn-primary {
  background: var(--ink-text);
  color: var(--ink);
}

.max-frame .btn-primary:hover {
  background: rgba(255, 255, 255, 0.86);
}

/* The studio card's one button is the exception: black, with white type,
   because the liquid metal around it is what separates it from the card.
   The hairline is not decoration — it has to hold the shape on its own, since
   the metal is gone under reduced motion and on anything without WebGL2, and a
   black pill on a black card with no edge is nothing at all. */
.center-card .btn-primary {
  background: #000;
  color: var(--ink-text);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.center-card .btn-primary:hover {
  background: #000;
  border-color: rgba(255, 255, 255, 0.5);
}

/* --- Liquid metal ---------------------------------------------------------

   .metal-wrap and .metal-canvas live in pages.css now: the nav uses them too,
   and the nav is on pages this sheet isn't. */
.center-card .btn-primary.has-metal { position: relative; }

.center-card .btn-secondary,
.max-frame .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.center-card .btn-secondary:hover,
.max-frame .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-primary {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-quick) ease,
    transform 100ms ease;
  font-family: inherit;
}

.btn-primary:hover {
  background: rgba(0, 0, 0, 0.88);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  background: #f0f0f0;
  color: #666;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition:
    background var(--duration-quick) ease,
    transform 100ms ease;
  font-family: inherit;
}

.btn-secondary:hover {
  background: #e5e5e5;
}

.btn-secondary:active {
  transform: scale(0.98);
}

/* --- The /max frame ---------------------------------------------------- */

/* The canvas only transitions while the frame is opening or closing; panning
   stays immediate. */
.canvas.dollying {
  transition:
    transform var(--dolly-duration) var(--ease-dolly),
    /* Held late on purpose: the grid should still be there, sliding off past the
       edges, for most of the move. Fade it evenly and it is gone before the
       frame has finished growing, which loses the sense of passing through it. */
    opacity var(--dolly-duration) cubic-bezier(0.7, 0, 0.9, 0.35);
}

body.frame-open .canvas {
  opacity: 0;
}

body.frame-open .nav-left,
body.frame-open .nav-bottom {
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) ease;
}

.max-frame {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: stretch;
  padding: clamp(32px, 7vh, 76px) 32px;
  overflow: hidden;
  background: var(--ink);
  color: var(--ink-text);
  transform-origin: center center;
  will-change: transform;
}

/* `display: flex` above would otherwise beat the hidden attribute, leaving an
   invisible frame swallowing every click on the canvas. */
.max-frame[hidden] {
  display: none;
}

.max-frame.is-animating {
  transition:
    transform var(--dolly-duration) var(--ease-dolly),
    border-radius var(--dolly-duration) var(--ease-dolly);
}

/* Full-bleed clip behind the lockup, once there's footage to run. */
.max-frame-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.max-frame-media:not([src]) {
  display: none;
}

/* The contents arrive after the move lands — scaling type up from card size
   would smear it on the way.

   No wordmark in here: you came through the card that carries it, and setting
   it again at the top of the room states the obvious over what will be footage.
   Actions at the foot, everything above them left open. */
.max-frame-inner {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 32px;
  text-align: center;
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

/* Waits until the growing is nearly over. The room has to arrive before it is
   furnished, or the type rides up the screen with the edges. */
.max-frame.is-open .max-frame-inner {
  opacity: 1;
  transition: opacity 260ms ease 400ms;
}

.max-frame-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.max-frame-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink-text);
  cursor: pointer;
  opacity: 0;
  transition: background var(--duration-quick) ease, opacity var(--duration-normal) ease;
}

.max-frame.is-open .max-frame-close {
  opacity: 1;
  transition: background var(--duration-quick) ease, opacity 320ms ease 420ms;
}

.max-frame-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.max-frame-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  fill: none;
}

/* Inside the frame, the frame is the ground: the drawer rises over it without
   covering it, and the actions at the foot get out of the sheet's way rather
   than sitting behind it. */
body.frame-open .drawer-scrim {
  background: rgba(10, 10, 12, 0.32);
}

body:has(.drawer.is-open) .max-frame-buttons {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.max-frame-buttons {
  transition: opacity 260ms ease, transform 260ms var(--ease-dolly);
}

.max-frame :focus-visible {
  outline: 2px solid var(--ink-text);
  outline-offset: 3px;
}

/* The frame takes focus when it opens, so the keyboard is already inside it.
   That is a place, not a control — it never draws a ring. */
.max-frame:focus,
.max-frame:focus-visible {
  outline: none;
}

/* Phones */
@media (max-width: 640px) {
  :root {
    --gap: 16px;
    --col-w: 78vw;
    --row-h: calc(78vw * 0.72);
  }

  .nav-left {
    top: 16px;
    left: 16px;
  }

  .nav-bottom {
    bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .center-card {
    gap: 14px;
    padding: 24px 20px;
  }

  /* The button sizes to its own words rather than to the card. Stretching it
     edge to edge made sense when it was one of a stack that had to line up;
     alone in the middle of a card, a full-width bar reads as a banner and
     swallows the card it is meant to be an invitation into. */
  .center-buttons .btn-primary,
  .center-buttons .btn-secondary {
    justify-content: center;
  }

  /* The badge is always on here — there is no hover to reveal it — so every
     card on the board is showing one at once, and a backdrop-filter is priced
     per element that has it, not per element you can see. A phone holding a
     few dozen cards was re-reading and blurring the backdrop behind every one
     of them on every frame of a pan, which is where the jank came from: at 6x
     CPU throttle it was 93 frames over 40ms across a fixed pan, and 13 with
     this rule alone. Desktop never felt it because there the badge is a hover
     state and only one exists at a time.

     Opaque white stands in for the blur. Over a photograph at 12px the two
     read the same; the frosting was never doing much work at this size. */
  .card-name {
    opacity: 1;
    transform: none;
    bottom: 10px;
    left: 10px;
    font-size: 13px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Same trade for the same reason: a 4px blur inside a 28px circle is not
     visible, but it still costs a compositing layer on every video card. */
  .video-badge {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .filter-overlay {
    padding: 64px 16px 0;
  }

  .filter-modal {
    padding: 24px 20px;
  }
}

/* Loading state */
.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--track-label);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .card {
    transition: opacity var(--duration-normal) ease;
  }
  .card:hover {
    transform: none;
  }
  video.card-video {
    display: none;
  }
}

/* Card dim/highlight states for filter */
.card.dim {
  opacity: 0.18;
  filter: saturate(0.4);
  transition: opacity var(--duration-normal) var(--ease-smooth-out), filter var(--duration-normal) var(--ease-smooth-out);
}
.card.highlight {
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), var(--shadow-md);
}

/* Filter modal */
.filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.filter-overlay.active {
  display: flex;
}
.filter-modal {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 24px;
  width: 100%;
  max-width: 560px;
  padding: 32px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.6);
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  transform: scale(0.95);
  opacity: 0;
  transition: transform var(--duration-normal) var(--ease-smooth-out), opacity var(--duration-normal) var(--ease-smooth-out);
}
.filter-overlay.active .filter-modal {
  transform: scale(1);
  opacity: 1;
}
.filter-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.06);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: background var(--duration-quick) ease;
}
.filter-close:hover {
  background: rgba(0, 0, 0, 0.12);
}
.filter-close svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}
.filter-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #111;
}
.filter-search {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  font-size: 15px;
  background: #fff;
  outline: none;
  transition: border-color var(--duration-quick) ease;
  font-family: inherit;
  margin-bottom: 24px;
}
.filter-search:focus {
  border-color: #5de6c8;
}
.filter-search::placeholder {
  color: #bbb;
}
.filter-section {
  margin-bottom: 20px;
}
.filter-section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  color: #999;
  margin-bottom: 10px;
}
.filter-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-pill {
  background: rgba(0, 0, 0, 0.05);
  color: #555;
  border: none;
  padding: 7px 14px;
  border-radius: 18px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--duration-quick) ease, color var(--duration-quick) ease;
  font-family: inherit;
}
.filter-pill:hover {
  background: rgba(0, 0, 0, 0.09);
}
.filter-pill.active {
  background: #111;
  color: #fff;
}
.filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.filter-clear {
  background: transparent;
  color: #888;
  border: none;
  padding: 10px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--duration-quick) ease;
}
.filter-clear:hover {
  background: rgba(0, 0, 0, 0.05);
}
.filter-done {
  background: #111;
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--duration-quick) ease;
}
.filter-done:hover {
  background: #222;
}

/* --- Cards arriving -------------------------------------------------------

   The board holds every card for the 3x3 tiling — around 225 of them — and
   appends them in one go. Staggering all of those would be both nonsense and
   expensive: most are far off screen, and each one animating is a layer the
   compositor has to keep. world.js marks only the cards actually inside the
   viewport at load, so the count that animates is the dozen or so you can see.

   The stagger is radial, not row-order. This is a spatial canvas, and the
   thing you are looking at is the middle of it, so the board opens outward
   from where your eye already is. Six rings of --duration-stagger is 200ms of
   total offset — under the ~300ms past which the last item starts reading as
   late — and rings rather than per-card delays are what keep it there however
   many cards happen to be on screen.

   No blur here, unlike the page slide: a filter on a dozen elements at once is
   a dozen filter surfaces, and this runs on a phone. Opacity and transform
   only, both of which the compositor handles on its own thread. */
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(var(--distance-base)) scale(var(--scale-medium));
  }
}

.card.is-entering {
  animation: card-in var(--duration-slow) var(--ease-smooth-out) var(--enter-delay, 0ms) backwards;
}

@media (prefers-reduced-motion: reduce) {
  @keyframes card-in {
    from { opacity: 0; }
  }
  /* No stagger either — a cascade is motion even when nothing moves. */
  .card.is-entering {
    animation: card-in var(--duration-fast) linear backwards;
  }
}
