
  /* ── language toggle (EN · RU) ─────────────────────────────────────────
     A flat pill in the hero's top-right corner, the same material as the
     ambient-audio toggle: #F2F2F2 fill, 1px #EBEBEB hairline, fully rounded,
     no hover lift / shadow. It carries two segments — EN · RU — with the active
     language inked solid and the other dimmed; a tap flips them. Fixed so the
     guest can switch language from anywhere on the page; it fades in with the
     hero exactly like the nav. */
  .lang-dock{
    position: fixed;
    --m: clamp(18px, 2.4vw, 30px);
    /* clear the notch / rounded corners on phones (env() is 0 elsewhere) and the
       same top offset the nav uses, so the pill lines up with the nav baseline */
    top:   max(clamp(20px, 3.4vh, 36px), env(safe-area-inset-top));
    right: max(var(--m), env(safe-area-inset-right));
    z-index: 4;
    opacity: 0;
    filter: blur(7px);
    transform: translateY(-6px);
    transition: opacity .85s ease, filter .9s ease,
                transform .9s cubic-bezier(.2,.7,.2,1);
  }
  body.revealed .lang-dock{ opacity: 1; filter: blur(0); transform: none; transition-delay: .5s; }
  body.instant  .lang-dock{ opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }

  .lang-toggle{
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .42em;
    height: 36px;
    padding: 0 13px;
    border: 1px solid #EBEBEB;
    border-radius: 999px;
    background: #F2F2F2;
    cursor: pointer;
    pointer-events: auto;
    font-family: 'Archivo', system-ui, sans-serif;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
    transition: transform .18s ease;
  }
  .lang-toggle:active{ transform: scale(.92); }
  .lang-toggle:focus-visible{ outline: 2px solid rgba(11,11,12,.45); outline-offset: 3px; }

  /* the two language codes + the middot divider */
  .lang-toggle .lang-seg{
    color: rgba(11,11,12,.34);
    font-weight: 500;
    transition: color .4s ease, font-weight .4s ease;
  }
  .lang-toggle .lang-div{
    color: rgba(11,11,12,.26);
    font-weight: 400;
    transform: translateY(-.04em);
  }
  /* default = EN active; .is-ru flips the emphasis */
  .lang-toggle .lang-en{ color: var(--ink); font-weight: 700; }
  .lang-toggle.is-ru .lang-en{ color: rgba(11,11,12,.34); font-weight: 500; }
  .lang-toggle.is-ru .lang-ru{ color: var(--ink); font-weight: 700; }

  /* touch: invisible hit-expander so the small pill is a comfortable ≥44px target */
  @media (pointer: coarse){
    .lang-toggle::after{ content:""; position:absolute; inset:-7px; }
  }

  @media (max-width: 560px){
    .lang-toggle{ height: 33px; padding: 0 11px; font-size: 10px; }
  }

  @media (prefers-reduced-motion: reduce){
    .lang-dock{ transition: opacity .2s ease; transform: none; }
    .lang-toggle, .lang-toggle .lang-seg{ transition: none; }
  }
