/* Phone layout: a complete first-screen hero and comfortably sized sections. */
@media (max-width: 640px) {
  html { scroll-padding-top: 76px; }
  .after-dark-hero { min-height: calc(100svh - 76px); }
  .after-dark-layout {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    min-height: calc(100svh - 76px);
    padding: 12px 18px 16px;
  }
  .after-dark-copy { width: 100%; max-width: 440px; padding: 0; }
  .after-dark-eyebrow { font-size: 8px; letter-spacing: .13em; }
  .after-dark-eyebrow span { width: 17px; margin-right: 7px; }
  .after-dark-copy h1 {
    margin: 13px 0 12px;
    font-size: clamp(43px, 10.5vw, 60px);
    line-height: 1.01;
  }
  .after-dark-intro { max-width: 36ch; margin: 0 0 13px; font-size: 13px; line-height: 1.5; }
  .after-dark-button { min-width: 158px; min-height: 47px; padding: 11px 20px; font-size: 10px; }
  .after-dark-gallery {
    flex: none;
    width: min(100%, 390px);
    max-width: none;
    height: calc(min(84vw, 328px) + 92px);
    aspect-ratio: auto;
    margin: 12px auto 0;
    isolation: auto;
    animation: none !important;
    transform: none !important;
  }
  .after-dark-gallery-orbit { display: none; }
  .after-dark-gallery-item,
  .after-dark-gallery-item[data-slot="main"],
  .after-dark-gallery-item:focus-visible {
    border: 0;
    border-radius: 50%;
    outline: 0;
    background: transparent;
    box-shadow: none;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
  }
  .after-dark-gallery-item::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: 2px;
    border: 1px solid #d5b67a;
    border-radius: 50%;
    pointer-events: none;
  }
  .after-dark-gallery-item[data-slot="main"]::after { border-width: 2px; border-color: #e4c78d; }
  .after-dark-gallery-item:focus-visible::after { border-width: 3px; border-color: #fff1c7; }
  .after-dark-gallery-item video,
  .after-dark-gallery-item img {
    -webkit-mask-image: radial-gradient(circle closest-side at center, #000 97%, transparent 100%);
    mask-image: radial-gradient(circle closest-side at center, #000 97%, transparent 100%);
  }
  .after-dark-gallery-item[data-slot="main"] { left: 8%; top: 0; width: 84%; }
  .after-dark-gallery-item[data-slot="one"] { left: 8%; top: calc(min(84vw, 328px) + 8px); width: 21%; }
  .after-dark-gallery-item[data-slot="two"] { left: 39.5%; top: calc(min(84vw, 328px) + 8px); width: 21%; }
  .after-dark-gallery-item[data-slot="three"] { left: 71%; top: calc(min(84vw, 328px) + 8px); width: 21%; }
  .after-dark-bottom { display: none; }

  #menu.menu-section,
  .visit,
  .about-section {
    min-height: calc(100svh - 76px);
    scroll-margin-top: 76px;
  }
  .about-section { display: flex; flex-direction: column; justify-content: center; }

  body.hero-visible .whatsapp-fab,
  body.hero-visible .instagram-fab,
  body.hero-visible .map-fab { opacity: 0; pointer-events: none; }
}

@media (max-width: 380px) {
  .after-dark-layout { padding: 10px 16px 14px; }
  .after-dark-copy h1 { font-size: clamp(40px, 11vw, 46px); }
  .after-dark-gallery { margin-top: 10px; }
  .site-header.refined-header .refined-name { font-size: 14px; }
  .site-header.refined-header .refined-subtitle { font-size: 7px; }
}

@media (max-width: 640px) and (max-height: 760px) {
  .after-dark-layout { padding-top: 8px; padding-bottom: 10px; }
  .after-dark-gallery {
    width: min(100%, 315px);
    height: calc(min(70vw, 265px) + 82px);
  }
  .after-dark-gallery-item[data-slot="one"],
  .after-dark-gallery-item[data-slot="two"],
  .after-dark-gallery-item[data-slot="three"] { top: calc(min(70vw, 265px) + 16px); }
}

@media (max-width: 640px) and (max-height: 620px) {
  .after-dark-copy h1 { margin: 8px 0; font-size: 36px; }
  .after-dark-intro { margin-bottom: 8px; font-size: 11px; line-height: 1.35; }
  .after-dark-button { min-height: 40px; }
  .after-dark-gallery { width: 250px; height: 280px; margin-top: 8px; }
  .after-dark-gallery-item[data-slot="one"],
  .after-dark-gallery-item[data-slot="two"],
  .after-dark-gallery-item[data-slot="three"] { top: 220px; }
}
