/* ============================================================
   EXUDE — home.css
   Home page only: hero, scent notes, featured grid,
   brand story, testimonials, newsletter.
   ============================================================ */

/* ---------- 1. HERO ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--ivory);
  text-align: center;
}

.hero__media {
  position: absolute;
  inset: -8% 0;
  z-index: 0;
  overflow: hidden;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
  filter: saturate(0.85) contrast(1.05);
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(10, 10, 10, 0.45) 0%,
      rgba(10, 10, 10, 0.18) 35%,
      rgba(10, 10, 10, 0.55) 100%
    ),
    radial-gradient(
      circle at 50% 45%,
      rgba(10, 10, 10, 0) 20%,
      rgba(10, 10, 10, 0.5) 100%
    );
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-3xl);
}

.hero__eyebrow {
  color: var(--gold);
  margin-bottom: var(--space-md);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: 0.16em;
  color: var(--white);
  text-indent: 0.16em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.4);
}

.hero__title span {
  display: inline-block;
}

.hero__title-rule {
  width: 96px;
  height: 1px;
  margin: var(--space-lg) auto;
  background-color: var(--gold);
  opacity: 0.9;
}

.hero__tagline {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 2.1rem);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  max-width: 22ch;
  margin: 0 auto;
}

.hero__sub {
  max-width: 46ch;
  margin: var(--space-md) auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: var(--fs-sm);
  line-height: 1.9;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.hero__actions .btn-outline--light {
  color: var(--white);
}

/* Staggered fade-up on load */
.hero__eyebrow,
.hero__title span,
.hero__title-rule,
.hero__tagline,
.hero__sub,
.hero__actions,
.hero__scroll {
  opacity: 0;
  transform: translateY(38px);
}

.hero.is-ready .hero__eyebrow {
  animation: hero-up 1.1s var(--ease-out) 0.15s forwards;
}

.hero.is-ready .hero__title span:nth-child(1) {
  animation: hero-up 1.2s var(--ease-out) 0.3s forwards;
}

.hero.is-ready .hero__title span:nth-child(2) {
  animation: hero-up 1.2s var(--ease-out) 0.42s forwards;
}

.hero.is-ready .hero__title span:nth-child(3) {
  animation: hero-up 1.2s var(--ease-out) 0.54s forwards;
}

.hero.is-ready .hero__title span:nth-child(4) {
  animation: hero-up 1.2s var(--ease-out) 0.66s forwards;
}

.hero.is-ready .hero__title span:nth-child(5) {
  animation: hero-up 1.2s var(--ease-out) 0.78s forwards;
}

.hero.is-ready .hero__title-rule {
  animation: hero-up 1.1s var(--ease-out) 0.95s forwards;
}

.hero.is-ready .hero__tagline {
  animation: hero-up 1.1s var(--ease-out) 1.05s forwards;
}

.hero.is-ready .hero__sub {
  animation: hero-up 1.1s var(--ease-out) 1.18s forwards;
}

.hero.is-ready .hero__actions {
  animation: hero-up 1.1s var(--ease-out) 1.32s forwards;
}

.hero.is-ready .hero__scroll {
  animation: hero-up 1.1s var(--ease-out) 1.5s forwards;
}

@keyframes hero-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow,
  .hero__title span,
  .hero__title-rule,
  .hero__tagline,
  .hero__sub,
  .hero__actions,
  .hero__scroll {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Hero meta strip */
.hero__meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(10, 10, 10, 0.32);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero__meta-item {
  padding: var(--space-md) var(--space-sm);
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__meta-item:last-child {
  border-right: none;
}

.hero__meta-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: var(--ls-normal);
}

.hero__meta-item span {
  display: block;
  margin-top: 4px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: rgba(255, 255, 255, 0.62);
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 120px;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.7);
}

.hero.is-ready .hero__scroll {
  animation: hero-up 1.1s var(--ease-out) 1.5s forwards,
    hero-bob 3s ease-in-out 2.6s infinite;
}

.hero__scroll span {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 62px;
  background-color: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: -60%;
  left: 0;
  width: 100%;
  height: 60%;
  background-color: var(--gold);
  animation: scroll-drop 2.2s var(--ease-in-out) infinite;
}

@keyframes scroll-drop {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(266%);
  }
}

@keyframes hero-bob {
  0%,
  100% {
    margin-bottom: 0;
  }
  50% {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .hero__meta {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__meta-item {
    padding: var(--space-sm) 4px;
  }

  .hero__meta-item strong {
    font-size: 1rem;
  }

  .hero__meta-item span {
    font-size: 0.52rem;
    letter-spacing: var(--ls-wide);
  }

  .hero__scroll {
    bottom: 104px;
  }

  .hero__sub {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__title-rule {
    margin: var(--space-md) auto;
  }
}

/* ---------- 2. SCENT NOTES (sticky scroll) ---------- */

.notes {
  --notes-bg: #ffffff;
  position: relative;
  height: 320vh;
  background-color: var(--notes-bg);
  transition: background-color 0.6s linear;
}

.notes__progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 5;
  background-color: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.notes__progress-bar {
  width: 100%;
  height: 100%;
  background-color: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
}

.notes__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  transition: color 0.6s linear;
}

.notes__inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  width: 100%;
}

/* Left: stage list */
.notes__stages {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.notes__stage {
  position: relative;
  padding: var(--space-md) 0 var(--space-md) var(--space-lg);
  border-left: 1px solid rgba(128, 128, 128, 0.3);
  opacity: 0.34;
  transform: translateX(-14px);
  transition: opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out),
    border-color 0.6s var(--ease-out);
}

.notes__stage::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
  transform: translateY(-50%) scale(0.4);
  opacity: 0;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-spring);
}

.notes__stage.is-active {
  opacity: 1;
  transform: translateX(0);
  border-left-color: var(--gold);
}

.notes__stage.is-active::before {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  background-color: var(--gold);
}

.notes__stage-index {
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
}

.notes__stage h3 {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  line-height: 1.1;
}

.notes__stage p {
  margin-top: var(--space-xs);
  font-size: var(--fs-sm);
  max-width: 42ch;
  color: var(--grey);
  transition: color 0.6s linear;
}

.notes__stage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
}

.notes__tag {
  padding: 5px 11px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: inherit;
  border: 1px solid currentColor;
  opacity: 0.5;
  border-radius: 999px;
  transition: opacity 0.5s var(--ease-out), color 0.5s var(--ease-out);
}

.notes__stage.is-active .notes__tag {
  opacity: 1;
  color: var(--gold-dark);
  border-color: var(--gold);
}

/* Right: visual stack */
.notes__visuals {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.notes__visual {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--ease-out), transform 1.4s var(--ease-out);
}

.notes__visual.is-active {
  opacity: 1;
  transform: scale(1);
}

.notes__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes__visual-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--space-lg);
  color: var(--white);
  background: linear-gradient(to top, rgba(10, 10, 10, 0.82), transparent);
}

.notes__visual-caption strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.notes__visual-caption span {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: rgba(255, 255, 255, 0.7);
}

/* When the section goes charcoal, the text flips light */
.notes[data-dark="true"] .notes__sticky {
  color: var(--white);
}

.notes[data-dark="true"] .notes__stage p {
  color: rgba(255, 255, 255, 0.68);
}

.notes__scroll-hint {
  position: absolute;
  right: var(--container-pad);
  bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  opacity: 0.5;
}

.notes__scroll-hint i {
  display: block;
  width: 34px;
  height: 1px;
  background-color: currentColor;
}

@media (max-width: 900px) {
  .notes {
    height: 260vh;
  }

  .notes__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .notes__visuals {
    aspect-ratio: 16 / 10;
    order: -1;
  }

  .notes__stages {
    gap: var(--space-sm);
  }

  .notes__stage {
    padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  }

  .notes__stage p {
    display: none;
  }

  .notes__stage.is-active p {
    display: block;
  }

  .notes__scroll-hint {
    display: none;
  }
}

/* ---------- 3. FEATURED COLLECTION ---------- */

.featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.2vw, 2rem);
}

.featured__foot {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

@media (max-width: 1024px) {
  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. BRAND STORY ---------- */

.story {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.story__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--ivory);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-out);
}

.story__media:hover img {
  transform: scale(1.04);
}

.story__badge {
  position: absolute;
  right: -1px;
  bottom: -1px;
  padding: var(--space-lg) var(--space-xl);
  background-color: var(--gold);
  color: var(--charcoal);
  text-align: center;
}

.story__badge strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--charcoal);
}

.story__badge span {
  display: block;
  margin-top: 6px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
}

.story__body h2 {
  margin-bottom: var(--space-md);
}

.story__body p + p {
  margin-top: var(--space-md);
}

.story__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.story__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.9rem;
  line-height: 1;
  color: var(--gold-dark);
}

.story__stat span {
  display: block;
  margin-top: 8px;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--grey);
}

.story__quote {
  position: relative;
  margin-top: var(--space-lg);
  padding-left: var(--space-lg);
  border-left: 1px solid var(--gold);
}

.story__quote p {
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--ink);
}

.story__quote cite {
  display: block;
  margin-top: var(--space-sm);
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--grey);
}

@media (max-width: 900px) {
  .story {
    grid-template-columns: 1fr;
  }

  .story__media {
    aspect-ratio: 3 / 4;
  }

  .story__stats {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }

  .story__stat strong {
    font-size: 1.5rem;
  }
}

/* ---------- 5. TESTIMONIALS ---------- */

.testimonials {
  overflow: hidden;
}

.testimonials__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.testimonials__nav {
  display: flex;
  gap: var(--space-2xs);
}

.t-btn {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color var(--t-base) var(--ease-out),
    background-color var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.t-btn:hover {
  color: var(--charcoal);
  background-color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.t-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.t-btn--prev svg {
  transform: rotate(180deg);
}

.testimonials__track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: var(--space-md);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  flex: 0 0 min(420px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-lg);
  background-color: var(--white);
  border: 1px solid var(--line);
  transition: border-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold-soft);
  transform: translateY(-5px);
}

.testimonial-card__quote {
  flex: 1;
  font-family: var(--font-quote);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.6;
  color: var(--ink);
}

.testimonial-card__quote::before {
  content: "\201C";
  display: block;
  font-family: var(--font-heading);
  font-size: 3.4rem;
  line-height: 0.6;
  color: var(--gold);
  margin-bottom: var(--space-sm);
}

.testimonial-card__product {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--gold-dark);
}

.testimonial-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.testimonial-card__who strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--ink);
}

.testimonial-card__who span {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--grey);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--gold-dark);
  background-color: var(--gold-light);
  border-radius: 50%;
}

.testimonials__note {
  margin-top: var(--space-md);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--grey-light);
}

/* ---------- 6. NEWSLETTER ---------- */

.newsletter {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.newsletter::before,
.newsletter::after {
  content: "";
  position: absolute;
  border: 1px solid var(--line-gold);
  border-radius: 50%;
  pointer-events: none;
}

.newsletter::before {
  width: 460px;
  height: 460px;
  top: -180px;
  left: -140px;
}

.newsletter::after {
  width: 320px;
  height: 320px;
  bottom: -140px;
  right: -110px;
}

.newsletter__inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto;
}

.newsletter__inner h2 {
  margin-bottom: var(--space-md);
}

.newsletter__perks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.newsletter__perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--grey);
}

.newsletter__perk svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter__form {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 10px;
}

.newsletter__form input {
  flex: 1;
  min-width: 0;
  padding: 8px 2px;
  font-size: var(--fs-base);
  color: var(--ink);
  letter-spacing: var(--ls-normal);
}

.newsletter__form input::placeholder {
  color: var(--grey-light);
}

.newsletter__form button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--gold-dark);
  transition: color var(--t-base) var(--ease-out),
    transform var(--t-base) var(--ease-out);
}

.newsletter__form button:hover {
  color: var(--ink);
  transform: translateX(4px);
}

.newsletter__form button svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.newsletter__note {
  margin-top: var(--space-md);
  font-size: var(--fs-sm);
  min-height: 1.5em;
}

.newsletter__note.is-ok {
  color: var(--gold-dark);
}

.newsletter__note.is-error {
  color: #b3261e;
}

@media (max-width: 560px) {
  .newsletter__perks {
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
  }
}
