/* The mascot (the ℧ with legs) holds the rotating word up.
   The line "<word> is you" stays centred as text and slides as the word changes;
   the mascot stays where it stands under "Mho"; the buttons sit below, centred. */
.stage { position: relative; width: 100%; font-size: clamp(30px, 6.6vw, 100px); }
.stage h1 { font-size: inherit; position: relative; width: 100%; padding-bottom: 1.3em; }
/* Stacked, as wide as "is you", left edge on its left edge, centred on the mascot's height. */
.stage .doors {
  position: absolute;
  left: var(--doors-x, 50%);
  width: var(--doors-w, auto);   /* as wide as "is you" */
  top: 1.8em;
  transform: translateY(-50%);
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 8px;
}
.stage .door { background: transparent; text-align: center; padding: 13px 20px; font-size: 17px; border-radius: 12px; border-width: 1.5px; }
/* Both outlined: the headline leads, the log-ins stay quiet. */
.stage .door.primary { background: transparent; color: var(--mho-deep); border-color: var(--line); }
.stage .door.primary:hover, .stage .door:hover { border-color: var(--mho); background: transparent; color: var(--mho-deep); }
@media (max-width: 640px) {
  .stage { font-size: clamp(30px, 9vw, 44px); }
  .stage .doors { position: static; transform: none; width: auto; flex-direction: row; justify-content: center; margin-top: 0.3em; }
  .stage .door { padding: 12px 28px; font-size: 16px; }
}
.mascot {
  position: absolute;
  left: var(--mascot-x, 50%);
  top: 1.18em;
  width: 1.05em;
  height: 1.05em;
  transform: translateX(-50%);
  overflow: visible;
}
.mascot .arms { fill: none; stroke: var(--mho); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.mascot .leg { fill: none; stroke: var(--mho); stroke-width: 5.5; stroke-linecap: round; }

/* When Mho lands, the arms bend under it (hands drop, elbows give) and push it back up.
   Other words land without it. */
h1.catch .mascot .arms { animation: bend 0.55s cubic-bezier(0.3, 0.6, 0.3, 1); }
h1.catch .window { animation: dip 0.55s cubic-bezier(0.3, 0.6, 0.3, 1); }
@keyframes bend {
  0%, 100% { d: path("M14 25 L35 25 C 23 32, 19 43, 19 54 A 31 31 0 0 0 81 54 C 81 43, 77 32, 65 25 L86 25"); }
  35% { d: path("M17 35 L36 31 C 25 37, 21 46, 21 56 A 29 29 0 0 0 79 56 C 79 46, 75 37, 64 31 L83 35"); }
}
@keyframes dip { 0%, 100% { transform: translateY(0); } 35% { transform: translateY(0.09em); } }
@media (prefers-reduced-motion: reduce) { h1.catch .mascot .arms, h1.catch .window { animation: none; } }
