/* Mobile-only Hero and navigation. Hidden controls never alter desktop flow. */
.mobile-menu-control, .mobile-navigation { display: none; }
@media (width < 1200px) {
  .site-header { position: absolute; }
  .site-header .header-grid { grid-template-columns: 1fr auto; }
  .site-header .header-cell { padding-inline: 16px; }
  .site-header .header-right { padding: 0 64px 0 0; border-left: 0; }
  .site-header .lang { min-width: 44px; }
  .hero-grid { display: flex; flex-direction: column; height: auto; }
  .hero-label:first-child { min-height: 32px; padding: 9px 16px; }
  .hero-title { padding: 24px 16px 32px; justify-content: flex-start; align-items: flex-start; }
  .hero-title h1 { font-size: clamp(44px, 13.6vw, 58px); line-height: .98; }
  .hero-intro { margin-top: 24px; font-size: 14px; line-height: 22px; }
  .hero-cta {
    display: inline-flex; align-items: center; min-height: 44px;
    margin-top: 16px; padding: 0; font-size: 12px; line-height: 20px;
    text-decoration: underline; text-underline-offset: 5px;
  }
  .hero-menu-column, .hero-menu, .hero-summary, .hero-state { display: none; }

  .mobile-menu-control {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    position: fixed; top: env(safe-area-inset-top, 0px);
    right: max(8px, env(safe-area-inset-right, 0px));
    width: 44px; height: 44px; padding: 12px;
    border: 0; background: var(--paper); color: var(--ink); z-index: 100;
    cursor: pointer;
  }
  .mobile-menu-control span { display: block; width: 20px; height: 1px; background: currentColor; transition: transform .16s ease; }
  .mobile-menu-control[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .mobile-menu-control[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-navigation {
    position: fixed; inset: 0; width: 100%; height: 100dvh;
    max-width: none; max-height: none; margin: 0; padding: 0;
    border: 0; background: transparent; color: var(--ink); overflow: hidden;
  }
  .mobile-navigation[open] { display: block; }
  .mobile-navigation::backdrop { background: rgba(17,18,15,.22); }
  .mobile-sheet {
    position: absolute; inset: auto 0 0; display: flex; flex-direction: column;
    height: min(82dvh, 720px); background: var(--paper);
    border-top: 1px solid var(--ink); padding-bottom: env(safe-area-inset-bottom, 0px);
    animation: mobile-sheet-enter .2s ease-out;
  }
  .mobile-sheet-heading {
    display: flex; justify-content: space-between; align-items: center;
    min-height: 56px; padding: 16px; border-bottom: 1px solid var(--line);
    font-family: var(--mono); font-size: 10px; color: var(--muted);
  }
  .mobile-sheet-heading h2 { margin: 0; font: inherit; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-sheet-content { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; }
  .mobile-nav-entry { border-bottom: 1px solid var(--line); }
  .mobile-nav-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px; min-height: 64px; }
  .mobile-accordion-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    min-width: 0; min-height: 64px; padding: 10px 12px 10px 16px;
    border: 0; background: transparent; text-align: left; cursor: pointer;
    font-size: 27px; line-height: 1; letter-spacing: -.055em;
  }
  .mobile-accordion-trigger small { display: block; margin-top: 7px; font: 9px/1 var(--mono); letter-spacing: 0; color: var(--muted); }
  .mobile-accordion-mark { font: 16px/1 var(--mono); color: var(--muted); }
  .mobile-nav-arrow { display: flex; justify-content: center; align-items: center; min-height: 44px; border-left: 1px solid var(--line); font-size: 24px; }
  .mobile-nav-description { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .18s ease; }
  .mobile-nav-description > div { overflow: hidden; min-height: 0; }
  .mobile-nav-description[aria-hidden="false"] { grid-template-rows: 1fr; }
  .mobile-nav-description p { margin: 0; padding: 4px 24px 20px 16px; font-size: 14px; line-height: 22px; }
  .mobile-sheet-footer {
    display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
    min-height: 60px; padding-left: 16px; border-top: 1px solid var(--line);
  }
  .mobile-sheet-footer > a { display: inline-flex; align-items: center; min-height: 44px; font: 10px/1.5 var(--mono); }
  .mobile-sheet-footer .lang { min-width: 44px; height: 60px; }
  .mobile-menu-control:focus-visible, .mobile-navigation button:focus-visible, .mobile-navigation a:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
  @keyframes mobile-sheet-enter { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @media (prefers-reduced-motion: reduce) {
    .mobile-sheet { animation: none; }
    .mobile-menu-control span, .mobile-nav-description { transition: none; }
  }
}
