/* FORMA launch website — the site moves like the software (9 Nov 2026). Loaded after cursor.css.
   The master timeline at the foot of the page, the formation tabs, the count-in, the opening and the rehearsal.
   Desktop only (a wide screen with a mouse or trackpad); phones, tablets and reduced motion see the site as it is. */

@media (min-width: 820px) and (hover: hover) and (pointer: fine) {
  html.has-motion .wrap { position: relative; z-index: 1; padding-bottom: 64px; }

  /* ── the master timeline (the app's transport and timeline rows, in one strip) ── */
  .mt { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 54px; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px;
    padding: 0 max(18px, env(safe-area-inset-right, 0px)) env(safe-area-inset-bottom, 0px) max(18px, env(safe-area-inset-left, 0px));
    background: rgba(12,13,16,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
    font: 500 11px/1 var(--mono); letter-spacing: .08em; color: var(--muted); transform: translateY(0); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
  .mt.is-hidden { transform: translateY(110%); }
  .mt-play { width: 28px; height: 24px; border: 0; border-radius: 6px; background: #2f6feb; color: #fff; font-size: 10px; display: grid; place-items: center; cursor: pointer; }
  .mt-play:hover { background: #3b7cf5; }
  .mt-play:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .mt-time { color: #c8ccd6; font-variant-numeric: tabular-nums; min-width: 9.5ch; }
  .mt-time small { display: block; margin-top: 5px; font-size: 8px; letter-spacing: .22em; color: #5c6372; }
  .mt-track { position: relative; height: 32px; min-width: 0; cursor: pointer; }
  .mt-music, .mt-played { position: absolute; left: 0; top: 5px; height: 6px; border-radius: 3px; }
  .mt-music { right: 0; background: rgba(31,143,95,.45); }
  .mt-played { width: 0; background: #22a06b; }
  .mt-head { position: absolute; top: 0; bottom: 0; width: 1px; margin-left: -.5px; background: rgba(241,243,247,.9); }
  .mt-head::before { content: ""; position: absolute; left: -5px; top: 3px; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #0C0D10; }
  .mt-dia, .mt-cue, .mt-note { position: absolute; top: 19px; padding: 0; border: 0; background: none; cursor: pointer; }
  .mt-dia { width: 9px; height: 9px; margin-left: -4.5px; background: #6366f1; transform: rotate(45deg); border-radius: 1px; }
  .mt-dia.is-on { background: var(--cyan); box-shadow: 0 0 10px rgba(43,217,228,.6); }
  .mt-dia:hover { background: #8b8df5; }
  .mt-dia:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
  .mt-cue { width: 6px; height: 6px; margin-left: -3px; top: 21px; background: #c084fc; border-radius: 1px; pointer-events: none; }
  .mt-note { width: 6px; height: 6px; margin-left: -3px; top: 21px; border-radius: 50%; background: #fbbf24; pointer-events: none; }
  .mt-tip { position: absolute; bottom: 36px; transform: translateX(-50%); padding: 5px 9px; border: 1px solid var(--line); border-radius: 6px; background: var(--raise); color: var(--paper); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .15s; pointer-events: none; }
  .mt-tip.is-on { opacity: 1; }
  /* the small stage: the cast in the formation the page is at, travelling on the counts */
  .mt-stage { display: block; width: 150px; height: 40px; border: 1px solid var(--line); border-radius: 6px; background: rgba(21,23,28,.6); }
  .mt-dur { color: var(--muted); font-variant-numeric: tabular-nums; }
  .mt-at { color: var(--muted); white-space: nowrap; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: .04em; font-size: 11.5px; }
  .mt-at b { color: var(--paper); font-weight: 500; }

  /* ── the formation tabs: the page's sections, numbered, the current one filled blue ── */
  .ft { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 12px 0 14px; background: linear-gradient(var(--ink) 78%, rgba(12,13,16,0)); }
  .ft button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #262b36; border-radius: 9px; background: #13161d; color: #e6e8ee; font: 400 13px/1 var(--body); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
  .ft button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4f7df3; }
  .ft button:hover { border-color: #3b4252; }
  .ft button.is-on { background: #2563eb; border-color: #2563eb; color: #fff; }
  .ft button.is-on::before { background: #fff; }
  .ft button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  /* ── the count-in: the app's count strip, bottom left, while a section arrives ── */
  .ci { position: fixed; left: max(18px, env(safe-area-inset-left, 0px)); bottom: 66px; z-index: 49; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(12,13,16,.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    font: 500 10.5px/1 var(--mono); letter-spacing: .12em; color: var(--muted); opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; pointer-events: none; }
  .ci.is-on { opacity: 1; transform: none; }
  .ci b { font: 300 15px/1 var(--display); color: var(--paper); letter-spacing: .04em; margin-right: 2px; }
  .ci i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); font: 500 9.5px/1 var(--mono); font-style: normal; color: #5c6372; transition: background .1s, color .1s, border-color .1s; }
  .ci i.is-on { background: var(--cyan); border-color: var(--cyan); color: #07080b; }
  .ci i.is-done { color: var(--paper); border-color: #3a414e; }
  .ci span { margin-left: 4px; text-transform: uppercase; color: var(--paper); }

  /* the words of a heading step in on the counts */
  .ft-w { display: inline-block; transition: opacity .35s, transform .35s, filter .35s; }
  .ft-w.is-wait { opacity: 0; transform: translateY(8px); filter: blur(4px); }

  /* ── the opening: the wordmark settles, the rule sweeps like the playhead, the menu and the hero fade up ── */
  html.is-opening .logo img { animation: op-logo .7s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes op-logo { from { opacity: 0; transform: scale(1.06); filter: blur(6px); } to { opacity: 1; transform: none; filter: blur(0); } }
  html.is-opening header.masthead .rule { transform-origin: left; animation: op-rule .8s .15s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes op-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  html.is-opening nav.top > a { animation: op-up .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 60ms); }
  html.is-opening .hero-site > * { animation: op-up .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.5s + var(--i, 0) * 80ms); }
  html.is-opening .mt { animation: op-up .6s .9s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes op-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
