/* Layout refresh: illustrations occupy their own grid cells, away from photos. */
.pouch-site { overflow-x: visible; }
.pouch-site main > *, .pouch-site .hero > *, .pouch-site .illustrated-intro > *,
.pouch-site .quiz-page > *, .pouch-site .quiz-callout > *, .pouch-site .match-layout > * { min-width: 0; }
.pouch-site h1, .pouch-site h2 { text-wrap: balance; }
.pouch-site .hero { grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); gap: clamp(28px,4vw,64px); padding-block: 52px 60px; }
.pouch-site .hero-actions { justify-content: flex-start; }
.pouch-site .hero h1 { font-size: clamp(54px,6.4vw,88px); }
.pouch-site .collection-stage { padding: 24px 20px 12px; border-radius: 32px; background: #eee5d7; }
.pouch-site .stage-caption { letter-spacing: .07em; margin-bottom: 20px; }
.pouch-site .pouch-lineup { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.pouch-site .pouch-tile:nth-child(n) { transform: none; }
.pouch-site .pouch-tile .mini-photo { padding: 8px 0; border: 0; border-radius: 100px 100px 18px 18px; }
.pouch-site .mini-photo { --pouch-height: clamp(280px,30vw,390px); }
.pouch-site .mini-photo img { width: 100%; height: var(--pouch-height); aspect-ratio: auto; object-fit: contain; }
.pouch-site .mini-photo img.product-upload { object-fit: contain; }
.pouch-site .tile-caption { font-size: 17px; line-height: 1.3; margin-top: 14px; padding-inline: 2px; }
.pouch-site .stage-bottom { display: flex; width: fit-content; margin: 18px auto 0; font-size: 14px; }

/* More height for the full pouch, with the transparent side margins framed out. */
.pouch-site .coffee-grid { gap: 44px 28px; }
.pouch-site .coffee-photo { padding: 38px 0 10px; border-radius: 24px; border-bottom: 5px solid var(--colour); }
.pouch-site .coffee-photo::after { display: none; }
.pouch-site .coffee-photo { --pouch-height: clamp(355px,35vw,480px); }
.pouch-site .coffee-photo img { width: 100%; height: var(--pouch-height); max-height: none; aspect-ratio: auto; object-fit: contain; }
.pouch-site .coffee-photo img.product-upload { object-fit: contain; }
.pouch-site .coffee-weight { top: 12px; right: 16px; }
.pouch-site .product-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.pouch-site .product-art { position: static; width: 100%; max-width: none; }
.pouch-site .product-image { padding: 16px 0 12px; border-radius: 28px; }
.pouch-site .product-image { --pouch-height: clamp(490px,50vw,660px); }
.pouch-site .product-image img { width: 100%; height: var(--pouch-height); aspect-ratio: auto; object-fit: contain; }
.pouch-site .product-image img.product-upload { object-fit: contain; }
.pouch-site .product-art figcaption { flex-wrap: wrap; font-size: 12px; }
.pouch-site .pouch-size-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pouch-site .pouch-size { min-width: 0; }
.pouch-site .match-layout { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }

/* Transparent PNGs are framed to their artwork, without modifying the files. */
.mascot-art { display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: var(--art-ratio); pointer-events: none; user-select: none; }
.mascot-art img { position: absolute; display: block; width: var(--art-width); max-width: none; height: auto; left: var(--art-left); top: var(--art-top); margin: 0; padding: 0; object-fit: initial; }
.moments-band { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-block: 1px solid var(--line); padding-block: 22px; gap: 24px; }
.moment { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 20px; align-items: center; }
.moment + .moment { border-left: 1px solid var(--line); padding-left: 24px; }
.moment-art { display: grid; place-items: center; height: 130px; border-radius: 65px; background: #ece4ef; }
.moment:nth-child(2) .moment-art { background: #e1e6d0; }
.moment:nth-child(3) .moment-art { background: #f1e6ba; }
.moment-art .mascot-art { width: auto; height: 108px; max-width: 92px; }
.moment .eyebrow { font-size: 10px; letter-spacing: .05em; margin: 0 0 8px; }
.moment h2 { font-size: 28px; line-height: 1.08; margin: 0; }
.mascot-scene { display: grid; justify-items: center; align-content: center; gap: 18px; padding: 24px; border-radius: 130px 130px 24px 24px; min-width: 0; }
.mascot-scene .mascot-art { width: auto; height: 230px; max-width: 100%; }
.scene-caption { font-size: 12px; color: var(--muted); text-align: center; }
.scene-sage { background: #cad5b3; }
.scene-sand { background: #ede2d0; }
.scene-blush { background: #eddbd6; }
.pouch-site .quiz-callout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 48px; padding: 40px 48px; border-radius: 28px; background: #dce2ca; }
.pouch-site .quiz-callout .callout-copy { max-width: 620px; }
.callout-copy .button { margin-top: 16px; }
.pouch-site .page-intro.illustrated-intro { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 56px; align-items: center; max-width: none; padding-block: 48px; }
.illustrated-intro .mascot-scene .mascot-art { height: 195px; }
.pouch-site .blog-list { padding-top: 16px; }
.brew-moment { display: grid; grid-template-columns: 78px minmax(0,1fr); gap: 26px; align-items: center; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 24px; }
.brew-moment .mascot-art { height: 114px; width: auto; margin: auto; }
.brew-moment p { font-size: 16px; margin: 0; color: var(--muted); }
.brew-moment strong { color: var(--ink); font: 600 31px/1.2 'Cormorant Garamond',Georgia,serif; }
.pouch-site .article-heading { padding: 0; }
.article-end-copy { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; min-width: 0; flex: 1; }
.article-mascot { flex: 0 0 86px; }
.article-mascot .mascot-art { height: 130px; width: auto; margin: auto; }
.quiz-companion { margin: 28px 0 0; max-width: 160px; }
.quiz-companion .mascot-art { height: 200px; width: auto; margin: auto; }
.pouch-site .quiz-page { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
.pouch-site .quiz-form { width: 100%; }
.pouch-site .quiz-controls { flex-wrap: wrap; }
.pouch-site .quiz-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pouch-site .button { white-space: normal; text-align: center; }
.pouch-site .footer-links a, .pouch-site .footer-coffees a { min-height: 44px; display: flex; align-items: center; }

@media (min-width: 1100px) {
  .pouch-site .product-art { position: sticky; top: 112px; }
}
@media (max-width: 1050px) {
  .moments-band { gap: 16px; }
  .moment { grid-template-columns: 76px minmax(0,1fr); gap: 14px; }
  .moment + .moment { padding-left: 16px; }
  .moment-art { height: 104px; }
  .moment-art .mascot-art { height: 85px; max-width: 72px; }
  .moment h2 { font-size: 23px; }
  .pouch-site .quiz-callout { grid-template-columns: minmax(0,1fr) 210px; padding: 32px; gap: 28px; }
  .pouch-site .quiz-page { gap: 32px; }
  .pouch-site .page-intro.illustrated-intro { gap: 32px; grid-template-columns: minmax(0,1fr) 240px; }
}
@media (max-width: 900px) {
  .pouch-site .hero { grid-template-columns: minmax(0,1fr); padding-block: 36px 40px; gap: 32px; }
  .pouch-site .hero-copy { text-align: center; padding: 0; }
  .pouch-site .hero h1 { font-size: clamp(50px,8vw,70px); }
  .pouch-site .hero h1 span { display: inline; }
  .pouch-site .hero h1 span + span::before { content: ' '; }
  .pouch-site .hero-copy .intro { margin-inline: auto; }
  .pouch-site .hero-actions { justify-content: center; }
  .pouch-site .collection-stage { max-width: 670px; width: 100%; margin-inline: auto; }
  .pouch-site .mini-photo { --pouch-height: 340px; }
  .pouch-site .coffee-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 36px 22px; }
  .pouch-site .coffee-photo { --pouch-height: 405px; }
  .pouch-site .product-layout, .pouch-site .match-layout { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .pouch-site .product-art, .pouch-site .match-layout > .product-image { position: static; max-width: 620px; width: 100%; margin-inline: auto; }
  .pouch-site .product-details { max-width: 650px; width: 100%; margin-inline: auto; }
  .pouch-site .product-image { --pouch-height: 570px; }
  .pouch-site .quiz-page { grid-template-columns: minmax(0,1fr); gap: 28px; padding-block: 36px 60px; }
  .quiz-companion { display: none; }
  .pouch-site .quiz-form { max-width: none; }
}
@media (max-width: 680px) {
  .pouch-site .container { width: calc(100% - 32px); }
  .pouch-site .section { padding-block: 52px; }
  .pouch-site .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pouch-site .section-heading > p { max-width: none; }
  .pouch-site .hero h1 { font-size: clamp(46px,10.5vw,64px); }
  .pouch-site .coffee-grid { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .pouch-site .coffee-photo { --pouch-height: clamp(390px,85vw,510px); }
  .pouch-site .coffee-photo { max-width: 510px; margin-inline: auto; }
  .moments-band { grid-template-columns: minmax(0,1fr); padding-block: 8px; gap: 0; }
  .moment { grid-template-columns: 76px minmax(0,1fr); gap: 24px; padding-block: 18px; }
  .moment + .moment { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .moment h2 { font-size: 29px; }
  .moment-art { height: 94px; }
  .moment-art .mascot-art { height: 78px; }
  .pouch-site .page-intro.illustrated-intro { grid-template-columns: minmax(0,1fr); gap: 24px; padding-block: 34px; }
  .illustrated-intro .mascot-scene { border-radius: 24px; width: 100%; padding: 22px; }
  .illustrated-intro .mascot-scene .mascot-art { height: 154px; }
  .pouch-site .quiz-callout { grid-template-columns: minmax(0,1fr); padding: 28px 24px; gap: 26px; }
  .quiz-callout .mascot-scene { border-radius: 22px; padding: 18px; display: flex; justify-content: center; gap: 24px; }
  .quiz-callout .mascot-scene .mascot-art { height: 135px; flex: 0 0 auto; }
  .pouch-site .catalog-caption { align-items: flex-start; flex-wrap: wrap; }
  .pouch-site .product-image { --pouch-height: clamp(440px,100vw,570px); }
  .pouch-site .profile { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .pouch-site .profile > div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 14px; align-items: baseline; }
  .pouch-site .profile dt { margin-bottom: 0; }
  .pouch-site .profile dd { font-size: 15px; }
  .pouch-site .pouch-size { padding: 14px 10px; gap: 8px; }
  .pouch-site .product-title { font-size: clamp(40px,10vw,58px); }
  .pouch-site .blog-grid { grid-template-columns: minmax(0,1fr); }
  .pouch-site .quiz-options { grid-template-columns: minmax(0,1fr); }
  .pouch-site .article-cover img { height: auto; max-height: 460px; object-fit: contain; }
  .pouch-site .article-page { padding-top: 24px; }
  .pouch-site .footer-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .pouch-site .footer-brand { grid-column: auto; }
  .pouch-site .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 420px) {
  .pouch-site .collection-stage { padding: 20px 10px 10px; border-radius: 24px; }
  .pouch-site .pouch-lineup { gap: 10px; }
  .pouch-site .mini-photo { --pouch-height: clamp(220px,65vw,270px); }
  .pouch-site .stage-caption { font-size: 10px; letter-spacing: .02em; }
  .pouch-site .tile-caption { font-size: 15px; }
  .pouch-site .hero-actions { gap: 6px 16px; margin-top: 22px; }
  .pouch-site .hero .hero-actions .button { margin-top: 0; }
  .pouch-site .card-prices { gap: 8px 18px; }
  .pouch-site .quiz-callout { padding: 26px 20px; }
  .pouch-site .article-end { gap: 16px; }
  .article-mascot { flex-basis: 60px; }
  .article-mascot .mascot-art { height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .pouch-site *, .pouch-site *::before, .pouch-site *::after { animation: none !important; transition: none !important; }
}

/* Scale to the visible pouch bounds; never cut into the printed packaging. */
.product-frame { display: flex; justify-content: center; align-items: center; height: var(--pouch-height); width: 100%; padding-inline: 12px; }
.product-crop { display: block; position: relative; overflow: hidden; flex: 0 1 auto; width: min(100%,calc(var(--pouch-height) * var(--pouch-proportion))); aspect-ratio: var(--pouch-ratio); }
.pouch-site .product-frame .product-crop > img { position: absolute; width: var(--pouch-width); max-width: none; height: auto; max-height: none; aspect-ratio: auto; left: var(--pouch-left); top: var(--pouch-top); transform: none; object-fit: fill; }
