/* Maison Bayu — Scent Quiz
   Immersive olfactory journey */

.mb-scent-quiz-page .entry-header,
.mb-scent-quiz-page .page-header,
.mb-scent-quiz-page .entry-title {
  display: none !important;
}

/* Break out of theme content column for full-bleed immersion */
.mb-scent-quiz-page .page-content,
.mb-scent-quiz-page .site-content--default,
.mb-scent-quiz-page #site-content-wrap,
.mb-scent-quiz-page .site-main,
.mb-scent-quiz-page .content-area,
.mb-scent-quiz-page .ast-container,
.mb-scent-quiz-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.mb-scent-quiz-page .site-content--default {
  background: #1c1008 !important;
}

.mbq {
  --mbq-ink: #1c1008;
  --mbq-ink-soft: rgba(28, 16, 8, 0.72);
  --mbq-paper: #faf7f2;
  --mbq-gold: #b8976a;
  --mbq-warm: #8a5a3c;
  --mbq-line: rgba(250, 247, 242, 0.28);
  --mbq-serif: "Cormorant Garamond", "Times New Roman", serif;
  --mbq-sans: "Outfit", system-ui, sans-serif;
  --mbq-ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* topbar 80 + navbar 56 — EN bars a bit taller */
  --mbq-header: 136px;

  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: calc(100vh - var(--mbq-header));
  min-height: calc(100svh - var(--mbq-header));
  color: var(--mbq-paper);
  font-family: var(--mbq-sans);
  overflow-x: hidden;
  overflow-y: visible;
  background: var(--mbq-ink);
}

.mbq[hidden] { display: none !important; }
.mbq:not([hidden]) { display: block; }

/* —— Atmosphere —— */
.mbq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.mbq-bg__layer {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s var(--mbq-ease), transform 8s linear;
  filter: saturate(1.05) contrast(1.05);
}
.mbq-bg__layer.is-active {
  opacity: 1;
  transform: scale(1);
  animation: mbqKen 18s ease-in-out infinite alternate;
}
@keyframes mbqKen {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.12) translate3d(-1.5%, 1%, 0); }
}

.mbq-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(28,16,8,0.25) 0%, rgba(28,16,8,0.78) 70%, rgba(28,16,8,0.92) 100%),
    linear-gradient(180deg, rgba(28,16,8,0.45) 0%, transparent 28%, transparent 62%, rgba(28,16,8,0.85) 100%);
}

.mbq-shell {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) clamp(24px, 5vw, 56px) clamp(56px, 7vw, 88px);
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.mbq-panel {
  width: 100%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  padding: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--mbq-ease), transform 0.55s var(--mbq-ease);
  box-sizing: border-box;
}
.mbq-panel.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.mbq-panel[hidden] { display: none !important; }

/* Intro / reveal vertically centered in the available screen */
.mbq-intro.is-active,
.mbq-reveal.is-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--mbq-header) - 120px);
  padding-top: 12px;
  padding-bottom: 24px;
}

/* Quiz panel fills one screen; option tiles grow */
.mbq-quiz.is-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100svh - var(--mbq-header) - 120px);
}

/* —— Intro —— */
.mbq-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.mbq-brand {
  margin: 0 0 32px;
  font-family: var(--mbq-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--mbq-gold);
}
.mbq-title {
  margin: 0 0 32px;
  font-family: var(--mbq-serif);
  font-weight: 500;
  font-size: clamp(42px, 9vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: #fff;
  text-wrap: balance;
}
.mbq-lead {
  margin: 0 auto 44px;
  max-width: 34em;
  font-size: clamp(15px, 2.2vw, 17px);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(250, 247, 242, 0.78);
}
.mbq-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  border: 1px solid rgba(250, 247, 242, 0.55);
  background: transparent;
  color: #fff;
  font-family: var(--mbq-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.35s var(--mbq-ease), border-color 0.35s, transform 0.35s var(--mbq-ease);
}
.mbq-cta:hover {
  background: rgba(250, 247, 242, 0.1);
  border-color: #fff;
  transform: translateY(-2px);
}
.mbq-cta--solid {
  background: #fff;
  color: var(--mbq-ink);
  border-color: #fff;
}
.mbq-cta--solid:hover {
  background: var(--mbq-paper);
  color: var(--mbq-ink);
}

.mbq-intro-notes {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.mbq-intro-notes span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  animation: mbqFloatIn 0.7s var(--mbq-ease) forwards;
}
.mbq-intro-notes span:nth-child(1) { animation-delay: 0.15s; }
.mbq-intro-notes span:nth-child(2) { animation-delay: 0.28s; }
.mbq-intro-notes span:nth-child(3) { animation-delay: 0.41s; }
.mbq-intro-notes span:nth-child(4) { animation-delay: 0.54s; }
.mbq-intro-notes span:nth-child(5) { animation-delay: 0.67s; }
@keyframes mbqFloatIn {
  to { opacity: 0.9; transform: translateY(0) scale(1); }
}

/* —— Progress —— */
.mbq-progress {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding-top: 8px;
  flex-shrink: 0;
}
.mbq-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.65);
}
.mbq-progress__track {
  height: 1px;
  background: rgba(250, 247, 242, 0.2);
  overflow: hidden;
}
.mbq-progress__fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mbq-gold), #fff);
  transition: width 0.55s var(--mbq-ease);
}

.mbq-q-label {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mbq-gold);
  flex-shrink: 0;
}
.mbq-q-prompt {
  margin: 0 0 clamp(28px, 4vw, 40px);
  font-family: var(--mbq-serif);
  font-weight: 500;
  font-size: clamp(28px, 5.5vw, 44px);
  line-height: 1.2;
  color: #fff;
  max-width: 18ch;
  flex-shrink: 0;
}

/* —— Option tiles (interaction containers) —— */
.mbq-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 14px;
  flex: 1 1 auto;
  min-height: 280px;
  align-content: stretch;
}
@media (min-width: 860px) {
  .mbq-options { gap: 18px; min-height: 360px; }
}

.mbq-option {
  position: relative;
  display: block;
  min-height: clamp(160px, 22vh, 220px);
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  color: #fff;
  background: #2a1c12;
  isolation: isolate;
  transform: translateZ(0);
  transition: transform 0.45s var(--mbq-ease), box-shadow 0.45s;
}
.mbq-option::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--opt-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 0.8s var(--mbq-ease), filter 0.45s;
  z-index: 0;
}
.mbq-option::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,16,8,0.15) 0%, rgba(28,16,8,0.55) 45%, rgba(28,16,8,0.92) 100%);
  z-index: 1;
  transition: background 0.4s;
}
.mbq-option:hover,
.mbq-option:focus-visible {
  transform: translateY(-3px);
  outline: none;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.mbq-option:hover::before,
.mbq-option:focus-visible::before {
  transform: scale(1.14);
}
.mbq-option:hover::after {
  background: linear-gradient(180deg, rgba(28,16,8,0.05) 0%, rgba(28,16,8,0.4) 40%, rgba(28,16,8,0.88) 100%);
}
.mbq-option.is-picked {
  box-shadow: 0 0 0 1.5px #fff, 0 18px 40px rgba(0,0,0,0.35);
}
.mbq-option__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 18px 20px;
}
.mbq-option__title {
  display: block;
  font-family: var(--mbq-serif);
  font-size: clamp(20px, 3.4vw, 26px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 4px;
}
.mbq-option__hint {
  display: block;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: rgba(250, 247, 242, 0.72);
  font-style: italic;
  font-family: var(--mbq-serif);
}

/* —— Reveal —— */
.mbq-reveal {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mbq-reveal-text {
  margin: 0 0 36px;
  font-family: var(--mbq-serif);
  font-size: clamp(22px, 4vw, 32px);
  font-style: italic;
  color: rgba(250, 247, 242, 0.9);
  animation: mbqPulse 1.6s ease-in-out infinite;
}
@keyframes mbqPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}
.mbq-reveal-orbit {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
}
.mbq-reveal-orbit span {
  position: absolute;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  animation: mbqOrbit 4.5s linear infinite;
}
.mbq-reveal-orbit span:nth-child(1) { animation-delay: 0s; }
.mbq-reveal-orbit span:nth-child(2) { animation-delay: -1.5s; }
.mbq-reveal-orbit span:nth-child(3) { animation-delay: -3s; }
@keyframes mbqOrbit {
  from { transform: rotate(0deg) translateX(90px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

/* —— Result —— */
.mbq-result {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 24px;
}
.mbq-kicker {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--mbq-gold);
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.1s forwards;
}
.mbq-result-name {
  margin: 0 0 10px;
  font-family: var(--mbq-serif);
  font-weight: 500;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 1;
  color: #fff;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.2s forwards;
}
.mbq-result-tagline {
  margin: 0 0 18px;
  font-family: var(--mbq-serif);
  font-style: italic;
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(250, 247, 242, 0.82);
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.32s forwards;
}
.mbq-result-story {
  margin: 0 auto 28px;
  max-width: 38em;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.74);
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.42s forwards;
}
@keyframes mbqRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.mbq-notes {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.52s forwards;
}
.mbq-note {
  width: 88px;
  text-align: center;
}
.mbq-note__img {
  width: 72px;
  height: 72px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25);
}
.mbq-note__name {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.8);
}

.mbq-product {
  display: grid;
  gap: 0;
  margin: 0 auto 32px;
  max-width: 520px;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.14);
  overflow: hidden;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.62s forwards;
}
@media (min-width: 640px) {
  .mbq-product {
    grid-template-columns: 0.9fr 1.1fr;
    text-align: left;
    align-items: stretch;
  }
}
.mbq-product__media {
  display: block;
  background: #fff;
  aspect-ratio: 1;
  overflow: hidden;
}
.mbq-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--mbq-ease);
}
.mbq-product__media:hover img {
  transform: scale(1.05);
}
.mbq-product__body {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.mbq-product__body h3 {
  margin: 0;
  font-family: var(--mbq-serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
}

.mbq-also {
  margin-bottom: 28px;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.72s forwards;
}
.mbq-also__label {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.55s forwards;
}
.mbq-also__list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.mbq-also__list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-family: var(--mbq-serif);
  font-style: italic;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  padding-bottom: 2px;
  transition: border-color 0.25s, color 0.25s;
}
.mbq-also__list a:hover {
  color: var(--mbq-gold);
  border-color: var(--mbq-gold);
}

/* 3 product suggestions */
.mbq-picks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0 0 32px;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.62s forwards;
}
@media (min-width: 720px) {
  .mbq-picks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
}
.mbq-pick {
  display: flex;
  flex-direction: column;
  background: rgba(250, 247, 242, 0.06);
  border: 1px solid rgba(250, 247, 242, 0.14);
  overflow: hidden;
  text-align: left;
}
.mbq-pick.is-featured {
  border-color: rgba(184, 151, 106, 0.55);
}
.mbq-pick__media {
  display: block;
  background: #fff;
  aspect-ratio: 1;
  overflow: hidden;
}
.mbq-pick__media img,
.mbq-pick__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--mbq-ease);
}
.mbq-pick__ph {
  background: linear-gradient(135deg, #efe6dd, #d9c3af);
}
.mbq-pick__media:hover img {
  transform: scale(1.05);
}
.mbq-pick__body {
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.mbq-pick__body h3 {
  margin: 0;
  font-family: var(--mbq-serif);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.25;
  color: #fff;
  flex: 1;
}
.mbq-pick__body .mbq-cta {
  align-self: flex-start;
  padding: 12px 16px;
  font-size: 10px;
}

.mbq-retry {
  background: none;
  border: 0;
  color: rgba(250, 247, 242, 0.55);
  font-family: var(--mbq-sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px;
  opacity: 0;
  animation: mbqRise 0.7s var(--mbq-ease) 0.82s forwards;
}
.mbq-retry:hover { color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mbq-bg__layer.is-active { animation: none; }
  .mbq-intro-notes span,
  .mbq-reveal-text,
  .mbq-reveal-orbit span,
  .mbq-kicker,
  .mbq-result-name,
  .mbq-result-tagline,
  .mbq-result-story,
  .mbq-notes,
  .mbq-product,
  .mbq-also,
  .mbq-picks,
  .mbq-also__label,
  .mbq-retry {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 1000px) {
  .mbq {
    /* mobile topbar only (no second navbar) */
    --mbq-header: 64px;
    min-height: calc(100svh - var(--mbq-header));
    height: auto;
  }
  .mbq-shell {
    padding: 36px 16px 28px;
    min-height: calc(100svh - var(--mbq-header));
  }
  .mbq-intro.is-active,
  .mbq-reveal.is-active,
  .mbq-quiz.is-active {
    min-height: calc(100svh - var(--mbq-header) - 64px);
  }
  /* Label already in progress bar — avoid duplicate tightness */
  .mbq-q-label { display: none; }
  .mbq-q-prompt {
    margin-bottom: 20px;
    font-size: clamp(26px, 7vw, 34px);
    max-width: none;
  }
  .mbq-progress { margin-bottom: 22px; }
  .mbq-options {
    gap: 12px;
    min-height: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mbq-option {
    min-height: clamp(120px, 22svh, 180px);
  }
  .mbq-option__body { padding: 14px 14px 16px; }
  .mbq-intro-notes { margin-top: 40px; }
  .mbq-intro-notes span { width: 52px; height: 52px; }
  .mbq-brand { margin-bottom: 22px; }
  .mbq-title { margin-bottom: 22px; line-height: 1.08; }
  .mbq-lead { margin-bottom: 32px; }
}

@media (max-width: 520px) {
  .mbq-shell { padding: 32px 14px 24px; }
  .mbq-options { gap: 10px; }
  .mbq-option { min-height: clamp(112px, 20svh, 160px); }
}

/* EN quiz page — account for taller EN header */
html[lang^="en"] .mbq,
.mb-scent-quiz-page--en .mbq {
  --mbq-header: 148px;
}
html[lang^="en"] .mbq-shell,
.mb-scent-quiz-page--en .mbq-shell {
  padding-top: clamp(80px, 11vw, 140px);
}
