/* ═══════════════════════════════════════════════════════
   REBEL & YOU — Styles
   Design ref: planetono.space (tubik studio)
   Character: Comic-book neo-brutalist food brand
   Signature easing: quint-out cubic-bezier(0.25, 1, 0.5, 1)
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Preuksa';
  src: url('fonts/preuksa-extrabold.woff2') format('woff2'),
       url('fonts/preuksa-extrabold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ── */
:root {
  --color-red: #eb3322;
  --color-yellow: #ffc737;
  --color-cream: #f7f2e5;
  --color-dark: #1a1a1a;
  --color-purple: #7721c7;
  --color-blue: #2097cf;
  --color-green: #8df947;
  --color-white: #ffffff;

  --color-bg: var(--color-red);
  --color-text: var(--color-cream);
  --color-heading: var(--color-cream);
  --color-accent: var(--color-yellow);
  --color-surface: var(--color-dark);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --heading-weight: 800;

  --section-padding: clamp(60px, 8vw, 120px) 0;
  --container-max: 1200px;
  --container-pad: 0 clamp(20px, 4vw, 60px);
  --nav-height: 90px;
  --grid-gap: 24px;
  --border-thick: 3px solid var(--color-dark);
  --border-radius: 0px;

  --ease-quint: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-material: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.55s;
  --duration-fast: 0.1s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-cream);
  background: var(--color-red);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-pad);
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.95;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 8vw, 96px); }
h2 { font-size: clamp(32px, 5vw, 64px); }
h3 { font-size: clamp(20px, 3vw, 32px); }
p { text-wrap: pretty; }

/* ── PRELOADER ── */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  background: var(--color-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-quint);
}
.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.preloader-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: scale(0.8);
  animation: preloaderReveal 0.8s var(--ease-quint) 0.3s forwards;
}
.preloader-wordmark {
  height: clamp(70px, 12.5vw, 155px);
  width: auto;
  filter: brightness(10);
  margin-bottom: 16px;
}
.preloader-tagline {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 20px);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-cream);
  opacity: 0;
  text-align: center;
  animation: preloaderTagline 0.5s var(--ease-quint) 0.8s forwards;
}
@keyframes preloaderReveal {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes preloaderTagline {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.7; transform: translateY(0); }
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 clamp(20px, 4vw, 60px);
  background-color: transparent;
  transition: background-color var(--duration) var(--ease-quint);
}
.site-header.is-scrolled {
  background-color: var(--color-red);
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
}
.header-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.header-logo img {
  height: 66px;
  width: auto;
  transition: filter var(--duration) var(--ease-quint);
}
.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-dark);
  transition: all var(--duration) var(--ease-quint);
  opacity: 0.8;
  position: relative;
}
/* Underline draw on hover */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.35s var(--ease-quint);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { opacity: 1; color: var(--color-dark); }
.site-header.is-scrolled .nav-link { color: var(--color-cream); }
.site-header.is-scrolled .header-logo img { filter: brightness(10); }

/* Hamburger */
.mobile-toggle {
  display: none;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}
.mobile-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.3s var(--ease-quint);
}
.site-header.is-scrolled .mobile-toggle span { background: var(--color-cream); }
.mobile-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(7px, 7px); }
.mobile-toggle.is-open span:nth-child(2) { opacity: 0; }
.mobile-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

.header-cta {
  font-weight: 700;
  font-size: 14px;
  padding: 10px 24px;
  border: var(--border-thick);
  background: var(--color-cream);
  color: var(--color-dark);
  cursor: pointer;
  transition: all var(--duration-fast) ease;
}
.header-cta:active { animation: jelly 0.5s ease; }

/* ── DECORATIVE ELEMENTS ── */
.deco-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  /* Floating blob drift */
  animation: blobDrift 20s ease-in-out infinite alternate;
}
.deco-blob:nth-child(2) { animation-duration: 25s; animation-delay: -5s; }
.deco-blob:nth-child(3) { animation-duration: 18s; animation-delay: -10s; }
@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  25%  { transform: translate(15px, -20px) scale(1.05); }
  50%  { transform: translate(-10px, 15px) scale(0.95); }
  75%  { transform: translate(20px, 10px) scale(1.03); }
  100% { transform: translate(-15px, -10px) scale(0.98); }
}
.deco-blob--red { background: var(--color-red); }
.deco-blob--yellow { background: var(--color-yellow); }
.deco-blob--purple { background: var(--color-purple); }
.deco-blob--blue { background: var(--color-blue); }
.deco-blob--green { background: var(--color-green); }

.deco-star {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: twinkle 3s ease-in-out infinite;
}
.deco-star--delay-1 { animation-delay: 0.5s; }
.deco-star--delay-2 { animation-delay: 1.2s; }
.deco-star--delay-3 { animation-delay: 2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(1) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.2) rotate(15deg); }
}
/* Rotation drift on stars */
@keyframes starDrift {
  0%   { transform: rotate(0deg) translateY(0); }
  25%  { transform: rotate(8deg) translateY(-6px); }
  50%  { transform: rotate(-5deg) translateY(4px); }
  75%  { transform: rotate(12deg) translateY(-3px); }
  100% { transform: rotate(0deg) translateY(0); }
}
.deco-star {
  animation: twinkle 3s ease-in-out infinite, starDrift 12s ease-in-out infinite;
}
.deco-star--delay-1 { animation-delay: 0.5s, -3s; }
.deco-star--delay-2 { animation-delay: 1.2s, -6s; }
.deco-star--delay-3 { animation-delay: 2s, -9s; }

.deco-wave {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  /* Subtle wave undulation */
  animation: waveUndulate 6s ease-in-out infinite alternate;
}
.deco-wave:nth-of-type(even) { animation-duration: 8s; animation-delay: -2s; }
@keyframes waveUndulate {
  0%   { transform: translateX(0) scaleY(1); }
  50%  { transform: translateX(-8px) scaleY(1.06); }
  100% { transform: translateX(6px) scaleY(0.95); }
}
.deco-wave--bottom { bottom: -2px; }
.deco-wave--top { top: -2px; }

/* Grain overlay on body — with flicker */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  animation: grainFlicker 0.4s steps(3) infinite;
}
@keyframes grainFlicker {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-2px, 1px); }
  66%  { transform: translate(1px, -2px); }
  100% { transform: translate(2px, 2px); }
}

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  background: var(--color-yellow);
  display: flex;
  align-items: center;
  padding: calc(var(--nav-height) + 40px) 0 60px;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 20px;
}
.hero-content { z-index: 2; }
.hero-eyebrow {
  display: inline-block;
  background: var(--color-dark);
  color: var(--color-yellow);
  padding: 6px 16px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  border: var(--border-thick);
  position: relative;
}
.eyebrow-character {
  position: absolute;
  right: -8px;
  top: -44px;
  height: 42px;
  width: auto;
}
.hero h1 {
  font-family: 'Preuksa', 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  margin-bottom: 24px;
}
.hero-subtext {
  color: var(--color-dark);
  font-size: clamp(16px, 1.5vw, 20px);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0.85;
}
.hero-media {
  position: relative;
  z-index: 1;
}
.hero-media img,
.hero-media video {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 4 / 3;
  border: var(--border-thick);
  object-fit: cover;
}
/* Decorative starburst */
.starburst {
  position: absolute;
  background: var(--color-cream);
  border: var(--border-thick);
  padding: 12px 20px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-dark);
  z-index: 3;
  transform: rotate(-6deg);
}
.starburst--top { top: -20px; right: -10px; }
/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  color: var(--color-dark);
  opacity: 0.5;
  animation: bounce 2s ease infinite;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border: var(--border-thick);
  cursor: pointer;
  transition: transform var(--duration-fast) ease, background 0.4s var(--ease-quint), color 0.4s var(--ease-quint);
  background: var(--color-dark);
  color: var(--color-cream);
  /* Color wipe setup */
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--color-yellow);
  transition: left 0.4s var(--ease-quint);
  z-index: -1;
}
.btn:hover::before { left: 0; }
.btn:hover { color: var(--color-dark); }
.btn:active { animation: jelly 0.5s ease; }
.btn--accent {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.btn--accent::before { background: var(--color-dark); }
.btn--accent:hover { color: var(--color-cream); }
.btn--outline {
  background: transparent;
  color: var(--color-cream);
  border-color: var(--color-cream);
}
.btn--outline::before { background: var(--color-cream); }
.btn--outline:hover { color: var(--color-dark); }

/* ── NO B.S MARQUEE ── */
.marquee-section {
  background: var(--color-cream);
  overflow: hidden;
  border-top: var(--border-thick);
  border-bottom: var(--border-thick);
}
.marquee-band {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 0;
}
.marquee-static {
  font-family: 'Preuksa', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 86px);
  color: var(--color-red);
  white-space: nowrap;
  line-height: 1;
}
.marquee-dot {
  font-size: clamp(24px, 3vw, 40px);
  color: var(--color-red);
  opacity: 0.4;
}
.marquee-slot {
  font-family: 'Preuksa', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 6vw, 86px);
  color: var(--color-red);
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  position: relative;
}
.slot-reel {
  display: flex;
  flex-direction: column;
}
.slot-reel span {
  display: block;
  height: 1em;
  line-height: 1;
  flex-shrink: 0;
}

/* ── STATS SECTION ── */
.stats-section {
  background: var(--color-red);
  padding: var(--section-padding);
  position: relative;
  overflow: clip;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.stat-card {
  text-align: center;
  padding: 40px 24px;
  border: var(--border-thick);
  border-color: var(--color-cream);
  position: relative;
}
.stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  color: var(--color-yellow);
  margin-bottom: 8px;
}
.stat-label {
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.stat-context {
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

/* ── PRODUCT FEATURE ── */
.product-section {
  background: var(--color-dark);
  padding: var(--section-padding);
  position: relative;
  overflow: clip;
}
.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.product-section h2 {
  color: var(--color-yellow);
  margin-bottom: 16px;
}
.product-section .product-sub {
  font-size: clamp(18px, 2vw, 24px);
  margin-bottom: 24px;
  color: var(--color-cream);
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}
.feature-check {
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-green);
}
.product-img-wrap {
  position: relative;
}
.product-img-wrap img {
  width: 100%;
  border: var(--border-thick);
  border-color: var(--color-cream);
}

/* ── RECIPES SECTION ── */
.recipes-section {
  background: var(--color-red);
  padding: var(--section-padding);
  position: relative;
  overflow: clip;
}
.recipes-section h2 {
  text-align: center;
  margin-bottom: 48px;
}
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--grid-gap);
  margin-bottom: 40px;
}
.recipe-card {
  background: var(--color-cream);
  border: var(--border-thick);
  overflow: hidden;
  transition: transform var(--duration) var(--ease-quint), box-shadow var(--duration) var(--ease-quint);
  /* 3D tilt perspective */
  transform-style: preserve-3d;
  perspective: 800px;
}
.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}
.recipe-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: var(--border-thick);
  /* Image zoom on hover */
  transition: transform 0.5s var(--ease-quint);
}
.recipe-card:hover img { transform: scale(1.08); }
.recipe-card-body {
  padding: 20px;
}
.recipe-card h3 {
  color: var(--color-dark);
  font-size: 18px;
  margin-bottom: 8px;
  line-height: 1.2;
}
.recipe-card p {
  color: var(--color-dark);
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 16px;
}
.recipe-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 14px;
  padding: 10px 20px;
}
.recipes-more {
  text-align: center;
}

/* ── TESTIMONIALS ── */
.testimonials-section {
  background: var(--color-yellow);
  padding: var(--section-padding);
  position: relative;
  overflow: clip;
}
.testimonials-section h2 {
  color: var(--color-dark);
  text-align: center;
  margin-bottom: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
  overflow: hidden;
}
.testimonial-card {
  background: var(--color-cream);
  border: var(--border-thick);
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Preuksa', Georgia, serif;
  font-size: 120px;
  line-height: 0.6;
  color: var(--color-red);
  opacity: 0.15;
  position: absolute;
  top: 16px;
  left: 20px;
  pointer-events: none;
}
/* Crash-in from right animation */
.crash-in {
  opacity: 0;
  transform: translateX(120%);
}
.crash-in.is-crashed {
  opacity: 1;
  animation: crashIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.crash-in[data-crash="1"].is-crashed { animation-delay: 0.12s; }
.crash-in[data-crash="2"].is-crashed { animation-delay: 0.24s; }
@keyframes crashIn {
  0%   { opacity: 0; transform: translateX(120%); }
  60%  { opacity: 1; transform: translateX(-8px); }
  80%  { transform: translateX(3px); }
  100% { transform: translateX(0); }
}
.testimonial-quote {
  font-family: 'Space Grotesk', var(--font-body);
  font-weight: 400;
  font-size: clamp(16px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--color-red);
  margin-bottom: 24px;
}
.testimonial-author {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: auto;
}
.testimonial-location {
  font-size: 13px;
  color: var(--color-dark);
  opacity: 0.6;
  margin-top: 2px;
}

/* ── JOIN CTA ── */
.join-section {
  background: var(--color-red);
  padding: var(--section-padding);
  text-align: center;
  position: relative;
  overflow: clip;
}
.join-section h2 { margin-bottom: 16px; }
.join-section p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 18px;
  opacity: 0.9;
}
.join-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
}
.join-form input {
  flex: 1;
  padding: 14px 20px;
  border: var(--border-thick);
  border-right: none;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-cream);
  color: var(--color-dark);
  outline: none;
}
.join-form input::placeholder { color: rgba(26,26,26,0.4); }
.join-form .btn { border-left: var(--border-thick); }

/* ── FOOTER ── */
.site-footer {
  background: var(--color-dark);
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}
.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(10);
}
.footer-brand p {
  font-size: 14px;
  opacity: 0.6;
  max-width: 280px;
}
.footer-links { text-align: center; }
.footer-links h4 {
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--color-yellow);
}
.footer-links a {
  display: block;
  font-size: 14px;
  opacity: 0.7;
  padding: 4px 0;
  transition: opacity var(--duration) var(--ease-quint);
}
.footer-links a:hover { opacity: 1; }
.footer-social {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(247,242,229,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all var(--duration) var(--ease-quint);
}
.footer-social a:hover {
  border-color: var(--color-yellow);
  color: var(--color-yellow);
}
.footer-bottom {
  border-top: 1px solid rgba(247,242,229,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  opacity: 0.5;
}
.footer-email a {
  color: var(--color-yellow);
  opacity: 1;
}
.footer-email a:hover { text-decoration: underline; }

/* ── ANIMATIONS ── */
@keyframes jelly {
  0%   { transform: scaleX(1); }
  25%  { transform: scaleX(1.15); }
  50%  { transform: scaleX(0.98); }
  75%  { transform: scaleX(1.01); }
  100% { transform: scaleX(1); }
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1, .hero-subtext, .hero .btn, .hero-media {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 0.7s var(--ease-quint) both;
}
/* Eyebrow: JS-driven drift from under logo to final hero position */
.hero-eyebrow {
  opacity: 0;
  will-change: transform, opacity;
}
.hero-eyebrow.is-drifting {
  position: fixed;
  z-index: 101;
  opacity: 1;
  transition: top 3s var(--ease-quint), left 3s var(--ease-quint), transform 3s var(--ease-quint);
}
.hero-eyebrow.is-landed {
  position: relative;
  opacity: 1;
  transform: none;
  top: auto;
  left: auto;
}
.hero h1      { animation-delay: 0.3s; }
.hero-subtext  { animation-delay: 0.45s; }
.hero .btn    { animation-delay: 0.6s; }
.hero-media   { animation-delay: 0.5s; }

/* Shimmer effect on hero h1 — fires once */
.hero h1 {
  background: linear-gradient(
    90deg,
    var(--color-dark) 0%,
    var(--color-dark) 40%,
    var(--color-red) 50%,
    var(--color-dark) 60%,
    var(--color-dark) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroFadeUp 0.7s var(--ease-quint) both,
             heroShimmer 2s ease-in-out 3.5s 1 both;
}
@keyframes heroShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration) var(--ease-quint),
              transform var(--duration) var(--ease-quint);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-group .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-group .reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal-group .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-group .reveal:nth-child(4) { transition-delay: 0.2s; }
.reveal-group .reveal:nth-child(5) { transition-delay: 0.25s; }

/* ── SECTION COLOR-WIPE ── */
.section-wipe {
  position: relative;
}
.section-wipe::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  z-index: 3;
  transform-origin: right;
  transform: scaleX(1);
  transition: transform 0.8s var(--ease-quint);
  pointer-events: none;
}
.section-wipe.is-wiped::after {
  transform: scaleX(0);
}

/* ── TYPEWRITER ── */
.typewriter {
  display: inline;
  border-right: 3px solid currentColor;
  animation: typewriterBlink 0.7s ease-in-out infinite;
}
@keyframes typewriterBlink {
  0%, 100% { border-color: currentColor; }
  50% { border-color: transparent; }
}

/* ── COUNTER ROLL-UP ── */
.counter-value {
  display: inline-block;
  transition: none;
}

/* ── STAGGER CASCADE GRID ── */
.stagger-grid .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-grid .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-grid .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger-grid .reveal:nth-child(4) { transition-delay: 0.36s; }
.stagger-grid .reveal:nth-child(5) { transition-delay: 0.48s; }
.stagger-grid .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ── CARD TILT (3D perspective) ── */
.tilt-card {
  transition: transform 0.4s var(--ease-quint), box-shadow 0.4s var(--ease-quint);
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── MAGNETIC BUTTON ── */
.btn-magnetic {
  transition: transform 0.3s var(--ease-quint);
  will-change: transform;
}

/* ── PARALLAX DEPTH ── */
.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── PARTICLE BURST ── */
.particle {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  animation: particleBurst 0.8s var(--ease-quint) forwards;
}
@keyframes particleBurst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0); }
}
/* Star-shaped particles */
.particle-star {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  animation: particleStarBurst 0.9s var(--ease-quint) forwards;
}
@keyframes particleStarBurst {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--px), var(--py)) scale(0) rotate(180deg); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-eyebrow, .hero h1, .hero-subtext, .hero .btn, .hero-media {
    animation: none; opacity: 1; transform: none;
  }
  .hero h1 {
    -webkit-text-fill-color: var(--color-dark);
    background: none;
  }
  .deco-blob { animation: none; }
  .deco-star { animation: none; }
  .deco-wave { animation: none; }
  .typewriter { border-right: none; animation: none; }
  .particle, .particle-star { display: none; }
  body::after { animation: none; }
  .section-wipe::after { transform: scaleX(0); }
}

/* ── MOBILE ── */
@media (max-width: 1024px) {
  .header-logo img { max-height: 30px; }
  .header-nav { display: none; }
  .header-cta { display: none; }
  .mobile-toggle { display: flex; }
  .header-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-cream);
    padding: 24px;
    gap: 16px;
    border-bottom: var(--border-thick);
  }
  .header-nav.is-open .nav-link {
    color: var(--color-dark);
    font-size: 18px;
    opacity: 1;
  }
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtext { margin-left: auto; margin-right: auto; }
  .hero-media { max-width: 400px; margin: 0 auto; }
  .stats-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Mobile fix: disable wave undulation (causes horizontal overflow) */
  .deco-wave { animation: none; }
  /* Mobile fix: disable blob drift (overflows viewport) */
  .deco-blob { animation: none; }
  /* Mobile fix: social icons 44px touch targets */
  .footer-social a { width: 44px; height: 44px; font-size: 16px; }
  /* Mobile fix: footer bottom text readable */
  .footer-bottom { font-size: 14px; }
  /* Mobile fix: eyebrow drift disabled — just fade in */
  .hero-eyebrow.is-drifting {
    position: relative;
    top: auto !important;
    left: auto !important;
    transition: opacity 0.8s var(--ease-quint);
  }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(36px, 10vw, 56px); }
  h2 { font-size: clamp(28px, 7vw, 44px); }
  .recipes-grid { grid-template-columns: 1fr; }
  .join-form { flex-direction: column; }
  .join-form input { border-right: var(--border-thick); border-bottom: none; }
  .join-form .btn { border-left: var(--border-thick); }

  /* Marquee — stack and scale for mobile */
  .marquee-band {
    flex-direction: column;
    gap: 4px;
    padding: 16px 12px;
    align-items: center;
  }
  .marquee-static { font-size: clamp(24px, 8vw, 36px); }
  .marquee-slot { font-size: clamp(18px, 5.5vw, 28px); }
  .marquee-dot { display: none; }
}
