/* Shared LUNEA palette. Loaded by the static pages and market layout alike. */
:root {
  --bg: #11100f;
  --bg-2: #1b1917;
  --bg-3: #292521;
  --bg-4: #34302a;
  --bg-5: #403a33;
  --text: #f6f1ea;
  --text-2: #d0c7bd;
  --muted: #a99e92;
  --gold: #bca996;
  --gold-hi: #dfcfbb;
  --gold-lo: #887564;
  --gold-grad: linear-gradient(120deg, #e5d8c6, #bba895 58%, #8e7966);
  --line: rgba(221, 205, 187, .14);
  --line-2: rgba(221, 205, 187, .28);
}
.site-header.is-scrolled { background: rgba(17, 16, 15, .92); }
.mega { background: rgba(27, 25, 23, .98); }
.btn--gold, body[data-page="intl"] .btn--primary { background: var(--gold-grad); color: #1a1714; }
.intl-card h3, .intl-brand__mark { color: var(--text); }
.intl-card p, .intl-list li, .intl-foot__nav a, .intl-chip { color: var(--text-2); }
.intl-card__cta, .intl-switch__code, .intl-switch__cur, .intl-brand__sub { color: var(--gold-hi); }
.intl-card a, .intl-chip, .intl-switch__btn, .intl-foot { border-color: var(--line-2); }
.intl-switch__menu { background: var(--bg-2); border-color: var(--line-2); }
/* Market home shares the same editorial rhythm and category imagery as the BA preview. */
body[data-page="intl"] .intl-home-hero { background: radial-gradient(ellipse at 80% 30%, rgba(188,169,150,.13), transparent 55%), var(--bg); }
.intl-home-hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.intl-home-hero .h-hero { max-width: 13ch; margin: 25px 0; }
.intl-home-hero .lead { max-width: 52ch; }
.intl-home-hero__visual { position: relative; margin: 0; min-height: 450px; overflow: hidden; border-radius: 12px; background: var(--bg-3); }
.intl-home-hero__visual img { width: 100%; height: 100%; max-height: 650px; object-fit: contain; }
.intl-home-hero__visual figcaption { position: absolute; inset: auto 0 0; padding: 40px 24px 20px; display: flex; justify-content: space-between; gap: 12px; background: linear-gradient(transparent,rgba(17,16,15,.93)); font-size: 12px; letter-spacing: .12em; }
.intl-home-hero__visual figcaption span { color: var(--gold-hi); }
body[data-page="intl"] .intl-home-pillars .intl-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
body[data-page="intl"] .intl-home-pillars .intl-card a { padding: 0 0 28px; overflow: hidden; gap: 12px; }
.intl-home-pillars .intl-card__image { width: 100%; aspect-ratio: 4 / 3; background: var(--bg-3); overflow: hidden; }
.intl-home-pillars .intl-card__image img { width: 100%; height: 100%; max-width: none; object-fit: contain; transition: transform .5s; }
.intl-home-pillars .intl-card a:hover .intl-card__image img { transform: scale(1.04); }
body[data-page="intl"] .intl-home-pillars .intl-card h3, body[data-page="intl"] .intl-home-pillars .intl-card p, .intl-home-pillars .intl-card__cta { margin-left: 24px; margin-right: 24px; }
.intl-home-preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 26px; }
.intl-home-preview-grid a { display: block; background: var(--bg-3); border-radius: 12px; overflow: hidden; }
.intl-home-preview-grid img { width: 100%; aspect-ratio: 3/4; object-fit: contain; }
.intl-home-preview-grid span { display: block; font: 500 28px/1.1 var(--serif); padding: 16px; }
@media (max-width: 960px) { body[data-page="intl"] .intl-home-pillars .intl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .intl-home-hero__grid { grid-template-columns: 1fr; }
  .intl-home-hero__visual { min-height: 0; }
  body[data-page="intl"] .intl-home-pillars .intl-cards { grid-template-columns: 1fr; }
  .intl-home-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Pillar heroes with a featured photograph; no dead space before the first section. */
.page-hero--visual { padding-bottom: clamp(30px, 4vw, 50px); }
.page-hero__visual { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-3); }
.page-hero__visual img { display: block; width: 100%; height: auto; aspect-ratio: auto; }
body[data-page="intl"] .page-hero + .section { padding-top: clamp(24px, 3vw, 40px); }
body[data-page="intl"] .page-hero + .section.editorial .editorial-answer { margin-top: 0; }

/* Basic made-to-order shades next to the photographed variants. */
.opt__swatches-sep { flex-basis: 100%; margin-top: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.swatch--custom { width: 30px; height: 30px; }
.opt__note { margin-top: 12px; font-size: 13px; color: var(--text-2); }
.opt__note a { color: var(--gold-hi); }
.studio__swatches .swatch { width: 34px; height: 34px; }

/* Homepage guides: magazine grid with one featured story and image-led cards. */
.guides-mag { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: minmax(250px, auto); gap: 18px; }
.guide-mag { position: relative; display: flex; align-items: flex-end; min-height: 250px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #1b1916; isolation: isolate; }
.guide-mag--feature { grid-row: span 2; border-radius: 180px 180px 24px 24px; }
.guide-mag img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.guide-mag::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 8, .05) 20%, rgba(10, 9, 8, .88) 100%); }
.guide-mag:hover img, .guide-mag:focus-visible img { transform: scale(1.06); }
.guide-mag__body { display: grid; gap: 8px; padding: clamp(18px, 2.2vw, 30px); }
.guide-mag__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.guide-mag__tag { padding: 5px 11px; border-radius: 99px; background: var(--gold-hi); color: var(--bg); font-weight: 600; }
.guide-mag__title { font: 500 clamp(22px, 2vw, 28px)/1.12 var(--serif); color: #fff; }
.guide-mag--feature .guide-mag__title { font-size: clamp(30px, 3.2vw, 44px); }
.guide-mag__text { font-size: 14px; color: rgba(255, 255, 255, .78); max-width: 42ch; }
.guide-mag__cta { margin-top: 6px; font-size: 13px; color: var(--gold-hi); }
@media (max-width: 960px) { .guides-mag { grid-template-columns: 1fr 1fr; } .guide-mag--feature { grid-column: 1 / -1; grid-row: auto; min-height: 420px; border-radius: 140px 140px 24px 24px; } }
@media (max-width: 600px) { .guides-mag { grid-template-columns: 1fr; } .guide-mag { min-height: 230px; } .guide-mag--feature { min-height: 380px; } }

/* Academy library: tabs over image cards (all panels stay visible without JS). */
.academy-lib h2 { margin: 14px 0 26px; }
.academy-tabs { display: none; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; margin-bottom: 30px; border-bottom: 1px solid var(--line); }
.academy-lib.is-tabbed .academy-tabs { display: flex; }
.academy-lib.is-tabbed .academy-panel__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.academy-tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1px solid var(--line-2); border-radius: 99px; font-size: 13px; color: var(--text-2); transition: background .2s, color .2s; }
.academy-tab span { font-size: 11px; opacity: .7; }
.academy-tab[aria-selected="true"], .academy-tab:hover { background: var(--gold-hi); border-color: var(--gold-hi); color: var(--bg); }
.academy-panel { margin-bottom: 40px; }
.academy-panel__title { margin-bottom: 18px; font: 500 28px/1.1 var(--serif); }
.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.academy-grid li:first-child { grid-column: span 2; }
.academy-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 250px; height: 100%; padding: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #1b1916; isolation: isolate; }
.academy-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.academy-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 9, 8, .1), rgba(10, 9, 8, .9)); }
.academy-card:hover img { transform: scale(1.06); }
.academy-card__tag { align-self: flex-start; padding: 4px 10px; border-radius: 99px; background: var(--gold-hi); color: var(--bg); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.academy-card__title { font: 500 clamp(21px, 2vw, 28px)/1.12 var(--serif); color: #fff; }
.academy-card__text { font-size: 14px; color: rgba(255, 255, 255, .78); }
@media (max-width: 900px) { .academy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .academy-grid { grid-template-columns: 1fr; } .academy-grid li:first-child { grid-column: auto; } .academy-tabs { flex-wrap: nowrap; overflow-x: auto; } .academy-tab { white-space: nowrap; } }

/* Product page: related guides and category links. */
.pdp-related h2 { margin: 12px 0 24px; }
.guides-mag--compact { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); }
.guides-mag--compact .guide-mag { min-height: 220px; }
.pdp-related .landing-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pdp-related .landing-links a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 40px; font-size: 14px; }
@media (max-width: 760px) { .guides-mag--compact { grid-template-columns: 1fr; } }

.related-guides h2, .brand-facts h2 { margin: 12px 0 24px; }
.brand-facts__note { margin-top: 18px; color: var(--text-2); }

/* Card colour swatches are buttons that swap the wig in place. */
.pcard .sw { border: 0; padding: 0; cursor: pointer; }

/* Neutral product stages keep every shade legible without feathering the hair. */
.pcard__media, .pdp__stage, .thumb, #studioTT, .detail-card { background: #d9dcde; }
.pcard__media, .pdp__stage { border-radius: 8px; border: 1px solid #b9bec2; }
.pcard__media { aspect-ratio: 2 / 3; }
.pcard__img, #pdpImg, .detail-card img { object-fit: contain; padding: 0; }
.pcard__media::after { display: none; }
.pcard:hover .pcard__img { transform: none; }
.pcard .pcard__img--alt { display: none; }
.pdp__stage { aspect-ratio: 3 / 4; }
.pdp__stage:has(#pdpImg[src*="/atelier-v5/"]) { aspect-ratio: 2 / 3; }
.pdp__view { transition: none; }
.tt__canvas { image-rendering: auto; }
#studioTT .tt__top, .pdp__stage .tt__top, .thumb--360 { color: #292d31; }
#studioTT .tt__deg small, .pdp__stage .tt__deg small { color: #4b5359; }
#studioTT .tt__tag, .pdp__stage .tt__tag { color: #292d31; background: #eef0f1; border-color: #b9bec2; }
.detail-card img { height: 100%; }
#studioTT .tt__controls { left: auto; right: 12%; bottom: 14px; transform: none; background: #242321; }

.pcard[data-category] .pcard__media { aspect-ratio: 4 / 5; }
