/* ==========================================================
   L'être Unique — coming soon
   ========================================================== */

:root {
  --bg: #050403;
  --bg-soft: #0b0907;
  --bg-card: #100d0a;
  --ink: #f3ebdc;
  --ink-dim: #b9ad98;
  --gold: #d4af37;
  --gold-light: #f6e3a1;
  --gold-deep: #8a6212;
  --gold-grad: linear-gradient(135deg, #f6e3a1 0%, #d4af37 45%, #9a6f16 100%);
  --line: rgba(212, 175, 55, 0.28);

  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --font-body: "Jost", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(1120px, 92%); margin: 0 auto; }
.container--narrow { width: min(760px, 90%); }

/* ---------- Typography ---------- */
.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.2rem;
  font-weight: 400;
}

.section__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  margin: 0;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  line-height: 1.5;
  color: var(--ink);
  font-weight: 300;
}
.lead em { color: var(--gold-light); }

p { color: var(--ink-dim); text-wrap: pretty; }
.lead, .hero__title, .band blockquote { text-wrap: balance; }

.rule {
  display: flex; justify-content: center; align-items: center;
  margin: 1.8rem auto 2.2rem;
}
.rule span {
  display: block; width: 90px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  position: relative;
}
.rule span::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 7px; height: 7px; background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.7rem;
  padding: 1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  border: 1px solid var(--gold);
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.35s ease, background 0.3s ease, color 0.3s ease;
}
.btn--gold {
  background: var(--gold-grad);
  color: #15100a;
  border-color: transparent;
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 36px rgba(212, 175, 55, 0.35);
}
.btn--ghost { background: transparent; color: var(--gold-light); }
.btn--ghost:hover { background: rgba(212, 175, 55, 0.1); transform: translateY(-2px); }
.btn:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold-light); outline-offset: 3px;
}
.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; box-shadow: none; }

.btn__spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(21, 16, 10, 0.3); border-top-color: #15100a;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 3rem);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__brand img {
  height: 46px; width: auto;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.nav.is-scrolled .nav__brand img { opacity: 1; transform: none; }

.nav__links { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.4rem); }
.nav__links a {
  font-size: 0.74rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-dim); transition: color 0.25s ease;
}
.nav__links a:hover { color: var(--gold-light); }
.nav__links .nav__cta {
  color: var(--gold-light);
  border: 1px solid var(--gold);
  padding: 0.65rem 1.2rem; border-radius: 2px;
  transition: background 0.3s ease, color 0.3s ease;
}
.nav__links .nav__cta:hover { background: var(--gold); color: #15100a; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 1rem) 1.25rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 105%, rgba(212, 175, 55, 0.16), transparent 70%),
    var(--bg);
}
.hero__glow {
  position: absolute; left: 50%; top: 52%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(212, 160, 55, 0.14) 0%, rgba(212, 160, 55, 0.04) 40%, transparent 65%);
  animation: glow 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.06); }
}

.hero__inner { position: relative; z-index: 2; max-width: 880px; }
.hero__logo { margin: 0 auto; width: min(560px, 86vw); }
.hero__logo img { width: 100%; height: auto; }

.flame { display: flex; justify-content: center; margin: 0.4rem 0 1.4rem; }
.flame svg { overflow: visible; filter: drop-shadow(0 0 16px rgba(246, 190, 80, 0.55)); }

/* Each layer moves on its own rhythm, pivoting from the base of the flame, so the
   motion never looks like a loop. */
.flame__outer, .flame__mid, .flame__core, .flame__blue, .flame__glow {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  will-change: transform, opacity;
}
.flame__outer { animation: flame-outer 3.1s ease-in-out infinite; }
.flame__mid   { animation: flame-mid 2.3s ease-in-out infinite; }
.flame__core  { animation: flame-core 1.7s ease-in-out infinite; }
.flame__blue  { animation: flame-blue 2.9s ease-in-out infinite; }
.flame__glow  { transform-origin: 50% 50%; animation: flame-glow 3.7s ease-in-out infinite; }

@keyframes flame-outer {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  18%      { transform: scale(0.95, 1.07) skewX(-3deg); }
  37%      { transform: scale(1.04, 0.96) skewX(2deg); }
  58%      { transform: scale(0.97, 1.09) skewX(-1.5deg); }
  79%      { transform: scale(1.03, 0.98) skewX(3deg); }
}
@keyframes flame-mid {
  0%, 100% { transform: scale(1, 1) skewX(0deg); }
  22%      { transform: scale(1.05, 0.94) skewX(2.5deg); }
  46%      { transform: scale(0.94, 1.08) skewX(-2deg); }
  71%      { transform: scale(1.03, 0.97) skewX(1.5deg); }
}
@keyframes flame-core {
  0%, 100% { transform: scale(1, 1); opacity: 1; }
  25%      { transform: scale(0.92, 1.1); opacity: 0.88; }
  50%      { transform: scale(1.06, 0.95); opacity: 1; }
  75%      { transform: scale(0.96, 1.06); opacity: 0.92; }
}
@keyframes flame-blue {
  0%, 100% { transform: scale(1, 1); opacity: 0.85; }
  40%      { transform: scale(1.12, 0.92); opacity: 1; }
  70%      { transform: scale(0.94, 1.08); opacity: 0.78; }
}
@keyframes flame-glow {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  30%      { transform: scale(1.1); opacity: 1; }
  60%      { transform: scale(0.95); opacity: 0.75; }
  80%      { transform: scale(1.06); opacity: 0.95; }
}
/* Very gentle version, used when the visitor's system asks for reduced motion */
@keyframes flame-soft {
  0%, 100% { transform: scale(1, 1); opacity: 1; }
  50%      { transform: scale(0.985, 1.03); opacity: 0.9; }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--ink);
}
.hero__title em {
  font-style: italic;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 580px; margin: 0 auto 2.4rem; font-size: 1.08rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.scroll-cue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--line); border-radius: 14px; z-index: 2;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--gold); transform: translateX(-50%);
  animation: cue 2s ease-in-out infinite;
}
@keyframes cue {
  0%   { opacity: 0; transform: translate(-50%, 0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, 16px); }
}

/* ---------- Sections ---------- */
.section { padding: clamp(5rem, 11vw, 9rem) 0; text-align: center; position: relative; }
.story { background: var(--bg-soft); border-top: 1px solid var(--line); }
.story p:not(.eyebrow):not(.lead) { font-size: 1.08rem; }

.craft { background: var(--bg); }
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
  margin-top: 1rem;
}
.pillar {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), #0a0806);
  border: 1px solid var(--line);
  padding: 2.8rem 2rem 2.4rem;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.pillar::before {
  content: ""; position: absolute; inset: 6px; border: 1px solid rgba(212, 175, 55, 0.1); pointer-events: none;
}
.pillar:hover {
  transform: translateY(-6px);
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 18px 50px rgba(212, 175, 55, 0.08);
}
.pillar__num {
  font-family: var(--font-display); font-style: italic; font-size: 1.6rem;
  color: var(--gold); margin-bottom: 0.8rem;
}
.pillar h3 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.7rem;
  margin: 0 0 0.8rem; color: var(--ink);
}
.pillar p { margin: 0; font-size: 1rem; }

/* Quote band */
.band {
  padding: clamp(4.5rem, 9vw, 7rem) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% 50%, rgba(212, 175, 55, 0.1), transparent 70%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.35; color: var(--ink);
}
.band blockquote em { color: var(--gold-light); }

/* ---------- Sign up ---------- */
.updates { background: var(--bg); }
.updates::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 50% at 50% 100%, rgba(212, 175, 55, 0.12), transparent 70%);
}
.updates .container { position: relative; }

.signup { margin-top: 2.4rem; }
.signup__row {
  display: flex; gap: 0.8rem; max-width: 640px; margin: 0 auto;
}
.signup input[type="email"] {
  flex: 1; min-width: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 1rem 1.3rem;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.3s ease, background 0.3s ease;
}
.signup input[type="email"]::placeholder { color: #9a8f7e; }
.signup input[type="email"]:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.05); }
.signup input[type="email"].is-invalid { border-color: #d46a5a; }
.signup .btn { white-space: nowrap; }

.signup__status {
  min-height: 1.6em; margin: 1.1rem 0 0.2rem; font-size: 0.98rem;
}
.signup__status.is-success { color: var(--gold-light); }
.signup__status.is-error { color: #e48c7d; }
.signup__note { font-size: 0.82rem; margin: 0.3rem 0 0; color: #9a8f7e; }

.signup.is-done .signup__row { display: none; }
.signup.is-done .signup__note { display: none; }
.signup.is-done .signup__status {
  font-family: var(--font-display); font-size: 1.7rem; line-height: 1.4; padding: 1rem 0;
}
#unsub.is-done .signup__status { font-size: 1.35rem; max-width: 620px; margin-inline: auto; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; padding: 3.5rem 1rem 2.5rem;
  border-top: 1px solid var(--line); background: var(--bg-soft);
}
.footer__logo { height: 64px; width: auto; margin: 0 auto 1rem; }
.footer p {
  margin: 0.2rem 0; font-size: 0.74rem; letter-spacing: 0.26em; text-transform: uppercase;
}
.social { display: flex; justify-content: center; gap: 1rem; margin: 1.6rem 0 0.4rem; }
.social a {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 50%; color: var(--gold);
  transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.social svg { width: 19px; height: 19px; }
.social a:hover {
  color: #15100a; background: var(--gold-grad); border-color: transparent;
  transform: translateY(-3px); box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}
.footer .footer__copy { letter-spacing: 0.08em; text-transform: none; color: #6f6659; margin-top: 1rem; }

/* ---------- Footer links / legal pages ---------- */
.footer__links a, .signup__note a, .legal a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.45);
  text-underline-offset: 3px;
  transition: color 0.25s ease, text-decoration-color 0.25s ease;
}
.footer__links a:hover, .signup__note a:hover, .legal a:hover { color: #fff; text-decoration-color: var(--gold); }
.footer .footer__links { margin-top: 1.2rem; }

.nav--solid {
  background: rgba(5, 4, 3, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav--solid .nav__brand img { opacity: 1; transform: none; }

.legal { padding: calc(var(--nav-h) + 4rem) 0 5rem; background: var(--bg); text-align: left; }
.legal .eyebrow, .legal .section__title, .legal .legal__meta { text-align: center; }
.legal .section__title { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.legal__meta { font-size: 0.9rem; margin: 0 0 2.5rem; color: #9a8f7e; }
.legal .lead { font-size: clamp(1.35rem, 2.6vw, 1.7rem); color: var(--ink); }
.legal--center { text-align: center; min-height: 70vh; }
.legal--center p { text-align: center; }
.signup__status.is-info { color: var(--gold-light); }
.legal h2 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.9rem;
  color: var(--gold-light); margin: 2.8rem 0 0.8rem; line-height: 1.2;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
}
.legal h3 {
  font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin: 1.6rem 0 0.4rem;
}
.legal p, .legal li { font-size: 1.02rem; }
.legal ul { padding-left: 1.2rem; color: var(--ink-dim); }
.legal li { margin: 0.4rem 0; }
.legal li::marker { color: var(--gold); }
.legal strong { color: var(--ink); font-weight: 500; }

/* ---------- Embers ---------- */
.embers { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ember {
  position: absolute; bottom: -12px; border-radius: 50%;
  background: radial-gradient(circle, #fff1b8 0%, #d4af37 55%, transparent 70%);
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  10%  { opacity: var(--o, 0.6); }
  100% { transform: translate3d(var(--drift, 30px), -105vh, 0); opacity: 0; }
}
main, .footer { position: relative; z-index: 2; }
.nav { z-index: 50; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease, transform 1s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: 0.1s; }
.hero .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero .reveal:nth-child(4) { transition-delay: 0.4s; }
.hero .reveal:nth-child(5) { transition-delay: 0.55s; }
.hero .reveal:nth-child(6) { transition-delay: 0.7s; }
.pillars .reveal:nth-child(2) { transition-delay: 0.15s; }
.pillars .reveal:nth-child(3) { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  :root { --nav-h: 64px; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__brand img { height: 38px; }
  .signup__row { flex-direction: column; }
  .btn { width: 100%; }
  .hero__actions .btn { width: min(320px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .embers { display: none; }

  /* The candle flame is the brand's centerpiece and only ~50px wide, so it keeps a very
     subtle flicker (no sway, no large movement) even when reduced motion is requested. */
  .flame__outer, .flame__mid, .flame__core, .flame__blue, .flame__glow {
    animation: flame-soft 3.2s ease-in-out infinite !important;
  }
  .flame__mid  { animation-duration: 2.6s !important; }
  .flame__core { animation-duration: 2.1s !important; }
}
