/* Motion is progressive: content stays readable without JavaScript or GSAP. */
.motion-pending{will-change:transform,opacity}
.mobile-menu{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,calc(100% - 20px));max-width:none;height:100dvh;max-height:100dvh;padding:24px 28px max(28px,env(safe-area-inset-bottom));border:0;border-left:1px solid #504357;border-radius:24px 0 0 24px;background:#211b28;color:var(--ink);overscroll-behavior:contain;overflow-y:auto}
.mobile-menu[open]{display:flex;flex-direction:column;gap:36px}
.mobile-menu::backdrop{background:#09070cc9;backdrop-filter:blur(5px)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-shrink:0}
.drawer-head .wordmark{font-size:56px}
.drawer-close{display:flex;align-items:center;justify-content:center;width:48px;height:48px;flex-shrink:0;border:1px solid #68566f;border-radius:50%;background:transparent}
.drawer-close svg{width:24px;height:24px}
.drawer-nav{display:flex;flex-direction:column;gap:0;margin:0}
.drawer-nav a{display:grid;grid-template-columns:22px 1fr 22px;align-items:center;gap:12px;min-height:88px;padding:16px 0;border-bottom:1px solid #504357;font-size:clamp(26px,7.5vw,34px);font-weight:600;letter-spacing:-.055em;line-height:1.15}
.drawer-nav a:hover,.drawer-nav a:focus-visible{color:var(--orange)}
.drawer-index{color:var(--orange);font-size:11px;font-weight:500;letter-spacing:0;align-self:start;margin-top:7px}
.drawer-nav a>span:last-child{font-size:23px;font-weight:400;color:var(--orange)}
.drawer-bottom{display:flex;flex-direction:column;gap:22px;margin-top:auto;padding-top:12px}
.drawer-language{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;align-self:stretch;padding:5px;border:1px solid #504357;border-radius:12px;background:#19151f}
.drawer-language button{font-size:12px;min-height:44px;border-radius:8px;transition:background .2s,color .2s}
.drawer-language button[aria-pressed=true]{color:#1d1522;background:#b6a1e6}
.drawer-cv{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;padding:12px 16px;background:var(--orange);color:#211820;border-radius:9px;font-size:13px;font-weight:700}
.drawer-social{justify-content:space-between;gap:4px}
.drawer-social .icon-link{border-color:#504357;width:44px;min-width:44px}
.drawer-bottom>p{color:var(--muted);font-size:11px}
.dialog-opening::backdrop{animation:backdrop-in .35s ease-out both}
.dialog-closing::backdrop{animation:backdrop-out .25s ease-in both}
@keyframes backdrop-in{from{opacity:0}to{opacity:1}}
@keyframes backdrop-out{from{opacity:1}to{opacity:0}}
.primary-link:active,.drawer-cv:active{transform:translateY(2px)}
.education summary>span:last-child{transition:transform .25s ease}
@media(max-width:900px){
  .site-header{display:flex;height:104px;min-height:104px;gap:16px;padding-top:12px;padding-bottom:12px}
  .site-header>.language,.site-header>nav,.site-header>.header-social{display:none}
  .site-header .wordmark{font-size:58px}
  .site-header .menu-toggle{display:flex;margin-left:auto;width:48px;height:48px;border:1px solid #66536f;border-radius:50%;background:#29222f}
  .menu-toggle svg{width:24px;height:24px}
  .drawer-nav a:nth-child(2){display:grid}
}
@media(max-height:680px){.mobile-menu[open]{gap:18px}.drawer-nav a{min-height:66px;font-size:27px}.drawer-bottom{gap:14px}.drawer-head .wordmark{font-size:44px}}
@media(prefers-reduced-motion:reduce){.mobile-menu::backdrop{backdrop-filter:none}.dialog-opening::backdrop,.dialog-closing::backdrop{animation:none}.motion-pending{will-change:auto}.primary-link:active,.drawer-cv:active{transform:none}}
@media print{.motion-pending{opacity:1!important;transform:none!important;visibility:visible!important}}
