/* ════════════════════════════════════════════════════════════
   LE ARDOR · maison noir
   warm black · champagne gold · ivory
   ════════════════════════════════════════════════════════════ */

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

:root {
  --noir:        #070504;
  --noir-soft:   #0d0a07;
  --gold:        #c9a227;
  --gold-bright: #e8c96a;
  --gold-faint:  rgba(201, 162, 39, 0.14);
  --gold-mid:    rgba(201, 162, 39, 0.45);
  --gold-strong: rgba(232, 201, 106, 0.92);
  --ivory:       #f5efe4;
  --ivory-dim:   rgba(245, 239, 228, 0.55);
  --ivory-faint: rgba(245, 239, 228, 0.28);

  --display: 'Italiana', serif;
  --poem:    'Cormorant Garamond', serif;
  --ui:      'Jost', sans-serif;
}

html { scroll-behavior: auto; }

body {
  background: var(--noir);
  color: var(--ivory);
  font-family: var(--ui);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--noir); }

a { color: inherit; text-decoration: none; }

.eyebrow {
  display: block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 22px;
}

/* ─────────────── LOADING VEIL ─────────────── */

#veil {
  position: fixed; inset: 0;
  background: var(--noir);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 28px;
  z-index: 9999;
  transition: opacity 1.1s ease;
}
#veil.lift { opacity: 0; pointer-events: none; }

.veil-mark { text-align: center; }

.veil-eyebrow {
  display: block;
  font-size: 10px; letter-spacing: 0.5em; text-transform: uppercase;
  color: var(--ivory-faint);
  margin-bottom: 18px;
}

.veil-title {
  font-family: var(--display);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 400;
  letter-spacing: 0.32em;
  margin-right: -0.32em; /* optical centering */
  color: var(--gold-strong);
  background: linear-gradient(100deg, var(--gold) 20%, var(--gold-bright) 40%, var(--gold) 60%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.veil-bar {
  width: 220px; height: 1px;
  background: var(--gold-faint);
  overflow: hidden;
}
.veil-bar-fill {
  height: 100%; width: 0%;
  background: var(--gold);
  transition: width 0.15s linear;
}

.veil-label {
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ─────────────── FIXED CHROME ─────────────── */

#site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  z-index: 300;
  background: linear-gradient(to bottom, rgba(7,5,4,0.65), transparent);
  transition: height 0.5s ease, background 0.5s ease, backdrop-filter 0.5s ease;
}
#site-header.is-scrolled {
  height: 58px;
  background: rgba(7,5,4,0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}

.wordmark {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.34em;
  color: var(--gold-strong);
}

.site-nav { display: flex; gap: clamp(18px, 3vw, 40px); }
.site-nav a {
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--ivory-dim);
  transition: color 0.35s;
}
.site-nav a:hover { color: var(--gold-bright); }

#scroll-rail {
  position: fixed; top: 0; right: 0;
  width: 2px; height: 100vh;
  background: var(--gold-faint);
  z-index: 250;
}
#scroll-rail-fill {
  width: 100%; height: 0%;
  background: var(--gold-mid);
}

/* ─────────────── ACT I · THE FILM ─────────────── */

#hero { height: 700vh; position: relative; }

#hero-sticky {
  position: sticky; top: 0;
  width: 100%; height: 100vh;
  overflow: hidden;
}

#film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}

#film-src { display: none; }

.film-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 42%, rgba(7,5,4,0.55) 100%),
    linear-gradient(to bottom, rgba(7,5,4,0.35), transparent 18%, transparent 82%, rgba(7,5,4,0.5));
  pointer-events: none;
}

/* overlays */

.ov {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
  text-shadow: 0 0 50px rgba(7,5,4,0.85), 0 0 110px rgba(7,5,4,0.6);
  padding: 0 6vw;
}
.ov.live { pointer-events: auto; }

.ov-eyebrow {
  font-size: 11px; letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--ivory-dim);
  margin-bottom: 26px;
}

.ov-display {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(58px, 10vw, 148px);
  letter-spacing: 0.28em;
  margin-right: -0.28em;
  color: var(--gold-strong);
  line-height: 1;
}

.ov-whisper {
  font-family: var(--poem);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(19px, 2.2vw, 28px);
  letter-spacing: 0.14em;
  color: var(--ivory-dim);
  margin-top: 26px;
}

.ov-poem p {
  font-family: var(--poem);
  font-weight: 300;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.45;
  color: var(--ivory);
}
.ov-poem .ov-place { color: var(--gold-strong); font-style: italic; }

.ov-poem .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  transition: opacity 0.5s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ov.on .w { opacity: 1; transform: translateY(0); }

/* the pyramid */
.ov-notes { flex-direction: row; gap: clamp(34px, 8vw, 130px); align-items: center; }

.note { display: flex; flex-direction: column; gap: 14px; }

.note-tier {
  font-family: var(--poem);
  font-style: italic;
  font-size: clamp(15px, 1.6vw, 21px);
  color: var(--gold-mid);
}
.note-tier::after {
  content: "";
  display: block;
  width: 38px; height: 1px;
  margin: 14px auto 0;
  background: var(--gold-mid);
}

.note-name {
  font-size: clamp(12px, 1.3vw, 15px);
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory);
}

.note {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ov.on .note { opacity: 1; transform: translateY(0); }
.ov.on .note:nth-child(2) { transition-delay: 0.18s; }
.ov.on .note:nth-child(3) { transition-delay: 0.36s; }

/* invitation */
.ov-link {
  margin-top: 30px;
  font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-strong);
  border: 1px solid var(--gold-mid);
  padding: 16px 44px;
  transition: background 0.4s, color 0.4s;
}
.ov-link:hover { background: var(--gold); color: var(--noir); }
.ov-link .arrow { display: inline-block; animation: drift 2.2s ease-in-out infinite; }
@keyframes drift { 50% { transform: translateY(5px); } }

/* ─────────────── SHARED SECTION STYLE ─────────────── */

section { position: relative; }

.section-head { text-align: center; }

#collection h2, #ceremony h2 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(36px, 5.4vw, 72px);
  letter-spacing: 0.1em;
  color: var(--ivory);
}
#collection h2 em, #ceremony h2 em {
  font-family: var(--poem);
  font-style: italic;
  color: var(--gold-strong);
  letter-spacing: 0.02em;
}

/* scroll reveal */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.9s ease, transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─────────────── ACT II · COLLECTION ─────────────── */

#collection {
  padding: clamp(110px, 14vw, 190px) clamp(20px, 5vw, 70px);
  background:
    radial-gradient(900px 480px at 50% -5%, rgba(201,162,39,0.07), transparent 70%),
    var(--noir);
}

.shelf {
  margin-top: clamp(60px, 7vw, 100px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.5vw, 34px);
  max-width: 1180px;
  margin-inline: auto;
}
@media (max-width: 1020px) { .shelf { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .shelf { grid-template-columns: 1fr; } }

/* per-scent themed card — colour comes from each card's --accent / --glow */
.vessel {
  --accent: var(--gold-bright);
  --glow: rgba(201,162,39,0.26);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  background:
    radial-gradient(135% 58% at 50% 0%, var(--glow), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.018), transparent 32%),
    #0a0806;
  padding-bottom: clamp(22px, 2.4vw, 30px);
  transition: transform 0.6s cubic-bezier(0.16,1,0.3,1), box-shadow 0.6s ease;
}
.vessel:hover {
  transform: translateY(-9px);
  box-shadow: 0 28px 64px -22px var(--glow);
}

.vessel-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 9px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--noir);
  background: var(--accent);
  padding: 6px 12px;
  z-index: 4;
}

.vessel-figure {
  position: relative;
  aspect-ratio: 4 / 5;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 4px;
  overflow: hidden;
  /* bottle melts into the card toward the bottom */
  -webkit-mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
  mask-image: linear-gradient(180deg, #000 74%, transparent 99%);
}
.vessel-figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.3s cubic-bezier(0.16,1,0.3,1);
}
.vessel:hover .vessel-figure img { transform: scale(1.05); }

/* graceful placeholder when image missing */
.vessel-ghost { display: none; }
.vessel-figure.empty .vessel-ghost {
  display: block;
  width: 46%;
  color: var(--accent);
  filter: drop-shadow(0 0 26px var(--glow));
}

/* real applied label on the glass — cityscape + wordmark + scent */
.bottle-label {
  position: absolute;
  left: 50%; top: 57%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 30%;
  padding: 7px 6px 8px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(158deg, rgba(244,237,224,0.95) 0%, rgba(228,217,197,0.93) 100%);
  border: 1px solid rgba(96, 72, 30, 0.32);
  box-shadow: 0 4px 13px rgba(0,0,0,0.42);
  border-radius: 1.5px;
}
.bl-city {
  width: 86%;
  opacity: 0.78;
  mix-blend-mode: multiply;
  margin-bottom: 1px;
}
.bl-brand {
  font-family: var(--poem);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(10px, 0.95vw, 13px);
  letter-spacing: 0.01em;
  color: #211811;
  line-height: 1;
}
.bl-name {
  position: relative;
  margin-top: 4px;
  padding-top: 4px;
  font-size: 5.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #715420;
  white-space: nowrap;
}
.bl-name::before {
  content: "";
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 1px;
  background: rgba(96, 72, 30, 0.5);
}
/* tiny screens: keep label legible */
@media (max-width: 580px) { .bottle-label { width: 40%; } }

.vessel-meta {
  padding: 0 clamp(22px, 2.2vw, 32px);
  margin-top: -8px;
}

.vessel-meta h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 2.8vw, 40px);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}

.vessel-kind {
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory-faint);
  margin: 14px 0 18px;
}

.vessel-notes {
  font-family: var(--poem);
  font-style: italic;
  font-size: 16.5px;
  color: var(--ivory-dim);
  line-height: 1.55;
  margin-bottom: 24px;
  min-height: 3em;
}

.vessel-cta {
  display: block;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.16);
  padding: 15px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory);
  transition: background 0.45s ease, color 0.45s ease, border-color 0.45s ease;
}
.vessel-cta span { color: var(--accent); transition: color 0.45s ease; }
.vessel-cta:hover { background: var(--accent); color: #0a0806; border-color: var(--accent); }
.vessel-cta:hover span { color: #0a0806; }

.vessel-foot {
  margin-top: 16px;
  font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ivory-faint);
}

/* ─────────────── ACT III · MAISON ─────────────── */

#story {
  padding: clamp(110px, 14vw, 200px) clamp(20px, 5vw, 70px);
  background: var(--noir-soft);
  border-top: 1px solid rgba(201,162,39,0.12);
  border-bottom: 1px solid rgba(201,162,39,0.12);
}

.story-rule {
  position: absolute; top: 0; left: 50%;
  width: 1px; height: clamp(60px, 8vw, 110px);
  background: linear-gradient(to bottom, var(--gold-mid), transparent);
}

.story-grid {
  max-width: 1180px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}

.story-quote {
  font-family: var(--poem);
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.4;
  color: var(--ivory);
}
.story-quote em { color: var(--gold-strong); }

.story-body p {
  font-size: 15.5px; font-weight: 300;
  line-height: 1.95;
  color: var(--ivory-dim);
  margin-bottom: 22px;
  max-width: 46ch;
}

.story-sig {
  display: flex; align-items: center; gap: 18px;
  margin-top: 34px;
  font-size: 10px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-mid);
}
.sig-line { width: 54px; height: 1px; background: var(--gold-mid); }

/* ─────────────── ACT IV · CEREMONY ─────────────── */

#ceremony {
  padding: clamp(120px, 15vw, 210px) 24px;
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% 110%, rgba(201,162,39,0.08), transparent 70%),
    var(--noir);
}

.ceremony-sub {
  font-family: var(--poem);
  font-style: italic;
  font-size: 19px;
  color: var(--ivory-dim);
  margin: 22px 0 46px;
}

.ceremony-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gold-mid);
}
.ceremony-form input {
  flex: 1;
  background: transparent; border: 0; outline: 0;
  font-family: var(--ui); font-weight: 300;
  font-size: 14px; letter-spacing: 0.08em;
  color: var(--ivory);
  padding: 16px 4px;
}
.ceremony-form input::placeholder { color: var(--ivory-faint); }
.ceremony-form button {
  background: transparent; border: 0; cursor: pointer;
  font-family: var(--ui);
  font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold-strong);
  padding: 0 8px;
  transition: color 0.3s;
}
.ceremony-form button:hover { color: var(--gold-bright); }
.ceremony-form .done { display: none; }
.ceremony-form.sent .default { display: none; }
.ceremony-form.sent .done { display: inline; color: var(--gold-bright); }

/* ─────────────── FOOTER ─────────────── */

footer {
  padding: 90px 24px 56px;
  text-align: center;
  border-top: 1px solid rgba(201,162,39,0.12);
}

footer .wordmark { font-size: 21px; }

.footer-line {
  margin-top: 20px;
  font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ivory-faint);
}

.footer-nav {
  margin-top: 30px;
  display: flex; justify-content: center; gap: 16px;
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--ivory-dim);
}
.footer-nav a:hover { color: var(--gold-bright); }
.footer-nav span { color: var(--gold-mid); }

.footer-copy {
  margin-top: 44px;
  font-family: var(--poem);
  font-style: italic;
  font-size: 14px;
  color: var(--ivory-faint);
}

/* ─────────────── CUSTOM CURSOR ─────────────── */

#cursor-dot, #cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 9500;
  will-change: transform;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold-bright);
  transition: opacity 0.3s ease;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold-mid);
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.4s ease;
}
#cursor-dot.on, #cursor-ring.on { opacity: 1; }
#cursor-ring.hover { width: 58px; height: 58px; border-color: var(--gold-bright); }
#cursor-dot.hover { opacity: 0; }

body.cursor-on { cursor: none; }
body.cursor-on a,
body.cursor-on button,
body.cursor-on .ov-link { cursor: none; }
body.cursor-on input { cursor: text; }

/* ─────────────── GRAIN ─────────────── */

#grain {
  position: fixed; inset: -50%;
  width: 200%; height: 200%;
  pointer-events: none;
  z-index: 9000;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='2'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-3%,2%); }
  40% { transform: translate(2%,-3%); }
  60% { transform: translate(-2%,-2%); }
  80% { transform: translate(3%,3%); }
}

/* ─────────────── RESPONSIVE ─────────────── */

@media (max-width: 860px) {
  #hero { height: 500vh; }
  .ov-notes { flex-direction: column; align-items: center; gap: 34px; }
  .story-grid { grid-template-columns: 1fr; text-align: center; }
  .story-body p { margin-inline: auto; }
  .story-sig { justify-content: center; }
  .site-nav a:nth-child(2) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .ov-poem .w, .note { opacity: 1 !important; transform: none !important; }
}
