/* ═══════════════════════════════════════════════════════════════
   Wildfire Dating — Main Stylesheet
   Design tokens are defined in tokens.css — imported via HTML.
═══════════════════════════════════════════════════════════════ */

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

html { scroll-behavior: smooth; }
body {
  background: var(--ash);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: default;
}

/* ── EMBER PARTICLE SYSTEM ─────────────────────────────────────────── */
#embers {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -8px;
  width: var(--s, 3px); height: var(--s, 3px);
  border-radius: 50%;
  background: var(--c, #E85D20);
  box-shadow: 0 0 var(--g, 6px) var(--c, #E85D20);
  opacity: 0;
  animation: rise var(--d, 6s) ease-in var(--dl, 0s) infinite;
}
@keyframes rise {
  0%   { opacity: 0;   transform: translateY(0)   translateX(0)    scale(1); }
  10%  { opacity: .9; }
  60%  { opacity: .5; }
  100% { opacity: 0;   transform: translateY(-100vh) translateX(var(--dx, 20px)) scale(.2); }
}

/* ── GRAIN OVERLAY ─────────────────────────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-size: 256px;
  opacity: .6;
  mix-blend-mode: overlay;
}

/* ── NAV ───────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  background: linear-gradient(180deg, rgba(12,8,6,.95) 0%, transparent 100%);
}
.nav-wordmark {
  font-family: 'Cinzel', serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold-lt);
  text-decoration: none;
}
.nav-wordmark span {
  color: var(--ember);
  margin-right: 2px;
}
.nav-cta {
  font-family: 'Cinzel', serif;
  font-size: 11px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ash);
  background: linear-gradient(135deg, var(--ember), var(--flame));
  border: none; border-radius: 2px;
  padding: 11px 28px;
  cursor: pointer; text-decoration: none;
  transition: opacity .2s, transform .2s;
  display: inline-block;
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── HERO ──────────────────────────────────────────────────────────── */
#hero {
  position: relative; z-index: 2;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  overflow: hidden;
}

/* Radial ember glow from below */
#hero::before {
  content: '';
  position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse at center,
    rgba(232,93,32,.28) 0%,
    rgba(74,20,40,.15) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Horizon heat line */
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg,
    transparent 0%, rgba(232,93,32,.60) 30%,
    rgba(201,168,76,.80) 50%,
    rgba(232,93,32,.60) 70%, transparent 100%);
}

.hero-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp .8s ease forwards .3s;
}

.hero-title {
  font-family: 'Cinzel', serif;
  font-size: clamp(72px, 14vw, 180px);
  font-weight: 900;
  letter-spacing: .06em;
  line-height: .88;
  color: var(--cream);
  position: relative;
  opacity: 0;
  animation: fadeUp 1s ease forwards .6s;
}
.hero-title .fire-word {
  display: block;
  background: linear-gradient(170deg,
    #FFEFB8 0%, var(--gold-lt) 20%,
    var(--flame) 50%, var(--ember) 75%, #7A1A0A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(232,93,32,.45));
}
.hero-title .dating-word {
  display: block;
  font-size: .52em;
  letter-spacing: .38em;
  color: rgba(245,237,216,.60);
  -webkit-text-fill-color: rgba(245,237,216,.60);
  margin-top: 8px;
  font-weight: 400;
}

.hero-rule {
  width: 1px; height: 60px;
  background: linear-gradient(180deg, transparent, rgba(201,168,76,.65), transparent);
  margin: 40px auto;
  opacity: 0;
  animation: fadeIn .8s ease forwards 1.2s;
}

.hero-mission {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: clamp(22px, 2.8vw, 34px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--cream);
  max-width: 720px;
  opacity: 0;
  animation: fadeUp .9s ease forwards 1.4s;
}
.hero-mission em {
  font-style: normal;
  color: var(--gold-lt);
}

.hero-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--dim);
  margin-top: 48px;
  opacity: 0;
  animation: fadeIn .8s ease forwards 2s;
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s ease forwards 2.4s;
}
.hero-scroll span {
  font-family: 'Cinzel', serif; font-size: 9px;
  letter-spacing: .28em; text-transform: uppercase; color: var(--dim);
}
.scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(180deg, rgba(201,168,76,.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

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

/* ── PHILOSOPHY / MISSION ──────────────────────────────────────────── */
#mission {
  position: relative; z-index: 2;
  padding: 160px 48px;
  max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.mission-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 48px;
}
.mission-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--cream);
}
.mission-body .gold { color: var(--gold-lt); font-style: italic; }
.mission-body .ember-text { color: var(--flame); }

.mission-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 80px auto;
  max-width: 500px;
}
.mission-divider .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.35));
}
.mission-divider .line:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.35), transparent);
}
.mission-divider .diamond {
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
  opacity: .6;
}

.mission-manifesto {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-weight: 300;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--smoke);
  line-height: 1.8;
  max-width: 680px; margin: 0 auto;
}
.mission-manifesto strong {
  font-style: normal; font-weight: 600;
  color: var(--cream);
}

/* ── THREE PHASES ──────────────────────────────────────────────────── */
#phases {
  position: relative; z-index: 2;
  padding: 120px 48px 160px;
  background: linear-gradient(180deg,
    transparent 0%, rgba(74,20,40,.20) 50%, transparent 100%);
}
.phases-header {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 80px;
}
.phases-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2px; max-width: 1100px; margin: 0 auto;
}
.phase {
  padding: 60px 48px;
  position: relative;
  background: rgba(22,14,10,.65);
  border: 1px solid rgba(201,168,76,.10);
  transition: background .4s, border-color .4s;
}
.phase:hover {
  background: rgba(74,20,40,.30);
  border-color: rgba(201,168,76,.25);
}
.phase:first-child { border-radius: 2px 0 0 2px; }
.phase:last-child  { border-radius: 0 2px 2px 0; }

/* Connecting spark between phases */
.phase:not(:last-child)::after {
  content: '';
  position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  width: 1px; height: 60%;
  background: linear-gradient(180deg, transparent, rgba(232,93,32,.55), transparent);
}

.phase-num {
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 28px;
  display: flex; align-items: center; gap: 12px;
}
.phase-num::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(232,93,32,.40), transparent);
}
.phase-icon {
  font-size: 32px; margin-bottom: 20px; display: block;
  filter: drop-shadow(0 0 12px rgba(232,93,32,.50));
}
.phase-title {
  font-family: 'Cinzel', serif;
  font-size: 20px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 16px;
}
.phase-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 18px;
  line-height: 1.7; color: var(--smoke);
}
.phase-body em {
  font-style: normal; color: var(--gold-lt);
}

/* ── THE MEMENTO ───────────────────────────────────────────────────── */
#memento {
  position: relative; z-index: 2;
  padding: 160px 48px;
  text-align: center;
  overflow: hidden;
}
#memento::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(201,168,76,.06) 0%, transparent 70%);
  pointer-events: none;
}

.memento-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 40px;
}
.memento-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 300; font-style: italic;
  line-height: 1.3; color: var(--cream);
  max-width: 760px; margin: 0 auto 24px;
}
.memento-sub {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--dim); margin-bottom: 80px;
}

/* The card they receive */
.memento-card-wrap {
  position: relative;
  display: inline-block;
  perspective: 1200px;
}
.memento-card {
  width: 480px;
  aspect-ratio: 4/3;
  background: linear-gradient(160deg, #1C0D0A 0%, #2A0F14 50%, #160A08 100%);
  border: 1px solid rgba(201,168,76,.30);
  border-radius: 8px;
  padding: 52px 56px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(201,168,76,.08),
    0 40px 100px rgba(0,0,0,.70),
    0 0 80px rgba(232,93,32,.08);
  transition: transform .6s ease, box-shadow .6s ease;
  animation: cardFloat 6s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-12px) rotate(.5deg); }
}
.memento-card:hover {
  transform: translateY(-8px) rotate(0deg) scale(1.01) !important;
  box-shadow: 0 0 0 1px rgba(201,168,76,.20), 0 60px 120px rgba(0,0,0,.70), 0 0 100px rgba(232,93,32,.14);
  animation: none;
}

/* Card inner glow */
.memento-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 8px;
  background: radial-gradient(ellipse 80% 60% at 50% 30%,
    rgba(232,93,32,.08) 0%, transparent 70%);
  pointer-events: none;
}
/* Card corner ornaments */
.card-orn {
  position: absolute;
  width: 36px; height: 36px;
  opacity: .35;
}
.card-orn.tl { top: 14px; left: 14px; }
.card-orn.tr { top: 14px; right: 14px; transform: scaleX(-1); }
.card-orn.bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.card-orn.br { bottom: 14px; right: 14px; transform: scale(-1); }

.card-flame-rule {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 28px; width: 100%;
}
.card-flame-rule .cfline {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.45));
}
.card-flame-rule .cfline:last-child {
  background: linear-gradient(90deg, rgba(201,168,76,.45), transparent);
}
.card-flame-rule span { font-size: 16px; filter: drop-shadow(0 0 8px rgba(232,93,32,.6)); }

.card-headline {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 13px;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(201,168,76,.65); margin-bottom: 18px;
}
.card-names {
  font-family: 'Cinzel', serif;
  font-size: 28px; font-weight: 600;
  letter-spacing: .14em;
  color: var(--cream); margin-bottom: 6px;
}
.card-date {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 16px;
  color: rgba(201,168,76,.60); margin-bottom: 24px;
}
.card-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 17px;
  line-height: 1.6; color: rgba(245,237,216,.65);
  text-align: center; max-width: 340px;
}
.card-wf-mark {
  margin-top: 24px;
  font-family: 'Cinzel', serif;
  font-size: 9px; letter-spacing: .42em; text-transform: uppercase;
  color: rgba(232,93,32,.60);
}

/* Glow behind card */
.memento-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center,
    rgba(232,93,32,.12) 0%, transparent 65%);
  pointer-events: none; z-index: -1;
}

.memento-caption {
  margin-top: 56px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 19px;
  color: var(--smoke); max-width: 520px; margin: 56px auto 0;
  line-height: 1.75;
}
.memento-caption strong {
  font-style: normal; font-weight: 600; color: var(--cream);
}

/* ── ETHICS STRIP ──────────────────────────────────────────────────── */
#ethics {
  position: relative; z-index: 2;
  padding: 80px 48px;
  border-top: 1px solid rgba(201,168,76,.10);
  border-bottom: 1px solid rgba(201,168,76,.10);
}
.ethics-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 40px; max-width: 1100px; margin: 0 auto;
  text-align: center;
}
.ethic-item {}
.ethic-glyph {
  font-size: 24px; margin-bottom: 12px; display: block;
  filter: drop-shadow(0 0 8px rgba(232,93,32,.35));
}
.ethic-label {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold-lt); margin-bottom: 8px;
}
.ethic-body {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 15px;
  color: var(--smoke); line-height: 1.6;
}

/* ── CTA SECTION ───────────────────────────────────────────────────── */
#cta {
  position: relative; z-index: 2;
  padding: 180px 48px 140px;
  text-align: center;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1200px; height: 500px;
  background: radial-gradient(ellipse at center bottom,
    rgba(74,20,40,.35) 0%, transparent 65%);
  pointer-events: none;
}
.cta-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .42em; text-transform: uppercase;
  color: var(--ember); margin-bottom: 40px;
}
.cta-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 5.5vw, 80px);
  font-weight: 300; font-style: italic;
  line-height: 1.25; color: var(--cream);
  max-width: 800px; margin: 0 auto 56px;
}
.cta-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-lt), var(--flame));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn-primary {
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--ash);
  background: linear-gradient(135deg, var(--ember), var(--flame));
  border: none; border-radius: 2px;
  padding: 18px 48px; cursor: pointer;
  text-decoration: none; display: inline-block;
  box-shadow: 0 8px 32px rgba(232,93,32,.35);
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(232,93,32,.50);
}
.btn-secondary {
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-lt);
  background: transparent;
  border: 1.5px solid rgba(201,168,76,.50);
  border-radius: 2px; padding: 18px 48px;
  cursor: pointer; text-decoration: none; display: inline-block;
  transition: background .2s, border-color .2s, transform .2s;
}
.btn-secondary:hover {
  background: rgba(201,168,76,.08);
  border-color: rgba(201,168,76,.80);
  transform: translateY(-2px);
}
.cta-motto {
  font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: .32em; text-transform: uppercase;
  color: var(--dim);
}

/* ── FOOTER ────────────────────────────────────────────────────────── */
footer {
  position: relative; z-index: 2;
  padding: 48px;
  border-top: 1px solid rgba(201,168,76,.10);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
}
.footer-mark {
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold-lt);
}
.footer-mark span { color: var(--ember); }
.footer-mottos {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 14px;
  color: var(--dim); line-height: 1.8;
}
.footer-links {
  display: flex; gap: 28px;
}
.footer-links a {
  font-family: 'Cinzel', serif;
  font-size: 10px; letter-spacing: .20em; text-transform: uppercase;
  color: var(--dim); text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--gold-lt); }

/* ── SCROLL REVEAL ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .35s; }
.reveal-delay-4 { transition-delay: .5s; }

/* ── RESPONSIVE ────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 18px 24px; }
  #hero, #mission, #phases, #memento, #ethics, #cta { padding-left: 24px; padding-right: 24px; }
  .phases-grid { grid-template-columns: 1fr; }
  .phase:first-child, .phase:last-child { border-radius: 2px; }
  .phase:not(:last-child)::after { display: none; }
  .ethics-inner { grid-template-columns: 1fr 1fr; }
  .memento-card { width: calc(100vw - 80px); max-width: 480px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
/* ── NAV — INNER LINKS & HAMBURGER (also used on interior pages) ── */
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  font-family: var(--font-display);
  font-size: 10px; letter-spacing: .20em; text-transform: uppercase;
  color: var(--dim); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-lt); }
.nav-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--gold-lt); transition: all .25s;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 61px; left: 0; right: 0;
    background: rgba(12,8,6,.98); padding: 20px;
    gap: 18px; border-bottom: 1px solid rgba(201,168,76,.12);
    z-index: 99;
  }
}
