/* Kapeleta — storefront: index.html and product.html */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.muted { color: var(--cream-3); }

/* Bag label type (text drawn over the #bag symbol) */
.bag-brand { font: 600 7.4px var(--f-text); letter-spacing: 0.34em; text-anchor: middle; fill: var(--ink); }
.bag-name { font-family: var(--f-display); font-size: 21px; font-weight: 450; text-anchor: middle; fill: var(--ink); font-variation-settings: 'opsz' 36, 'SOFT' 100, 'WONK' 1; letter-spacing: -0.01em; }
.bag-meta { font: 600 6.6px var(--f-text); letter-spacing: 0.22em; text-anchor: middle; fill: var(--ink); opacity: 0.7; }

/* Section heads */
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head .label { margin-bottom: 22px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* ================= Hero ================= */
.hero { position: relative; padding-top: clamp(28px, 4vw, 64px); padding-bottom: clamp(72px, 8vw, 128px); overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90vh; pointer-events: none;
  background: radial-gradient(closest-side, rgba(231, 164, 60, 0.09), transparent 70%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero__copy .label { margin-bottom: clamp(22px, 2.6vw, 34px); }
.hero__copy .h1 em { display: block; }
.hero__copy .lede { margin-top: clamp(22px, 2.4vw, 32px); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 3vw, 40px); }
.hero__facts { display: flex; gap: 0; margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); max-width: 520px; }
.hero__facts > div { flex: 1; padding: 16px 16px 0 0; }
.hero__facts > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero__facts dt { font-size: var(--t-label); letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; }
.hero__facts dd { margin-top: 4px; font-family: var(--f-display); font-size: 1.2rem; font-variation-settings: 'opsz' 36, 'SOFT' 60; }

.hero__art { position: relative; justify-self: end; width: 100%; max-width: 600px; }
.hero__scene { width: 100%; height: auto; }
.hero__bag { transform-box: fill-box; }
.steam path { opacity: 0; animation: steam 4.2s var(--ease) infinite; }
.steam path:nth-child(2) { animation-delay: 1.3s; }
.steam path:nth-child(3) { animation-delay: 2.6s; }
@keyframes steam {
  0% { opacity: 0; transform: translateY(14px); }
  30% { opacity: 0.32; }
  100% { opacity: 0; transform: translateY(-22px); }
}
.sun { animation: sunrise 2.4s var(--ease-out) both 0.3s; }
@keyframes sunrise { from { transform: translateY(40px); opacity: 0.4; } }

.roast-card {
  position: absolute; left: clamp(-72px, -4vw, -12px); top: 4%; width: 286px; padding: 16px 18px 14px;
  background: rgba(36, 26, 21, 0.82); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow);
}
.roast-card figcaption { display: grid; gap: 2px; margin-bottom: 10px; }
.roast-card__name { font-family: var(--f-display); font-size: 1.2rem; font-variation-settings: 'opsz' 36, 'SOFT' 60; }
.roast-curve { width: 100%; height: auto; overflow: visible; }
.roast-curve__axis text { font: 500 8px var(--f-text); fill: var(--cream-3); }
.js .roast-curve__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease) 0.5s; }
.js .is-in .roast-curve__line, .js .roast-card.is-in .roast-curve__line { stroke-dashoffset: 0; }
.js .roast-curve__dot { opacity: 0; transition: opacity 0.5s 2.2s; }
.js .roast-card.is-in .roast-curve__dot { opacity: 1; }
.roast-card__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.roast-card__stats dt { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; }
.roast-card__stats dd { font-weight: 600; font-size: 0.95rem; }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { justify-self: center; margin-top: 8px; }
  .roast-card { left: 0; top: 2%; }
}
@media (max-width: 560px) {
  .hero__facts dd { font-size: 1.02rem; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__art { margin-inline: calc(var(--gutter) * -0.5); width: calc(100% + var(--gutter)); }
  .roast-card { position: relative; left: auto; top: auto; width: auto; margin: -28px 10px 0; padding: 14px 16px 12px; }
  .roast-curve { max-height: 92px; }
}

/* ================= Roasts ================= */
.roasts { padding-top: clamp(40px, 5vw, 96px); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.roast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.roast { display: flex; flex-direction: column; animation: rise 0.5s var(--ease-out) both; }
.roast__art {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 4.6; border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 95%, rgba(0, 0, 0, 0.35), transparent 70%),
    radial-gradient(90% 70% at 50% 20%, color-mix(in srgb, var(--tint) 22%, transparent), transparent 70%),
    var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}
.roast__art::after { content: ''; position: absolute; left: 24%; right: 24%; bottom: calc(17% - 8px); height: 12px; border-radius: 50%; background: rgba(0, 0, 0, 0.45); filter: blur(6px); transition: transform 0.5s var(--ease-out), opacity 0.5s; }
.bag-art { position: relative; z-index: 1; width: 58%; height: auto; transition: transform 0.6s var(--ease-out); }
.roast__art:hover { border-color: var(--line-2); }
.roast__art:hover .bag-art { transform: translateY(-10px) rotate(-2.5deg); }
.roast__art:hover::after { transform: scaleX(0.82); opacity: 0.7; }
.roast__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 11px; border-radius: 999px;
  background: rgba(20, 14, 11, 0.6); border: 1px solid var(--line); backdrop-filter: blur(6px);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cream);
}
.roast__badge--low { background: var(--saffron); border-color: var(--saffron); color: var(--on-saffron); }
.roast__body { display: flex; flex-direction: column; flex: 1; padding: 20px 4px 0; }
.roast__origin { word-spacing: 0.12em; font-size: 0.8rem; color: var(--cream-3); font-weight: 500; }
.roast__body .h3 { margin-top: 6px; }
.roast__body .h3 a { transition: color 0.2s; }
.roast__body .h3 a:hover { color: var(--saffron); }
.roast__notes { margin-top: 8px; color: var(--cream-2); font-size: 0.95rem; }
.roast__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; }
.roast__price { font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.roast__price small { color: var(--cream-3); font-weight: 500; font-size: 0.8rem; }
.roast__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

.roast-level { display: inline-flex; align-items: center; gap: 3px; }
.roast-level i { width: 14px; height: 5px; border-radius: 3px; background: rgba(244, 231, 212, 0.14); }
.roast-level i:nth-child(-n + 5) { background: rgba(244, 231, 212, 0.14); }
.roast-level i:nth-child(1) { --c: #d9b98f; } .roast-level i:nth-child(2) { --c: #c0915e; } .roast-level i:nth-child(3) { --c: #a06c40; } .roast-level i:nth-child(4) { --c: #7a4e2f; } .roast-level i:nth-child(5) { --c: #5a3820; }
.roast-level[style*='--level:1'] i:nth-child(-n + 1),
.roast-level[style*='--level:2'] i:nth-child(-n + 2),
.roast-level[style*='--level:3'] i:nth-child(-n + 3),
.roast-level[style*='--level:4'] i:nth-child(-n + 4),
.roast-level[style*='--level:5'] i:nth-child(-n + 5) { background: var(--c); box-shadow: 0 0 0 1px rgba(244, 231, 212, 0.12) inset; }
.roast-level b { margin-left: 8px; font-size: 0.78rem; font-weight: 500; color: var(--cream-3); }

.filter-empty {
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 36px 40px; border: 1px dashed var(--line-2); border-radius: var(--r-lg);
  animation: rise 0.5s var(--ease-out) both;
}
.filter-empty svg { width: 110px; color: var(--cream-3); }
.filter-empty h3 { font-family: var(--f-display); font-weight: 400; font-size: 1.6rem; font-variation-settings: 'opsz' 72, 'SOFT' 80, 'WONK' 1; }
.filter-empty p { color: var(--cream-2); margin-top: 6px; max-width: 40em; }

@media (max-width: 1100px) { .roast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; } }
@media (max-width: 640px) {
  .filter { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .filter::-webkit-scrollbar { display: none; }
  .filter .chip { flex: none; }
  .roast-grid { grid-template-columns: 1fr; row-gap: 52px; }
  .roast__art { aspect-ratio: 4 / 3.6; }
  .bag-art { width: 44%; }
  .filter-empty { grid-template-columns: 1fr; padding: 28px 24px; text-align: left; }
}

/* ================= Origins ================= */
.origins { position: relative; background: var(--espresso-deep); padding-bottom: var(--section); }
.origins__land { position: relative; height: clamp(300px, 39vw, 560px); overflow: hidden; }
.origins__land svg { width: 100%; height: 100%; }
.origins__land::after { content: ''; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--espresso-deep)); }
.pin-name { font-family: var(--f-display); font-size: 24px; text-anchor: middle; fill: var(--cream); font-variation-settings: 'opsz' 36, 'SOFT' 80, 'WONK' 1; }
.pin-alt { font: 600 12px var(--f-text); letter-spacing: 0.16em; text-anchor: middle; fill: var(--cream-3); }
@media (max-width: 760px) { .pin-name, .pin-alt { display: none; } }

.origins__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); margin-top: clamp(-40px, -2vw, -12px); position: relative; }
.origins__intro { grid-column: 1 / span 7; }
.origins__intro .label { margin-bottom: 22px; }
.origins__text { grid-column: 8 / span 5; align-self: end; }
.steps { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 6vw, 96px); border-top: 1px solid var(--line); }
.steps li { padding: 28px 24px 0 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps .serif-num { font-size: 2.6rem; color: var(--saffron); line-height: 1; }
.steps h3 { margin-top: 18px; font-family: var(--f-display); font-weight: 420; font-size: 1.35rem; font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.steps p { margin-top: 8px; color: var(--cream-2); font-size: 0.95rem; max-width: 22em; }
.origins__photos { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(16px, 2vw, 28px); margin-top: clamp(56px, 6vw, 96px); }
.origins__photos .photo { aspect-ratio: 4 / 3; }
.origins__photos .photo--tall { aspect-ratio: auto; min-height: 100%; }
@media (max-width: 960px) {
  .origins__intro, .origins__text { grid-column: 1 / -1; }
  .origins__text { margin-top: 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 28px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 8px; }
  .steps .serif-num { grid-row: span 2; font-size: 2rem; }
  .steps h3 { margin-top: 0; }
  .origins__photos { grid-template-columns: 1fr; }
  .origins__photos .photo--tall { aspect-ratio: 4 / 3; min-height: 0; }
}

/* ================= Subscription ================= */
.subscribe { padding-top: clamp(72px, 6vw, 120px); }
.subscribe + .cafe { padding-top: 0; }
.sub-panel {
  position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 88px);
  padding: clamp(28px, 5vw, 72px); border-radius: calc(var(--r-lg) + 8px); overflow: hidden;
  background: radial-gradient(70% 90% at 0% 0%, rgba(231, 164, 60, 0.13), transparent 60%), var(--card);
  border: 1px solid var(--line);
}
.sub-panel__copy .label { margin-bottom: 22px; }
.sub-panel__copy .prose { margin-top: 22px; }
.perks { display: grid; gap: 12px; margin-top: 28px; }
.perks li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.perks svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--saffron-lo); color: var(--saffron); flex: none; }
.sub-form { display: grid; gap: 24px; align-content: start; }
.sub-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sub-form legend { padding: 0; margin-bottom: 12px; }
.sub-form__pair { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 24px 40px; }
.sub-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.sub-summary__price b { font-family: var(--f-display); font-size: 2.6rem; font-weight: 380; letter-spacing: -0.02em; font-variation-settings: 'opsz' 144, 'SOFT' 50; line-height: 1; }
.sub-summary__price s { color: var(--cream-3); margin-left: 6px; font-size: 0.95rem; }
.sub-summary__every { color: var(--cream-2); font-size: 0.9rem; margin-top: 4px; }
.sub-dates { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sub-dates li { padding: 10px 12px; border-radius: 10px; background: rgba(244, 231, 212, 0.04); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 600; animation: rise 0.4s var(--ease-out) both; }
.sub-dates li:nth-child(2) { animation-delay: 0.05s; } .sub-dates li:nth-child(3) { animation-delay: 0.1s; } .sub-dates li:nth-child(4) { animation-delay: 0.15s; }
.sub-dates li span { display: block; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; margin-bottom: 2px; }
.sub-dates li.first { border-color: rgba(231, 164, 60, 0.45); background: var(--saffron-lo); }
@media (max-width: 960px) { .sub-panel { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .sub-panel { margin-inline: calc(var(--gutter) * -0.5); padding: 28px 20px; }
  .sub-form__pair { grid-template-columns: 1fr; }
  .sub-summary .btn { width: 100%; }
  .sub-dates { grid-template-columns: 1fr 1fr; }
}

/* ================= Café ================= */
.cafe__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 104px); }
.cafe__info .label { margin-bottom: 22px; }
.cafe__info .prose { margin-top: 22px; }
.cafe__address { display: flex; gap: 14px; margin-top: 32px; font-style: normal; font-weight: 500; font-size: 1.05rem; line-height: 1.45; }
.cafe__address svg { width: 22px; height: 22px; color: var(--saffron); flex: none; margin-top: 2px; }
.cafe__address .muted { font-size: 0.9rem; font-weight: 400; }
.hours { margin-top: 32px; }
.hours__status { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--cream-2); margin-bottom: 12px; }
.hours__status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cream-3); }
.hours__status.is-open { color: var(--cream); }
.hours__status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(159, 178, 122, 0.18); }
.hours table { width: 100%; max-width: 460px; }
.hours th, .hours td { padding: 12px 0; border-top: 1px solid var(--line); text-align: left; font-weight: 400; color: var(--cream-2); }
.hours td { text-align: right; }
.hours tr.today th, .hours tr.today td { color: var(--cream); font-weight: 600; }
.hours tr.today th::after { content: 'Today'; margin-left: 10px; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--saffron); }
.hours .tag { margin-left: 8px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 0.7rem; font-weight: 600; color: var(--cream-2); vertical-align: 1px; }
.cafe__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.cafe__side { display: grid; gap: clamp(16px, 2vw, 24px); align-content: start; }
.menu-board { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--roast); border: 1px solid var(--line); }
.menu-board__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.menu-board h3 { font-family: var(--f-display); font-style: italic; font-weight: 340; font-size: 2rem; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }
.menu-board li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.menu-board li span { font-weight: 500; }
.menu-board li small { display: block; color: var(--cream-3); font-weight: 400; font-size: 0.8rem; }
.menu-board li i { flex: 1; min-width: 20px; border-bottom: 1px dotted rgba(244, 231, 212, 0.25); transform: translateY(-4px); }
.menu-board li b { font-weight: 600; }
.cafe__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map svg { width: 100%; height: 100%; }
.cafe__pair .photo { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.map-label { font: 600 9px var(--f-text); letter-spacing: 0.08em; fill: var(--cream-2); text-anchor: middle; }
.map-label--on { font-family: var(--f-display); font-size: 16px; font-weight: 500; letter-spacing: 0; fill: var(--cream); text-anchor: start; font-variation-settings: 'opsz' 36, 'SOFT' 80, 'WONK' 1; }
.map-street { font: 500 8px var(--f-text); letter-spacing: 0.18em; fill: var(--cream-3); text-transform: uppercase; }
@media (max-width: 960px) { .cafe__grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .cafe__pair { grid-template-columns: 1fr; }
  .cafe__ctas .btn { flex: 1 1 100%; }
}

/* ================= Product page ================= */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 18px; font-size: 0.85rem; color: var(--cream-3); }
.crumbs a { color: var(--cream-2); transition: color 0.2s; }
.crumbs a:hover { color: var(--saffron); }
.crumbs span[aria-hidden] { opacity: 0.5; }

.pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 88px); padding-top: 24px; padding-bottom: var(--section); align-items: start; }
.gallery { position: sticky; top: 96px; display: grid; gap: 14px; }
.gallery__stage { position: relative; aspect-ratio: 1 / 1.02; border-radius: calc(var(--r-lg) + 6px); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.gallery__view { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s; }
.gallery__view.is-on { opacity: 1; visibility: visible; }
.gallery__view--bag {
  background:
    radial-gradient(70% 50% at 50% 92%, rgba(0, 0, 0, 0.4), transparent 70%),
    radial-gradient(80% 60% at 50% 15%, color-mix(in srgb, var(--tint, #a9825a) 26%, transparent), transparent 70%);
}
.gallery__view--bag .bag-art { width: 50%; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45)); }
.gallery__view.photo { border-radius: 0; outline-offset: -16px; }
.gallery__view--beans svg { width: 100%; height: 100%; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; transition: border-color 0.2s, transform 0.2s; }
.thumb:hover { border-color: var(--cream-3); }
.thumb:active { transform: scale(0.97); }
.thumb[aria-pressed='true'] { border-color: var(--saffron); box-shadow: 0 0 0 1px var(--saffron); }
.thumb svg { width: 46%; height: auto; }
.thumb .thumb__beans { width: 100%; height: 100%; }
.thumb.photo { border-radius: var(--r); outline-offset: -6px; }
.thumb.photo svg { width: 22px; color: var(--cream-3); }

.pdp__info { padding-top: 8px; }
.pdp__origin { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--cream-3); font-size: 0.88rem; font-weight: 500; }
.pdp__origin span + span::before { content: '·'; margin-right: 14px; color: var(--cream-3); }
.pdp__title { margin-top: 16px; font-size: clamp(2.8rem, 1.6rem + 4vw, 5.2rem); line-height: 0.95; }
.pdp__notes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.note-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px 6px 8px; border-radius: 999px; background: rgba(244, 231, 212, 0.06); border: 1px solid var(--line); font-size: 0.88rem; font-weight: 500; }
.note-pill i { width: 18px; height: 18px; border-radius: 50%; background: var(--c, var(--saffron)); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15) inset; }
.pdp__lede { margin-top: 24px; color: var(--cream-2); font-size: 1.05rem; max-width: 34em; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.pdp__price b { font-family: var(--f-display); font-weight: 380; font-size: 2.6rem; letter-spacing: -0.02em; line-height: 1; font-variation-settings: 'opsz' 144, 'SOFT' 50; }
.pdp__price s { color: var(--cream-3); }
.pdp__price .per { color: var(--cream-3); font-size: 0.9rem; }
.pdp__form { display: grid; gap: 26px; margin-top: 28px; }
.pdp__form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pdp__form legend { padding: 0; margin-bottom: 12px; display: flex; justify-content: space-between; width: 100%; }
.pdp__form legend .hint { color: var(--cream-3); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 0.82rem; }

.plan { display: grid; gap: 10px; }
.plan label { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line-2); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.plan label:hover { border-color: var(--cream-3); }
.plan input { position: absolute; opacity: 0; }
.plan .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--cream-3); display: grid; place-items: center; transition: border-color 0.2s; }
.plan .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--saffron); transform: scale(0); transition: transform 0.25s var(--ease-out); }
.plan input:checked ~ .radio { border-color: var(--saffron); }
.plan input:checked ~ .radio::after { transform: scale(1); }
.plan label:has(input:checked) { border-color: rgba(231, 164, 60, 0.6); background: var(--saffron-lo); }
.plan label:has(input:focus-visible) { outline: 2px solid var(--saffron); outline-offset: 3px; }
.plan b { font-weight: 600; }
.plan small { display: block; color: rgba(244, 231, 212, 0.66); font-size: 0.84rem; }
.plan .save { font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--saffron); color: var(--on-saffron); }
.plan__every { display: none; grid-column: 2 / -1; padding-top: 6px; }
.plan label:has(input:checked) .plan__every { display: block; }

.buy-row { display: flex; gap: 12px; }
.buy-row .stepper { height: 56px; }
.buy-row .stepper button { width: 46px; }
.add-btn { flex: 1; min-height: 56px; font-size: 1rem; overflow: hidden; }
.add-btn .add-btn__label, .add-btn .add-btn__done { display: inline-flex; align-items: center; gap: 0.6em; transition: transform 0.45s var(--ease-out), opacity 0.3s; }
.add-btn .add-btn__done { position: absolute; inset: 0; justify-content: center; transform: translateY(100%); opacity: 0; }
.add-btn.is-added .add-btn__label { transform: translateY(-120%); opacity: 0; }
.add-btn.is-added .add-btn__done { transform: none; opacity: 1; }
.add-btn svg { width: 18px; height: 18px; }
.ship-note { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--cream-2); padding: 14px 16px; border-radius: var(--r); background: rgba(244, 231, 212, 0.04); }
.ship-note b { color: var(--cream); }
.ship-note .dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(159, 178, 122, 0.16); flex: none; }

.specs { margin-top: 36px; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.specs dt { color: var(--cream-3); }

/* Tasting */
.tasting { background: var(--espresso-deep); }
.tasting__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.tasting .label { margin-bottom: 22px; }
.tasting__cup { margin-top: 26px; font-family: var(--f-display); font-size: clamp(1.35rem, 1.1rem + 0.9vw, 1.9rem); line-height: 1.35; font-weight: 340; font-variation-settings: 'opsz' 72, 'SOFT' 60; color: var(--cream); max-width: 26em; text-wrap: pretty; }
.profile { display: grid; gap: 22px; }
.profile__row { display: grid; grid-template-columns: 7.5em 1fr 2.5em; gap: 16px; align-items: center; }
.profile__row dt { font-weight: 500; }
.profile__row dd:last-child { text-align: right; color: var(--cream-3); font-size: 0.85rem; }
.meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.meter i { height: 8px; border-radius: 4px; background: rgba(244, 231, 212, 0.1); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0; background: var(--saffron); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease-out); transition-delay: calc(var(--i) * 80ms + 200ms); }
.meter i.on::after { transform: none; }
.js .profile:not(.is-in) .meter i.on::after { transform: scaleX(0); }
.wheel { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

.brew { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.brew__card { padding: 28px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), border-color 0.3s; }
.brew__card:hover { transform: translateY(-4px); border-color: var(--line-2); }
.brew__card svg { width: 44px; height: 44px; color: var(--saffron); }
.brew__card h3 { margin-top: 20px; font-family: var(--f-display); font-weight: 420; font-size: 1.5rem; font-variation-settings: 'opsz' 36, 'SOFT' 50; }
.brew__card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.brew__card dt { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-3); font-weight: 600; }
.brew__card dd { font-weight: 600; margin-top: 2px; }
.brew__card p { margin-top: 16px; font-size: 0.9rem; color: var(--cream-2); }

.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; align-items: center; gap: 12px;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(36, 26, 21, 0.94); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.45s var(--ease-out);
}
.sticky-buy.show { transform: none; }
.sticky-buy__name { flex: 1; min-width: 0; }
.sticky-buy__name b { display: block; font-family: var(--f-display); font-weight: 450; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy__name span { font-size: 0.8rem; color: var(--cream-3); }

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: relative; top: 0; }
  .tasting__grid { grid-template-columns: 1fr; }
  .brew { grid-template-columns: 1fr; }
  .sticky-buy { display: flex; }
}
@media (max-width: 560px) {
  .gallery { margin-inline: calc(var(--gutter) * -1); }
  .gallery__stage { border-radius: 0; border-inline: 0; }
  .gallery__thumbs { padding-inline: var(--gutter); }
  .specs div { grid-template-columns: 7.5em 1fr; }
  .profile__row { grid-template-columns: 6.5em 1fr 2.2em; gap: 12px; }
  .buy-row .stepper button { width: 40px; }
}

.stock-note { color: var(--saffron); font-weight: 600; }
.pdp__origin .stock-note::before { color: var(--cream-3); }
.specs--tight { margin-top: 40px; }
.section-head--row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.roast-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.roast-grid--3 .roast__art { aspect-ratio: 4 / 3.4; }
.roast-grid--3 .bag-art { width: 42%; }
.more { padding-top: 0; }
@media (max-width: 1100px) { .roast-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .roast-grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .product-page .footer { padding-bottom: 76px; } }

/* ================= Hero, round 2: this week's label =================
   A cream bag label on the dark counter: the product is the hero. The label sits slightly askew like a sticker, with
   print crop marks, a rotating roast-day stamp, and a slow ticker of the roast week underneath. */
.lhero { position: relative; padding: clamp(28px, 4vw, 56px) 0 0; overflow: hidden; }
.lhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 45%, rgba(231, 164, 60, .12), transparent 70%); }
.lhero__top { display: flex; align-items: end; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; margin-bottom: clamp(22px, 3vw, 36px); }
.lhero__tag { margin: 0; font-family: var(--f-display); font-weight: 380; font-size: clamp(1.35rem, 1.1rem + 1vw, 2rem); line-height: 1.1; letter-spacing: -.01em; font-variation-settings: 'opsz' 48, 'SOFT' 80; color: var(--cream); }
.lhero__tag em { color: var(--saffron); }
.lhero__pick { display: flex; gap: 6px; flex-wrap: wrap; }
.lhero__pick button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: none; color: var(--cream-2); font: 500 .9rem var(--f-text); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.lhero__pick button span { font-size: .72rem; letter-spacing: .12em; opacity: .7; }
.lhero__pick button:hover { color: var(--cream); border-color: var(--cream-3); }
.lhero__pick button[aria-selected=true] { background: var(--cream); border-color: var(--cream); color: var(--espresso); }

.label-card { --paper: #f4e7d4; --pink: #1d1511; position: relative; margin: 0 auto; max-width: 1080px; rotate: -1.2deg; color: var(--pink);
  border-radius: 6px; background:
    radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, .45), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(169, 130, 90, .22), transparent 60%), var(--paper);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 2px 0 rgba(255, 255, 255, .25) inset; }
/* print crop marks at the corners */
.label-card::before, .label-card::after { content: ''; position: absolute; width: 22px; height: 22px; border: 0 solid var(--cream-3); pointer-events: none; }
.label-card::before { left: -14px; top: -14px; border-left-width: 1px; border-top-width: 1px; }
.label-card::after { right: -14px; bottom: -14px; border-right-width: 1px; border-bottom-width: 1px; }
.label-card__in { padding: clamp(18px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(22px, 3.4vw, 44px); transition: opacity .22s var(--ease), transform .3s var(--ease-out); }
.label-card.is-swap .label-card__in { opacity: 0; transform: translateY(-10px); }
.label-card__strip { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1.5px solid currentColor; font: 600 .68rem var(--f-text); letter-spacing: .2em; text-transform: uppercase; }
.label-card__no { margin: clamp(20px, 3vw, 34px) 0 0; font: 600 .74rem var(--f-text); letter-spacing: .2em; text-transform: uppercase; color: #8a4f1f; }
.label-card__name { margin: 6px 0 0; font-family: var(--f-display); font-weight: 360; font-size: clamp(3.1rem, 1.4rem + 7.4vw, 8.6rem); line-height: .92; letter-spacing: -.035em; font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1; }
.label-card__origin { margin: 14px 0 0; font: 500 clamp(.9rem, .85rem + .3vw, 1.05rem) var(--f-text); letter-spacing: .02em; opacity: .78; }
.label-card__notes { display: flex; flex-wrap: wrap; gap: 4px 0; margin: clamp(18px, 2.6vw, 30px) 0 0; padding: 0; list-style: none; font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(1.25rem, 1rem + 1.2vw, 2rem); font-variation-settings: 'opsz' 48, 'SOFT' 100; }
.label-card__notes li:not(:last-child)::after { content: '·'; margin: 0 .45em; color: #b8643a; font-style: normal; }
.label-card__foot { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 28px; margin-top: clamp(22px, 3vw, 38px); padding-top: 18px; border-top: 1px dashed rgba(29, 21, 17, .35); }
.roastbar { display: flex; align-items: center; gap: 6px; font: 600 .66rem var(--f-text); letter-spacing: .16em; text-transform: uppercase; }
.roastbar span:first-child { margin-right: 4px; } .roastbar span:last-child { margin-left: 4px; }
.roastbar i { width: 14px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; rotate: -30deg; transition: background-color .3s; }
.roastbar i.on { background: currentColor; }
.label-card__price { margin: 0; justify-self: end; font: 500 .9rem var(--f-text); }
.label-card__price b { font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -.01em; }
.label-card__price span { opacity: .7; }
.label-card__add { --bg: var(--pink); --fg: var(--paper); --bd: var(--pink); }
.label-card__add:hover { --bg: #3a2a20; --bd: #3a2a20; }
.stamp { position: absolute; z-index: 2; right: clamp(-70px, -4.6vw, -24px); top: 30%; width: clamp(96px, 11vw, 140px); rotate: 8deg; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.stamp__disc { fill: var(--saffron); }
.stamp__text { font: 700 11px var(--f-text); letter-spacing: .12em; text-transform: uppercase; fill: var(--espresso); }
.stamp__mark { color: var(--espresso); }
.stamp text { transform-origin: 70px 70px; animation: stamp-turn 26s linear infinite; }
@keyframes stamp-turn { to { transform: rotate(360deg); } }
.lhero__more { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: clamp(28px, 3.4vw, 44px) 0 0; font-size: .95rem; color: var(--cream-3); }
.lhero__more a { color: var(--cream-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.lhero__more a:hover { color: var(--saffron); text-decoration-color: currentColor; }
.ticker { margin-top: clamp(40px, 5vw, 72px); padding: 14px 0; border-block: 1px solid var(--line); overflow: hidden; }
.ticker__run { display: flex; width: max-content; animation: tick 38s linear infinite; }
.ticker__run span { padding: 0 28px; font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.6rem); font-weight: 300; font-style: italic; letter-spacing: -.01em; color: var(--cream-2); white-space: nowrap; }
.ticker__run span::after { content: '✺'; margin-left: 56px; color: var(--saffron); font-style: normal; font-size: .6em; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (max-width: 760px) {
  .lhero__top { flex-direction: column; align-items: flex-start; }
  .lhero__pick { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter)); margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); scrollbar-width: none; }
  .lhero__pick button { flex: none; }
  .label-card { rotate: -.8deg; }
  .label-card__strip span:last-child { display: none; }
  .label-card__foot { grid-template-columns: 1fr auto; }
  .label-card__foot .roastbar { grid-column: 1 / -1; }
  .label-card__price { justify-self: start; }
  .stamp { top: 64px; right: -26px; width: 84px; }
}
@media (prefers-reduced-motion: reduce) { .stamp text, .ticker__run { animation: none; } .label-card__in { transition: none; } }

/* ================= Real photography and video loops =================
   Media lives in assets/media/ (generated stills and Kling loops, compressed for the web). The bag photos have blank
   labels on purpose: the lettering below is live text laid over the label, so a buyer of the template can rename the
   coffees without new photos. --lx/--ly/--lw/--lh place it on the label, as a share of the photo. */
.shot { position: absolute; left: 0; right: 0; top: 50%; translate: 0 -50%; display: block; aspect-ratio: 1856 / 2304; container-type: inline-size; transition: scale 0.8s var(--ease-out), opacity 0.25s var(--ease); }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot__label { position: absolute; left: var(--lx); top: var(--ly); width: var(--lw); height: var(--lh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.2cqw; padding: 2cqw; text-align: center; color: #2a1f19; mix-blend-mode: multiply; opacity: 0.92; pointer-events: none; }
.shot__label b { font: 600 1.45cqw var(--f-text); letter-spacing: 0.32em; text-transform: uppercase; }
.shot__label i { font-family: var(--f-display); font-style: normal; font-weight: 420; font-size: 3.9cqw; line-height: 0.98; letter-spacing: -0.01em; font-variation-settings: 'opsz' 72, 'SOFT' 100; }
.shot__label small { font: 600 1.1cqw var(--f-text); letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; }
.roast__art .roast__badge { z-index: 2; }
.roast__art:hover .shot { scale: 1.04; }

/* hero: the bag photo beside the label card, the card overlapping it */
.lhero__stage { position: relative; display: grid; align-items: center; }
.lhero__shot { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: var(--r-lg); overflow: hidden; background: var(--roast); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.85); }
.lhero.is-swap .lhero__shot .shot { opacity: 0; }
@media (min-width: 961px) {
  .lhero__stage { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
  .lhero__shot { aspect-ratio: 4 / 5; }
  .lhero__stage .label-card { max-width: none; margin: 0 0 0 -12%; z-index: 2; }
  .lhero__stage .label-card__name { font-size: clamp(3rem, 1.2rem + 4.4vw, 6.4rem); }
}
@media (max-width: 960px) { .lhero__stage .label-card { margin: -18% 3% 0; z-index: 2; } }

/* photos in the old photo spaces: they settle in as they scroll into view */
.photo--real { outline: none; background: var(--crema); }
.photo--real img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.6s var(--ease-out); }
.photo--real.is-in img { transform: none; }

/* subscription: the roaster loop across the top of the panel */
.sub-panel__media { grid-column: 1 / -1; position: relative; margin: calc(clamp(28px, 5vw, 72px) * -1) calc(clamp(28px, 5vw, 72px) * -1) 0; aspect-ratio: 3 / 1; overflow: hidden; background: var(--roast); }
.sub-panel__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.sub-panel__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, var(--card) 100%); pointer-events: none; }
.sub-panel__media span { position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(14px, 2vw, 24px); font: 600 0.72rem var(--f-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream-2); }
@media (max-width: 760px) { .sub-panel__media { margin: -28px -20px 0; aspect-ratio: 16 / 9; } }

/* product gallery: photo, steam loop and farm; photo thumbnails */
.gallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .photo--real img { transform: none; transition: none; } .shot { transition: none; } }

/* ---------- Scroll motion: the Cordillera in depth. As the section passes, the far ridge drifts least, the near
   ridge most, and the moon rises behind them (kapeleta.js sets --k from -1 to 1). Reduce Motion keeps it still. */
.ridges .ridge, .ridges .ridge-moon, .ridges .pins { transform-box: view-box; will-change: transform; }
.ridges .ridge-moon { transform: translateY(calc(var(--k, 0) * 70px)); }
.ridges .ridge--far, .ridges .pins { transform: translateY(calc(var(--k, 0) * 16px)); }
.ridges .ridge--mid { transform: translateY(calc(var(--k, 0) * 30px)); }
.ridges .ridge--near { transform: translateY(calc(var(--k, 0) * 46px)); }
