/* Mobile-first refinement pass for the approved Great Filter Coffee direction. */

@media (max-width: 760px) {
  :root {
    --shell: min(100% - 32px, 680px);
  }

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

  body {
    font-size: 15px;
  }

  .site-header,
  .site-header.is-scrolled {
    position: sticky;
    top: 0;
    background: rgba(4, 12, 22, 0.97);
    backdrop-filter: blur(14px);
    box-shadow: none;
  }

  .header-inner {
    min-height: 62px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 28px;
  }

  .brand-copy {
    display: grid;
    line-height: 0.88;
  }

  .brand-copy strong {
    font-size: 0.98rem;
    letter-spacing: 0.06em;
  }

  .brand-copy span {
    margin-top: 5px;
    font-size: 0.48rem;
  }

  .menu-toggle {
    justify-self: end;
    width: 36px;
    height: 36px;
  }

  .site-nav {
    top: 62px;
    left: 16px;
    right: 16px;
    padding: 10px 16px;
  }

  .site-nav a {
    padding: 12px 4px;
  }

  .header-actions {
    gap: 0;
  }

  .icon-button {
    width: 34px;
    height: 34px;
    padding: 7px;
  }

  .cart-count {
    top: -2px;
    right: -2px;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    min-height: 650px;
    padding-top: 44px;
    padding-bottom: 18px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 255px;
    align-content: start;
    gap: 10px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
  }

  .hero h1 {
    max-width: 340px;
    font-size: clamp(3.75rem, 17vw, 5.1rem);
    line-height: 0.78;
  }

  .hero-lede {
    max-width: 320px;
    margin: 18px 0 20px;
    font-size: 0.83rem;
    line-height: 1.55;
  }

  .button-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    width: 100%;
  }

  .button {
    min-width: 0;
    min-height: 44px;
    padding-inline: 10px;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .hero-scene {
    min-height: 255px;
    margin-top: 0;
    overflow: visible;
  }

  .hero-product {
    transform: scale(0.47);
    transform-origin: center bottom;
    margin-bottom: -2px;
  }

  .volcano {
    width: 175px;
    height: 225px;
    right: -14%;
    bottom: -2%;
  }

  .observatory {
    right: 2%;
    bottom: 2%;
    transform: scale(0.72);
    transform-origin: bottom right;
  }

  .alien-silhouette {
    left: 1%;
    bottom: 5%;
    transform: scale(0.7);
    transform-origin: bottom left;
  }

  .lava-horizon {
    bottom: -120px;
    height: 250px;
  }

  .meteor-field span:nth-child(1) {
    top: 11%;
    left: 36%;
  }

  .meteor-field span:nth-child(2) {
    top: 22%;
    left: 58%;
  }

  .asset-note {
    display: none;
  }

  .section {
    padding: 24px 0 30px;
  }

  .products .shell {
    width: 100%;
  }

  .section-rule {
    width: calc(100% - 32px);
    margin: 0 auto 20px;
    gap: 10px;
  }

  .section-rule h2 {
    font-size: 0.67rem;
    white-space: nowrap;
  }

  .product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 0 16px 18px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-card {
    flex: 0 0 min(74vw, 280px);
    scroll-snap-align: center;
    gap: 13px;
    padding: 0 12px 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 19, 32, 0.72);
  }

  .product-card .coffee-bag {
    width: 156px;
    margin-top: 16px;
  }

  .coffee-bag {
    padding: 15px 12px 12px;
    gap: 9px;
  }

  .coffee-bag::before {
    margin: -12px -12px 0;
  }

  .bag-art {
    min-height: 110px;
  }

  .product-copy h3 {
    font-size: 1.24rem;
  }

  .product-copy .roast {
    margin: 5px 0;
    font-size: 0.7rem;
  }

  .product-copy > p:not(.roast) {
    min-height: 0;
    font-size: 0.61rem;
  }

  .product-meta {
    margin-top: 10px;
    gap: 12px;
    font-size: 0.72rem;
  }

  .add-button {
    margin-top: 12px;
    padding: 9px 14px;
  }

  .centered-link {
    margin: 4px 16px 0;
  }

  .story-grid {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .story-art {
    min-height: 235px;
  }

  .window-space {
    inset: 18px 28px 56px;
  }

  .booth-table {
    bottom: 18px;
    height: 48px;
  }

  .astronaut-figure,
  .alien-figure {
    transform: scale(0.72);
    transform-origin: bottom center;
    bottom: 27px;
  }

  .astronaut-figure {
    left: 11%;
  }

  .alien-figure {
    right: 18%;
  }

  .neon-sign {
    top: 18px;
    left: 16px;
    font-size: 0.56rem;
  }

  .story-copy {
    padding: 30px 20px 26px;
  }

  .story-copy h2,
  .brew h2,
  .subscription h2 {
    font-size: clamp(2.15rem, 10vw, 2.8rem);
  }

  .story-copy p {
    font-size: 0.72rem;
    line-height: 1.6;
  }

  .value-list {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px 28px;
  }

  .value-list li {
    grid-template-columns: 38px 1fr;
  }

  .value-list p {
    margin-top: 5px;
  }

  .brew {
    padding: 28px 0 24px;
  }

  .brew-grid {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .brew-intro {
    width: calc(100% - 32px);
    margin-inline: auto;
    padding: 0 0 20px;
  }

  .brew-intro h2 {
    font-size: 2.6rem;
  }

  .brew-methods {
    display: flex;
    gap: 0;
    overflow-x: auto;
    padding-inline: 16px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .brew-methods::-webkit-scrollbar {
    display: none;
  }

  .brew-methods article {
    flex: 0 0 160px;
    min-height: 180px;
    display: grid;
    place-content: center;
    scroll-snap-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 0;
    padding: 18px 14px;
  }

  .brew-quote {
    width: calc(100% - 32px);
    margin: 0 auto;
    min-height: 130px;
    text-align: center;
  }

  .subscription {
    padding: 32px 0 30px;
  }

  .subscription-grid {
    min-height: 0;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .subscription p:not(.eyebrow) {
    font-size: 0.7rem;
  }

  .subscription-cta {
    justify-items: start;
  }

  .subscription-art {
    opacity: 0.22;
  }

  .site-footer {
    padding-top: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 18px;
  }

  .footer-brand,
  .newsletter {
    grid-column: 1 / -1;
  }

  .newsletter {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    margin-top: 20px;
    gap: 8px;
  }
}

@media (max-width: 440px) {
  :root {
    --shell: min(100% - 28px, 420px);
  }

  .header-inner {
    min-height: 58px;
  }

  .brand-mark {
    width: 26px;
  }

  .brand-copy strong {
    font-size: 0.82rem;
  }

  .brand-copy span {
    font-size: 0.43rem;
  }

  .site-nav {
    top: 58px;
  }

  .hero-grid {
    min-height: 620px;
    padding-top: 38px;
    grid-template-rows: auto 235px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 4.65rem);
  }

  .hero-lede {
    font-size: 0.78rem;
  }

  .button {
    font-size: 0.74rem;
  }

  .hero-scene {
    min-height: 235px;
  }

  .hero-product {
    transform: scale(0.43);
  }

  .product-card {
    flex-basis: min(80vw, 270px);
  }

  .story-art {
    min-height: 220px;
  }

  .story-copy h2,
  .subscription h2 {
    font-size: 2.25rem;
  }

  .brew-intro h2 {
    font-size: 2.4rem;
  }

  .footer-grid {
    gap: 22px 16px;
  }
}
