/* ==========================================================================
   AGAIN COFFEE DESIGN SYSTEM — RESPONSIVE
   All media queries, responsive breakpoints & accessibility
   ========================================================================== */

@media (min-width: 640px) {
  .sm\:-top-8 {
    top: -2rem;
  }

  .sm\:right-10 {
    right: 2.5rem;
  }

  .sm\:h-12 {
    height: 3rem;
  }

  .sm\:h-28 {
    height: 7rem;
  }

  .sm\:h-40 {
    height: 10rem;
  }

  .sm\:w-40 {
    width: 10rem;
  }

  .sm\:w-\[450px\] {
    width: 450px;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:p-10 {
    padding: 2.5rem;
  }

  .sm\:p-8 {
    padding: 2rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:text-\[68px\] {
    font-size: 68px;
  }

  .sm\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

@media (min-width: 768px) {
  .md\:h-16 {
    height: 4rem;
  }

  .md\:h-36 {
    height: 9rem;
  }

  .md\:w-16 {
    width: 4rem;
  }

  .md\:w-\[380px\] {
    width: 380px;
  }

  .md\:w-\[410px\] {
    width: 410px;
  }

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .md\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .md\:col-span-8 {
    grid-column: span 8 / span 8;
  }

  .md\:col-span-9 {
    grid-column: span 9 / span 9;
  }

  .md\:col-span-12 {
    grid-column: span 12 / span 12;
  }

  .md\:grid {
    display: grid;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0px, 1fr));
  }

  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:block {
    display: block;
  }

  .md\:min-w-0 {
    min-width: 0px;
  }

  .md\:overflow-visible {
    overflow: visible;
  }

  .md\:gap-6 {
    gap: 1.5rem;
  }

  .md\:gap-8 {
    gap: 2rem;
  }

  .md\:gap-10 {
    gap: 2.5rem;
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-end {
    align-items: flex-end;
  }

  .md\:text-\[13rem\] {
    font-size: 13rem;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .lg\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:h-\[460px\] {
    height: 460px;
  }

  .lg\:h-\[540px\] {
    height: 540px;
  }

  .lg\:h-\[600px\] {
    height: 600px;
  }

  .lg\:h-\[620px\] {
    height: 620px;
  }

  .lg\:h-\[650px\] {
    height: 650px;
  }

  .lg\:h-48 {
    height: 12rem;
  }

  .lg\:min-h-\[660px\] {
    min-height: 660px;
  }

  .lg\:min-h-\[700px\] {
    min-height: 700px;
  }

  .lg\:w-\[340px\] {
    width: 340px;
  }

  .lg\:w-\[540px\] {
    width: 540px;
  }

  .lg\:w-\[620px\] {
    width: 620px;
  }

  .lg\:w-48 {
    width: 12rem;
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0px, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }

  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:p-14 {
    padding: 3.5rem;
  }

  .lg\:p-16 {
    padding: 4rem;
  }

  .lg\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .lg\:px-14 {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }

  .lg\:py-10 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .lg\:py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .lg\:py-14 {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .lg\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .lg\:gap-8 {
    gap: 2rem;
  }

  .lg\:gap-10 {
    gap: 2.5rem;
  }

  .lg\:text-\[15rem\] {
    font-size: 15rem;
  }

  .lg\:text-\[76px\] {
    font-size: 76px;
  }

  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 640px) {
  .sm\:right-8 {
    right: 2rem;
  }

  .sm\:top-6 {
    top: 1.5rem;
  }

  .sm\:inline-block {
    display: inline-block;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:h-11 {
    height: 2.75rem;
  }

  .sm\:h-28 {
    height: 7rem;
  }

  .sm\:w-1\/2 {
    width: 50%;
  }

  .sm\:w-28 {
    width: 7rem;
  }

  .sm\:w-\[450px\] {
    width: 450px;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:p-10 {
    padding: 2.5rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .sm\:text-\[17px\] {
    font-size: 17px;
  }

  .sm\:text-\[68px\] {
    font-size: 68px;
  }
}

@media (min-width: 768px) {
  .md\:grid {
    display: grid;
  }

  .md\:h-36 {
    height: 9rem;
  }

  .md\:min-w-0 {
    min-width: 0px;
  }

  .md\:flex-shrink {
    flex-shrink: 1;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-end {
    align-items: flex-end;
  }

  .md\:overflow-visible {
    overflow: visible;
  }

  .md\:pb-0 {
    padding-bottom: 0px;
  }
}

@media (min-width: 1024px) {
  .lg\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0px, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0px, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0px, 1fr));
  }

  .lg\:border-l {
    border-left-width: 1px;
  }

  .lg\:border-outline {
    border-color: rgba(255, 255, 255, 0.14);
  }

  .lg\:p-14 {
    padding: 3.5rem;
  }

  .lg\:px-12 {
    padding-left: 3rem;
    padding-right: 3rem;
  }

  .lg\:px-14 {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .lg\:pl-8 {
    padding-left: 2rem;
  }

  .lg\:text-\[82px\] {
    font-size: 82px;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0px, 1fr));
  }
}

@media (min-width: 1024px) {
  .film {
    padding: clamp(70px, 7vw, 110px) 48px;
  }
}

@media (max-width: 640px) {
  .film {
    padding: 48px 16px;
  }

  .film__slider-container {
    border-radius: 20px;
    aspect-ratio: 16 / 10;
  }

  .film__tag {
    font-size: 10px;
    padding: 5px 10px;
  }

  .film__tag--tl {
    top: 12px;
    left: 12px;
  }

  .film__tag--tr {
    top: 12px;
    right: 12px;
  }

  .film__caption {
    bottom: 16px;
    left: 16px;
    right: 60px;
  }

  .film__sound-toggle {
    bottom: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
  }

  .glass-card {
    backdrop-filter: blur(10px) saturate(130%);
    border-radius: 20px;
  }

  .glass-card::before {
    width: 90px;
    height: 90px;
    border-top-left-radius: 20px;
  }

  .glass-panel {
    backdrop-filter: blur(10px) saturate(130%);
    border-radius: 24px;
  }
}

/* Premium refinement: calmer surfaces, clearer type and touch-first spacing */
:root {
  --brand-espresso: #000000;
  /* Light sections use a neutral paper, not a warm cream: the palette is black, white, indigo, ember */
  --brand-cream: #F5F5F5;
  --brand-caramel: #ED582F;
}

html { scroll-padding-top: 5.5rem; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: #ED582F; color: #fff; }

header.fixed > div {
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
header.fixed > div.is-scrolled {
  background: rgba(14, 14, 14, .96) !important;
  border-color: rgba(255,255,255,.17) !important;
  box-shadow: 0 12px 36px rgba(0,0,0,.32) !important;
}

section { scroll-margin-top: 5rem; }
button, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }

/* Give the alternating light sections a warm editorial paper tone. */
#our-coffee, #our-story, #choose, #dial-in, #cta-section {
  background-color: var(--brand-cream) !important;
}
#our-coffee, #our-story, #choose, #dial-in, #cta-section {
  border-radius: clamp(24px, 4vw, 52px) clamp(24px, 4vw, 52px) 0 0;
}

.coffee-card, .premium-product-card, .brew-guide-card, .review-card {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
@media (hover: hover) and (pointer: fine) {
  .coffee-card:hover, .premium-product-card:hover, .brew-guide-card:hover, .review-card:hover {
    transform: translateY(-4px);
  }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 4.5rem; }
  main { padding-top: 3.9rem !important; }
  header.fixed { z-index: 80; }
  header.fixed > div { border-radius: 999px !important; }
  #mobile-menu-panel { padding-top: max(1.5rem, env(safe-area-inset-top)); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
  #cart-drawer, #search-modal, #film-modal { padding-bottom: env(safe-area-inset-bottom); }
  #toast-notification { left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); }
  footer { padding-bottom: max(28px, env(safe-area-inset-bottom)) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   MOBILE PHONES & TABLETS (<= 768px & <= 480px)
   Comprehensive typography, logo, image scaling and layout adaptations
   ========================================================================== */

@media (max-width: 768px) {

  /* Floating Header on Mobile */
  header.fixed {
    padding-top: 10px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  header.fixed>div {
    height: 60px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    background: rgba(14, 14, 16, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.95) !important;
  }

  header.fixed img {
    height: 32px !important;
    filter: none !important;
  }

  /* Section Padding */
  section {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Choose Your Brew Ritual (#brew-guide) Mobile Spacing */
  #brew-guide {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
  #brew-guide > div {
    gap: 22px !important;
  }
  #brew-guide .brew-guide-card {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }

  /* Packaging Science & Freshness Vault (#3d-experience) Mobile Spacing */
  #3d-experience {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  #3d-experience > div {
    gap: 22px !important;
  }
  #3d-experience .atelier-step {
    padding: 14px 16px !important;
    border-radius: 18px !important;
  }
  #3d-experience #stage-3d {
    min-height: 320px !important;
  }

  /* Film Section (#film) Mobile Spacing */
  #film {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  /* Our Coffee Collection (#our-coffee) Mobile Spacing */
  #our-coffee {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
  #our-coffee > div {
    gap: 24px !important;
  }

  /* Premium Reserve (#premium-reserve) Mobile Spacing */
  #premium-reserve {
    padding-top: 44px !important;
    padding-bottom: 44px !important;
  }
  #premium-reserve > div {
    gap: 24px !important;
  }
  #premium-reserve #premium-filter-bar {
    gap: 6px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch;
  }
  #premium-reserve .premium-product-card {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }

  /* Our Story (#our-story) Mobile Spacing */
  #our-story {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
  #our-story > div {
    gap: 22px !important;
  }
  #our-story .story-video-container {
    height: 240px !important;
    border-radius: 20px !important;
  }
  #our-story .story-video-badge {
    padding: 10px 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    border-radius: 14px !important;
  }
  #our-story .story-video-badge-title {
    font-size: 9.5px !important;
  }
  #our-story .story-video-badge-location {
    font-size: 9.5px !important;
  }

  /* Why Choose Us (#why-choose-us) Mobile Spacing */
  #why-choose-us {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
    /* border-radius: 32px 32px 0 0 !important; */
  }
  #why-choose-us .glass-panel {
    padding: 20px 16px !important;
    /* border-radius: 22px !important; */
  }
  #why-choose-us .glass-card {
    padding: 18px 16px !important;
    min-height: auto !important;
    /* border-radius: 18px !important; */
  }

  /* Verified Customer Reviews (#reviews) Mobile Spacing */
  #reviews {
    padding-top: 42px !important;
    padding-bottom: 42px !important;
  }
  #reviews > div {
    gap: 24px !important;
  }
  #reviews .review-card {
    padding: 20px 18px !important;
    border-radius: 22px !important;
  }

  /* CTA Section (#cta-section) Mobile Spacing */
  #cta-section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }
  #cta-section .cta-content-card {
    padding: 26px 18px !important;
    border-radius: 24px !important;
  }

  /* Footer Mobile Spacing */
  footer {
    padding-top: 40px !important;
    padding-bottom: 28px !important;
  }


  /* Roast Indicator Dots inside Chip */
  .roast-indicator-5dots {
    display: inline-flex !important;
    align-items: center !important;
    gap: 2.5px !important;
  }

  .roast-indicator-5dots .dot {
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background-color: #fff !important;
    display: inline-block !important;
  }

  .roast-indicator-5dots .dot.outline {
    background-color: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
  }

  /* Section Headings */
  .font-display-xl,
  h1.font-display-xl,
  h2.font-display-xl {
    font-size: clamp(26px, 7.5vw, 42px) !important;
    line-height: 1.15 !important;
  }

  .font-headline-lg,
  h2.font-headline-lg {
    font-size: clamp(22px, 6.5vw, 34px) !important;
    line-height: 1.2 !important;
  }

  .font-display-lg,
  h2.font-display-lg {
    font-size: clamp(22px, 6vw, 36px) !important;
    line-height: 1.2 !important;
  }

  .font-headline-md,
  h3.font-headline-md {
    font-size: clamp(18px, 5vw, 24px) !important;
  }

  /* Marquee Runner on Mobile */
  .animate-marquee-runner span.font-display {
    font-size: 14px !important;
    letter-spacing: 0.1em !important;
  }

  /* Product Cards Carousel Track on Mobile */
  #our-coffee #coffee-carousel-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 16px !important;
    -webkit-overflow-scrolling: touch;
  }

  #our-coffee #coffee-carousel-container>div {
    gap: 16px !important;
  }

  #our-coffee .coffee-card {
    width: 84vw !important;
    max-width: 320px !important;
    padding: 20px 18px !important;
    border-radius: 24px 24px 28px 28px !important;
    min-height: auto !important;
  }

  #our-coffee .coffee-card .coffee-card-visual {
    height: 180px !important;
    margin-top: 4px !important;
    margin-bottom: 8px !important;
  }

  #our-coffee .coffee-card .coffee-card-img {
    max-height: 160px !important;
  }

  #our-coffee .coffee-card h3 {
    font-size: 19px !important;
  }

  #our-coffee .coffee-card .currency-inr {
    font-size: 20px !important;
  }

  #our-coffee .coffee-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  /* Featured badge position on mobile */
  #our-coffee .featured-card>div.absolute.-top-3\.5 {
    font-size: 9px !important;
    padding: 4px 10px !important;
  }

  /* Real 3D Pack Stage on Mobile */
  #stage-3d {
    min-height: 380px !important;
  }

  #bag-stage-container {
    height: 340px !important;
  }

  #real-product-img {
    max-height: 280px !important;
  }

  #stage-backglow {
    width: 280px !important;
    height: 280px !important;
  }

  /* Glass Panels & Benefit Cards on Mobile */
  .glass-panel {
    padding: 24px 18px !important;
    border-radius: 24px !important;
  }

  .glass-card {
    padding: 20px 18px !important;
    min-height: auto !important;
  }

  /* Explore Coffee CTA Section ("Coffee, again.") on Mobile */
  #cta-section {
    padding-left: 12px !important;
    padding-right: 12px !important;
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  #cta-section .cta-content-card,
  #cta-section .max-w-7xl.rounded-3xl {
    padding: 24px 18px !important;
    border-radius: 24px !important;
  }

  #cta-section h2 {
    font-size: clamp(26px, 8vw, 38px) !important;
  }

  #cta-section p {
    font-size: 13px !important;
  }

  #cta-section .lg\:col-span-5>div {
    height: 220px !important;
    padding: 12px !important;
    border-radius: 20px !important;
  }

  /* Mobile Drawer Overlay Transitions */
  #mobile-menu-drawer.is-open {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  #mobile-menu-drawer.is-open #mobile-menu-panel {
    transform: translateX(0) !important;
  }
}

@media (max-width: 640px) {
  .object-right-bottom {
    object-position: 92% bottom !important;
  }

  /* Good Beans Banner on Mobile */
  #good-beans-banner {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  #good-beans-banner .beans-wood-bg-img {
    object-position: center bottom !important;
    opacity: 0.85 !important;
  }

  /* Brews Guide Specs Grid Stack */
  #choose .grid.grid-cols-3 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #choose .grid.grid-cols-3>div {
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--line-light);
    padding-bottom: 10px;
  }

  #choose .grid.grid-cols-3>div:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Inline story icons inside heading */
  #our-story h2 span.inline-flex {
    width: 32px !important;
    height: 32px !important;
    margin: 0 4px !important;
    padding: 2px !important;
  }

  /* Our Story Video Container, Badge & Button on Mobile */
  #our-story .story-video-container {
    height: 320px !important;
    border-radius: 20px !important;
  }

  #our-story .story-video-badge {
    bottom: 12px !important;
    left: 12px !important;
    right: 12px !important;
    padding: 10px 14px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  #our-story .story-video-badge span {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  #our-story .origin-journey-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  /* Grind Cards Compact on Phones */
  #grind-grid .glass-card {
    min-width: 220px !important;
    min-height: 260px !important;
    padding: 16px !important;
  }
}

@media (max-width: 480px) {

  #our-coffee .coffee-card {
    width: 88vw !important;
    max-width: 290px !important;
    padding: 18px 14px !important;
  }

  #our-coffee .coffee-card .coffee-card-visual {
    height: 160px !important;
  }

  #our-coffee .coffee-card .coffee-card-img {
    max-height: 140px !important;
  }

  #stage-3d {
    min-height: 300px !important;
  }

  #bag-stage-container {
    height: 260px !important;
  }

  #real-product-img {
    max-height: 230px !important;
  }

  .angle-btn {
    padding: 3px 8px !important;
    font-size: 10px !important;
  }


  #our-story .story-video-container {
    height: 290px !important;
  }

  #our-story .story-video-badge {
    bottom: 10px !important;
    left: 10px !important;
    right: 10px !important;
    padding: 8px 10px !important;
    gap: 6px !important;
  }

  #our-story .story-video-badge span {
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
  }

  /* CTA Buttons full width on small phones */
  #cta-section .flex.flex-wrap.items-center.gap-4 {
    flex-direction: column !important;
    width: 100% !important;
  }

  #cta-section a,
  #cta-section button {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* Toast Notification on Mobile */
  #toast-notification {
    left: 12px !important;
    right: 12px !important;
    bottom: 16px !important;
    max-width: calc(100vw - 24px) !important;
  }

  /* Good Beans Banner on Extra Small Phones */
  #good-beans-banner {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  #good-beans-banner .beans-wood-bg-img {
    object-position: center bottom !important;
  }

  #good-beans-banner h2 {
    font-size: 28px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .glass-card,
  .glass-panel,
  .glass-cup-wrap,
  .floating-bean,
  .glass-blob,
  .steam-line,
  .glass-reveal {
    animation: auto ease 0s 1 normal none running none !important;
    transition: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Homepage layout and type refinements */
@media (max-width: 768px) {
  #brew-guide .brew-guide-card p {
    font-size: 14px !important;
    line-height: 1.6 !important;
  }

  #our-coffee .grind-option-btn {
    min-height: 42px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  #our-coffee h2,
  #brew-guide h2,
  #premium-reserve h2,
  #3d-experience h2,
  #reviews h2 {
    font-size: 30px !important;
    line-height: 1.12 !important;
  }

  #our-coffee .coffee-card p {
    font-size: 13px !important;
    line-height: 1.58 !important;
  }
}

/* Roastery film: keep chapter tabs and transport controls on one compact row. */
@media (max-width: 640px) {
  #film { padding-top: 42px !important; padding-bottom: 42px !important; }
  #film .film__inner > div:first-child {
    gap: 18px !important;
    margin-bottom: 22px !important;
  }
  #film .film__label { margin-bottom: 10px !important; font-size: 10px; }
  #film .film__title {
    max-width: 14ch;
    font-size: clamp(30px, 8vw, 38px) !important;
    line-height: 1.02 !important;
    letter-spacing: 0 !important;
    margin-bottom: 10px !important;
  }
  #film .film__sub { max-width: 38ch; margin-bottom: 0 !important; font-size: 14px; line-height: 1.55; }
  #film .film__inner > div:first-child > div:last-child {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100%;
    min-width: 0;
    gap: 8px !important;
  }
  #film .film__tabs {
    flex: 1 1 auto;
    min-width: 0;
    gap: 7px;
    padding: 0 0 3px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  #film .film__tab-btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 12px;
    font-size: 9px;
    letter-spacing: .045em;
    scroll-snap-align: start;
  }
  #film .film__nav-arrows {
    display: flex !important;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
  }
  #film .film__nav-arrow { width: 36px; height: 36px; }
  #film .film__slider-container {
    min-height: 260px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 45px rgba(0,0,0,.38) !important;
  }
  #film .film__tag { font-size: 9px; padding: 5px 9px; }
  #film .film__tag--tl { top: 12px; left: 12px; }
  #film .film__tag--tr { top: 12px; right: 12px; }
  #film .film__caption { left: 15px; right: 58px; bottom: 15px; gap: 5px; }
  #film .film__caption-badge { max-width: 100%; font-size: 8px; letter-spacing: .07em; padding: 4px 8px; }
  #film .film__caption-title { font-size: clamp(16px, 4.6vw, 20px); line-height: 1.08; }
  #film .film__caption-desc { font-size: 12px; line-height: 1.4; }
  #film .film__sound-toggle { width: 36px; height: 36px; right: 12px; bottom: 12px; }
  #film .film__stats { gap: 12px; margin-top: 18px; padding-top: 16px; font-size: 10px; }
  #film .film__stats > div:first-child { flex-wrap: wrap; gap: 8px 14px !important; }
  #film .film__stats > div:last-child { font-size: 9px; }
}

/* Quiet the technical wireframe look: use soft surfaces instead of nested rules. */
.brew-guide-card {
  border-color: rgba(255, 255, 255, .055) !important;
  background: linear-gradient(155deg, rgba(34, 27, 21, .78), rgba(20, 17, 15, .94)) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, .18) !important;
}
.brew-guide-card::before { display: none !important; }
#brew-guide .brew-guide-card .border-t,
#brew-guide .brew-guide-card .border-b { border-color: rgba(255, 255, 255, .065) !important; }

.glass-panel {
  border-color: rgba(255, 255, 255, .09) !important;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .28) !important;
}
.glass-card {
  border-color: rgba(255, 255, 255, .075) !important;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .2) !important;
}
.glass-card::before { display: none !important; }
.glass-card::after { box-shadow: none !important; }
.halftone-corner { opacity: .1 !important; }

.product-tasting-pill,
#our-coffee .coffee-card .flex.flex-wrap.gap-1\.5 > span {
  background: rgba(255, 255, 255, .045) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  padding: 5px 10px !important;
  color: rgba(245, 239, 230, .78) !important;
}
.badge-in-stock, .badge-accent, .badge-shipping, .badge-dispatch {
  box-shadow: none !important;
}

#our-coffee, #brew-guide, #premium-reserve, #3d-experience, #reviews {
  border-color: rgba(255, 255, 255, .055) !important;
}

/* Section-by-section phone layout refinements */
@media (max-width: 767px) {
  #our-coffee, #brew-guide, #film, #premium-reserve, #3d-experience,
  #our-story, #why-choose-us, #reviews, #cta-section {
    padding-left: 18px !important;
    padding-right: 18px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
    border-radius: 28px 28px 0 0 !important;
  }

  #our-coffee > div, #brew-guide > div, #premium-reserve > div,
  #3d-experience > div, #our-story > div, #why-choose-us > div,
  #reviews > div {
    gap: 28px !important;
  }

  #our-coffee h2, #brew-guide h2, #premium-reserve h2,
  #3d-experience h2, #our-story h2, #why-choose-us h2,
  #reviews h2, #cta-section h2 {
    font-size: clamp(1.8rem, 8vw, 2.45rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
  }

  #our-coffee > div > div:first-child,
  #brew-guide > div > div:first-child,
  #premium-reserve > div > div:first-child,
  #reviews > div > div:first-child {
    gap: 16px !important;
    padding-bottom: 20px !important;
  }

  #our-coffee > div > div:first-child p,
  #brew-guide > div > div:first-child p,
  #premium-reserve > div > div:first-child p,
  #reviews > div > div:first-child p,
  #our-story p, #cta-section p {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  /* Coffee carousel: one readable card per swipe with no clipped edges. */
  #coffee-carousel-container {
    width: calc(100% + 4px) !important;
    margin-left: -2px !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
  }
  #coffee-carousel-container > div {
    width: max-content !important;
    min-width: 0 !important;
    gap: 14px !important;
    padding: 8px 2px 16px !important;
  }
  #coffee-carousel-container .coffee-card {
    width: min(82vw, 340px) !important;
    max-width: calc(100vw - 44px) !important;
    padding: 18px !important;
    border-radius: 22px !important;
    scroll-snap-align: center;
  }
  #coffee-carousel-container .product-stage-frame { height: 250px !important; }
  #coffee-carousel-container .coffee-card h3 { font-size: 1.2rem !important; line-height: 1.15 !important; }
  #coffee-carousel-container .coffee-card .badge-dispatch,
  #coffee-carousel-container .coffee-card .badge-shipping { font-size: 9px !important; }
  #coffee-carousel-container .coffee-card .flex.items-baseline.gap-2\.5 { flex-wrap: wrap; }

  /* Brew cards and reserve product cards use the full available column width. */
  #brew-guide .brew-guide-card { min-width: 0; padding: 21px 18px !important; border-radius: 22px !important; }
  #brew-guide .brew-guide-card h3 { font-size: 1.2rem !important; line-height: 1.2 !important; }
  #premium-filter-bar { flex-wrap: nowrap !important; overflow-x: auto !important; max-width: 100%; padding: 2px 1px 8px; scrollbar-width: none; }
  #premium-filter-bar::-webkit-scrollbar { display: none; }
  #premium-filter-bar > * { flex: 0 0 auto; min-height: 40px; }
  #premium-products-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 16px !important; }
  #premium-products-grid > * { min-width: 0; padding: 18px !important; border-radius: 22px !important; }
  #premium-products-grid .product-stage-frame { height: 240px !important; }

  /* Make the 3D packaging story lead, with instructions and details below it. */
  #3d-experience .grid.grid-cols-1.md\:grid-cols-12 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 18px !important;
  }
  #3d-experience .grid.grid-cols-1.md\:grid-cols-12 > div:first-child { order: 2; }
  #3d-experience .grid.grid-cols-1.md\:grid-cols-12 > #stage-3d { order: 1; min-height: 280px !important; }
  #3d-experience .grid.grid-cols-1.md\:grid-cols-12 > div:last-child { order: 3; }
  #3d-experience .atelier-step { padding: 14px !important; }

  #our-story .story-video-container { height: clamp(220px, 62vw, 320px) !important; }
  #our-story .grid.grid-cols-1.sm\:grid-cols-2 { gap: 10px !important; }
  #our-story .grid.grid-cols-1.sm\:grid-cols-2 > * { padding: 16px !important; }

  #why-choose-us .glass-panel { padding: 22px 18px !important; border-radius: 24px !important; }
  #why-choose-us .glass-panel > div:last-child { grid-template-columns: minmax(0, 1fr) !important; gap: 14px !important; }
  #why-choose-us .glass-card { min-height: 0 !important; padding: 20px 18px !important; }

  #reviews .review-card { min-width: 0; padding: 20px 18px !important; border-radius: 22px !important; }
  #reviews .review-card > div:last-child { align-items: flex-start !important; flex-wrap: wrap; gap: 12px !important; }
  #reviews .review-card > div:last-child > span:last-child { margin-left: 52px; }
  #reviews > div > div:last-child { gap: 12px !important; padding: 18px !important; }
  #reviews > div > div:last-child > div { min-width: 0; }
  #reviews > div > div:last-child > div span:last-child { font-size: 9px !important; line-height: 1.4; }

  #cta-section { padding-top: 36px !important; padding-bottom: 36px !important; }
  #cta-section .cta-content-card { padding: 24px 20px !important; border-radius: 24px !important; }
  #cta-section .cta-content-card > div.grid { gap: 24px !important; }
  #cta-section .cta-content-card > div.grid > div:first-child { gap: 16px !important; }
  #cta-section .cta-content-card a, #cta-section .cta-content-card button { min-height: 46px; }
  #cta-section .cta-content-card > div.grid > div:first-child > div:last-child { gap: 12px !important; }

  #film .film__inner { width: 100%; }
  #film .film__title { font-size: clamp(2rem, 8vw, 2.6rem) !important; line-height: 1.08 !important; }
  #film .film__tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  #film .film__tabs::-webkit-scrollbar { display: none; }
  #film .film__tab-btn { flex: 0 0 auto; }
  #film .film__slider-container { width: 100%; }
}

@media (max-width: 380px) {
  #our-coffee, #brew-guide, #film, #premium-reserve, #3d-experience,
  #our-story, #why-choose-us, #reviews, #cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  #coffee-carousel-container .coffee-card { width: calc(100vw - 38px) !important; }
  #reviews > div > div:last-child { grid-template-columns: minmax(0, 1fr) !important; }
}

/* Final override: keep shared borders and separators visually quiet everywhere. */
:root {
  --line-dark: rgba(255, 255, 255, .055);
  --line-light: rgba(10, 10, 10, .055);
  --color-divider: rgba(255, 255, 255, .045);
  --color-outline-variant: rgba(255, 255, 255, .045);
}
main section { border-color: rgba(255, 255, 255, .025) !important; }
main section [class~="border-t"],
main section [class~="border-b"],
main section [class~="border-y"] {
  border-color: rgba(255, 255, 255, .025) !important;
}
main section [class~="border-white/10"] { border-color: rgba(255, 255, 255, .025) !important; }
main section [class~="border-white/15"],
main section [class~="border-white/20"],
main section [class~="border-white/25"],
main section [class~="border-white/30"] { border-color: rgba(255, 255, 255, .065) !important; }
main section [class~="border-white/5"] { border-color: rgba(255, 255, 255, .025) !important; }
main section [class*="badge-"],
main section .film__tag,
main section .film__caption-badge,
main section .sensory-pill,
main section .product-tasting-pill { border-color: transparent !important; }
main section .flex.flex-wrap.gap-1\.5 > span { border-color: transparent !important; }
