/* Phones: the docked pill stays compact and opens a white sheet of grouped links above it (after maxshirko.me). */
.mm-sheet { display: none; }
@media (max-width: 700px) {
  /* logo · language · theme · close (40 + 40 + 40 + 48) with 8px gaps and 8px padding on both sides */
  html body .hero .header .menu-anchor.is-open { width: 216px; }
  html body .hero .header .menu-anchor .menu-panel { display: none !important; }
  html body .hero .header .menu-anchor .mm-sheet { position: absolute; left: 50%; bottom: calc(100% + 10px); width: calc(100vw - 32px); box-sizing: border-box; grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 28px; padding: 32px 28px 36px; max-height: calc(100svh - 130px); overflow-y: auto; overscroll-behavior: contain; border-radius: 32px; background: #fff; color: var(--ink); box-shadow: 0 12px 40px rgba(22, 47, 66, .16); font-family: 'Inter Tight', Inter, Arial, sans-serif; transform: translateX(-50%); transform-origin: 50% 100%; }
  html body .hero .header .menu-anchor.is-open .mm-sheet { display: grid; animation: mm-in .45s cubic-bezier(.2, 1.2, .4, 1) both; }
  .mm-col { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
  .mm-label { margin: 0; padding-bottom: 14px; font-size: 10px; font-weight: 400; line-height: 14.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  html body .hero .header .mm-sheet .mm-link { padding: 9px 0; font-size: 14px; font-weight: 500; line-height: 20.3px; letter-spacing: -.01em; color: inherit; background: none; text-decoration: none; white-space: normal; }
  .mm-link[aria-current="page"], .mm-link.is-off { opacity: .35; }
  .mm-link small { font-size: 10px; font-weight: 500; }
  html[data-theme="dark"] body .hero .header .menu-anchor .mm-sheet { background: #201f1c; color: #f5efe5; box-shadow: 0 12px 40px rgba(0, 0, 0, .4); }
}
.header-contact { display: none; }
/* wherever the header folds into icons (tablets and phones) it ends with the envelope */
@media (max-width: 1024px) {
  html body .header .header-contact { order: 4; display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8.889px; background: #fff; color: var(--ink); }
  html[data-theme="dark"] body .header .header-contact { background: #161513; color: #f5efe5; }
}
@keyframes mm-in { from { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { html body .hero .header .menu-anchor.is-open .mm-sheet { animation: none; } }
