/* CSS Variables: color palette and global state */
:root {
  --choco-1: #2b160b;
  --choco-2: #4a2b16;
  --choco-3: #6a3b1e;
  --cream-1: #f3e7d9;
  --cream-2: #eadbcb;
  --cream-3: #d9c8b4;
  --text: #2b211a;
  --white: #ffffff;
  --wipe: 0%;
}


/* Base Styles: reset, typography, layout containers */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: var(--cream-1);
  overflow-x: hidden;
}

main {
  overflow-x: clip;
}

@media (max-width: 1024px) {
  .scroll-subtitle {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Text Animation: character-level transforms for GSAP */
.char {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 80%;
}

.split-text .char {
  display: inline-block;
  will-change: transform, opacity;
}


/* Button System: interactive elements with hover effects and variants */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  font-size: 17px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  transform-origin: 50% 50%;
  will-change: auto;
  filter: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.55) 48%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.55) 52%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
  pointer-events: none;
}

.btn:hover::before {
  transform: translateX(120%);
}

.btn:hover {
  transform: scale(1.06);
}

.btn:active {
  transform: translateY(0);
}

.btn::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(60% 40% at 50% 50%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  transform: translateX(-120%);
  filter: blur(8px);
  transition: transform 0.6s ease, opacity 0.3s ease;
}

.btn:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(203, 152, 102, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.5);
}

@keyframes btn-ripple {
  0% {
    background-size: 0% 0%;
    opacity: 0.65;
  }
  100% {
    background-size: 260% 260%;
    opacity: 0;
  }
}

.btn:active::after {
  transform: none;
  opacity: 0.8;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 0% 0%;
  animation: btn-ripple 0.5s ease-out forwards;
}

.btn-primary {
  background: linear-gradient(135deg, var(--choco-2), var(--choco-3));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(107, 68, 35, 0.38), 0 6px 12px rgba(107, 68, 35, 0.25) inset;
}

.btn-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 34px rgba(107, 68, 35, 0.5), 0 6px 12px rgba(255, 255, 255, 0.06) inset;
}

.btn-outline {
  border: 2px solid var(--choco-2);
  color: var(--choco-2);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 -8px 18px rgba(74, 43, 22, 0.08);
}

.btn-outline:hover {
  transform: scale(1.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(243, 231, 217, 0.95));
  color: var(--choco-1);
  box-shadow: 0 14px 26px rgba(74, 43, 22, 0.35), inset 0 10px 22px rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(60, 36, 21, 0.1);
  color: var(--choco-2);
}

.btn-ghost:hover {
  background: rgba(60, 36, 21, 0.18);
  box-shadow: 0 10px 20px rgba(60, 36, 21, 0.25);
}

@keyframes cream-glow {
  0% {
    box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18), 0 0 0 0 rgba(234, 219, 203, 0), inset 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 18px 40px rgba(243, 231, 217, 0.38), 0 0 30px 6px rgba(243, 231, 217, 0.45), inset 0 6px 18px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18), 0 0 0 0 rgba(234, 219, 203, 0), inset 0 0 0 rgba(255, 255, 255, 0);
  }
}

.btn-cream {
  background: var(--cream-1);
  color: var(--choco-1);
  box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18);
}

.btn-cream:hover {
  color: var(--choco-1) !important;
  background: var(--cream-2) !important;
  text-shadow: none !important;
  transform: scale(1.06) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}

.btn-cream-outline {
  background: transparent;
  border: 2px solid var(--cream-1);
  color: var(--cream-1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.btn-cream-outline:hover {
  background: var(--cream-1) !important;
  color: var(--choco-1) !important;
  border-color: var(--cream-1) !important;
  text-shadow: none !important;
  transform: scale(1.06) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}

.btn-choco {
  background: linear-gradient(135deg, var(--choco-2), var(--choco-3));
  color: var(--cream-1);
  box-shadow: 0 10px 22px rgba(43, 22, 11, 0.25);
}

.btn-choco:hover {
  background: linear-gradient(135deg, var(--choco-3), var(--choco-2));
  transform: scale(1.06);
  box-shadow: 0 12px 26px rgba(43, 22, 11, 0.35), inset 0 0 0 rgba(255, 255, 255, 0);
}


/* Header Navigation: fixed header with brand and nav links */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(243, 231, 217, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  min-height: 60px;
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--choco-1);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

.nav-link:hover {
  background: var(--cream-2);
}


/* Canvas Overlay: WebGL chocolate goo background effect */
#gooey-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  clip-path: inset(var(--wipe, 0%) 0 0 0);
  will-change: clip-path, filter, opacity, transform;
  transform-origin: 50% 0%;
}

.text-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
}


/* Hero Section: main landing area with title, subtitle, CTAs */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 48px;
  --vignette: 0;
  z-index: 2;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  background: transparent;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--choco-2), var(--choco-3));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform-origin: left center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 12px;
  opacity: 0.75;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.85;
}

.nav-link:hover {
  background: var(--cream-2);
}


.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  will-change: transform;
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  perspective: 1000px;
  will-change: transform;
}

.title-line {
  display: block;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.title-line.highlight {
  background: linear-gradient(90deg, var(--choco-3), var(--choco-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: choco-shimmer 6s ease-in-out infinite alternate;
  font-size: clamp(44px, 7.8vw, 88px);
  position: relative;
}

@keyframes choco-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.title-line.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: auto;
  width: 72%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(106, 59, 30, 0.25), rgba(74, 43, 22, 0.5), rgba(106, 59, 30, 0.25));
  filter: blur(2px);
  opacity: 0.85;
}

.title-line.highlight.legible {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--choco-1);
  animation: none;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.12);
}

.title-line.highlight.legible .char {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.18);
}

.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  opacity: 0.92;
  margin: 8px 0 30px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.hero-cta .btn {
  position: relative;
  z-index: 1;
  backface-visibility: visible;
  transform: none;
  text-shadow: none;
}

.hero .hero-cta .btn:hover {
  transform: scale(1.06) !important;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 20%,
    rgba(255, 255, 255, 0.55) 48%,
    rgba(255, 255, 255, 0.9) 50%,
    rgba(255, 255, 255, 0.55) 52%,
    transparent 80%
  );
  transform: translateX(-120%);
  transition: transform 0.45s ease;
  pointer-events: none;
}
.btn:hover::before {
  transform: translateX(120%);
}
.btn:hover {
  transform: scale(1.06);
}
.btn:active {
  transform: translateY(0);
}

/* Global glow sweep */
.btn::after {
  content: "";
  position: absolute;
  inset: -10% -20%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    60% 40% at 50% 50%,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0)
  );
  transform: translateX(-120%);
  filter: blur(8px);
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.btn:hover::after {
  opacity: 1;
  transform: translateX(120%);
}

/* Accessible focus ring (keyboard-friendly) */
.btn:focus {
  outline: none;
}
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(203, 152, 102, 0.55),
    0 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Click ripple on active: reuses ::after layer with a radial burst */
@keyframes btn-ripple {
  0% {
    background-size: 0% 0%;
    opacity: 0.65;
  }
  100% {
    background-size: 260% 260%;
    opacity: 0;
  }
}
.btn:active::after {
  transform: none; /* override hover sweep during click */
  opacity: 0.8;
  background: radial-gradient(
    circle at center,
    rgba(255, 255, 255, 0.45) 0%,
    rgba(255, 255, 255, 0) 60%
  );
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 0% 0%;
  animation: btn-ripple 0.5s ease-out forwards;
}

/* Removed hero-only overrides; global .btn hover now unified across site */

.btn-primary {
  background: linear-gradient(135deg, var(--choco-2), var(--choco-3));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(107, 68, 35, 0.38),
    0 6px 12px rgba(107, 68, 35, 0.25) inset;
}
.btn-primary:hover {
  transform: scale(1.08);
  box-shadow: 0 20px 34px rgba(107, 68, 35, 0.5),
    0 6px 12px rgba(255, 255, 255, 0.06) inset;
}

.btn-outline {
  border: 2px solid var(--choco-2);
  color: var(--choco-2);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: inset 0 -8px 18px rgba(74, 43, 22, 0.08);
}
.btn-outline:hover {
  transform: scale(1.06);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85),
    rgba(243, 231, 217, 0.95)
  );
  color: var(--choco-1);
  box-shadow: 0 14px 26px rgba(74, 43, 22, 0.35),
    inset 0 10px 22px rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(60, 36, 21, 0.1);
  color: var(--choco-2);
}
.btn-ghost:hover {
  background: rgba(60, 36, 21, 0.18);
  box-shadow: 0 10px 20px rgba(60, 36, 21, 0.25);
}

/* Cream-themed variants for dark backgrounds (glowing hover) */
@keyframes cream-glow {
  0% {
    box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18),
      0 0 0 0 rgba(234, 219, 203, 0), inset 0 0 0 rgba(255, 255, 255, 0);
  }
  50% {
    box-shadow: 0 18px 40px rgba(243, 231, 217, 0.38),
      0 0 30px 6px rgba(243, 231, 217, 0.45),
      inset 0 6px 18px rgba(255, 255, 255, 0.5);
  }
  100% {
    box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18),
      0 0 0 0 rgba(234, 219, 203, 0), inset 0 0 0 rgba(255, 255, 255, 0);
  }
}

.btn-cream {
  background: var(--cream-1);
  color: var(--choco-1);
  box-shadow: 0 10px 22px rgba(243, 231, 217, 0.18);
}
.btn-cream:hover {
  color: var(--choco-1) !important;
  background: var(--cream-2) !important;
  text-shadow: none !important;
  transform: scale(1.06) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}

.btn-cream-outline {
  background: transparent;
  border: 2px solid var(--cream-1);
  color: var(--cream-1);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}
.btn-cream-outline:hover {
  background: var(--cream-1) !important;
  color: var(--choco-1) !important;
  border-color: var(--cream-1) !important;
  text-shadow: none !important;
  transform: scale(1.06) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}

/* Dark chocolate solid button (for right-side button) */
.btn-choco {
  background: linear-gradient(135deg, var(--choco-2), var(--choco-3));
  color: var(--cream-1);
  box-shadow: 0 10px 22px rgba(43, 22, 11, 0.25);
}
.btn-choco:hover {
  background: linear-gradient(135deg, var(--choco-3), var(--choco-2));
  transform: scale(1.06);
  box-shadow: 0 12px 26px rgba(43, 22, 11, 0.35),
    inset 0 0 0 rgba(255, 255, 255, 0);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 48px;
  --vignette: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
}
.hero-copy {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}
.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.5px;
  margin: 0 0 22px;
  perspective: 1000px;
}
.title-line {
  display: block;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 10px 20px rgba(0, 0, 0, 0.12);
}
.title-line.highlight {
  background: linear-gradient(90deg, var(--choco-3), var(--choco-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.title-line.highlight {
  background-size: 200% 100%;
  animation: choco-shimmer 6s ease-in-out infinite alternate;
}
/* Make the last line slightly larger out of the box */
.title-line.highlight {
  font-size: clamp(44px, 7.8vw, 88px);
}
@keyframes choco-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
.hero-sub {
  font-size: clamp(18px, 2.4vw, 22px);
  opacity: 0.92;
  margin: 8px 0 30px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
/* Make sure hero buttons sit above decorative overlays and accept hover */
.hero-cta {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.hero-cta .btn {
  position: relative;
  z-index: 1;
}
/* Ensure hardware-accel and stronger hover just for hero, in case of competing transforms */
.hero .hero-cta .btn {
  backface-visibility: visible;
  transform: none;
  text-shadow: none;
}
.hero .hero-cta .btn:hover {
  transform: scale(1.06) !important;
}
/* Slightly stronger hover so it's obvious on hero background */
/* Keep hero CTA above overlays for pointer events */
/* Performance hints for scroll transforms */
.hero-copy,
.title-line {
  will-change: transform;
}

/* Per-letter animation support */
.char {
  display: inline-block;
  will-change: transform;
  transform-origin: 50% 80%;
}

/* Underline accent for last line */
.title-line.highlight {
  position: relative;
}
.title-line.highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  margin: auto;
  width: 72%;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(106, 59, 30, 0.25),
    rgba(74, 43, 22, 0.5),
    rgba(106, 59, 30, 0.25)
  );
  filter: blur(2px);
  opacity: 0.85;
}

/* Final high-contrast state for readability */
.title-line.highlight.legible {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--choco-1);
  animation: none;
  -webkit-text-stroke: 0.6px rgba(0, 0, 0, 0.12);
}
.title-line.highlight.legible .char {
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.3),
    0 2px 6px rgba(0, 0, 0, 0.18);
}

/* Chocolate chip rain */
.chip-rain {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}
.chip {
  position: absolute;
  top: -20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7a4a26 0%, #4a2b16 70%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  filter: saturate(105%);
}
.chip--small {
  width: 8px;
  height: 8px;
}
.chip--big {
  width: 16px;
  height: 16px;
}

/* Cinematic intertitle in the middle of the hero scroll */
.intertitle {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}
.intertitle-text {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(28px, 6.2vw, 72px);
  color: var(--cream-1);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 0.4em 0.7em;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(60, 36, 21, 0.28),
    rgba(60, 36, 21, 0.18)
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Follow-up cinematic prompt — same look as the main intertitle */
.intertitle-2 {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
}
.intertitle-cta {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: clamp(28px, 6.2vw, 72px);
  color: var(--cream-1);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 0.4em 0.7em;
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(60, 36, 21, 0.28),
    rgba(60, 36, 21, 0.18)
  );
  backdrop-filter: blur(6px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Vignette overlay for mid-scroll drama */
.hero::after {
  content: "";
  position: absolute;
  inset: -10% -10% -10% -10%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0) 40%,
    rgba(0, 0, 0, 0.25) 85%
  );
  opacity: var(--vignette);
  transition: opacity 0.2s linear;
}

/* Soft shadow/gradient under top drip for depth */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(60, 36, 21, 0.18) 0%,
    rgba(60, 36, 21, 0.08) 6%,
    rgba(0, 0, 0, 0) 22%
  );
}

/* Rich chocolate overlays */
.choco-sheen {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  clip-path: inset(var(--wipe, 0%) 0 0 0);
  will-change: clip-path, opacity;
  background: radial-gradient(
      120% 80% at 50% -10%,
      rgba(255, 255, 255, 0.16),
      rgba(255, 255, 255, 0.06) 28%,
      rgba(255, 255, 255, 0) 60%
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0));
  filter: saturate(105%);
}
.choco-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.05;
  clip-path: inset(var(--wipe, 0%) 0 0 0);
  will-change: clip-path, opacity;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23f)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 240px 240px;
}

/* Floating sweets */
.floating {
  position: absolute;
  font-size: clamp(24px, 5vw, 38px);
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.15));
}
.floating-1 {
  top: 4%;
  left: -4%;
}
.floating-2 {
  top: 20%;
  right: -2%;
}
.floating-3 {
  bottom: 18%;
  left: -6%;
}

/* Scroll message */
.scroll-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--choco-2);
  opacity: 0.9;
  pointer-events: none;
}
.scroll-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 10px;
  animation: bounceY 1.6s ease-in-out infinite;
}

.scroll-icon svg {
  width: 28px;
  height: 28px;
  display: block;
  color: inherit;
}

@keyframes bounceY {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

.arrow-animated {
  animation: arrow-float 1.1s infinite ease-in-out;
}

@keyframes arrow-float {
  0% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(40%);
  }
  100% {
    transform: translateY(0);
  }
}

/* Spacer to enable slight scroll */
.spacer {
  height: 70vh;
}

/* WebGL canvas */
#gooey-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  clip-path: inset(var(--wipe, 0%) 0 0 0);
  will-change: clip-path, filter, opacity, transform;
  transform-origin: 50% 0%;
}
.text-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0;
}

/* Elevate hero above overlay */
.hero,
.site-header {
  position: relative;
  z-index: 2;
}

/* 3D Image Ring: interactive cake carousel with drag controls */
.image-ring-3d {
  height: 76vh;
  background: transparent;
  position: relative;
  overflow: hidden;
  z-index: 5;
}

.image-ring-3d .stage,
.image-ring-3d .ring3d,
.image-ring-3d .img {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  user-select: none;
}

.image-ring-3d .stage {
  overflow: hidden;
  background: transparent;
  height: 76vh;
}

/* Prevent any focus/utility rings or outlines from showing on the 3D ring */
.image-ring-3d .ring3d,
.image-ring-3d .img {
  outline: none !important;
  box-shadow: none !important;
}

.image-ring-3d .img {
  cursor: grab;
  transition: opacity 0.25s ease;
  opacity: 1;
  pointer-events: auto;
}

.image-ring-3d .img:active {
  cursor: grabbing;
}

/* Dark-dim effect without altering background transparency */
.image-ring-3d .img.dim {
  filter: brightness(0.55);
  transition: filter 0.25s ease;
}

/* Make inner <img> fill the card */
.image-ring-3d .img {
  background: linear-gradient(45deg, #8b4513, #d2691e);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.image-ring-3d .img img {
  cursor: grab;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  pointer-events: auto;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Strong override to ensure grab cursor shows on images */
.image-ring-3d .img,
.image-ring-3d .img * {
  cursor: grab !important;
}

.image-ring-3d .img:active,
.image-ring-3d .img:active * {
  cursor: grabbing !important;
}

.image-ring-3d div,
.image-ring-3d svg {
  position: absolute;
}

.image-ring-3d .container {
  perspective: 2000px;
  width: 300px;
  height: 400px;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
}

/* Enable smooth translate animations for split text */
.split-text .char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Drag indicator below gallery */
.drag-indicator {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #f5f1eb;
  opacity: 1;
  pointer-events: none;
  text-align: center;
  width: auto;
  padding: 8px 16px;
  background: rgba(42, 25, 15, 0.9);
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.drag-indicator .text {
  font-weight: 500;
  letter-spacing: 0.2px;
}
.drag-indicator .arrow {
  font-size: 18px;
  opacity: 0.7;
  animation: drag-pulse 1.2s ease-in-out infinite;
}
.drag-indicator .arrow:first-child {
  transform: translateX(0);
  animation-name: drag-left;
}
.drag-indicator .arrow:last-child {
  transform: translateX(0);
  animation-name: drag-right;
}
.drag-indicator.hide {
  opacity: 0;
  transition: opacity 0.4s ease;
}

@keyframes drag-left {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-6px);
  }
}
@keyframes drag-right {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(6px);
  }
}

/* Next section - Dark theme */
/* Next Section: dark CTA area with animated tree decoration */
.next {
  position: relative;
  z-index: 2;
  background: linear-gradient(0deg, #2b160b, #1a0e08);
  padding: 48px 0 64px;
  overflow: hidden;
}

.next::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Top spotlight + vertical sweep to reinforce gradient on scroll */
  background: radial-gradient(
      ellipse 120% 80% at 50% 0%,
      rgba(139, 83, 47, 0.45) 0%,
      rgba(101, 60, 34, 0.3) 35%,
      rgba(74, 43, 22, 0.15) 60%,
      rgba(0, 0, 0, 0) 80%
    ),
    linear-gradient(
      180deg,
      rgba(107, 59, 31, 0.3) 0%,
      rgba(74, 43, 22, 0.15) 40%,
      rgba(43, 22, 11, 0.1) 70%,
      rgba(26, 14, 8, 0.25) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.next-inner {
  position: relative;
  z-index: 1; /* place above overlay */
  max-width: 1200px;
  margin-inline: auto;
  text-align: center;
}

/* Two-column layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: 60vh;
}

/* Responsive: stack on mobile */
@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .left-content {
    text-align: center;
    padding-right: 0;
  }

  .left-content .next-title,
  .left-content .next-sub {
    text-align: center;
  }

  .next-buttons {
    justify-content: center;
  }
}

/* Left content - text and buttons */
.left-content {
  text-align: left;
  padding-right: 20px;
}

.left-content .next-title {
  text-align: left;
  margin-bottom: 20px;
  font-size: clamp(32px, 5.5vw, 56px);
  line-height: 1.1;
  font-weight: 600;
}

.left-content .next-sub {
  text-align: left;
  margin: 40px 0;
  height: 3.2em; /* fixed height to prevent jumping */
  min-height: 3.2em;
  display: flex;
  align-items: flex-start;
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.6;
  opacity: 0.9;
  overflow: hidden;
}

.next-buttons {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* Left-align CTA within the left column of the Next section */
.left-content .hero-cta {
  justify-content: flex-start;
}

/* Soften hover for Next section buttons: avoid big jump */
.next .hero-cta .btn {
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.next .hero-cta .btn:hover {
  transform: translateY(-1px) !important; /* subtle lift */
}
.next .hero-cta .btn:active {
  transform: translateY(0) !important;
}
.next .hero-cta .btn-cream:hover,
.next .hero-cta .btn-cream-outline:hover {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18) !important;
}

/* Right content - tree SVG */
.right-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
.right-content .tree-wrap {
  transform: translateY(-16px); /* nudge up for better alignment */
}

@media (max-width: 768px) {
  .right-content .tree-wrap {
    transform: none; /* reset on mobile */
  }
}
.next-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4.5vw, 44px); /* slightly smaller */
  line-height: 1.06;
  margin: 0 0 10px;
  color: var(--cream-1);
}
.next-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.88;
  margin: 0 auto 24px; /* tighter */
  max-width: 600px;
  line-height: 1.5;
  color: var(--cream-2);
  /* Prevent layout shift during typing animation */
  height: 3em; /* exactly 2 lines at line-height 1.5 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Gallery Intro (above the 3D ring) */
/* Gallery Intro: typed title and description above 3D ring */
.gallery-intro {
  position: relative;
  z-index: 3;
  padding: 56px 0 16px;
}
.gallery-intro .container {
  margin-top: 15px;
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
  padding: 0 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center; /* force center alignment for inline/block children */
}
.gallery-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.06;
  margin: 0 0 28px;
  color: var(--choco-2);
}
.gallery-title {
  position: relative;
  display: inline-block;
}
.gallery-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 160px;
  height: 4px;
  background: linear-gradient(90deg, var(--choco-3), var(--choco-1));
  border-radius: 6px;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 0; /* keep underline behind */
}
.gallery-intro.is-animated .gallery-title::after {
  transform: translateX(-50%) scaleX(1);
}
.gallery-sub {
  font-size: clamp(16px, 2.2vw, 20px);
  opacity: 0.88;
  margin: 8px auto 28px; /* tighten space below subtext */
  max-width: 700px;
  line-height: 1.5;
  color: var(--choco-3);
  /* Prevent layout shift during typing animation */
  min-height: 3em; /* reserve at least 2 lines at line-height 1.5 */
  overflow: hidden;
  display: block; /* occupy full line so it centers under title */
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 1; /* ensure subtext sits above underline */
}

/* Typing caret for subtext */
.gallery-sub.typing::after {
  content: "";
  width: 2px;
  height: 1em;
  background: var(--choco-3);
  margin-left: 4px;
  display: inline-block;
  animation: caret-blink 0.9s steps(1) infinite;
  align-self: center;
}
@keyframes caret-blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* Start visible - let GSAP handle opacity animation */
.gallery-intro .gallery-title,
.gallery-intro .gallery-sub {
  opacity: 1;
}

/* Ensure the 3D ring doesn't overlap intro on very small screens */
@media (max-width: 640px) {
  .gallery-intro {
    padding-top: 56px;
    padding-bottom: 8px;
  }
}

/* Make Next section highlight line same size as regular title - no underline */
.next-tree .next-title .title-line.highlight.legible {
  color: var(--cream-1);
  -webkit-text-stroke: 0.8px rgba(255, 255, 255, 0.18);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  font-size: clamp(32px, 5.5vw, 56px); /* same as regular title */
}
.next-tree .next-title .title-line.highlight::after {
  display: none; /* remove underline */
}

/* Next section CTA: ensure hover works clearly like hero */
.next-cta {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.next-cta .btn {
  backface-visibility: hidden;
  transform: translateZ(0);
}
.next-cta .btn:hover {
  transform: scale(1.06) !important;
}

.next-tree svg {
  width: 100%;
  height: 100%;
  max-width: 1000px;
  max-height: 100%;
  visibility: visible;
}

#endMessage {
  opacity: 0;
  transform: translateY(-8px);
}
#endMessage .endMessage {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.6px;
  line-height: 1.25;
  /* Crisper look: lighter shadow and no stroke halo */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  -webkit-text-stroke: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 12px;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
#endMessage .endMessage a {
  color: #ffe1a6;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 900;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}


/* Fold Marquee: animated text strips with chocolate-themed words */
.fold-marquee {
  position: relative;
  background: linear-gradient(180deg, var(--cream-1), #f6ecdf);
  padding: 48px 0;
  overflow: hidden;
}
.fm-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  perspective: min(20vw, 900px);
}
.fold-marquee .marquee {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.35);
}
.fold-marquee .marquee::before,
.fold-marquee .marquee::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  height: 26px;
  pointer-events: none;
  z-index: 1;
  filter: blur(10px);
}
.fold-marquee .marquee::before {
  top: -10px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0));
}
.fold-marquee .marquee::after {
  bottom: -10px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0));
}
.fold-marquee .track {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: clamp(48px, 11vw, 128px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  color: rgba(74, 43, 22, 0.22);
  white-space: nowrap;
  display: inline-block;
  will-change: transform;
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}
.fold-marquee .marquee:nth-child(even) .track {
  color: rgba(106, 59, 30, 0.22);
}
.fold-marquee .track {
  backface-visibility: hidden;
  will-change: transform;
}
.fold-marquee .track .-focus {
  color: var(--choco-1);
  font-weight: 900;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.next-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Scroll Cards: full-screen sticky panels showcasing products */
.scroll-animation-section .scroll-card {
  isolation: isolate;
  z-index: 1;
}
.scroll-animation-section .scroll-card:last-of-type {
  z-index: 5;
}
.scroll-animation-section .final-card {
  z-index: 20;
}
.scroll-card .scroll-buttons {
  position: relative;
  z-index: 10;
  pointer-events: auto;
}
.scroll-card .scroll-buttons .btn {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.scroll-card .scroll-buttons .btn-cream:hover {
  color: var(--choco-1) !important;
  background: var(--cream-2) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}
.scroll-card .scroll-buttons .btn-cream-outline:hover {
  background: var(--cream-1) !important;
  color: var(--choco-1) !important;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18) !important;
}
.scroll-card .scroll-buttons .btn-choco:hover {
  box-shadow: 0 12px 26px rgba(43, 22, 11, 0.35) !important;
}

.final-card .btn-cream,
.final-card .btn-cream-outline {
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
}

.next-embed .embed-box,
.next-tree .embed-box {
  position: relative;
  width: min(1200px, 96%);
  margin: 0 auto;
  height: 100svh;
  max-height: 100svh;
  background: #0f0f17;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(74, 43, 22, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.next-embed .embed-frame,
.next-tree .embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.next-tree .tree-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  height: 100%;
  position: relative;
}
.next-tree .treeSVG {
  width: min(900px, 92%);
  height: auto;
  overflow: visible;
}
.next-tree .sparkle {
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.22));
}
.next-tree .embed-box {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.next-tree .mainSVG {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.next-tree .container {
  width: min(1400px, 96%);
}

/* Footer: credits and copyright information */
.site-footer {
  background: linear-gradient(0deg, var(--cream-1), #f6ecdf);
  padding: 24px 0;
  border-top: 1px solid rgba(139, 83, 47, 0.2);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.footer-content p {
  margin: 0;
  font-size: 14px;
  color: #2b160b;
  opacity: 0.9;
  font-weight: 400;
}

.footer-content .creator {
  color: #1a0e08;
  font-weight: 600;
  position: relative;
}

.footer-content .creator::before {
  content: "🍫";
  margin-right: 6px;
  font-size: 14px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Responsive Design: mobile-first breakpoints for all screen sizes */
@media (max-width: 575px) {
  .container {
    width: 95%;
  }
  .site-header .container {
    padding: 12px 0;
  }
  .brand-title {
    font-size: 16px;
  }
  .brand-sub {
    font-size: 10px;
  }
  .brand-mark {
    width: 32px;
    height: 32px;
  }
  .site-nav {
    display: none;
  }

  /* Hero Section */
  .hero {
    padding-top: 48px;
    min-height: 90vh;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-title {
    font-size: clamp(28px, 8vw, 48px);
    margin-bottom: 16px;
  }
  .title-line.highlight {
    font-size: clamp(32px, 9vw, 52px);
  }
  .hero-sub {
    font-size: clamp(14px, 4vw, 18px);
    margin: 6px 0 20px;
  }
  .hero-cta {
    gap: 8px;
    flex-direction: column;
    align-items: center;
  }
  .hero-cta .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 16px;
    width: 100%;
    max-width: 280px;
  }

  /* Buttons Global */
  .btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 16px;
  }

  /* Gallery Intro */
  .gallery-intro {
    padding: 32px 0 12px;
  }
  .gallery-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 20px;
  }
  .gallery-sub {
    font-size: clamp(14px, 4vw, 16px);
    margin: 6px auto 20px;
    min-height: 2.5em;
  }

  /* 3D Gallery */
  .image-ring-3d {
    height: 50vh;
  }
  .image-ring-3d .container {
    width: 200px;
    height: 280px;
    top: 35%;
  }
  .image-ring-3d .stage {
    height: 50vh;
  }

  /* Scroll Animation Cards */
  .scroll-animation-section .scroll-card {
    padding: 16px 12px;
  }
  .scroll-title {
    font-size: clamp(20px, 5vw, 32px) !important;
    line-height: 1.1;
  }
  .scroll-subtitle {
    font-size: clamp(14px, 4vw, 18px) !important;
    margin-top: 8px;
  }
  .scroll-hint {
    margin-top: 12px;
    font-size: 12px;
  }
  .scroll-buttons {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .scroll-buttons .btn {
    width: 100%;
    max-width: 240px;
  }

  /* Next Section */
  .next {
    padding: 32px 0 48px;
  }
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .left-content {
    text-align: center;
    padding-right: 0;
  }
  .left-content .next-title {
    text-align: center;
    font-size: clamp(24px, 7vw, 40px);
  }
  .left-content .next-sub {
    text-align: center;
    font-size: clamp(14px, 4vw, 18px);
    margin: 20px 0;
    height: 2.8em;
  }
  .left-content .hero-cta {
    justify-content: center;
    flex-direction: column;
  }
  .next .hero-cta .btn {
    width: 100%;
    max-width: 260px;
  }
  .right-content .tree-wrap {
    transform: none;
  }

  /* Fold Marquee */
  .fold-marquee {
    padding: 32px 0;
  }
  .fold-marquee .track {
    font-size: clamp(32px, 10vw, 64px);
  }
  .fm-wrap {
    gap: 20px;
  }

  /* Intertitles */
  .intertitle-text,
  .intertitle-cta {
    font-size: clamp(20px, 6vw, 36px);
    padding: 0.3em 0.5em;
  }

  /* Footer */
  .footer-content p {
    font-size: 12px;
  }

  /* Disable heavy animations for performance */
  .image-ring-3d .img {
    transition: none;
  }
  .btn::before,
  .btn::after {
    display: none;
  }
}

/* Small Devices (sm) - Phones Landscape: 576px to 767px */
@media (min-width: 576px) and (max-width: 767px) {
  /* Container */
  .container {
    width: 92%;
  }

  /* Header */
  .brand-title {
    font-size: 17px;
  }
  .brand-sub {
    font-size: 11px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .site-nav {
    display: none;
  }

  /* Hero */
  .hero {
    padding-top: 56px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-title {
    font-size: clamp(36px, 7vw, 60px);
  }
  .title-line.highlight {
    font-size: clamp(40px, 8vw, 66px);
  }
  .hero-sub {
    font-size: clamp(16px, 3vw, 20px);
  }
  .hero-cta {
    gap: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hero-cta .btn {
    padding: 14px 22px;
    font-size: 15px;
    border-radius: 18px;
  }

  /* Gallery */
  .gallery-title {
    font-size: clamp(28px, 6vw, 42px);
  }
  .gallery-sub {
    font-size: clamp(15px, 3vw, 18px);
  }
  .image-ring-3d {
    height: 60vh;
  }
  .image-ring-3d .container {
    width: 240px;
    height: 320px;
  }

  /* Scroll Cards */
  .scroll-title {
    font-size: clamp(24px, 5vw, 36px) !important;
  }
  .scroll-subtitle {
    font-size: clamp(16px, 3vw, 20px) !important;
  }

  /* Next Section */
  .two-column-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .left-content {
    text-align: center;
  }
  .left-content .next-title {
    text-align: center;
    font-size: clamp(28px, 6vw, 44px);
  }
  .left-content .next-sub {
    text-align: center;
    font-size: clamp(16px, 3vw, 20px);
  }
  .left-content .hero-cta {
    justify-content: center;
  }

  /* Fold Marquee */
  .fold-marquee .track {
    font-size: clamp(40px, 9vw, 80px);
  }
}

/* Medium Devices (md) - Tablets: 768px to 991px */
@media (min-width: 768px) and (max-width: 991px) {
  /* Header */
  .brand-title {
    font-size: 18px;
  }
  .site-nav {
    display: flex;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(48px, 6vw, 68px);
  }
  .title-line.highlight {
    font-size: clamp(52px, 7vw, 74px);
  }
  .hero-sub {
    font-size: clamp(18px, 2.5vw, 21px);
  }
  .hero-cta .btn {
    padding: 15px 24px;
    font-size: 16px;
    border-radius: 19px;
  }

  /* Gallery */
  .gallery-title {
    font-size: clamp(32px, 5vw, 44px);
  }
  .gallery-sub {
    font-size: clamp(16px, 2.5vw, 19px);
  }
  .image-ring-3d {
    height: 70vh;
  }
  .image-ring-3d .container {
    width: 280px;
    height: 360px;
  }

  /* Scroll Cards */
  .scroll-title {
    font-size: clamp(28px, 4.5vw, 42px) !important;
  }
  .scroll-subtitle {
    font-size: clamp(18px, 3vw, 24px) !important;
  }

  /* Next Section */
  .two-column-layout {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .left-content {
    text-align: left;
    padding-right: 12px;
  }
  .left-content .next-title {
    text-align: left;
    font-size: clamp(32px, 5vw, 48px);
  }
  .left-content .next-sub {
    text-align: left;
    font-size: clamp(17px, 2.5vw, 21px);
  }
  .left-content .hero-cta {
    justify-content: flex-start;
  }
  .right-content .tree-wrap {
    transform: translateY(-8px);
  }

  /* Fold Marquee */
  .fold-marquee .track {
    font-size: clamp(56px, 8vw, 96px);
  }
}

/* Large Devices (lg) - Small Laptops/Desktops: 992px to 1199px */
@media (min-width: 992px) and (max-width: 1199px) {
  /* Hero */
  .hero-title {
    font-size: clamp(56px, 6vw, 72px);
  }
  .title-line.highlight {
    font-size: clamp(60px, 7vw, 78px);
  }
  .hero-sub {
    font-size: clamp(19px, 2.2vw, 22px);
  }

  /* Gallery */
  .gallery-title {
    font-size: clamp(36px, 4vw, 46px);
  }
  .gallery-sub {
    font-size: clamp(17px, 2.2vw, 20px);
  }

  /* Next Section */
  .two-column-layout {
    gap: 50px;
  }
  .left-content .next-title {
    font-size: clamp(36px, 4.5vw, 52px);
  }
  .left-content .next-sub {
    font-size: clamp(18px, 2.2vw, 21px);
  }
  .right-content .tree-wrap {
    transform: translateY(-12px);
  }

  /* Scroll Cards */
  .scroll-title {
    font-size: clamp(32px, 4vw, 48px) !important;
  }
  .scroll-subtitle {
    font-size: clamp(20px, 2.5vw, 26px) !important;
  }

  /* Fold Marquee */
  .fold-marquee .track {
    font-size: clamp(72px, 8vw, 108px);
  }
}

/* Extra Large Devices (xl) - Large Desktops: 1200px to 1399px */
@media (min-width: 1200px) and (max-width: 1399px) {
  /* Hero */
  .hero-title {
    font-size: clamp(64px, 5vw, 76px);
  }
  .title-line.highlight {
    font-size: clamp(68px, 6vw, 82px);
  }

  /* Gallery */
  .gallery-title {
    font-size: clamp(40px, 3.5vw, 48px);
  }

  /* Next Section */
  .two-column-layout {
    gap: 60px;
  }
  .left-content .next-title {
    font-size: clamp(40px, 4vw, 56px);
  }
  .right-content .tree-wrap {
    transform: translateY(-16px);
  }

  /* Scroll Cards */
  .scroll-title {
    font-size: clamp(36px, 3.5vw, 54px) !important;
  }
  .scroll-subtitle {
    font-size: clamp(22px, 2.2vw, 28px) !important;
  }

  /* Fold Marquee */
  .fold-marquee .track {
    font-size: clamp(88px, 7vw, 120px);
  }
}

/* Extra Extra Large Devices (xxl) - Very Large Desktops: 1400px+ */
@media (min-width: 1400px) {
  /* Hero */
  .hero-title {
    font-size: clamp(72px, 4vw, 80px);
  }
  .title-line.highlight {
    font-size: clamp(76px, 5vw, 88px);
  }

  /* Gallery */
  .gallery-title {
    font-size: clamp(44px, 3vw, 48px);
  }

  /* Next Section */
  .two-column-layout {
    gap: 70px;
  }
  .left-content .next-title {
    font-size: clamp(44px, 3.5vw, 56px);
  }

  /* Scroll Cards */
  .scroll-title {
    font-size: clamp(40px, 3vw, 60px) !important;
  }
  .scroll-subtitle {
    font-size: clamp(24px, 2vw, 30px) !important;
  }

  /* Fold Marquee */
  .fold-marquee .track {
    font-size: clamp(96px, 6vw, 128px);
  }
}
