/* ============================================================
   Blunts Joints N Coffee — earthy: good weed × good coffee
   ============================================================ */

:root {
  /* neutrals / coffee */
  --espresso:   #23160a;
  --ink:        #2c1d0e;
  --ink-soft:   #6f5a42;
  --cream:      #faf3e6;
  --cream-2:    #f4e9d5;
  --latte:      #e9d6b6;
  --coffee:     #7a5230;
  --coffee-dk:  #46311c;
  --caramel:    #c79a63;
  --caramel-dk: #a9763f;

  /* cannabis greens */
  --leaf:       #5e9650;
  --leaf-2:     #6fae57;
  --leaf-dk:    #3f6b34;
  --forest:     #2c4626;
  --sage:       #9bbf86;

  /* accent */
  --gold:       #d8a23f;
  --gold-soft:  #efce86;
  --terra:      #c75b43;

  --bg-top:     #fbf5ea;
  --bg-bottom:  #efe1c9;

  --maxw: 1180px;
  --radius: 28px;
  --radius-lg: 40px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.34,1.56,.64,1);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
[hidden] { display: none !important; }

::selection { background: var(--leaf); color: #fff; }

/* ---------- shared ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--leaf-dk);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 5.4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--espresso);
}

.handwrite {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 1.35em;
  color: var(--coffee);
  line-height: 1;
}

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .95rem 1.7rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform .35s var(--ease-soft), box-shadow .35s var(--ease), background .35s var(--ease);
  will-change: transform;
}
.btn span { position: relative; z-index: 1; }

.btn--primary {
  color: #fff;
  background: linear-gradient(120deg, var(--leaf-2) 0%, var(--leaf-dk) 45%, var(--coffee) 100%);
  background-size: 200% 200%;
  box-shadow: 0 12px 28px -10px rgba(63,107,52,.6), inset 0 1px 0 rgba(255,255,255,.28);
  animation: btnShift 7s ease infinite;
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 38px -10px rgba(63,107,52,.75); }

.btn--ghost {
  color: var(--coffee-dk);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1.5px rgba(122,82,48,.35);
}
.btn--ghost:hover { transform: translateY(-3px); background: rgba(255,255,255,.85); }

.btn--cream {
  color: var(--coffee-dk);
  background: var(--cream);
  box-shadow: 0 10px 24px -10px rgba(40,25,10,.5);
}
.btn--cream:hover { transform: translateY(-3px); background: #fff; }

.btn--pill { padding: .6rem 1.1rem .6rem 1.3rem; font-size: .9rem; }

@keyframes btnShift { 0%,100%{ background-position:0% 50% } 50%{ background-position:100% 50% } }

/* ============================================================
   Ambient layers
   ============================================================ */
.sparkles {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .42;
  mix-blend-mode: multiply;
}
.blob--1 { width: 44vw; height: 44vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, var(--caramel) 0%, transparent 70%); animation: drift1 22s var(--ease) infinite; }
.blob--2 { width: 40vw; height: 40vw; right: -6vw; top: 4vw;
  background: radial-gradient(circle, var(--leaf) 0%, transparent 70%); animation: drift2 26s var(--ease) infinite; }
.blob--3 { width: 50vw; height: 50vw; left: 18vw; top: 38vh;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%); animation: drift3 30s var(--ease) infinite; }
.blob--4 { width: 36vw; height: 36vw; right: 6vw; bottom: 6vh;
  background: radial-gradient(circle, var(--sage) 0%, transparent 70%); animation: drift1 28s var(--ease) infinite reverse; }
.blob--5 { width: 30vw; height: 30vw; left: -4vw; bottom: 10vh;
  background: radial-gradient(circle, var(--coffee) 0%, transparent 70%); animation: drift2 24s var(--ease) infinite; }

@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(6vw,4vh) scale(1.12) } }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(-5vw,5vh) scale(1.08) } }
@keyframes drift3 { 0%,100%{ transform: translate(0,0) scale(1) } 50%{ transform: translate(4vw,-5vh) scale(1.15) } }

.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 5;
  width: 380px; height: 380px; margin: -190px 0 0 -190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,162,63,.28) 0%, transparent 65%);
  mix-blend-mode: screen;
  pointer-events: none;
  transition: opacity .4s;
  opacity: 0;
}

/* sparkle trail particles (created in JS) */
.spark {
  position: fixed; z-index: 80; pointer-events: none;
  width: 10px; height: 10px;
  background: radial-gradient(circle, #fff 0%, var(--gold) 60%, transparent 70%);
  border-radius: 50%;
  animation: sparkFade .8s ease forwards;
}
@keyframes sparkFade {
  0% { transform: scale(1) translateY(0); opacity: 1; }
  100% { transform: scale(0) translateY(-18px); opacity: 0; }
}

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  position: fixed; inset: 0; z-index: 999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem;
  background: linear-gradient(180deg, #fbf5ea, #ecdcc2);
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__mark { position: relative; width: 120px; height: 120px; display: grid; place-items: center; }
.preloader__logo { width: 78px; animation: bob 2.2s ease-in-out infinite; }
.preloader__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(122,82,48,.18);
  border-top-color: var(--leaf);
  animation: spin 1s linear infinite;
}
.preloader__text { font-family: var(--font-hand); font-size: 1.5rem; color: var(--coffee); }
@keyframes spin { to { transform: rotate(360deg) } }
@keyframes bob { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-10px) } }

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(34px); }
html.js .reveal.in-view { opacity: 1; transform: none; }
.reveal:nth-child(2) { transition-delay: .06s; }
.reveal:nth-child(3) { transition-delay: .12s; }

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 2.4rem);
  max-width: calc(var(--maxw) + 4vw); margin: 0 auto;
  transition: padding .4s var(--ease);
}
.nav::before {
  content: ""; position: absolute; inset: .55rem clamp(.6rem,3vw,1.6rem);
  border-radius: 100px;
  background: rgba(250,243,230,.62);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: 0 10px 30px -16px rgba(40,25,10,.4), inset 0 0 0 1px rgba(122,82,48,.14);
  opacity: 0; transition: opacity .45s var(--ease);
  z-index: -1;
}
.nav.is-stuck::before { opacity: 1; }
.nav.is-stuck { padding-top: .55rem; padding-bottom: .55rem; }

.nav__brand { display: flex; align-items: center; gap: .6rem; padding-left: .4rem; }
.nav__logo { width: 42px; height: 42px; object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(70,49,28,.3)); transition: transform .5s var(--ease-soft); }
.nav__brand:hover .nav__logo { transform: rotate(-8deg) scale(1.08); }
.nav__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--espresso); }
.nav__name em { color: var(--leaf-dk); font-style: italic; }

.nav__links { display: flex; gap: 1.8rem; }
.nav__links a {
  position: relative; font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: color .3s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--leaf); border-radius: 2px; transition: width .35s var(--ease);
}
.nav__links a:hover { color: var(--espresso); }
.nav__links a:hover::after { width: 100%; }

/* nav bag */
.nav__bag {
  position: relative; display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  color: #fff; cursor: pointer; border: none;
  padding: .55rem .85rem; border-radius: 100px;
  background: linear-gradient(120deg, var(--leaf-2), var(--leaf-dk));
  box-shadow: 0 10px 24px -12px rgba(63,107,52,.8);
  transition: transform .35s var(--ease-soft), box-shadow .3s;
}
.nav__bag:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(63,107,52,.9); }
.nav__bag-count {
  min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 100px;
  display: inline-grid; place-items: center; font-size: .78rem;
  background: rgba(255,255,255,.9); color: var(--leaf-dk);
}
.nav__bag-count[data-empty="true"] { display: none; }
.nav__bag.pop { animation: bagPop .45s var(--ease-soft); }
@keyframes bagPop { 0%{ transform: scale(1) } 40%{ transform: scale(1.16) } 100%{ transform: scale(1) } }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; z-index: 4;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: 2rem;
  max-width: var(--maxw); margin: 0 auto;
  padding: 7rem clamp(1.3rem, 5vw, 2.4rem) 4rem;
}
.hero__inner { position: relative; z-index: 2; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.02em;
  margin: .4rem 0 1.4rem;
  color: var(--espresso);
}
.hero__title .line { display: block; }
.hero__title em {
  font-style: italic;
  background: linear-gradient(120deg, var(--leaf-2), var(--gold), var(--caramel-dk));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  color: transparent;
  animation: hueText 6s ease infinite;
}
.hero__title .line:last-child {
  background: linear-gradient(120deg, var(--coffee), var(--leaf), var(--gold));
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hueText 8s ease infinite;
}
@keyframes hueText { 0%,100%{ background-position:0% 50% } 50%{ background-position:100% 50% } }

.hero__subtitle {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 31rem;
  margin-bottom: 2rem;
}
.hero__subtitle .handwrite { font-size: 1.7em; }

.hero__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* floating logo */
.hero__logo {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  justify-self: center;
}
.hero__logo-img {
  width: clamp(240px, 34vw, 420px);
  filter: drop-shadow(0 30px 50px rgba(70,49,28,.35));
  animation: floatLogo 6s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-22px) rotate(1deg); }
}
.hero__halo {
  position: absolute; z-index: 0;
  width: clamp(300px, 42vw, 540px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.65) 0%, rgba(216,162,63,.28) 40%, transparent 70%);
  animation: pulseHalo 5s ease-in-out infinite;
}
@keyframes pulseHalo { 0%,100%{ transform: scale(1); opacity:.8 } 50%{ transform: scale(1.12); opacity:1 } }
.hero__pedestal {
  position: absolute; bottom: 4%; z-index: 1;
  width: 58%; height: 30px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(70,49,28,.3) 0%, transparent 70%);
  filter: blur(6px);
  animation: shadowPulse 6s ease-in-out infinite;
}
@keyframes shadowPulse { 0%,100%{ transform: scale(1); opacity:.7 } 50%{ transform: scale(.86); opacity:.45 } }

/* rising steam */
.steam { position: absolute; top: 6%; left: 50%; z-index: 3; transform: translateX(-30%); }
.steam span {
  position: absolute; bottom: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.9), rgba(216,162,63,.2) 70%, transparent);
  opacity: 0;
  animation: rise 4.5s ease-in infinite;
}
.steam span:nth-child(1){ left: 0; animation-delay: 0s; }
.steam span:nth-child(2){ left: 14px; animation-delay: 1.1s; }
.steam span:nth-child(3){ left: -8px; animation-delay: 2.1s; }
.steam span:nth-child(4){ left: 22px; animation-delay: 2.8s; }
.steam span:nth-child(5){ left: 6px; animation-delay: 3.5s; }
@keyframes rise {
  0% { transform: translateY(0) scale(.6); opacity: 0; }
  20% { opacity: .8; }
  100% { transform: translateY(-130px) translateX(18px) scale(2.4); opacity: 0; }
}

/* hero floaters (emoji) */
.hero__floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute; bottom: -40px;
  font-size: 1.5rem;
  opacity: 0;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 4px 8px rgba(70,49,28,.2));
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg) scale(.8); opacity: 0; }
  10% { opacity: .9; }
  90% { opacity: .9; }
  100% { transform: translateY(-115vh) rotate(220deg) scale(1.1); opacity: 0; }
}

/* scroll cue */
.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .55rem;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--ink-soft);
  z-index: 5;
}
.scroll-cue__dot {
  width: 26px; height: 42px; border-radius: 100px;
  border: 2px solid rgba(122,82,48,.5);
  position: relative;
}
.scroll-cue__dot::after {
  content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--leaf-dk);
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0%{ top:7px; opacity:1 } 70%{ top:24px; opacity:0 } 100%{ top:7px; opacity:0 } }

/* ============================================================
   Feelings ribbon
   ============================================================ */
.ribbon {
  position: relative; z-index: 4;
  padding: 2.6rem 0;
  background: linear-gradient(100deg, var(--leaf-dk), var(--coffee) 52%, var(--gold));
  background-size: 200% auto;
  animation: hueText 14s ease infinite;
  transform: rotate(-1.4deg) scale(1.04);
  box-shadow: 0 20px 50px -20px rgba(40,25,10,.5);
  overflow: hidden;
}
.marquee { overflow: hidden; white-space: nowrap; }
.marquee + .marquee { margin-top: .4rem; }
.marquee__track { display: inline-flex; will-change: transform; animation: scroll 28s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 34s; }
.marquee__track span {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  color: var(--cream); padding-right: .4rem;
}
.marquee--reverse .marquee__track span { font-style: normal; font-family: var(--font-body); font-weight: 600; opacity: .85; font-size: clamp(1rem,2vw,1.4rem); }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ============================================================
   Story / About
   ============================================================ */
.story {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.3rem, 5vw, 2.4rem);
}
.story__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.story__body { font-size: clamp(1.05rem,1.4vw,1.2rem); color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 34rem; }
.story__body strong { color: var(--espresso); }
.story__body em { font-family: var(--font-display); font-style: italic; color: var(--leaf-dk); }
.section-title { margin-bottom: 1.4rem; }
.story__sign { font-size: 2rem; margin-top: .5rem; }

/* orbit art */
.story__art { display: grid; place-items: center; }
.orbit { position: relative; width: min(360px, 78vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit__core {
  width: 56%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #fff, var(--latte) 55%, var(--caramel) 100%);
  box-shadow: 0 24px 50px -16px rgba(122,82,48,.55), inset 0 2px 10px rgba(255,255,255,.6);
  animation: floatLogo 7s ease-in-out infinite;
}
.orbit__core img { width: 64%; filter: drop-shadow(0 8px 12px rgba(70,49,28,.3)); }
.orbit__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px dashed rgba(122,82,48,.38);
}
.orbit__ring i {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 1.8rem; display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.85); box-shadow: 0 10px 22px -8px rgba(70,49,28,.5);
}
.orbit__ring--1 { animation: orbitSpin 14s linear infinite; }
.orbit__ring--2 { inset: -34px; animation: orbitSpin 20s linear infinite reverse; }
.orbit__ring--3 { inset: 30px; animation: orbitSpin 17s linear infinite; }
.orbit__ring--4 { inset: -16px; animation: orbitSpin 23s linear infinite; animation-delay: -11.5s; }
.orbit__ring--1 i, .orbit__ring--3 i { animation: counterSpin 14s linear infinite; }
.orbit__ring--2 i { animation: counterSpin 20s linear infinite reverse; }
.orbit__ring--4 i { animation: counterSpin 23s linear infinite; animation-delay: -11.5s; }
@keyframes orbitSpin { to { transform: rotate(360deg) } }
@keyframes counterSpin { to { transform: translateX(-50%) rotate(-360deg) } }

/* ============================================================
   Values manifesto
   ============================================================ */
.values {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) clamp(1.3rem, 5vw, 2.4rem) clamp(5rem,11vw,8rem);
}
.values__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem,5vw,4rem); }
.values__head .section-title { margin-bottom: 1.2rem; }
.values__intro { color: var(--ink-soft); font-size: clamp(1rem,1.3vw,1.15rem); }

.values__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 1.8vw, 1.4rem);
}
.vcard {
  position: relative;
  padding: 2rem 1.5rem 1.8rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -22px rgba(40,25,10,.4), inset 0 0 0 1px rgba(255,255,255,.55);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  transform-style: preserve-3d;
  overflow: hidden;
}
.vcard::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--c1), var(--c2));
  opacity: .16; transition: opacity .4s var(--ease);
}
.vcard:hover { box-shadow: 0 30px 55px -22px rgba(40,25,10,.5); }
.vcard:hover::before { opacity: .3; }

.vcard > * { position: relative; z-index: 1; }
.vcard__icon {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 20px;
  margin-bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(150deg, var(--c1), var(--c2));
  box-shadow: 0 12px 24px -10px var(--c1), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .5s var(--ease-soft);
}
.vcard:hover .vcard__icon { transform: rotate(-8deg) scale(1.08); }
.vcard__icon svg { width: 30px; height: 30px; }
.vcard h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.45rem;
  margin-bottom: .45rem; color: var(--espresso);
}
.vcard p { font-size: .96rem; color: var(--ink-soft); }

/* ============================================================
   Shop / products
   ============================================================ */
.shop {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(1rem,3vw,2rem) clamp(1.3rem, 5vw, 2.4rem) clamp(5rem,11vw,8rem);
}
.shop__head { text-align: center; max-width: 40rem; margin: 0 auto clamp(2.5rem,5vw,3.5rem); }
.shop__head .section-title { margin-bottom: 1.2rem; }
.shop__intro { color: var(--ink-soft); font-size: clamp(1rem,1.3vw,1.15rem); }

.shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem,2.4vw,1.8rem); }

.pcard {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius);
  background: rgba(255,255,255,.7);
  box-shadow: 0 22px 46px -24px rgba(40,25,10,.45), inset 0 0 0 1px rgba(255,255,255,.5);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.pcard:hover { transform: translateY(-8px); box-shadow: 0 36px 60px -26px rgba(40,25,10,.55); }
.pcard__tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: #fff; padding: .35rem .75rem; border-radius: 100px;
  background: linear-gradient(120deg, var(--leaf), var(--leaf-dk));
  box-shadow: 0 8px 18px -8px rgba(63,107,52,.7);
}
.pcard__media {
  aspect-ratio: 1; display: grid; place-items: center; padding: 1.4rem;
  background: radial-gradient(circle at 50% 35%, #fff 0%, var(--cream-2) 70%, var(--latte) 100%);
}
.pcard__media img {
  width: 86%; height: 86%; object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 16px 24px rgba(70,49,28,.28));
  transition: transform .5s var(--ease);
}
.pcard:hover .pcard__media img { transform: scale(1.06) rotate(-1.5deg); }

.pcard__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.pcard__body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--espresso); }
.pcard__body p { font-size: .95rem; color: var(--ink-soft); flex: 1; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; gap: .8rem; }
.pcard__price { font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--coffee); }
.btn--add { padding: .7rem 1.1rem; font-size: .9rem; }
.btn--add svg { transition: transform .35s var(--ease); }
.btn--add:hover svg { transform: rotate(90deg); }

/* ============================================================
   Contact
   ============================================================ */
.contact {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.3rem, 5vw, 2.4rem) clamp(4rem,9vw,7rem);
}
.contact__inner {
  display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(2rem,4vw,3.5rem);
  align-items: stretch;
}
.contact__lead { color: var(--ink-soft); font-size: 1.08rem; max-width: 28rem; margin: 0 0 1.8rem; }

.contact__list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list .contact__ico {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  color: #fff; background: linear-gradient(150deg, var(--leaf), var(--coffee));
  box-shadow: 0 12px 24px -12px rgba(63,107,52,.7);
}
.contact__ico svg { width: 22px; height: 22px; color: #fff; }
.contact__list strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-dk); }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 500; }
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--leaf-dk); }

/* contact form */
.cform {
  background: rgba(255,255,255,.72);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem,3vw,2.4rem);
  box-shadow: 0 26px 56px -28px rgba(40,25,10,.5), inset 0 0 0 1px rgba(255,255,255,.5);
  display: flex; flex-direction: column; gap: 1rem;
}
.cform__row { display: flex; flex-direction: column; gap: .4rem; }
.cform__row label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--coffee); padding-left: .2rem; }
.cform input, .cform textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: var(--cream); border: 1.5px solid rgba(122,82,48,.18); border-radius: 16px;
  padding: .85rem 1.1rem; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.cform input::placeholder, .cform textarea::placeholder { color: #b09a7c; }
.cform input:focus, .cform textarea:focus {
  border-color: var(--leaf); background: #fff;
  box-shadow: 0 0 0 4px rgba(94,150,80,.16);
}
.cform__send { align-self: flex-start; margin-top: .3rem; }
.cform__send svg { transition: transform .35s var(--ease); }
.cform__send:hover svg { transform: translateX(3px); }
.cform__note { font-family: var(--font-hand); font-size: 1.35rem; color: var(--leaf-dk); min-height: 1.2rem; }

/* ============================================================
   Join / community
   ============================================================ */
.join {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 clamp(1.3rem, 5vw, 2.4rem) clamp(5rem,11vw,8rem);
}
.join__card {
  position: relative; overflow: hidden;
  text-align: center;
  max-width: 720px; margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 50% -10%, rgba(255,255,255,.42), transparent 60%),
    linear-gradient(150deg, var(--leaf) 0%, var(--leaf-dk) 48%, var(--coffee-dk) 100%);
  box-shadow: 0 40px 80px -30px rgba(40,25,10,.6), inset 0 0 0 1px rgba(255,255,255,.18);
}
.join__sparkle {
  position: absolute; top: 1.4rem; right: 1.8rem; font-size: 2rem; color: var(--gold-soft);
  animation: twinkle 2.6s ease-in-out infinite;
}
@keyframes twinkle { 0%,100%{ transform: scale(1) rotate(0); opacity:.6 } 50%{ transform: scale(1.4) rotate(40deg); opacity:1 } }
.join__card .eyebrow { color: var(--gold-soft); opacity: .95; }
.join__card .section-title { color: #fff; margin-bottom: 1rem; }
.join__copy { color: #fff; opacity: .92; max-width: 30rem; margin: 0 auto 2rem; font-size: 1.05rem; }

.join__form {
  display: flex; gap: .6rem; max-width: 460px; margin: 0 auto;
  background: rgba(255,255,255,.94);
  padding: .5rem; border-radius: 100px;
  box-shadow: 0 16px 36px -16px rgba(20,12,4,.5);
}
.join__form input {
  flex: 1; border: none; background: transparent; outline: none;
  padding: .7rem 1.1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.join__form input::placeholder { color: #b09a7c; }
.join__form .btn { white-space: nowrap; }
.join__note { color: var(--gold-soft); font-family: var(--font-hand); font-size: 1.35rem; min-height: 1.5rem; margin-top: 1rem; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  position: relative; z-index: 4;
  padding: clamp(2.5rem,5vw,3.5rem) clamp(1.3rem,5vw,2.4rem) 2rem;
  border-top: 1px solid rgba(122,82,48,.2);
}
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.footer__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: var(--espresso); }
.footer__brand img { width: 40px; }
.footer__brand em { color: var(--leaf-dk); font-style: italic; }
.footer__tag { font-size: 1.5rem; }
.footer__links { display: flex; align-items: center; gap: 1.4rem; }
.footer__links a { font-weight: 500; color: var(--ink-soft); transition: color .3s; }
.footer__links a:hover { color: var(--leaf-dk); }
.footer__ig {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream-2); color: var(--leaf-dk);
  box-shadow: 0 8px 18px -10px rgba(40,25,10,.5);
  transition: transform .35s var(--ease-soft), background .3s, color .3s;
}
.footer__ig:hover { transform: translateY(-3px) scale(1.06); background: linear-gradient(135deg, var(--leaf), var(--coffee)); color: #fff; }
.footer__ig svg { width: 19px; height: 19px; }
.footer__base {
  max-width: var(--maxw); margin: 2rem auto 0; padding-top: 1.4rem;
  border-top: 1px solid rgba(122,82,48,.18);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-soft);
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 200;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: .5rem;
  background: var(--espresso); color: var(--cream);
  font-weight: 500; font-size: .95rem;
  padding: .85rem 1.4rem; border-radius: 100px;
  box-shadow: 0 18px 40px -14px rgba(20,12,4,.6);
  transition: transform .5s var(--ease-soft);
  pointer-events: none; max-width: 90vw;
}
.toast.show { transform: translate(-50%, 0); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6.5rem; gap: 1rem; }
  .hero__inner { order: 2; }
  .hero__logo { order: 1; margin-bottom: 1rem; }
  .hero__subtitle { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .nav__links { display: none; }
  .values__grid { grid-template-columns: repeat(2, 1fr); }
  .shop__grid { grid-template-columns: 1fr 1fr; }
  .story__inner { grid-template-columns: 1fr; text-align: center; }
  .story__body { margin-left: auto; margin-right: auto; }
  .story__art { order: -1; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__info { text-align: center; }
  .contact__list li { justify-content: center; text-align: left; }
  .contact__lead { margin-left: auto; margin-right: auto; }
  .footer__inner { flex-direction: column; text-align: center; }
}
@media (max-width: 540px) {
  .values__grid { grid-template-columns: 1fr; }
  .shop__grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .join__form { flex-direction: column; border-radius: 26px; padding: .8rem; }
  .join__form .btn { width: 100%; justify-content: center; }
  .nav__name { display: none; }
  .footer__base { flex-direction: column; text-align: center; }
}

/* ============================================================
   Sub-pages (product / checkout) + solid nav
   ============================================================ */
.nav--solid::before { opacity: 1; }
.subpage {
  position: relative; z-index: 4;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(6.5rem, 11vw, 8rem) clamp(1.3rem, 5vw, 2.4rem) clamp(3rem, 6vw, 5rem);
  min-height: 72vh;
}

/* breadcrumb */
.crumb { display: flex; align-items: center; gap: .5rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: 1.6rem; flex-wrap: wrap; }
.crumb a { transition: color .3s; }
.crumb a:hover { color: var(--leaf-dk); }
.crumb b { color: var(--coffee); font-weight: 600; }
.crumb span { opacity: .45; }

/* ============================================================
   Quantity stepper (shared)
   ============================================================ */
.qty { display: inline-flex; align-items: center; gap: .15rem; background: var(--cream-2); border-radius: 100px; padding: .25rem; }
.qty__btn {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  background: #fff; color: var(--coffee); font-size: 1.15rem; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 2px 6px -2px rgba(40,25,10,.3); transition: transform .2s, background .2s, color .2s;
}
.qty__btn:hover { background: var(--leaf); color: #fff; transform: translateY(-1px); }
.qty__num { min-width: 1.8rem; text-align: center; font-weight: 600; color: var(--espresso); }
.qty--lg .qty__btn { width: 40px; height: 40px; font-size: 1.35rem; }
.qty--lg .qty__num { min-width: 2.4rem; font-size: 1.15rem; }

/* ============================================================
   Cart drawer
   ============================================================ */
.cart { position: fixed; inset: 0; z-index: 150; visibility: hidden; overflow: hidden; }
.cart.open { visibility: visible; }
.cart__overlay {
  position: absolute; inset: 0; background: rgba(35,22,10,.5);
  opacity: 0; transition: opacity .45s var(--ease); backdrop-filter: blur(2px);
}
.cart.open .cart__overlay { opacity: 1; }
.cart__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(430px, 92vw);
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #fdf8ee, #f4e9d5);
  border-radius: 26px 0 0 26px;
  box-shadow: -30px 0 70px -20px rgba(35,22,10,.55);
  transform: translateX(102%); transition: transform .5s var(--ease);
}
.cart.open .cart__panel { transform: none; }

.cart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 1.5rem; border-bottom: 1px solid rgba(122,82,48,.14);
}
.cart__head h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; color: var(--espresso); }
.cart__close {
  border: none; background: var(--cream-2); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--coffee);
  transition: transform .35s var(--ease), background .3s;
}
.cart__close:hover { background: var(--latte); transform: rotate(90deg); }

.cart__items { flex: 1; overflow-y: auto; padding: .2rem 1.5rem; }
.citem {
  display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; align-items: center;
  padding: 1rem 0; border-bottom: 1px solid rgba(122,82,48,.13);
}
.citem__media { width: 64px; height: 64px; border-radius: 16px; overflow: hidden; background: var(--cream-2); }
.citem__media img { width: 100%; height: 100%; object-fit: cover; }
.citem__main { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.citem__name { font-family: var(--font-display); font-weight: 600; color: var(--espresso); }
.citem__name:hover { color: var(--leaf-dk); }
.citem__unit { font-size: .82rem; color: var(--ink-soft); }
.citem__end { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.citem__line { font-weight: 600; color: var(--coffee); white-space: nowrap; }
.citem__remove { border: none; background: none; color: var(--ink-soft); font-size: .76rem; cursor: pointer; text-decoration: underline; }
.citem__remove:hover { color: var(--terra); }

.cart__empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1rem; text-align: center; padding: 2rem; }
.cart__empty-mark img { width: 120px; opacity: .9; animation: floatLogo 6s ease-in-out infinite; }
.cart__empty p { color: var(--ink-soft); font-size: 1.1rem; }

.cart__foot { padding: 1.2rem 1.5rem 1.5rem; border-top: 1px solid rgba(122,82,48,.14); }
.cart__row { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; color: var(--ink); }
.cart__row strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--espresso); }
.cart__ship { font-size: .8rem; color: var(--ink-soft); margin: .35rem 0 1rem; }
.cart__checkout { width: 100%; justify-content: center; }
.cart__keep { width: 100%; margin-top: .6rem; background: none; border: none; color: var(--ink-soft); cursor: pointer; font-family: var(--font-body); font-weight: 600; padding: .5rem; }
.cart__keep:hover { color: var(--coffee); }

/* ============================================================
   Product detail page
   ============================================================ */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.pd__media {
  position: relative; border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 3rem); display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, #fff, var(--cream-2) 70%, var(--latte));
  box-shadow: 0 26px 56px -28px rgba(40,25,10,.5), inset 0 0 0 1px rgba(255,255,255,.5);
}
.pd__media img { width: 78%; border-radius: 18px; filter: drop-shadow(0 20px 30px rgba(70,49,28,.3)); }
.pd__tag {
  position: absolute; top: 1.2rem; left: 1.2rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  padding: .35rem .75rem; border-radius: 100px;
  background: linear-gradient(120deg, var(--leaf), var(--leaf-dk));
  box-shadow: 0 8px 18px -8px rgba(63,107,52,.7);
}
.pd__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.05; color: var(--espresso); }
.pd__price { font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: var(--coffee); margin: .4rem 0 1rem; }
.pd__blurb { font-size: 1.15rem; color: var(--ink); margin-bottom: .8rem; }
.pd__long { color: var(--ink-soft); margin-bottom: 1.5rem; }
.pd__details { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.pd__details li { position: relative; padding-left: 2rem; color: var(--ink); }
.pd__details li::before {
  content: "✓"; position: absolute; left: 0; top: .05rem;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--leaf); color: #fff; font-size: .72rem; text-align: center; line-height: 22px;
}
.pd__buy { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.pd__back { color: var(--ink-soft); font-weight: 600; transition: color .3s; }
.pd__back:hover { color: var(--coffee); }
.pd__more { margin-top: clamp(3.5rem, 8vw, 6rem); }
.pd__more .section-title { text-align: center; margin-bottom: 2rem; }
.pd__more .shop__grid { grid-template-columns: 1fr 1fr; max-width: 760px; margin: 0 auto; }
.pd__missing { text-align: center; padding: 4rem 1rem; }
.pd__missing h1 { font-family: var(--font-display); font-weight: 600; color: var(--espresso); font-size: clamp(1.8rem,4vw,2.6rem); margin-bottom: 1rem; }
.pd__missing a { color: var(--leaf-dk); font-weight: 600; }

/* ============================================================
   Checkout page
   ============================================================ */
.co-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); color: var(--espresso); margin-bottom: 2rem; }
.co-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.co-form { gap: .9rem; }
.co-h { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; color: var(--espresso); margin-top: .5rem; }
.co-form .co-h:first-child { margin-top: 0; }
.co-form__split { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.co-demo { font-size: .82rem; color: var(--ink-soft); background: var(--cream-2); padding: .6rem .9rem; border-radius: 12px; }
.co-place { align-self: flex-start; margin-top: .5rem; }
.co-place svg { transition: transform .35s var(--ease); }
.co-place:hover svg { transform: scale(1.15); }

.co-side {
  background: rgba(255,255,255,.74); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: 0 26px 56px -28px rgba(40,25,10,.5), inset 0 0 0 1px rgba(255,255,255,.5);
  position: sticky; top: 6rem;
}
.co-summary { margin-top: .6rem; }
.co-lines { list-style: none; display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1rem; }
.co-line { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; }
.co-line__media { position: relative; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.co-line__media img { width: 100%; height: 100%; object-fit: cover; }
.co-line__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 100px; background: var(--leaf-dk); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.co-line__name { font-weight: 600; color: var(--espresso); }
.co-line__price { font-weight: 600; color: var(--coffee); white-space: nowrap; }
.co-tot { display: flex; justify-content: space-between; padding: .45rem 0; color: var(--ink-soft); border-top: 1px dashed rgba(122,82,48,.25); }
.co-tot--grand { color: var(--espresso); font-weight: 700; font-size: 1.2rem; border-top: 1.5px solid rgba(122,82,48,.3); margin-top: .2rem; }
.co-tot--grand span:last-child { font-family: var(--font-display); }
.co-edit { display: inline-block; margin-top: 1rem; color: var(--ink-soft); font-weight: 600; transition: color .3s; }
.co-edit:hover { color: var(--coffee); }

.co-empty, .co-done { text-align: center; padding: clamp(2rem, 6vw, 4rem) 1rem; max-width: 560px; margin: 0 auto; }
.co-empty__mark img, .co-done__mark img { width: 130px; margin: 0 auto 1.2rem; animation: floatLogo 6s ease-in-out infinite; }
.co-empty h2, .co-done h1 { font-family: var(--font-display); font-weight: 600; color: var(--espresso); font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: .6rem; }
.co-empty p, .co-done p { color: var(--ink-soft); margin-bottom: 1.5rem; }
.co-done b { color: var(--coffee); }

.cform input.invalid, .cform textarea.invalid { border-color: var(--terra); box-shadow: 0 0 0 4px rgba(199,91,67,.14); }

@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .co-grid { grid-template-columns: 1fr; }
  .co-side { position: static; order: -1; }
}
@media (max-width: 600px) {
  .co-form__split { grid-template-columns: 1fr; }
  .pd__more .shop__grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .cursor-glow, .sparkles { display: none; }
}
