@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) and (max-width: 960px) {
  .public-menu-toggle {
    position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
    border-radius: 50%; border: 1px solid #cbd5e1; background: transparent; color: #0f172a; cursor: pointer;
  }
  .public-menu-toggle::before, .public-menu-toggle::after {
    content: ""; position: absolute; height: 1.5px; width: 20px; background: currentColor;
    transform: translateY(-3px);
  }
  .public-menu-toggle::after { transform: translateY(3px); }
  .public-menu-toggle:active { background: #e2e8f0; }
  .public-menu-panel {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none;
    z-index: 120; overflow: auto; overscroll-behavior: contain;
    box-sizing: border-box; margin: 0; padding: 8px clamp(20px, 5.6vw, 24px) max(22px, env(safe-area-inset-bottom));
    border: none; background: #0f172a; color: #fff; font-family: var(--font-sans, Jakarta, sans-serif);
  }
  .public-menu-panel[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .public-menu-panel { scrollbar-width: none; }
  .public-menu-panel::-webkit-scrollbar { display: none; }
  .public-menu-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
  .menu-brand { display: inline-flex; align-items: center; gap: 9px; font-size: .82rem; font-weight: 700; letter-spacing: .13em; }
  .public-menu-panel .public-menu-toggle { border-color: #64748b; color: #fff; }
  .public-menu-panel .public-menu-toggle::before { transform: rotate(45deg); }
  .public-menu-panel .public-menu-toggle::after { transform: rotate(-45deg); }
  .public-menu-panel .public-menu-toggle:active { background: #334155; }
  .public-menu-body {
    display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
    gap: clamp(6px, 1.8dvh, 18px); min-height: 0; padding-top: clamp(8px, 3dvh, 28px);
  }
  .menu-art {
    justify-self: end; align-self: end; min-height: 0; height: 100%; max-height: min(40dvh, 79vw, 328px);
    aspect-ratio: 1; box-sizing: border-box; pointer-events: none;
  }
  .menu-mark { display: block; width: 100%; height: 100%; object-fit: contain; filter: brightness(0); }
  .public-menu-panel a {
    display: flex; align-items: center; width: fit-content; min-height: 46px;
    color: inherit; background: transparent; text-decoration: none; padding: 0; margin: 0; border: 0;
  }
  .public-menu-panel .menu-primary a { width: 100%; min-height: 44px; font: 400 clamp(1.9rem, min(13vw, 7dvh), 3.5rem)/1.1 var(--font-display, Instrument, Georgia, serif); letter-spacing: -.04em; }
  .public-menu-panel a[aria-current="page"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; margin: .18em 0 0 12px; }
  .menu-contact { margin-top: 0; padding-top: 2px; border-top: 1px solid #475569; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; }
  .menu-contact a { font-size: .875rem; overflow-wrap: anywhere; min-width: 0; }
  .menu-contact a:last-child { color: #cbd5e1; text-decoration: underline; text-underline-offset: 4px; }
  @media (orientation: landscape) and (max-height: 500px) {
    .public-menu-body { grid-template: minmax(min-content, 1fr) auto / 1fr 32%; gap: 4px 12px; }
    .menu-primary { align-self: center; }
    .menu-art { align-self: center; max-height: min(48dvh, 27vw); }
    .menu-contact { grid-column: 1 / -1; }
  }
  .public-menu-panel :focus-visible { outline: 2px solid white; outline-offset: 2px; }
  .lost-scene { display: block; max-width: 38rem; margin-inline: auto; }
  .lost-map { aspect-ratio: 400 / 238; border-radius: 16px; padding: clamp(12px, 3.5vw, 24px) clamp(16px, 4vw, 28px); background: #0f172a url('missing-route.svg') center / cover no-repeat; }
  .lost-map span { color: white; font: 400 clamp(4.25rem, 20vw, 7rem)/1 var(--font-display, Instrument, Georgia, serif); letter-spacing: -.055em; }
  .lost-scene > h1, .wrapper .page-not-found .lost-scene > h1 { margin: clamp(24px, 6vw, 36px) 0 8px; font: 400 clamp(2.1rem, 9vw, 3rem)/1.05 var(--font-display, Instrument, Georgia, serif); letter-spacing: -.03em; }
  .lost-scene > p { margin: 0; max-width: 39ch; color: #475569; font-size: 1rem; line-height: 1.55; }
  .lost-scene .lost-home {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px;
    margin: 18px 0 0; padding: 4px 0; border-radius: 4px; background: transparent; color: #0f172a;
    font: 600 1rem/1.4 var(--font-sans, Jakarta, sans-serif); text-decoration: none;
  }
  .lost-home svg {
    flex: none; color: white; background: #0f172a; border-radius: 50%;
  }
  .lost-scene .lost-destinations {
    display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 18px; padding-top: 4px; border-top: 1px solid #e2e8f0;
  }
  .lost-destinations a {
    display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0;
    border-radius: 0; background: transparent; color: #475569; font-size: .875rem;
    text-decoration: underline; text-decoration-color: #94a3b8; text-underline-offset: 4px;
  }
  .lost-scene a:focus-visible { outline: 2px solid #475569; outline-offset: 3px; }
  .lost-home:is(:focus-visible, :active) { text-decoration: underline; text-underline-offset: 4px; }
  @media (hover: hover) { .lost-home:hover { text-decoration: underline; text-underline-offset: 4px; } }
  @media (prefers-reduced-motion: no-preference) {
    .lost-home path { transition: transform 150ms ease-out; }
    .lost-home:is(:hover, :focus-visible, :active) path { transform: translateX(-2px); }
  }
  .public-menu-toggle:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
  @media (hover: hover) { .public-menu-panel a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; } }
  @media (prefers-reduced-motion: no-preference) {
    .public-menu-body { animation: menu-arrive 180ms ease-out; }
    .public-menu-panel .public-menu-toggle::before { animation: menu-line-first 160ms ease-out; }
    .public-menu-panel .public-menu-toggle::after { animation: menu-line-second 160ms ease-out; }
    @keyframes menu-arrive { from { opacity: .72; transform: translateY(5px); } }
    @keyframes menu-line-first { from { transform: translateY(-3px); } }
    @keyframes menu-line-second { from { transform: translateY(3px); } }
  }
}
