:root {
  --bg-color: #2C1B18;
  /* Deep brown */
  --accent-cream: #FDF8F5;
  --accent-gold: #D4AF37;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--accent-cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to bottom, rgba(44, 27, 24, 0.9), transparent);
  /* backdrop-filter: blur(8px); */
  z-index: 100;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.navbar nav {
  display: flex;
  gap: 2.5rem;
}

.navbar a {
  color: var(--accent-cream);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: color 0.3s ease;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.navbar a:hover {
  color: var(--accent-gold);
}

.navbar a:hover::after {
  width: 100%;
}

/* Sequence Hero Section (Canvas + Features) */
.sequence-hero {
  position: relative;
  height: 600vh;
  /* Extremely tall to provide ample scrolling time for the 240 frames */
  width: 100%;
}

.canvas-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  background: var(--bg-color);
  /* Matches sequence frame backdrop */
  overflow: hidden;
}

.sequence-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.features-overlay {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  z-index: 5;
  pointer-events: none;
}

.hero-feature-text {
  position: absolute;
  color: var(--accent-cream);
  font-family: var(--font-heading);
  text-align: center;
  pointer-events: none;
  /* Start transparent to let Javascript bind the scroll mapping smoothly */
  opacity: 0;
  transform: translateY(20%);
  will-change: opacity, transform;
}

.feature-h1 {
  width: 100%;
  font-size: 5rem;
  top: 30%;
  font-weight: 400;
}

.feature-h1 span {
  color: var(--accent-gold);
  font-style: italic;
}

.hero-feature-text.right {
  font-size: 3.5rem;
  right: 15%;
  top: 45%;
  color: var(--accent-gold);
  max-width: 400px;
  text-align: right;
}

.hero-feature-text.left {
  font-size: 3.5rem;
  left: 15%;
  top: 45%;
  color: var(--accent-gold);
  max-width: 400px;
  text-align: left;
}

.hero-feature-text.center-bottom {
  width: 100%;
  font-size: 4rem;
  top: 40%;
  color: var(--accent-cream);
}

/* Sections */
.story-section {
  position: relative;
  z-index: 20;
  background: var(--bg-color);
  padding: 15rem 10% 10rem;
  display: flex;
  flex-direction: column;
  gap: 30vh;
  min-height: 200vh;
}

.story-block {
  max-width: 600px;
}

.story-block.right {
  align-self: flex-end;
  text-align: right;
}

.story-block h2 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--accent-gold);
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.story-block p {
  font-size: 1.4rem;
  line-height: 1.8;
  color: rgba(253, 248, 245, 0.9);
  font-weight: 300;
}

.pricing-section {
  position: relative;
  z-index: 20;
  background: #251614;
  padding: 10rem 10%;
}

.pricing-header {
  text-align: center;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--accent-gold);
  margin-bottom: 5rem;
}

/* Product Image Styling */
.product-img-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  /* Placeholder glow */
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.price-item:hover .product-img {
  transform: scale(1.05);
  /* Subtle lift effect */
}

/* Add to Cart Button */
.add-to-cart-btn {
  margin-top: 1.5rem;
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.add-to-cart-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s ease, opacity 0.6s, transform 0.6s;
}

.price-item:hover {
  transform: scale(1.02);
  border-color: rgba(212, 175, 55, 0.4);
}

.price-info h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--accent-cream);
  margin-bottom: 0.5rem;
}

.price-info p {
  font-size: 1rem;
  color: rgba(253, 248, 245, 0.6);
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--accent-gold);
}

.shop-details {
  position: relative;
  z-index: 20;
  padding: 8rem 10% 5rem;
  background: #1c110f;
  border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.details-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.detail-card {
  flex: 1;
  text-align: center;
  padding: 2.5rem;
}

.detail-card h3 {
  font-family: var(--font-heading);
  color: var(--accent-gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.detail-card p,
.detail-card a {
  color: rgba(253, 248, 245, 0.8);
  font-size: 1rem;
  line-height: 1.7;
  text-decoration: none;
}

.detail-card a:hover {
  color: var(--accent-gold);
}

/* Floating Decor Vanilla CSS */
.f-bean {
  position: fixed;
  mix-blend-mode: lighten;
  z-index: 15;
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
  will-change: transform;
}

.f-bean-1 {
  top: 20%;
  left: 10%;
  width: 90px;
  filter: blur(3px);
}

.f-bean-2 {
  top: 60%;
  right: 15%;
  width: 120px;
}

.f-bean-3 {
  bottom: 10%;
  left: 20%;
  width: 60px;
  filter: blur(2px);
}

/* Intersection Observer Base Classes */
.observe-fade {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.observe-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

.observe-slide-x {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.observe-slide-x.visible {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 900px) {
  .feature-h1 {
    font-size: 3rem;
  }

  .price-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .details-grid {
    flex-direction: column;
  }
}