/* Altura Coffee Roasters — concept landing page */
:root {
  --cream: #F1E7D6;
  --cream-2: #E8DAC2;
  --paper: #F8F1E4;
  --espresso: #2B1B14;
  --espresso-2: #3A261C;
  --brown: #5B3A2A;
  --muted: #69544A;
  --terra: #B8502A;
  --terra-dark: #93391F;
  --saffron: #E3AA3E;
  --line: rgba(43, 27, 20, .14);
  --line-2: rgba(43, 27, 20, .24);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1220px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --shadow: 0 1px 2px rgba(43,27,20,.08), 0 18px 40px -22px rgba(43,27,20,.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--cream); color: var(--espresso);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
/* Paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 300; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .17 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.015em; font-variation-settings: "SOFT" 50, "opsz" 96; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2.5px solid var(--terra-dark); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 400; background: var(--espresso); color: var(--cream); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--terra); color: #FFF8EE; }
.btn-primary:hover { background: var(--terra-dark); }
.btn-ghost { border-color: var(--espresso); color: var(--espresso); }
.btn-ghost:hover { background: var(--espresso); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--espresso); }
.btn-cream:hover { background: #fff; }
.btn-block { width: 100%; }

/* Ribbon + header */
.ribbon { background: var(--espresso); color: var(--cream); text-align: center; font-size: 13.5px; padding: 8px var(--gutter); letter-spacing: .01em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(241,231,214,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--espresso); }
.brand-mark { width: 36px; height: 36px; color: var(--terra); flex: none; }
.brand-word { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; display: flex; flex-direction: column; font-variation-settings: "SOFT" 100, "opsz" 48; }
.brand-word small { font-family: var(--sans); font-size: 9.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-top: 4px; color: var(--muted); }
.nav ul { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15.5px; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--terra); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 8px 0 16px; border-radius: 999px; border: 1.5px solid var(--espresso); background: transparent; cursor: pointer; font-weight: 600; font-size: 15px; transition: background-color .2s ease, color .2s ease; }
.cart-btn svg { width: 20px; height: 20px; }
.cart-btn:hover { background: var(--espresso); color: var(--cream); }
.cart-count { min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--terra); color: #FFF8EE; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.cart-count.bump { animation: bump .45s ease; }
@keyframes bump { 40% { transform: scale(1.25); } }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--espresso); background: transparent; cursor: pointer; position: relative; }
.menu-lines, .menu-lines::before, .menu-lines::after { position: absolute; width: 18px; height: 1.8px; background: var(--espresso); border-radius: 2px; transition: transform .25s ease, background-color .2s ease; }
.menu-lines { left: 50%; top: 50%; margin: -1px 0 0 -9px; }
.menu-lines::before, .menu-lines::after { content: ""; left: 0; }
.menu-lines::before { top: -6px; } .menu-lines::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-lines { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(36px, 6vw, 80px) 0 clamp(64px, 8vw, 110px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-dark); }
.hero h1 { font-size: clamp(44px, 6.6vw, 94px); line-height: .98; margin: 22px 0 26px; font-weight: 400; letter-spacing: -0.03em; font-variation-settings: "SOFT" 100, "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--terra); display: block; font-weight: 400; }
.lede { font-size: clamp(17px, 1.45vw, 19.5px); color: var(--brown); max-width: 31em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 46px; padding-top: 24px; border-top: 1px solid var(--line-2); font-size: 14px; color: var(--muted); line-height: 1.4; }
.hero-facts b { display: block; color: var(--espresso); font-family: var(--serif); font-size: 19px; font-weight: 500; margin-bottom: 4px; }

.hero-art { position: relative; width: 100%; max-width: 580px; margin: 0 auto; aspect-ratio: 1 / 1.04; }
.arch { position: absolute; left: 10%; right: 10%; top: 0; bottom: 9%; border-radius: 999px 999px 26px 26px; background: radial-gradient(120% 70% at 50% 18%, #C9663D 0%, var(--terra) 55%, #A9471F 100%); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.sun { position: absolute; width: 78%; left: 11%; top: 5%; opacity: .9; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ridge { position: absolute; left: 0; bottom: 0; width: 100%; height: 34%; }
.hero-bag { position: absolute; width: 40%; aspect-ratio: 200 / 280; height: auto; filter: drop-shadow(0 18px 18px rgba(43,27,20,.25)); }
.hb-1 { left: 3%; bottom: 5%; transform: rotate(-9deg); animation: bagIn .9s .1s cubic-bezier(.2,.7,.2,1) both; --r: -9deg; }
.hb-2 { left: 29%; bottom: 8%; width: 44%; z-index: 2; animation: bagIn .9s .25s cubic-bezier(.2,.7,.2,1) both; --r: 0deg; }
.hb-3 { right: 3%; bottom: 3%; transform: rotate(8deg); animation: bagIn .9s .4s cubic-bezier(.2,.7,.2,1) both; --r: 8deg; }
@keyframes bagIn { from { opacity: 0; transform: translateY(30px) rotate(var(--r)); } to { opacity: 1; transform: rotate(var(--r)); } }
.bean { position: absolute; width: 4.2%; aspect-ratio: 20 / 28; height: auto; z-index: 3; }
.bn-1 { left: 18%; bottom: 0; transform: rotate(40deg); }
.bn-2 { left: 24%; bottom: 1.5%; transform: rotate(-20deg); width: 3.6%; }
.bn-3 { right: 22%; bottom: -1%; transform: rotate(75deg); }
.roast-stamp { position: absolute; top: 6%; right: 0; width: clamp(96px, 11vw, 124px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); color: var(--espresso); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; transform: rotate(10deg); box-shadow: var(--shadow); border: 1.5px dashed var(--terra); outline: 6px solid var(--paper); z-index: 4; }
.roast-stamp span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.roast-stamp b { font-family: var(--serif); font-size: clamp(17px, 1.7vw, 21px); font-weight: 600; margin: 2px 0; letter-spacing: .02em; }

/* Section heads */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2, .process-head h2, .visit-copy h2, .letter h2 { font-size: clamp(34px, 4.6vw, 62px); letter-spacing: -0.025em; font-weight: 400; }
.section-head p:not(.kicker) { margin-top: 18px; color: var(--brown); font-size: clamp(16.5px, 1.3vw, 18.5px); max-width: 36em; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex: none; }
.kicker-light { color: var(--saffron); }

/* Lineup */
.lineup { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .35s ease, transform .35s ease; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product-art { background: var(--tint); padding: 26px 0 18px; display: grid; place-items: center; position: relative; overflow: hidden; }
.product-art::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(43,27,20,.12); top: 12%; }
.product-bag { width: 58%; aspect-ratio: 200 / 280; height: auto; position: relative; transition: transform .5s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 12px 12px rgba(43,27,20,.18)); }
.product:hover .product-bag { transform: translateY(-6px) rotate(-3deg); }
.product-body { min-width: 0; padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.product-meta { font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.product h3 { font-size: clamp(25px, 2.2vw, 30px); margin: 6px 0 14px; }
.product h3 em { font-style: italic; color: var(--terra-dark); font-weight: 400; }
.notes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.notes li { font-size: 13px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--cream); }
.roast-meter { white-space: nowrap; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.roast-meter span { margin-right: 4px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; font-size: 11px; }
.roast-meter i { flex: none; width: 14px; height: 6px; border-radius: 6px; background: var(--cream-2); }
.roast-meter i.on { background: var(--brown); }
.roast-meter small { margin-left: 6px; font-size: 12.5px; }
.buy { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.size { appearance: none; -webkit-appearance: none; height: 40px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%232B1B14' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat; padding: 0 30px 0 14px; font-size: 14px; cursor: pointer; }
.size:focus-visible { outline-offset: 2px; }
.price { font-family: var(--serif); font-size: 24px; font-weight: 500; text-align: right; }
.btn-add { grid-column: 1 / -1; background: var(--espresso); color: var(--cream); min-height: 46px; }
.btn-add:hover { background: var(--terra); color: #FFF8EE; }
.btn-add.added { background: var(--terra); color: #FFF8EE; }

/* Process */
.process { background: var(--espresso); color: var(--cream); padding: clamp(72px, 10vw, 130px) 0; position: relative; overflow: clip; }
.process-head { max-width: 760px; }
.process-head p:not(.kicker) { margin-top: 20px; color: rgba(241,231,214,.82); font-size: clamp(16.5px, 1.3vw, 18.5px); max-width: 38em; }
.altitude { margin: clamp(40px, 6vw, 72px) 0 0; }
.altitude svg { width: 100%; height: auto; overflow: visible; }
.altitude .grid line { stroke: rgba(241,231,214,.12); stroke-dasharray: 2 6; }
.altitude .grid text { fill: rgba(241,231,214,.6); font-size: 13px; font-family: var(--sans); letter-spacing: .05em; }
.ridge-back { fill: #3E281E; }
.ridge-mid { fill: #5A3A2B; }
.ridge-front { fill: #7A4E37; }
.denver { stroke: var(--saffron); stroke-width: 1.5; stroke-dasharray: 6 6; }
.denver-label { fill: var(--saffron); font-size: 14px; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.pin line { stroke: rgba(241,231,214,.4); stroke-width: 1.2; stroke-dasharray: 3 4; }
.pin circle { fill: var(--terra); stroke: var(--cream); stroke-width: 3; }
.pin text { fill: var(--cream); font-family: var(--serif); font-size: 22px; font-style: italic; }
.pin text.alt { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 600; letter-spacing: .1em; fill: rgba(241,231,214,.7); }
.js .altitude .pin { opacity: 0; transform: translateY(14px); transition: opacity .7s ease var(--d), transform .7s cubic-bezier(.2,.7,.2,1) var(--d); }
.js .altitude.in .pin { opacity: 1; transform: none; }
.alt-legend { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin-top: 18px; font-size: 14.5px; }
.alt-legend li { display: flex; align-items: center; gap: 10px; }
.alt-legend li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--terra); box-shadow: 0 0 0 2px var(--cream); flex: none; }
.alt-legend li.dl { grid-column: 1 / -1; }
.alt-legend li.dl::before { border-radius: 0; height: 0; width: 14px; background: none; box-shadow: none; border-top: 2px dashed var(--saffron); }
.alt-legend b { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 17px; }
.alt-legend span { color: rgba(241,231,214,.7); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(241,231,214,.16); }
.step-n { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--saffron); }
.steps h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 10px 0 12px; }
.steps p { color: rgba(241,231,214,.8); font-size: 16px; }

/* Subscribe */
.subscribe { padding: clamp(72px, 10vw, 130px) 0; }
.builder { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.builder-options { display: grid; gap: 14px; }
.opt-group { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.2vw, 26px); background: var(--paper); min-width: 0; }
.opt-group legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--serif); font-size: 22px; display: flex; align-items: center; gap: 12px; }
.opt-group legend span { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--espresso); display: grid; place-items: center; font-family: var(--sans); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.chips label { display: inline-flex; flex-direction: column; justify-content: center; min-height: 46px; padding: 8px 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--cream); cursor: pointer; font-weight: 600; font-size: 15px; line-height: 1.25; transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chips label small { font-weight: 400; font-size: 12.5px; color: var(--muted); }
.chips label:hover { border-color: var(--espresso); }
.chips input:checked + label { background: var(--espresso); border-color: var(--espresso); color: var(--cream); }
.chips input:checked + label small { color: rgba(241,231,214,.75); }
.chips input:focus-visible + label { outline: 2.5px solid var(--terra-dark); outline-offset: 3px; }
.chips-coffee { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips-coffee label:first-of-type { grid-column: span 2; }
.chips-3 label { flex: 1 1 0; min-width: 0; }

.summary { position: sticky; top: 100px; background: var(--espresso); color: var(--cream); border-radius: 26px; padding: clamp(22px, 2.6vw, 32px); overflow: hidden; }
.summary-art { position: relative; height: 210px; margin: -6px -6px 18px; background: radial-gradient(circle at 50% 60%, rgba(227,170,62,.22), transparent 62%); display: flex; justify-content: center; align-items: flex-end; }
.sum-bag { width: 130px; aspect-ratio: 200 / 280; height: auto; position: relative; z-index: 2; transition: transform .45s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 14px 14px rgba(0,0,0,.35)); }
.sum-bag-2 { position: absolute; z-index: 1; left: 50%; bottom: 0; margin-left: -20px; transform: rotate(10deg) scale(.92); opacity: 0; transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); }
.summary.two .sum-bag-2 { opacity: 1; transform: translateX(30px) rotate(10deg) scale(.92); }
.summary.two .sum-bag:not(.sum-bag-2) { transform: translateX(-30px) rotate(-6deg); }
.summary.big .sum-bag:not(.sum-bag-2) { transform: scale(1.12); transform-origin: bottom center; }
.sum-bag.swap { animation: swap .45s ease; }
@keyframes swap { 0% { opacity: .2; translate: 0 10px; } 100% { opacity: 1; translate: 0 0; } }
.summary h3 { font-size: 26px; }
.sum-list { margin: 16px 0 20px; display: grid; gap: 0; }
.sum-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(241,231,214,.14); font-size: 15px; }
.sum-list dt { color: rgba(241,231,214,.68); }
.sum-list dd { margin: 0; font-weight: 600; text-align: right; }
.sum-price p { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.sum-price s { color: rgba(241,231,214,.55); font-size: 17px; }
.sum-price b { font-family: var(--serif); font-size: 44px; font-weight: 500; line-height: 1; letter-spacing: -0.02em; }
.sum-price span { color: rgba(241,231,214,.75); font-size: 14px; }
.sum-month { margin: 8px 0 22px !important; font-size: 14px; color: var(--saffron); display: block !important; }
.sum-month span { color: inherit !important; font-size: inherit !important; }
.summary .concept-msg { color: var(--saffron); }
.summary :focus-visible { outline-color: var(--saffron); }
.sum-fine { font-size: 13px; color: rgba(241,231,214,.6); margin-top: 12px; text-align: center; }
.concept-msg { font-size: 14px; font-weight: 500; color: var(--terra-dark); max-height: 0; overflow: hidden; opacity: 0; transition: opacity .3s ease, max-height .3s ease, margin .3s ease; }
.concept-msg.show { opacity: 1; max-height: 5em; margin-top: 12px; }

/* Brew */
.brew { padding: 0 0 clamp(72px, 10vw, 130px); }
.tablist { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--cream-2); margin-bottom: 22px; max-width: 100%; }
.tablist [role="tab"] { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 15.5px; color: var(--brown); transition: background-color .2s ease, color .2s ease; white-space: nowrap; }
.tablist [role="tab"][aria-selected="true"] { background: var(--espresso); color: var(--cream); }
.tablist [role="tab"]:hover:not([aria-selected="true"]) { color: var(--espresso); background: rgba(43,27,20,.06); }
.panel { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 56px); background: var(--paper); border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3.4vw, 44px); align-items: center; }
.panel[hidden] { display: none; }
.panel:not([hidden]) { animation: panelIn .4s ease both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } }
.panel-art { background: var(--cream); border-radius: 20px; aspect-ratio: 1; display: grid; place-items: center; padding: 12%; }
.panel-art svg { width: 100%; height: auto; }
.drip { animation: drip 1.6s linear infinite; }
@keyframes drip { to { stroke-dashoffset: -20; } }
.specs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 8px; margin: 0 0 26px; }
.specs div { background: var(--cream); border-radius: 14px; padding: 12px 14px; }
.specs dt { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.specs dd { margin: 4px 0 0; font-family: var(--serif); font-size: 19px; line-height: 1.2; }
.specs dd small { display: block; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.method { counter-reset: m; display: grid; gap: 0; }
.method li { display: grid; grid-template-columns: 70px 1fr; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
.method li:last-child { border-bottom: 1px solid var(--line); }
.method b { font-weight: 600; color: var(--terra-dark); font-variant-numeric: tabular-nums; }
.pairing { margin-top: 18px; font-size: 15px; color: var(--muted); }
.pairing a { color: var(--espresso); font-weight: 600; text-underline-offset: 3px; }

/* Visit */
.visit { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.visit-copy > p:not(.kicker) { margin-top: 20px; color: var(--brown); font-size: 18px; max-width: 32em; }
.visit-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line-2); }
.visit-info h3 { font-family: var(--sans); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terra-dark); margin-bottom: 8px; }
.visit-info address, .visit-info p { font-style: normal; font-size: 15.5px; line-height: 1.55; }
.map { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); transform: rotate(1.2deg); border: 8px solid var(--paper); }
.map svg { width: 100%; height: auto; }
.map-pin { animation: pinBob 3s ease-in-out infinite; transform-origin: 240px 228px; }
@keyframes pinBob { 50% { transform: translateY(-5px); } }

/* Letter */
.letter { padding: 0 0 clamp(72px, 10vw, 120px); }
.letter-inner { background: var(--terra); color: #FFF8EE; border-radius: 30px; padding: clamp(32px, 5.5vw, 72px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: end; position: relative; overflow: hidden; }
.letter-inner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; border: 1.5px dashed rgba(255,248,238,.35); }
.letter .kicker-light { color: #FFE2A8; }
.letter-inner > div > p:not(.kicker) { margin-top: 16px; color: rgba(255,248,238,.9); max-width: 30em; }
.letter-form { position: relative; }
.letter-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.letter-row { display: flex; gap: 8px; background: rgba(43,27,20,.18); border: 1.5px solid rgba(255,248,238,.4); border-radius: 999px; padding: 5px; }
.letter-row:focus-within { border-color: #FFF8EE; }
.letter-row input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; padding: 0 16px; color: #FFF8EE; font-size: 16px; }
.letter-row input::placeholder { color: rgba(255,248,238,.72); }
.letter .concept-msg { color: #FFE9C2; }
.letter :focus-visible { outline-color: #FFF8EE; }

/* Footer */
.site-footer { background: var(--espresso); color: var(--cream); padding: 56px 0 96px; }
.site-footer .brand { color: var(--cream); }
.site-footer .brand-word small { color: rgba(241,231,214,.65); }
.site-footer :focus-visible { outline-color: var(--saffron); }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer-tag { margin-top: 16px; color: rgba(241,231,214,.7); font-size: 15px; max-width: 26em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(241,231,214,.14); font-size: 13.5px; color: rgba(241,231,214,.65); }
.footer-legal a { text-decoration: none; }

/* Cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(43,27,20,.45); z-index: 150; opacity: 0; transition: opacity .3s ease; }
.cart-overlay.open { opacity: 1; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 160; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s cubic-bezier(.2,.7,.2,1); box-shadow: -20px 0 60px -20px rgba(43,27,20,.4); }
.cart.open { transform: none; }
.cart[hidden], .cart-overlay[hidden] { display: none; }
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 28px; }
.cart-close { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; display: grid; place-items: center; }
.cart-close svg { width: 20px; height: 20px; }
.cart-close:hover { border-color: var(--espresso); }
.ship-meter { padding: 14px 22px; background: var(--cream); font-size: 14px; }
.ship-bar { height: 6px; border-radius: 6px; background: var(--cream-2); margin-top: 8px; overflow: hidden; }
.ship-bar span { display: block; height: 100%; width: 0; background: var(--terra); border-radius: 6px; transition: width .4s ease; }
.cart-items { flex: 1; overflow-y: auto; padding: 6px 22px; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item svg { width: 56px; height: 78px; }
.ci-name { font-family: var(--serif); font-size: 18px; line-height: 1.2; }
.ci-meta { font-size: 13px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; margin-top: 8px; border: 1.5px solid var(--line-2); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 17px; border-radius: 50%; line-height: 1; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-price { font-weight: 600; }
.ci-remove { border: 0; background: none; padding: 2px 0; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ci-remove:hover { color: var(--terra-dark); }
.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px; padding: 24px; color: var(--muted); }
.cart-empty svg { width: 96px; height: 134px; opacity: .9; transform: rotate(-6deg); }
.cart-empty[hidden] { display: none; }
.cart-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-sub { display: flex; justify-content: space-between; font-size: 17px; }
.cart-sub b { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.cart-note { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }
.cart-foot .concept-msg { text-align: center; }
#checkout:disabled { opacity: .45; cursor: not-allowed; }

/* Toast */
.toast { position: fixed; right: 16px; bottom: 16px; z-index: 140; background: var(--espresso); color: var(--cream); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: none; }

/* Concept badge */
.concept-badge { position: fixed; left: 14px; bottom: 14px; z-index: 120; font-size: 12px; font-weight: 600; text-decoration: none; color: var(--espresso); background: var(--paper); border: 1.5px solid var(--espresso); padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px -10px rgba(43,27,20,.6); letter-spacing: .01em; transition: background-color .2s ease, color .2s ease; }
.concept-badge:hover { background: var(--espresso); color: var(--cream); }

/* Reveal (only once JS is confirmed) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.products .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.products .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.products .reveal:nth-child(4) { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1120px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-bag { width: 46%; }
}
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; top: 76px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 22px; box-shadow: 0 24px 40px -24px rgba(43,27,20,.35); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s ease, transform .25s ease, visibility 0s .25s; }
  .nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s ease, transform .25s ease; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; font-family: var(--serif); font-size: 24px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .hero-grid, .visit-grid, .builder { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 500px; }
  .summary { position: relative; top: 0; }
  .letter-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .panel { grid-template-columns: minmax(0, 1fr); }
  .panel-art { aspect-ratio: auto; height: 200px; padding: 20px; }
  .panel-art svg { height: 100%; width: auto; }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .products { grid-template-columns: minmax(0, 1fr); }
  .product { flex-direction: row; }
  .product-art { flex: 0 0 42%; padding: 20px 0; }
  .product-bag { width: 74%; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .visit-info { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .altitude .pin text, .altitude .grid text, .denver-label { display: none; }
  .pin circle { r: 14; stroke-width: 6; }
  .alt-legend { display: grid; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .ribbon { font-size: 12px; }
  .header-inner { height: 66px; }
  .nav { top: 66px; }
  .brand-word { font-size: 22px; }
  .brand-word small { font-size: 8.5px; letter-spacing: .2em; }
  .brand-mark { width: 32px; height: 32px; }
  .cart-label { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .hero-ctas .btn { flex: 1 1 auto; }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .hero-facts li { display: flex; gap: 10px; align-items: baseline; }
  .hero-facts b { font-size: 17px; margin: 0; white-space: nowrap; }
  .product { flex-direction: column; }
  .product-art { flex: none; }
  .product-bag { width: 46%; }
  .chips-3 { flex-direction: column; }
  .chips-coffee { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chips-3 label { flex: none; }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs div:last-child { grid-column: 1 / -1; }
  .method li { grid-template-columns: 1fr; gap: 2px; }
  .tablist { display: flex; }
  .tablist [role="tab"] { flex: 1; padding: 10px 8px; }
  .visit-info { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .letter-row { flex-direction: column; border-radius: 20px; }
  .letter-row input { height: 48px; }
  .concept-badge { font-size: 11px; left: 10px; bottom: 10px; padding: 5px 10px; }
  .toast { left: 16px; right: 16px; bottom: 54px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .altitude .pin { opacity: 1; transform: none; }
}
