/* ============================================================
   CHERIEL — Modern Angelic Luxury (mobile-first)
   The hero stage is position:fixed; inset:0 so it ALWAYS matches the
   visible screen size — including when the mobile browser toolbar
   hides/shows (which a clamped 100svh sticky would not track).
   ============================================================ */

@import url("../fonts/fonts.css");

:root {
  --gold: #C9A962;
  --navy: #0D1B2A;
  --rose: #B76E79;
  --cream: #FAF7F2;
  --charcoal: #2D2D2D;
  --seam: #bdb3ab;
  --line: rgba(13, 27, 42, 0.12);

  --serif: "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --pad: clamp(1.25rem, 6vw, 3rem);
  --nav-h: 4rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
em { font-style: italic; }
.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;
}

/* ---------- HEADER (always on top) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad); height: var(--nav-h);
  color: #fff;
  mix-blend-mode: difference;
  transition: transform .5s ease;
}
.site-header.is-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: .55rem; }
.brand-mark { width: 1.25rem; height: 1.25rem; color: var(--gold); }
.brand-word {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .28em;
  font-weight: 500; color: #fff;
}
.site-nav { display: flex; align-items: center; gap: 1rem; font-size: .68rem; }
.site-nav a {
  letter-spacing: .16em; text-transform: uppercase; color: #fff; opacity: .85;
  transition: opacity .3s;
}
.site-nav a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid rgba(255,255,255,.55); padding: .45rem .8rem; border-radius: 2rem;
  letter-spacing: .18em !important;
}
@media (max-width: 560px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- HERO FILM ---------- */
/* .hero is the scroll driver (tall) that produces the scrub distance. */
.hero { position: relative; height: 580vh; z-index: 1; }
/* The STAGE is position:fixed; inset:0 — it always equals the visible screen,
   auto-resizing when the mobile toolbar hides/shows. No svh clamp. z-index 1
   keeps it BEHIND the content sections (z 2) so the finale rises up over it. */
.hero-sticky {
  position: fixed; inset: 0; z-index: 1;
  overflow: hidden; background: var(--cream);
}
#heroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; background: var(--cream);
}
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(10,18,32,.25) 100%),
    linear-gradient(180deg, rgba(10,18,32,.35) 0%, transparent 22%),
    linear-gradient(0deg, rgba(10,18,32,.5) 0%, transparent 24%);
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* text overlay */
.hero-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; color: #fff; padding-bottom: clamp(3rem, 12vh, 7rem);
  padding-inline: var(--pad);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .42em;
  text-transform: uppercase; opacity: 0;
}
.hero-word {
  font-family: var(--serif); font-weight: 500; font-size: clamp(3.2rem, 17vw, 9rem);
  letter-spacing: .22em; line-height: .95;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.hero-tag {
  font-family: var(--serif); font-size: clamp(1.05rem, 4.6vw, 1.6rem);
  font-weight: 300; letter-spacing: .12em; margin-top: .9rem; opacity: 0;
}
.hero-tag em { color: var(--gold); }
.hero-cta {
  pointer-events: auto;
  margin-top: 2.2rem; opacity: 0; transform: translateY(10px);
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .22em;
  text-transform: uppercase; color: #fff;
  border: 1px solid rgba(255,255,255,.6); border-radius: 2rem;
  padding: .9rem 1.6rem; transition: background .35s, color .35s, border-color .35s;
}
.hero-cta:hover { background: var(--gold); color: #0D1B2A; border-color: var(--gold); }
.cta-arrow { transition: transform .3s; }
.hero-cta:hover .cta-arrow { transform: translateY(3px); }

.hero-scrollhint {
  position: absolute; left: 50%; bottom: 1.4rem; transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255,255,255,.7); font-family: var(--sans); font-size: .55rem;
  letter-spacing: .3em; text-transform: uppercase; pointer-events: none;
}
.hero-scrollhint .line {
  width: 1px; height: 2.2rem; background: linear-gradient(rgba(255,255,255,.8), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100% { transform: scaleY(.4); opacity:.4 } 50% { transform: scaleY(1); opacity:.9 } }

/* ---------- SECTION BASE (rise above the fixed stage) ---------- */
.section { position: relative; z-index: 2; padding: clamp(4rem, 14vh, 8rem) var(--pad); background: var(--cream); }
.kicker {
  font-family: var(--sans); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 1.1rem;
}
.section-title {
  font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 10vw, 4.2rem);
  line-height: 1.02; color: var(--navy);
}
.section-title em { color: var(--gold); }
.section-sub { margin-top: 1.1rem; max-width: 34ch; color: var(--charcoal); font-size: .95rem; }

/* ---------- COLLECTION ---------- */
.collection { padding-bottom: 2rem; }
.carousel-wrap { margin-top: 2.5rem; overflow: hidden; }
.carousel {
  display: flex; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 1rem; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 74%; max-width: 300px; scroll-snap-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 1.1rem; overflow: hidden;
  box-shadow: 0 24px 50px -30px rgba(13,27,42,.35);
}
.card-media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--cream); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 1.1rem 1.2rem 1.3rem; }
.card-name { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-weight: 500; }
.card-desc { font-size: .82rem; color: #666; margin-top: .3rem; }
.card-mat {
  display: inline-block; margin-top: .8rem; font-size: .6rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,169,98,.5);
  padding: .3rem .7rem; border-radius: 2rem;
}
.carousel-hint {
  text-align: center; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase;
  color: #999; margin-top: .6rem;
}
.carousel-cta { text-align: center; margin-top: 2.4rem; }
.btn-enquire {
  display: inline-block; font-family: var(--sans); font-size: .7rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--navy); border-bottom: 1px solid var(--gold);
  padding-bottom: .4rem; transition: color .3s;
}
.btn-enquire span { color: var(--gold); }
.btn-enquire:hover { color: var(--gold); }

/* ---------- STORY ---------- */
.story { background: var(--navy); color: #F5F5F5; }
.story .kicker { color: var(--gold); }
.story .section-title { color: #F5F5F5; }
.story .section-title em { color: var(--gold); }
.story-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.story-body {
  margin: 1.6rem auto 0; line-height: 1.8;
  color: rgba(245,245,245,.82); font-family: var(--serif); font-size: 1.25rem;
}
.story-body em { color: var(--gold); }
.story-facts {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: flex; justify-content: center; gap: clamp(1rem, 8vw, 2.5rem);
  flex-wrap: wrap;
}
.story-facts li { display: flex; flex-direction: column; align-items: center; gap: .4rem; min-width: 7rem; }
.fact-val { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.fact-label { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(245,245,245,.5); }

/* ---------- PHILOSOPHY ---------- */
.philosophy { background: var(--cream); }
.values { display: flex; flex-direction: column; gap: 1.4rem; margin-top: 2.6rem; }
.value {
  padding: 1.6rem 1.4rem; border: 1px solid var(--line); border-radius: 1rem;
  background: #fff; position: relative; overflow: hidden;
}
.value::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform .6s ease;
}
.value:hover::after { transform: scaleY(1); }
.value-num { font-family: var(--serif); font-size: 1rem; color: var(--gold); letter-spacing: .1em; }
.value h3 { font-family: var(--serif); font-size: 1.5rem; color: var(--navy); margin-top: .4rem; }
.value p { color: #666; font-size: .85rem; margin-top: .3rem; }

/* ---------- JOIN / CTA ---------- */
.join { background: linear-gradient(180deg, var(--cream) 0%, #f0e9de 100%); }
.join-inner { max-width: 520px; margin: 0 auto; text-align: center; }
.newsletter {
  display: flex; gap: 0; margin: 2.2rem auto 0; max-width: 420px;
  border-bottom: 1px solid var(--navy); padding-bottom: .2rem; align-items: center;
}
.newsletter input {
  flex: 1; border: none; background: transparent; font-family: var(--serif);
  font-size: 1.15rem; color: var(--navy); padding: .6rem 0; outline: none;
}
.newsletter input::placeholder { color: #b0a893; }
.newsletter button {
  border: none; background: transparent; cursor: pointer; font-family: var(--sans);
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold);
  padding: .6rem .4rem .6rem .8rem; transition: color .3s;
}
.newsletter button:hover { color: var(--navy); }
.join-confirm { margin-top: 1.4rem; color: var(--navy); font-family: var(--serif); font-size: 1.2rem; }

/* ---------- FOOTER (above stage) ---------- */
.footer {
  position: relative; z-index: 2;
  background: var(--navy); color: rgba(245,245,245,.75); padding: 3.2rem var(--pad) 2.4rem;
  text-align: center;
}
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; color: #fff; }
.footer-brand .brand-mark { width: 1.1rem; height: 1.1rem; }
.footer-brand span { font-family: var(--serif); letter-spacing: .26em; font-size: 1.1rem; }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.6rem;
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
}
.footer-nav a { color: rgba(245,245,245,.7); transition: color .3s; }
.footer-nav a:hover { color: var(--gold); }
.footer-social { display: flex; justify-content: center; gap: 1rem; margin-top: 1.8rem; }
.footer-social a { width: 2.3rem; height: 2.3rem; display: grid; place-items: center; color: rgba(245,245,245,.7); transition: color .3s, transform .3s; }
.footer-social a:hover { color: var(--gold); transform: translateY(-2px); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-legal { margin-top: 2.2rem; font-size: .72rem; }
.footer-tagline { font-family: var(--serif); font-style: italic; color: var(--gold); margin-bottom: .5rem; }
.footer-legal p { margin: .2rem 0; }
.footer-legal a { color: rgba(245,245,245,.5); }

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero { height: 100vh; }
  .hero-word, .hero-tag, .hero-eyebrow, .hero-cta, .hero-scrollhint { opacity: 1 !important; }
  .hero-scrollhint { display: none; }
  .cta-arrow, .hero-scrollhint .line { animation: none; }
}

/* ---------- desktop ---------- */
@media (min-width: 820px) {
  .carousel { overflow: hidden; gap: 1.6rem; }
  .card { flex: 0 0 calc((100% - 4.8rem) / 4); max-width: none; }
  .values { flex-direction: row; gap: 1.4rem; }
  .value { flex: 1; }
  .hero-word { font-size: clamp(6rem, 14vw, 11rem); }
  .site-nav { font-size: .72rem; }
}
@media (min-width: 820px) and (max-width: 1080px) {
  .site-nav { gap: 1.4rem; }
  .site-nav a { letter-spacing: .12em; }
}
