/* ========================================
   OliveStove — v3 Story Edition (Mobile-First)
   ======================================== */

:root {
  --olive: #6b7d4f;
  --olive-light: #8a9d6b;
  --olive-dark: #5a6b42;
  --amber: #e8a84c;
  --amber-light: #f0be72;
  --charcoal: #1a1a1a;
  --cream: #f5f0e8;
  --cream-dark: #ede5d8;
  --terracotta: #c67b5c;
  --white: #ffffff;
  --hero-bg: #f5f0e8;

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-fun: 6px 6px 0 rgba(107,125,79,0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; }

body {
  font-family: var(--font-arabic), var(--font-body);
  color: var(--charcoal);
  background-color: var(--cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: var(--font-body); line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ========================================
   Story Progress Bar
   ======================================== */
.story-progress {
  position: fixed;
  top: 0;
  right: 0;
  width: 3px;
  height: 100vh;
  z-index: 999;
  background: rgba(107,125,79,0.1);
}

html[dir="ltr"] .story-progress { right: auto; left: 0; }

.progress-fill {
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--olive), var(--amber), var(--terracotta));
  border-radius: 0 0 4px 4px;
  transition: height 0.1s linear;
}

/* ========================================
   Chapter Navigation Dots
   ======================================== */
.chapter-nav {
  position: fixed;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  display: none;
  flex-direction: column;
  gap: 14px;
}

html[dir="ltr"] .chapter-nav { right: auto; left: 12px; }

.chapter-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(107,125,79,0.2);
  border: 2px solid rgba(107,125,79,0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.chapter-dot.active {
  background: var(--olive);
  border-color: var(--olive);
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(107,125,79,0.15);
}

.chapter-dot:hover { background: var(--olive-light); border-color: var(--olive-light); }

/* ========================================
   Language Toggle
   ======================================== */
.lang-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 1000;
  background: var(--white);
  border: 2px solid var(--olive);
  border-radius: 50px;
  padding: 8px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--olive);
  transition: all var(--transition);
  box-shadow: 3px 3px 0 rgba(107,125,79,0.2);
}

html[dir="ltr"] .lang-toggle { left: auto; right: 14px; }
.lang-toggle:hover { background: var(--olive); color: var(--white); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(107,125,79,0.3); }

/* ========================================
   Story Sections — Base
   ======================================== */
.story-section {
  position: relative;
  overflow: hidden;
}

.section-transition {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 2;
}

.section-transition svg { width: 100%; display: block; }
.transition-torn svg { height: 60px; }
.transition-slant svg { height: 50px; }
.transition-curve svg { height: 60px; }
.transition-zigzag svg { height: 50px; }
.transition-wave svg { height: 60px; }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 100px;
  background: var(--hero-bg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-logo-wrapper {
  margin-bottom: 28px;
  display: flex;
  justify-content: center;
}

.logo-scene {
  position: relative;
  width: 140px;
  height: 140px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  background-color: var(--hero-bg);
}

.logo-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2.5px dashed var(--olive);
  opacity: 0.35;
  animation: spinSlow 25s linear infinite;
}

.logo-ring-2 {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px dotted var(--amber);
  opacity: 0.2;
  animation: spinSlow 35s linear infinite reverse;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 20px;
  direction: ltr;
}

.hero-intro {
  font-size: 1rem;
  line-height: 2;
  color: #4a4a4a;
  margin-bottom: 32px;
}

html[lang="en"] .hero-intro { font-weight: 300; line-height: 1.8; }

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: var(--olive);
  color: var(--white);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  box-shadow: 4px 4px 0 rgba(90,107,66,0.4);
  font-family: inherit;
}

.hero-cta:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 rgba(90,107,66,0.4); }

.hero-cta-delayed {
  opacity: 0;
  transform: translateY(20px);
  animation: ctaFadeIn 0.8s ease forwards;
  animation-delay: 1s;
}

@keyframes ctaFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

.cta-arrow { width: 20px; height: 20px; animation: bounceDown 1.5s ease-in-out infinite; }

@keyframes bounceDown { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ========================================
   About Section — Consolidated Cards
   ======================================== */
.chapter-about {
  background: var(--olive);
  color: var(--white);
  padding: 60px 0 100px;
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.about-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 16px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.about-card:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.about-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card-icon svg { width: 44px; height: 44px; }

.about-card-text { flex: 1; }

.about-card-title {
  font-family: var(--font-arabic);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

html[lang="en"] .about-card-title { font-family: var(--font-heading); }

.about-card-desc {
  font-size: 0.82rem;
  line-height: 1.7;
  opacity: 0.85;
}

html[lang="en"] .about-card-desc { font-weight: 300; line-height: 1.7; }

.about-connector {
  text-align: center;
  margin-top: 20px;
}

/* Staggered card entrance — triggered when section enters viewport */
.about-stagger-1,
.about-stagger-2,
.about-stagger-3,
.about-stagger-4 {
  opacity: 0;
  transform: translateY(30px);
}

.chapter-about.in-view .about-stagger-1 {
  animation: cardFadeIn 0.7s ease forwards;
  animation-delay: 0s;
}

.chapter-about.in-view .about-stagger-2 {
  animation: cardFadeIn 0.7s ease forwards;
  animation-delay: 1s;
}

.chapter-about.in-view .about-stagger-3 {
  animation: cardFadeIn 0.7s ease forwards;
  animation-delay: 2s;
}

.chapter-about.in-view .about-stagger-4 {
  animation: cardFadeIn 0.7s ease forwards;
  animation-delay: 3s;
}

@keyframes cardFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Animated chapter backgrounds */
.chapter-bg-anim {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: #fff;
}

.bg-shape-1 {
  width: 250px; height: 250px;
  top: -100px; left: -80px;
  animation: bgDrift1 20s ease-in-out infinite;
}

.bg-shape-2 {
  width: 180px; height: 180px;
  bottom: -60px; right: -40px;
  animation: bgDrift2 25s ease-in-out infinite;
}

.bg-shape-3 {
  display: none;
}

@keyframes bgDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, 40px) scale(1.1); }
  50% { transform: translate(30px, 80px) scale(0.95); }
  75% { transform: translate(-20px, 50px) scale(1.05); }
}

@keyframes bgDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30% { transform: translate(-50px, -30px) scale(1.08); }
  60% { transform: translate(-20px, -60px) scale(0.92); }
  80% { transform: translate(30px, -20px) scale(1.04); }
}

@keyframes bgDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.08; }
  40% { transform: translate(-40px, 30px) scale(1.15); opacity: 0.12; }
  70% { transform: translate(20px, -20px) scale(0.9); opacity: 0.06; }
}

/* Next section link — button style */
.next-section-link,
.next-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 50px;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  color: inherit;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.next-section-link:hover,
.next-section-btn:hover {
  background: rgba(255,255,255,0.35);
  border-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.next-section-link svg,
.next-section-btn svg {
  animation: bounceDown 1.5s ease-in-out infinite;
}

.next-section-dark {
  color: var(--olive-dark);
  background: rgba(107,125,79,0.1);
  border-color: rgba(107,125,79,0.3);
}

.next-section-dark:hover {
  background: rgba(107,125,79,0.2);
  border-color: rgba(107,125,79,0.5);
}

/* Chapter number label */
.chapter-number {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.5;
  margin-bottom: 24px;
  text-align: center;
}

/* ========================================
   Section Titles
   ======================================== */
.section-title {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 16px;
  color: inherit;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

html[lang="en"] .section-title { font-family: var(--font-heading); }

/* ========================================
   Recipes Section
   ======================================== */
.chapter-recipes-section {
  background: var(--cream);
  color: var(--charcoal);
  padding: 60px 0 120px;
}

.chapter[data-bg="white"] { background: var(--white); color: var(--charcoal); }
.chapter[data-bg="cream-dark"] { background: var(--cream-dark); color: var(--charcoal); }

.chapter {
  position: relative;
  overflow: hidden;
  padding: 60px 0 100px;
}

.recipes-placeholder {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  box-shadow: var(--shadow-sm);
  border: 2px dashed rgba(107,125,79,0.2);
}

.recipe-anim { margin-bottom: 24px; }

.pot-scene {
  position: relative;
  width: 140px;
  height: 160px;
  margin: 0 auto;
}

.pot-body { position: absolute; bottom: 0; left: 0; right: 0; }
.pot-svg { width: 140px; height: 105px; }

.pot-tilt {
  animation: potRock 3s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes potRock {
  0%, 100% { transform: rotate(0deg); }
  30% { transform: rotate(-3deg); }
  60% { transform: rotate(2.5deg); }
  80% { transform: rotate(-1deg); }
}

.pot-lid {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);
  width: 115px;
  z-index: 2;
}

.lid-svg { width: 115px; height: 26px; }

.lid-lift {
  animation: lidLift 3s ease-in-out infinite;
  transform-origin: 90% bottom;
}

@keyframes lidLift {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(0deg); }
  25% { transform: translateX(-50%) translateY(-8px) rotate(-6deg); }
  50% { transform: translateX(-50%) translateY(-4px) rotate(-3deg); }
  70% { transform: translateX(-50%) translateY(-10px) rotate(-8deg); }
  85% { transform: translateX(-50%) translateY(-3px) rotate(-2deg); }
}

.bubble { animation: bubblePop 2s ease-in-out infinite; }
.b1 { animation-delay: 0s; }
.b2 { animation-delay: 0.5s; }
.b3 { animation-delay: 1s; }

@keyframes bubblePop {
  0%, 100% { opacity: 0.3; transform: translateY(0) scale(1); }
  50% { opacity: 0.6; transform: translateY(-8px) scale(1.3); }
}

.steam-puffs { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); z-index: 3; }

.puff { position: absolute; animation: puffRise 3s ease-in-out infinite; }
.puff-1 { left: -15px; top: 0; }
.puff-2 { left: 10px; top: -5px; animation-delay: 0.8s; }
.puff-3 { left: -5px; top: 10px; animation-delay: 1.6s; }
.puff-4 { left: 15px; top: 5px; animation-delay: 2.2s; }
.puff svg { width: 36px; height: 36px; }
.puff-3 svg { width: 44px; height: 44px; }

@keyframes puffRise {
  0% { opacity: 0; transform: translateY(10px) scale(0.5); }
  30% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}

.sparkle { position: absolute; animation: sparkleFloat 2.5s ease-in-out infinite; }
.sparkle-1 { top: 10px; left: 5px; }
.sparkle-2 { top: 25px; right: 10px; animation-delay: 0.8s; }

@keyframes sparkleFloat {
  0%, 100% { opacity: 0; transform: scale(0.5) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(180deg); }
}

.recipes-message { font-size: 1rem; color: var(--charcoal); margin-bottom: 10px; line-height: 1.8; font-weight: 600; }
.recipes-sub { font-size: 0.85rem; color: #6a6a6a; margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-bounce:hover { animation: btnBounce 0.4s ease; }

@keyframes btnBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.08); }
  70% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn-primary { background: var(--olive); color: var(--white); box-shadow: 3px 3px 0 rgba(90,107,66,0.3); }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(90,107,66,0.3); }
.btn-outline { background: transparent; color: var(--olive); border: 2px solid var(--olive); box-shadow: 3px 3px 0 rgba(107,125,79,0.15); }
.btn-outline:hover { background: var(--olive); color: var(--white); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 rgba(107,125,79,0.2); }

/* ========================================
   Videos Section
   ======================================== */
.yt-header {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--charcoal);
}

.yt-logo { width: 32px; height: 32px; transition: transform var(--transition); }
.yt-header:hover .yt-logo { transform: scale(1.15) rotate(-5deg); }

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.video-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-fun);
  border-color: rgba(107,125,79,0.15);
}

.video-thumb-wrapper { position: relative; overflow: hidden; }

.video-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumb { transform: scale(1.05); }

.video-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 50px; height: 50px;
  background: rgba(255,0,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(255,0,0,0.3);
}

.video-card:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.15); }
.video-play-btn svg { width: 20px; height: 20px; margin-left: 3px; }
.video-card-info { padding: 14px 16px; }

.video-card-title {
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card-meta { font-size: 0.75rem; color: #888; margin-top: 4px; }
.channel-link { margin-top: 8px; }

.video-loading { grid-column: 1 / -1; text-align: center; padding: 40px 16px; color: #888; }

.spinner {
  width: 36px; height: 36px;
  border: 4px solid rgba(107,125,79,0.15);
  border-top-color: var(--olive);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========================================
   Social / Follow Section
   ======================================== */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 16px;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.social-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.social-card:hover {
  transform: translateY(-6px) rotate(1deg);
  box-shadow: 6px 6px 0 rgba(0,0,0,0.15);
}

.social-youtube { background: linear-gradient(135deg, #FF0000, #cc0000); }
.social-tiktok { background: linear-gradient(135deg, #1a1a1a, #333); }
.social-facebook { background: linear-gradient(135deg, #1877F2, #1565d8); }
.social-snapchat { background: linear-gradient(135deg, #FFFC00, #e6e300); color: #1a1a1a; }
.social-snapchat .social-cta { border-color: rgba(0,0,0,0.25); color: #1a1a1a; }
.social-snapchat:hover .social-cta { background: rgba(0,0,0,0.1); border-color: rgba(0,0,0,0.4); }
.social-snapchat .social-icon-wrapper { background: rgba(0,0,0,0.1); }
.social-snapchat:hover .social-icon-wrapper { background: rgba(0,0,0,0.15); }
.social-snapchat .social-icon { fill: #1a1a1a; }

.social-icon-wrapper {
  width: 52px; height: 52px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.social-card:hover .social-icon-wrapper {
  transform: scale(1.1) rotate(-5deg);
  background: rgba(255,255,255,0.3);
}

.social-icon { width: 26px; height: 26px; }

.social-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
}

.social-cta {
  padding: 6px 18px;
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}

.social-card:hover .social-cta {
  background: rgba(255,255,255,0.25);
  border-color: var(--white);
  transform: scale(1.05);
}

/* ========================================
   Footer
   ======================================== */
.footer { position: relative; }
.footer-wave { line-height: 0; background: var(--cream-dark); }
.footer-wave svg { width: 100%; height: 50px; }

.footer-inner {
  background: var(--charcoal);
  color: var(--cream);
  padding: 40px 0 32px;
  text-align: center;
}

.footer-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }

.footer-logo {
  width: 50px; height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
  background-color: var(--hero-bg);
  transition: transform var(--transition);
}

.footer-logo:hover { transform: rotate(10deg) scale(1.1); }

.footer-brand { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; }
.footer-tagline { font-size: 0.85rem; color: rgba(245,240,232,0.5); }

.footer-socials { display: flex; gap: 12px; margin: 12px 0; }

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(245,240,232,0.08);
  transition: all var(--transition);
  border: 1px solid rgba(245,240,232,0.1);
}

.footer-socials a:hover { background: var(--olive); transform: translateY(-3px) rotate(-5deg); border-color: var(--olive); }
.footer-socials svg { width: 16px; height: 16px; }
.footer-copyright { font-size: 0.75rem; color: rgba(245,240,232,0.35); margin-top: 6px; }

/* ========================================
   Reveal Animations
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

.reveal-slide-right { transform: translateY(30px); }
.reveal-slide-right.visible { transform: translateY(0); }

.reveal-slide-left { transform: translateY(30px); }
.reveal-slide-left.visible { transform: translateY(0); }

.reveal-scale { transform: scale(0.9) translateY(20px); }
.reveal-scale.visible { transform: scale(1) translateY(0); }

.social-grid .reveal:nth-child(2) { transition-delay: 0.15s; }
.social-grid .reveal:nth-child(3) { transition-delay: 0.3s; }
.social-grid .reveal:nth-child(4) { transition-delay: 0.45s; }

/* ========================================
   Tablet+ (min-width: 600px)
   ======================================== */
@media (min-width: 600px) {
  .container { padding: 0 24px; }

  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .about-card { padding: 28px 24px; gap: 20px; }
  .about-card-icon { width: 70px; height: 70px; }
  .about-card-icon svg { width: 70px; height: 70px; }
  .about-card-title { font-size: 1.4rem; }
  .about-card-desc { font-size: 0.95rem; }

  .section-title { font-size: 2rem; }

  .transition-torn svg { height: 80px; }
  .transition-zigzag svg { height: 60px; }
  .transition-wave svg { height: 80px; }
}

/* ========================================
   Desktop (min-width: 768px)
   ======================================== */
@media (min-width: 768px) {
  html { font-size: 16px; }
  .container { padding: 0 24px; }

  .chapter-nav { display: flex; }
  .story-progress { width: 4px; }

  .lang-toggle { top: 20px; left: 20px; padding: 10px 24px; font-size: 0.85rem; }
  html[dir="ltr"] .lang-toggle { left: auto; right: 20px; }

  .hero { padding: 60px 24px 160px; min-height: 100vh; }
  .hero-title { font-size: 3.5rem; }
  .hero-intro { font-size: 1.1rem; }

  .logo-scene { width: 200px; height: 200px; }
  .hero-logo { width: 160px; height: 160px; }

  .chapter-about { padding: 80px 0 160px; }
  .chapter { padding: 80px 0 160px; }

  .about-cards { gap: 24px; }
  .about-card {
    padding: 36px 32px;
    gap: 28px;
  }
  .about-card-icon { width: 80px; height: 80px; }
  .about-card-icon svg { width: 80px; height: 80px; }
  .about-card-title { font-size: 1.5rem; }
  .about-card-desc { font-size: 1rem; }

  .chapter-number { font-size: 0.85rem; margin-bottom: 40px; }
  .section-title { font-size: 2.4rem; }

  .recipes-placeholder { padding: 60px 40px; }
  .recipes-message { font-size: 1.15rem; }
  .recipes-sub { font-size: 0.95rem; }

  .pot-scene { width: 160px; height: 180px; }
  .pot-svg { width: 160px; height: 120px; }
  .pot-lid { bottom: 65px; width: 130px; }
  .lid-svg { width: 130px; height: 30px; }

  .video-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

  .social-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
  .social-card { padding: 44px 24px; gap: 16px; }
  .social-icon-wrapper { width: 64px; height: 64px; }
  .social-icon { width: 32px; height: 32px; }
  .social-name { font-size: 1.4rem; }
  .social-cta { padding: 8px 24px; font-size: 0.85rem; }

  .next-section-link,
  .next-section-btn { font-size: 0.95rem; padding: 14px 32px; }

  .footer-wave svg { height: 60px; }
  .footer-inner { padding: 50px 0 40px; }
  .footer-logo { width: 60px; height: 60px; }
  .footer-brand { font-size: 1.3rem; }
  .footer-socials { gap: 16px; margin: 16px 0; }
  .footer-socials a { width: 42px; height: 42px; }
  .footer-socials svg { width: 18px; height: 18px; }
  .footer-copyright { font-size: 0.8rem; }

  .transition-torn svg { height: 100px; }
  .transition-slant svg { height: 80px; }
  .transition-curve svg { height: 100px; }
  .transition-zigzag svg { height: 80px; }
  .transition-wave svg { height: 100px; }

  .bg-shape-1 { width: 400px; height: 400px; }
  .bg-shape-2 { width: 300px; height: 300px; }
  .bg-shape-3 { display: block; width: 200px; height: 200px; top: 40%; right: 15%; animation: bgDrift3 18s ease-in-out infinite; }

  .reveal-slide-right { transform: translateX(80px) translateY(0); }
  .reveal-slide-right.visible { transform: translateX(0) translateY(0); }
  .reveal-slide-left { transform: translateX(-80px) translateY(0); }
  .reveal-slide-left.visible { transform: translateX(0) translateY(0); }

  .btn { padding: 12px 28px; font-size: 0.9rem; }
}

/* ========================================
   Large Desktop
   ======================================== */
@media (min-width: 1024px) {
  .about-card:hover { transform: translateY(-5px); }
  .social-card:hover { transform: translateY(-8px) rotate(1deg); box-shadow: 8px 8px 0 rgba(0,0,0,0.15); }
  .video-card:hover { transform: translateY(-6px) rotate(-0.5deg); }
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
