:root {
  --espresso: #1c0f0a;
  --roast: #2b1810;
  --brown: #3a2012;
  --caramel: #b9783f;
  --gold: #d9a45b;
  --cream: #f3e9da;
  --cream-2: #eadbc4;
  --leaf: #4f6b3a;
  --leaf-deep: #232e1b;
  --serif: "Fraunces", "Noto Serif Bengali", Georgia, serif;
  --sans: "Outfit", "Hind Siliguri", system-ui, sans-serif;
  --script: "Caveat", "Noto Serif Bengali", cursive;
  --pad: clamp(20px, 5vw, 80px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--espresso);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.02em; }
h2 { font-size: clamp(2.2rem, 5.5vw, 4.6rem); }
h2 em { font-style: italic; color: var(--gold); }
::selection { background: var(--caramel); color: var(--espresso); }

/* ---------- Split text ---------- */
.split { display: block; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.split .ch { display: inline-block; will-change: transform; }

/* ---------- Overlays ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--espresso);
  display: grid; place-items: center; text-align: center;
}
.loader-cup { width: 110px; }
.loader-fill { transform: translateY(100%); }
.loader-count { font-family: var(--serif); font-size: 3rem; line-height: 1; margin-top: 12px; }
.loader p { opacity: .55; letter-spacing: .08em; font-size: .85rem; margin-top: 6px; }

.progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}
.grain {
  position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-4%, 3%); } 40% { transform: translate(3%, -5%); }
  60% { transform: translate(-2%, 4%); } 80% { transform: translate(5%, 2%); } 100% { transform: translate(0, 0); }
}
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 90; pointer-events: none;
  border-radius: 50%; translate: -50% -50%; display: none;
}
.cursor { width: 8px; height: 8px; background: var(--gold); }
.cursor-ring {
  width: 40px; height: 40px; border: 1px solid var(--gold); opacity: .6;
  transition: width .3s var(--ease), height .3s var(--ease), background .3s, opacity .3s;
}
.cursor-ring.is-hover { width: 72px; height: 72px; background: rgba(217, 164, 91, .15); opacity: 1; }
@media (hover: hover) and (pointer: fine) { .cursor, .cursor-ring { display: block; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px; overflow: hidden;
  background: var(--caramel); color: var(--espresso);
  font-weight: 600; letter-spacing: .01em; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--cream); transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; }
.btn .arrow { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(6px); }
.btn-ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px rgba(243, 233, 218, .35); }
.btn-ghost:hover { color: var(--espresso); }
.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-xl { padding: 22px 40px; font-size: 1.15rem; }

.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.eyebrow .line { width: 44px; height: 1px; background: currentColor; }
.eyebrow.dark { color: var(--caramel); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--pad);
  transition: background .4s, padding .4s, transform .5s var(--ease), backdrop-filter .4s;
}
.nav.is-scrolled { background: rgba(28, 15, 10, .72); backdrop-filter: blur(14px); padding-block: 12px; }
.nav.is-hidden { transform: translateY(-100%); }
.logo { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; display: inline-flex; align-items: center; letter-spacing: -.02em; }
.logo-bean { width: .62em; height: .8em; margin: .12em .02em 0; color: var(--caramel); transition: transform .6s var(--ease); }
.logo:hover .logo-bean { transform: rotate(360deg); }
.nav-links { display: flex; gap: 34px; font-size: .95rem; }
.nav-links a { position: relative; padding: 4px 0; opacity: .85; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.lang {
  padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; white-space: nowrap;
  font-family: "Hind Siliguri", var(--sans); box-shadow: inset 0 0 0 1px rgba(243, 233, 218, .3);
  transition: background .35s, color .35s;
}
.lang:hover { background: var(--cream); color: var(--espresso); }
.nav-links { margin-left: auto; }
.burger { display: none; width: 40px; height: 40px; position: relative; }
.burger i { position: absolute; left: 8px; right: 8px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }
.burger[aria-expanded="true"] i:first-child { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  padding: 130px var(--pad) 90px; overflow: hidden;
}
.hero-glow {
  position: absolute; right: -10%; top: 5%; width: 70vw; height: 70vw; max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(185, 120, 63, .38), rgba(79, 107, 58, .12) 45%, transparent 68%);
  filter: blur(20px); animation: breathe 9s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12) translate(-3%, 3%); opacity: .8; } }
.hero-beans, .contact-beans { position: absolute; inset: 0; pointer-events: none; }
.float-bean { position: absolute; color: var(--brown); will-change: transform; }
.float-bean svg { width: 100%; height: 100%; display: block; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(3rem, 8.4vw, 7.6rem); margin-bottom: 28px; }
.hero-title .accent { font-style: italic; color: var(--gold); }
.hero-sub { max-width: 520px; font-size: clamp(1rem, 1.3vw, 1.2rem); opacity: .8; margin-bottom: 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .88rem; opacity: .7; }
.hero-art { position: relative; z-index: 2; display: grid; place-items: center; }
.mug {
  position: relative; width: min(100%, 600px); aspect-ratio: 5 / 4; overflow: hidden;
  border-radius: 200px 200px 36px 36px; box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(243, 233, 218, .15);
}
.mug-body { position: absolute; inset: -16px; background: url("assets/cover.jpg") 82% 72.5% / 246% auto no-repeat; }
.mug::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(28, 15, 10, .45)); }
.logo-mark {
  width: 44px; height: 44px; border-radius: 50%; flex: none; margin-right: 10px;
  background: #f5e8d6 url("assets/logo.jpg") 44% 18% / 179% auto no-repeat;
  box-shadow: 0 0 0 2px rgba(217, 164, 91, .5);
}
.loader-mark { display: block; width: 84px; height: 84px; margin: 0 auto 22px; }
.steam path { stroke-dasharray: 60 240; opacity: .5; animation: steam 4s linear infinite; }
.steam path:nth-child(2) { animation-delay: -1.3s; animation-duration: 4.6s; }
.steam path:nth-child(3) { animation-delay: -2.6s; }
@keyframes steam {
  0% { stroke-dashoffset: 0; opacity: 0; } 25% { opacity: .55; }
  100% { stroke-dashoffset: -300; opacity: 0; }
}
.stamp {
  position: absolute; top: -8%; right: -2%; width: clamp(96px, 11vw, 150px); z-index: 3;
  color: var(--gold); animation: spin 18s linear infinite;
}
.stamp text { font-size: 15.5px; letter-spacing: .16em; fill: currentColor; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 26px; translate: -50% 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6;
}
.scroll-hint span { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: drip 2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--caramel); color: var(--espresso); overflow: hidden; padding: 20px 0; rotate: -1.2deg; margin: -18px -2vw 0; position: relative; z-index: 5; }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee span { font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 2.2rem); font-style: italic; white-space: nowrap; }
.marquee svg { width: 22px; height: 30px; flex: none; color: var(--espresso); }

/* ---------- Story ---------- */
.story { position: relative; background: var(--cream); color: var(--roast); padding: clamp(100px, 14vw, 200px) var(--pad) clamp(70px, 9vw, 120px); margin-top: -20px; overflow: hidden; }
.story-logo { float: right; width: clamp(180px, 30vw, 440px); height: auto; margin: -40px -20px 20px 40px; border-radius: 50%; shape-outside: circle(50%); box-shadow: 0 30px 60px rgba(58, 32, 18, .25); }
.story-text { font-family: var(--serif); font-size: clamp(1.7rem, 4.2vw, 3.7rem); line-height: 1.18; letter-spacing: -.02em; max-width: none; }
.story-text .word { display: inline-block; }
.story-script { font-family: var(--script); font-size: clamp(2rem, 4vw, 3.4rem); color: var(--caramel); margin-top: 36px; rotate: -3deg; transform-origin: left; }
.story-leaf { position: absolute; color: var(--leaf); opacity: .18; }
.story-leaf svg { width: 100%; height: 100%; }
.story-leaf.l1 { width: 280px; height: 170px; left: -60px; bottom: 40px; rotate: -35deg; }
.story-leaf.l2 { width: 200px; height: 120px; right: 140px; bottom: 120px; rotate: 20deg; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(60px, 8vw, 110px); border-top: 1px solid rgba(43, 24, 16, .18); padding-top: 40px; }
.stat b { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.8rem, 7vw, 6rem); line-height: 1; color: var(--brown); }
.stat span { display: block; margin-top: 10px; opacity: .7; max-width: 220px; }

/* ---------- Values ---------- */
.values { background: var(--cream); color: var(--roast); padding: 0 var(--pad) clamp(80px, 10vw, 140px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value {
  position: relative; padding: 34px 28px 38px; border-radius: 26px; background: var(--cream-2); overflow: hidden;
  transition: transform .5s var(--ease), color .5s var(--ease);
}
.value::before {
  content: ""; position: absolute; inset: 0; background: var(--roast); border-radius: inherit;
  clip-path: circle(0% at 85% 12%); transition: clip-path .7s var(--ease);
}
.value:hover { transform: translateY(-8px); color: var(--cream); }
.value:hover::before { clip-path: circle(150% at 85% 12%); }
.value > * { position: relative; }
.value-num { font-family: var(--serif); font-style: italic; color: var(--caramel); font-size: 1.1rem; }
.value h3 { font-size: 1.6rem; margin: 46px 0 12px; }
.value p { opacity: .75; font-size: .97rem; }

/* ---------- Shop ---------- */
.shop { background: var(--roast); padding: clamp(80px, 11vw, 160px) var(--pad); border-radius: 48px 48px 0 0; margin-top: -48px; position: relative; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 54px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 10px 20px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(243, 233, 218, .25); font-size: .92rem; transition: background .35s, color .35s, box-shadow .35s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.chip.is-active { background: var(--cream); color: var(--espresso); box-shadow: none; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; perspective: 1400px; }
.card {
  position: relative; border-radius: 28px; background: #35200f; overflow: hidden;
  transform-style: preserve-3d; will-change: transform;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card:hover { transition-duration: .12s, .5s; box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }
.card.is-hidden { display: none; }
.card-art { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #a86c2c; }
.card-art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease); }
.card:hover .card-art img { transform: scale(1.08); }
.card-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 240, 210, .28), transparent 55%), linear-gradient(transparent 70%, rgba(53, 32, 15, .6));
}
.card-tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--espresso); color: var(--cream); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 22px 24px 26px; }
.card-body h3 { font-size: 1.5rem; margin-bottom: 6px; }
.card-body p { font-size: .93rem; opacity: .65; min-height: 3em; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 500; font-size: .95rem; }
.card-link svg { width: 18px; height: 18px; }
.card-link i { font-style: normal; transition: transform .4s var(--ease); }
.card:hover .card-link i { transform: translateX(6px); }

/* ---------- Brew ---------- */
.brew { background: var(--espresso); padding: clamp(70px, 9vw, 110px) 0 clamp(60px, 7vw, 90px); overflow: hidden; }
.brew-head { padding: 0 var(--pad); margin-bottom: 44px; }
.bn { font-family: "Hind Siliguri", var(--sans); opacity: .65; margin-top: 14px; font-size: 1.05rem; }
.brew-bar { height: 2px; background: rgba(243, 233, 218, .14); margin-top: 30px; max-width: 420px; }
.brew-bar i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.brew-track { display: flex; gap: 24px; padding: 0 var(--pad); width: max-content; will-change: transform; }
.panel {
  position: relative; flex: none; width: min(78vw, 420px); min-height: 400px; padding: 36px 34px;
  border-radius: 30px; background: linear-gradient(160deg, #35200f, #24130b);
  box-shadow: inset 0 0 0 1px rgba(243, 233, 218, .08);
  display: flex; flex-direction: column; overflow: hidden;
}
.panel-num { font-family: var(--serif); font-size: 9rem; line-height: .8; color: transparent; -webkit-text-stroke: 1px rgba(217, 164, 91, .5); position: absolute; right: 22px; top: 26px; }
.panel h3 { font-size: 2.4rem; margin-top: auto; margin-bottom: 12px; }
.panel p { opacity: .72; }
.panel-meta { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(243, 233, 218, .12); font-size: .9rem; opacity: .9; }
.panel-meta b { font-family: var(--serif); font-size: 1.5rem; color: var(--gold); font-weight: 500; margin-right: 6px; }
.panel-calc { background: var(--caramel); color: var(--espresso); }
.panel-calc h3 { margin-top: 0; }
.panel-calc label { display: flex; justify-content: space-between; margin-top: 30px; font-weight: 600; }
.panel-calc input { width: 100%; accent-color: var(--espresso); margin-top: 10px; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: auto; }
.calc-out div { background: rgba(28, 15, 10, .12); border-radius: 18px; padding: 16px; }
.calc-out b { display: block; font-family: var(--serif); font-size: 2.6rem; line-height: 1; font-weight: 500; }
.calc-out span { font-size: .85rem; }

/* ---------- Contact ---------- */
.contact { position: relative; background: var(--leaf-deep); padding: clamp(90px, 12vw, 180px) var(--pad); text-align: center; overflow: hidden; border-radius: 48px 48px 0 0; }
.contact .eyebrow { justify-content: center; }
.contact h2 { max-width: 14ch; margin: 0 auto 44px; font-size: clamp(2.6rem, 7vw, 6rem); }
.contact .float-bean { color: #33452a; }
.contact-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(60px, 8vw, 100px); text-align: left; border-top: 1px solid rgba(243, 233, 218, .15); padding-top: 36px; }
.contact-grid h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.contact-grid a { border-bottom: 1px solid rgba(243, 233, 218, .3); transition: border-color .3s, color .3s; overflow-wrap: anywhere; }
.contact-grid a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- Footer ---------- */
.footer { background: var(--leaf-deep); padding: 0 var(--pad) 28px; overflow: hidden; }
.footer-word { font-family: var(--serif); font-weight: 600; font-size: 24vw; line-height: .8; letter-spacing: -.04em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgba(243, 233, 218, .22); user-select: none; }
.footer-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; opacity: .65; margin-top: 30px; }

/* ---------- Bangla ---------- */
:lang(bn) h1, :lang(bn) h2, :lang(bn) h3 { line-height: 1.3; letter-spacing: 0; }
:lang(bn) .hero-title { font-size: clamp(2.6rem, 6.6vw, 6rem); }
:lang(bn) .hero-title .accent, :lang(bn) h2 em, :lang(bn) .marquee span { font-style: normal; }
:lang(bn) .split .w { padding: .25em 0 .2em; margin: -.25em 0 -.2em; }
:lang(bn) .eyebrow { letter-spacing: .04em; font-size: .95rem; }
:lang(bn) .story-text { line-height: 1.5; font-size: clamp(1.5rem, 3.4vw, 3rem); letter-spacing: 0; }
:lang(bn) .story-script { rotate: -2deg; font-size: clamp(1.5rem, 2.8vw, 2.4rem); }
:lang(bn) .scroll-hint, :lang(bn) .contact-grid h4, :lang(bn) .card-tag { letter-spacing: .04em; font-size: .85rem; }
:lang(bn) .contact h2 { max-width: 16ch; }
:lang(bn) .card-body p { min-height: 4.8em; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .values { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: left; }
  .hero-art { max-width: 380px; margin: 0 auto; order: 2; }
  .scroll-hint { display: none; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; background: var(--espresso);
    flex-direction: column; justify-content: center; align-items: center; gap: 28px;
    font-family: var(--serif); font-size: 2.2rem;
    clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .7s var(--ease);
  }
  .nav.is-open .nav-links { clip-path: circle(150% at calc(100% - 44px) 38px); }
  .burger { display: block; }
  .nav .lang { margin-left: auto; }
  .brew-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .brew-track::-webkit-scrollbar { display: none; }
  .panel { scroll-snap-align: center; }
  .brew-bar { display: none; }
}
@media (max-width: 600px) {
  .stats, .values { grid-template-columns: 1fr; }
  .nav .btn-sm span { display: none; }
  .nav .btn-sm { padding: 10px; }
  .shop, .contact { border-radius: 30px 30px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .cursor, .cursor-ring { display: none !important; }
}
