/* ─────────────────────────────────────────
   LIT — Premium Candles
   Aesthetic: Refined luxury dark, editorial
   Fonts: Cormorant Garamond + Jost
────────────────────────────────────────── */

:root {
  --black:      #0a0906;
  --ink:        #131210;
  --charcoal:   #1c1a17;
  --stone:      #2e2b27;
  --warm-grey:  #6b6560;
  --sand:       #a89880;
  --cream:      #d4c9b8;
  --ivory:      #ede8df;
  --gold:       #c9a96e;
  --gold-light: #e2c990;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', system-ui, sans-serif;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

  --nav-h: 72px;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--black);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

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

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
  width: 32px; height: 32px;
  border: 1px solid rgba(201,169,110,0.4);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s var(--ease-out);
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 14px; height: 14px;
}

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(10,9,6,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,169,110,0.1);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ivory);
  transition: color 0.2s;
}
.nav__logo:hover { color: var(--gold); }

.nav__links {
  display: flex; gap: 40px;
}
.nav__links a {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--ivory); }

.nav__menu-btn {
  display: none; flex-direction: column; gap: 6px;
  background: none; border: none; cursor: none;
  padding: 4px;
}
.nav__menu-btn span {
  display: block; width: 24px; height: 1px;
  background: var(--ivory);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── MOBILE MENU ─── */
.mobile-menu {
  display: none;
  position: fixed; inset: 0;
  background: var(--black);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 4rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--cream);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex; align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute; inset: 0;
  background: var(--black);
}

.hero__grain {
  position: absolute; inset: 0; z-index: 1;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: 0.6;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero__glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,169,110,0.08) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: glowPulse 6s ease-in-out infinite;
}
.hero__glow--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,169,110,0.05) 0%, transparent 70%);
  bottom: 100px; left: 10%;
  animation: glowPulse 8s ease-in-out infinite reverse;
}

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

.hero__content {
  position: relative; z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  padding-top: var(--nav-h);
}

.hero__eyebrow {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 9rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--ivory);
  margin-bottom: 32px;
}

.hero__title-line {
  display: block;
}
.hero__title-line--italic {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
  font-weight: 200;
  color: var(--warm-grey);
  max-width: 420px;
  line-height: 1.7;
  margin-bottom: 48px;
  letter-spacing: 0.02em;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--gold);
  padding: 16px 36px;
  border: 1px solid var(--gold);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute; inset: 0;
  background: var(--ivory);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
}

.btn-primary:hover::after { transform: translateX(0); }
.btn-primary:hover { color: var(--black); }
.btn-primary span { position: relative; z-index: 1; }

/* ─── SCROLL INDICATOR ─── */
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  z-index: 2;
}
.hero__scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 2s ease-in-out infinite;
}
.hero__scroll span {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transform: rotate(90deg) translateX(20px);
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── MARQUEE ─── */
.marquee {
  overflow: hidden;
  border-top: 1px solid rgba(201,169,110,0.15);
  border-bottom: 1px solid rgba(201,169,110,0.15);
  padding: 18px 0;
  background: var(--ink);
}
.marquee__track {
  display: flex; gap: 40px; align-items: center;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee__track span {
  font-size: 0.65rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
}
.marquee__dot { color: var(--gold) !important; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── SECTION SHARED ─── */
.section-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ivory);
}
.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* ─── COLLECTION ─── */
.collection {
  padding: 140px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 80px;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.candle-card {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  cursor: none;
}

.candle-card__image-wrap {
  aspect-ratio: 3/4;
  position: relative;
  overflow: hidden;
}

.candle-card__image {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end;
  padding-bottom: 32px;
  transition: transform 0.7s var(--ease-out);
  position: relative;
}

.candle-card:hover .candle-card__image { transform: scale(1.03); }

/* Candle color themes */
.candle-card__image--noir { background: linear-gradient(160deg, #1a1510 0%, #0e0c09 50%, #2a1f0e 100%); }
.candle-card__image--alba { background: linear-gradient(160deg, #2a2520 0%, #1a1612 50%, #2e2820 100%); }
.candle-card__image--sable { background: linear-gradient(160deg, #1e1a12 0%, #140f07 50%, #241c0f 100%); }
.candle-card__image--brume { background: linear-gradient(160deg, #151820 0%, #0d1018 50%, #1a1e28 100%); }

/* CSS Candle Illustrations */
.candle-card__vessel {
  position: relative;
  z-index: 2;
}

.candle-card__vessel--tall {
  width: 52px; height: 90px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 3px 3px 6px 6px;
}

.candle-card__vessel--wide {
  width: 70px; height: 60px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.02) 50%, rgba(255,255,255,0.05) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px 4px 8px 8px;
}

.candle-card__flame {
  width: 10px; height: 22px;
  background: radial-gradient(ellipse at 50% 80%, #ffd060 0%, #ff8c00 40%, rgba(255,60,0,0.3) 70%, transparent 100%);
  border-radius: 50% 50% 30% 30%;
  position: relative;
  z-index: 3;
  margin-bottom: -2px;
  animation: flicker 2.5s ease-in-out infinite;
  filter: blur(0.5px);
}

.candle-card__flame::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 30px;
  background: radial-gradient(ellipse, rgba(255,160,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

@keyframes flicker {
  0%, 100% { transform: scaleX(1) rotate(-1deg); opacity: 1; }
  25% { transform: scaleX(0.9) rotate(1deg) scaleY(1.05); opacity: 0.95; }
  50% { transform: scaleX(1.05) rotate(-0.5deg) scaleY(0.97); opacity: 1; }
  75% { transform: scaleX(0.95) rotate(1.5deg) scaleY(1.03); opacity: 0.9; }
}

.candle-card__info {
  padding: 24px 20px 28px;
  border-top: 1px solid rgba(201,169,110,0.1);
}
.candle-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: var(--ivory);
  margin-bottom: 6px;
}
.candle-card__notes {
  font-size: 0.68rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--warm-grey);
  margin-bottom: 12px;
}
.candle-card__burn {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,169,110,0.25);
  padding: 4px 10px;
  display: inline-block;
}

/* ─── STATEMENT ─── */
.statement {
  background: var(--charcoal);
  border-top: 1px solid rgba(201,169,110,0.1);
  border-bottom: 1px solid rgba(201,169,110,0.1);
  padding: 100px 48px;
}
.statement__inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.statement__quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream);
  border: none;
}
.statement__quote cite {
  display: block;
  font-size: 0.7rem;
  font-style: normal;
  font-family: var(--font-body);
  font-weight: 200;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 32px;
}

/* ─── CRAFT ─── */
.craft {
  padding: 140px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.craft__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.craft__visual {
  position: relative;
}

.craft__visual-inner {
  aspect-ratio: 3/4;
  background: var(--charcoal);
  border: 1px solid rgba(201,169,110,0.1);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  position: relative;
}

/* CSS Pour animation */
.craft__pour-animation {
  position: relative;
  width: 120px; height: 200px;
}

.craft__jar {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 110px;
  border: 1px solid rgba(201,169,110,0.3);
  border-radius: 5px 5px 12px 12px;
  background: rgba(201,169,110,0.03);
}

.craft__wax {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 88px; height: 0;
  background: linear-gradient(180deg, rgba(201,169,110,0.4) 0%, rgba(201,169,110,0.2) 100%);
  border-radius: 0 0 12px 12px;
  animation: fillJar 4s ease-in-out infinite;
}

.craft__pour-stream {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, rgba(201,169,110,0.6) 0%, rgba(201,169,110,0.3) 100%);
  border-radius: 2px;
  animation: pourStream 4s ease-in-out infinite;
  transform-origin: top center;
}

@keyframes fillJar {
  0%, 15% { height: 0; }
  70%, 80% { height: 80px; }
  90%, 100% { height: 0; }
}

@keyframes pourStream {
  0%, 5% { height: 0; opacity: 0; }
  15% { height: 120px; opacity: 1; }
  70% { height: 30px; opacity: 0.8; }
  75%, 100% { height: 0; opacity: 0; }
}

.craft__visual-label {
  position: absolute; bottom: 24px; left: 24px;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.craft__pillars {
  display: flex; flex-direction: column; gap: 40px;
  margin-top: 48px;
}

.craft__pillar {
  display: flex; gap: 24px; align-items: flex-start;
}

.craft__pillar-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.1em;
  flex-shrink: 0;
  margin-top: 3px;
}

.craft__pillar h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--ivory);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.craft__pillar p {
  font-size: 0.82rem;
  font-weight: 200;
  color: var(--warm-grey);
  line-height: 1.7;
  letter-spacing: 0.02em;
}

/* ─── CONTACT ─── */
.contact {
  background: var(--ink);
  border-top: 1px solid rgba(201,169,110,0.1);
  padding: 160px 48px;
}

.contact__inner {
  max-width: 700px;
}

.contact__sub {
  font-size: 0.9rem;
  font-weight: 200;
  color: var(--warm-grey);
  line-height: 1.7;
  margin: 24px 0 48px;
  letter-spacing: 0.02em;
}

.contact__email {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  color: var(--ivory);
  border-bottom: 1px solid rgba(201,169,110,0.3);
  padding-bottom: 8px;
  transition: color 0.2s, border-color 0.2s;
}
.contact__email:hover { color: var(--gold); border-color: var(--gold); }
.contact__email svg { transition: transform 0.2s; }
.contact__email:hover svg { transform: translate(3px, -3px); }

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 48px;
}

.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--ivory);
}

.footer__tagline {
  font-size: 0.7rem;
  font-weight: 200;
  letter-spacing: 0.1em;
  color: var(--warm-grey);
}
.footer__tagline em { font-style: normal; color: var(--gold); }

.footer__copy {
  font-size: 0.65rem;
  font-weight: 200;
  letter-spacing: 0.05em;
  color: var(--stone);
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

.reveal--delay-1 { animation-delay: 0.15s; }
.reveal--delay-2 { animation-delay: 0.3s; }
.reveal--delay-3 { animation-delay: 0.45s; }

.revealed {
  animation: revealUp 0.9s var(--ease-out) forwards;
}

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .craft__layout {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .craft__visual-inner { aspect-ratio: 16/9; }
}

@media (max-width: 768px) {
  .nav { padding: 0 24px; }
  .nav__links { display: none; }
  .nav__menu-btn { display: flex; }

  .hero__content { padding: 0 24px; padding-top: var(--nav-h); }

  .collection { padding: 80px 24px; }
  .collection__grid { grid-template-columns: 1fr 1fr; gap: 2px; }

  .craft { padding: 80px 24px; }
  .statement { padding: 80px 24px; }
  .contact { padding: 100px 24px; }
  .footer { padding: 32px 24px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .collection__grid { grid-template-columns: 1fr; }
  .hero__title { font-size: 3.5rem; }
}

@media (hover: none) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}
