:root {
  --background: #0f0e0c;
  --bg-alt-1: #12110f;
  --bg-alt-2: #0c0b0a;
  --foreground: #f5e8d3;
  --primary: #b67a3a;
  --primary-foreground: #0f0e0c;
  --secondary: #c8a46a;
  --secondary-foreground: #0f0e0c;
  --font-serif: "Cormorant Garamond", serif;
  --font-sans: "Manrope", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 500; color: var(--secondary); line-height: 1.15; }

.noise {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: .03; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ---------- layout ---------- */
.container { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container.narrow { max-width: 56rem; }
.container.mid { max-width: 64rem; }
.container.faq { max-width: 48rem; }

.section { padding: 6rem 0; }
.section.py-32 { padding: 8rem 0; }
.bg-alt-1 { background: var(--bg-alt-1); }
.bg-alt-2 { background: var(--bg-alt-2); }

.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 2rem; }
.stack-lg { display: flex; flex-direction: column; gap: 3rem; }

.grid-2 { display: grid; gap: 3rem; }
.grid-12 { display: grid; gap: 2rem; }

.mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; } .mb-6 { margin-bottom: 1.5rem; } .mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; } .mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }

.eyebrow {
  display: block; color: var(--primary);
  text-transform: uppercase; letter-spacing: .2em; font-size: .875rem;
}

.lead { font-size: 1.125rem; color: color-mix(in srgb, var(--foreground) 80%, transparent); font-weight: 300; line-height: 1.75; }
.lead.dim { color: color-mix(in srgb, var(--foreground) 70%, transparent); }
.measure { max-width: 42rem; margin-left: auto; margin-right: auto; }
.measure-sm { max-width: 36rem; margin-left: auto; margin-right: auto; }

h1 { font-size: 2.25rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.1; }
h2 { font-size: 2.25rem; }
h2.h-md { font-size: 2.25rem; }
h2.h-sm { font-size: 1.875rem; }
h2.h-faq { font-size: 2.25rem; }
h2.h-finale { font-size: 3rem; }

.order-2-md { order: 2; }

.img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-34 { aspect-ratio: 3 / 4; }
.aspect-45 { aspect-ratio: 4 / 5; }

/* ---------- reveal on scroll ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(1.5rem);
  transition: opacity .9s ease-out, transform .9s ease-out;
  transition-delay: var(--d, 0s);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, color-mix(in srgb, var(--background) 40%, transparent), color-mix(in srgb, var(--background) 20%, transparent), var(--background)); }

.moon {
  position: absolute; left: 50%; transform: translateX(-50%);
  border-radius: 50%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle, #fdf3dc 0%, #ecd3a2 20%, rgba(200, 164, 106, .5) 45%, rgba(200, 164, 106, 0) 72%);
  filter: blur(1px);
}
.moon-hero { top: 8%; width: 10rem; height: 10rem; }
.moon-finale { top: 10%; width: 8rem; height: 8rem; }

.hero-content { position: relative; z-index: 10; text-align: center; display: flex; flex-direction: column; align-items: center; padding: 0 1rem; max-width: 56rem; }
.hero-content h1 { margin-bottom: 1.5rem; }
.hero-sub { font-size: 1.125rem; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; color: color-mix(in srgb, var(--foreground) 80%, transparent); max-width: 42rem; }

.divider { color: color-mix(in srgb, var(--primary) 70%, transparent); width: 100%; max-width: 20rem; margin: 0 auto 1.5rem; }
.divider svg { width: 100%; height: 1.5rem; display: block; }

.hero-scroll { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; z-index: 10; }
.hero-scroll span { font-size: .75rem; text-transform: uppercase; letter-spacing: .15em; color: var(--primary); margin-bottom: 1rem; }
.hero-scroll-line { width: 1px; height: 3rem; background: linear-gradient(to bottom, var(--primary), transparent); }

/* ---------- sections ---------- */
.offset-md { margin-top: 3rem; }
.pad-left-md { padding-left: 0; }
.span-5, .span-7 { grid-column: auto; }

.candle-wrap { display: flex; justify-content: center; }
.candle-line { width: .25rem; height: 8rem; background: linear-gradient(to bottom, var(--primary), transparent); opacity: .8; animation: flicker 4s infinite alternate; }
@keyframes flicker { 0%, 100% { opacity: .8; } 25% { opacity: .68; } 50% { opacity: .76; } 75% { opacity: .7; } }

.masonry { columns: 1; column-gap: 1.5rem; }
.masonry img { width: 100%; margin-bottom: 1.5rem; break-inside: avoid; border-radius: 2px; }

/* ---------- plans ---------- */
.plans { display: grid; gap: 2rem; text-align: center; }
.plan {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--background) 50%, transparent);
  backdrop-filter: blur(4px);
  padding: 2.5rem; display: flex; flex-direction: column; align-items: center;
  transition: border-color .7s;
}
.plan:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.plan h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.plan-sub { font-size: .875rem; text-transform: uppercase; letter-spacing: .15em; color: color-mix(in srgb, var(--foreground) 50%, transparent); margin-bottom: 2rem; }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; margin-bottom: 3rem; flex-grow: 1; color: color-mix(in srgb, var(--foreground) 80%, transparent); }
.plan-price { font-family: var(--font-serif); font-size: 1.875rem; color: var(--secondary); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); }
.plan-featured { border-color: color-mix(in srgb, var(--secondary) 40%, transparent); background: var(--bg-alt-1); }
.plan-featured:hover { border-color: var(--secondary); }
.plan-sub-featured { color: color-mix(in srgb, var(--secondary) 50%, transparent); }
.plan-featured .plan-price { border-bottom-color: color-mix(in srgb, var(--secondary) 20%, transparent); }

.btn {
  display: inline-block; text-align: center; cursor: pointer; text-decoration: none;
  text-transform: uppercase; letter-spacing: .2em; font-size: .875rem; font-family: var(--font-sans);
  padding: 1rem 3rem; transition: all .5s;
}
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: var(--primary-foreground); }
.btn-solid { border: 1px solid var(--secondary); background: var(--secondary); color: var(--secondary-foreground); }
.btn-solid:hover { background: #fff; border-color: #fff; }
.plan .btn { width: 100%; padding: 1rem 0; }
.btn-hero { padding: 1.25rem 3rem; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 2rem; }
.faq-item { border-bottom: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); padding-bottom: 1.5rem; }
.faq-item h4 { font-size: 1.25rem; color: var(--foreground); margin-bottom: 1rem; transition: color .4s; }
.faq-item:hover h4 { color: var(--secondary); }
.faq-item p { color: color-mix(in srgb, var(--foreground) 60%, transparent); line-height: 1.75; }

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s ease; }
.carousel-slide { flex: 0 0 100%; padding: 0 .5rem; }
.carousel-slide > div, .carousel-slide { min-width: 0; }
.carousel-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 3rem; height: 3rem; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  color: var(--primary); background: color-mix(in srgb, var(--background) 50%, transparent);
  backdrop-filter: blur(4px); font-size: 1.5rem; line-height: 1; transition: all .5s;
}
.carousel-btn:hover { background: var(--primary); color: var(--primary-foreground); }
.carousel-prev { left: 0; transform: translate(-30%, -50%); }
.carousel-next { right: 0; transform: translate(30%, -50%); }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.5rem; }
.carousel-dots button { width: .5rem; height: .5rem; border-radius: 50%; border: none; cursor: pointer; background: color-mix(in srgb, var(--primary) 25%, transparent); transition: background .3s; padding: 0; }
.carousel-dots button.active { background: var(--primary); }

.video-frame { aspect-ratio: 16 / 9; border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent); border-radius: 2px; overflow: hidden; }
.video-frame video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- finale ---------- */
.finale { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.finale-media { position: absolute; inset: 0; }
.finale-media img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.finale-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--background), color-mix(in srgb, var(--background) 80%, transparent), transparent); }
.finale-content { position: relative; z-index: 10; padding: 0 1rem; max-width: 42rem; display: flex; flex-direction: column; align-items: center; }
.finale-text { line-height: 1.75; }
.footer { position: absolute; bottom: 3rem; width: 100%; text-align: center; }
.footer p { font-size: .75rem; text-transform: uppercase; letter-spacing: .3em; color: color-mix(in srgb, var(--foreground) 30%, transparent); }

/* ---------- desktop ---------- */
@media (min-width: 768px) {
  h1 { font-size: 6rem; }
  h2 { font-size: 3.75rem; }
  h2.h-md { font-size: 3rem; }
  h2.h-sm { font-size: 2.25rem; }
  h2.h-finale { font-size: 4.5rem; }
  .hero-sub { font-size: 1.5rem; }
  .moon-hero { width: 16rem; height: 16rem; }
  .moon-finale { width: 12rem; height: 12rem; }
  .section { padding: 7rem 0; }

  .grid-2 { grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
  .order-2-md { order: 1; }
  .md-order-2 { order: 2; }
  .offset-md { margin-top: 8rem; }
  .pad-left-md { padding-left: 3rem; }

  .grid-12 { grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
  .span-5 { grid-column: span 5; order: 1; }
  .span-7 { grid-column: span 7; order: 2; }

  .masonry { columns: 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan { padding: 3.5rem; }
  .carousel-slide { flex-basis: 60%; }
  .carousel-slide img { aspect-ratio: 3 / 4; }
}

@media (min-width: 1024px) {
  h1 { font-size: 8rem; }
  .masonry { columns: 3; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .candle-line { animation: none; }
}
