/* Concept: a quiet maison. Bone paper, espresso ink, one champagne-gold accent.
   Square edges, hairline rules, generous space, a light serif with italic emphasis. */
:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --fig-1: #F4E7E1; --fig-2: #F1E9D9; --fig-3: #E6EAE1; --fig-soft: rgba(255,255,255,0.6);
  --ink: #1F1A17;
  --muted: #6B625A;
  --accent: #8A6A2F;
  --gilt: #C9A96E;
  --on-gilt: #1F1A17;
  --line: #E4DDD2;
  --deep: #1F1A17;
  --on-deep: #EFE6D6;
  --on-deep-muted: #B9AD9A;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121010; --surface: #1A1716; --fig-1: #2A211F; --fig-2: #27221B; --fig-3: #20251F; --fig-soft: rgba(255,255,255,0.05); --ink: #EFE8DE; --muted: #B3A89A;
    --accent: #D4B67C; --gilt: #C9A96E; --on-gilt: #1A1410; --line: #3A332D;
    --deep: #0B0A09; --on-deep: #EFE6D6; --on-deep-muted: #A89C8A; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121010; --surface: #1A1716; --fig-1: #2A211F; --fig-2: #27221B; --fig-3: #20251F; --fig-soft: rgba(255,255,255,0.05); --ink: #EFE8DE; --muted: #B3A89A;
  --accent: #D4B67C; --gilt: #C9A96E; --on-gilt: #1A1410; --line: #3A332D;
  --deep: #0B0A09; --on-deep: #EFE6D6; --on-deep-muted: #A89C8A; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-weight: 300; font-size: 1.0625rem; line-height: 1.7;
  -webkit-text-size-adjust: 100%;
}
img, video { max-width: 100%; }
[hidden] { display: none !important; }
strong, b { font-weight: 500; }
a { color: inherit; text-decoration-color: var(--gilt); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
em { font-style: italic; }

.page { overflow-x: clip; }
.in { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 5vw, 40px); }

/* announcement + header */
.announce { background: var(--deep); color: var(--on-deep); text-align: center; padding: 9px 16px; font-size: 0.6875rem; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase; }
.announce p { margin: 0; }
.site { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px 14px; }
.brand-mark { display: inline-flex; align-items: baseline; text-decoration: none; font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1; letter-spacing: 0.04em; color: var(--ink); }
.brand-mark:hover { color: var(--ink); }
.brand-mark img { display: none; }
.brand-mark span em { color: var(--accent); }
.site-cta { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--ink); padding: 10px 18px; white-space: nowrap; }
.site-cta:hover { background: var(--ink); color: var(--bg); }
.tabs-row { display: flex; justify-content: center; gap: 4px 40px; overflow-x: auto; scrollbar-width: none; }
.tabs-row::-webkit-scrollbar { display: none; }
.tabs a { flex: none; text-decoration: none; color: var(--muted); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.6875rem; font-weight: 400; padding: 12px 0 13px; border-bottom: 1px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gilt); }

/* type */
h1, h2, h3 { font-family: var(--font-display); font-weight: 300; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: 0; }
h1 em, h2 em, h3 em { color: var(--accent); }
h1 { font-size: clamp(2.9rem, 8vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3rem); }
h3 { font-size: 1.65rem; font-weight: 400; }
p { margin: 0; }
.lead { font-size: 1.15rem; max-width: 46ch; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 0.9375rem; }
.tag { text-transform: uppercase; letter-spacing: 0.26em; font-size: 0.6875rem; font-weight: 500; color: var(--accent); }
.rule { width: 48px; height: 1px; background: var(--gilt); border: 0; margin: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 0; border: 1px solid var(--ink);
  background: var(--ink); color: var(--bg);
  font: inherit; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-gilt { background: var(--gilt); border-color: var(--gilt); color: var(--on-gilt); }
.btn-gilt:hover { background: transparent; color: var(--on-deep); border-color: var(--on-deep); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* hero */
.hero { background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 40px 72px; align-items: center; padding-block: 80px 96px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; }
.hero-note { color: var(--muted); font-size: 0.875rem; max-width: 48ch; }
.melia-video { margin: 0; justify-self: end; width: min(100%, 320px); min-width: 0; }
.video-frame { aspect-ratio: 9 / 16; overflow: hidden; background: var(--surface); outline: 1px solid var(--gilt); outline-offset: 10px; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.melia-video figcaption { margin-top: 24px; color: var(--muted); font-family: var(--font-display); font-style: italic; font-size: 1.05rem; text-align: center; }

/* sections */
.section { position: relative; padding-block: 88px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-sub { max-width: 60ch; margin-bottom: 40px; }
.view-all { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap; }
.centered { text-align: center; }
.centered .section-head { justify-content: center; flex-direction: column; align-items: center; gap: 14px; }
.centered .section-sub { margin-inline: auto; }

/* category index */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.index-list li { border-bottom: 1px solid var(--line); }
.index-list li:not(:nth-child(3n)) { border-right: 1px solid var(--line); }
.index-list a { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 28px 24px; text-decoration: none; transition: background 0.2s; }
.index-list a:hover { background: var(--surface); color: var(--ink); }
.index-n { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--accent); grid-row: span 2; }
.index-name { font-family: var(--font-display); font-size: 1.75rem; line-height: 1.1; }
.index-sub { color: var(--muted); font-size: 0.875rem; letter-spacing: 0.02em; }

/* finder */
.finder-band { background: var(--surface); border-block: 1px solid var(--line); margin-top: 88px; padding-block: 88px; }
.finder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); gap: 40px 72px; align-items: start; }
.finder-intro { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.finder-intro ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; color: var(--muted); }
.finder-intro li { padding-block: 12px; border-top: 1px solid var(--line); font-size: 0.9375rem; }
.finder-intro li:last-child { border-bottom: 1px solid var(--line); }

.chat { background: var(--bg); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; height: min(640px, 82vh); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px -36px rgba(31,26,23,0.35); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); flex: none; }
.chat-head img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; filter: saturate(0.85); }
.avatar-wrap { position: relative; flex: none; display: flex; }
.avatar-wrap::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #5B9A6B; border: 2px solid var(--surface); }
.chat-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.chat-title strong { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; line-height: 1.1; }
.chat-title span { color: var(--muted); font-size: 0.8125rem; }
.chat-progress { flex: none; height: 2px; background: var(--line); }
.chat-progress i { display: block; height: 100%; background: var(--gilt); transition: width 0.4s ease; }
.thread { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 20px 16px 12px; scroll-behavior: smooth; overscroll-behavior: contain; }
.day-mark { align-self: center; color: var(--muted); font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0 0 10px; }
.row { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; animation: rise 0.28s ease-out; }
.row-melia { align-self: flex-start; padding-right: 12%; }
.row-you { align-self: flex-end; justify-content: flex-end; padding-left: 18%; margin: 6px 0 8px; }
.row .mini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.row .mini-gap { width: 28px; flex: none; }
.bubble { padding: 10px 15px; line-height: 1.5; font-size: 0.975rem; overflow-wrap: anywhere; border-radius: 18px; min-width: 0; }
.row-melia .bubble { background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 6px; }
.row-melia.cont .bubble { border-top-left-radius: 6px; }
.row-you .bubble { background: var(--ink); color: var(--bg); border-bottom-right-radius: 6px; font-weight: 400; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: 0.4; animation: blink 1.1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; transform: translateY(0); } 40% { opacity: 0.9; transform: translateY(-2px); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.composer { flex: none; border-top: 1px solid var(--line); background: var(--surface); padding: 12px 16px 10px; }
.composer-label { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 8px; text-align: right; }
.choices { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.chip {
  font: inherit; font-size: 0.875rem; font-weight: 400; color: var(--ink); background: var(--bg); cursor: pointer;
  border: 1px solid var(--gilt); border-radius: 999px; padding: 8px 16px; text-align: left; transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chat-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 8px; }
.linklike { font: inherit; font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 4px; }
.linklike:hover { color: var(--ink); }

/* result */
.row-pick { padding-right: 0; align-self: stretch; }
.pick { flex: 1 1 auto; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gilt); border-radius: 18px; border-bottom-left-radius: 6px; padding: 20px 18px; display: flex; flex-direction: column; gap: 12px; font-size: 0.95rem; }
.pick h3 { font-size: clamp(1.7rem, 4vw, 2.1rem); font-weight: 400; }
.pick h4 { margin: 14px 0 0; font-size: 0.6875rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.24em; color: var(--accent); }
.pick .looks-for { color: var(--muted); }
.bottles { list-style: none; margin: 0; padding: 0; }
.bottles li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; padding-block: 14px; border-top: 1px solid var(--line); }
.bottles li:last-child { border-bottom: 1px solid var(--line); }
.bottle-text { min-width: 0; flex: 1 1 14rem; }
.bottle-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; display: block; line-height: 1.25; }
.bottle-note { color: var(--muted); font-size: 0.9375rem; }
.bottle-link { font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.tip-list { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px; }
.tip-list li::marker { color: var(--gilt); }

/* perfume families */
.families { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.family { padding: 32px 22px 34px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.family + .family { border-left: 1px solid var(--line); }
.family-n { font-family: var(--font-display); font-style: italic; color: var(--accent); font-size: 1.1rem; }
.family h3 { font-size: 1.5rem; }
.family p { color: var(--muted); font-size: 0.9rem; }

/* numbered notes */
.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
.notes li { padding-block: 28px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 3.6rem minmax(0, 1fr); gap: 6px 8px; min-width: 0; }
.note-n { grid-row: span 2; font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--accent); line-height: 1.3; }
.note-ic { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gilt); display: grid; place-items: center; color: var(--accent); background: var(--surface); margin-top: 2px; }
.note-ic svg { width: 20px; height: 20px; }
.notes h3 { font-size: 1.5rem; }
.notes p { color: var(--muted); }

/* spotlight banner */
.banner { background: var(--deep); color: var(--on-deep); padding: clamp(36px, 7vw, 80px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; outline: 1px solid var(--gilt); outline-offset: -14px; }
.banner > div { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 52ch; }
.banner .tag { color: var(--gilt); }
.banner h2 em { color: var(--gilt); }
.banner p:last-child { color: var(--on-deep-muted); }

/* white bands for contrast */
.band { background: var(--surface); border-block: 1px solid var(--line); margin-top: 88px; padding-block: 88px; }
main:has(> .band:last-child) + .site-foot { margin-top: 0; }
@media (max-width: 860px) { .band { margin-top: 64px; padding-block: 64px; } }

/* editorial notes */
.editorial { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.editorial a { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.ed-fig { margin: 0 0 8px; aspect-ratio: 2 / 1; display: grid; place-items: center; color: var(--accent); overflow: hidden; position: relative; }
.ed-fig::after { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gilt); opacity: 0.45; pointer-events: none; }
.ed-fig svg { height: 82%; width: auto; transition: transform 0.5s ease; }
.editorial a:hover .ed-fig svg { transform: scale(1.04); }
.ed-1 { background: var(--fig-1); } .ed-2 { background: var(--fig-2); } .ed-3 { background: var(--fig-3); }
.editorial a:hover { color: var(--ink); }
.editorial a:hover h3 { color: var(--accent); }
.editorial h3 { font-size: 1.85rem; transition: color 0.2s; }
.editorial p { color: var(--muted); font-size: 0.9375rem; }
.editorial .more { margin-top: 6px; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink); }

/* house list */
.houses { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.houses li { display: flex; align-items: center; }
.houses li + li::before { content: ""; width: 4px; height: 4px; background: var(--gilt); transform: rotate(45deg); margin-inline: 22px; }
.houses a { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); text-decoration: none; }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
.faq details { border-top: 1px solid var(--line); padding-block: 20px; }
.faq summary { cursor: pointer; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.2; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-family: var(--font-body); font-weight: 300; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin-top: 10px; color: var(--muted); }

/* brands */
.brand-row { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 8px 48px; padding-block: 32px; border-top: 1px solid var(--line); }
.brand-row h2 { font-size: 2rem; }
.brand-row .based { color: var(--accent); font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 500; margin-top: 8px; }
.brand-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; max-width: 62ch; }
.brand-row:last-of-type { border-bottom: 1px solid var(--line); }

/* prose pages */
.page-head { padding-block: 64px 36px; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font-size: clamp(2.6rem, 6.5vw, 4.2rem); }
.prose { max-width: 66ch; display: flex; flex-direction: column; gap: 14px; padding-bottom: 24px; }
.prose h2 { font-size: 1.9rem; margin-top: 26px; }
.prose ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.copy-box { display: inline-block; padding: 2px 0; border-bottom: 1px solid var(--gilt); user-select: all; font-weight: 400; }

/* footer */
.site-foot { margin-top: 112px; background: var(--deep); color: var(--on-deep-muted); padding-block: 56px 40px; font-size: 0.875rem; }
.site-foot .in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.foot-brand { font-family: var(--font-display); font-size: 2.2rem; font-weight: 300; letter-spacing: 0.04em; color: var(--on-deep); line-height: 1; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; }
.site-foot a { color: var(--on-deep); text-decoration: none; font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; }
.site-foot a:hover { color: var(--gilt); }
.foot-note { max-width: 64ch; }
.foot-copy { font-size: 0.75rem; letter-spacing: 0.1em; }

/* try-on */
.tryon { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 72px; align-items: start; }
.tryon-intro { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tryon-notes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.tryon-notes li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding-block: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.tryon-notes li:last-child { border-bottom: 1px solid var(--line); }
.tryon-notes svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.tryon-app { border: 1px solid var(--line); background: var(--bg); border-radius: 22px; overflow: hidden; min-width: 0; }
.stage { position: relative; background: var(--fig-1); aspect-ratio: 4 / 5; max-height: 560px; width: 100%; display: grid; place-items: center; overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.stage-empty { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 24px; color: var(--muted); font-size: 0.9375rem; }
.stage-empty svg { width: 72px; height: 72px; color: var(--accent); }
.stage-status { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 0.8125rem; color: var(--ink); text-align: center; }
.tryon-ctrl { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; background: var(--surface); border-top: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; align-self: flex-start; }
.seg button { font: inherit; font-size: 0.8125rem; border: 0; background: none; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--surface); outline: 1px solid var(--line); cursor: pointer; padding: 0; }
.sw-none { background: linear-gradient(135deg, transparent 46%, var(--muted) 46%, var(--muted) 54%, transparent 54%), var(--surface) !important; }
.sw[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.sw-label { font-size: 0.8125rem; color: var(--muted); min-height: 1.3em; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.prod-pick { display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.prod-pick select { font: inherit; font-size: 0.9375rem; letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-width: 100%; }
.try-link { font: inherit; font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 4px; white-space: nowrap; }
.bottle-links { display: flex; gap: 16px; flex-wrap: wrap; }
.tryon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.tryon-row label { font-size: 0.8125rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex: 1 1 200px; }
.tryon-row input[type=range] { flex: 1; accent-color: var(--accent); }
.pill-btn { font: inherit; font-size: 0.8125rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.pill-btn:hover { border-color: var(--ink); }
.upload-row { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-row label.btn { cursor: pointer; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.disclaimer { font-size: 0.75rem; color: var(--muted); line-height: 1.5; }
.pick-try { align-self: flex-start; margin-top: 4px; }

/* floating Melia */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--gilt); background: var(--surface); color: var(--ink); font: inherit; font-size: 0.875rem; cursor: pointer; box-shadow: 0 14px 36px -18px rgba(31,26,23,0.5); transition: transform 0.2s; }
.fab:hover { transform: translateY(-2px); }
.fab img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.fab .ring { position: relative; display: flex; }
.fab .ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--gilt); animation: halo 2.6s ease-out infinite; }
@keyframes halo { 0% { opacity: 0.9; transform: scale(0.95); } 100% { opacity: 0; transform: scale(1.3); } }
.fab-label { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.fab-label strong { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.fab-label span { font-size: 0.6875rem; color: var(--muted); letter-spacing: 0.06em; }
.fab[aria-expanded="true"] { display: none; }
.fab.fab-away { opacity: 0; transform: translateY(12px); pointer-events: none; }
.fab { transition: transform 0.2s, opacity 0.25s; }
.fab-hint { position: fixed; right: 24px; bottom: 92px; z-index: 40; max-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px 16px 4px 16px; padding: 12px 34px 12px 14px; font-size: 0.875rem; line-height: 1.45; box-shadow: 0 14px 36px -20px rgba(31,26,23,0.45); animation: rise 0.3s ease-out; }
.fab-hint button { position: absolute; top: 4px; right: 6px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 4px 6px; }
.ask-panel { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 48px)); background: var(--bg); border: 1px solid var(--line); border-radius: 22px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(31,26,23,0.55); animation: rise 0.25s ease-out; }
.ask-panel .chat-head { padding: 12px 14px 12px 16px; }
.icon-btn { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 16px; height: 16px; }
.ask-thread { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; padding: 16px 14px 10px; overscroll-behavior: contain; }
.ask-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px 36px; }
.ask-actions .chip { font-size: 0.8125rem; padding: 6px 13px; }
.ask-quick { display: flex; gap: 6px; overflow-x: auto; padding: 0 14px 10px; scrollbar-width: none; flex: none; }
.ask-quick::-webkit-scrollbar { display: none; }
.ask-quick .chip { flex: none; font-size: 0.8125rem; padding: 6px 13px; }
.ask-form { flex: none; display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--surface); }
.ask-form input, .inline-ask input { flex: 1; min-width: 0; font: inherit; font-size: 0.9375rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; }
.ask-form input:focus, .inline-ask input:focus { outline: none; border-color: var(--gilt); }
.send-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); cursor: pointer; display: grid; place-items: center; }
.send-btn:disabled { opacity: 0.4; cursor: default; }
.send-btn svg { width: 18px; height: 18px; }
.ask-note { flex: none; font-size: 0.6875rem; color: var(--muted); text-align: center; padding: 0 12px 8px; background: var(--surface); }
.inline-ask { display: flex; gap: 8px; margin-top: 10px; }
.inline-ask .send-btn { width: 40px; height: 40px; }

/* mobile bottom bar */
.bottom-bar { display: none; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 48px 64px; }
  .melia-video { justify-self: center; width: min(100%, 260px); }
  .finder { grid-template-columns: minmax(0, 1fr); }
  .notes { grid-template-columns: minmax(0, 1fr); }
  .brand-row { grid-template-columns: minmax(0, 1fr); }
  .tabs { display: none; }
  .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .index-list li:not(:nth-child(3n)) { border-right: 0; }
  .index-list li:nth-child(odd) { border-right: 1px solid var(--line); }
  .index-list a { padding: 22px 14px; grid-template-columns: 1.8rem minmax(0, 1fr); }
  .index-name { font-size: 1.45rem; }
  .families { grid-template-columns: minmax(0, 1fr); border-bottom: 0; }
  .family { padding: 24px 0; border-bottom: 1px solid var(--line); }
  .family + .family { border-left: 0; }
  .editorial { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .section { padding-block: 64px 0; }
  .finder-band { margin-top: 64px; padding-block: 64px; }
  .site-row { padding-block: 16px; }
  .brand-mark { font-size: 1.6rem; }
  .site-cta { padding: 9px 12px; letter-spacing: 0.16em; }
  .tryon { grid-template-columns: minmax(0, 1fr); }
  .fab { right: 14px; bottom: 82px; padding: 4px; }
  .fab img { width: 48px; height: 48px; }
  .fab-label { display: none; }
  .fab-hint { right: 14px; bottom: 146px; }
  .ask-panel { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100dvh - 16px); max-height: none; z-index: 60; }
  .page { padding-bottom: 68px; }
  .bottom-bar {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--bg); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; text-decoration: none; color: var(--muted); font-size: 0.5625rem; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; }
  .bottom-bar a:hover { color: var(--ink); }
  .bottom-bar svg { width: 20px; height: 20px; stroke-width: 1.2; }
  .bottom-bar .bb-melia { color: var(--accent); }
  .bottom-bar .bb-melia img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; outline: 1px solid var(--gilt); outline-offset: 2px; }
}
@media (max-width: 420px) {
  .site-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .row { animation: none; }
  .fab .ring::after { animation: none; }
  .typing span { animation: none; opacity: 0.6; }
  .thread { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== v2: white, photographic, bold sans (after Faces / Sephora) ===== */
:root { --bg: #FFFFFF; --surface: #FFFFFF; --soft: #F7F3EE; --ink: #141210; --muted: #5E5852; --line: #ECE6DF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bg: #121010; --surface: #1A1716; --soft: #201C19; } }
:root[data-theme="dark"] { --bg: #121010; --surface: #1A1716; --soft: #201C19; }
body { font-weight: 400; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: -0.015em; line-height: 1.12; }
h1 em, h2 em, h3 em { font-family: var(--font-display); font-weight: 500; font-style: italic; letter-spacing: 0; }
h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.2rem; }
.lead { color: var(--muted); font-size: 1.125rem; }
.lead strong, .muted strong, .section-sub strong { color: var(--ink); font-weight: 600; }
.tag { font-weight: 600; }
.btn { font-weight: 600; border-radius: 999px; padding: 15px 28px; }
.announce { font-weight: 500; }
.tabs a { font-weight: 500; color: var(--ink); }
.site-cta { border-radius: 999px; font-weight: 600; }
/* hero */
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding-block: 56px 72px; gap: 40px 64px; }
.hero-media { position: relative; min-width: 0; justify-self: end; width: min(100%, 520px); }
.hero-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; border-radius: 20px; }
.hero-media .melia-video { position: absolute; left: -36px; bottom: -28px; width: 132px; margin: 0; background: var(--surface); padding: 6px; border-radius: 16px; box-shadow: 0 18px 40px -20px rgba(20,18,16,0.45); }
.hero-media .video-frame { border-radius: 11px; outline: 0; }
.hero-media .melia-video figcaption { margin-top: 6px; font-family: var(--font-body); font-style: normal; font-size: 0.6875rem; line-height: 1.35; color: var(--muted); text-align: left; padding: 0 2px 2px; }
.hero-media .melia-video figcaption strong { color: var(--ink); display: block; font-size: 0.75rem; }
.hero-points { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; }
.hero-points li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--soft); border-radius: 14px; font-size: 0.8125rem; color: var(--muted); line-height: 1.35; }
.hero-points strong { color: var(--ink); font-size: 0.9375rem; font-weight: 600; }
/* category tiles */
.cats { padding-top: 24px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tiles a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
.tile-img { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--soft); margin-bottom: 8px; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.tiles a:hover .tile-img img { transform: scale(1.05); }
.tile-name { font-weight: 600; font-size: 1rem; color: var(--ink); }
.tile-sub { font-size: 0.8125rem; color: var(--muted); }
/* finder band */
.finder-band { background: var(--soft); border: 0; }
.finder-intro li { font-size: 0.9375rem; }
.finder-intro li strong { color: var(--ink); font-weight: 600; }
/* families */
.families { border: 0; gap: 12px; }
.family { background: var(--soft); border-radius: 16px; padding: 24px 20px; }
.family + .family { border-left: 0; }
.family-n { font-family: var(--font-body); font-style: normal; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.family h3 { font-size: 1.125rem; }
/* weather */
.weather-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px 64px; align-items: start; }
.weather-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; position: sticky; top: 24px; }
.weather .notes { grid-template-columns: minmax(0, 1fr); }
.notes h3 { font-size: 1.125rem; }
/* banner */
.banner-photo { background: linear-gradient(90deg, rgba(14,10,8,0.35), rgba(14,10,8,0.62) 50%, rgba(14,10,8,0.35)), url(assets/photos/evening-v3.jpg) 60% center / cover no-repeat; border-radius: 20px; outline-offset: -12px; }
.banner h2 { color: #fff; }
/* editorial */
.ed-fig { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin: 0 0 6px; }
.ed-fig::after { display: none; }
.ed-fig img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.editorial a:hover .ed-fig img { transform: scale(1.04); }
.editorial h3 { font-size: 1.25rem; }
.editorial a { border-top: 0; padding-top: 0; }
/* houses as pills */
.houses { gap: 10px; }
.houses li + li::before { display: none; }
.houses a { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; padding: 10px 20px; border-radius: 999px; background: var(--soft); display: inline-block; }
.houses a:hover { background: var(--ink); color: var(--bg); }
/* faq, results, chat */
.faq summary { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; }
.bottle-name { font-family: var(--font-body); font-size: 1rem; font-weight: 600; }
.pick h3 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.chat, .tryon-app { box-shadow: 0 24px 60px -40px rgba(20,18,16,0.35); }
/* try-on sample */
.stage-sample { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage-empty { position: relative; z-index: 1; background: rgba(255,255,255,0.9); border-radius: 18px; padding: 22px 24px; margin: 16px; box-shadow: 0 18px 40px -24px rgba(20,18,16,0.5); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage-empty { background: rgba(26,23,22,0.9); } }
.stage-empty span { font-weight: 500; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 28px 56px; }
  .hero-media { justify-self: stretch; width: 100%; }
  .hero-img { aspect-ratio: 1 / 1; object-position: 50% 20%; }
  .hero-media .melia-video { left: 12px; bottom: -24px; width: 104px; }
  .hero-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hero-points li { padding: 10px; font-size: 0.75rem; }
  .hero-points strong { font-size: 0.8125rem; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .weather-grid { grid-template-columns: minmax(0, 1fr); }
  .weather-img { position: static; aspect-ratio: 4 / 3; object-position: 50% 55%; }
  .families { gap: 10px; }
  .family { padding: 18px; border-bottom: 0; }
}
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* logo */
.brand-mark { align-items: center; gap: 12px; }
.brand-mark img { display: block; width: 72px; height: 72px; border-radius: 50%; flex: none; }
.brand-text { display: flex; flex-direction: column; gap: 4px; }
.brand-text small { font-family: var(--font-body); font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.site-row { padding-block: 14px 8px; }
.foot-logo { width: 180px; height: 180px; border-radius: 50%; background: #fff; display: block; }
@media (max-width: 860px) { .brand-mark img { width: 52px; height: 52px; } .brand-text small { display: none; } .site-row { padding-block: 10px; } }

/* hero image: fit the first screen */
.hero-media { width: min(100%, 370px); }
.hero-img { max-height: calc(100vh - 300px); min-height: 360px; }
.hero-grid { padding-block: 40px 56px; align-items: center; }
@media (max-width: 860px) {
  .hero-media { width: min(100%, 340px); justify-self: center; }
  .hero-img { aspect-ratio: 4 / 5; max-height: 420px; min-height: 0; }
}

/* family images */
.family { padding: 0 0 22px; overflow: hidden; gap: 10px; }
.family > :not(.family-img) { margin-inline: 18px; }
.family-img { display: block; aspect-ratio: 1; overflow: hidden; margin-bottom: 6px; background: linear-gradient(135deg, var(--fig-2), var(--fig-1)); }
.family-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.family:hover .family-img img { transform: scale(1.04); }
@media (max-width: 860px) {
  .families { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family { padding: 0 0 18px; }
  .family > :not(.family-img) { margin-inline: 14px; }
}

/* v3 chat: free text inside, try-on inline */
.chat { height: min(700px, 86vh); }
.composer { padding: 10px 14px 8px; }
.composer-label { text-align: left; }
.choices { justify-content: flex-start; }
.chat-form { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.ask-form input, .chat-form input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid #D6CABD; border-radius: 999px; padding: 12px 18px; }
.ask-form input::placeholder, .chat-form input::placeholder { color: var(--muted); opacity: 1; }
.ask-form input:focus, .chat-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.25); }
.chat-form .send-btn { width: 44px; height: 44px; }
.chat-note { font-size: 0.6875rem; color: var(--muted); text-align: center; margin: 6px 0 0; }
.chat-foot { padding-top: 6px; }
.row-wide { align-self: stretch; padding-right: 0; }
.tryon-inline { flex: 1 1 auto; min-width: 0; }
.tryon-inline .tryon-app { border-radius: 18px; border-bottom-left-radius: 6px; box-shadow: none; }
.tryon-inline .stage { max-height: 340px; }
.tryon-inline .stage-empty { padding: 16px; margin: 10px; gap: 10px; }
.tryon-inline .stage-empty svg { width: 48px; height: 48px; }
.tryon-inline .upload-row .btn { padding: 11px 18px; font-size: 0.6875rem; }
.tryon-inline .tryon-ctrl { padding: 12px 14px 14px; gap: 10px; }
.tryon-away { border: 1px dashed var(--gilt); border-radius: 22px; padding: 28px 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; background: var(--soft); }
.ask-thread .row-wide { margin-right: 0; }

/* inline try-on: see the effect while adjusting */
.tryon-inline { container-type: inline-size; }
.tryon-inline .tryon-app { overflow: visible; }
.tryon-inline .stage { position: sticky; top: -12px; z-index: 2; max-height: 260px; border-radius: 18px 18px 0 0; }
@container (min-width: 470px) {
  .tryon-inline .tryon-app { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); align-items: stretch; overflow: hidden; }
  .tryon-inline .stage { position: relative; top: 0; max-height: none; height: 100%; min-height: 340px; aspect-ratio: auto; border-radius: 0; }
  .tryon-inline .tryon-ctrl { border-top: 0; border-left: 1px solid var(--line); }
  .tryon-inline .stage canvas { object-fit: cover; }
  .tryon-inline .tryon-row label { flex-basis: 100%; }
}

.tryon-teaser { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 56px; align-items: center; }
.teaser-img { width: 100%; height: auto; max-width: 340px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; display: block; }
.tryon-teaser .tryon-intro { gap: 16px; }
@media (max-width: 860px) { .tryon-teaser { grid-template-columns: minmax(0, 1fr); } .teaser-img { max-width: none; aspect-ratio: 16 / 10; object-position: 50% 45%; } }

/* dark menu bar */
.tabs { background: #93725F; }
.tabs a { color: #fff; font-weight: 500; }
.tabs a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.site { border-bottom: 0; }
/* try-on teaser: text left, image right */
.tryon-teaser { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
.tryon-teaser .teaser-img { order: 2; justify-self: end; }
@media (max-width: 860px) { .tryon-teaser { grid-template-columns: minmax(0, 1fr); } .tryon-teaser .teaser-img { order: 0; justify-self: stretch; } }

.chat, .ask-panel { border: 1px solid #DDD0C3; }

/* ===== v4: editorial + commerce components (same tokens, same type) ===== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps li { background: var(--soft); border-radius: 16px; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.step-n { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; color: var(--accent); }
.steps h3 { font-size: 1.125rem; }
.steps p { color: var(--muted); font-size: 0.9375rem; }
.how { padding-top: 72px; }

/* breadcrumbs */
.crumbs { font-size: 0.75rem; letter-spacing: 0.08em; color: var(--muted); padding-top: 28px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--gilt); }
.crumbs a { text-decoration: none; }

/* guides hub */
.guide-tools { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 36px; }
.guide-search { flex: 1 1 260px; max-width: 420px; font: inherit; font-size: 0.9375rem; color: var(--ink); background: var(--surface); border: 1px solid #D6CABD; border-radius: 999px; padding: 11px 18px; }
.guide-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.25); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-pills button { font: inherit; font-size: 0.8125rem; font-weight: 500; border: 0; background: var(--soft); color: var(--ink); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.cat-pills button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.guide-meta { font-size: 0.75rem; color: var(--muted); letter-spacing: 0.04em; }
.guide-empty { color: var(--muted); padding: 24px 0; }
.coming { margin-top: 64px; }
.coming ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.coming li { padding-block: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9375rem; display: flex; justify-content: space-between; gap: 12px; }
.coming li span:last-child { font-size: 0.75rem; color: var(--accent); white-space: nowrap; letter-spacing: 0.06em; }

/* article */
.article-head { padding-block: 20px 28px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.article-head h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.8125rem; color: var(--muted); }
.byline img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.byline strong { color: var(--ink); font-weight: 600; }
.article-hero { margin: 0 0 40px; }
.article-hero img { display: block; width: 100%; max-height: 520px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
.article-body { max-width: 68ch; font-size: 1.0625rem; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-top: 1.9em; scroll-margin-top: 24px; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.5em; }
.article-body ul, .article-body ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.article-body li::marker { color: var(--accent); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; display: block; overflow-x: auto; }
.article-body th, .article-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 120px; }
.article-body th { font-weight: 600; background: var(--soft); }
.article-body blockquote { margin: 1.4em 0; padding: 18px 22px; background: var(--soft); border-radius: 16px; border-left: 2px solid var(--gilt); }
.article-body strong { font-weight: 600; }
.article-aside { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.toc { background: var(--soft); border-radius: 16px; padding: 20px; font-size: 0.875rem; }
.toc p { margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 6px; }
.toc a { text-decoration: none; }
.aside-cta { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.aside-cta img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.aside-cta .btn { padding: 12px 20px; font-size: 0.6875rem; }
.ed-note { font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; margin-top: 40px; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--soft); border-radius: 18px; padding: 22px 24px; margin-block: 2em; }
.inline-cta p { margin: 0; font-weight: 500; max-width: 44ch; }
.inline-cta .btn { padding: 12px 22px; font-size: 0.6875rem; }
.faq-list details { border-top: 1px solid var(--line); padding-block: 14px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list details p { margin-top: 8px; color: var(--muted); }
.related { margin-top: 72px; }

/* disclosure + product cards */
.disclose { font-size: 0.8125rem; color: var(--muted); background: var(--soft); border-radius: 12px; padding: 12px 16px; line-height: 1.5; }
.disclose a { color: var(--ink); }
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-block: 1.6em; }
.prod-card { border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.prod-badge { align-self: flex-start; font-size: 0.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); background: var(--soft); border-radius: 999px; padding: 5px 10px; }
.prod-brand { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.prod-name { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
.prod-why { color: var(--muted); font-size: 0.9rem; }
.prod-facts { font-size: 0.8125rem; color: var(--muted); }
.prod-facts b { color: var(--ink); font-weight: 600; }
.prod-cta { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.prod-cta a { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.prod-cta small { font-size: 0.6875rem; color: var(--muted); }
.sponsored { color: #8A3B2F; }

/* results: guide link */
.pick-guide { font-size: 0.875rem; }

/* consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; box-shadow: 0 24px 60px -30px rgba(20,18,16,0.5); display: flex; flex-direction: column; gap: 12px; font-size: 0.875rem; }
.consent .actions .btn { padding: 10px 18px; font-size: 0.6875rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .coming ul { grid-template-columns: minmax(0, 1fr); }
  .consent { bottom: 80px; }
}
.brand-group { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin: 40px 0 0; padding-bottom: 12px; }
.brand-row { scroll-margin-top: 24px; }

/* ===== v5: catalogue, picks, houses, product pages ===== */
/* wider, better-balanced hero on large screens */
@media (min-width: 1200px) {
  .hero .in { max-width: 1240px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 40px 96px; }
  .hero-media { width: min(100%, 440px); }
  .hero-img { max-height: calc(100vh - 260px); }
}
.meet-btn { display: inline-flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; border: 1px solid var(--gilt); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; min-height: 52px; text-align: left; }
.meet-btn img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.meet-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.meet-btn strong { font-size: 0.875rem; font-weight: 600; }
.meet-btn small { font-size: 0.75rem; color: var(--muted); }
.meet-btn svg { color: var(--accent); }
.meet-btn:hover { border-color: var(--ink); }
.meet-dialog { border: 0; padding: 0; background: transparent; max-width: min(380px, calc(100vw - 32px)); width: 100%; }
.meet-dialog::backdrop { background: rgba(20, 18, 16, 0.6); }
.meet-inner { position: relative; background: var(--surface); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.meet-inner .icon-btn { position: absolute; top: 22px; right: 22px; z-index: 2; margin: 0; }
.meet-inner .video-frame { border-radius: 14px; outline: 0; aspect-ratio: 9 / 16; }
.meet-inner p { text-align: center; }

/* picks tabs */
.pick-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; padding-bottom: 2px; }
.pick-tabs::-webkit-scrollbar { display: none; }
.pick-tabs button { flex: none; font: inherit; font-size: 0.875rem; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; }
.pick-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pick-panel > p.muted { margin-bottom: 4px; }
.panel-more { margin-top: 8px; }
.picks { padding-top: 88px; }

/* product cards with mood image */
.prod-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.prod-card { padding: 0 0 18px; overflow: hidden; }
.prod-card > :not(.prod-media) { margin-inline: 18px; }
.prod-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 8px; background: var(--soft); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.prod-card:hover .prod-media img { transform: scale(1.04); }
.mood-pill { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,0.92); color: #141210; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; border-radius: 999px; padding: 4px 10px; }
.prod-card .prod-badge { margin-top: 2px; }
a.prod-name { color: var(--ink); text-decoration: none; }
a.prod-name:hover { color: var(--accent); }
.prod-cta a { display: inline-flex; align-items: center; min-height: 32px; }

/* houses */
.houses-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.house-card a { display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 2px 16px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; height: 100%; background: var(--surface); }
.house-card a:hover { border-color: var(--gilt); color: var(--ink); }
.house-img { grid-row: 1 / span 4; width: 96px; height: 96px; border-radius: 14px; overflow: hidden; }
.house-img img { width: 100%; height: 100%; object-fit: cover; }
.house-meta { font-size: 0.6875rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.house-card h3 { font-size: 1.125rem; }
.house-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.house-card .more { font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gilt); text-underline-offset: 4px; }
.family h3 a { text-decoration: none; }

/* product page */
.pdp { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 56px; align-items: center; padding-block: 24px 40px; }
.pdp-media { position: relative; margin: 0; }
.pdp-media img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; display: block; }
.pdp-media .mood-pill { bottom: 46px; left: 14px; }
.pdp-media figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.pdp-info { display: flex; flex-direction: column; gap: 16px; }
.pdp-info h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.pdp-info .tag a { text-decoration: none; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 56px; border-top: 1px solid var(--line); padding-top: 40px; }
.pdp-grid h2 { font-size: 1.6rem; margin-bottom: 14px; }
.pdp-grid h3 { font-size: 1rem; margin: 18px 0 6px; }
.pdp-grid ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.pdp-grid li::marker { color: var(--accent); }
.spec { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec th { width: 34%; font-weight: 600; padding-right: 16px; }
.spec + p { margin-top: 10px; }

/* explore pages */
.explore-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: 32px; align-items: center; }
.explore-img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 20px; max-width: 320px; justify-self: end; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 24px; }
.jump a { font-size: 0.875rem; font-weight: 500; text-decoration: none; background: var(--soft); border-radius: 999px; padding: 10px 16px; }
.jump a:hover { background: var(--ink); color: var(--bg); }
.explore-sec { padding-top: 32px; scroll-margin-top: 16px; }

/* consultation results */
.results { flex: 1 1 auto; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--gilt); border-radius: 18px; border-bottom-left-radius: 6px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.results h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
.results h3 em { color: var(--accent); }
.results .summary { color: var(--muted); font-size: 0.9375rem; }
.rec { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.rec-img { grid-row: 1 / span 6; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; position: relative; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; }
.rec-n { font-size: 0.625rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.rec-name { font-weight: 600; line-height: 1.3; color: var(--ink); text-decoration: none; }
.rec-name:hover { color: var(--accent); }
.rec-meta { font-size: 0.8125rem; color: var(--muted); }
.rec-why { font-size: 0.875rem; }
.rec-why li { margin: 0; }
.rec-why ul { margin: 2px 0 0; padding-left: 1em; }
.rec-why li::marker { color: var(--gilt); }
.rec-caveat { font-size: 0.8125rem; color: var(--muted); }
.rec-link { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.res-actions .chip { font-size: 0.8125rem; }
.mode-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: auto; flex: none; }
.mode-switch button { font: inherit; font-size: 0.75rem; border: 0; background: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; cursor: pointer; min-height: 32px; }
.mode-switch button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* readability and tap targets */
.bubble { font-size: 1rem; line-height: 1.55; }
.chip { min-height: 44px; padding: 10px 16px; }
.linklike { min-height: 36px; }
.bottom-bar a { min-height: 48px; justify-content: center; }
.site-foot nav a { display: inline-flex; min-height: 36px; align-items: center; }

@media (max-width: 860px) {
  .houses-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp, .pdp-grid, .explore-head { grid-template-columns: minmax(0, 1fr); }
  .explore-img { display: none; }
  .picks { padding-top: 64px; }
  .meet-btn { align-self: stretch; }
}
@media (min-width: 861px) and (max-width: 1100px) { .houses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* typographic product plates (Ask Melia's own artwork, not brand imagery) */
.plate { position: relative; display: block; overflow: hidden; color: #8A6A2F; background: linear-gradient(var(--ang, 135deg), var(--p1), var(--p2)); }
.plate svg { position: absolute; width: 34%; max-width: 92px; height: auto; right: 8%; top: 50%; transform: translateY(-50%); opacity: 0.55; }
.plate::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; border: 1px solid currentColor; opacity: 0.18; left: var(--cx, -12%); top: var(--cy, -30%); }
.plate-brand { position: absolute; left: 16px; bottom: 16px; right: 40%; font-family: var(--font-display); font-style: italic; font-size: 1.45rem; line-height: 1.1; color: #2B211B; }
.plate .mood-pill { left: auto; right: 10px; top: 10px; bottom: auto; }
.plate.v1 { --ang: 160deg; --cx: 55%; --cy: -40%; } .plate.v2 { --ang: 110deg; --cx: -20%; --cy: 45%; }
.plate.v3 { --ang: 200deg; --cx: 40%; --cy: 55%; } .plate.v4 { --ang: 80deg; --cx: 65%; --cy: 20%; }
.plate-fresh { --p1: #EAF0DF; --p2: #F8F1DB; color: #6E7A3A; }
.plate-floral { --p1: #F5E0E0; --p2: #FBF0EA; color: #A2565E; }
.plate-gourmand { --p1: #ECD8C2; --p2: #F7ECDF; color: #8A5A2F; }
.plate-musk { --p1: #F2ECE6; --p2: #FBF8F3; color: #8A7A6A; }
.plate-woody { --p1: #2F231D; --p2: #5E4231; color: #D4B67C; }
.plate-woody .plate-brand { color: #F3E7D3; }
.plate-complexion { --p1: #EFE0D2; --p2: #F8EFE6; color: #9A6E4E; }
.plate-lips { --p1: #EBCFCE; --p2: #F7E7E4; color: #9E3C4A; }
.plate-cheeks { --p1: #F3D8D0; --p2: #FBEEE9; color: #B8616A; }
.plate-eyes { --p1: #E1DBD5; --p2: #F3EFEB; color: #5E5852; }
.plate-brows { --p1: #E5D9CD; --p2: #F4EEE7; color: #7A5A44; }
.prod-media.plate { aspect-ratio: 16 / 10; }
.rec-img.plate svg { width: 56%; right: 22%; }
.rec-img.plate::before { width: 120%; }
.pdp-media img, .explore-img { height: auto; }
.pdp-media img { max-height: 520px; }
a.prod-name { display: block; padding: 7px 0; }
.view-all { display: inline-block; padding-block: 10px; }
.toc a { display: inline-block; padding-block: 5px; }
.family h3 a, .house-card .more { display: inline-block; padding-block: 6px; }
.prod-cta a { min-height: 40px; }
@media (max-width: 520px) {
  .chat-title span { display: none; }
  .mode-switch button { padding: 6px 10px; }
  .pdp-media img { aspect-ratio: 16 / 10; max-height: 240px; }
  .pdp-media .mood-pill { bottom: 52px; }
  .pdp { padding-top: 8px; gap: 20px; }
}

/* Real product photos (white-background packshots) */
.plate.has-photo { background: #fff; }
.plate.has-photo::before { display: none; }
.prod-media.has-photo img { object-fit: contain; padding: 14px; box-sizing: border-box; background: #fff; }
.prod-media.has-photo .mood-pill { box-shadow: 0 0 0 1px var(--line); }
.rec-img.has-photo { background: #fff; border: 1px solid var(--line); }
.rec-img.has-photo img { object-fit: contain; padding: 6px; box-sizing: border-box; }
.pdp-media.has-photo img { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 24px; box-sizing: border-box; }
.pdp-media.has-photo .mood-pill { bottom: 14px; left: 14px; box-shadow: 0 0 0 1px var(--line); }

.house-img.has-logo { background: #fff; border: 1px solid var(--line); box-sizing: border-box; }
.house-img.has-logo img { object-fit: contain; padding: 10px; box-sizing: border-box; }

.plate.has-photo, .prod-media.has-photo img, .rec-img.has-photo, .pdp-media.has-photo img { background-color: var(--ph-bg, #fff); }
/* newsletter */
.nl { width: 100%; max-width: 560px; padding-bottom: 32px; margin-bottom: 8px; border-bottom: 1px solid rgba(239,230,214,0.14); }
.nl-title { font-family: var(--font-display); font-size: 1.9rem; color: var(--on-deep); margin: 0; line-height: 1.2; }
.nl-title em { color: var(--gilt); }
.nl-sub { margin: 8px auto 18px; max-width: 46ch; }
.nl-row { display: flex; gap: 10px; }
.nl-row input { flex: 1; min-width: 0; padding: 14px 20px; border-radius: 999px; border: 1px solid rgba(239,230,214,0.3); background: transparent; color: var(--on-deep); font: inherit; font-size: 0.95rem; }
.nl-row input::placeholder { color: var(--on-deep-muted); }
.nl-row input:focus { outline: 2px solid var(--gilt); outline-offset: 2px; }
.nl .btn { white-space: nowrap; }
.nl-fine { font-size: 0.75rem; margin: 12px 0 0; }
.site-foot .nl-fine a { font-size: inherit; letter-spacing: 0; text-transform: none; text-decoration: underline; }
.nl-ok { color: var(--gilt); margin: 14px 0 0; font-size: 1rem; }
.nl-hp, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 520px) { .nl-row { flex-direction: column; } .nl-row input, .nl .btn { width: 100%; } }
.nl-row[hidden], .nl-ok[hidden] { display: none; }
