/* ═══════════════════════════════════════════════════════
   TEA OF BENGAL — Steeped in Silence
   Stylesheet
   Owner / Developer: DevStation IT — https://devstationit.com
   ═══════════════════════════════════════════════════════ */

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

:root {
  --amber: rgba(245,158,11,1);
  --amber-faint: rgba(245,158,11,0.15);
  --amber-mid: rgba(245,158,11,0.6);
  --amber-strong: rgba(245,158,11,0.8);
  --amber-glow: rgba(245,158,11,0.9);
  --white: #ffffff;
  --black: #030303;

  /* dark footer palette */
  --ink: #040302;
  --ink-2: #0a0705;
  --leaf: rgba(120,180,110,0.55);
  --wa: rgba(37,211,102,1);
}

html { scroll-behavior: auto; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ── LOADING SCREEN ── */
#loading-screen {
  position: fixed;
  inset: 0;
  background: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  gap: 24px;
  padding: 0 24px;
  transition: opacity 0.8s ease;
}
#loading-screen.fade-out { opacity: 0; pointer-events: none; }

#loading-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 4.4vw, 42px);
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

#loading-bar-wrap {
  width: 200px;
  height: 1px;
  background: rgba(245,158,11,0.15);
  position: relative;
  overflow: hidden;
}
#loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--amber-strong);
  transition: width 0.1s linear;
}

#loading-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ── FIXED HEADER ── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 200;
  background: transparent;
}
#header-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
#header-shop {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.3s;
}
#header-shop:hover { color: var(--amber); }

/* ── SCROLL PROGRESS BAR ── */
#scroll-progress {
  position: fixed;
  /* top+bottom rather than a vh height, so it tracks the visible area exactly
     instead of running behind the mobile URL bar. */
  top: 0;
  bottom: 0;
  right: 0;
  width: 2px;
  background: var(--amber-faint);
  z-index: 100;
}
#scroll-progress-fill {
  width: 100%;
  height: 0%;
  background: var(--amber-strong);
  transition: height 0.05s linear;
}

/* ── HERO / VIDEO SECTION ── */
#hero {
  height: 800vh;
  position: relative;
}
#hero-sticky {
  position: sticky;
  top: 0;
  /* 100% not 100vw: vw includes the classic scrollbar gutter, which pushed the
     whole document ~15px wider than the viewport and created a sideways scroll. */
  width: 100%;
  /* svh = viewport with the mobile URL bar *showing*, which is the smaller of
     the two states. Plain vh resolves to the larger one, so the pinned hero ran
     taller than the visible area and the low overlays (`bottom: 7%`) sat off
     screen. svh also holds still while the bar collapses — dvh would resize the
     canvas and re-time every ScrollTrigger mid-scroll. vh first as a fallback. */
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
#video-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── TEXT OVERLAYS ── */
.text-overlay {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  text-shadow: 0 0 40px rgba(0,0,0,0.8), 0 0 80px rgba(0,0,0,0.6);
  will-change: opacity, transform;
}

/* Overlay 1: TEA OF BENGAL title */
#ov-title {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 5vw, 78px);
  font-weight: 400;
  color: var(--amber-glow);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Overlay 2: ancient wisdom */
#ov-wisdom {
  bottom: 15%;
  left: 8%;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(24px, 3vw, 42px);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
}
#ov-wisdom .word { opacity: 0; display: inline; }

/* Overlay 3: centuries of craft */
#ov-craft {
  top: 20%;
  right: 8%;
  text-align: right;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.8vw, 38px);
  font-weight: 400;
  color: var(--amber-strong);
  line-height: 1.4;
  transform: translateX(60px);
}

/* Overlay 4: nature transform */
#ov-nature {
  bottom: 8%;
  left: 8%;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* Overlays 5,6,7: Pour Wait Breathe */
#ov-pour-wrap {
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pwb-word {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: rgba(255,255,255,0.9);
  opacity: 0;
  display: block;
}

/* Overlay 8: three minutes */
#ov-minutes {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 300;
  color: rgba(245,158,11,0.85);
  white-space: nowrap;
  line-height: 1.5;
}

/* Overlay 9: TEA OF BENGAL signature */
#ov-sign {
  bottom: 12%;
  right: 8%;
  text-align: right;
}
#ov-sign-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3.4vw, 50px);
  font-weight: 400;
  color: var(--white);
  display: block;
  line-height: 1.05;
  letter-spacing: 0.05em;
}
#ov-sign-sub {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(14px, 1.8vw, 24px);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-top: 8px;
  letter-spacing: 0.1em;
}
.char { opacity: 0; display: inline; }

/* Overlay 10: Begin Ritual button */
#ov-ritual {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
#ritual-btn {
  display: block;
  padding: 18px 48px;
  background: transparent;
  border: 1px solid var(--amber-mid);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
#ritual-btn:hover {
  background: rgba(245,158,11,0.15);
  border-color: var(--amber);
}

/* ── PRODUCT CAROUSEL ── */
#collection {
  background: var(--black);
  padding: 120px 0 100px;
}
#collection-header {
  text-align: center;
  margin-bottom: 64px;
  padding: 0 40px;
}
#collection-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  margin-bottom: 16px;
}
#collection-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
}

#cards-track {
  display: flex;
  gap: 32px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 0 calc((100vw - (380px * 3 + 32px * 2)) / 2);
  padding-bottom: 40px;
  scrollbar-width: none;
}
#cards-track::-webkit-scrollbar { display: none; }

.tea-card {
  flex: 0 0 380px;
  height: 620px;
  scroll-snap-align: center;
  border-radius: 2px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
}

.card-img-wrap {
  margin: -40px -36px 24px;
  height: 220px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.tea-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-img-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
}
.card-dawn .card-img-fade { background: linear-gradient(to bottom, transparent, #1a0f00); }
.card-dusk .card-img-fade { background: linear-gradient(to bottom, transparent, #0a0a0a); }
.card-night .card-img-fade { background: linear-gradient(to bottom, transparent, #050510); }

.tea-card:hover { transform: translateY(-12px); }

.card-dawn {
  background: linear-gradient(160deg, #1a0f00, #2d1a00);
  border-top: 1px solid var(--amber);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.card-dawn:hover {
  box-shadow: 0 24px 60px rgba(245,158,11,0.18), 0 0 0 1px rgba(245,158,11,0.4);
}

.card-dusk {
  background: linear-gradient(160deg, #0a0a0a, #1a0a00);
  box-shadow: 0 0 0 1px rgba(245,158,11,0.3), 0 8px 40px rgba(0,0,0,0.6);
}
.card-dusk:hover {
  box-shadow: 0 0 0 1px rgba(245,158,11,0.7), 0 24px 60px rgba(245,158,11,0.22);
}

.card-night {
  background: linear-gradient(160deg, #050510, #0a0a1a);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 8px 40px rgba(0,0,0,0.8);
}
.card-night:hover {
  box-shadow: 0 24px 60px rgba(100,100,200,0.12), 0 0 0 1px rgba(255,255,255,0.15);
}

.card-badge {
  position: absolute;
  top: 188px;
  right: 36px;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid rgba(245,158,11,0.4);
  padding: 4px 10px;
}

.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.card-dawn .card-name, .card-dusk .card-name { color: var(--amber); }
.card-night .card-name { color: var(--white); }

.card-blend {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
}

.card-divider {
  width: 32px;
  height: 1px;
  background: rgba(245,158,11,0.3);
  margin-bottom: 20px;
}

.card-ingredients {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  flex: 1;
}

/* ── PRICE (BDT) ── */
.card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--white);
  margin-top: 28px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.card-price .taka {
  font-size: 26px;
  color: var(--amber);
}
.card-price .unit {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-left: 4px;
}

.card-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: transparent;
  border: 1px solid rgba(245,158,11,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  margin-bottom: 16px;
}
.card-btn:hover {
  background: rgba(245,158,11,0.12);
  border-color: var(--amber);
  color: var(--white);
}

.card-meta {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ── NEWSLETTER ── */
#newsletter {
  position: relative;
  padding: 120px 40px;
  text-align: center;
  background-image:
    linear-gradient(to bottom,
      rgba(3,3,3,0.88) 0%,
      rgba(3,3,3,0.60) 35%,
      rgba(3,3,3,0.65) 65%,
      rgba(3,3,3,0.95) 100%
    );
  background-color: #0d0800;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

#newsletter-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

#newsletter-sub {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.08em;
  margin-bottom: 48px;
}

#newsletter-form {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

#email-input {
  width: 320px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--amber-mid);
  padding: 12px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  letter-spacing: 0.05em;
  transition: border-color 0.3s;
}
#email-input::placeholder { color: rgba(255,255,255,0.25); }
#email-input:focus { border-color: var(--amber); }

#newsletter-btn {
  background: transparent;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding-bottom: 12px;
  position: relative;
  transition: color 0.3s;
}
#newsletter-btn::after {
  content: '';
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.3s;
}
#newsletter-btn:hover::after { transform: scaleX(1); }

#newsletter-note {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: var(--amber);
  letter-spacing: 0.12em;
  margin-top: 28px;
  min-height: 16px;
  opacity: 0;
  transition: opacity 0.5s ease;
}
#newsletter-note.show { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   FOOTER — dark, cinematic, scroll-revealed (cha.png)
   ═══════════════════════════════════════════════════════ */
#footer {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  padding: 0;
  isolation: isolate;
}

/* Hairline + glow along the top edge */
#footer-topline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(245,158,11,0.05) 12%,
    rgba(245,158,11,0.85) 50%,
    rgba(245,158,11,0.05) 88%,
    transparent 100%
  );
  transform: scaleX(0);
  transform-origin: center;
  z-index: 6;
}
#footer-topglow {
  position: absolute;
  top: -220px;
  left: 50%;
  width: 920px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.16), rgba(245,158,11,0) 70%);
  pointer-events: none;
  z-index: 1;
  filter: blur(10px);
  opacity: 0;
}

/* cha.png — the atmospheric backdrop */
#footer-bg {
  position: absolute;
  inset: -14% 0 -14% 0;
  z-index: 0;
  will-change: transform;
}
#footer-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  display: block;
  opacity: 0;
  filter: grayscale(0.3) brightness(0.5) contrast(1.15) saturate(1.05) blur(6px);
  transform: scale(1.18);
  transform-origin: center;
  will-change: transform, opacity, filter;
}
/* Layered darkness so type always stays legible */
#footer-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(245,158,11,0.10), rgba(0,0,0,0) 60%),
    linear-gradient(to bottom,
      rgba(4,3,2,0.95) 0%,
      rgba(4,3,2,0.74) 24%,
      rgba(4,3,2,0.80) 56%,
      rgba(4,3,2,0.97) 100%
    );
}
/* Fine grain for texture */
#footer-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: radial-gradient(rgba(255,255,255,0.7) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
}

#footer-inner {
  position: relative;
  z-index: 5;
  max-width: 1240px;
  margin: 0 auto;
  padding: 130px 40px 0;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 64px;
}

/* Elements the reveal timeline animates */
.f-rise { opacity: 0; will-change: transform, opacity; }

/* ── brand column ── */
#footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 400;
  color: var(--amber);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.1;
  text-shadow: 0 0 50px rgba(245,158,11,0.35);
}
#footer-tag {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  margin-top: 14px;
  letter-spacing: 0.04em;
}
.footer-rule {
  width: 96px;
  height: 1px;
  background: linear-gradient(to right, var(--amber), rgba(245,158,11,0));
  margin: 26px 0;
  transform: scaleX(0);
  transform-origin: left center;
}
#footer-about {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255,255,255,0.42);
  max-width: 330px;
}
#footer-leafmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
#footer-leafmark::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 12px var(--leaf);
  animation: leafPulse 2.8s ease-in-out infinite;
}
@keyframes leafPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

/* ── column headings & links ── */
.footer-h {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.footer-link {
  display: block;
  position: relative;
  width: fit-content;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 7px 0;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.footer-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.footer-link:hover {
  color: var(--white);
  transform: translateX(6px);
}
.footer-link:hover::after { transform: scaleX(1); }

/* ── contact column ── */
.footer-contact-block { margin-bottom: 26px; }
.footer-contact-label {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 400;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.footer-contact-val {
  font-family: 'Cormorant Garamond', serif;
  font-size: 21px;
  font-weight: 400;
  color: rgba(255,255,255,0.82);
  letter-spacing: 0.03em;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s;
}
.footer-contact-val:hover { color: var(--amber); }

#wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 24px;
  border: 1px solid rgba(37,211,102,0.35);
  background: rgba(37,211,102,0.06);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.35s, border-color 0.35s, transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s;
}
#wa-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
#wa-btn:hover {
  background: rgba(37,211,102,0.14);
  border-color: rgba(37,211,102,0.8);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37,211,102,0.14);
}

/* ── giant ghost wordmark ── */
#footer-ghost {
  position: relative;
  z-index: 4;
  margin-top: 90px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 6.2vw, 140px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(245,158,11,0.16);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
}
/* per-letter spans injected by app.js — inline-block so transforms apply */
#footer-ghost .gc {
  display: inline-block;
  will-change: transform, opacity;
}

/* ── bottom bar ── */
#footer-bottom {
  position: relative;
  z-index: 5;
  margin: 40px auto 0;
  border-top: 1px solid rgba(245,158,11,0.10);
  padding: 26px 40px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  max-width: 1240px;
}
.footer-copy {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.26);
  letter-spacing: 0.06em;
}
#footer-credit {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.32);
  letter-spacing: 0.06em;
}
#footer-credit a {
  color: var(--amber);
  text-decoration: none;
  position: relative;
  transition: color 0.3s;
}
#footer-credit a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
#footer-credit a:hover::after { transform: scaleX(1); }

#footer-socials { display: flex; gap: 22px; }
#footer-socials a {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: color 0.3s;
}
#footer-socials a:hover { color: var(--amber); }

/* ── floating WhatsApp bubble ── */
#wa-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 300;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(6,6,6,0.75);
  border: 1px solid rgba(37,211,102,0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transform: translateY(20px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.4s;
}
#wa-float.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
#wa-float svg { width: 22px; height: 22px; }
#wa-float:hover {
  box-shadow: 0 0 0 6px rgba(37,211,102,0.10), 0 14px 34px rgba(0,0,0,0.5);
  border-color: rgba(37,211,102,0.9);
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  #footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    padding-top: 110px;
  }
}
@media (max-width: 900px) {
  #cards-track { padding: 0 24px 40px; }
  #footer-topglow { width: 100%; }
}

/* ── TABLET / LARGE PHONE ── */
@media (max-width: 700px) {
  #site-header { padding: 0 20px; height: 58px; }
  #footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 84px 22px 0;
  }
  #footer-bottom {
    padding: 24px 22px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  #footer-ghost { margin-top: 56px; }
  #newsletter { padding: 88px 22px; }
  #email-input { width: 100%; }
  #collection { padding: 84px 0 72px; }
  #collection-header { margin-bottom: 44px; padding: 0 22px; }
}

/* ── PHONES ──
   The hero is a scroll-scrubbed canvas, so its length is pure scroll distance:
   800vh on a phone is a very long drag with a fixed image. Shortening it keeps
   the same beats over a sensible amount of swiping. app.js derives every
   overlay cue from the live hero height, so the timings follow automatically. */
@media (max-width: 560px) {
  #hero { height: 520vh; }

  /* Overlay type: smaller, tighter tracking, and never wider than the screen.
     The desktop rules lean on `nowrap` plus generous letter-spacing, which
     clips badly once the viewport is only ~360px wide. */
  .text-overlay { max-width: calc(100% - 36px); }

  #ov-title {
    top: 15%;
    font-size: clamp(19px, 6.6vw, 30px);
    letter-spacing: 0.18em;
    white-space: normal;
    line-height: 1.25;
    width: calc(100% - 36px);
  }

  #ov-wisdom {
    left: 18px;
    right: 18px;
    bottom: 18%;
    font-size: clamp(21px, 6.4vw, 28px);
    line-height: 1.35;
  }

  #ov-craft {
    top: 17%;
    right: 18px;
    left: 18px;
    font-size: clamp(19px, 5.8vw, 26px);
    line-height: 1.35;
    /* Desktop slides in from +60px. Keep the offset within the 18px inset so the
       resting state stays inside the viewport rather than relying on the hero's
       overflow clip. */
    transform: translateX(18px);
  }

  #ov-nature {
    left: 18px;
    right: 18px;
    bottom: 7%;
    font-size: 10px;
    letter-spacing: 0.22em;
  }

  #ov-pour-wrap { left: 18px; gap: 4px; }
  .pwb-word { font-size: clamp(32px, 11vw, 46px); }

  #ov-minutes {
    top: 15%;
    font-size: clamp(20px, 6vw, 28px);
    white-space: normal;
    width: calc(100% - 36px);
    line-height: 1.4;
  }

  #ov-sign {
    right: 18px;
    left: 18px;
    bottom: 14%;
  }
  #ov-sign-title { font-size: clamp(20px, 6.4vw, 30px); }
  #ov-sign-sub   { font-size: clamp(12px, 3.6vw, 16px); margin-top: 6px; }

  #ritual-btn { padding: 16px 30px; font-size: 12px; letter-spacing: 0.14em; }

  /* Collection */
  #collection-heading { font-size: clamp(32px, 9.5vw, 42px); }
  /* Stack the blends vertically instead of running them as a carousel. A
     sideways swipe competes with the page's own vertical scroll on a touch
     screen, and it hides two of the three blends behind a gesture many people
     never make. Stacked, all three read in a single pass. */
  #cards-track {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 0 16px 32px;
    overflow: visible;        /* was overflow-x: auto for the carousel */
    scroll-snap-type: none;   /* nothing left to snap to */
  }
  .tea-card {
    flex: 0 0 auto;           /* was a fixed-width carousel slide */
    width: 100%;
    height: auto;             /* fixed 620px overflowed once type reflowed */
    min-height: 0;            /* each card sizes to its own content */
    padding: 30px 24px;
    scroll-snap-align: none;
  }
  .card-img-wrap {
    margin: -30px -24px 20px; /* must match the card padding above */
    height: 180px;
  }
  .card-badge { top: 150px; right: 24px; }
  .card-name { font-size: 56px; }
  .card-ingredients { font-size: 12.5px; line-height: 1.65; }
  .card-price { font-size: 28px; margin-top: 22px; }
  .card-price .taka { font-size: 22px; }

  /* Newsletter — stack the field above the button so both are full width */
  #newsletter-title { font-size: clamp(29px, 8.6vw, 40px); }
  #newsletter-sub { margin-bottom: 34px; font-size: 12.5px; }
  #newsletter-form {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  #newsletter-btn {
    padding: 15px 0;
    border: 1px solid var(--amber-mid);
  }
  #newsletter-btn::after { display: none; }

  /* Footer */
  #footer-logo { font-size: clamp(23px, 7vw, 30px); letter-spacing: 0.15em; }
  #footer-about { max-width: none; font-size: 12.5px; line-height: 1.8; }
  #footer-ghost {
    font-size: clamp(20px, 9vw, 40px);
    letter-spacing: 0.04em;
    margin-top: 48px;
  }
  #wa-btn {
    width: 100%;
    min-width: 0;   /* inline-flex defaults to min-content, which beats width:100% */
    justify-content: center;
    padding: 15px 16px;
  }
  #footer-socials { gap: 18px; flex-wrap: wrap; }
}

/* ── VERY NARROW (iPhone SE and similar) ── */
@media (max-width: 380px) {
  #cards-track { padding: 0 12px 32px; }
  .tea-card { padding: 26px 20px; }   /* width comes from the stack above */
  .card-img-wrap { margin: -26px -20px 18px; height: 164px; }
  .card-badge { top: 136px; right: 20px; }
  .card-name { font-size: 48px; }
  #footer-inner { padding: 76px 18px 0; }
  #footer-bottom { padding: 22px 18px 26px; }
  #newsletter { padding: 76px 18px; }
}

/* ── TOUCH DEVICES ──
   Hover styles never un-stick on touch: a tapped card would stay lifted and
   glowing. Anchor the resting state and give taps a brief press instead. */
@media (hover: none) {
  .tea-card:hover { transform: none; }
  .tea-card:hover .card-img-wrap img { transform: none; }
  .tea-card:active { transform: scale(0.985); }
  .footer-link:hover { transform: none; }
  .footer-link:hover::after { transform: scaleX(0); }
  #wa-btn:hover { transform: none; box-shadow: none; }
  #newsletter-btn:hover::after { transform: scaleX(0); }

  /* `background-attachment: fixed` is unsupported or janky on mobile Safari and
     Android Chrome — it either ignores it or repaints the whole layer on scroll. */
  #newsletter { background-attachment: scroll; }

}

/* ── TAP TARGETS ──
   Two signals on purpose. Width alone would miss an iPad in portrait (~768px),
   which is pure touch and would keep 14px-tall links; `pointer: coarse` alone
   would silently skip every desktop browser, making the rule impossible to
   verify and leaving touch laptops out. Either match is enough — the cost of
   over-matching is a bit more padding in a narrow desktop window.
   Padding rather than height so nothing reflows: the text stays exactly where
   it was designed to sit. */
@media (max-width: 1024px), (pointer: coarse) {
  #header-shop {
    padding: 15px 6px;
    margin: -15px -6px;   /* cancel the padding so the header spacing holds */
  }
  .footer-link { padding: 17px 0; }
  /* the underline is positioned from the padding edge, so it has to move with it */
  .footer-link::after { bottom: 14px; }
  .footer-contact-val { padding: 13px 0; }
  #footer-socials a,
  #footer-credit a {
    display: inline-block;
    padding: 15px 0;
  }
  #footer-socials { gap: 20px; }
  .card-btn { padding: 16px; }
  #email-input { padding: 15px 0; }

  /* These two carry desktop sizing right down to the phone block, so they need
     covering here as well or they stay under-sized on tablets. */
  #newsletter-btn { padding: 14px 0; }
  #newsletter-btn::after { bottom: 12px; }
  /* Vertical only. Overriding the horizontal padding too would clobber the
     narrower values the phone blocks set, and on an inline-flex box the
     min-content width wins over `width: 100%`, so wider padding pushes the
     button past its column instead of wrapping. */
  #wa-btn { padding-top: 17px; padding-bottom: 17px; }
}

/* ── FLOATING WHATSAPP BUBBLE ──
   Keep it clear of the iOS home indicator and Android gesture bar. */
#wa-float {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
}
@media (max-width: 560px) {
  #wa-float {
    width: 50px;
    height: 50px;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

/* ── LANDSCAPE PHONES ──
   Only ~380px of height, so the vertically-placed overlays collide. */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 480px) {
  #hero { height: 420vh; }
  #ov-title { top: 8%; font-size: clamp(17px, 3.4vw, 26px); }
  #ov-wisdom { bottom: 10%; font-size: clamp(17px, 3.2vw, 24px); }
  #ov-craft { top: 10%; font-size: clamp(16px, 3vw, 22px); }
  #ov-minutes { top: 9%; font-size: clamp(17px, 3.2vw, 24px); }
  #ov-sign { bottom: 10%; }
  .pwb-word { font-size: clamp(24px, 5.4vw, 34px); }
  #ov-nature { bottom: 5%; }
  .tea-card { min-height: 0; }
}

/* ── FALLBACK: no JS, or GSAP CDN unreachable ──
   Everything that starts hidden for animation becomes visible. */
.no-anim .f-rise,
.no-anim #footer-topline,
.no-anim .footer-rule,
.no-anim #footer-topglow,
.no-anim #ov-title,
.no-anim #ov-wisdom,
.no-anim #ov-wisdom .word {
  opacity: 1 !important;
  transform: none !important;
}
.no-anim #footer-bg-img {
  opacity: 0.32 !important;
  transform: none !important;
  filter: grayscale(0.25) brightness(0.55) contrast(1.15) !important;
}
.no-anim #footer-ghost { opacity: 1 !important; }
.no-anim #loading-screen { display: none !important; }
.no-anim #hero { height: 100vh !important; }

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  #footer-leafmark::before { animation: none; }
  .f-rise, #footer-bg-img, #footer-topline, .footer-rule, #footer-topglow {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  #footer-bg-img { opacity: 0.3 !important; }
}
