Skip to content

armgit / fuobe

Public Imported from GitHub
0

The open creative studio on ComfyUI: images, video, 3D and audio on open weights, on your own GPU or the cloud. Camera motions, effects, apps, Cinema, Layers, Image to 3D and an AI agent.

44.0 KB
Raw Blame
/*
 * Home's first screen (home-bento.tsx): a headline over a grid of tiles, one per kind of media. The sheet is global,
 * as every stylesheet here is, so each class starts with hb- (home-bento-classes.ts).
 *
 * Layout: grid areas per width, so every tile's box comes from the grid (aspect ratios on a phone, fixed rows on a
 * tablet, a height that fills the screen from lg), never from its media: nothing moves when a picture or clip loads.
 *
 * Motion: nothing moves until BentoMotion (bento-islands.tsx) sets data-play on the section: "1" while it is on
 * screen, the page has loaded and previews aren't paused; "0" once paused or scrolled away (the animations freeze where
 * they are). Without it (before load, reduced motion, Save-Data) every tile rests on its still frame.
 *
 * Accent: every glow, line, caret, dot and edge in the grid is the theme's --primary; the headline's accent is its own.
 */

.hb-bento {
  --bento-gap: 12px;
  --bento-accent: var(--primary);
  --bento-glow: color-mix(in oklch, var(--primary) 30%, transparent);
  /*
   * The headline's two sizes (--l1 "Make anything:", --l2 the line under it): 68 / 28 px at 390, 112 / 42 at 768,
   * 150 / 54 at 1024 and 190 / 68 from 1280, in a straight line between those widths, so nothing jumps.
   */
  --l1: 17.44vw;
  --l2: 7.18vw;
  /* From the bar to "Make anything:", and from the headline to the grid. */
  --head-top: 28px;
  --head-gap: 20px;
  scroll-margin-top: 1rem;
  /*
   * PageShell's top padding (16 px; 48 px from md) is taken back, so the tops of the headline's letters sit --head-top
   * under the bar (they start 0.026 of the size into the line).
   */
  margin-top: calc(var(--head-top) - 1rem - var(--l1) * 0.026);
}
@media (min-width: 390px) {
  .hb-bento {
    --l1: calc(68px + (100vw - 390px) * 0.1164);
    --l2: calc(28px + (100vw - 390px) * 0.037);
  }
}
@media (min-width: 768px) {
  .hb-bento {
    --l1: calc(112px + (100vw - 768px) * 0.1484);
    --l2: calc(42px + (100vw - 768px) * 0.0469);
    --head-top: 40px;
    --head-gap: 28px;
    margin-top: calc(var(--head-top) - 3rem - var(--l1) * 0.026);
  }
}
@media (min-width: 1024px) {
  .hb-bento {
    --bento-gap: 14px;
    /*
     * All eight tiles stay on the first screen, the grid at least --grid-min tall: on a short screen (under about 860
     * px of page) the headline gives way first, at the same proportions. --l1-room: the most "Make anything:" can be
     * for that, 1.33 being the headline's height in --l1 (both lines: see --bento-head, with --l2 at 0.358 of it).
     */
    --grid-min: 450px;
    /* 3.25rem: the foot row under the grid (its note, "Start creating" and the pause button), the same room the grid's height leaves it. */
    --l1-room: calc((var(--content-h) - var(--grid-min) - 3.25rem - var(--head-top) - var(--head-gap)) / 1.33);
    /*
     * --l1-fit: the most "Make anything:" can be and still leave the note its own column on the right. The headline's
     * width (PageShell's: the screen less 2 x 24 px, at most 1152 px), less 276 px for the note and its gap, over 5.2:
     * the words measure 4.83 of their size in Instrument Serif, and the extra 8 % keeps them clear of the note where a
     * browser sets them a little wider (zoom, text scaling, a different build of the face).
     */
    --l1-fit: calc((min(100vw - 48px, 1152px) - 276px) / 5.2);
    /* Never below 96px: in a short window the grid runs on below the fold instead of the headline shrinking away. */
    --l1: max(96px, min(calc(150px + (100vw - 1024px) * 0.1563), var(--l1-room), var(--l1-fit)));
    --l2: calc(var(--l1) * 0.358);
    /* The headline's height (line 1's box, the gap under its descenders, line 2's box), which the grid takes off the screen's. */
    --bento-head: calc(var(--l1) * 0.986 + var(--l2) * 0.96 + var(--head-gap));
  }
}
@media (min-width: 1280px) {
  .hb-bento {
    --l1: max(96px, min(190px, var(--l1-room), var(--l1-fit)));
  }
}

/* ---------------------------------------------------------------- headline */

/*
 * "Make anything:" at display size, set tight and a touch heavier than the face's one weight (a hairline stroke in its
 * own colour); the second line in italic under it, right-aligned to the grid's edge from 768, with only "finished
 * film," in the accent. Each line rises into place once as the page opens (transform and opacity only, from 40 %, so
 * the words are on the first paint), and the accent's glow fades in after; none of it under reduced motion.
 */
.hb-head {
  position: relative;
  margin-bottom: var(--head-gap);
  --ink-1: #0b0b0f;
  --ink-2: #0b0b0f;
  --ink-accent: #5b45e0;
  --ink-note: #6b6875;
}
.dark .hb-head {
  --ink-1: #fff;
  --ink-2: #f4f1ff;
  --ink-accent: #c9bfff;
  --ink-note: #8a8794;
}
.hb-h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--l1);
  line-height: 0.86;
  letter-spacing: -0.035em;
  color: var(--ink-1);
}
.hb-line1,
.hb-line2 {
  display: block;
}
.hb-line1 {
  /* The M's stem on the grid's left edge (the face's side bearing, taken back). */
  margin-left: -0.04em;
  white-space: nowrap;
  -webkit-text-stroke: 0.008em currentColor;
}
/* Line 2 tucks in just under the descenders of "anything" (0.126 of line 1's size under its line), clear of them. */
.hb-line2 {
  margin-top: calc(var(--l1) * 0.126 + var(--l2) * 0.06);
  font-size: var(--l2);
  font-style: italic;
  line-height: 1.04;
  letter-spacing: -0.01em;
  color: var(--ink-2);
}
/*
 * The page's HTML can arrive in parts, and the browser draws what it has: a second line cut after "From an idea to a"
 * would sit at the right edge alone, then slide left as the rest comes. It stays unseen until its end mark is in (a
 * browser without :has() drops the rule and shows it as before).
 */
.hb-line2:not(:has(> .hb-end)) {
  visibility: hidden;
}
/* A phone: two lines, the second starting at "finished". */
.hb-l2b {
  display: block;
}
.hb-accent {
  position: relative;
  color: var(--ink-accent);
}
@media (min-width: 768px) {
  .hb-line2 {
    text-align: right;
    white-space: nowrap;
    line-height: 0.9;
  }
  .hb-l2b {
    display: inline;
  }
}

/* The glow, on a layer of its own (the same words, see-through) so it can fade in on opacity alone. */
.dark .hb-accent::after {
  content: attr(data-glow) / "";
  position: absolute;
  inset: 0;
  white-space: nowrap;
  color: transparent;
  text-shadow: 0 0 40px rgb(185 173 255 / 0.22);
  pointer-events: none;
}

.hb-line1 {
  animation: hb-rise 700ms var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)) both;
}
.hb-line2 {
  animation: hb-rise 900ms var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)) 120ms both;
}
.dark .hb-accent::after {
  animation: hb-glow 1.2s ease 500ms both;
}
@keyframes hb-rise {
  from {
    opacity: 0.4;
    transform: translateY(0.12em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes hb-glow {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hb-line1,
  .hb-line2,
  .dark .hb-accent::after {
    animation: none;
  }
}

/*
 * The note under the headline: in the flow under the second line up to lg; from lg in the room right of
 * "Make anything:", its last line on that line's baseline, so it takes no height from the grid.
 */
.hb-aside {
  max-width: 300px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-note);
  text-wrap: pretty;
}
@media (min-width: 1024px) {
  .hb-aside {
    position: absolute;
    top: 0;
    right: 0;
    /* Down to line 1's baseline (0.768 of its size under the top of its line), and the note's own descent. */
    height: calc(var(--l1) * 0.768 + 5px);
    /* The room right of the words with the same 8 % to spare (see --l1-fit); its words show only where that is 180 px or more. */
    width: min(300px, calc(100% - var(--l1) * 5.2 - 40px));
    max-width: none;
    container-type: inline-size;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 14px;
  }
  @container (max-width: 179.98px) {
    .hb-aside-words {
      display: none;
    }
  }
}

/* ---------------------------------------------------------------- grid */

/*
 * The latest release leads; Live edit, the highlight, and Genjutsu, whose swaps need room to be seen, are the next
 * biggest, the same size, right by it (right under it on a phone). From lg the grid is fourteen narrow columns, so the
 * top two rows (the latest release, Live edit, Genjutsu) and the bottom row (the video reel, 3D, audio, the numbers,
 * canvas) each split it their own way. The audio tile, which holds a demo to play, takes four of the bottom row's columns.
 */
.hb-grid {
  display: grid;
  gap: var(--bento-gap);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "release release"
    "live live"
    "genjutsu genjutsu"
    "video three"
    "audio audio"
    "canvas canvas"
    "numbers numbers";
}
@media (max-width: 767.98px) {
  .hb-release {
    aspect-ratio: 3 / 2;
  }
  /* Wide enough to show the whole portrait, short enough that the reel and it fit a phone's first screen. */
  .hb-live {
    aspect-ratio: 16 / 10;
  }
  /* As big as the live tile above it: the swaps show whole, faces and all. */
  .hb-genjutsu {
    aspect-ratio: 16 / 10;
  }
  .hb-video,
  .hb-three {
    aspect-ratio: 1;
  }
  /* The demo: room for its switch over the photo and its words under her; a little smaller than Genjutsu. */
  .hb-audio {
    aspect-ratio: 5 / 3;
  }
  .hb-canvas {
    aspect-ratio: 16 / 9;
  }
}
@media (min-width: 768px) {
  .hb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    /* Live edit one column two rows tall, Genjutsu two columns one row tall: the same size, each bigger than the rest. */
    grid-template-rows: 230px 230px 230px 210px auto;
    grid-template-areas:
      "release release live"
      "release release live"
      "genjutsu genjutsu video"
      "three audio canvas"
      "numbers numbers numbers";
  }
}
@media (min-width: 1024px) {
  .hb-grid {
    grid-template-columns: repeat(14, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    height: clamp(var(--grid-min), calc(var(--content-h) - var(--bento-head) - var(--head-top) - 3.25rem), 760px);
    grid-template-areas:
      "release release release release release release live live live live genjutsu genjutsu genjutsu genjutsu"
      "release release release release release release live live live live genjutsu genjutsu genjutsu genjutsu"
      "video video three three audio audio audio audio numbers numbers numbers canvas canvas canvas";
  }
}
.hb-video {
  grid-area: video;
}
.hb-release {
  grid-area: release;
}
.hb-audio {
  grid-area: audio;
}
.hb-three {
  grid-area: three;
}
.hb-genjutsu {
  grid-area: genjutsu;
}
.hb-numbers {
  grid-area: numbers;
}
.hb-live {
  grid-area: live;
}
.hb-canvas {
  grid-area: canvas;
}

/* ---------------------------------------------------------------- a tile */

.hb-tile {
  position: relative;
  isolation: isolate;
  display: block;
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--media);
  color: #fff;
  text-decoration: none;
  container-type: inline-size;
  -webkit-tap-highlight-color: transparent;
}
/*
 * The tile's hairline edge is a ring drawn over its picture (not a border around it): a border leaves a pixel between
 * the picture's box and the tile's edge, and on a 2x screen Safari places a moving picture's layer a hair off, so a sliver
 * of the unshaded picture showed through the bottom edge.
 */
.hb-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 8%);
  pointer-events: none;
  transition: box-shadow var(--motion-base) var(--ease-standard);
}
/* A pointed-at tile brightens its edge and stays in place: a tile moving out of the grid reads as a misalignment. */
@media (hover: hover) {
  .hb-tile:hover::before {
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 26%);
  }
}
/*
 * The tile clips everything in it to its rounded corners with a clip path: Safari's overflow clip lets a playing clip, a
 * zooming still or the reel's glowing progress line show past the corners and under the bottom edge. A clip path also
 * cuts anything drawn outside the tile, so the keyboard's ring is drawn just inside its edge.
 */
.hb-tile {
  clip-path: inset(0 round 14px);
}
.hb-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: inherit;
  pointer-events: none;
}
.hb-tile:focus-visible::after {
  box-shadow:
    inset 0 0 0 2px var(--ring),
    inset 0 0 0 4px var(--background);
}
@media (forced-colors: active) {
  .hb-tile:focus-visible::after {
    border: 3px solid CanvasText;
  }
}
.hb-fill {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hb-pic {
  position: absolute;
  inset: 0;
  display: block;
}
/* White words read at 4.5:1 over any frame: the lower part of each tile is shaded. */
.hb-shade {
  position: absolute;
  inset: auto -1px -1px;
  height: 62%;
  background: linear-gradient(to top, rgb(0 0 0 / 90%), rgb(0 0 0 / 55%) 45%, transparent);
  pointer-events: none;
}
.hb-copy {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 12px;
  pointer-events: none;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
.hb-meta {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(255 255 255 / 80%);
}
.hb-title {
  display: block;
  margin-top: 3px;
  font-family: var(--font-heading);
  font-size: 20px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hb-cta {
  display: none;
  margin-top: 8px;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: rgb(255 255 255 / 85%);
  transition: color 0.2s ease;
}
.hb-cta svg {
  transition: transform 0.2s ease;
}
.hb-tile:hover .hb-cta,
.hb-tile:focus-visible .hb-cta {
  color: #fff;
}
.hb-tile:hover .hb-cta svg,
.hb-tile:focus-visible .hb-cta svg {
  transform: translateX(2px);
}
/* A small tile (a phone's square) has no room for the link's words: an arrow in its corner says it opens. */
.hb-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgb(0 0 0 / 45%);
  color: #fff;
  pointer-events: none;
}
/* A narrow tile (a phone's square) keeps to its title: the small line would wrap over the picture. */
@container (max-width: 199.98px) {
  .hb-meta {
    display: none;
  }
}
@container (min-width: 250px) {
  .hb-title {
    font-size: 24px;
  }
}
@container (min-width: 220px) {
  .hb-copy {
    left: 18px;
    right: 18px;
    bottom: 16px;
  }
  .hb-meta {
    font-size: 11px;
  }
  .hb-cta {
    display: inline-flex;
  }
  .hb-corner {
    display: none;
  }
}
@container (min-width: 360px) {
  .hb-title {
    font-size: 28px;
  }
}
/*
 * The words keep the same inset in every tile, whatever its width, so tiles side by side (the latest release, Live edit
 * and Genjutsu) set their titles and links on the same lines.
 */
@container (min-width: 460px) {
  .hb-release .hb-title {
    font-size: 40px;
  }
  .hb-meta.hb-big {
    font-size: 13px;
    letter-spacing: 0.02em;
    text-transform: none;
  }
}
@container (min-width: 540px) {
  .hb-release .hb-title {
    font-size: 44px;
  }
}
/* From a tablet the live and Genjutsu tiles are the second biggest: their titles a size up from the small tiles', and
   from lg two. */
@media (min-width: 768px) {
  .hb-live .hb-title,
  .hb-genjutsu .hb-title {
    font-size: 28px;
  }
}
@media (min-width: 1024px) {
  .hb-live .hb-title,
  .hb-genjutsu .hb-title {
    font-size: 30px;
  }
  @container (min-width: 360px) {
    .hb-live .hb-title,
    .hb-genjutsu .hb-title {
      font-size: 34px;
    }
  }
}

/*
 * From lg every tile's box is fixed by the grid, so a tile can be measured both ways: a short one (1024 x 768) drops
 * its small line over the title, and the canvas tile draws its board smaller, so nothing overlaps.
 */
@media (min-width: 1024px) {
  .hb-tile {
    container-type: size;
  }
}
@container (max-height: 200px) {
  .hb-meta {
    display: none;
  }
}

/* ---------------------------------------------------------------- video */

.hb-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgb(13 13 15 / 72%);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}
/* A small tile (the bottom row, a phone's square): the badge on the corner arrow's line, a size down. */
@container (max-width: 219.98px) {
  .hb-badge {
    top: 10px;
    left: 10px;
    gap: 6px;
    height: 26px;
    padding: 0 9px;
    font-size: 10.5px;
  }
}
.hb-progress {
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: rgb(255 255 255 / 16%);
  pointer-events: none;
}
.hb-progress > i {
  display: block;
  height: 100%;
  background: var(--bento-accent);
  transform: scaleX(0);
  transform-origin: left;
  box-shadow: 0 0 10px var(--bento-glow);
}
.hb-clip {
  position: absolute;
  inset: 0;
}
.hb-clip video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.hb-clip video:not([data-ready]) {
  opacity: 0;
}
/* The video tile's reel: the next clip fades in over the one ending, for the ending clip's fade (REEL_FADE_MS unless
   it sets its own, src/lib/home-reel.ts; set inline). Slow at both ends and quick through the middle: two faces are
   never half over each other for long. */
.hb-clip video[data-in] {
  transition-duration: 0.5s;
  transition-timing-function: cubic-bezier(0.6, 0, 0.4, 1);
}

/* ---------------------------------------------------------------- release: the latest open model, new */

/*
 * The latest open model's pictures (BentoRelease in bento-islands.tsx), in a layer of their own under the tile's words:
 * the one shown on top, fading in over the one before it (held under it until the next turn), the rest unseen. Each
 * closes in slowly toward its own framing point (--o) while it shows and while the next fades in over it, so nothing
 * snaps back on screen. The tile's edge and a soft inner glow are the accent, and the badge's dot pulses: it reads as
 * new. All of it moves only while data-play is "1", freezes at "0", and without it the first picture rests whole.
 */
.hb-release > .hb-pic {
  isolation: isolate;
}
.hb-release-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
}
.hb-release-slide[data-prev] {
  z-index: 1;
  opacity: 1;
}
.hb-release-slide[data-on] {
  z-index: 2;
  opacity: 1;
  transition: opacity var(--fade, 900ms) cubic-bezier(0.4, 0, 0.2, 1);
}
.hb-release-slide .hb-fill {
  transform-origin: var(--o, 50% 40%);
}
.hb-bento[data-play] .hb-release-slide:is([data-on], [data-prev]) .hb-fill {
  animation: hb-release-ken 4.2s cubic-bezier(0.25, 0.1, 0.45, 1) both;
  animation-play-state: paused;
}
.hb-bento[data-play="1"] .hb-release-slide:is([data-on], [data-prev]) .hb-fill {
  animation-play-state: running;
}
@keyframes hb-release-ken {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

/* The edge in the accent, with a glow inside it (wide enough to read on the lead tile); brighter under the pointer. */
.hb-release::before {
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--bento-accent) 75%, transparent),
    inset 0 0 44px -10px var(--bento-glow);
}
@media (hover: hover) {
  .hb-release:hover::before {
    box-shadow:
      inset 0 0 0 1px color-mix(in oklch, var(--bento-accent) 85%, white),
      inset 0 0 52px -8px color-mix(in oklch, var(--bento-accent) 45%, transparent);
  }
}

/* "New · Day 0", as Genjutsu's "Swapped": an accent pill top left, with a white dot that pulses while the tile plays. */
.hb-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px 0 8px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--bento-accent) 82%, black);
  box-shadow: 0 0 16px var(--bento-glow);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.hb-new-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
}
.hb-bento[data-play] .hb-new-dot {
  animation: hb-new-pulse 1.6s ease-out infinite;
  animation-play-state: paused;
}
.hb-bento[data-play="1"] .hb-new-dot {
  animation-play-state: running;
}
@keyframes hb-new-pulse {
  from {
    box-shadow: 0 0 0 0 rgb(255 255 255 / 70%);
  }
  to {
    box-shadow: 0 0 0 6px rgb(255 255 255 / 0%);
  }
}
@container (min-width: 220px) {
  .hb-new-badge {
    top: 14px;
    left: 14px;
    height: 26px;
    padding: 0 11px 0 10px;
    font-size: 11px;
  }
}
/* The lead tile: the badge a size up, on the same inset as the words under it. */
@container (min-width: 460px) {
  .hb-new-badge {
    top: 18px;
    left: 18px;
    gap: 8px;
    height: 30px;
    padding: 0 13px 0 12px;
    font-size: 12px;
  }
  .hb-new-dot {
    width: 7px;
    height: 7px;
  }
}

/*
 * The model's name over the title and "Try it now" under it, in every size of the tile (a small tile drops both
 * elsewhere): the name is what is new. The badge holds the top, so no corner arrow.
 */
.hb-release .hb-meta {
  display: block;
}
.hb-release .hb-cta {
  display: inline-flex;
}
.hb-release .hb-corner {
  display: none;
}
/*
 * Three lines of words on a narrow tile (a phone's row): the shade reaches higher, so the name reads over a bright
 * picture. On the lead tile the words take a smaller share of its height, and the pictures show whole above them.
 */
.hb-release .hb-shade {
  height: 78%;
}
@container (min-width: 460px) {
  .hb-release .hb-shade {
    height: 58%;
  }
  .hb-release .hb-cta {
    margin-top: 12px;
    font-size: 14px;
  }
}
@container (max-width: 199.98px) {
  .hb-release .hb-meta {
    letter-spacing: 0.04em;
  }
  .hb-release .hb-cta {
    margin-top: 5px;
    font-size: 12px;
  }
}

/* ---------------------------------------------------------------- audio: Clean up voice's demo, to hear */

/*
 * The tile holds the demo (bento-voice.tsx): the restaurant photo, and over it a layer laid out as a grid, so each part
 * keeps to its own corner whatever size the tile is: the chip saying what is heard (top left), the Noise on / Noise off
 * switch (top right), the tile's words, which are the link to the studio (bottom left), and the play button (bottom
 * right), which keeps one width whatever it says. On a narrow tile (a tablet's column, 1024 px screens) the button goes
 * top right, its icon alone, and the switch over the words, clear of her face. Every part sits in the tile's own box,
 * so nothing moves the grid.
 */
.hb-voice {
  cursor: pointer;
  touch-action: manipulation;
}
/* Her face sits about a third down the photo, in the middle: a tile wider than the photo keeps it in view. */
.hb-voice-pics {
  position: absolute;
  inset: 0;
  transform-origin: 50% 32%;
  transition: transform 9s cubic-bezier(0.2, 0.6, 0.3, 1);
}
.hb-voice-pics .hb-fill {
  object-position: 50% 28%;
}
/* While it plays, the photo draws in a little, as the studio's demo does. */
.hb-voice-near {
  transform: scale(1.045);
}
/* The same photo softened around her: it shows while the noise is off. */
.hb-voice-quiet {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.hb-voice-quiet[data-on] {
  opacity: 1;
}
.hb-voice .hb-shade {
  height: 70%;
}

.hb-voice-ui {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "chip switch"
    ". ."
    "copy play";
  gap: 8px;
  padding: 10px 10px 12px;
}

.hb-voice-chip,
.hb-voice-switch {
  display: inline-flex;
  align-items: center;
  align-self: start;
  border-radius: 999px;
  background: rgb(10 8 6 / 62%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.hb-voice-chip {
  grid-area: chip;
  justify-self: start;
  gap: 7px;
  height: 28px;
  padding: 0 11px 0 9px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
}
.hb-voice-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #ffb347;
}
.hb-voice[data-clean] .hb-voice-dot {
  background: #7ee2b8;
}
.hb-voice-dot[data-live] {
  animation: hb-voice-pulse 1.1s ease-out infinite;
}
@keyframes hb-voice-pulse {
  from {
    box-shadow: 0 0 0 0 rgb(255 179 71 / 60%);
  }
  to {
    box-shadow: 0 0 0 7px rgb(255 179 71 / 0%);
  }
}

/* The switch: each half a button as tall as the switch, the pressed one a white pill inside it. */
.hb-voice-switch {
  grid-area: switch;
  justify-self: end;
  padding: 0 2px;
}
.hb-voice-switch > button {
  min-height: 28px;
  padding: 2px 1px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: rgb(255 255 255 / 78%);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  outline: none;
}
.hb-voice-switch > button > span {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}
.hb-voice-switch > button:hover {
  color: #fff;
}
.hb-voice-switch > button[aria-pressed="true"] > span {
  background: #fff;
  color: #141210;
}
.hb-voice-switch > button:focus-visible > span {
  outline: 2px solid #fff;
  outline-offset: 1px;
}

/* The play button: one width whatever it says (Tap to listen, Loading…, Pause, Resume, Play again). */
.hb-voice-play {
  grid-area: play;
  align-self: end;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 132px;
  height: 34px;
  margin: 0 2px 0 0;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #141210;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 8px 24px rgb(0 0 0 / 35%);
  outline: none;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.hb-voice-play:hover {
  background: #fff;
}
.hb-voice-play:active {
  transform: scale(0.97);
}
.hb-voice-play:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The tile's words, the link to the studio. */
.hb-voice-link {
  grid-area: copy;
  align-self: end;
  min-width: 0;
  margin: 0 0 0 4px;
  color: inherit;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.hb-voice-copy {
  display: block;
  text-shadow: 0 1px 2px rgb(0 0 0 / 35%);
}
/* The small line keeps to one line: it may run on over the play button's column, above the button. */
.hb-voice .hb-meta {
  white-space: nowrap;
}
/* The link's words only where they fit on one line beside the button (a phone's full row); elsewhere the arrow. */
@container (max-width: 339.98px) {
  .hb-voice .hb-cta {
    display: none;
  }
}
/* The link's focus shows as every tile's does: the ring round the tile. */
.hb-voice:has(.hb-voice-link:focus-visible) {
  box-shadow:
    0 0 0 2px var(--background),
    0 0 0 4px var(--ring);
}
.hb-voice-link:hover .hb-cta,
.hb-voice-link:focus-visible .hb-cta {
  color: #fff;
}
.hb-voice-link:hover .hb-cta svg,
.hb-voice-link:focus-visible .hb-cta svg {
  transform: translateX(2px);
}
/* Where the tile has no room for the link's own words (a short or narrow tile), an arrow after the title says it opens. */
.hb-voice-go {
  display: inline-block;
  width: 0.8em;
  height: 0.8em;
  margin-left: 0.25em;
  vertical-align: -0.06em;
  transition: transform 0.2s ease;
}
.hb-voice-link:hover .hb-voice-go,
.hb-voice-link:focus-visible .hb-voice-go {
  transform: translateX(2px);
}

/* The line along the bottom follows the clips (its width set as they play). */
.hb-voice-bar {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 3px;
  background: rgb(255 255 255 / 14%);
  pointer-events: none;
}
.hb-voice-bar > i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
}

@container (min-width: 220px) {
  .hb-voice-ui {
    padding-bottom: 16px;
  }
  .hb-voice-link {
    margin-left: 8px;
  }
}
@container (min-width: 340px) {
  .hb-voice-go {
    display: none;
  }
}
@container (min-width: 460px) {
  .hb-voice-ui {
    padding: 14px 14px 18px;
  }
  .hb-voice-link {
    margin-left: 12px;
  }
}
/* (Height is measured from lg, where the grid fixes every tile's box: the bottom row is short up to 1080 px screens.) */
@container (max-height: 200px) {
  .hb-voice .hb-cta {
    display: none;
  }
  .hb-voice-go {
    display: inline-block;
  }
}
/*
 * A narrow tile: the chip and the play button (its icon alone; its words stay its name) on top, the switch over the
 * title, and no small line or link words (the arrow after the title).
 */
@container (max-width: 299.98px) {
  .hb-voice-ui {
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "chip play"
      ". ."
      "switch switch"
      "copy copy";
  }
  .hb-voice-switch {
    justify-self: start;
  }
  .hb-voice-play {
    align-self: start;
    width: 34px;
    padding: 0;
  }
  .hb-voice-play > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .hb-voice .hb-meta {
    display: none;
  }
}
/* A phone or a tablet: every button at least 44 px to tap. */
@media (pointer: coarse) {
  .hb-voice-switch > button {
    min-height: 44px;
    padding: 4px 1px;
  }
  .hb-voice-switch > button > span {
    padding: 9px 12px;
    font-size: 13px;
  }
  .hb-voice-play {
    width: 148px;
    height: 44px;
    font-size: 14px;
  }
  @container (max-width: 299.98px) {
    .hb-voice-play {
      width: 44px;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hb-voice-pics,
  .hb-voice-quiet,
  .hb-voice-switch > button > span,
  .hb-voice-play,
  .hb-voice-go {
    transition: none;
  }
  .hb-voice-near {
    transform: none;
  }
  .hb-voice-dot[data-live] {
    animation: none;
  }
}

/* ---------------------------------------------------------------- 3D: the clip turns the model on its own disc */

.hb-three .hb-shade {
  height: 45%;
}

/* ---------------------------------------------------------------- genjutsu: swaps, as they happen */

/* The faces sit in the top half of each clip (the couple's from 16 % to 43 % of its height in every frame): a tile
   wider than the clip keeps them in view. From lg the tile is squarer than the clip, so all of its height shows. */
.hb-genjutsu > .hb-pic .hb-fill,
.hb-genjutsu .hb-clip video {
  object-position: 50% 22%;
}
@media (min-width: 1024px) {
  .hb-genjutsu > .hb-pic .hb-fill,
  .hb-genjutsu .hb-clip video {
    object-position: 50% 40%;
  }
}
/*
 * The words either side of the divider in the picture, riding along with it (BentoReel moves --x, the divider's place
 * on the frame on screen, a share of the clip's width). The clip fills the tile under object-fit: cover, centred
 * across, so the divider is at --lx in the tile (--fw: the clip's width on screen). "Original" rides on its right and
 * keeps to the tile's left edge until the divider comes; "Swapped" rides on its left and stays at the right edge once
 * it has gone by. Before the tile plays the divider is off the frame to the left, so "Original" names the still; under
 * reduced motion it is half way across, as in that still. They go with the picture as a clip fades out.
 */
.hb-wipe {
  --x: -0.03;
  --fw: 100cqw;
  --lx: calc(var(--x) * var(--fw) - (var(--fw) - 100cqw) / 2);
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
@media (min-width: 1024px) {
  .hb-wipe {
    --fw: max(100cqw, 133.333cqh);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hb-wipe {
    --x: 0.5;
  }
}
.hb-wipe[data-out] {
  opacity: 0;
}
.hb-wipe-before,
.hb-wipe-after {
  position: absolute;
  top: 12px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgb(13 13 15 / 72%);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Moved, not laid out again: the words ride on a transform, so their trip is never a layout shift. */
.hb-wipe-before {
  left: 0;
  transform: translateX(max(12px, calc(var(--lx) + 8px)));
}
.hb-wipe-after {
  right: 0;
  transform: translateX(min(-12px, calc(var(--lx) - 100cqw - 8px)));
  background: color-mix(in oklch, var(--bento-accent) 82%, black);
}
@container (min-width: 340px) {
  .hb-wipe-before,
  .hb-wipe-after {
    top: 16px;
    height: 26px;
    padding: 0 11px;
    font-size: 11px;
  }
  .hb-wipe-before {
    transform: translateX(max(16px, calc(var(--lx) + 9px)));
  }
  .hb-wipe-after {
    transform: translateX(min(-16px, calc(var(--lx) - 100cqw - 9px)));
  }
}
/* The reel's clips and its still: a wide, short tile crops from the bottom, so the head always shows (a clip framed
   otherwise sets its own object-position: HOME_BENTO_REEL). */
.hb-video .hb-fill,
.hb-video .hb-clip video {
  object-position: 50% 0%;
}

/* ---------------------------------------------------------------- numbers */

.hb-numbers {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px 16px;
  background:
    linear-gradient(150deg, var(--bento-glow) 0%, transparent 62%),
    var(--media);
}
.hb-figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}
.hb-figures > div {
  min-width: 0;
}
.hb-figures dd {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(30px, 17cqw, 54px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hb-figures dt {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.3;
  color: rgb(255 255 255 / 78%);
}
.hb-figures > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
}
.hb-numbers-line {
  font-size: 13px;
  line-height: 1.45;
  color: rgb(255 255 255 / 72%);
  text-wrap: pretty;
}
.hb-numbers .hb-cta {
  display: flex;
  width: fit-content;
  margin-top: 6px;
}
.hb-numbers-line {
  display: block;
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .hb-numbers {
    flex-direction: row;
    align-items: flex-end;
    padding: 20px 24px;
  }
  .hb-figures {
    flex: 1 1 auto;
    max-width: 420px;
  }
  .hb-numbers-foot {
    max-width: 260px;
    text-align: right;
  }
  .hb-numbers-foot .hb-cta {
    margin-left: auto;
  }
}
/*
 * From lg the tile is a small square: each figure is a row, its number then its word on one line, the numbers as large
 * as the tile's height lets them be. The extra line shows only on a tile tall enough for it (1920 x 1080).
 */
@media (min-width: 1024px) {
  .hb-numbers {
    gap: 8px;
  }
  .hb-figures {
    grid-template-columns: auto minmax(0, 1fr);
    /* Each word comes before its number in the markup: dense puts the number back in its own row. */
    grid-auto-flow: row dense;
    align-items: baseline;
    column-gap: 10px;
    row-gap: clamp(2px, 2.5cqh, 8px);
  }
  .hb-figures > div {
    display: contents;
  }
  .hb-figures dd {
    grid-column: 1;
    font-size: clamp(26px, 19cqh, 48px);
    text-align: right;
  }
  .hb-figures dt {
    grid-column: 2;
    margin: 0;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .hb-numbers-line {
    display: none;
  }
}
@container (min-height: 236px) {
  .hb-numbers-line {
    display: block;
  }
}

/* ---------------------------------------------------------------- live edit */

.hb-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  /* A field, never an empty capsule: it keeps its width between phrases. */
  min-width: min(calc(100% - 24px), 150px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgb(13 13 15 / 82%);
  border: 1px solid rgb(255 255 255 / 16%);
  font-size: 12.5px;
  pointer-events: none;
}
/* The live tile is the first screen's highlight: on its big tile the field is a size up. */
@container (min-width: 340px) {
  .hb-pill {
    top: 16px;
    left: 16px;
    max-width: calc(100% - 32px);
    min-width: min(calc(100% - 32px), 190px);
    height: 38px;
    padding: 0 14px;
    gap: 8px;
    font-size: 14px;
  }
  .hb-caret {
    height: 17px;
  }
}
.hb-pill > svg {
  flex: none;
  color: var(--bento-accent);
}
.dark .hb-pill > svg {
  color: color-mix(in oklch, var(--bento-accent) 60%, white);
}
/* The words: their end (where the caret is) always shows; a phrase longer than the pill slides left, as a field does. */
.hb-typed {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
  margin-left: -8px;
  padding-left: 8px;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, #000 8px);
}
.hb-caret {
  flex: none;
  width: 2px;
  height: 15px;
  margin-left: 1px;
  background: var(--bento-accent);
}
.dark .hb-caret {
  background: color-mix(in oklch, var(--bento-accent) 55%, white);
}
/* The caret always shows; it blinks only while the tile plays. */
.hb-bento[data-play] .hb-caret {
  animation: bento-blink 1s step-end infinite;
  animation-play-state: paused;
}
.hb-bento[data-play="1"] .hb-caret {
  animation-play-state: running;
}
@keyframes bento-blink {
  50% {
    opacity: 0;
  }
}
.hb-frame {
  transition: opacity 0.32s ease;
}
.hb-frame:not([data-on]) {
  opacity: 0;
}
.hb-frame[data-back] {
  transition-duration: 0.25s;
}

/* ---------------------------------------------------------------- canvas: the board, drawn */

.hb-canvas {
  background-color: var(--media);
  background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px);
  background-size: 14px 14px;
}
/*
 * The board keeps its plan's shape (home-bento.tsx, BOARD: 260 x 88) and sits centred in the space above the tile's
 * words (the words take about 78 px at the foot of the tile).
 */
.hb-board {
  position: absolute;
  left: 50%;
  top: calc((100% - 78px) / 2);
  translate: -50% -50%;
  width: min(250px, 100% - 24px);
  aspect-ratio: 260 / 88;
  pointer-events: none;
}
@container (min-width: 440px) {
  .hb-board {
    width: 300px;
  }
}
.hb-node {
  position: absolute;
  display: block;
}
.hb-box {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 9px;
  background: #222228;
  border: 1px solid rgb(255 255 255 / 18%);
}
.hb-box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hb-box.hb-out {
  border-color: var(--bento-accent);
  box-shadow: 0 0 16px var(--bento-glow);
}
.hb-film-mark {
  position: absolute;
  right: 4px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgb(0 0 0 / 55%);
  color: #fff;
}
.hb-node-label {
  display: block;
  margin: 4px -10px 0;
  font-size: 10.5px;
  line-height: 1.2;
  color: rgb(255 255 255 / 82%);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-step {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 6px;
  border-radius: 7px;
  background: #222228;
  border: 1px solid rgb(255 255 255 / 18%);
  font-size: 10.5px;
  line-height: 1;
  color: rgb(255 255 255 / 88%);
  white-space: nowrap;
  overflow: hidden;
}
.hb-step > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.hb-step svg {
  flex: none;
  color: color-mix(in oklch, var(--bento-accent) 55%, white);
}
/* A narrow tile keeps the steps words whole: the icons step aside. */
@container (max-width: 259.98px) {
  .hb-step svg {
    display: none;
  }
}
/*
 * A short tile (from lg, the bottom row at 1024 x 768 to 1440 x 900) has about 66 px over its words: the board sits
 * from its top, a little smaller, the steps' words whole without their icons, and the two pictures keep to themselves
 * (the film's play mark and glow say which is which), so nothing reaches the edge or the title.
 */
@container (max-height: 200px) {
  .hb-board {
    top: 10px;
    translate: -50% 0;
    width: min(196px, 100% - 28px);
  }
  .hb-node-label,
  .hb-step svg {
    display: none;
  }
}
.hb-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.hb-edges path {
  fill: none;
  stroke: var(--bento-accent);
  stroke-width: 1.6;
  opacity: 0.6;
}
.dark .hb-edges path {
  stroke: color-mix(in oklch, var(--bento-accent) 70%, white);
}
.hb-bento[data-play] .hb-edges path {
  opacity: 1;
  stroke-dasharray: 4 5;
  animation: bento-flow 1.2s linear infinite;
  animation-play-state: paused;
}
.hb-bento[data-play="1"] .hb-edges path {
  animation-play-state: running;
}
@keyframes bento-flow {
  to {
    stroke-dashoffset: -18;
  }
}

/* ---------------------------------------------------------------- the line under the grid */

.hb-foot {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--muted-foreground);
}
/* From md: the note on the left, the way down in the middle, the pause button on the right. */
@media (min-width: 768px) {
  .hb-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

/*
 * "Start creating": the way down to the composer (ScrollCue, home-islands.tsx). In the foot row from md; its floating
 * copy rises in over the bottom of the screen while that row is under the fold, and goes once the page scrolls.
 */
.hb-cue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong, var(--border));
  background: color-mix(in oklch, var(--background) 82%, transparent);
  color: var(--foreground);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.hb-cue:hover {
  background: var(--background);
  border-color: color-mix(in oklch, var(--foreground) 35%, transparent);
}
.hb-cue:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.hb-cue-float {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: calc(var(--chrome-bottom) + 16px);
  height: 40px;
  /* Solid and in the page's text colour, so it reads over any picture under it. */
  border-color: transparent;
  background: var(--foreground);
  color: var(--background);
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)),
    visibility 0s linear 0.3s;
}
.hb-cue-float:hover {
  border-color: transparent;
  background: color-mix(in oklch, var(--foreground) 88%, var(--background));
}
.hb-cue-float[data-shown] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition:
    opacity 0.3s ease,
    transform 0.3s var(--ease-enter, cubic-bezier(0.08, 0.82, 0.17, 1)),
    visibility 0s;
}
/* Out of the way while a bar menu, the search or any dialog is open over the page. */
html:has([data-bar-scrim][data-open]) .hb-cue-float[data-shown],
html:has([role="dialog"]) .hb-cue-float[data-shown] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* The arrow dips three times as the floating copy arrives, then rests. */
.hb-cue-float[data-shown] .hb-cue-arrow {
  animation: hb-cue-dip 1.4s ease-in-out 0.3s 3;
}
@keyframes hb-cue-dip {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hb-cue-float,
  .hb-cue-float[data-shown] {
    transition: none;
  }
  .hb-cue-float[data-shown] .hb-cue-arrow {
    animation: none;
  }
}
@media (pointer: coarse) {
  .hb-cue-float {
    height: 44px;
  }
}

/* Reduced motion: whatever data-play says, nothing moves by itself, and a hover doesn't lift a tile. */
@media (prefers-reduced-motion: reduce) {
  .hb-tile,
  .hb-frame {
    transition: none;
  }
  .hb-bento .hb-release-slide .hb-fill,
  .hb-bento .hb-new-dot,
  .hb-bento .hb-caret,
  .hb-bento .hb-edges path {
    animation: none !important;
  }
}