/* Phone layouts: one clear reading column, native choices and reachable actions.
   Loaded after the shared desktop/tablet styles only below 768 px. */
html { scroll-padding-top: 84px; }
body { padding-bottom: 0; }
.wrap, .editorial-hero .wrap { width: calc(100% - 40px); }
.header-inner { width: calc(100% - 24px); min-height: 68px; gap: 8px; }
.brand { gap: 8px; }
.brand .brand-emblem { width: 40px; height: 40px; }
.brand .brand-wordmark { width: 112px; height: auto; }
.header-actions { gap: 2px; }
.bag-button { min-width: 52px; min-height: 48px; padding: 8px 5px; gap: 6px; }
.menu-button { display: block; width: 44px; min-height: 48px; padding: 8px 10px; }
.menu-button span { margin: 7px 0; }
.mobile-nav { padding: 10px 20px 18px; max-height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; }
.mobile-nav a { display: flex; align-items: center; min-height: 50px; padding-block: 10px; }
.button { min-height: 52px; padding: 14px 20px; line-height: 1.4; text-align: center; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; line-height: 1.5; }
input, select, textarea, #counter-form input, #counter-form select { font-size: 1rem; }
input, select { min-height: 50px; }
select { width: 100%; min-width: 0; }
button, a, input, select, summary { -webkit-tap-highlight-color: #183b2b18; }
.page-heading { padding-block: 34px 30px; }
.page-heading h1 { font-size: clamp(2.8rem, 12vw, 3.7rem); line-height: 1.04; }
.page-heading .intro { font-size: 1rem; line-height: 1.7; margin-top: 18px; }
.eyebrow { font-size: .75rem; line-height: 1.6; letter-spacing: .13em; }

/* The brand and its two pathways come before the coffee packs. */
.forest-hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; height: auto; max-height: none; overflow: visible; background: var(--paper); color: var(--green); }
.forest-hero .editorial-hero-content { order: 0; margin-top: 0; padding-block: 30px 24px; }
.forest-hero .editorial-hero-content .eyebrow { color: var(--gold); margin-bottom: 16px; }
.forest-hero .editorial-hero-content h1 { font-size: clamp(3.25rem, 14.5vw, 4.5rem); line-height: .98; text-shadow: none; max-width: none; }
.forest-hero .hero-description { color: var(--muted); max-width: 38ch; margin-top: 20px; font-size: 1rem; line-height: 1.65; }
.forest-hero .dual-actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; margin-top: 22px; }
.forest-hero .dual-actions .button { width: 100%; background: var(--green); color: var(--paper); }
.forest-hero .dual-actions .text-link { align-self: center; justify-content: center; margin: 0; min-height: 44px; background: transparent; color: var(--green); border: 0; border-bottom: 1px solid var(--line); padding: 8px 0; }
.forest-hero picture { order: 1; position: relative; display: block; inset: auto; height: auto; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; }
.forest-hero .editorial-hero-photograph { position: absolute; object-position: center; }
.forest-hero .hero-shade { display: none; }
.forest-hero .hero-footnote { order: 2; position: static; inset: auto; display: block; margin: 0 auto; padding-block: 12px 16px; color: var(--muted); font-size: .75rem; line-height: 1.6; }
.home-introduction, .home-ritual-inner, .studio-fit { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 40px; }
.home-introduction h2, .home-ritual h2, .studio-fit h2 { font-size: clamp(2.5rem, 10.8vw, 3.25rem); }
.home-introduction p:not(.eyebrow), .home-ritual p:not(.eyebrow) { line-height: 1.75; }
.home-ritual img { aspect-ratio: 4 / 3; }
.curated-coffees { padding-block: 40px 48px; }
.collection-intro { gap: 20px; margin-bottom: 28px; }
.collection-intro h2 { font-size: clamp(2.5rem, 10.8vw, 3.25rem); }

/* Each coffee is a compact, complete choice rather than a full screen of pouch. */
.coffee-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
.coffee-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: 18px; row-gap: 10px; align-items: start; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.coffee-card > * { min-width: 0; grid-column: 2; margin: 0; }
.coffee-card .coffee-card-image { grid-column: 1; grid-row: 1 / 5; width: 100%; aspect-ratio: 4 / 5; align-self: start; }
.coffee-card .coffee-card-image img { width: 100%; height: 100%; object-fit: cover; }
.coffee-card .card-heading { display: block; margin: 0; }
.coffee-card h3 { font-size: 2rem; line-height: 1.1; }
.coffee-card .card-roast { display: block; margin-top: 6px; font-size: .875rem; line-height: 1.5; }
.coffee-card .card-promise, .coffee-card .card-tasting { font-size: 1rem; line-height: 1.55; margin: 0; }
.coffee-card .card-brew { display: none; }
.coffee-card .text-link { margin: 0; min-height: 44px; font-size: .9375rem; justify-self: start; }
.collection-note { margin-top: 20px; padding-top: 0; border-top: 0; gap: 8px; font-size: .875rem; line-height: 1.6; }
.collection-guide { gap: 8px; margin-top: 20px; }
.coffee-help { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-block: 44px; }

/* Product configuration stays in one reading column, without a floating overlay. */
.breadcrumb { padding-top: 22px; }
.product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.product-heading { grid-column: 1; grid-row: 1; }
.product-heading h1 { font-size: 3.6rem; line-height: 1; }
.product-profile { font-size: 1.125rem; line-height: 1.55; }
.product-taste-preview { font-size: 1rem; line-height: 1.6; margin-top: 10px; max-width: none; }
.product-select-link { display: inline-flex; margin-top: 10px; }
.product-gallery { grid-column: 1; grid-row: 2; position: static; width: min(100%, 232px); margin-inline: auto; }
.product-gallery .gallery-stage { height: auto; aspect-ratio: 4 / 5; }
.gallery-choices { gap: 4px; }
.gallery-choices button { min-height: 44px; padding-inline: 8px; font-size: .875rem; }
.product-info { grid-column: 1; grid-row: 3; margin-top: 0; }
#coffee-options, #choose-your-coffee { scroll-margin-top: 88px; }
.choice-field { margin-top: 0; }
.choice-field legend { font-size: 1rem; }
.grind-field { margin-top: 24px; }
.grind-intro { font-size: 1rem; line-height: 1.6; margin-block: 8px 14px; }
.mobile-grind-select { display: block; color: var(--green); background-color: var(--paper); border-color: var(--green); }
.grind-pills { display: none; }
.method-guidance { margin-top: 12px; }
.method-guidance p { font-size: .9375rem; line-height: 1.65; }
.pack-buttons button { min-height: 50px; }
.purchase-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.quantity-control button { min-width: 44px; min-height: 48px; }
.quantity-control output { min-width: 32px; }
#add-to-bag { flex: 1 1 155px; min-height: 52px; padding-inline: 12px; }
.sensory-profile { margin-top: 30px; padding-top: 28px; }
.product-details, .product-next { padding-block: 40px; }
.coffee-specifications > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 12px; }
.coffee-specifications dd { overflow-wrap: anywhere; }

/* A native picker keeps all eight recipes close at hand. */
.brew-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
.brew-heading h2 { display: none; }
.brew-tabs { display: none; }
.mobile-brew-selector { display: block; }
.mobile-brew-selector label { margin-top: 0; font-size: 1rem; }
.mobile-brew-selector select { border-color: var(--green); background-color: var(--paper); }
.brew-card { padding: 24px 18px; min-width: 0; }
.brew-card-top { flex-wrap: wrap; gap: 14px; }
.cup-scaler button { min-height: 44px; min-width: 72px; }
.brew-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.brew-metrics > div { min-width: 0; }
.brew-metrics strong { overflow-wrap: anywhere; }
#brew-steps { padding-left: 22px; }
#brew-steps li { padding-left: 4px; font-size: 1rem; line-height: 1.75; }

/* Keep the form near the top; selection details remain available on demand. */
.enquiry-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 42px; }
.enquiry-aside { padding-right: 0; }
.selection-review > summary { min-height: 60px; gap: 10px; }
#enquiry-heading { line-height: 1.4; }
.enquiry-aside > p { margin-top: 16px; font-size: .9375rem; line-height: 1.65; }
.enquiry-aside > .text-link { margin-top: 8px; }
.form-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
#enquiry-form > .form-grid:first-child > div + div label { margin-top: 0; }
#enquiry-submit { width: 100%; }
.enquiry-studio-link { padding-bottom: 40px; }

/* Full-height drawers with a reachable header and no content beneath the footer. */
.bag-dialog { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; padding: max(16px, env(safe-area-inset-top)) 20px max(16px, env(safe-area-inset-bottom)); overscroll-behavior: contain; }
.bag-dialog .dialog-header { position: sticky; top: -16px; z-index: 2; margin-top: -16px; padding-top: 16px; padding-bottom: 16px; background: var(--paper); }
.bag-dialog .dialog-header h2 { font-size: 2rem; line-height: 1.15; }
#bag-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
#bag-dialog .dialog-header { flex: 0 0 auto; }
#bag-content { flex: 1 1 auto; overflow-y: auto; min-height: 80px; overscroll-behavior: contain; }
#bag-footer { flex: 0 0 auto; max-height: 48%; overflow-y: auto; padding-top: 14px; border-top: 1px solid var(--line); }
#bag-footer .bag-total { margin-top: 0; }
#bag-footer .response-promise { display: none; }
#bag-footer .small-note { margin-block: 10px 14px; }
#save-selection { min-height: 44px; }
.bag-item { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; padding-block: 22px; }
.bag-item img { width: 60px; }
.bag-item-actions { gap: 8px 14px; }
.bag-item .remove-button { min-height: 44px; padding-inline: 4px; }
.counter-dialog { overflow-y: auto; }
.counter-dialog .dialog-header { align-items: flex-start; }
.counter-dialog .dialog-header h2 { font-size: 1.9rem; }
.counter-dialog .form-grid { gap: 0; }
.drawer-intro { font-size: 1rem; line-height: 1.65; }

.partner-opening { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 34px 40px; }
.partner-opening h1 { font-size: clamp(2.8rem, 12vw, 3.7rem); line-height: 1.05; }
.partner-opening p:not(.eyebrow) { font-size: 1rem; line-height: 1.75; }
.partner-opening .button, .private-invitation .button { width: 100%; }
.partnership-editorial, .studio-service { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 44px; }
.partnership-editorial h2, .private-invitation h2 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
.partnership-editorial p { font-size: 1rem; line-height: 1.75; }
.story-practice-grid, .partner-principles { grid-template-columns: minmax(0, 1fr); }
.trust-strip ul { gap: 12px; padding-block: 24px; }
.trust-strip li { font-size: .8125rem; }
.site-footer { padding-block: 40px 20px; }
.footer-top { display: block; }
.footer-top > div > p.footer-philosophy { font-size: 2.4rem; margin-top: 20px; }
.footer-top nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin-top: 28px; }
.footer-top nav a, .footer-bottom a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-bottom { gap: 4px 24px; margin-top: 22px; }
.footer-bottom > span { width: 100%; }
.footer-bottom a:first-of-type { margin-left: 0; }
.toast { max-width: calc(100% - 32px); bottom: max(16px, env(safe-area-inset-bottom)); }

@media (min-width: 480px) {
  .wrap, .editorial-hero .wrap { width: calc(100% - 56px); }
  .coffee-card { grid-template-columns: minmax(0, .65fr) minmax(0, 1.35fr); gap: 12px 28px; }
  .forest-hero .dual-actions { max-width: 400px; }
  .forest-hero picture { max-height: 360px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
