:root {
  --sun: #e9b565;
  --sun-deep: #cf8f3c;
  --amber: #b9722a;
  --cream: #fbf3e4;
  --ink: #23150c;
  --forest: #1b2617;
  --forest-2: #263521;
  --leaf: #4c6a36;
  --gold: #e3b668;
  --display: "Bodoni Moda", "Noto Serif Bengali", Georgia, serif;
  --body: "Figtree", "Hind Siliguri", system-ui, sans-serif;
  --pad: clamp(20px, 5.5vw, 88px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--cream); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: var(--forest); color: var(--gold); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: .98; }
h1 { font-size: clamp(2.7rem, 6vw, 5.7rem); }
h2 { font-size: clamp(2.4rem, 5.8vw, 5.2rem); }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.ln { display: block; overflow: hidden; padding: .08em 0 .14em; margin-bottom: -.14em; }
.ln > span { display: inline-block; will-change: transform; }
:lang(bn) h1, :lang(bn) h2 { letter-spacing: 0; line-height: 1.25; font-weight: 600; }
:lang(bn) h1 { font-size: clamp(2.2rem, 5vw, 4.6rem); }
:lang(bn) h2 { font-size: clamp(2rem, 4.6vw, 4rem); }
:lang(bn) h1 em, :lang(bn) h2 em { font-style: normal; }
:lang(bn) .ln { padding: .2em 0 .22em; margin: -.1em 0 -.22em; }

.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin-bottom: 22px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; }
:lang(bn) .eyebrow { letter-spacing: .04em; font-size: .98rem; }
.lede { max-width: 46ch; font-size: clamp(1.02rem, 1.25vw, 1.2rem); }
.head { margin-bottom: clamp(36px, 5vw, 70px); }
.head .lede { margin-top: 22px; }

/* ---------- Buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 999px; font-weight: 600; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), box-shadow .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; transform: translateY(101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn i { font-style: normal; transition: transform .4s var(--ease); }
.btn:hover i { transform: translateX(6px); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 14px 30px -14px rgba(35, 21, 12, .8); }
.btn-ink::before { background: var(--forest-2); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 14px 34px -14px rgba(227, 182, 104, .7); }
.btn-gold::before { background: var(--cream); }
.btn-xl { padding: 22px 40px; font-size: 1.15rem; }
.text-link { font-weight: 600; padding-bottom: 3px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--ease); }
.text-link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; display: flex; align-items: center; gap: 30px; padding: 16px var(--pad); transition: background .4s, box-shadow .4s, padding .4s; }
.nav.is-scrolled { background: rgba(251, 243, 228, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(35, 21, 12, .1); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: #f5e8d6 url("assets/logo.jpg") 44% 18% / 179% auto no-repeat; box-shadow: 0 6px 16px -6px rgba(35, 21, 12, .6); }
.brand-name { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; font-weight: 500; font-size: .96rem; }
.nav-links a { padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .4s var(--ease); }
.nav-links a:hover { background-size: 100% 1.5px; }
.lang { display: flex; border-radius: 999px; padding: 3px; background: rgba(35, 21, 12, .1); }
.lang button { padding: 5px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; transition: background .3s, color .3s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.nav .btn { padding: 11px 20px; font-size: .94rem; }

/* ---------- The sunlit wall ---------- */
.sun { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 18% 8%, #f6d08c 0%, var(--sun) 34%, var(--sun-deep) 72%, var(--amber) 100%); }
/* plaster grain */
.sun::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .24 0 0 0 0 .05 0 0 0 .5 -.12'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* slats of light, as through a blind */
.sun::after { content: ""; position: absolute; inset: -20% -10%; z-index: -1; background: repeating-linear-gradient(118deg, transparent 0 70px, rgba(255, 240, 200, .32) 70px 128px, transparent 128px 190px); filter: blur(14px); mask-image: radial-gradient(70% 70% at 30% 30%, #000, transparent 75%); animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, 2%, 0); } }
.shadows { position: absolute; inset: -8%; z-index: -1; pointer-events: none; mix-blend-mode: multiply; filter: blur(11px); opacity: .5; }
.shadows svg { width: 100%; height: 100%; overflow: visible; }
.shadows .frond { transform-box: fill-box; transform-origin: 0 50%; animation: sway var(--d, 7s) ease-in-out infinite alternate; }
@keyframes sway { from { rotate: -2.2deg; } to { rotate: 2.6deg; } }

/* ---------- Hero ---------- */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(24px, 4vw, 70px); padding: 130px var(--pad) 90px; }
.hero h1 { margin-bottom: 30px; }
.hero h1 em { color: var(--forest-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 36px; }
.hero-stage { position: relative; justify-self: center; width: min(100%, 500px); }
.arch { aspect-ratio: 3 / 4; border-radius: 260px 260px 22px 22px; overflow: hidden; box-shadow: 0 60px 80px -40px rgba(60, 28, 0, .85), 0 0 0 10px rgba(255, 244, 220, .28); }
.arch img { scale: 1.14; }
.inset { position: absolute; left: -16%; bottom: -7%; width: 42%; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 6px solid var(--cream); box-shadow: 0 40px 50px -24px rgba(50, 22, 0, .85); rotate: -5deg; }
.inset img { object-position: 50% 18%; }
.script { position: absolute; right: -4%; bottom: 6%; font-family: var(--display); font-style: italic; font-size: clamp(1.1rem, 1.7vw, 1.5rem); color: var(--cream); background: var(--forest); padding: 10px 22px; border-radius: 999px; rotate: 4deg; box-shadow: 0 20px 30px -16px rgba(20, 30, 10, .9); white-space: nowrap; }
:lang(bn) .script { font-style: normal; }

/* ---------- Featured bean ---------- */
.origin { background: var(--forest); color: var(--cream); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 6vw, 100px); align-items: center; padding: clamp(80px, 11vw, 160px) var(--pad); }
.origin .eyebrow, .origin dt { color: var(--gold); }
.origin-photo { aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 80px -40px #000; }
.origin-photo img { object-position: 50% 30%; }
.notes { font-family: var(--display); font-style: italic; font-size: clamp(1.2rem, 2.1vw, 1.8rem); color: var(--gold); margin: 22px 0 36px; }
:lang(bn) .notes { font-style: normal; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.facts > div { padding: 16px 0; border-top: 1px solid rgba(251, 243, 228, .16); }
.facts dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 4px; }
:lang(bn) .facts dt, :lang(bn) .contact dt { letter-spacing: .03em; font-size: .9rem; }
.facts dd { font-size: 1.08rem; }
.meters { display: grid; gap: 16px; margin: 30px 0 38px; padding-top: 26px; border-top: 1px solid rgba(251, 243, 228, .16); }
.meter { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 18px; font-size: .95rem; }
.meter i { height: 4px; border-radius: 4px; background: rgba(251, 243, 228, .16); overflow: hidden; }
.meter b { display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, var(--leaf), var(--gold)); transform-origin: 0 50%; }
.meter em { font-style: normal; opacity: .75; }
.origin-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill { padding: 9px 16px; border-radius: 999px; font-size: .85rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(251, 243, 228, .3); }
.origin-foot .btn { margin-left: auto; }

/* ---------- Brewing shelf ---------- */
.shelf { padding: clamp(80px, 11vw, 160px) var(--pad); background: var(--cream); }
.shelf h2 em { color: var(--amber); }
.shelf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 30px); }
.tool { position: relative; aspect-ratio: 3 / 4; border-radius: 20px; overflow: hidden; color: var(--cream); isolation: isolate; box-shadow: 0 40px 60px -40px rgba(60, 28, 0, .8); }
.tool:nth-child(3n + 2) { margin-top: clamp(30px, 6vw, 90px); margin-bottom: calc(-1 * clamp(30px, 6vw, 90px)); }
.tool img { position: absolute; inset: 0; z-index: -2; transition: transform 1.2s var(--ease); }
.tool:hover img { transform: scale(1.07); }
.tool::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 42%, rgba(27, 20, 8, .86)); }
/* a patch of light that follows the pointer */
.tool::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(340px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 236, 190, .34), transparent 60%); opacity: 0; transition: opacity .5s; }
.tool:hover::after { opacity: 1; }
.tool-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(18px, 2vw, 30px); }
.tool-kind { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
:lang(bn) .tool-kind { letter-spacing: .03em; font-size: .88rem; }
.tool h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.3vw, 2.1rem); line-height: 1.1; margin: 6px 0 8px; }
:lang(bn) .tool h3 { line-height: 1.35; font-weight: 600; font-size: clamp(1.3rem, 1.9vw, 1.7rem); }
.tool p { font-size: .95rem; opacity: .85; max-width: 32ch; }
.tool-ask { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-weight: 600; font-size: .92rem; color: var(--gold); }
.tool-ask svg { width: 18px; height: 18px; }
.tool-ask i { font-style: normal; transition: transform .4s var(--ease); }
.tool:hover .tool-ask i { transform: translateX(6px); }

/* ---------- Brew timer ---------- */
.brew { padding: clamp(110px, 14vw, 220px) var(--pad) clamp(80px, 11vw, 160px); }
.brew h2 em { color: var(--forest-2); }
.timer { display: grid; grid-template-columns: minmax(240px, 400px) 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; padding: clamp(24px, 4vw, 56px); border-radius: 30px; background: rgba(251, 243, 228, .78); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 60px 90px -50px rgba(60, 28, 0, .9), inset 0 0 0 1px rgba(255, 255, 255, .5); }
.dial { position: relative; aspect-ratio: 1; }
.dial svg { width: 100%; height: 100%; rotate: -90deg; }
.dial circle { fill: none; stroke-width: 7; }
.dial-track { stroke: rgba(35, 21, 12, .1); }
.dial-fill { stroke: var(--forest-2); stroke-linecap: round; stroke-dasharray: 615.75; stroke-dashoffset: 615.75; transition: stroke-dashoffset .25s linear; }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial-read output { font-family: var(--display); font-size: clamp(3.2rem, 7vw, 5.6rem); line-height: 1; font-variant-numeric: tabular-nums; }
.dial-read span { font-weight: 600; color: var(--amber); margin-top: 8px; min-height: 1.6em; }
.recipe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 22px; border-bottom: 1px solid rgba(35, 21, 12, .14); }
.recipe-label { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
:lang(bn) .recipe-label { letter-spacing: .03em; font-size: .95rem; }
.stepper { display: flex; align-items: center; border-radius: 999px; background: rgba(35, 21, 12, .08); padding: 3px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; transition: background .25s, color .25s; }
.stepper button:hover { background: var(--ink); color: var(--cream); }
.stepper output { min-width: 40px; text-align: center; font-weight: 700; }
.recipe-out b { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.phases li { display: grid; grid-template-columns: 62px 1fr; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid rgba(35, 21, 12, .1); opacity: .45; transition: opacity .4s; }
.phases li.is-active, .phases li.is-done { opacity: 1; }
.phases time { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--amber); }
.phases b { font-family: var(--display); font-weight: 500; font-size: 1.3rem; line-height: 1.2; }
:lang(bn) .phases b { font-weight: 600; font-size: 1.15rem; line-height: 1.4; }
.phases p { grid-column: 2; font-size: .96rem; }
.phases li.is-active b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-radius: 50%; background: var(--leaf); animation: pulse 1s ease-in-out infinite alternate; vertical-align: middle; }
.phases li.is-done b { text-decoration: line-through; text-decoration-thickness: 1px; opacity: .6; }
@keyframes pulse { to { transform: scale(1.7); opacity: .3; } }
.timer-actions { display: flex; align-items: center; gap: 26px; margin-top: 26px; }
.timer-actions .btn { min-width: 150px; justify-content: center; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(200px, 400px) 1fr; gap: clamp(30px, 7vw, 110px); align-items: center; padding: clamp(80px, 11vw, 160px) var(--pad); background: var(--cream); }
.story-logo { height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 50px 70px -40px rgba(60, 28, 0, .7); }
.story .eyebrow { color: var(--amber); }
.story-text { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.7rem); line-height: 1.22; letter-spacing: -.01em; }
:lang(bn) .story-text { line-height: 1.55; letter-spacing: 0; font-size: clamp(1.3rem, 2.4vw, 2.1rem); }
.promises { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.promises li { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: .92rem; background: rgba(185, 114, 42, .14); color: #7a4514; }

/* ---------- Order ---------- */
.order { background: var(--forest); color: var(--cream); text-align: center; padding: clamp(90px, 12vw, 180px) var(--pad) 34px; border-radius: 44px 44px 0 0; }
.order .eyebrow { justify-content: center; color: var(--gold); }
.order .eyebrow::after { content: ""; width: 38px; height: 1px; background: currentColor; }
.order h2 { margin-bottom: 46px; }
.order h2 em { color: var(--gold); }
.contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: left; margin-top: clamp(60px, 8vw, 110px); padding-top: 34px; border-top: 1px solid rgba(251, 243, 228, .16); }
.contact dt { font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.contact a { border-bottom: 1px solid rgba(251, 243, 228, .35); overflow-wrap: anywhere; transition: color .3s, border-color .3s; }
.contact a:hover { color: var(--gold); border-color: var(--gold); }
.fine { margin-top: 60px; font-size: .84rem; opacity: .6; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .lang { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-stage { width: min(80%, 400px); margin-top: 20px; }
  .origin, .story { grid-template-columns: 1fr; }
  .origin-photo { max-width: 520px; }
  .story-logo { width: 220px; }
  .shelf-grid { grid-template-columns: repeat(2, 1fr); }
  .tool:nth-child(3n + 2) { margin: 0; }
  .tool:nth-child(2n) { margin-top: 40px; margin-bottom: -40px; }
  .timer { grid-template-columns: 1fr; }
  .dial { max-width: 300px; margin: 0 auto; }
  .contact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .nav .btn span { display: none; }
  .nav .btn { padding: 11px; }
  .brand-name { font-size: 1.35rem; }
  .brand-mark { width: 40px; height: 40px; }
  .shelf-grid { grid-template-columns: 1fr; }
  .tool:nth-child(n) { margin: 0; }
  .facts { grid-template-columns: 1fr; }
  .meter { grid-template-columns: 76px 1fr; }
  .meter em { grid-column: 2; margin-top: -10px; font-size: .85rem; }
  .origin-foot .btn { margin-left: 0; }
  .inset { left: -8%; }
  .script { right: -8%; }
  .contact { grid-template-columns: 1fr; }
  .order { border-radius: 28px 28px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- Travelling beans ---------- */
.bean-layer { position: fixed; inset: 0; z-index: 25; pointer-events: none; overflow: hidden; }
.fbean { position: absolute; left: 0; top: 0; width: 72px; height: 96px; margin: -48px 0 0 -36px; opacity: 0; will-change: transform; filter: drop-shadow(0 14px 12px rgba(40, 18, 2, .45)); }
.fbean-i { width: 100%; height: 100%; animation: bob var(--d, 4s) ease-in-out infinite alternate; }
.fbean svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes bob { from { transform: translateY(-5px) rotate(calc(var(--r) * -8deg)); } to { transform: translateY(6px) rotate(calc(var(--r) * 10deg)); } }
@media (max-width: 600px) { .fbean { width: 48px; height: 64px; margin: -32px 0 0 -24px; } }

/* ---------- Progress line & ghost words ---------- */
.progress { --p: 0; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 40; pointer-events: none; }
.progress i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--leaf), var(--gold)); transform: scaleX(var(--p)); transform-origin: 0 50%; }
.progress svg { position: absolute; top: -7px; left: calc(var(--p) * 100% - 9px); width: 13px; height: 17px; rotate: 90deg; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.origin, .shelf, .order { position: relative; overflow: hidden; isolation: isolate; }
.ghost { position: absolute; top: 50%; left: 0; z-index: -1; translate: 0 -50%; white-space: nowrap; pointer-events: none; font-family: var(--display); font-weight: 600; font-size: clamp(6rem, 17vw, 16rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: .14; }
.shelf .ghost { top: 12%; color: var(--amber); opacity: .22; }
.hero-stage { transform-style: preserve-3d; }
