/* Soulspice — base layout, typography, sections, video layer.
   All tokens come from copy/brand-kit.md. */

:root {
  /* Palette */
  --bg: #0f2414;            /* deeper than Forest Night, for the video base */
  --forest: #1a3d22;        /* Forest Night */
  --emerald: #2e6b34;       /* Emerald Mehndi */
  --surface: rgba(20, 44, 26, 0.5);
  --text: #f3e7b3;          /* Saffron Cream */
  --text-soft: rgba(243, 231, 179, 0.78);
  --muted: rgba(243, 231, 179, 0.56);
  --accent: #d4af37;        /* Temple Gold */
  --accent-rgb: 212, 175, 55;
  --purple: #6a2c91;        /* Royal Soul Purple */
  --purple-rgb: 106, 44, 145;
  --magenta: #c2338a;       /* Lotus Magenta */
  --teal: #5fc4b0;          /* Peacock Teal */
  --plum: #2a1740;          /* Plum Ink */
  --line: rgba(212, 175, 55, 0.28);

  /* Type */
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-head: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-script: "Dancing Script", cursive;

  --gutter: clamp(1.25rem, 5vw, 6rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.08; }
em { font-style: italic; color: var(--accent); }

.nav__logo,
.hero__title,
.impact__head,
.section-head h2,
.section-title,
.showcase__line,
.feature__title,
.workflow-card h3,
.spec__value,
.buy__title,
.footer__big,
.preloader__word {
  font-family: var(--font-head);
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------- Background layers ---------- */

.bg-poster,
.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.bg-poster {
  background: var(--bg) url("../assets/img/poster.jpg") center / cover no-repeat;
}

.bg-video {
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s var(--ease);
}
.bg-video.is-ready { opacity: 1; }

.bg-tint {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 70% at 50% 50%, transparent 0%, rgba(8, 20, 11, 0.35) 70%, rgba(8, 20, 11, 0.75) 100%),
    linear-gradient(90deg, rgba(8, 20, 11, 0.9) 0%, rgba(8, 20, 11, 0.72) 28%, rgba(8, 20, 11, 0.18) 55%, rgba(8, 20, 11, 0.12) 65%, rgba(8, 20, 11, 0.5) 100%);
  transition: background 0.6s linear;
}

.motion-glow {
  position: fixed;
  z-index: 2;
  width: 46vmax;
  height: 46vmax;
  left: 0;
  top: 0;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.09), rgba(var(--purple-rgb), 0.05) 40%, transparent 70%);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.8s;
}
.motion-glow.is-on { opacity: 1; }

/* ---------- Preloader ---------- */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-content: center;
  gap: 1.5rem;
  justify-items: center;
  background: var(--bg);
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__word {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  color: var(--text);
  letter-spacing: 0.02em;
}
.preloader__bar {
  width: 160px;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.4s linear;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem var(--gutter);
  transition: background 0.5s, backdrop-filter 0.5s;
}
.nav.is-scrolled {
  background: rgba(10, 26, 14, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.12);
}
.nav__brand { display: flex; align-items: center; gap: 0.75rem; }
.nav__emblem {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.5);
}
.nav__logo { font-size: 1.6rem; font-weight: 500; letter-spacing: 0.01em; }
.nav__links { display: flex; gap: 2.2rem; font-size: 0.85rem; letter-spacing: 0.08em; }
.nav__links a { color: var(--text-soft); transition: color 0.3s; }
.nav__links a:hover { color: var(--accent); }
.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.8rem; }

/* ---------- Sections ---------- */

#page { position: relative; z-index: 10; }

section { position: relative; padding: 0 var(--gutter); }

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero__inner { max-width: 640px; padding-top: 4rem; }
.hero__title {
  font-size: clamp(3rem, 7.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hero__title em { font-weight: 400; }
.hero__lede {
  max-width: 460px;
  margin: 1.6rem 0 2.4rem;
  color: var(--text);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint span {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--accent), transparent);
  animation: hint 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes hint {
  0% { transform: scaleY(0); opacity: 1; }
  60% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Impact */
.impact { min-height: 100vh; }
.impact__pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1000px;
}
.impact__head {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.6rem);
  line-height: 1.18;
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55);
}
.impact__head .word { display: inline-block; will-change: opacity, transform, filter; }

/* Showcase */
.showcase {
  min-height: 110vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.showcase__card { max-width: 480px; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: 22px; }
.showcase__line { font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 1.2rem; }
.showcase__card p:not(.eyebrow) { color: var(--text-soft); margin: 0 0 1.5rem; }

/* Section heads */
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2,
.section-title { font-size: clamp(2.4rem, 5vw, 4.4rem); }

/* Features */
.features { padding-top: 20vh; padding-bottom: 20vh; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.feature { padding: 2rem 1.75rem 2.25rem; border-radius: 20px; }
.feature__num {
  display: block;
  margin-bottom: 2.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}
.feature__title { font-size: 1.7rem; margin-bottom: 0.75rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

/* Occasions gallery */
.workflow__pin {
  position: relative;
  height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}
.workflow__intro { max-width: 440px; }
.workflow__count {
  margin-top: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}
.workflow__count span { color: var(--accent); }
.workflow__track { position: relative; height: 100%; }
.workflow .workflow-card {
  position: absolute;
  top: 50%;
  left: 0;
  width: min(440px, 100%);
  padding: 2.25rem 2rem;
  border-radius: 22px;
  transform: translateY(-50%);
}
.workflow-card h3 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); margin-bottom: 0.9rem; }
.workflow-card p:not(.eyebrow) { margin: 0; color: var(--text-soft); }

/* Craft / specs */
.specs { padding-top: 24vh; padding-bottom: 12vh; }
.specs__table {
  margin: 0;
  max-width: 820px;
  border-radius: 22px;
  padding: 0.5rem clamp(1.25rem, 3vw, 2.5rem);
}
.spec {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}
.spec:last-child { border-bottom: 0; }
.spec dt {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.spec__value { margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); }

/* Reserve */
.buy {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding-top: 10vh;
}
.buy__card {
  max-width: 620px;
  width: 100%;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 28px;
}
.buy__emblem {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.55), 0 0 40px rgba(var(--accent-rgb), 0.18);
}
.buy__title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.buy__lede { color: var(--text-soft); margin: 1rem auto 2rem; max-width: 440px; }
.buy__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.buy__info div { display: grid; gap: 0.3rem; }
.buy__label { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.buy .hero__actions { justify-content: center; }

/* Footer */
.footer {
  position: relative;
  z-index: 10;
  margin-top: 30vh;
  padding: 16vh var(--gutter) 6vh;
  background: var(--bg);
  text-align: center;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 45vh;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.footer__big {
  margin: 0;
  font-size: clamp(4rem, 14vw, 12rem);
  line-height: 0.9;
  color: var(--text);
  opacity: 0.92;
}
.footer__script { margin: 0.4rem 0 0.2rem; font-family: var(--font-script); font-size: 1.6rem; color: var(--accent); }
.footer__slogan { margin: 0 0 3rem; color: var(--muted); letter-spacing: 0.06em; }
.footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin-bottom: 3rem; font-size: 0.85rem; letter-spacing: 0.1em; }
.footer__links a { color: var(--text-soft); }
.footer__links a:hover { color: var(--accent); }
.footer__legal { margin: 0; font-size: 0.75rem; color: var(--muted); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); }
.no-motion .reveal { opacity: 1; transform: none; }

/* ---------- Mobile / touch ---------- */

@media (max-width: 900px) {
  .nav__links { display: none; }
  .workflow__pin { height: auto; grid-template-columns: 1fr; padding: 16vh 0 4vh; }
  .workflow__track { height: auto; display: grid; gap: 1rem; }
  .workflow__count { display: none; }
  .workflow .workflow-card { position: relative; top: auto; transform: none; width: 100%; }
}

@media (hover: none), (max-width: 768px) {
  .bg-video { display: none; }
  .bg-tint {
    background: linear-gradient(180deg, rgba(8, 20, 11, 0.55), rgba(8, 20, 11, 0.8));
  }
  .motion-glow { display: none; }
  .showcase { min-height: auto; padding-top: 16vh; }
  .spec { grid-template-columns: 1fr; gap: 0.3rem; }
  .buy__info { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.7rem, 12vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint span { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
