/* ── Méli · botanical beauty brand · bright + chic ──────────────────────── */
:root {
  --white: #FFFFFF;
  --paper: #FBF9F4;
  --ink: #0F0F0E;
  --ink-2: #353433;
  --ink-3: #6B6864;
  --coral: #F26E5C;
  --coral-deep: #D9472F;
  --butter: #FFD66B;
  --sage: #B0CFB7;
  --sage-deep: #6E9978;
  --rule: rgba(15,15,14,0.10);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-luxury: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.font-display { font-family: 'DM Serif Display', 'Times New Roman', serif; }
.font-body    { font-family: 'DM Sans', sans-serif; }

/* Demo banner */
.m-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink); color: var(--white);
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 8px 16px; text-align: center; font-weight: 500;
}
.m-banner a { color: var(--white); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.4); text-underline-offset: 4px; }
.m-banner a:hover { text-decoration-color: var(--white); }

/* Scroll progress */
.m-progress {
  position: fixed; top: 32px; left: 0; height: 2px;
  background: var(--coral); z-index: 90;
  width: 0%; transition: width 0.1s linear;
}

main { padding-top: 36px; position: relative; z-index: 2; }

/* Sticky nav */
.m-nav {
  position: sticky; top: 36px; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.m-nav-inner {
  max-width: 1320px; margin: 0 auto;
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.m-brand {
  font-family: 'DM Serif Display', serif;
  font-size: 28px; font-weight: 400; letter-spacing: -0.5px;
  color: var(--ink); text-decoration: none;
  font-style: italic;
}
.m-brand .dot { color: var(--coral); }
.m-nav-links { display: none; gap: 38px; }
@media (min-width: 800px) { .m-nav-links { display: flex; } }
.m-nav-links a {
  position: relative;
  font-size: 13px; letter-spacing: 0.04em; text-transform: none;
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  transition: color 0.3s var(--ease);
  padding: 4px 0;
}
.m-nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s var(--ease-luxury);
}
.m-nav-links a:hover::after, .m-nav-links a.active::after {
  transform: scaleX(1); transform-origin: left;
}
.m-nav-links a:hover, .m-nav-links a.active { color: var(--ink); }
.m-nav-cta {
  background: var(--coral); color: var(--white);
  padding: 12px 24px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  text-decoration: none;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.m-nav-cta:hover { background: var(--coral-deep); transform: translateY(-2px); }

/* Sections */
.m-section { padding: 110px 32px; position: relative; }
@media (min-width: 800px) { .m-section { padding: 150px 64px; } }
.m-container { max-width: 1320px; margin: 0 auto; }
.m-narrow { max-width: 820px; margin: 0 auto; }
.m-wide { max-width: 1480px; margin: 0 auto; }

/* Eyebrow */
.m-eyebrow {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--coral); font-weight: 500;
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 12px;
}
.m-eyebrow::before {
  content: "✿"; font-size: 14px;
}

/* Display type */
.m-display {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ink);
}
.m-display em { font-style: italic; color: var(--coral); }
.m-display .sage { color: var(--sage-deep); font-style: italic; }
.m-h1 { font-size: clamp(56px, 11vw, 180px); }
.m-h2 { font-size: clamp(44px, 7vw, 110px); line-height: 1.0; }
.m-h3 { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.05; }
.m-lede {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  font-weight: 400;
  max-width: 56ch;
}

/* Buttons */
.m-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.4s var(--ease-luxury);
  position: relative; overflow: hidden;
}
.m-btn-coral { background: var(--coral); color: var(--white); }
.m-btn-coral:hover { background: var(--coral-deep); transform: translateY(-2px); }
.m-btn-ink { background: var(--ink); color: var(--white); }
.m-btn-ink:hover { background: var(--ink-2); transform: translateY(-2px); }
.m-btn-ghost { color: var(--ink); border: 1.5px solid var(--ink); background: transparent; }
.m-btn-ghost:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

/* Hero */
.m-hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 32px 80px;
  overflow: hidden;
  background: var(--white);
}
@media (min-width: 800px) { .m-hero { padding: 0 64px 110px; } }
.m-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.m-hero-bg video, .m-hero-bg img {
  width: 100%; height: 100%; object-fit: cover;
  animation: m-kenburns 28s var(--ease-luxury) infinite alternate;
}
@keyframes m-kenburns {
  0%   { transform: scale(1.0)  translate(0, 0); }
  100% { transform: scale(1.06) translate(-1%, 1%); }
}
.m-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 60%, rgba(255,255,255,0.92) 100%);
}
.m-hero-content {
  position: relative; z-index: 10;
  max-width: 1320px; width: 100%; margin: 0 auto;
}

/* Floating colour orbs as decoration */
.m-orb {
  position: absolute; border-radius: 50%;
  filter: blur(40px); opacity: 0.55;
  pointer-events: none; z-index: 0;
}
.m-orb-coral { background: var(--coral); }
.m-orb-butter { background: var(--butter); }
.m-orb-sage { background: var(--sage); }

/* Reveal animations */
.m-reveal-word {
  display: inline-block; margin-right: 0.18em;
  opacity: 0; transform: translateY(40px);
  filter: blur(8px);
  transition: opacity 1.0s var(--ease-luxury), transform 1.0s var(--ease-luxury), filter 1.0s var(--ease-luxury);
}
.m-reveal-word.in { opacity: 1; transform: translateY(0); filter: blur(0); }

.m-reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.95s var(--ease-luxury), transform 0.95s var(--ease-luxury);
}
.m-reveal.in { opacity: 1; transform: translateY(0); }
.m-reveal.delay-1 { transition-delay: 0.12s; }
.m-reveal.delay-2 { transition-delay: 0.24s; }
.m-reveal.delay-3 { transition-delay: 0.36s; }

.m-img-reveal { overflow: hidden; }
.m-img-reveal img, .m-img-reveal video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1; transform: scale(1);
  transition: opacity 1.2s var(--ease-luxury), transform 1.6s var(--ease-luxury);
}
body.m-js .m-img-reveal:not(.in) img,
body.m-js .m-img-reveal:not(.in) video {
  opacity: 0; transform: scale(1.08);
}

/* Product card */
.m-product-card {
  display: flex; flex-direction: column; gap: 18px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.5s var(--ease-luxury);
}
.m-product-card:hover { transform: translateY(-4px); }
.m-product-image {
  aspect-ratio: 4/5; overflow: hidden;
  border-radius: 8px;
  background: var(--paper);
}
.m-product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease-luxury);
}
.m-product-card:hover .m-product-image img { transform: scale(1.06); }
.m-product-tag {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral); font-weight: 500;
}
.m-product-title {
  font-family: 'DM Serif Display', serif; font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.1;
  margin: 6px 0 4px;
}
.m-product-price {
  color: var(--ink-2); font-size: 14px; font-weight: 500;
}

/* Marquee */
.m-marquee {
  background: var(--coral);
  color: var(--white);
  overflow: hidden;
  padding: 26px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}
.m-marquee-track {
  display: flex; gap: 60px;
  animation: m-marquee-scroll 28s linear infinite;
  white-space: nowrap;
}
@keyframes m-marquee-scroll {
  to { transform: translateX(-50%); }
}
.m-marquee-item {
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: clamp(28px, 3.2vw, 48px);
  display: inline-flex; align-items: center; gap: 60px;
  font-weight: 400;
}
.m-marquee-item::after {
  content: "✿"; color: var(--butter); font-size: 22px;
}

/* Tile section / values */
.m-values {
  display: grid; grid-template-columns: 1fr; gap: 28px;
}
@media (min-width: 800px) { .m-values { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.m-value-card {
  padding: 38px 32px;
  background: var(--paper);
  border-radius: 16px;
  position: relative; overflow: hidden;
}
.m-value-card.coral { background: var(--coral); color: var(--white); }
.m-value-card.butter { background: var(--butter); color: var(--ink); }
.m-value-card.sage { background: var(--sage); color: var(--ink); }
.m-value-icon {
  font-family: 'DM Serif Display', serif; font-style: italic;
  font-size: 48px; line-height: 1; margin-bottom: 24px;
}
.m-value-title {
  font-family: 'DM Serif Display', serif; font-size: 28px;
  margin: 0 0 14px;
}
.m-value-body { font-size: 15px; line-height: 1.6; opacity: 0.85; }

/* Footer */
.m-footer {
  background: var(--ink); color: var(--white);
  padding: 80px 32px 40px;
}
@media (min-width: 800px) { .m-footer { padding: 110px 64px 50px; } }
.m-footer-inner { max-width: 1320px; margin: 0 auto; }
.m-footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 50px;
  margin-bottom: 70px;
}
@media (min-width: 800px) { .m-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.m-footer h4 {
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--coral); margin: 0 0 18px; font-weight: 500;
}
.m-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.m-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 14px; transition: color 0.3s var(--ease); }
.m-footer a:hover { color: var(--coral); }
.m-footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-direction: column; gap: 12px;
  font-size: 12px; color: rgba(255,255,255,0.45);
}
@media (min-width: 800px) { .m-footer-bottom { flex-direction: row; justify-content: space-between; } }
.m-footer-bottom a { color: rgba(255,255,255,0.65); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.3); text-underline-offset: 4px; }

/* Newsletter strip */
.m-newsletter {
  background: var(--butter); color: var(--ink);
  padding: 70px 32px;
  text-align: center;
}
.m-newsletter h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 400; margin: 0 0 16px; line-height: 1.0;
  letter-spacing: -0.02em;
}
.m-newsletter h2 em { color: var(--coral); }
.m-newsletter-form {
  display: flex; gap: 8px; max-width: 480px; margin: 28px auto 0;
  background: var(--white); padding: 6px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.m-newsletter-form input {
  flex: 1; border: 0; background: transparent;
  padding: 12px 18px; font: inherit; font-size: 15px;
  color: var(--ink); border-radius: 999px;
}
.m-newsletter-form input:focus { outline: none; }
.m-newsletter-form button {
  background: var(--ink); color: var(--white);
  border: 0; padding: 12px 22px;
  font: inherit; font-size: 14px; font-weight: 500;
  border-radius: 999px; cursor: pointer;
  transition: background 0.3s var(--ease);
}
.m-newsletter-form button:hover { background: var(--coral); }
