/* =========================================================
   Ahmad Tea x WWF — Mangrove Conservation Scrolling Page
   ========================================================= */

:root{
  --ink: #0f2620;
  --forest: #1c3f31;
  --forest-deep: #0b1f18;
  --cream: #f6f2e7;
  --cream-soft: #efe9d8;
  --coral: #e2574c;
  --lime: #28976dad;
  --sky: #4fb8d6;
  --gold: #d9b26a;
  --teal: #39d393;
  --max-w: 640px;
  --max-w-wide: 920px;
  font-size: 20px;
}

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

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: 'futura-pt', 'Futura', 'Century Gothic', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--cream);
  background: var(--forest-deep);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3{
  font-family: 'futura-pt', 'Futura', 'Century Gothic', Georgia, sans-serif;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p{ color: var(--cream);margin: 0 0 1em; font-family: 'futura-pt', 'Futura', 'Century Gothic', -apple-system, BlinkMacSystemFont, sans-serif;}

a{ color: inherit; }

/* ---------- Canvas backdrop ---------- */
#scene-canvas{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  background: radial-gradient(ellipse at 50% 30%, #16362a 0%, #0b1f18 70%, #060f0c 100%);
}

.grain-overlay{
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scroll progress ---------- */
.scroll-progress{
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 40;
  background: rgba(255,255,255,0.08);
}
.scroll-progress__bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--lime));
}

/* ---------- Header ---------- */
.site-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px) 0;
  pointer-events: none;
}
.site-header > *{ pointer-events: auto; }

.lockup{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'futura-pt', 'Futura', 'Century Gothic', sans-serif;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  text-transform: uppercase;
}
.lockup__ahmad{ font-weight: 600; }
.lockup__x{ opacity: 0.5; font-size: 0.75rem; }
.lockup__wwf{
  padding: 3px 9px;
  border: 1px solid rgba(246,242,231,0.5);
  border-radius: 2px;
  font-weight: 600;
}

/* ---------- Shared button style ----------
   Rectangular, bordered, bold uppercase — with a light fill so it always
   reads clearly against this site's dark backdrops, wherever it's used. */
.btn{
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 6px;
  border: 1.5px solid var(--gold);
  background: var(--cream);
  color: var(--forest-deep);
  white-space: nowrap;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 26px rgba(0,0,0,0.28);
}
.btn:hover{ background: #fff; border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.34); }

.site-header__cta{
  font-size: 0.72rem;
  padding: 10px 20px;
}

/* ---------- Header section nav-dots ---------- */
.nav-dots{
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-dots a{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(246,242,231,0.08);
  border: 1px solid rgba(246,242,231,0.3);
  text-indent: -999px;
  overflow: hidden;
  display: block;
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.nav-dots a:hover, .nav-dots a:focus-visible{
  background: var(--gold);
  border-color: var(--gold);
  transform: scale(1.3);
}
@media (max-width: 720px){
  .nav-dots{ display: none; }
}

/* ---------- Preloader ---------- */
#preloader{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--forest-deep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  transition: opacity 0.9s cubic-bezier(.45,0,.55,1);
}
#preloader .mark{
  font-family: 'futura-pt', 'Futura', 'Century Gothic', sans-serif;
  font-size: clamp(20px, 4vw, 30px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.9;
}
#preloader .bar{
  width: 180px;
  height: 1px;
  background: rgba(246,242,231,0.2);
  position: relative;
  overflow: hidden;
}
#preloader .bar span{
  position: absolute;
  left: 0; top: 0;
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width 1.4s cubic-bezier(.45,0,.55,1);
}
#preloader.is-hidden{
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce){
  #preloader{ transition: none; }
  #preloader .bar span{ transition: none; }
}

/* ---------- Layout ---------- */
main{ position: relative; z-index: 5; }

.depth-section{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px clamp(20px, 6vw, 80px);
}

.section-inner{
  position: relative;
  max-width: var(--max-w);
  width: 100%;
}
.section-inner--narrow{ max-width: 560px; }
.section-inner--wide{ max-width: var(--max-w-wide); }
.section-inner--card{
  background: rgba(6, 18, 14, 0.42);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(246,242,231,0.08);
  border-radius: 18px;
  padding: clamp(28px, 4vw, 52px);
}

.split{ justify-content: flex-start; }
.split--right{ justify-content: flex-end; }
.split--right .section-inner{ text-align: right; margin-left: auto; }
.split--right .flavour-chip, .split--right .slider{ margin-left: auto; }

@media (max-width: 720px){
  .split--right .section-inner{ text-align: left; }
}

.eyebrow{
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size:15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title{ font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ---------- Reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.22,.68,.36,1), transform 0.9s cubic-bezier(.22,.68,.36,1);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }
.reveal:nth-child(1){ transition-delay: 0s; }
.reveal:nth-child(2){ transition-delay: 0.08s; }
.reveal:nth-child(3){ transition-delay: 0.16s; }
.reveal:nth-child(4){ transition-delay: 0.24s; }
.reveal:nth-child(5){ transition-delay: 0.32s; }

/* ---------- Hero (3D root-tunnel banner) ---------- */
.hero{
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 0;
}
.hero--void{
  /* transparent so the fixed canvas (void gradient + root-tunnel 3D scene) shows through */
  background: transparent;
}
.hero .section-inner{ margin: 0 auto; position: relative; z-index: 1; }

/* Lives as a fixed, full-viewport layer (not clipped to the hero section)
   so the animation can keep flowing under the second section before it
   fades out completely, instead of being cut off at the hero's edge. */
.hero-scene-canvas{
  position: fixed;
  inset: 0;
  z-index: 2;
  width: 100vw;
  height: 100vh;
  display: block;
  pointer-events: none;
  transition: opacity 0.15s linear;
}

/* 3D tilt stage — pointer-driven depth for the hero content only */
.hero.stage3d{ perspective: 1400px; perspective-origin: 50% 40%; }
.hero-depth{
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  will-change: transform;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.hero .eyebrow{ transform: translateZ(40px); color: var(--teal); }
.hero__title{
  transform: translateZ(80px);
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  letter-spacing: -0.01em;
  font-weight: 900;
  max-width: 16ch;
}
.hero__title em{
  font-style: normal;
  font-weight: 900;
  color: var(--teal);
}
.hero__sub{
  transform: translateZ(30px);
  max-width: 38ch;
  font-size: clamp(0.95rem, 1vw + 0.7rem, 1.15rem);
  color: rgba(246,242,231,0.78);
}
@media (prefers-reduced-motion: reduce){
  .hero-depth{ transform: none !important; transition: none; }
}

.hero-scroll{
  transform: translateZ(15px);
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(246,242,231,0.55);
  transition: color 0.25s ease;
}
.hero-scroll:hover{ color: var(--teal); }
.hero-scroll span{
  width: 1px; height: 38px;
  background: linear-gradient(var(--gold), transparent);
  animation: descend 2s ease-in-out infinite;
}
@keyframes descend{
  0%{ transform: scaleY(0.3); opacity: 0.3; transform-origin: top; }
  50%{ transform: scaleY(1); opacity: 1; }
  100%{ transform: scaleY(0.3); opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce){
  .hero-scroll span{ animation: none; }
}

/* ---------- Intro ---------- */
.intro{ justify-content: center; text-align: center; }
.intro .section-inner{ margin: 0 auto; }
.intro__lead{
  font-family: 'futura-pt', 'Futura', 'Century Gothic', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 500;
  font-style: italic;
}
.intro__body{ color: rgba(246,242,231,0.82); }

/* ---------- Product ---------- */
.product{ justify-content: center; align-items: center; text-align: center; padding-top: clamp(100px, 12vh, 160px); padding-bottom: clamp(60px, 8vh, 100px); }
.product .section-inner{ margin: 0 auto; }
.product .section-inner--wide{ text-align: center; }
.product__body{
  color: rgba(246,242,231,0.85);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.product__hero{
  position: relative;
  margin: clamp(40px, 6vw, 72px) auto 0;
  max-width: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product__glow{
  position: absolute;
  top: 8%;
  left: 50%;
  width: 92%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle, rgba(217,178,106,0.35), rgba(139,195,74,0.22) 45%, transparent 72%);
}

.product__hero-img{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 30px 46px rgba(0,0,0,0.45));
}

.product__flavours{
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: clamp(28px, 4vw, 40px);
}


/* ---------- Timeline (centered, alternating) ---------- */
.timeline.timeline--center{ justify-content: center; }
.timeline.timeline--center .section-inner{ text-align: center; margin: 0 auto; }
.timeline.timeline--center .section-title{ margin: 0 auto 56px; }
.timeline.timeline--center .eyebrow{ text-align: center; }

.vtimeline--center{
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  text-align: left;
}
.vtimeline--center::before{
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(246,242,231,0.05), rgba(246,242,231,0.2) 15%, rgba(246,242,231,0.2) 85%, rgba(246,242,231,0.05));
}

.vtimeline--center .vtimeline__item{
  display: grid;
  grid-template-columns: 1fr clamp(56px, 7vw, 84px) 1fr;
  align-items: start;
  column-gap: clamp(16px, 3vw, 40px);
  padding-bottom: clamp(48px, 7vw, 80px);
}
.vtimeline--center .vtimeline__item:last-child{ padding-bottom: 0; }

.vtimeline--center .vtimeline__node{
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(60px, 9vw, 90px);
}
.vtimeline--center .vtimeline__dot{
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--forest-deep);
  border: 2px solid rgba(246,242,231,0.4);
  z-index: 1;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}
.vtimeline--center .vtimeline__item.is-active .vtimeline__dot{
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 6px rgba(217,178,106,0.22);
  transform: scale(1.15);
}
.vtimeline--center .vtimeline__year{
  display: block;
  margin-top: 12px;
  font-family: 'futura-pt', 'Futura', 'Century Gothic', sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(246,242,231,0.35);
  line-height: 1;
  text-align: center;
  transition: color 0.5s ease;
}
.vtimeline--center .vtimeline__month{
  display: block;
  margin-top: 4px;
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(246,242,231,0.4);
  text-align: center;
  transition: color 0.5s ease;
}
.vtimeline--center .vtimeline__item.is-active .vtimeline__year{ color: var(--gold); }
.vtimeline--center .vtimeline__item.is-active .vtimeline__month{ color: rgba(246,242,231,0.75); }

.vtimeline--center .vtimeline__card{
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(6,18,14,0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(246,242,231,0.1);
  opacity: 0.55;
  transform: translateY(6px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.5s ease;
}
.vtimeline--center .vtimeline__item:nth-child(even) .vtimeline__card{
  grid-column: 3;
  justify-self: start;
}
.vtimeline--center .vtimeline__item.is-active .vtimeline__card{
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(246,242,231,0.2);
}
.vtimeline--center .vtimeline__img{
  width: 100%;
  height: clamp(130px, 16vw, 180px);
  object-fit: cover;
  display: block;
}
.vtimeline--center .vtimeline__cardbody{ padding: clamp(16px, 2.2vw, 22px) clamp(18px, 2.4vw, 24px) clamp(20px, 2.6vw, 26px); }
.vtimeline--center .vtimeline__date{
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.vtimeline--center .vtimeline__title{ font-size: clamp(1.1rem, 2.2vw, 1.4rem); margin-bottom: 8px; }
.vtimeline--center .vtimeline__desc{ color: rgba(246,242,231,0.8); font-size: 0.9rem; margin: 0; }

@media (max-width: 820px){
  .vtimeline--center::before{ left: 30px; }
  .vtimeline--center .vtimeline__item{
    grid-template-columns: 60px 1fr;
    column-gap: 16px;
  }
  .vtimeline--center .vtimeline__node{
    grid-column: 1;
    padding-top: 4px;
  }
  .vtimeline--center .vtimeline__year{ font-size: 1rem; }
  .vtimeline--center .vtimeline__card,
  .vtimeline--center .vtimeline__item:nth-child(even) .vtimeline__card{
    grid-column: 2;
    justify-self: stretch;
    max-width: none;
  }
}

/* ---------- CTA ---------- */
.cta{ justify-content: center; text-align: center; }
.cta .section-inner{ margin: 0 auto; }
.cta__title{ font-size: clamp(2rem, 5vw, 3rem); }
.cta__button{ margin-top: 20px; }

/* ---------- Footer ---------- */
.site-footer{
  position: relative;
  z-index: 5;
  background: var(--forest-deep);
  padding: 60px clamp(20px, 6vw, 80px) 40px;
  text-align: center;
  color: rgba(246,242,231,0.65);
}
.lockup--footer{ justify-content: center; margin-bottom: 18px; }
.site-footer p{ max-width: 480px; margin-left: auto; margin-right: auto; }
.site-footer__fine{ font-size: 0.75rem; opacity: 0.6; margin-top: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 720px){
  .depth-section{ padding: 110px 20px; min-height: 92vh; }
  .hero{ padding-bottom: 90px; }
  .site-header{ padding: 16px 18px 0; }
}
