:root {
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --gold: #f2c879;
  --dark: #04120d;
  --dark-alt: #061a14;
  --near-black: #030d09;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

main {
  display: flex;
  flex-direction: column;
}

/* ---------- Giant corner vines (grow with whole-page scroll) ---------- */

.growth-meter {
  pointer-events: none;
}

.vine {
  position: fixed;
  bottom: 0;
  z-index: 60;
  display: none;
  height: 82vh;
  width: 11rem;
}

.vine-left {
  left: 0;
}

.vine-right {
  right: 0;
  transform: scaleX(-1);
}

.vine svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.vine-path {
  fill: none;
  stroke: #8fd19e;
  stroke-opacity: 0.9;
  stroke-width: 5;
  stroke-linecap: round;
}

.leaf {
  fill: #8fd19e;
  fill-opacity: 0.85;
  opacity: 0;
}

.bud {
  fill: var(--gold);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

@media (min-width: 640px) {
  .vine {
    width: 15rem;
  }
}

@media (min-width: 1024px) {
  .vine {
    display: block;
  }
}

@media (min-width: 1280px) {
  .vine {
    width: 18rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  background: var(--dark);
  perspective: 1200px;
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero-bg-tilt {
  position: absolute;
  inset: -1.5rem;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent, rgba(0, 0, 0, 0.7));
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  will-change: transform, opacity;
}

.hero-logo-box {
  position: relative;
  aspect-ratio: 16 / 11;
  width: 94vw;
  max-height: 40vh;
  opacity: 0;
  animation: logoIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (min-width: 640px) {
  .hero-logo-box {
    aspect-ratio: 16 / 9;
    width: 97vw;
    max-height: 78vh;
  }
}

@keyframes logoIn {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.hero-eyebrow {
  position: absolute;
  left: 0;
  right: 0;
  top: -2.5rem;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.6em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: blur(6px) drop-shadow(0 0 26px rgba(242, 200, 121, 0.5)) drop-shadow(0 0 55px rgba(242, 200, 121, 0.3));
  animation: glowPulse 4.5s ease-in-out infinite;
}

.hero-logo-glow img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero-logo-glow img {
    object-fit: contain;
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.6;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

.hero-logo-sharp {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: drop-shadow(0 0 35px rgba(0, 0, 0, 0.4));
}

@media (min-width: 640px) {
  .hero-logo-sharp {
    object-fit: contain;
  }
}

.hero-scrollcue {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero-scrollcue span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
}

.hero-scrollcue svg {
  animation: bob 1.8s ease-in-out infinite;
}

.scroll-dot {
  animation: dotBob 1.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

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

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

/* ---------- Stacked cards (sticky sections) ---------- */

.stack {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-top-left-radius: 2.5rem;
  border-top-right-radius: 2.5rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .stack {
    border-top-left-radius: 3rem;
    border-top-right-radius: 3rem;
    padding: 6rem 3rem;
  }
}

.seed {
  z-index: 10;
  background: var(--dark);
}

.theme {
  z-index: 20;
  background: var(--gold);
}

.materials {
  z-index: 30;
  background: var(--dark-alt);
}

.closing {
  z-index: 40;
  background: var(--near-black);
}

.stack-inner {
  position: relative;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 92vw;
}

.theme .stack-inner,
.closing .stack-inner {
  width: 100%;
  max-width: 48rem;
}

.materials .stack-inner {
  width: 100%;
  max-width: 42rem;
}

/* ---------- Typography ---------- */

.w-bold {
  font-family: var(--font-sans);
  font-weight: 600;
}

.w-italic {
  font-family: var(--font-serif);
  font-style: italic;
}

.seed h2 {
  font-size: 3rem;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) {
  .seed h2 {
    font-size: 3.75rem;
  }
}
@media (min-width: 1024px) {
  .seed h2 {
    font-size: 4.5rem;
  }
}
@media (min-width: 1280px) {
  .seed h2 {
    font-size: 6rem;
  }
}

.body-lg {
  max-width: 48rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
  .body-lg {
    font-size: 1.25rem;
  }
}

.justify {
  text-align: justify;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--gold);
}

.theme .eyebrow {
  color: rgba(4, 18, 13, 0.7);
}

.divider {
  height: 1px;
  width: 4rem;
  background: rgba(255, 255, 255, 0.2);
}

.theme .divider {
  background: rgba(4, 18, 13, 0.25);
}

.lede {
  font-size: 1.25rem;
  line-height: 1.625;
  color: var(--dark);
}

@media (min-width: 640px) {
  .lede {
    font-size: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .lede {
    font-size: 1.875rem;
  }
}

.materials h2,
.closing h2 {
  font-size: 2.25rem;
  line-height: 1.25;
  color: #fff;
}

@media (min-width: 640px) {
  .materials h2,
  .closing h2 {
    font-size: 3rem;
  }
}
@media (min-width: 1024px) {
  .materials h2,
  .closing h2 {
    font-size: 3.75rem;
  }
}

.body-md {
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1.125rem;
  line-height: 1.625;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 640px) {
  .body-md {
    font-size: 1.25rem;
  }
}

.pill {
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.6);
}

.closing-final {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.closing-final span {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.875rem;
  color: var(--gold);
}

@media (min-width: 640px) {
  .closing-final span {
    font-size: 2.25rem;
  }
}

/* ---------- Buttons ---------- */

.btn-solid {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 9999px;
  background: var(--gold);
  color: var(--dark);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: background-color 0.2s;
}

.btn-solid:hover {
  background: rgba(242, 200, 121, 0.9);
}

.btn-outline {
  margin-top: 1.5rem;
  display: inline-block;
  border-radius: 9999px;
  border: 1px solid rgba(242, 200, 121, 0.4);
  color: var(--gold);
  padding: 0.75rem 2rem;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  transition: background-color 0.2s;
}

.btn-outline:hover {
  background: rgba(242, 200, 121, 0.1);
}

/* ---------- Reveal-on-scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.divider.reveal {
  transform: scaleX(0);
  transition: transform 0.5s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.divider.reveal.in-view {
  transform: scaleX(1);
}
