/* Hero film. Noor builds Crumb, a recipe app. At a bakery café, the head baker
   says something that sticks; Noor jots it on the iPhone. In Thursday's product
   review the team finds where new cooks quit, and Noor quick-captures an idea on
   the Mac. That afternoon, starting a task in an agent tool, the meeting thought
   comes back; one click shows it beside the café thought in Spool, and Noor writes
   a prompt of their own built from both.
   Everything is drawn in a fixed 1280×720 "world"; hero.js moves a camera over it
   and names one thing to watch (data-spot) so the rest of the frame dims.
   Without JS, or with Reduce Motion, the world holds one still frame. */
.hf {
  --hf-wall-a: #dfe2ea; --hf-wall-b: #c9cdd8;
  --hf-street: rgba(60,64,80,0.10); --hf-block: rgba(60,64,80,0.05); --hf-park: rgba(85,160,102,0.16);
  --hf-meet: #1f2024; --hf-meet-tile: #2c2d33; --hf-meet-fg: #f2f2f7;
  --hf-tint: 13%;
  --hf-crumb: #c9822e; --hf-crumb-glyph: #b26f1f;
  --hf-home-glyph: var(--home); --hf-trip-glyph: #3f7fc9;
  position: relative; width: 100%; aspect-ratio: 16 / 10; border-radius: 22px; overflow: hidden;
  background: var(--desk); isolation: isolate;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hf {
    --hf-wall-a: #2b2d36; --hf-wall-b: #1d1e24;
    --hf-street: rgba(255,255,255,0.08); --hf-block: rgba(255,255,255,0.03); --hf-park: rgba(85,160,102,0.14);
    --hf-tint: 22%; --hf-crumb-glyph: #e09a45; --hf-trip-glyph: #6ea3e6;
  }
}
:root[data-theme="dark"] .hf {
  --hf-wall-a: #2b2d36; --hf-wall-b: #1d1e24;
  --hf-street: rgba(255,255,255,0.08); --hf-block: rgba(255,255,255,0.03); --hf-park: rgba(85,160,102,0.14);
  --hf-tint: 22%; --hf-crumb-glyph: #e09a45; --hf-trip-glyph: #6ea3e6;
}
@media (max-width: 640px) { .hf { aspect-ratio: 4 / 5; } }

.hf-world {
  position: absolute; left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0;
  transform: translate(var(--hf-tx, 0px), var(--hf-ty, 0px)) scale(var(--hf-k, 1));
  color: var(--fg); font-size: 14px; line-height: 1.35;
}
/* Still-frame camera without JS (hero.js overrides these inline once it runs).
   Matches hero.js's "still" shot: k is stepped by width, the offsets scale with the stage width W. */
.hf-world { --hf-w: min(1040px, 100vw - 40px); }
@media (min-width: 641px) {
  .hf-world { --hf-tx: calc(var(--hf-w) * -0.05); --hf-ty: calc(var(--hf-w) * 0.014); --hf-k: .5; }
}
@media (min-width: 760px) { .hf-world { --hf-k: .595; } }
@media (min-width: 900px) { .hf-world { --hf-k: .711; } }
@media (min-width: 1000px) { .hf-world { --hf-k: .793; } }
@media (min-width: 1080px) { .hf-world { --hf-k: .859; } }
@media (max-width: 640px) {
  .hf-world { --hf-tx: calc(var(--hf-w) * -1.739); --hf-ty: calc(var(--hf-w) * -0.027); --hf-k: .652; }
}
@media (max-width: 640px) and (min-width: 360px) { .hf-world { --hf-k: .696; } }
@media (max-width: 640px) and (min-width: 390px) { .hf-world { --hf-k: .761; } }
@media (max-width: 640px) and (min-width: 430px) { .hf-world { --hf-k: .848; } }
@media (max-width: 640px) and (min-width: 500px) { .hf-world { --hf-k: 1; } }
@media (max-width: 640px) and (min-width: 570px) { .hf-world { --hf-k: 1.152; } }
.hf.is-live .hf-world { transition: transform 1.4s cubic-bezier(.55,0,.2,1), opacity .6s ease; }
.hf * { box-sizing: border-box; }
.hf svg { display: block; }
.hf-g { width: 13px; height: 13px; flex: none; }
.hf-g.crumb { color: var(--hf-crumb-glyph); } .hf-g.home { color: var(--hf-home-glyph); } .hf-g.trip { color: var(--hf-trip-glyph); }

/* ---------- Scene 1: the bakery café ---------- */
.hf-map { position: absolute; left: 0; top: 0; width: 640px; height: 720px; }
.hf-map .st { stroke: var(--hf-street); fill: none; stroke-linecap: round; }
.hf-map .bk { fill: var(--hf-block); }
.hf-map .pk { fill: var(--hf-park); }
.hf-pin { position: absolute; left: 300px; top: 16px; display: flex; align-items: center; gap: 8px; transform-origin: 14px 100%; }
.hf-pin .dot { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.hf-pin .dot svg { transform: rotate(45deg); color: var(--ink-on); }
.hf-pin .lbl { font-weight: 600; font-size: 15px; padding: 6px 12px; border-radius: 999px; background: var(--window); box-shadow: 0 4px 14px rgba(0,0,0,.12); white-space: nowrap; }

/* Someone talking, in the world (not on a screen) */
.hf-say { position: absolute; display: flex; gap: 10px; align-items: flex-end; }
.hf-say .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 15px; color: #fff; flex: none; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.hf-say .bub { position: relative; padding: 11px 15px 12px; border-radius: 18px 18px 18px 6px; background: var(--window); box-shadow: 0 10px 30px rgba(20,20,30,.16); font-size: 16px; line-height: 1.35; }
.hf-say .who { display: block; font-size: 12px; font-weight: 600; color: var(--fg-2); margin-bottom: 3px; }
.hf-rosa { left: 468px; top: 40px; width: 320px; flex-direction: column; align-items: flex-start; gap: 8px; }
.hf-rosa .fig { width: 112px; height: 126px; border-radius: 16px; box-shadow: 0 10px 28px rgba(20,20,30,.16); }
.hf-rosa .bub { border-radius: 6px 18px 18px 18px; }

/* The iPhone */
.hf-phone {
  position: absolute; left: 150px; top: 66px; width: 300px; height: 620px; border-radius: 54px; padding: 10px;
  background: #111214; box-shadow: 0 30px 70px rgba(20,20,30,.28), inset 0 0 0 1.5px #3a3b40; transition: opacity .9s ease, filter .9s ease;
}
.hf-screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--window); display: flex; flex-direction: column; }
.hf-island { position: absolute; left: 50%; top: 11px; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.hf-status { display: flex; justify-content: space-between; align-items: center; padding: 16px 26px 6px 30px; font-weight: 600; font-size: 14px; }
.hf-status .icons { display: flex; gap: 5px; align-items: center; }
.hf-status .icons i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.hf-status .batt { width: 22px; height: 11px; border-radius: 3px; border: 1.3px solid currentColor; padding: 1px; opacity: .9; }
.hf-status .batt::after { content: ""; display: block; height: 100%; width: 72%; background: currentColor; border-radius: 1px; }
.hf-pills { display: flex; gap: 4px; padding: 8px 12px 10px; overflow: hidden; border-bottom: 1px solid var(--hair); }
.hf-pill { display: flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--fg-2); white-space: nowrap; background: var(--fill); }
.hf-pill.on { background: var(--fg); color: var(--window); font-weight: 600; }
.hf-stream { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 10px 12px; overflow: hidden; }
.hf-when { text-align: center; font-size: 11px; font-weight: 600; color: var(--fg-2); padding: 8px 0 3px; }
.hf-b {
  position: relative; align-self: flex-end; max-width: 88%; padding: 8px 30px 8px 13px; border-radius: 18px; font-size: 15px; color: var(--fg);
  background: var(--bubble);
}
.hf-b > .hf-g { position: absolute; right: 10px; bottom: 9px; }
.hf-b.crumb { background: color-mix(in srgb, var(--hf-crumb) var(--hf-tint), var(--window)); }
.hf-b.home { background: color-mix(in srgb, var(--home) var(--hf-tint), var(--window)); }
.hf-b.trip { background: color-mix(in srgb, var(--work) var(--hf-tint), var(--window)); }
.hf-receipt { align-self: flex-end; display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--fg-2); padding: 1px 4px 0 0; }
.hf-receipt b { color: var(--fg); font-weight: 500; }
.hf-receipt u { color: var(--fg); font-weight: 600; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent); }
.hf-composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 12px 26px; }
.hf-field { flex: 1; min-height: 36px; padding: 8px 14px; border-radius: 18px; background: var(--fill); font-size: 15px; color: var(--fg); }
.hf-field:empty::before { content: "Thought"; color: var(--fg-3); }
.hf-send { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--fill); color: var(--fg-3); transition: background-color .2s, color .2s, transform .15s; }
.hf-send.ready { background: var(--ink); color: var(--ink-on); }
.hf-send.press { transform: scale(.86); }
.hf-home-ind { position: absolute; left: 50%; bottom: 8px; width: 110px; height: 4px; margin-left: -55px; border-radius: 3px; background: var(--fg); opacity: .8; }
.hf .typing::after { content: ""; display: inline-block; width: 2px; height: 1.1em; margin-left: 1px; vertical-align: -.2em; background: var(--ink); animation: hf-caret 1s steps(1) infinite; }

/* What Spool kept with the thought */
.hf-kept { position: absolute; left: 470px; top: 330px; display: grid; gap: 8px; justify-items: start; }
.hf-chip {
  display: flex; align-items: center; gap: 8px; padding: 9px 14px 9px 11px; border-radius: 14px; background: var(--window);
  box-shadow: 0 8px 24px rgba(20,20,30,.12), 0 0 0 .5px color-mix(in srgb, var(--fg) 10%, transparent);
  font-size: 15px; font-weight: 500; white-space: nowrap; transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.hf-chip svg { width: 16px; height: 16px; color: var(--fg-2); flex: none; }
.hf-chip .hf-g { width: 16px; height: 16px; }

/* ---------- Scenes 2 and 3: the Mac ---------- */
.hf-mac {
  position: absolute; left: 520px; top: 30px; width: 730px; height: 660px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(160deg, var(--hf-wall-a), var(--hf-wall-b)); box-shadow: 0 30px 80px rgba(20,20,30,.22), 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
  transition: opacity .9s ease;
}
.hf-menubar { height: 28px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 0 16px; font-size: 13px; font-weight: 500; background: color-mix(in srgb, var(--window) 55%, transparent); }
.hf-menubar .clock { font-variant-numeric: tabular-nums; display: inline-grid; }
.hf-menubar .clock span { grid-area: 1 / 1; text-align: right; transition: opacity .5s ease; }
.hf-menubar .ic { width: 15px; height: 10px; border-radius: 2px; border: 1.3px solid currentColor; opacity: .7; }
.hf-win {
  position: absolute; left: 36px; top: 64px; width: 500px; height: 450px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 22px 60px rgba(20,20,30,.28), 0 0 0 .5px rgba(0,0,0,.2); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.8,.2,1);
  display: flex; flex-direction: column;
}
.hf-tb { height: 38px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.hf-lights { display: flex; gap: 7px; }
.hf-lights i { width: 11px; height: 11px; border-radius: 50%; display: block; background: #ff5f57; }
.hf-lights i:nth-child(2) { background: #febc2e; } .hf-lights i:nth-child(3) { background: #28c840; }

/* A video meeting, no brand */
.hf-meet { background: var(--hf-meet); color: var(--hf-meet-fg); }
.hf-meet .hf-tb { justify-content: space-between; }
.hf-meet .hf-tb .t { flex: 1; text-align: center; margin-right: 46px; }
.hf-tiles { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; padding: 4px 12px 8px; }
.hf-tile { position: relative; border-radius: 10px; background: var(--hf-meet-tile); display: grid; place-items: end center; padding-bottom: 36px; transition: box-shadow .4s ease; }
.hf-tile .av { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: #fff; }
.hf-tile .nm { position: absolute; left: 10px; bottom: 8px; font-size: 12px; font-weight: 500; padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.35); }
.hf-tile.talking { box-shadow: inset 0 0 0 2.5px #5fd38a; }
.hf-tile .say {
  position: absolute; left: 10px; right: 10px; top: 10px; padding: 8px 11px; border-radius: 12px 12px 12px 4px;
  background: #fff; color: #1c1c1e; font-size: 13.5px; line-height: 1.3; font-weight: 500; box-shadow: 0 6px 18px rgba(0,0,0,.35);
  transition: opacity .4s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.hf-tile.hf-slide { background: #f4f1ea; color: #2a2620; display: grid; align-content: start; gap: 6px; padding: 12px 14px; place-items: stretch; }
.hf-slide b { font-size: 12.5px; }
.hf-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; }
.hf-bars i { flex: 1; border-radius: 3px 3px 0 0; background: #c9822e; opacity: .85; }
.hf-bars i.drop { background: #d9534f; opacity: 1; }
.hf-slide small { display: flex; justify-content: space-between; font-size: 10.5px; color: #6d655a; }
.hf-ctrl { flex: none; display: flex; justify-content: center; gap: 12px; padding: 4px 0 14px; }
.hf-ctrl i { width: 38px; height: 38px; border-radius: 50%; background: var(--hf-meet-tile); display: grid; place-items: center; }
.hf-ctrl i svg { width: 16px; height: 16px; color: var(--hf-meet-fg); }
.hf-ctrl i.leave { width: 64px; border-radius: 19px; background: #e5484d; }

/* Spool's quick capture box (⌃⌥N), floating over whatever app is in front */
.hf-qc {
  position: absolute; left: 90px; top: 400px; width: 500px; padding: 13px 15px; border-radius: 16px; display: grid; gap: 9px;
  background: var(--peek); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 .5px color-mix(in srgb, var(--fg) 12%, transparent);
  transition: opacity .35s ease, transform .5s cubic-bezier(.2,.8,.2,1);
}
.hf-qc .row { display: flex; gap: 10px; align-items: flex-start; }
.hf-qc .mk { width: 22px; height: 22px; flex: none; margin-top: 1px; border-radius: 5px; }
.hf-qc .f { flex: 1; font-size: 16px; min-height: 22px; }
.hf-qc .f:empty::before { content: "Thought"; color: var(--fg-3); }
.hf-qc .ctx { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--fg-2); padding-left: 32px; }
.hf-qc .ctx span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; background: var(--fill); }
.hf-qc .ctx svg { width: 11px; height: 11px; }
.hf-qc .hf-receipt { justify-self: start; padding-left: 32px; }

/* An agent tool, no brand */
.hf-agent { background: var(--window); }
.hf-agent .hf-tb { background: var(--bg-soft); border-bottom: 1px solid var(--hair); padding-right: 0; gap: 10px; }
.hf-tab { align-self: flex-end; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border-radius: 8px 8px 0 0; background: var(--window); font-weight: 500; font-size: 13px; }
.hf-tab .mk { width: 14px; height: 14px; border-radius: 4px; background: var(--fg); display: grid; place-items: center; }
.hf-tab .mk::after { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid var(--window); }
.hf-agent-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; }
.hf-agent h4 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.hf-ask { border-radius: 14px; border: 1px solid var(--hair); padding: 12px 14px 16px; font-size: 15px; line-height: 1.4; min-height: 132px; background: var(--window); transition: box-shadow .5s ease, border-color .5s ease; }
.hf-ask:empty::before { content: "Describe a task"; color: var(--fg-3); }
.hf-steps { display: grid; gap: 9px; font-size: 14px; color: var(--fg-2); }
.hf-steps div { display: flex; align-items: center; gap: 9px; transition: opacity .4s ease; }
.hf-steps div::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--fg-3); flex: none; }
.hf-steps div.on { color: var(--fg); }
.hf-steps div.on::before { border-color: var(--fg); border-right-color: transparent; animation: hf-spin .9s linear infinite; }

/* Spool's Mac window, opened from the card: the thought in its train, with where each came from */
.hf-sw {
  position: absolute; left: 130px; top: 60px; width: 450px; height: 430px; border-radius: 12px; overflow: hidden; background: var(--window);
  box-shadow: 0 26px 70px rgba(20,20,30,.35), 0 0 0 .5px rgba(0,0,0,.2); display: flex; flex-direction: column;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
}
.hf-sw .hf-tb { border-bottom: 1px solid var(--hair); gap: 10px; }
.hf-sw .hf-pills { border: 0; padding: 0; }
.hf-sw .hf-pill { padding: 4px 10px; font-size: 12px; }
.hf-sw .hf-stream { gap: 6px; padding: 12px 14px 16px; }
.hf-sw .hf-b { font-size: 14.5px; max-width: 92%; }
.hf-ctxline { align-self: flex-end; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg-2); padding-right: 4px; }
.hf-ctxline svg { width: 12px; height: 12px; }
.hf-b.lit { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 50%, transparent); }

/* The Spool card at the screen edge */
.hf-handle { position: absolute; right: 0; top: 120px; width: 6px; height: 72px; border-radius: 6px 0 0 6px; background: color-mix(in srgb, var(--window) 80%, transparent); }
.hf-peek {
  position: absolute; right: 16px; top: 90px; width: 272px; padding: 13px 15px 12px; border-radius: 14px; display: grid; gap: 7px;
  background: var(--peek); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 18px 44px rgba(0,0,0,.28), 0 0 0 .5px color-mix(in srgb, var(--fg) 10%, transparent);
  transition: transform .75s cubic-bezier(.2,.9,.25,1), opacity .4s ease, box-shadow .6s ease;
}
.hf-peek .moment { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.hf-peek .moment svg { width: 14px; height: 14px; flex: none; }
.hf-peek .t { font-size: 15px; font-weight: 500; line-height: 1.3; }
.hf-peek .why { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--fg-2); }
.hf-peek .why .hf-g { width: 12px; height: 12px; display: inline-block; vertical-align: -2px; margin-right: 3px; }
.hf-peek .done { padding: 4px 11px; border-radius: 999px; background: var(--fill); color: var(--fg); font-weight: 500; flex: none; }
.hf-peek .timer { height: 3px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.hf-peek .timer::after { content: ""; display: block; height: 100%; width: 55%; border-radius: 2px; background: var(--ink); }
.hf.is-live .hf-peek.in .timer::after { animation: hf-drain 9s linear .6s both; }

.hf-scrim { position: absolute; inset: 0; background: rgba(12,12,22,.42); opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.hf-cursor { position: absolute; left: 470px; top: 560px; width: 22px; height: 22px; transition: left 1.1s cubic-bezier(.45,0,.2,1), top 1.1s cubic-bezier(.45,0,.2,1), opacity .3s, transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.hf-cursor.press { transform: scale(.85); }

/* Pause control (WCAG 2.2.2) */
.hf-pause {
  position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: none; place-items: center; color: var(--fg); background: color-mix(in srgb, var(--window) 78%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.hf.has-motion .hf-pause { display: grid; }
.hf-pause svg { width: 14px; height: 14px; }
.hf-pause .play, .hf.is-paused .hf-pause .pause { display: none; }
.hf.is-paused .hf-pause .play { display: block; }

/* ---------- The still frame (no .is-live): the café thought on the phone; the agent with Noor's prompt and the card ---------- */
.hf:not(.is-live) .hf-rosa, .hf:not(.is-live) .hf-kept, .hf:not(.is-live) .hf-meet,
.hf:not(.is-live) .hf-qc, .hf:not(.is-live) .hf-sw, .hf:not(.is-live) .hf-cursor { display: none; }
.hf:not(.is-live) .hf-clock-a { opacity: 0; }

/* ---------- The film: hero.js steps through these classes ---------- */
.hf.is-live .hf-pin { opacity: 0; }
.hf.is-live.s-place .hf-pin { opacity: 1; animation: hf-drop .6s cubic-bezier(.3,1.4,.5,1) both; }
.hf.is-live .hf-rosa { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
.hf.is-live.s-talk .hf-rosa { opacity: 1; transform: none; }
.hf.is-live:not(.s-sent) .hf-new, .hf.is-live:not(.s-filed) .hf-new-receipt { display: none; }
.hf.is-live.s-sent .hf-new { animation: hf-send .5s cubic-bezier(.2,.8,.2,1) both; }
.hf.is-live:not(.s-filed) .hf-new { background: var(--bubble); }
.hf.is-live:not(.s-filed) .hf-new > .hf-g { opacity: 0; }
.hf.is-live.s-filed .hf-new-receipt { animation: hf-fade .5s ease both; }
.hf.is-live .hf-chip { opacity: 0; transform: translateX(-18px); }
.hf.is-live.s-kept .hf-chip { opacity: 1; transform: none; }
.hf.is-live.s-kept .hf-chip:nth-child(2) { transition-delay: .12s; }
.hf.is-live.s-kept .hf-chip:nth-child(3) { transition-delay: .24s; }

.hf.is-live:not(.s-mac) .hf-mac { opacity: 0; }
.hf.is-live .hf-map, .hf.is-live .hf-kept, .hf.is-live .hf-pin { transition: opacity .7s ease; }
.hf.is-live.s-mac .hf-map, .hf.is-live.s-mac .hf-kept, .hf.is-live.s-mac .hf-pin, .hf.is-live.s-mac .hf-rosa { opacity: 0; }
.hf.is-live.s-mac .hf-phone { opacity: .4; filter: saturate(.6); }

.hf.is-live .hf-tile .say { opacity: 0; transform: translateY(8px) scale(.96); }
.hf.is-live .hf-tile .say.on { opacity: 1; transform: none; }
.hf.is-live .hf-qc { opacity: 0; transform: translateY(14px) scale(.97); }
.hf.is-live.s-qc .hf-qc { opacity: 1; transform: none; }
.hf.is-live:not(.s-qcfiled) .hf-qc .hf-receipt { display: none; }
.hf.is-live.s-qcfiled .hf-qc .hf-receipt { animation: hf-fade .5s ease both; }

.hf.is-live .hf-agent { opacity: 0; transform: translateY(26px) scale(.98); }
.hf.is-live.s-agent .hf-agent { opacity: 1; transform: none; }
.hf.is-live.s-agent .hf-meet { opacity: 0; transform: scale(.97); }
.hf.is-live:not(.s-agent) .hf-clock-b, .hf.is-live.s-agent .hf-clock-a { opacity: 0; }
.hf.is-live .hf-peek { transform: translateX(300px); }
.hf.is-live .hf-peek.in { transform: none; }
.hf.is-live .hf-peek.press { transform: scale(.97); }
.hf.is-live .hf-sw { opacity: 0; transform: translateY(16px) scale(.97); }
.hf.is-live.s-sw .hf-sw { opacity: 1; transform: none; }
.hf.is-live .hf-cursor { opacity: 0; }
.hf.is-live.s-cursor .hf-cursor { opacity: 1; }
.hf.is-live .hf-steps div { opacity: 0; }
.hf.is-live .hf-steps div.show { opacity: 1; }
.hf.is-live.s-fade .hf-world { opacity: 0; }

/* Spotlight: one thing to watch; the rest of the frame steps back */
.hf.is-live .hf-pills, .hf.is-live .hf-stream > *, .hf.is-live .hf-composer, .hf.is-live .hf-tile { transition: opacity .7s ease, box-shadow .6s ease, background-color .6s ease; }
.hf[data-spot="talk"] .hf-phone { opacity: .55; }
.hf[data-spot="talk"] .hf-map { opacity: .5; }
.hf[data-spot="composer"] .hf-screen .hf-pills, .hf[data-spot="composer"] .hf-screen .hf-stream > *,
.hf[data-spot="bubble"] .hf-screen .hf-pills, .hf[data-spot="bubble"] .hf-screen .hf-stream > :not(.hf-new):not(.hf-new-receipt), .hf[data-spot="bubble"] .hf-screen .hf-composer,
.hf[data-spot="kept"] .hf-screen .hf-pills, .hf[data-spot="kept"] .hf-screen .hf-stream > :not(.hf-new):not(.hf-new-receipt), .hf[data-spot="kept"] .hf-screen .hf-composer { opacity: .28; }
.hf[data-spot="composer"] .hf-rosa { opacity: .45; }
.hf[data-spot="bubble"] .hf-rosa, .hf[data-spot="kept"] .hf-rosa { opacity: 0; }
.hf[data-spot="bubble"] .hf-new, .hf[data-spot="kept"] .hf-new { box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-crumb) 45%, transparent); }
.hf[data-spot="dana"] .hf-tile:not(.t-dana), .hf[data-spot="sam"] .hf-tile:not(.t-sam):not(.hf-slide) { opacity: .45; }
.hf[data-spot="qc"] .hf-scrim, .hf[data-spot="peek"] .hf-scrim, .hf[data-spot="sw"] .hf-scrim { opacity: 1; }
.hf[data-spot="peek"] .hf-peek { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 55%, transparent), 0 24px 60px rgba(0,0,0,.4); }
.hf[data-spot="ask"] .hf-ask { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 22%, transparent); }

@keyframes hf-caret { 50% { opacity: 0; } }
@keyframes hf-drain { from { width: 100%; } to { width: 12%; } }
@keyframes hf-spin { to { transform: rotate(360deg); } }
@keyframes hf-drop { from { opacity: 0; transform: translateY(-24px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes hf-send { from { opacity: 0; transform: translateY(24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes hf-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .hf *, .hf .hf-world { transition: none !important; animation: none !important; }
}
