/* ============================================================
   SAÏDA / 971 — page layouts
   ============================================================ */

/* ================= Shared section heads ================= */

.sec-head { display: grid; gap: 1.1rem; justify-items: start; margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 760px; }
.sec-head__h { font-size: clamp(2.6rem, 6vw, 5rem); }
.sec-head__h em { color: var(--plum); }
.closing { text-align: center; }
.closing__title { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 18ch; margin: 0 auto 2rem; }

/* ================= Home: the lineup ================= */

.lineup {
  position: relative; overflow: hidden;
  padding-top: clamp(1.2rem, 2.6vw, 2.2rem);
}

.lineup__stage {
  --h: clamp(170px, 24vw, 350px);
  list-style: none; position: relative;
  display: flex; justify-content: center; align-items: flex-end;
  margin-top: clamp(1.6rem, 3vw, 2.4rem); padding: 0 var(--gut) clamp(2rem, 4vw, 3rem);
}
.lineup__item { position: relative; z-index: 1; margin-inline: clamp(-0.9rem, -1vw, -0.2rem); animation: bottle-in 1.3s var(--settle) both; animation-delay: calc(0.35s + var(--i) * 0.09s); }
.intro .lineup__item { animation-delay: calc(2.6s + var(--i) * 0.09s); }
@keyframes bottle-in { from { opacity: 0; transform: translateY(70px) scale(0.94); } }
.lineup__item:nth-child(3) { z-index: 2; }
.lineup__link { display: grid; justify-items: center; gap: 0.7rem; text-decoration: none; color: inherit; border-radius: var(--r-lg); padding: 0.4rem; }
.lineup__img {
  height: var(--h); width: auto;
  filter: drop-shadow(0 18px 20px rgba(60, 35, 15, 0.2));
  transition: transform 0.8s var(--settle);
}
.lineup__link:hover .lineup__img, .lineup__link:focus-visible .lineup__img { transform: translateY(-14px); }
/* Phones: five bottles at their true proportions. The row was wider than the
   screen, so each image kept its height and lost width — they looked
   stretched. Size the row from the screen width instead (2.9 ≈ the five
   bottles' combined width-to-height) and never let an image shrink alone. */
@media (max-width: 640px) {
  .lineup__stage { --h: calc((100vw - 2 * var(--gut) + 60px) / 2.9); }
  .lineup__item { flex: none; margin-inline: -6px; }
  .lineup__link { padding: 0; }
  .lineup__img { max-width: none; }
}
.lineup__name {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
  width: 10.5rem; text-align: center; line-height: 1.35; min-height: 2.7em; text-wrap: balance;
  transition: color 0.4s var(--settle);
}
.lineup__link:hover .lineup__name { color: var(--ink); }
@media (max-width: 640px) { .lineup__name { display: none; } }

/* ================= Home: statement ================= */

.statement__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.statement__text.display { font-family: var(--text); font-size: clamp(1.8rem, 3.2vw, 2.7rem); line-height: 1.22; letter-spacing: 0; max-width: 26ch; }
.statement__side { display: grid; gap: 1.6rem; align-content: end; justify-items: start; max-width: 40ch; }
@media (min-width: 900px) { .statement__grid { grid-template-columns: 1.6fr 1fr; gap: 5rem; align-items: end; } }

/* ================= Shop ================= */

.shop-head { display: grid; justify-items: center; text-align: center; gap: 0.9rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4rem); }
.shop-head__title { font-size: clamp(3.4rem, 10vw, 8rem); }
.shop-head__ar { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--plum); }
.shop-head .lede { text-align: center; }
.shop-note { padding-block: 2rem var(--space); color: var(--muted); font-size: 0.98rem; }

/* ================= Product ================= */

.product { --r: var(--r-xl); }
.phero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--tint) 0%, var(--tint-deep) 100%);
}
.phero__grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  min-height: min(calc(100dvh - var(--nav-h) - 40px), 900px);
  padding-block: 1.6rem clamp(2.5rem, 5vw, 4rem);
}
.crumbs { display: flex; gap: 0.6rem; align-items: center; font-size: 0.86rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--ink); }

.phero__stage { position: relative; display: grid; place-items: center; min-height: 360px; }
.phero__img {
  position: relative; z-index: 1; height: clamp(320px, 60vh, 640px); width: auto;
  filter: drop-shadow(0 18px 20px rgba(60, 35, 15, 0.22));
  animation: phero-in 1.4s var(--settle) both 0.15s;
}
.intro .phero__img { animation-delay: 2.4s; }
@keyframes phero-in { from { opacity: 0; transform: translateY(60px) scale(0.94); } }
.phero__copy { display: grid; gap: 0.9rem; justify-items: start; align-content: center; }
.phero__title.display { font-size: clamp(2.6rem, 5.2vw, 4.8rem); }
.phero__ar { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--deep); line-height: 1.5; }
.phero__tagline { color: var(--deep); max-width: 32ch; }
.phero__meaning { font-style: italic; color: var(--deep); font-size: 1.1rem; }
.phero__desc { color: var(--muted); max-width: 44ch; }

.buy { display: grid; gap: 1.1rem; width: 100%; max-width: 440px; margin-top: 0.8rem; }
.buy__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.buy__price { display: grid; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.6rem); line-height: 1; letter-spacing: -0.01em; }
.buy__price .draft-tag { font-family: var(--text); margin-top: 0.35rem; font-size: 0.78rem; }
.buy .island { justify-content: space-between; width: 100%; }
.buy__note { font-size: 0.9rem; color: var(--muted); }
@media (min-width: 900px) {
  .phero__grid { grid-template-columns: 1.1fr 1fr; grid-template-rows: auto 1fr; column-gap: 4rem; }
  .crumbs { grid-column: 1 / -1; }
  .phero__img { height: clamp(420px, 66vh, 700px); }
}

/* Composition: three tiers */
.composition__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.composition__head { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.composition__title { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.composition__title em { color: var(--deep); }
/* Each tier a ruled row: when it shows · the notes, in Arabic, and what they do */
.tierlist { list-style: none; width: 100%; border-bottom: 1px solid var(--hair-2); }
.ctier { display: grid; grid-template-columns: 1fr; gap: 0.35rem 2rem; padding-block: 1.6rem; border-top: 1px solid var(--hair-2); }
.ctier__label { font-style: italic; color: var(--deep); }
.ctier__body { display: grid; gap: 0.35rem; }
.ctier__notes { font-size: clamp(1.35rem, 2vw, 1.5rem); line-height: 1.15; letter-spacing: 0.08em; }
.ctier__notes--tbc { color: var(--muted); }
.ctier__ar { font-size: 1.1rem; color: var(--deep); text-align: left; line-height: 1.5; }
.ctier__text { color: var(--muted); max-width: 58ch; line-height: 1.6; margin-top: 0.2rem; }
@media (min-width: 640px) { .ctier { grid-template-columns: 9rem 1fr; align-items: baseline; } }
@media (min-width: 1000px) { .composition__grid { grid-template-columns: 0.8fr 1.4fr; gap: 5rem; align-items: start; } .composition__head { position: sticky; top: 7rem; } }

/* Quote */
.quote { background: var(--tint); }
@media (max-width: 640px) { .quote.band { padding-block: clamp(3rem, 10vw, 5rem); } }
.quote__inner { display: grid; justify-items: center; text-align: center; }
.quote__ar { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--deep); line-height: 1.4; }
.quote__text.display { font-family: var(--text); font-size: clamp(1.8rem, 3.6vw, 2.9rem); font-style: italic; letter-spacing: 0; max-width: 24ch; line-height: 1.2; }

/* Wear */
.wear__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.wear__grid > div { display: grid; gap: 1rem; justify-items: start; align-content: start; }
.wear__title { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.wear__title em { color: var(--deep); }
.wear__steps { list-style: none; display: grid; gap: 2rem; }
.wear__steps li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: baseline; }
.wear__n { font-family: var(--display); font-size: 2.6rem; line-height: 1; color: var(--juice); }
.wear__steps p { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) { .wear__grid { grid-template-columns: 1fr 1.2fr; gap: 6rem; } }

/* Details */
.details { padding-top: 0; }
.details__grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
.details__title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); }
.spec { border-bottom: 1px solid var(--hair-2); }
.spec div { display: grid; grid-template-columns: 1fr; gap: 0.25rem; padding-block: 1.1rem; border-top: 1px solid var(--hair-2); }
.spec dt { color: var(--deep); }
@media (min-width: 700px) { .spec div { grid-template-columns: 12rem 1fr; gap: 1.5rem; align-items: baseline; } }
@media (min-width: 900px) { .details__grid { grid-template-columns: 1fr 1.8fr; gap: 6rem; } }

/* More from the house: a native, momentum-scrolling rail */
.more { padding-top: 0; }
.more__title { font-size: clamp(2.4rem, 4.4vw, 3.6rem); margin-bottom: 2rem; }
.more__rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 300px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0.5rem max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 1.5rem;
  scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut)));
  scrollbar-width: thin;
}
.more__rail .pcard { scroll-snap-align: start; }
.more__rail:focus-visible { outline-offset: -4px; }

/* ================= Contact ================= */

.contact-head { display: grid; gap: 0.9rem; justify-items: start; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.contact-head__ar { font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--plum); }
.contact__grid {
  display: grid; gap: 3.5rem; grid-template-columns: 1fr;
  padding-top: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(var(--hair-2), var(--hair-2)) top center / calc(100% - 2 * var(--gut)) 1px no-repeat;
}
.contact__label { color: var(--gold-text); margin-bottom: 1.4rem; }
.contact__form { display: grid; gap: 1.3rem; align-content: start; }
.contact__form .contact__label { margin-bottom: 0.1rem; }
.contact__pair { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.direct { border-bottom: 1px solid var(--hair-2); }
.direct div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; align-items: baseline; padding-block: 0.6rem; border-top: 1px solid var(--hair-2); }
.direct dt { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.direct dd { min-height: 44px; display: flex; align-items: center; }
.direct__tbc { color: var(--muted); font-style: italic; }
.contact__note { margin-top: 1.6rem; color: var(--muted); max-width: 40ch; }
@media (min-width: 640px) { .contact__pair { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: 7fr 4fr; gap: clamp(3rem, 7vw, 7rem); } }

.faq-band { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-block: var(--space); }
.faq { border-bottom: 1px solid var(--hair-2); }
.faq details { border-top: 1px solid var(--hair-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px; font-size: clamp(1.15rem, 1.8vw, 1.3rem); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; display: grid; place-items: center; flex: none; width: 34px; height: 34px; font-family: var(--text); font-size: 1.4rem; color: var(--gold-text); transition: transform 0.5s var(--settle); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 1.4rem; color: var(--muted); max-width: 62ch; }
@media (min-width: 1000px) { .faq-band { grid-template-columns: 4fr 7fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; } }

/* ================= Checkout ================= */

.checkout { padding-block: clamp(2rem, 5vw, 4rem) var(--space); }
.checkout__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.checkout__title { font-size: clamp(3rem, 6.4vw, 5rem); }
.checkout__grid { display: grid; gap: 3rem; grid-template-columns: 1fr; }
.checkout fieldset { border: 0; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 1.1rem; }
.checkout__terms { color: var(--muted); font-size: 0.95rem; margin-bottom: 1rem; }
.checkout fieldset > legend { font-family: var(--display); font-size: 1.8rem; margin-bottom: 0.4rem; padding: 0; }
.pay-note { padding: 1.1rem 1.3rem; border-radius: var(--r-md); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--muted); }
.pay-note strong { color: var(--ink); font-weight: 500; }
.summary { align-self: start; border-radius: var(--r-xl); background: var(--ink); }
.summary > * { padding-inline: 1.6rem; }
.summary { color: var(--on-ink); }
.summary h2 { font-family: var(--display); font-weight: 400; font-size: 1.9rem; padding-top: 1.4rem; }
.summary__rows { display: grid; gap: 0.6rem; margin-top: 0.8rem; padding-block: 1.2rem 1.5rem; color: var(--on-ink-2); }
.summary__rows div { display: flex; justify-content: space-between; }
.summary__total { color: var(--on-ink); font-family: var(--display); font-size: 1.5rem; padding-top: 0.8rem; box-shadow: 0 -1px 0 var(--hair-ink); }
@media (min-width: 900px) { .checkout__grid { grid-template-columns: 1.3fr 1fr; gap: 4rem; } .summary { position: sticky; top: 7rem; } }

/* WooCommerce's own checkout markup (WordPress only), brought into the system */
.woo-checkout .woocommerce { font-size: 1rem; }
.woo-checkout .col2-set, .woo-checkout #order_review_heading, .woo-checkout #order_review { float: none; width: auto; }
.woo-checkout form.checkout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .woo-checkout form.checkout { grid-template-columns: 1.3fr 1fr; align-items: start; } .woo-checkout #order_review_heading { display: none; } }
.woo-checkout .col2-set { padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--r-xl); background: var(--paper-lt); box-shadow: inset 0 0 0 1px var(--hair), var(--lift-1); }
.woo-checkout .col2-set .col-1, .woo-checkout .col2-set .col-2 { float: none; width: auto; }
.woo-checkout h3 { font-family: var(--display); font-weight: 400; font-size: 1.8rem; margin: 0 0 1rem; }
.woo-checkout .form-row { display: grid; gap: 0.45rem; margin: 0 0 1rem; padding: 0; }
.woo-checkout .form-row label { font-size: 0.74rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.woo-checkout .input-text, .woo-checkout select, .woo-checkout .select2-selection {
  width: 100%; min-height: 54px; padding: 0 1.1rem; font-family: var(--text); font-size: 1.05rem; color: var(--ink);
  background: #fffaf3; border: 1px solid var(--field) !important; border-radius: var(--r-md) !important;
}
.woo-checkout textarea.input-text { padding: 0.9rem 1.1rem; min-height: 120px; }
.woo-checkout #order_review { padding: 1.6rem; border-radius: var(--r-xl); background: var(--ink); color: var(--on-ink); }
.woo-checkout table.shop_table { width: 100%; border-collapse: collapse; border: 0; }
.woo-checkout table.shop_table th, .woo-checkout table.shop_table td { padding: 0.7rem 0; border: 0; border-bottom: 1px solid var(--hair-ink); text-align: left; }
.woo-checkout #payment { margin-top: 1.4rem; background: none; }
.woo-checkout #payment ul.payment_methods { list-style: none; padding: 0; border: 0; }
.woo-checkout #payment div.payment_box { background: rgba(243, 228, 212, 0.08); color: var(--on-ink-2); border-radius: var(--r-md); }
.woo-checkout #payment div.payment_box::before { display: none; }
.woo-checkout #place_order, .woo-checkout .button {
  width: 100%; min-height: 54px; margin-top: 1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--gold-text); color: var(--paper-lt); font-family: var(--text); font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.woo-checkout #place_order:hover { background: var(--paper); color: var(--ink); }
.woo-checkout .woocommerce-info, .woo-checkout .woocommerce-error, .woo-checkout .woocommerce-message {
  list-style: none; padding: 1rem 1.3rem; margin: 0 0 1.5rem; border: 0; border-radius: var(--r-md); background: var(--paper-lt); box-shadow: inset 0 0 0 1px var(--hair-2);
}
.woo-checkout .woocommerce-error { color: var(--danger); }
.woo-checkout .woocommerce-info::before, .woo-checkout .woocommerce-error::before, .woo-checkout .woocommerce-message::before { display: none; }
.woo-checkout a { color: inherit; }

/* ================= 404 and generic pages ================= */

.lost { display: grid; grid-template-columns: 1fr; min-height: calc(100svh - var(--nav-h)); overflow: hidden; background: var(--paper-lt); }
.lost__media { overflow: hidden; min-height: 50svh; }
.lost__media img { width: 100%; height: 100%; object-fit: cover; }
.lost__copy { display: grid; align-content: center; justify-items: start; gap: 1rem; padding: 3rem var(--gut); }
.lost__ar { font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--plum); line-height: 1.7; }
.lost__title { font-size: clamp(2.6rem, 5vw, 4.2rem); }
.lost__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1rem; }
@media (min-width: 900px) { .lost { grid-template-columns: 1fr 1fr; } }

/* Page-builder pages: the builder owns layout and type; give back the
   paragraph and list spacing the design's reset removes. */
.builder-page { overflow-x: clip; }
.builder-page :is(p, ul, ol, blockquote) { margin-block: 0 0.9em; }
.builder-page :is(ul, ol) { padding-left: 1.4em; }
.builder-page img { height: auto; }

.page-generic { padding-block: clamp(2rem, 5vw, 4rem) var(--space); }
.page-generic__title { font-size: clamp(2.8rem, 6vw, 4.8rem); margin-bottom: 2rem; }
/* Pages built by plugins (Ultimate Member, WooCommerce account, forms) or in
   the editor: give their plain controls the house's fields and buttons. */
.page-generic__body { max-width: 760px; }
.page-generic__body > * + * { margin-top: 1.1em; }
.page-generic__body a:not([class*="button"]) { text-decoration: underline; text-underline-offset: 0.25em; }
.page-generic__body :is(input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="url"], input[type="number"], input[type="search"], select, textarea) {
  width: 100%; min-height: 48px; padding: 0.6rem 1rem; border: 1px solid var(--hair-2); border-radius: var(--r-md);
  background: var(--paper-lt); color: var(--ink); font: inherit;
}
.page-generic__body :is(input, select, textarea):focus-visible { outline: 2px solid var(--gold-text); outline-offset: 1px; }
.page-generic__body label { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.page-generic__body :is(button[type="submit"], input[type="submit"], .button, .um-button) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.6rem;
  border: 0; border-radius: 999px; background: var(--ink); color: var(--paper); cursor: pointer;
  font: 500 0.8rem/1 var(--text); letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none;
}
.page-generic__body :is(button[type="submit"], input[type="submit"], .button, .um-button):hover { background: var(--plum); }
.page-generic__body table { width: 100%; border-collapse: collapse; }
.page-generic__body :is(th, td) { padding: 0.7rem 0.5rem; border-top: 1px solid var(--hair-2); text-align: left; }
.woocommerce-MyAccount-navigation ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.2rem 1.4rem; padding: 0; border-bottom: 1px solid var(--hair-2); }
.woocommerce-MyAccount-navigation a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer { margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 640px) { .site-footer { margin-top: 0; } .shop-note { padding-block: 1.5rem 3rem; } }

/* ================= Motion stages (per-perfume Lottie) ================= */

.motion { position: relative; aspect-ratio: 1; width: 100%; }
.motion__poster, .motion__stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.motion__stage { opacity: 0; transition: opacity 0.6s var(--settle); }
.motion__stage svg { display: block; }
/* Hand-over: the animation fades in over the poster (the same frame), then
   the poster steps away so the bottle is never drawn twice. */
.motion.is-live .motion__stage { opacity: 1; }
/* The still bottle stays until every image of the animation has arrived:
   on a slow connection the stage can be live before the bottle is. */
.motion.is-complete .motion__poster { opacity: 0; transition: opacity 0.3s var(--settle) 0.5s; }

.phero__motion { position: relative; z-index: 1; width: min(100%, 680px); animation: phero-in 1.4s var(--settle) both 0.15s; }
.intro .phero__motion { animation-delay: 2.4s; }
@media (min-width: 900px) { .phero__motion { width: min(100%, 72vh, 760px); } }

/* ================= Home: five in motion ================= */

.sequence { padding-top: var(--space); }
.sequence__head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.sequence__head .sec-head__h em { color: var(--plum); }
.sequence__sticky { overflow: hidden; }
.sequence__list { list-style: none; display: grid; gap: 6px; }

/* Stacked (no JS, or reduced motion): each perfume its own tinted panel */
.seq {
  position: relative; display: grid; grid-template-columns: 1fr; align-items: center; gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) var(--gut);
  border-radius: var(--r-xl);
  background: var(--tint);
}
.seq__media { position: relative; display: grid; place-items: center; }
.seq__motion { width: min(100%, 560px); }
.seq__text { display: grid; gap: 0.7rem; justify-items: start; max-width: 30rem; }
.seq__count { color: var(--deep); }
.seq__count span { color: var(--ink); }
.seq__name { font-size: clamp(2.4rem, 4.6vw, 4.2rem); line-height: 1; }
.seq__ar { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--deep); line-height: 1.5; text-align: left; }
.seq__line { font-style: italic; color: var(--muted); font-size: 1.1rem; max-width: 30ch; }
.seq__price { font-family: var(--display); font-size: 1.6rem; }
.seq__price span { font-family: var(--text); font-size: 0.95rem; color: var(--muted); }
.seq__cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 0.6rem; }
.seq__cta .island { max-width: 100%; }
.sequence__progress { display: none; }
.sequence__after { display: flex; justify-content: center; padding-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 900px) { .seq { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; } }

/* Pinned and stepped (motion allowed and scripting on): one viewport of travel per perfume */
.motion-ok .sequence__track { position: relative; height: calc(var(--n) * 100svh); }
/* Touch screens: one snap point per perfume, so the browser itself lands on
   exactly one perfume per swipe (snap-stop: always) — no script fighting the
   finger. Mouse and trackpad keep the scripted one-stroke step instead
   (proximity snapping there pulls the page back just past the last one). */
@media (pointer: coarse) {
  html.motion-ok { scroll-snap-type: y proximity; }
  /* and 60% of a screen per perfume, so one ordinary swipe is one perfume
     even where snapping is weak (site.js reads the step from these heights) */
  .motion-ok .sequence__track { height: calc(100svh + (var(--n) - 1) * 60svh); }
  html.motion-ok .sequence__snaps > span { height: 60svh; }
}
.motion-ok .sequence__snaps { position: absolute; top: 0; left: 0; width: 1px; pointer-events: none; }
.motion-ok .sequence__snaps > span { display: block; height: 100svh; scroll-snap-align: start; scroll-snap-stop: always; }
.sequence__snaps { display: none; }
.motion-ok .sequence__snaps { display: block; }
.motion-ok .sequence__sticky { position: sticky; top: 0; height: 100svh; min-height: 560px; background: var(--paper-dk); }
.motion-ok .sequence__list { position: relative; height: 100%; display: block; }
.motion-ok .seq {
  position: absolute; inset: 0; border-radius: 0;
  padding-top: calc(var(--nav-h) + 30px); padding-bottom: 3.5rem;
  /* Each slide is an opaque, always-rendered layer carrying its own tint, so
     a change of perfume is a compositor crossfade — it stays smooth however
     busy the page is. The slide being left stays fully opaque underneath
     until the new one has faded in over it. (Inactive slides are inert.) */
  opacity: 0; will-change: opacity; pointer-events: none;
  transition: opacity 0s linear 0.7s;
}
.motion-ok .seq.is-active { opacity: 1; z-index: 1; pointer-events: auto; transition: opacity 0.7s var(--settle); }
.motion-ok .seq__text > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--settle), transform 0.8s var(--settle); }
.motion-ok .seq.is-active .seq__text > * { opacity: 1; transform: none; }
.motion-ok .seq.is-active .seq__text > :nth-child(2) { transition-delay: 0.05s; }
.motion-ok .seq.is-active .seq__text > :nth-child(3) { transition-delay: 0.1s; }
.motion-ok .seq.is-active .seq__text > :nth-child(4) { transition-delay: 0.15s; }
.motion-ok .seq.is-active .seq__text > :nth-child(n+5) { transition-delay: 0.2s; }
.motion-ok .sequence__progress { display: flex; flex-direction: column; position: absolute; right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; transform: translateY(-50%); }
.sequence__progress button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
}
.sequence__progress button::before {
  content: ""; width: 3px; height: 26px; border-radius: 3px; background: rgba(27, 24, 18, 0.42);
  transition: background-color 0.5s var(--settle), height 0.5s var(--settle), width 0.5s var(--settle);
}
.sequence__progress button:hover::before { background: rgba(27, 24, 18, 0.7); }
.sequence__progress button.is-active::before { background: var(--ink); height: 40px; }
.sequence__progress button:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; border-radius: 12px; }
@media (max-width: 899px) {
  .motion-ok .seq { grid-template-columns: minmax(0, 1fr); grid-template-rows: 1fr auto; align-content: stretch; padding-bottom: 3.75rem; gap: 0.6rem; }
  /* stretched to its row: centred, it sized to its content and the
     percentage-height animation inside it collapsed to nothing */
  .motion-ok .seq__media { min-height: 0; align-self: stretch; }
  .motion-ok .seq__motion { width: auto; height: 100%; max-height: min(46svh, calc(100vw - 2 * var(--gut))); }
  .motion-ok .seq__name { font-size: clamp(2rem, 9vw, 2.8rem); }
  .motion-ok .seq__line { display: none; }
  .motion-ok .sequence__progress { flex-direction: row; top: auto; bottom: 0.6rem; right: 50%; transform: translateX(50%); }
  .motion-ok .sequence__progress button::before { width: 22px; height: 3px; }
  .motion-ok .sequence__progress button.is-active::before { width: 38px; height: 3px; }
}

/* ================= Find your scent ================= */

.scent-head { display: grid; justify-items: center; text-align: center; gap: 1rem; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.scent-head__lede { text-align: center; max-width: 56ch; text-wrap: balance; }

/* How a perfume unfolds: three columns of text under one rule */
.pyramid { padding-bottom: clamp(3rem, 6vw, 5rem); scroll-margin-top: calc(var(--nav-h) + 1rem); }
.pyramid__eyebrow { color: var(--gold-text); margin-bottom: 0.8rem; }
.pyramid__tiers { list-style: none; display: grid; grid-template-columns: 1fr; gap: 0 clamp(2rem, 4vw, 3.5rem); }
.pyramid__tier { display: grid; gap: 0.4rem; align-content: start; padding-block: 1.4rem; border-top: 1px solid var(--hair-2); }
.pyramid__label { color: var(--gold-text); }
.pyramid__name { font-size: 1.6rem; line-height: 1.2; }
.pyramid__when { font-style: italic; color: var(--deep); }
.pyramid__body { color: var(--muted); max-width: 44ch; }
@media (min-width: 900px) { .pyramid__tiers { grid-template-columns: repeat(3, 1fr); } }

/* The chooser: chips by character, one line for the chosen character, the cards */
.chooser { padding-bottom: var(--space); }
.chooser__head { display: grid; gap: 1rem; justify-items: start; margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips[hidden] { display: none; }
.chip {
  min-height: 44px; padding: 0 1.15rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); color: var(--ink);
  font: 400 1rem var(--text); transition: background-color 0.35s var(--settle), color 0.35s var(--settle);
}
.chip:hover { background: rgba(27, 24, 18, 0.05); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.chooser__line { color: var(--muted); font-style: italic; max-width: 52ch; min-height: 1.6em; }

.scent-grid { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .scent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .scent-grid { grid-template-columns: repeat(3, 1fr); } }
.scent-card {
  display: grid; grid-template-columns: 34% 1fr; gap: 1rem; align-items: center;
  padding: 1.1rem; border-radius: var(--r-xl); background: var(--tint);
}
.scent-card[hidden] { display: none; }
.scent-card__media { display: grid; place-items: center; }
.scent-card__img { width: auto; height: clamp(150px, 18vw, 200px); filter: drop-shadow(0 14px 14px rgba(60, 35, 15, 0.2)); }
.scent-card__body { display: grid; gap: 0.3rem; align-content: start; justify-items: start; }
.scent-card__near { color: var(--gold-text); }
.scent-card__name { font-family: var(--display); font-weight: 400; font-size: 1.45rem; line-height: 1.1; letter-spacing: 0.05em; }
.scent-card__name a { display: inline-block; padding-block: 0.55rem; margin-block: -0.55rem; color: inherit; text-decoration: none; } /* a full 44px to tap */
.scent-card__name a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.scent-card__character { color: var(--deep); }
.scent-card__occasion { font-style: italic; color: var(--ink); line-height: 1.4; }
.scent-card__notes { font-size: 0.95rem; color: var(--muted); }
.scent-card__tbc { font-style: italic; }
.scent-card__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; width: 100%; margin-top: 0.5rem; }
.scent-card__price { font-size: 1.05rem; }
.scent-card__price span { color: var(--muted); font-size: 0.9rem; }
.scent-card--ask { order: 2; grid-template-columns: 1fr; background: transparent; box-shadow: inset 0 0 0 1px var(--hair-2); }
/* A character with one perfume: it shows wide, its closest alternatives beside it */
.scent-grid.is-single .scent-card.is-match { grid-column: 1 / -1; }
@media (min-width: 1000px) { .scent-grid.is-single .scent-card.is-match { grid-template-columns: 22% 1fr; } }
.scent-card.is-near { background: color-mix(in srgb, var(--tint) 55%, var(--paper)); }

/* ================= Product: in its box ================= */

/* Still state (no script, reduced motion): the finished scene with its words */
.unbox { padding-block: var(--space) 0; }
.unbox__stage { position: relative; height: min(100svh, 760px); min-height: 460px; overflow: hidden; background: #ecdccc; }
.unbox__still img, .unbox__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.unbox__canvas { display: none; }
.unbox__head { position: absolute; inset: 0 0 auto; z-index: 2; display: grid; justify-items: center; gap: 0.6rem; padding: clamp(1.6rem, 5vh, 3rem) var(--gut) 0; text-align: center; }
.unbox__end { display: grid; justify-items: center; gap: 0.8rem; margin-top: 0.4rem; }
.unbox__line { font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.unbox__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.2rem; }
.unbox__price { font-size: 1.15rem; }
.unbox__price span { color: var(--muted); font-size: 0.95rem; }

/* Played once, in one motion, as it comes into view — the page is never held */
.motion-ok .unbox__stage { height: 100svh; min-height: 520px; }
.motion-ok .unbox__canvas { display: block; }
.motion-ok .unbox.is-live .unbox__still { visibility: hidden; }
.motion-ok .unbox__head { padding-top: calc(var(--nav-h) + clamp(1rem, 3vh, 2rem)); }
.motion-ok .unbox__end { opacity: 0; visibility: hidden; will-change: opacity, transform; }
.motion-ok .unbox__end.is-on { visibility: visible; }

/* ================= Policy pages ================= */

.policy { padding-block: clamp(2.5rem, 6vw, 5rem) var(--space); }
.policy__title.display { font-size: clamp(2.4rem, 5vw, 4rem); margin-bottom: 2rem; }
.policy__body { max-width: 68ch; }
.policy__body h2 { font-family: var(--display); font-weight: 400; font-size: 1.5rem; letter-spacing: 0.05em; margin: 2.2rem 0 0.6rem; }
.policy__body p, .policy__body li { color: var(--muted); line-height: 1.65; }
.policy__body ul { padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.policy__body strong { color: var(--ink); font-weight: 500; }
.policy__body a { text-decoration: underline; text-underline-offset: 0.2em; }
.policy__body .draft-tag { margin: 0 0 1.4rem; }

/* ================= Home: the REEM box opens ================= */

/* Still state (no script, reduced motion): the finished scene, title above */
.bhero {
  position: relative; overflow: hidden;
  height: calc(100svh - var(--bhero-top, calc(var(--nav-h) + 28px)));
  min-height: 460px;
  background: #ecdccc; /* the plate's own tone, behind everything while it loads */
}
.bhero__still img, .bhero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bhero__canvas { display: none; }
.bhero__copy {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: grid; justify-items: center; gap: 0.5rem;
  padding: clamp(1.4rem, 4.5vh, 3rem) var(--gut) 0; text-align: center;
}
.bhero__title.display { font-size: clamp(2.4rem, 5.4vw, 4.6rem); letter-spacing: 0.06em; }
.bhero__title span { color: var(--gold-text); letter-spacing: 0.1em; }
.bhero__caption { font-style: italic; color: var(--muted); font-size: 1.05rem; }
.bhero__end { display: grid; justify-items: center; gap: clamp(1rem, 2.4vh, 1.5rem); margin-top: 0.6rem; }
.bhero__eyebrow { color: var(--gold-text); margin-bottom: -0.4rem; }
/* A quoted line, so the text face in italic rather than the capitals of the display face */
.bhero__line { font-style: italic; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.25; letter-spacing: 0.005em; color: var(--ink); text-wrap: balance; max-width: 22ch; }
.bhero__hint, .bhero__skip, .bhero__progress { display: none; }

/* Scroll-played (motion allowed, script on) */
.motion-ok .bhero__canvas { display: block; }
.motion-ok .bhero.is-live .bhero__still { visibility: hidden; }
.motion-ok .bhero { touch-action: none; }
.motion-ok .bhero.is-released { touch-action: auto; }
/* JS drives the opacity of the title (fades out) and the closing line (fades in) */
.motion-ok .bhero__copy { inset: 0; grid-template-rows: auto auto 1fr; pointer-events: none; }
.motion-ok .bhero [data-bhero-title], .motion-ok .bhero__end { will-change: opacity, transform; }
.motion-ok .bhero__end {
  position: absolute; left: 0; right: 0; top: clamp(1.4rem, 4.5vh, 3rem); margin: 0; padding-inline: var(--gut);
  opacity: 0; visibility: hidden;
}
.motion-ok .bhero__end.is-on { visibility: visible; pointer-events: auto; }
.motion-ok .bhero__hint {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  position: absolute; left: 50%; bottom: clamp(1.4rem, 5vh, 2.6rem); transform: translateX(-50%); z-index: 2;
  color: var(--muted); transition: opacity 0.4s var(--settle);
}
.motion-ok .bhero__hint::after {
  content: ""; width: 1px; height: 28px; background: currentColor;
  transform-origin: top; animation: bhero-hint 1.8s var(--settle) infinite;
}
@keyframes bhero-hint { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.motion-ok .bhero__hint.is-off { opacity: 0; }
.motion-ok .bhero__skip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem;
  position: absolute; right: max(0.6rem, calc(var(--gut) - 0.6rem)); bottom: 0.6rem; z-index: 3;
  border: 0; background: none; cursor: pointer; color: var(--muted);
  font: 400 0.95rem var(--text); text-decoration: underline; text-underline-offset: 0.25em;
}
.motion-ok .bhero__skip:hover { color: var(--ink); }
.motion-ok .bhero.is-released .bhero__skip { visibility: hidden; }
.motion-ok .bhero__progress { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(27, 24, 18, 0.08); }
.motion-ok .bhero__progress span { display: block; height: 100%; background: var(--gold-text); transform: scaleX(0); transform-origin: left; }

/* ================= Phones: product hero and checkout ================= */
@media (max-width: 899px) {
  /* Add to bag within the first screen and a bit */
  .phero__stage { min-height: 0; }
  .phero__motion { width: min(100%, 300px); }
  .phero__grid { gap: 1rem; padding-block: 0.6rem 2rem; }
  /* See what you're paying for before typing an address */
  .checkout__grid .summary, .woo-checkout #order_review { order: -1; }
  .summary h2 { font-size: 1.5rem; }
}
