/* ===================================================================
   Coffee Roamer: inspired by warique.eu's layout and rhythm,
   in Coffee Roamer's own palette (cream, forest ink, sage, cuy brown).
   =================================================================== */

:root {
  --cream: #F2EFDF;
  --cream-2: #E8E4CD;
  --paper: #FAF8EE;
  --ink: #10261B;
  --ink-2: #2B4034;
  --muted: #56665B;
  --sage: #A9BC8F;
  --sage-deep: #6F8558;
  --cuy: #A77A63;
  --bean: #6B3A22;
  --pink: #EFA3B4;
  --orange: #EE8A2F;
  --orange-text: #A4510B; /* 4.8:1 on cream: use for orange TEXT on light backgrounds */
  --line: rgba(16, 38, 27, .16);

  --display: 'Londrina Solid', 'Arial Black', Impact, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Caveat', 'Comic Sans MS', cursive;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 26px;
  --nav-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.footer :focus-visible, .cta :focus-visible, .preorder__box :focus-visible, .ticker :focus-visible { outline-color: var(--sage); }

/* ---------- Type ---------- */
.kicker {
  font: 600 12px/1.3 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.kicker__n { font: 700 22px/1 var(--hand); letter-spacing: 0; text-transform: none; color: var(--orange-text); margin-right: 6px; }
.display {
  font: 900 clamp(44px, 7.6vw, 104px)/.92 var(--display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--ink);
}
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 36ch; margin-top: 22px; }
.muted { color: var(--muted); font-size: 15px; }
.hand { font-family: var(--hand); font-weight: 700; }
.hand-title { font: 700 30px/1.1 var(--hand); color: var(--bean); margin: 34px 0 12px; }

/* Hand-lettered headings (letters split + jittered by main.js) */
.lettering { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .9; }
.lettering .w { display: inline-block; white-space: nowrap; }
.lettering .l { display: inline-block; transform: translateY(var(--ty, 0)) rotate(var(--r, 0deg)); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.lettering .l.flip { transform: translateY(var(--ty, 0)) rotate(var(--r, 0deg)) scaleX(-1); }
.lettering .l.small { font-size: .74em; vertical-align: .18em; }
.lettering:hover .l { transform: translateY(calc(var(--ty, 0) * -1)) rotate(calc(var(--r, 0deg) * -1)); }
.lettering:hover .l.flip { transform: translateY(calc(var(--ty, 0) * -1)) rotate(calc(var(--r, 0deg) * -1)) scaleX(-1); }

/* ---------- Buttons & pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px;
  font: 600 16px/1.15 var(--body);
  text-align: center;
  padding-block: 10px;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ink); color: var(--cream); box-shadow: 0 4px 0 var(--sage-deep); }
.btn--primary:hover { box-shadow: 0 6px 0 var(--sage-deep); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); }
.btn--sage { background: var(--sage); color: var(--ink); border-color: var(--sage); }
.btn--ghost-light { background: transparent; color: var(--cream); border-color: rgba(242, 239, 223, .55); }
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.pill {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; font: 600 14px/1 var(--body); text-decoration: none;
}
.pill--dark { background: var(--ink); color: var(--cream); }
.pill--dark:hover { background: var(--ink-2); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 239, 223, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { max-width: var(--wrap); margin-inline: auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.nav__brand img { width: 34px; height: 34px; border-radius: 50%; }
.nav__word { font: 900 22px/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.pill) { font: 600 13px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink-2); padding: 8px 0; position: relative; }
.nav__links a:not(.pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav__links a:not(.pill):hover::after, .nav__links a.is-active::after { transform: scaleX(1); }

.lang { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang button { border: 0; background: transparent; font: 600 12px/1 var(--body); letter-spacing: .06em; padding: 7px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.lang--light { border-color: rgba(242, 239, 223, .25); margin-top: 22px; }
.lang--light button { color: rgba(242, 239, 223, .65); }
.lang--light button[aria-pressed="true"] { background: var(--cream); color: var(--ink); }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; position: relative; }
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after { position: absolute; left: 11px; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.nav__toggle-bars { top: 21px; }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; left: 0; }
.nav__toggle-bars::before { top: -7px; }
.nav__toggle-bars::after { top: 7px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(28px, 5vw, 64px); }
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero__title { font-size: clamp(64px, 12.5vw, 176px); color: var(--ink); margin: 6px 0 4px; }
.hero__lead { font-size: clamp(18px, 1.8vw, 22px); color: var(--ink-2); max-width: 30ch; margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__art { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero__logo { width: min(100%, 440px); filter: drop-shadow(0 18px 24px rgba(16, 38, 27, .12)); }
.doodle { position: absolute; width: auto; filter: drop-shadow(0 8px 10px rgba(16, 38, 27, .12)); }
.doodle--grinder { height: 160px; left: -4%; bottom: 6%; rotate: -10deg; }
.doodle--milk { height: 118px; right: 0; top: 4%; rotate: 9deg; }
.hero__note { position: absolute; right: -4%; bottom: -6%; font-size: 28px; color: var(--bean); rotate: -6deg; white-space: nowrap; }

.float { animation: float 6s ease-in-out infinite; }
.float--slow { animation-duration: 7.5s; animation-delay: -2s; }
.float--slower { animation-duration: 9s; animation-delay: -4s; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

.ticker { margin-top: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--cream); overflow: hidden; border-block: 3px solid var(--ink); rotate: -1.2deg; width: 104%; margin-left: -2%; }
.ticker__track { display: flex; width: max-content; align-items: center; gap: 28px; padding: 14px 28px 14px 0; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track, .no-motion .ticker__track, .no-motion .float { animation-play-state: paused; }
.ticker__track span { font: 900 clamp(22px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; white-space: nowrap; }
.ticker__track i { font-style: normal; color: var(--sage); letter-spacing: .1em; }
@keyframes ticker { to { transform: translateX(-50%); } }

.motion { display: flex; justify-content: flex-end; margin-top: 14px; }
.motion__btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; border-radius: 999px; padding: 6px 12px; font: 600 12px/1 var(--body); letter-spacing: .06em; color: var(--ink-2); cursor: pointer; }
.motion__btn i { font-style: normal; font-size: 10px; }
.motion__btn:hover { background: var(--cream-2); }

/* ---------- Welcome ---------- */
.welcome { padding-block: clamp(80px, 11vw, 150px); }
.welcome .display { max-width: 14ch; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); margin-top: clamp(48px, 6vw, 80px); }
.feature { border-top: 2px solid var(--ink); padding-top: 18px; }
.feature__n { display: block; font: 700 24px/1 var(--hand); color: var(--orange-text); margin-bottom: 10px; }
.feature h3 { font: 900 30px/1 var(--display); text-transform: uppercase; margin-bottom: 12px; }
.feature p { color: var(--ink-2); font-size: 16px; }

/* ---------- Batch 001 ---------- */
.batch { background: var(--paper); border-block: 2px solid var(--ink); padding-block: clamp(80px, 10vw, 140px); position: relative; }
.section-head { max-width: 760px; }
.section-head .display { font-size: clamp(56px, 10vw, 140px); }
.range { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.bag-card { position: relative; background: var(--cream); border: 2px solid var(--ink); border-radius: var(--radius); padding: 26px 22px 24px; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease; }
.bag-card:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 10px 0 var(--ink); }
.bag { width: 62%; margin: 0 auto 14px; overflow: visible; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1); }
.bag-card:hover .bag { transform: rotate(4deg) scale(1.04); }
.bag__name { font: 900 30px/1 var(--display); fill: var(--ink); letter-spacing: .02em; }
.bag__sub { font: 700 8px/1 var(--body); fill: var(--ink); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--orange); color: var(--ink); font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; rotate: 6deg; border: 2px solid var(--ink); }
.bag-card__name { font: 900 40px/1 var(--display); text-transform: uppercase; }
.bag-card p { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.range-notes { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-top: 14px; }
.range-note { color: var(--ink-2); font-size: 15px; max-width: 60ch; }
.mockup-note { font: 700 20px/1 var(--hand); color: var(--muted); }
.badge--open { background: var(--sage); }

.preorder { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); align-items: start; }
.how { list-style: none; counter-reset: how; display: grid; gap: 4px; }
.how li { counter-increment: how; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.how li::before { content: counter(how, decimal-leading-zero); font: 700 22px/1.2 var(--hand); color: var(--orange-text); }
.preorder__box { background: var(--ink); color: var(--cream); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); padding-bottom: calc(clamp(24px, 3vw, 36px) + 64px); position: relative; overflow: hidden; }
.preorder__box h3 { font: 900 clamp(32px, 3.4vw, 44px)/.95 var(--display); text-transform: uppercase; }
.preorder__box p { color: rgba(242, 239, 223, .82); margin-top: 12px; }
.preorder__box .btn { margin-top: 22px; width: 100%; }
.preorder__box .btn--sage { box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.box-meta { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(242, 239, 223, .2); font-size: 15px; }
.box-meta div { display: flex; justify-content: space-between; gap: 12px; }
.box-meta dt { color: rgba(242, 239, 223, .65); }
.box-meta dd { margin: 0; font-weight: 600; text-align: right; }
.box-price { font: 900 56px/1 var(--display); margin-top: 16px; }
.box-price small { font: 500 14px/1.3 var(--body); color: rgba(242, 239, 223, .7); display: block; margin-top: 6px; }
.box-small { font-size: 14px; }
.box-small a { color: var(--sage); }
.preorder__box .box-cuy { position: absolute; right: -14px; bottom: -14px; width: 92px; opacity: .9; rotate: -12deg; pointer-events: none; }

/* ---------- Bike ---------- */
.bike { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(80px, 11vw, 150px); }
.bike__photo { margin: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.bike__photo img { border-radius: var(--radius); border: 2px solid var(--ink); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-height: calc(100vh - var(--nav-h) - 110px); max-height: calc(100svh - var(--nav-h) - 110px); }
.bike__photo figcaption { font-size: 26px; color: var(--bean); margin-top: 10px; rotate: -2deg; }
.bike .display { font-size: clamp(56px, 9vw, 120px); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tags li { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; background: var(--cream); }
.tags li:nth-child(2) { background: var(--sage); }
.tags li:nth-child(3) { background: var(--pink); }
.price { margin-top: 28px; font-size: clamp(48px, 6vw, 72px); color: var(--ink); }
.proof { display: grid; gap: 4px; margin-top: 28px; background: var(--sage); border: 2px solid var(--ink); border-radius: 18px; padding: 18px 20px; box-shadow: 0 6px 0 var(--ink); rotate: -.6deg; }
.proof__date { font: 700 20px/1 var(--hand); color: var(--ink); }
.proof strong { font: 900 26px/1.05 var(--display); text-transform: uppercase; }
.proof__stats { font-weight: 600; }
.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; margin-bottom: 28px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; color: var(--ink-2); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--cream); font: 900 20px/1 var(--display); }

/* ---------- On the bike ---------- */
.onbike { background: var(--sage); border-block: 2px solid var(--ink); padding-block: clamp(64px, 8vw, 110px); overflow: hidden; }
.onbike__inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 4vw, 60px); align-items: center; }
.onbike__doodle { height: clamp(150px, 18vw, 240px); width: auto; rotate: -8deg; }
.onbike__doodle--milk { height: clamp(120px, 14vw, 190px); rotate: 10deg; }
.onbike .kicker, .onbike .kicker__n { color: var(--ink); }
.onbike .display { font-size: clamp(40px, 6vw, 84px); }
.onbike .lead { color: var(--ink); max-width: 44ch; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(80px, 11vw, 150px); }
.story__art img { width: 100%; max-width: 560px; rotate: -3deg; transition: rotate .5s cubic-bezier(.34, 1.56, .64, 1); }
.story__art:hover img { rotate: 2deg; }
.story .display { font-size: clamp(52px, 8vw, 110px); }
.story em { font-family: var(--hand); font-weight: 700; font-size: 1.3em; font-style: normal; color: var(--orange-text); }

/* ---------- Instagram ---------- */
.insta { padding-bottom: clamp(80px, 10vw, 130px); }
.insta__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.insta__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { display: block; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); background: var(--cream-2); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease; grid-column: span 2; }
.tile:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 8px 0 var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile--wide { grid-column: span 6; display: grid; grid-template-columns: repeat(3, 1fr); background: #EFEDDC; }
.tile--wide img { object-fit: contain; }
.insta__grid .tile:nth-child(n+4) { grid-column: span 3; }
.insta__grid .tile:nth-child(2) { grid-column: span 3; }
.insta__grid .tile:nth-child(3) { grid-column: span 3; }

/* ---------- Dark CTA ---------- */
.cta { position: relative; background: var(--ink); color: var(--cream); border-radius: calc(var(--radius) + 8px); padding: clamp(36px, 6vw, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 60px); align-items: center; overflow: hidden; }
.cta__title { font-size: clamp(64px, 10vw, 150px); color: var(--cream); }
.cta__copy p { color: rgba(242, 239, 223, .85); font-size: 18px; max-width: 36ch; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cta__copy .cta__sign { font-size: 32px; line-height: 1.1; color: var(--sage); margin-top: 22px; rotate: -3deg; }
.cta__cuy { position: absolute; right: 22px; top: 22px; width: 58px; border-radius: 50%; border: 2px solid var(--sage); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(80px, 11vw, 150px); }
.faq .display { font-size: clamp(48px, 7vw, 96px); }
.faq__list details { border-top: 2px solid var(--ink); padding: 18px 0; }
.faq__list details:last-child { border-bottom: 2px solid var(--ink); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: start; gap: 20px; font: 900 clamp(22px, 2.4vw, 28px)/1.1 var(--display); text-transform: uppercase; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; font: 400 30px/1 var(--body); color: var(--orange-text); transition: transform .3s ease; flex: none; }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { color: var(--ink-2); margin-top: 12px; max-width: 60ch; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding-top: clamp(56px, 8vw, 96px); margin-top: clamp(40px, 6vw, 80px); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.footer__brand img { width: 120px; background: var(--cream); border-radius: 20px; padding: 10px; }
.footer__tagline { font: 900 clamp(26px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; margin-top: 20px; }
.footer__h { font: 600 12px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 239, 223, .55); margin-bottom: 16px; }
.footer__list { list-style: none; display: grid; gap: 10px; }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--sage); }
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; margin-top: clamp(40px, 6vw, 72px); padding-block: 22px; border-top: 1px solid rgba(242, 239, 223, .15); font-size: 13px; color: rgba(242, 239, 223, .6); }
.missing { color: var(--orange-text); font-style: italic; }
.footer .missing { color: var(--orange); }

/* ---------- Reveal on scroll (only when JS runs) ---------- */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: none; }
.js .bag-card.reveal, .js .tile.reveal, .js .btn.reveal { transition: opacity .7s ease, translate .7s cubic-bezier(.2, .7, .2, 1), transform .3s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background-color .2s ease, color .2s ease; }

/* ---------- Coffee-bean cursor (warique's ají, re-roasted) ---------- */
@media (pointer: fine) {
  .has-bean-cursor, .has-bean-cursor * { cursor: none !important; }
}
.bean-cursor { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.bean-cursor.is-visible { opacity: 1; }
.bean-cursor__bean { position: absolute; left: -10px; top: -6px; width: 34px; height: 43px; display: block; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .28)); transform-origin: 30% 14%; transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), filter .28s ease; }
.bean-cursor.is-hover .bean-cursor__bean { transform: scale(1.22); filter: drop-shadow(0 6px 7px rgba(0, 0, 0, .32)); animation: bean-wiggle .9s ease-in-out infinite; }
.bean-cursor.is-press .bean-cursor__bean { animation: none; transition-duration: 70ms; transform: scale(.78, .9) rotate(-14deg); }
@keyframes bean-wiggle { 0%, 100% { rotate: -8deg; } 50% { rotate: 6deg; } }
.bean-cursor__halo { position: absolute; left: 0; top: 14px; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 138, 47, .5), rgba(238, 138, 47, 0) 70%); opacity: 0; transform: scale(.4); transition: opacity .3s ease, transform .3s ease; }
.bean-cursor.is-hover .bean-cursor__halo { opacity: 1; transform: scale(1); animation: halo-pulse 1.4s ease-in-out infinite; }
@keyframes halo-pulse { 0%, 100% { opacity: .65; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.12); } }
.bean-cursor__ring { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; opacity: 0; }
.bean-cursor__ring--1 { border: 2.5px solid var(--sage-deep); }
.bean-cursor__ring--2 { border: 2px solid var(--orange); }
.bean-cursor.is-click .bean-cursor__ring--1 { animation: burst .5s ease-out; }
.bean-cursor.is-click .bean-cursor__ring--2 { animation: burst .6s ease-out 50ms; }
@keyframes burst { 0% { opacity: .95; transform: scale(.3); } 100% { opacity: 0; transform: scale(2.4); } }
.bean-cursor__spark { position: absolute; left: 0; top: 0; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; opacity: 0; background: var(--bean); }
.bean-cursor__spark:nth-child(odd) { background: var(--sage-deep); }
.bean-cursor__spark:nth-child(3n) { background: var(--orange); }
.bean-cursor__spark:nth-child(4n) { background: var(--pink); }
.bean-cursor.is-click .bean-cursor__spark { animation: spark .5s ease-out; }
@keyframes spark { 0% { opacity: 1; transform: translate(0) scale(1); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); } }
@media (pointer: coarse), (forced-colors: active) { .bean-cursor { display: none; } }

/* ---------- Legal page ---------- */
.legal { padding-block: clamp(48px, 8vw, 110px); max-width: 860px; }
.legal__back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 30px; }
.legal__back:hover { color: var(--bean); }
.legal .display { font-size: clamp(40px, 8vw, 104px); overflow-wrap: break-word; hyphens: auto; }
.legal + .footer { padding-top: 0; margin-top: 0; }
.legal + .footer .footer__base { margin-top: 0; border-top: 0; }
.legal__updated { color: var(--muted); margin-top: 16px; font-size: 14px; }
.legal__draft { background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; padding: 12px 16px; font-weight: 600; margin-bottom: 28px; }
.legal section { border-top: 2px solid var(--ink); padding-top: 22px; margin-top: 40px; }
.legal h2 { font: 900 clamp(28px, 3.2vw, 40px)/1 var(--display); text-transform: uppercase; margin-bottom: 14px; }
.legal p { color: var(--ink-2); margin-top: 10px; max-width: 64ch; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin-top: 14px; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; font-weight: 600; }
.withdraw { display: grid; gap: 14px; margin-top: 18px; max-width: 520px; }
.withdraw label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.withdraw input[type="text"], .withdraw input[type="email"], .withdraw input[type="date"] { font: 400 16px/1.4 var(--body); padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); }
.withdraw .check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.withdraw .check input { width: 20px; height: 20px; accent-color: var(--ink); }
.withdraw button { cursor: pointer; }
.withdraw__msg { font-size: 15px; color: var(--ink-2); margin-top: 14px; }
.withdraw__msg a { font-weight: 600; }
.withdraw__lead { font-weight: 600; color: var(--ink); }
.withdraw__summary { list-style: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.withdraw__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.withdraw button:disabled { opacity: .45; cursor: not-allowed; }
.model { margin-top: 24px; border: 2px solid var(--ink); border-radius: 14px; padding: 14px 16px; background: var(--paper); }
.model summary { cursor: pointer; font-weight: 700; }
.model p { margin-top: 12px; line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav__links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 2px solid var(--ink); padding: 8px var(--gutter) 20px; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .3s ease, visibility .3s; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  .nav__links.is-open { clip-path: inset(0); visibility: visible; }
  .nav__links a:not(.pill) { padding: 16px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .nav__links a:not(.pill)::after { display: none; }
  .nav__links .pill { margin-top: 16px; justify-content: center; min-height: 48px; }
  .nav__toggle { display: block; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__art { min-height: 0; max-width: 420px; margin: 8px auto 0; }
  .hero__note { position: static; display: block; text-align: center; margin-top: 10px; rotate: -3deg; }
  .features { grid-template-columns: 1fr; }
  .range { grid-template-columns: 1fr 1fr; }
  .range .bag-card:last-child { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(16px, 2.4vw, 28px) / 2); }
  .preorder { grid-template-columns: 1fr; }
  .bike { grid-template-columns: 1fr; }
  .bike__photo { position: static; max-width: 520px; }
  .onbike__inner { grid-template-columns: 1fr; text-align: left; }
  .onbike__doodle { display: none; }
  .story { grid-template-columns: 1fr; }
  .story__art { max-width: 420px; }
  .cta { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__word { display: none; }
  .range { grid-template-columns: 1fr; }
  .range .bag-card:last-child { width: auto; justify-self: stretch; }
  .cta__cuy { width: 44px; top: 14px; right: 14px; }
  .cta__title { padding-right: 40px; }
  .bag { width: 48%; }
  .insta__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile--wide { grid-column: 1 / -1; }
  .insta__grid .tile:nth-child(n) { grid-column: span 1; }
  .insta__grid .tile.tile--wide { grid-column: 1 / -1; }
  .doodle--grinder { height: 110px; }
  .doodle--milk { height: 84px; }
  .hero__note { font-size: 22px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .footer__grid { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 2px; }
  .legal dd { margin-bottom: 10px; }
}

@media (min-width: 981px) and (max-width: 1120px) {
  .nav__word { display: none; }
  .nav__links { gap: 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
