/* Mobile composition pass: calm hierarchy, compact navigation and denser content. */
@media (max-width: 900px) {
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 68px;
    padding-inline: 14px;
    background: linear-gradient(180deg, rgba(5, 6, 7, .8), transparent);
  }

  .site-header .brand img {
    width: 106px;
  }

  .header-book {
    min-height: 42px;
    padding-inline: 14px;
    background: rgba(5, 6, 7, .48);
  }

  .hero {
    padding-top: 68px;
    grid-template-rows: 34svh auto;
  }

  .hero-photo img {
    object-position: 50% 50%;
  }

  .hero-photo span {
    left: 16px;
    bottom: 14px;
  }

  .hero-side {
    display: none;
  }

  .hero-copy {
    padding: 26px 18px 84px;
  }

  .hero-copy > p:first-child {
    margin-bottom: 12px;
  }

  .hero h1 {
    max-width: 9ch;
    font-size: clamp(39px, 11.5vw, 54px);
    line-height: .96;
  }

  .hero-lead {
    max-width: 35rem;
    margin-bottom: 20px;
    line-height: 1.55;
  }

  .hero-actions {
    margin-top: 0;
  }

  .hero-actions a,
  .hero-actions button {
    min-height: 50px;
  }

  .hero-word {
    display: none;
  }

  .story,
  .spaces,
  .events {
    padding-top: 68px;
    padding-bottom: 58px;
  }

  .story-copy,
  .spaces > header {
    margin-bottom: 28px;
  }

  .story h2,
  .menu-portal h2,
  .spaces h2,
  .events h2 {
    font-size: clamp(34px, 10vw, 40px);
    line-height: 1;
  }

  .filmstrip,
  .space-grid {
    gap: 10px;
    padding-inline: 18px;
    scroll-padding-inline: 18px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .filmstrip::-webkit-scrollbar,
  .space-grid::-webkit-scrollbar {
    display: none;
  }

  .filmstrip figure,
  .filmstrip figure:nth-child(2),
  .filmstrip figure:nth-child(4) {
    flex-basis: 82vw;
    height: min(108vw, 430px);
  }

  .filmstrip figcaption {
    left: 12px;
    bottom: 12px;
  }

  .menu-portal {
    padding: 68px 18px;
    gap: 28px;
  }

  .menu-portal h2 {
    margin-bottom: 20px;
  }

  .menu-portal-copy > a {
    min-height: 52px;
  }

  .space-grid article,
  .space-grid .space-main,
  .space-grid .space-sign {
    flex-basis: 84vw;
    height: min(116vw, 450px);
  }

  .space-grid article > div {
    padding: 54px 16px 16px;
  }

  .events {
    grid-template-rows: auto 350px 220px;
  }

  .events-title {
    padding-bottom: 26px;
  }

  .closing {
    min-height: 550px;
  }

  .closing h2 {
    font-size: clamp(40px, 12vw, 48px);
  }

  .site-footer {
    padding-top: 42px;
    padding-bottom: 100px;
  }

  .site-footer nav {
    gap: 16px 20px;
    margin: 24px 0 30px;
  }

  .mobile-nav {
    left: 10px;
    right: 10px;
    bottom: calc(6px + env(safe-area-inset-bottom));
    height: 54px;
    background: rgba(5, 6, 7, .96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .32);
  }

  .mobile-nav a,
  .mobile-nav button {
    gap: 3px;
  }

  .mobile-nav svg {
    width: 18px;
    height: 18px;
  }

  .mobile-nav span {
    font-size: 8.5px;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: clip;
  }

  .menu-nav-sticky {
    max-width: 100vw;
    overflow: hidden;
  }

  #cartButton.cart-dock {
    position: fixed;
    z-index: 32;
    left: 50%;
    right: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    height: 54px;
    transform: translateX(-50%);
  }

  html {
    scroll-padding-top: 94px;
  }

  .menu-nav-row {
    grid-template-columns: minmax(0, 1fr) 43px;
  }

  .menu-nav-row .section-tabs {
    gap: 18px;
    scroll-padding-inline: 14px;
  }

  .menu-nav-row .section-tabs button,
  .menu-nav-search {
    height: 43px;
  }

  .menu-nav-sticky .category-tabs {
    min-height: 42px;
    padding: 5px 14px;
    scroll-padding-inline: 14px;
  }

  .menu-nav-sticky .category-tabs button {
    padding: 7px 9px;
  }

  .menu-showcase {
    padding-bottom: 18px;
  }

  .menu-showcase > div {
    height: 118px;
  }

  .menu-showcase > div:nth-child(2) {
    height: 100px;
  }

  .menu-main {
    padding-inline: 14px;
  }

  .menu-intro {
    padding: 20px 0 18px;
  }

  .menu-intro h1 {
    font-size: 40px;
  }

  .menu-intro span {
    margin-top: 6px;
    font-size: 12px;
  }

  .group-heading {
    padding-top: 16px;
    margin-bottom: 10px;
  }

  .group-heading h2 {
    font-size: 23px;
  }

  .dish-grid {
    gap: 7px;
  }

  .dish-card {
    min-height: 166px;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    padding: 12px;
  }

  .dish-photo {
    width: 132px;
    height: 142px;
  }

  .dish-copy small {
    margin-bottom: 6px;
  }

  .dish-copy h3 {
    margin-right: 24px;
    font-size: 16px;
    line-height: 1.16;
  }

  .favorite-button {
    right: 146px;
    top: 13px;
  }

  .add-button {
    width: 42px;
    height: 42px;
  }

  .menu-group {
    padding-bottom: 22px;
    scroll-margin-top: 94px;
  }
}

@media (max-width: 380px) {
  .hero {
    grid-template-rows: 32svh auto;
  }

  .hero h1 {
    font-size: 39px;
  }

  .hero-actions a,
  .hero-actions button {
    padding-inline: 11px;
    font-size: 12px;
  }

  .filmstrip figure,
  .filmstrip figure:nth-child(2),
  .filmstrip figure:nth-child(4) {
    height: 390px;
  }

  .dish-card {
    grid-template-columns: minmax(0, 1fr) 120px;
  }

  .dish-photo {
    width: 120px;
    height: 142px;
  }

  .favorite-button {
    right: 134px;
  }

  .dish-copy p {
    display: none;
  }
}
