/* The Abeel leaf in Abeel Motion's lab (tools/build_motion.py, from brand/studio-leaf/). Scoped to .abeel-leaf. */
.abeel-leaf { --ink: #111110; --white: #fafaf7; --red: #e1251b; --lilac: #a99df0; --lime: #d3d23b;
  --leaf: var(--red); --ground: var(--lilac); --catkin: var(--lime); width: 100%; height: 100%; }
.abeel-leaf .scene { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px;
  background: var(--ground); perspective: 500px; container-type: inline-size; }
.abeel-leaf .tag { position: absolute; top: 4cqw; left: 4cqw; z-index: 2; background: var(--red); color: var(--white);
  padding: .8cqw 2cqw; font-size: 3.8cqw; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.abeel-leaf .branch { position: absolute; left: 104%; top: 25%; width: 0; height: 0; transform-origin: 0 0; }
.abeel-leaf .twig { position: absolute; left: -100cqw; top: -14cqw; width: 106cqw; height: 32cqw; overflow: visible; }
.abeel-leaf .twig .wood, .abeel-leaf .twig .bud { fill: var(--ink); }
.abeel-leaf .twig .seam { fill: none; stroke: var(--white); stroke-width: .3; stroke-linecap: round; opacity: .85; }
.abeel-leaf .node { position: absolute; width: 0; height: 0; perspective: 500px; }
.abeel-leaf .pivot { position: absolute; left: 0; top: 0; aspect-ratio: 124 / 148; transform-origin: 50% 0; transform-style: preserve-3d; }
.abeel-leaf .pivot.big { width: 50cqw; margin-left: -25cqw; }
.abeel-leaf .pivot.small { width: 21cqw; margin-left: -10.5cqw; }
.abeel-leaf .catkin { position: absolute; left: -3cqw; top: -1cqw; width: 6cqw; height: 19.6cqw; transform-origin: 50% 1cqw; }
.abeel-leaf .catkin .seg2 { position: absolute; left: 0; top: 17.2cqw; width: 6cqw; height: 19cqw; transform-origin: 50% 1cqw; }
.abeel-leaf .catkin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.abeel-leaf .catkin .outline circle { fill: var(--ink); stroke: var(--ink); stroke-width: 1.1; }
.abeel-leaf .catkin .fill circle { fill: var(--catkin); }
.abeel-leaf .catkin .tick { fill: none; stroke: var(--ink); stroke-width: .32; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }
.abeel-leaf .catkin .anther { fill: var(--red); }
.abeel-leaf .catkin .cap { fill: var(--ink); }
.abeel-leaf .leaf { position: absolute; inset: 0; transform-origin: 50% 0; transform-style: preserve-3d; }
.abeel-leaf .face { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: var(--leaf);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.abeel-leaf .face.back { transform: rotateY(180deg); fill: none; }

/* Abeel's two additions to Grisha's header (the founder, 18 Nov 2026), both from this file and its script, so his
   build is not touched.
   1. The language switch shows both languages, the page's own heavier: his build shows only the other one, and on the
      English page a lone "RU" "is frightening". The page's own language is written beside the link's own text. */
header a[href="/motion/ru/"], header a[href="/motion/"] { display: inline-flex !important; width: auto !important;
  align-items: center; gap: .34em; padding: 0 .85em; font-weight: 500 !important; white-space: nowrap; }
html[lang="en"] header a[href="/motion/ru/"]::before { content: "EN /"; font-weight: 800; }
html[lang="ru"] header a[href="/motion/"]::after { content: "/ RU"; font-weight: 800; }
/* (on a phone the header has no room to spare: the two languages stand one over the other in the round button) */
@media (max-width: 520px) {
  header a[href="/motion/ru/"], header a[href="/motion/"] { flex-direction: column; justify-content: center; width: 2.25rem !important;
    padding: 0; gap: 2px; font-size: 9px !important; line-height: 1 !important; }
  html[lang="en"] header a[href="/motion/ru/"]::before { content: "EN"; }
  html[lang="ru"] header a[href="/motion/"]::after { content: "RU"; }
}
/* 2. The way to Abeel Studio (his page had none): a button "Studio" in the header itself, of the same make as his
      own "Work" and "Contact" (leaf.js copies their classes), standing after them. The founder, 18 Nov 2026: a pill
      "← Abeel Studio" beside the header "urges one to hurry back to the main site", "I would simply put a button
      Studio into the header". (That pill also could not be clicked on a wide window: it lay under the header's
      full-width box.) A phone's header has no room for one more word at the usual spacing: there the text links stand
      closer, and on the narrowest phones "Contact" steps out, as his own build already does under 360 px ("Message"
      beside it stays; the Russian words are longer, so there it happens sooner). */
header nav > a[target="_blank"] { white-space: nowrap; }
@media (max-width: 430px) {
  header nav > a[href^="#"]:not([aria-label]), header nav > a.abeel-studio { padding-left: .44rem !important; padding-right: .44rem !important; }
  header nav > a[target="_blank"] { margin-left: .125rem !important; padding-left: .6rem !important; padding-right: .6rem !important; }
  header nav > a[hreflang] { margin-left: .125rem !important; flex: none; }
}
@media (max-width: 379px) { header nav > a[href="#contact"] { display: none !important; } }
@media (max-width: 409px) { html[lang="ru"] header nav > a[href="#contact"] { display: none !important; } }
