/* ==========================================================================
   MIRADERM — homepage
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 720px;
  height: calc(100vh - var(--bar-h));
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-media,
.hero-slide,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img {
  object-fit: cover;
}
.hero-overlay {
  z-index: 2; /* always above whichever hero photo is active */
}
.hero-slide {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}
.hero-slide.is-active img {
  animation: heroZoom 7s var(--ease) both;
}
@keyframes heroZoom {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img { animation: none; }
}

/* small dots, bottom-centre, to show which of the 3 hero photos is showing
   and let a visitor jump straight to one */
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(255, 255, 255, .4);
  cursor: pointer;
  transition: background .3s var(--ease);
}
.hero-dots button.is-active { background: #fff; }
.hero-overlay {
  background:
    linear-gradient(90deg, rgba(35, 16, 19, .72), rgba(35, 16, 19, .2) 58%, rgba(35, 16, 19, .06)),
    linear-gradient(0deg, rgba(35, 16, 19, .5), transparent 46%);
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 740px;
  padding: 0 var(--gutter);
  animation: heroIn 1s var(--ease) .15s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.hero h1 {
  margin: 0;
  font-size: clamp(56px, 8vw, 122px);
  line-height: .84;
}
.hero-copy {
  max-width: 520px;
  margin: 26px 0;
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-trust {
  margin: 22px 0 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255, 255, 255, .72);
}
.hero-note {
  position: absolute;
  right: var(--gutter);
  bottom: 56px;
  z-index: 3;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hero-note span { font-size: 11px; opacity: .7; }
.hero-note p {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.05;
}
.scroll-cue {
  position: absolute;
  left: var(--gutter);
  bottom: 40px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.scroll-cue span {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, .4);
  position: relative;
  overflow: hidden;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--rose);
  animation: scrollLine 1.8s infinite;
}
@keyframes scrollLine {
  from { top: -50%; }
  to   { top: 100%; }
}

/* --------------------------------------------------------------------------
   Marquee
   -------------------------------------------------------------------------- */
.marquee-section {
  padding: 18px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.marquee { overflow: hidden; }
.marquee-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  font-family: var(--serif);
  font-size: clamp(20px, 2.6vw, 30px);
  animation: marquee 30s linear infinite;
}
.marquee-inner i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   Philosophy
   -------------------------------------------------------------------------- */
.intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 7vw;
  align-items: end;
}
.intro h2 {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: .98;
}
.intro-text {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
}
.intro-text p { margin-top: 0; }

/* --------------------------------------------------------------------------
   Collection cards
   -------------------------------------------------------------------------- */
.collection-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 380px 380px;
  gap: 16px;
  padding: 0 var(--gutter) 110px;
}
.collection-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  min-height: 380px;
}
.collection-card.large-card { grid-row: span 2; }
.collection-card img {
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.collection-card:hover img { transform: scale(1.055); }
.card-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(39, 16, 21, .74), transparent 58%);
}
.collection-content {
  position: absolute;
  left: 30px; right: 30px; bottom: 26px;
  color: #fff;
  z-index: 2;
}
.collection-content p {
  margin: 0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  opacity: .85;
}
.collection-content h3 {
  margin: 6px 0 10px;
  font-size: clamp(30px, 3.4vw, 46px);
}
.collection-content a { font-size: 13px; font-weight: 600; }
.collection-content a span {
  display: inline-block;
  transition: transform .3s var(--ease);
}
.collection-content a:hover span { transform: translateX(5px); }
.collection-word {
  position: absolute;
  right: 18px; top: 10px;
  z-index: 1;
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 96px);
  color: rgba(255, 255, 255, .16);
  letter-spacing: -.04em;
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   Product rail
   -------------------------------------------------------------------------- */
.slider-controls { display: flex; gap: 10px; }
.slider-btn {
  width: 48px; height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background .3s, color .3s;
}
.slider-btn:hover { background: var(--ink); color: #fff; }

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  overflow-x: auto;
  /* "mandatory" forces a full snap to the next card on the smallest touch
     drag, which fights a light swipe and is a common cause of a carousel
     feeling "grabby"/unnatural on mobile. "proximity" only snaps once
     you're basically already there, so a normal flick still scrolls freely. */
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 6px;
}
.product-rail::-webkit-scrollbar { display: none; }

.rail-progress {
  height: 1px;
  background: var(--line);
  margin-top: 26px;
}
.rail-progress i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--burgundy);
  transition: width .3s;
}

/* --------------------------------------------------------------------------
   Ingredient lab
   -------------------------------------------------------------------------- */
.ingredient-lab {
  position: relative;
  background: var(--burgundy-deep);
  color: #fff;
  padding: 110px var(--gutter);
  overflow: hidden;
}
.ingredient-orbit {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.ingredient-orbit .orbit {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
}
.orbit-one   { width: 620px; height: 620px; left: -180px; top: -160px; }
.orbit-two   { width: 900px; height: 900px; right: -280px; bottom: -380px; }
.orbit-three { width: 420px; height: 420px; right: 18%; top: 12%; }

.ingredient-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 72px;
}
.ingredient-intro h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 74px);
  line-height: 1;
}
.ingredient-lead {
  margin: 0;
  color: rgba(255, 255, 255, .68);
  line-height: 1.8;
}

.ingredient-stage {
  position: relative;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 6vw;
  align-items: center;
}

.ingredient-visual {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ingredient-halo {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--ingredient-soft, #d8a7b0) 0, transparent 68%);
  opacity: .28;
  transition: background .6s;
}
.ingredient-core {
  position: relative;
  z-index: 3;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ingredient, #9a5060);
  display: grid;
  place-content: center;
  text-align: center;
  transition: background .6s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.ingredient-core span {
  font-family: var(--serif);
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
}
.ingredient-core small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: .2em;
  opacity: .7;
}
.ingredient-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.ingredient-rings i {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
}
.ingredient-rings i:nth-child(1) { width: 60%; height: 60%; }
.ingredient-rings i:nth-child(2) { width: 78%; height: 78%; }
.ingredient-rings i:nth-child(3) {
  width: 96%; height: 96%;
  border-style: dashed;
  border-color: rgba(255, 255, 255, .1);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ingredient-watermark {
  position: absolute;
  bottom: 2%;
  margin: 0;
  width: 100%;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(24px, 3.6vw, 46px);
  color: rgba(255, 255, 255, .12);
  letter-spacing: .04em;
  pointer-events: none;
}

.ingredient-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.ingredient-tab {
  border: 1px solid rgba(255, 255, 255, .24);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .3s, border-color .3s, color .3s;
}
.ingredient-tab span { font-size: 9px; opacity: .6; }
.ingredient-tab:hover { border-color: #fff; }
.ingredient-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: var(--burgundy-deep);
}
.ingredient-kicker {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--rose);
}
.ingredient-copy h3 {
  margin: 12px 0 20px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1;
}
.ingredient-copy > p:not(.ingredient-kicker) {
  max-width: 540px;
  color: rgba(255, 255, 255, .72);
  line-height: 1.8;
}
.ingredient-found {
  margin-top: 24px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .5);
}
.ingredient-found strong { color: #fff; }

/* --------------------------------------------------------------------------
   Shade studio
   -------------------------------------------------------------------------- */
.shade-section { background: var(--paper); }
.shade-head {
  max-width: 780px;
  margin: 0 auto 52px;
  text-align: center;
}
.shade-head h2 {
  margin: 0 0 18px;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 1;
}
.shade-head > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.shade-tool {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 26px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.shade-preview {
  position: relative;
  min-height: 520px;
  background: var(--blush);
}
.shade-preview img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s;
}
.shade-preview.is-changing img { opacity: 0; }
.shade-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 12, 16, .6), transparent 55%);
}
.shade-preview-word {
  position: absolute;
  left: 28px; bottom: 24px;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(30px, 3.6vw, 52px);
  color: #fff;
  letter-spacing: -.03em;
}

.shade-panel {
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.shade-options {
  display: grid;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.shade-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .3s;
}
.shade-option:hover { background: rgba(255, 255, 255, .6); }
.shade-option.is-active { background: #fff; box-shadow: 0 6px 20px rgba(63, 25, 33, .08); }
.shade-option i {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35);
  flex: 0 0 auto;
}
.shade-option b {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.shade-option small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.shade-option em {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
}

.shade-detail {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.shade-detail-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.shade-number {
  font-family: var(--serif);
  font-size: 34px;
  color: var(--burgundy);
  line-height: 1;
}
.shade-detail h3 { margin: 0 0 8px; font-size: 30px; }
.shade-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.shade-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.shade-actions strong {
  font-family: var(--serif);
  font-size: 26px;
}

/* before / after */
.before-after {
  max-width: 1140px;
  margin: 90px auto 0;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5vw;
  align-items: center;
}
.before-after h3 {
  margin: 0 0 18px;
  font-size: clamp(32px, 3.8vw, 54px);
  line-height: 1;
}
.before-after p { color: var(--muted); line-height: 1.7; }
.comparison {
  position: relative;
  aspect-ratio: 1.32;
  border-radius: 20px;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
  background: var(--blush);
}
.comparison img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}
.comparison-after {
  position: absolute;
  inset: 0;
  clip-path: inset(0 48% 0 0);
}
.comparison-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 52%;
  width: 2px;
  background: rgba(255, 255, 255, .9);
  transform: translateX(-1px);
  z-index: 3;
}
.comparison-handle span {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  color: var(--burgundy);
  display: grid;
  place-items: center;
  font-size: 17px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
}
.comparison-label {
  position: absolute;
  bottom: 16px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(20, 10, 12, .55);
  color: #fff;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.comparison-label.before { left: 16px; }
.comparison-label.after { right: 16px; }

/* --------------------------------------------------------------------------
   Ritual banner
   -------------------------------------------------------------------------- */
.ritual-banner {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.ritual-media,
.ritual-media img,
.ritual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ritual-media img { object-fit: cover; }
.ritual-overlay {
  background: linear-gradient(90deg, rgba(48, 19, 24, .8), rgba(48, 19, 24, .1));
}
.ritual-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 0 var(--gutter);
}
.ritual-content h2 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 92px);
  line-height: .9;
}
.ritual-content > p:not(.eyebrow) {
  margin: 24px 0 30px;
  font-size: 17px;
  line-height: 1.6;
}
.ritual-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Hair quiz
   -------------------------------------------------------------------------- */
.ritual-quiz { background: var(--cream); }
.quiz-intro {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 6vw;
  align-items: end;
  margin-bottom: 52px;
}
.quiz-intro h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
}
.quiz-intro > p { margin: 0; color: var(--muted); line-height: 1.8; }

.quiz-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(63, 25, 33, .07);
}
.quiz-rail {
  background: var(--burgundy-deep);
  color: #fff;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.quiz-rail-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
}
.quiz-rail-top strong { font-size: 13px; }
.quiz-rail-top b { color: var(--rose); }
.quiz-progress-track {
  height: 2px;
  background: rgba(255, 255, 255, .18);
  margin: 18px 0 30px;
}
.quiz-progress-track i {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--rose);
  transition: width .4s var(--ease);
}
.quiz-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.quiz-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  opacity: .45;
  transition: opacity .3s, background .3s;
}
.quiz-steps li span { font-size: 10px; letter-spacing: .12em; }
.quiz-steps li p { margin: 0; font-size: 14px; }
.quiz-steps li.is-active { opacity: 1; background: rgba(255, 255, 255, .1); }
.quiz-steps li.is-complete { opacity: .8; }
.quiz-steps li.is-complete span::before { content: "✓ "; color: var(--rose); }
.quiz-rail-note {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}
.quiz-rail-note span { color: var(--rose); }
.quiz-rail-note p { margin: 0; }

.quiz-content { padding: 40px; }
.quiz-panel {
  border: 0;
  margin: 0;
  padding: 0;
  display: none;
}
.quiz-panel.is-active { display: block; animation: quizIn .45s var(--ease) both; }
@keyframes quizIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.quiz-panel legend {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.15;
  margin-bottom: 26px;
  padding: 0;
}
.quiz-panel legend small {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--burgundy);
}
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.quiz-options label {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .3s, background .3s, transform .3s var(--ease);
  position: relative;
}
.quiz-options label:hover { border-color: var(--rose); transform: translateY(-2px); }
.quiz-options input { position: absolute; opacity: 0; }
.quiz-options label:has(input:checked) {
  border-color: var(--burgundy);
  background: var(--blush);
}
.quiz-options b {
  display: block;
  font-size: 15px;
  margin-bottom: 6px;
}
.quiz-options em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.quiz-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.quiz-back {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.quiz-back:disabled { opacity: .35; cursor: not-allowed; }
#quizHint {
  margin: 0 auto 0 0;
  font-size: 12px;
  color: var(--muted);
}

.quiz-result { display: none; }
.quiz-result.is-active { display: block; animation: quizIn .5s var(--ease) both; }
.result-heading h3 {
  margin: 10px 0 12px;
  font-size: clamp(28px, 3.2vw, 44px);
}
.result-heading p { margin: 0; color: var(--muted); line-height: 1.7; }
.result-products {
  display: grid;
  gap: 12px;
  margin: 28px 0;
}
.result-product {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}
.result-product img {
  width: 76px; height: 90px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--blush);
}
.result-product small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--burgundy);
}
.result-product h4 {
  margin: 5px 0 5px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
}
.result-product p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.result-product strong { font-size: 15px; }
.result-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.result-footer > div span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
}
.result-footer > div strong { font-family: var(--serif); font-size: 30px; }
.quiz-restart {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Brand story
   -------------------------------------------------------------------------- */
.brand-story {
  padding: 110px var(--gutter);
  background: var(--paper);
}
.story-opening {
  max-width: 820px;
  margin-bottom: 70px;
}
.story-opening h2 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1;
}
.story-lead { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.8; }

.story-cinema {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5vw;
  align-items: center;
  margin-bottom: 90px;
}
.story-image {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
}
.story-image img { aspect-ratio: .86; object-fit: cover; }
.story-index {
  font-family: var(--serif);
  font-size: 46px;
  color: var(--blush);
  line-height: 1;
}
.story-copy h3 {
  margin: 14px 0 20px;
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.05;
}
.story-copy p { color: var(--muted); line-height: 1.8; }
.story-signature {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.story-signature span {
  font-family: var(--serif);
  font-size: 24px;
  display: block;
}
.story-signature small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
}

.story-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 100px;
}
.value-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 32px;
}
.value-card span {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--burgundy);
}
.value-card h4 {
  margin: 14px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
}
.value-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }

.method-section {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5vw;
  align-items: start;
  margin-bottom: 90px;
}
.method-sticky {
  position: sticky;
  top: calc(var(--header-h) + 40px);
}
.method-sticky h3 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
}
.method-sticky p { color: var(--muted); line-height: 1.7; }
.method-progress {
  height: 2px;
  background: var(--line);
  margin-top: 26px;
}
.method-progress span {
  display: block;
  height: 100%;
  width: 25%;
  background: var(--burgundy);
  transition: width .5s var(--ease);
}
.method-steps { display: grid; gap: 18px; }
.method-step {
  display: grid;
  grid-template-columns: 44px 150px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  opacity: .5;
  transition: opacity .5s, background .5s, border-color .5s;
}
.method-step.is-active {
  opacity: 1;
  background: var(--cream);
  border-color: transparent;
}
.method-number {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--burgundy);
}
.method-image {
  border-radius: 12px;
  overflow: hidden;
}
.method-image img { aspect-ratio: 1; object-fit: cover; }
.method-copy small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--burgundy);
}
.method-copy h4 {
  margin: 8px 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 400;
}
.method-copy p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.story-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 50px;
}
.story-numbers strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 82px);
  line-height: 1;
  color: var(--burgundy);
}
.story-numbers span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Reviews + UGC
   -------------------------------------------------------------------------- */
.social-proof {
  padding: 110px var(--gutter);
  background: var(--cream);
}
.proof-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.proof-header h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
}
.proof-score { text-align: right; }
.proof-score strong {
  font-family: var(--serif);
  font-size: 60px;
  line-height: 1;
  display: block;
}
.proof-stars { color: var(--burgundy); letter-spacing: .16em; }
.proof-score small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
}

.review-stage {
  position: relative;
  margin-bottom: 100px;
}
.review-viewport { overflow: hidden; border-radius: 22px; }
.review-track {
  display: flex;
  transition: transform .6s var(--ease);
}
.review-card {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  background: var(--paper);
  min-height: 380px;
}
.review-media { background: var(--blush); }
.review-media img { height: 100%; object-fit: cover; }
.review-copy {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.review-quote {
  font-family: var(--serif);
  font-size: 70px;
  line-height: .6;
  color: var(--blush);
}
.review-stars { color: var(--burgundy); letter-spacing: .16em; margin: 18px 0; }
.review-copy blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.35;
}
.review-author { margin-top: 26px; }
.review-author strong { display: block; font-size: 14px; }
.review-author span { font-size: 12px; color: var(--muted); }

.review-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(63, 25, 33, .14);
}
#reviewPrev { left: -14px; }
#reviewNext { right: -14px; }
.review-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 22px;
}
.review-dots button {
  width: 8px; height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  cursor: pointer;
  padding: 0;
}
.review-dots button.is-active { background: var(--burgundy); width: 24px; border-radius: 999px; }

.community {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 5vw;
  align-items: center;
  margin-bottom: 90px;
}
.community h3 {
  margin: 0 0 18px;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.05;
}
.community p { color: var(--muted); line-height: 1.7; margin-bottom: 26px; }
.ugc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 10px;
}
.ugc-tile {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  background: var(--blush);
}
.ugc-tile.ugc-tall { grid-row: span 2; }
.ugc-tile.ugc-wide { grid-column: span 2; }
.ugc-tile img { height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ugc-tile:hover img { transform: scale(1.06); }
.ugc-tile span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(39, 16, 21, .45);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  opacity: 0;
  transition: opacity .3s;
}
.ugc-tile:hover span { opacity: 1; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 44px;
}
.trust-strip span {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--burgundy);
}
.trust-strip strong { display: block; margin: 10px 0 8px; font-size: 15px; }
.trust-strip p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

.ugc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(25, 8, 13, .94);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s, visibility .35s;
  padding: 30px;
}
.ugc-lightbox.is-open { opacity: 1; visibility: visible; }
.ugc-lightbox figure { margin: 0; text-align: center; }
.ugc-lightbox img {
  max-width: min(760px, 88vw);
  max-height: 74vh;
  width: auto;
  object-fit: contain;
  border-radius: 14px;
}
.ugc-lightbox figcaption { color: #fff; margin-top: 16px; }
.ugc-lightbox figcaption small {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--rose);
}
.ugc-lightbox figcaption p { margin: 6px 0 0; font-size: 14px; }
.ugc-lightbox-close {
  position: absolute;
  right: 26px; top: 20px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   FAQ + contact
   -------------------------------------------------------------------------- */
.concierge {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 6vw;
  align-items: start;
}
.faq-heading h2 {
  margin: 0 0 34px;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.02;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.faq-item > button b {
  font-size: 22px;
  font-weight: 400;
  color: var(--burgundy);
  flex: 0 0 auto;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s var(--ease);
}
.faq-item.is-open .faq-answer { max-height: 340px; }
.faq-answer p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: 58ch;
}

.contact-panel {
  background: var(--cream);
  border-radius: 22px;
  overflow: hidden;
}
.contact-visual { position: relative; }
.contact-visual img { aspect-ratio: 1.6; object-fit: cover; }
.contact-visual-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px;
  color: #fff;
  background: linear-gradient(0deg, rgba(39, 16, 21, .85), transparent);
}
.contact-visual-copy span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--rose);
}
.contact-visual-copy h3 { margin: 8px 0 6px; font-size: 28px; }
.contact-visual-copy p { margin: 0; font-size: 13px; opacity: .85; }

.contact-form { padding: 32px; }
.form-heading h3 { margin: 0 0 24px; font-size: 30px; }
.contact-form label {
  display: block;
  margin-bottom: 16px;
}
.contact-form label span {
  display: block;
  margin-bottom: 7px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 14px;
  outline: 0;
  transition: border-color .3s;
  font-size: 14px;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-color: var(--burgundy); }
.contact-form textarea { resize: vertical; }
.contact-form .btn { margin-top: 8px; }
.contact-form .form-success {
  text-align: center;
  color: var(--success);
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1050px) {
  .intro,
  .ingredient-intro,
  .ingredient-stage,
  .quiz-intro,
  .story-cinema,
  .method-section,
  .before-after,
  .community,
  .concierge,
  .shade-tool,
  .review-card { grid-template-columns: 1fr; }

  /* `margin: 0 auto` on a grid item cancels its stretch, so this box shrank
     to fit the "HA" inside it — about 40px across instead of the full column.
     An explicit width restores the circle; the auto margins still centre it. */
  .ingredient-visual { width: 100%; max-width: 380px; margin: 0 auto; }
  .ingredient-stage { gap: 44px; }
  .collection-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 520px 340px 340px;
  }
  .collection-card.large-card { grid-row: auto; }
  /* The 380px floor is a desktop measurement. Once the grid stacks, the rows
     above are shorter than it, so every card grew past its own row and sat on
     top of the next one. Let the row decide the height. */
  .collection-card { min-height: 0; }
  .product-rail { grid-template-columns: none; grid-auto-columns: 68vw; }
  .quiz-shell { grid-template-columns: 1fr; }
  .quiz-rail { flex-direction: row; flex-wrap: wrap; gap: 18px; align-items: center; }
  .quiz-progress-track { width: 100%; margin: 0; order: 3; }
  .quiz-steps { display: none; }
  .quiz-rail-note { display: none; }
  .quiz-rail-top { flex: 1; }
  .story-values,
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .method-sticky { position: static; }
  .method-step { grid-template-columns: 40px 110px 1fr; gap: 16px; }
  .story-image img { aspect-ratio: 1.4; }
  .review-media { min-height: 260px; }
  .shade-preview { min-height: 420px; }
  #reviewPrev { left: 8px; }
  #reviewNext { right: 8px; }
}

@media (max-width: 640px) {
  .hero { height: 92vh; min-height: 620px; }
  .hero h1 { font-size: clamp(44px, 13vw, 62px); }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-note, .scroll-cue { display: none; }

  /* On mobile the text and both buttons stack top-to-bottom over the FULL
     width of whichever hero photo is showing — the desktop overlay above is
     a left-to-right gradient (built for a wide photo with text on the left),
     which leaves bright vertical crops (like hero-vertical.jpg) too washed
     out to read text or tell the ghost button apart from the photo behind
     it. This replaces it with a top-to-bottom darken instead, tuned to stay
     legible no matter which of the 3 rotating photos is active. */
  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(35, 16, 19, .42) 0%,
      rgba(35, 16, 19, .58) 18%,
      rgba(35, 16, 19, .7) 50%,
      rgba(35, 16, 19, .55) 78%,
      rgba(35, 16, 19, .68) 100%
    );
  }

  .collection-grid {
    padding-bottom: 78px;
    grid-template-rows: 440px 300px 300px;
  }
  .collection-content { left: 20px; right: 20px; bottom: 20px; }
  .slider-controls { display: none; }
  .product-rail { grid-auto-columns: 78vw; }

  .ingredient-lab { padding: 78px var(--gutter); }
  .ingredient-tabs { gap: 6px; }
  .ingredient-tab { padding: 9px 12px; font-size: 11px; }

  .shade-panel { padding: 22px; }
  .shade-detail-top { grid-template-columns: 1fr; gap: 10px; }
  .before-after { margin-top: 60px; }
  .comparison { aspect-ratio: 1.05; }

  .ritual-banner { min-height: 560px; }
  .ritual-actions { flex-direction: column; align-items: stretch; }

  .quiz-content { padding: 24px 20px; }
  .quiz-options { grid-template-columns: 1fr; }
  .quiz-actions { gap: 12px; }
  #quizHint { order: 3; width: 100%; text-align: center; margin: 0; }
  .result-product { grid-template-columns: 62px 1fr; }
  .result-product strong { grid-column: 2; }

  .brand-story, .social-proof { padding: 78px var(--gutter); }
  .story-values, .trust-strip { grid-template-columns: 1fr; }
  .method-step { grid-template-columns: 34px 1fr; }
  .method-image { display: none; }
  .story-numbers { grid-template-columns: 1fr; gap: 30px; }

  .review-copy { padding: 28px 22px; }
  .review-arrow { display: none; }
  .proof-header { flex-direction: column; align-items: flex-start; }
  .proof-score { text-align: left; }
  .ugc-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }

  .contact-form { padding: 22px; }
}

/* ==========================================================================
   Mobile hardening — hero height
   iOS Safari counts 100vh as the screen WITHOUT the browser toolbar, and the
   toolbar hides and reappears while you scroll. So a 100vh hero changed height
   mid-scroll, which relaid out and re-rasterised a full-screen photo every
   time — a large part of why scrolling felt like it was seizing up. 100svh is
   the small viewport height: it stays put. The 100vh line above it stays as
   the fallback for older browsers.
   ========================================================================== */
@supports (height: 100svh) {
  .hero { height: calc(100svh - var(--bar-h)); }
}


/* --------------------------------------------------------------------------
   Campaign hero (Black Friday)
   The artwork carries its own headline, so when the campaign slide is showing
   the hero's own eyebrow, headline, copy and side note step out of the way and
   only one button is left. Without this the sign is buried under the type.
   -------------------------------------------------------------------------- */
.hero.is-campaign { align-items: flex-end; }
.hero.is-campaign .hero-content { padding-bottom: 92px; animation: none; }
.hero.is-campaign .hero-overlay {
  background: linear-gradient(180deg, rgba(25, 8, 13, .28) 0%, transparent 34%, transparent 58%, rgba(25, 8, 13, .72) 100%);
}
.hero.is-campaign .hero-content .eyebrow,
.hero.is-campaign .hero-content h1,
.hero.is-campaign .hero-content .hero-copy,
.hero.is-campaign .hero-trust,
.hero.is-campaign .hero-note,
.hero.is-campaign .scroll-cue,
.hero.is-campaign .hero-actions .btn-ghost { display: none; }

@media (max-width: 760px) {
  .hero.is-campaign .hero-content { padding-bottom: 26px; }
  .hero.is-campaign .hero-actions,
  .hero.is-campaign .hero-actions .btn { width: 100%; }
}
