/* =========================================================================
   Bella — experience layer (homepage chapters, Bella Family, motion hooks)
   Idea: the oval of Bella's logo is the stage, the window and the portal.
   Every product arrives on its own pack colour; the Bella Family hosts the
   shelves. Products are always Bella's own photographs and packshots: they
   are moved, scaled and rotated in plane only, never redrawn or recoloured.
   ========================================================================= */

:root {
  --sugar: #fbf7f5;
  --cream: #f4eae5;
  --bone: #efe4de;
  --t-hero: clamp(3rem, 1.2rem + 6.4vw, 7.6rem);
  --t-chapter: clamp(2.6rem, 1.2rem + 5vw, 6.4rem);
  --t-giant: clamp(4rem, 1rem + 10vw, 11rem);
  --rim: clamp(6px, .7vw, 11px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* Chapter rhythm */
.xn, .xt, .xm, .xmap, .xnews { padding-block: clamp(88px, 11vw, 200px); }

[dir="rtl"] .xh__title, [dir="rtl"] .xf__title, [dir="rtl"] .xf__name, [dir="rtl"] .xn__title,
[dir="rtl"] .xm__title, [dir="rtl"] .xmap__title, [dir="rtl"] .xnews__title, [dir="rtl"] .xcta__word { letter-spacing: 0; line-height: 1.22; }

/* ---------- Hero: the oval stage ---------- */
.xh-wrap { position: relative; }
.xh {
  position: sticky; top: calc(var(--head-h) + env(safe-area-inset-top, 0px)); z-index: 0;
  min-height: calc(100svh - var(--head-h));
  background: var(--stage); color: var(--stage-ink);
  overflow: hidden; isolation: isolate;
  transition: background-color .9s var(--ease-out), color .9s var(--ease-out);
}
.xh__in {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center;
  min-height: calc(100svh - var(--head-h)); padding-block: 24px;
}
.xh__copy { display: grid; gap: 28px; align-content: center; position: relative; z-index: 3; }
.xh__title { font-size: var(--t-hero); font-weight: 800; line-height: .94; letter-spacing: -0.03em; max-width: 9.5ch; }
[dir="rtl"] .xh__title { max-width: 11ch; }
.xh__lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.4rem); max-width: 30ch; margin-top: -8px; }
.xh__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.xh__picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.xh__picker [data-dot] {
  width: 64px; height: 46px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--c); border: 3px solid color-mix(in srgb, var(--stage-ink) 35%, transparent);
  display: grid; place-items: center; transition: transform .35s var(--ease-out), border-color .25s;
}
.xh__picker [data-dot] img { width: 54px; height: 54px; object-fit: contain; transform: translateY(-6px); }
.xh__picker [data-dot]:hover { transform: translateY(-3px); }
.xh__picker [data-dot][aria-selected="true"] { border-color: var(--stage-ink); transform: scale(1.12); }
.xh__pause { width: 46px; height: 46px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--stage-ink) 35%, transparent); background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.xh__pause span { width: 12px; height: 14px; border-inline: 4px solid currentColor; }
.xh__pause.is-paused span { width: 0; height: 0; border: 0; border-block: 8px solid transparent; border-inline-start: 13px solid currentColor; margin-inline-start: 3px; }

.xh__stage { position: relative; align-self: stretch; min-height: 560px; }
.xh__oval {
  position: absolute; top: 50%; inset-inline-start: 2%; width: 122%; aspect-ratio: 1.38 / 1;
  translate: 0 -54%; rotate: -8deg; border-radius: 50%;
  background: color-mix(in srgb, var(--stage) 78%, #000);
  border: var(--rim) solid var(--stage-accent);
  outline: calc(var(--rim) * .55) solid color-mix(in srgb, #fff 88%, var(--stage-accent)); outline-offset: calc(var(--rim) * -2.6);
  transition: background-color .9s var(--ease-out), border-color .9s var(--ease-out);
}
[dir="rtl"] .xh__oval { rotate: 8deg; }
.xh__slide { position: absolute; inset: 0; margin: 0; pointer-events: none; visibility: hidden; }
.xh__slide.is-active { pointer-events: auto; visibility: visible; }
.xh__food {
  position: absolute; z-index: 2; left: 50%; top: 44%; width: min(76%, 640px); max-height: 70%; object-fit: contain;
  translate: -50% -50%;
}
[dir="rtl"] .xh__food { left: auto; right: 50%; translate: 50% -50%; }
.xh__pack {
  position: absolute; z-index: 1; inset-inline-end: -4%; top: 6%; width: min(40%, 340px); max-height: 46%; object-fit: contain; rotate: 9deg;
}
[dir="rtl"] .xh__pack { rotate: -9deg; }
.xh__caption { position: absolute; z-index: 3; inset-inline-start: 6%; bottom: 7%; display: grid; gap: 2px; max-width: 60%; }
.xh__name { font-family: var(--f-display); font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.8rem); font-weight: 800; line-height: 1.05; }
.xh__more { margin-top: 6px; font-weight: 600; color: inherit; text-underline-offset: 5px; text-decoration-thickness: 2px; justify-self: start; }
.xh__char { position: absolute; z-index: 4; height: auto; pointer-events: none; }
.xh__char--a { width: clamp(120px, 12vw, 190px); inset-inline-end: 4%; bottom: 3%; }
.xh__char--b { width: clamp(80px, 7.6vw, 124px); inset-inline-end: 33%; bottom: -6%; }

@media (max-width: 900px) {
  .xh { position: relative; top: auto; }
  .xh__in { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-block: 28px 0; row-gap: 8px; }
  .xh__copy { gap: 18px; }
  .xh__title { max-width: 12ch; }
  .xh__picker { order: 3; }
  .xh__stage { min-height: 0; height: 112vw; max-height: 560px; margin-inline: calc(var(--gutter) * -1); }
  .xh__oval { width: 118%; inset-inline-start: -9%; translate: 0 -50%; top: 46%; }
  .xh__food { width: 78%; top: 42%; }
  .xh__pack { width: 36%; top: 2%; inset-inline-end: 4%; }
  .xh__caption { bottom: 4%; inset-inline-start: 5%; max-width: 70%; }
  .xh__char--a { width: 28vw; bottom: 3%; inset-inline-end: 3%; }
  .xh__char--b { display: none; }
}

/* ---------- The Bella Family (horizontal chapter) ---------- */
.xf { position: relative; z-index: 2; background: #b3242f; color: #fff4ec; overflow: clip; }
.xf__track { display: flex; flex-direction: column; }
.xf__panel {
  position: relative; background: var(--c); color: var(--i); overflow: hidden;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 56px);
  min-height: calc(100svh - var(--head-h));
  padding: clamp(40px, 5vw, 72px) max(var(--gutter-r), 4vw) clamp(40px, 5vw, 72px) max(var(--gutter), 4vw);
}
.xf__panel--intro { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; padding-bottom: 0; }
.xf__intro { display: flex; flex-wrap: wrap; align-items: end; gap: 16px clamp(24px, 4vw, 64px); }
.xf__title { font-size: var(--t-chapter); font-weight: 800; line-height: .95; letter-spacing: -0.025em; }
.xf__lede { font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); max-width: 36ch; }
.xf__lineup {
  --k: min(calc((100vw - 120px) / 1890), calc((100svh - var(--head-h) - 330px) / 584));
  display: flex; align-items: flex-end; justify-content: center; align-self: end; gap: 0;
}
.xf__member { position: relative; display: grid; justify-items: center; text-decoration: none; color: inherit; margin-inline: -1.2%; }
.xf__member img { height: calc(var(--h) * var(--k)); width: auto; max-width: none; transition: translate .45s var(--ease-out), rotate .45s var(--ease-out), scale .45s var(--ease-out); transform-origin: 50% 100%; }
.xf__member span {
  position: absolute; bottom: 10px; padding: 6px 16px; border-radius: 999px; background: var(--i); color: var(--c);
  font-family: var(--f-display); font-weight: 800; font-size: 1.05rem; opacity: 0; translate: 0 8px; transition: opacity .25s, translate .3s var(--ease-out);
}
.xf__member:hover img, .xf__member:focus-visible img { translate: 0 -14px; rotate: -3deg; scale: 1.04; }
.xf__member:hover span, .xf__member:focus-visible span { opacity: 1; translate: 0 0; }
.xf__member:focus-visible { outline: none; }
.xf__member:focus-visible span { outline: 3px solid var(--a); outline-offset: 2px; }

.xf__char { align-self: end; display: grid; justify-items: center; margin-bottom: calc(clamp(40px, 5vw, 72px) * -1); }
.xf__char img { width: auto; max-width: 100%; height: min(70svh, 600px); object-fit: contain; transform-origin: 50% 100%; }
.xf__text { display: grid; gap: 14px; align-content: center; }
.xf__name { font-size: clamp(3.6rem, 1rem + 7.4vw, 9rem); font-weight: 800; line-height: .86; letter-spacing: -0.035em; }
.xf__role { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.2rem); color: var(--a); line-height: 1.1; }
.xf__line { font-size: 1.12rem; max-width: 34ch; }
.xf__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.xf__links a {
  display: inline-flex; min-height: 40px; align-items: center; padding: 6px 16px; border-radius: 999px; text-decoration: none; font-weight: 600;
  background: color-mix(in srgb, var(--i) 14%, transparent); transition: background-color .2s, color .2s;
}
.xf__links a:hover, .xf__links a:focus-visible { background: var(--i); color: var(--c); }
.xf__btn { --b: var(--i); color: var(--c); justify-self: start; margin-top: 8px; }
.xf__shelf { position: relative; aspect-ratio: 1 / 1.02; width: 100%; max-width: 640px; justify-self: center; }
.xf__item { position: absolute; inset-inline-start: var(--x); top: var(--y); width: calc(46% * var(--s)); display: block; }
.xf__item img { width: 100%; height: auto; rotate: var(--r); transition: transform .5s var(--ease-out); }
[dir="rtl"] .xf__item img { rotate: calc(var(--r) * -1); }
.xf__item:hover img { transform: translateY(-10px) scale(1.04); }
.xf__item.is-food { z-index: 2; }

/* Wide screens: the chapter becomes a horizontal track, pinned by motion.js */
@media (min-width: 1000px) {
  .xf.is-horizontal .xf__track { flex-direction: row; width: max-content; }
  [dir="rtl"] .xf.is-horizontal .xf__track { flex-direction: row; }
  .xf.is-horizontal .xf__panel { width: 100vw; height: calc(100svh - var(--head-h)); min-height: 0; }
}
@media (max-width: 999px) {
  .xf__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "char shelf"; min-height: 0; gap: 18px; padding-block: 64px 0; }
  .xf__panel--intro { grid-template-areas: none; grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .xf__text { grid-area: text; }
  .xf__char { grid-area: char; margin-bottom: 0; }
  .xf__char img { height: auto; max-height: 52vw; width: auto; }
  .xf__shelf { grid-area: shelf; align-self: center; margin-bottom: 24px; }
  .xf__name { font-size: clamp(3.4rem, 15vw, 6rem); }
  .xf__lineup { --k: calc((100vw - 24px) / 1800); margin-top: 24px; flex-wrap: nowrap; }
  .xf__member span { opacity: 1; translate: 0 0; font-size: .85rem; padding: 4px 10px; bottom: 6px; }
}

/* ---------- New from Bella ---------- */
.xn { background: var(--sugar); }
.xn__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 72px); }
.xn__title { font-size: var(--t-chapter); font-weight: 800; line-height: .95; letter-spacing: -0.025em; color: var(--red); }
.xn__head p { font-size: 1.15rem; }
.xn__item {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 96px);
  width: 100%; max-width: calc(var(--wrap) + 64px); margin-inline: auto; padding-inline: max(var(--gutter), 32px) max(var(--gutter-r), 32px);
}
.xn__item + .xn__item { margin-top: clamp(72px, 9vw, 160px); }
.xn__item.is-flip .xn__art { order: 2; }
.xn__art { position: relative; aspect-ratio: 1.25 / 1; }
.xn__oval { position: absolute; inset: 6% 2%; border-radius: 50%; background: var(--c); border: var(--rim) solid var(--a); rotate: -6deg; }
.xn__item.is-flip .xn__oval { rotate: 6deg; }
.xn__pack { position: absolute; z-index: 1; width: 58%; inset-inline-start: 6%; top: 4%; max-height: 80%; object-fit: contain; rotate: -5deg; }
.xn__pack.is-plate { background: #fff; padding: 12px; border-radius: 18px; }
.xn__food { position: absolute; z-index: 2; width: 52%; inset-inline-end: 2%; bottom: 0; max-height: 70%; object-fit: contain; }
.xn__text { display: grid; gap: 12px; justify-items: start; }
.xn__date { font-weight: 600; color: var(--red); font-size: 1.05rem; }
.xn__name { font-size: clamp(2.6rem, 1.4rem + 3.6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -0.02em; }
.xn__name a { text-decoration: none; }
.xn__tag { font-size: 1.2rem; }
.xn__btn { margin-top: 8px; --b: var(--c); color: var(--i); }
@media (max-width: 800px) {
  .xn__item { grid-template-columns: minmax(0, 1fr); padding-inline: var(--gutter) var(--gutter-r); }
  .xn__item.is-flip .xn__art { order: 0; }
}

/* ---------- Tartino ---------- */
.xt { background: #2b120e; color: #fff4ec; overflow: hidden; }
.xt__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.xt__copy { display: grid; gap: 18px; }
.xt__copy p { max-width: 44ch; }
.xt__title { font-size: var(--t-giant); font-weight: 800; line-height: .86; letter-spacing: -0.035em; color: #c9a25a; text-align: start; }
.xt__lede { font-family: var(--f-display); font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); font-weight: 700; line-height: 1.15; }
.xt__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.xt__stage { position: relative; aspect-ratio: 1.1 / 1; }
.xt__oval { position: absolute; inset: 8% 0 4%; border-radius: 50%; background: #c9a25a; rotate: -7deg; border: var(--rim) solid #fff4ec; }
.xt__jars { list-style: none; position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12%; gap: 0; }
.xt__jar { display: grid; justify-items: center; gap: 10px; }
.xt__jar img { width: auto; object-fit: contain; }
.xt__jar span { font-weight: 700; padding: 2px 12px; border-radius: 999px; background: #2b120e; color: #fff4ec; font-size: .95rem; }
.xt__jar--0 img { height: clamp(150px, 26vw, 400px); }
.xt__jar--1 img { height: clamp(120px, 19vw, 300px); }
.xt__jar--2 img { height: clamp(95px, 14vw, 220px); }
.xt__host { position: absolute; z-index: 2; width: clamp(100px, 11vw, 180px); inset-inline-end: -3%; bottom: -14%; height: auto; }
@media (max-width: 860px) {
  .xt__in { grid-template-columns: minmax(0, 1fr); }
  .xt__stage { margin-top: 16px; }
}

/* ---------- Made in Libya ---------- */
.xm { background: var(--red); color: #fff4ec; }
.xm__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.xm__title { font-size: var(--t-chapter); font-weight: 800; line-height: .95; letter-spacing: -0.025em; }
.xm__copy { display: grid; gap: 20px; justify-items: start; font-size: 1.08rem; }
.xm__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: clamp(56px, 7vw, 120px) 0; }
.xm__facts div { display: flex; flex-direction: column-reverse; gap: 6px; }
.xm__facts dd { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 1.4rem + 6vw, 8.4rem); line-height: .9; color: #ecd9ae; font-variant-numeric: tabular-nums; }
[dir="rtl"] .xm__facts dd { text-align: right; }
.xm__facts dt { font-size: 1.1rem; font-weight: 600; }
.xm__route-title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; margin-bottom: 24px; }
.xm__route { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 2vw, 28px); }
.xm__route a { display: grid; gap: 6px; text-decoration: none; color: inherit; }
.xm__photo { display: block; aspect-ratio: 1 / 1.25; border-radius: 50%; overflow: hidden; border: var(--rim) solid #c9a25a; background: #861b24; }
.xm__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.xm__route a:hover .xm__photo img { transform: scale(1.08); }
.xm__route time { font-size: .95rem; margin-top: 8px; }
.xm__fair { font-family: var(--f-display); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
@media (max-width: 900px) {
  .xm__head { grid-template-columns: minmax(0, 1fr); }
  .xm__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .xm__route { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .xm__route li { scroll-snap-align: start; }
}

/* ---------- Map teaser ---------- */
.xmap { background: var(--sugar); }
.xmap__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.xmap__map { position: relative; }
.xmap__map .libya { border-radius: 0; overflow: visible; }
.xmap__map .libya__nb { fill: var(--bone); stroke: none; }
.xmap__map .libya__land { fill: #fff; stroke: var(--red); stroke-width: 3; filter: none; }
.xmap__guide { position: absolute; width: clamp(90px, 10vw, 150px); height: auto; inset-inline-end: 6%; bottom: -4%; }
.xmap__copy { display: grid; gap: 18px; }
.xmap__title { font-size: var(--t-chapter); font-weight: 800; line-height: .95; letter-spacing: -0.025em; color: var(--red); }
.xmap__copy > p { font-size: 1.12rem; max-width: 40ch; }
@media (max-width: 860px) { .xmap__in { grid-template-columns: minmax(0, 1fr); } .xmap__copy { order: -1; } }

/* ---------- News ---------- */
.xnews { background: var(--cream); }
.xnews__head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 56px); }
.xnews__title { font-size: var(--t-chapter); font-weight: 800; line-height: .95; letter-spacing: -0.025em; }
.xnews__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: clamp(20px, 3vw, 40px); }
.xnews__item.is-lead { grid-row: span 2; }
.xnews__item a { display: grid; gap: 10px; text-decoration: none; }
.xnews__img { display: block; overflow: hidden; border-radius: 28px; aspect-ratio: 16 / 10; background: var(--bone); }
.xnews__item.is-lead .xnews__img { aspect-ratio: 4 / 3; border-radius: 999px 999px 28px 28px; }
.xnews__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.xnews__item a:hover img { transform: scale(1.05); }
.xnews__meta { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.xnews__name { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.25rem, 1rem + .7vw, 1.7rem); line-height: 1.15; }
.xnews__item.is-lead .xnews__name { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.6rem); }
@media (max-width: 800px) { .xnews__grid { grid-template-columns: minmax(0, 1fr); } .xnews__item.is-lead { grid-row: auto; } }

/* ---------- One word is the button ---------- */
.xcta { background: var(--sugar); padding-top: 0; }
.xcta__band {
  display: grid; align-content: space-between; min-height: 62svh; padding-block: clamp(28px, 4vw, 56px) 0; overflow: hidden;
  background: var(--red); color: #fff4ec; text-decoration: none; border-radius: 50% 50% 0 0 / 22% 22% 0 0;
  transition: background-color .25s, color .25s;
}
.xcta__band:hover, .xcta__band:focus-visible { background: #2b120e; color: #c9a25a; outline: none; }
.xcta__top { display: flex; justify-content: space-between; gap: 24px; align-items: start; padding-top: clamp(32px, 5vw, 72px); }
.xcta__lede { display: grid; gap: 8px; max-width: 40ch; font-size: 1.1rem; }
.xcta__h { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem); font-weight: 800; }
.xcta__arrow { width: clamp(36px, 4vw, 56px); height: auto; flex: none; transition: transform .3s var(--ease-out); }
[dir="rtl"] .xcta__arrow { transform: scaleX(-1); }
.xcta__band:hover .xcta__arrow { transform: translate(6px, -6px); }
[dir="rtl"] .xcta__band:hover .xcta__arrow { transform: scaleX(-1) translate(6px, -6px); }
.xcta__word { display: inline-block; font-family: var(--f-display); font-weight: 800; line-height: .8; letter-spacing: -0.045em; white-space: nowrap; font-size: var(--fit, 22vw); padding-bottom: .04em; }
[dir="rtl"] .xcta__word { line-height: 1.1; }
.xcta__more { display: flex; justify-content: center; padding-block: 32px; background: #2b120e; }
.xcta__more .btn--ghost { color: #fff4ec; border-color: rgba(255, 244, 236, .4); }

/* ---------- Site-wide refinements ---------- */
body { background: var(--sugar); }
.site-head { background: var(--sugar); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-head.is-scrolled { box-shadow: none; border-bottom-color: transparent; background: #fff; }
.site-foot__bottom { border-top: 0; }

/* Cross-page transition: the new page opens out of an oval (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms ease-in both bella-fade-out; }
::view-transition-new(root) { animation: 620ms var(--ease-out) both bella-oval-in; }
@keyframes bella-fade-out { to { opacity: .4; } }
@keyframes bella-oval-in { from { clip-path: ellipse(0% 0% at 50% 55%); } to { clip-path: ellipse(120% 120% at 50% 55%); } }

/* Motion hooks: content is visible without script; motion.js animates from offsets */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  .xf__member img, .xf__item img, .xnews__img img, .xm__photo img { transition: none; }
}
.js-motion [data-char] { will-change: transform; }
/* Split headline words (motion.js) */
.w { display: inline-block; overflow: clip; overflow-clip-margin: .12em; vertical-align: top; padding-block: .04em .1em; margin-block: -.04em -.1em; }
.w__in { display: inline-block; }
[dir="rtl"] .xh__title { font-size: clamp(2.8rem, 1rem + 5vw, 6.2rem); max-width: 12ch; line-height: 1.15; }
/* Map teaser: Libya in Bella red */
.xmap { background: var(--cream); }
.xmap__map .libya__nb { fill: none; }
.xmap__map .libya__land { fill: var(--red); stroke: #fff4ec; stroke-width: 3; }
.xmap__map .libya__city circle { fill: #fff4ec; stroke: var(--red); }
.xmap__map .libya__city text { fill: #fff4ec; stroke: var(--red); stroke-width: 5px; font-weight: 700; }
[lang="fr"] .xh__title { font-size: clamp(2.6rem, 1rem + 4.8vw, 5.8rem); max-width: 12ch; }

/* ---------- Product page: the oval stage ---------- */
.pd-hero { position: relative; }
.pd-hero__in { min-height: min(760px, calc(100svh - var(--head-h) - 48px)); }
.pd-hero__stage { aspect-ratio: 1.12 / 1; display: block; }
.pd-oval {
  position: absolute; inset: 8% 0 6%; border-radius: 50%; rotate: -8deg;
  background: color-mix(in srgb, var(--stage) 78%, #000);
  border: var(--rim) solid var(--stage-accent);
  outline: calc(var(--rim) * .55) solid color-mix(in srgb, #fff 88%, var(--stage-accent)); outline-offset: calc(var(--rim) * -2.6);
}
[dir="rtl"] .pd-oval { rotate: 8deg; }
.pd-hero__product { position: absolute; z-index: 2; left: 50%; top: 50%; width: 80%; max-height: 74%; translate: -50% -50%; transform: none; animation: none; filter: none; }
.pd-hero__pack { position: absolute; z-index: 1; inset-inline-end: -2%; top: 0; width: 38%; max-height: 50%; object-fit: contain; rotate: 9deg; }
[dir="rtl"] .pd-hero__pack { rotate: -9deg; }
.pd-hero__host { position: absolute; z-index: 3; width: clamp(90px, 10vw, 150px); height: auto; inset-inline-start: 0; bottom: -4%; }
.pd-hero__title { font-size: clamp(3rem, 1.2rem + 6vw, 7rem); }
@media (max-width: 860px) {
  .pd-hero__in { min-height: 0; }
  .pd-hero__stage { width: 100%; }
  .pd-hero__host { width: 22vw; }
}

/* Variants: the pack sits on a white oval plate in the product's colour */
.variants { background: color-mix(in srgb, var(--stage) 10%, var(--sugar)); }
.variants__viewer { background: #fff; border-radius: 50%; border: var(--rim) solid var(--stage); padding: 12%; aspect-ratio: 1.3 / 1; }
.variants__viewer img { max-height: 100%; filter: none; }
.swatch { transition: transform .3s var(--ease-out), background-color .2s, border-color .2s; }
.swatch:hover { transform: translateY(-3px); }

/* Host band */
.pd-host { background: var(--c); color: var(--i); overflow: hidden; }
.pd-host__in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: end; padding-top: clamp(40px, 5vw, 72px); }
.pd-host__img { width: clamp(140px, 18vw, 260px); height: auto; margin-bottom: -6px; }
.pd-host__text { display: grid; gap: 12px; justify-items: start; padding-bottom: clamp(40px, 5vw, 72px); }
.pd-host__title { font-size: clamp(2.2rem, 1.2rem + 3vw, 4.2rem); font-weight: 800; line-height: 1; }
.pd-host__text p { font-size: 1.12rem; max-width: 52ch; }
.pd-host__btn { --b: var(--i); color: var(--c); }
@media (max-width: 600px) { .pd-host__in { grid-template-columns: minmax(0, 1fr); } .pd-host__img { order: 2; justify-self: center; } .pd-host__text { padding-bottom: 0; } }

/* Product tiles: flat oval stage in the pack colour */
.tile__link { border-radius: 28px; }
.tile__link:hover { background: transparent; }
.tile__stage { background: var(--c); box-shadow: none; rotate: -6deg; border: 0 solid var(--gold); transition: border-width .25s var(--ease-out), rotate .45s var(--ease-out); }
[dir="rtl"] .tile__stage { rotate: 6deg; }
.tile__stage img { filter: none; rotate: 6deg; }
[dir="rtl"] .tile__stage img { rotate: -6deg; }
.tile__link:hover .tile__stage, .tile__link:focus-visible .tile__stage { box-shadow: none; border-width: 5px; rotate: 0deg; }
.tile__link:hover .tile__stage img, .tile__link:focus-visible .tile__stage img { transform: translateY(-12px) scale(1.08); rotate: 0deg; }

/* Catalog head: the family points to the shelves */
.cathead { background: var(--red); color: #fff4ec; padding-bottom: 0 !important; overflow: hidden; }
.cathead .pagehead__lede { color: #fff4ec; }
.cathead__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: end; }
.cathead__copy { display: grid; gap: 14px; padding-bottom: clamp(32px, 4vw, 64px); }
.cathead__family { --k: min(.5px, calc((100vw - 64px) / 2 / 1900)); display: flex; align-items: flex-end; justify-content: center; }
.cathead__family a { position: relative; display: grid; justify-items: center; margin-inline: -1%; text-decoration: none; color: inherit; }
.cathead__family img { height: calc(var(--h) * var(--k)); width: auto; max-width: none; transform-origin: 50% 100%; transition: translate .4s var(--ease-out), rotate .4s var(--ease-out); }
.cathead__family a:hover img, .cathead__family a:focus-visible img { translate: 0 -12px; rotate: -4deg; }
.cathead__family span { position: absolute; bottom: 8px; padding: 3px 12px; border-radius: 999px; background: #fff4ec; color: var(--red); font-family: var(--f-display); font-weight: 800; font-size: .95rem; }
@media (max-width: 860px) {
  .cathead__in { grid-template-columns: minmax(0, 1fr); }
  .cathead__copy { padding-bottom: 8px; }
  .cathead__family { --k: calc((100vw - 24px) / 1850); }
  .cathead__family span { font-size: .75rem; padding: 2px 8px; bottom: 4px; }
}

/* ---------- Where to buy: Libya in Bella red ---------- */

.where__panel { position: relative; z-index: 500; border-inline-end: 0; }
.where__map.leaflet-container { background: #f6eee9; }
.where__head { position: relative; padding-top: 32px; border-bottom: 0; background: var(--red); color: #fff4ec; overflow: hidden; }
.where__head p { color: #fff4ec; max-width: 26ch; }
.where__head h1 { max-width: none; padding-inline-end: 96px; } /* room for the guide character */
.where__head .chip { background: transparent; color: #fff4ec; border-color: rgba(255, 244, 236, .45); }
.where__head .chip[aria-pressed="true"] { background: #fff4ec; color: var(--red); border-color: #fff4ec; }
.where__head .where__search input { border-color: transparent; }
.where__guide { position: absolute; inset-inline-end: 8px; top: 18px; width: 92px; height: auto; pointer-events: none; }
.where__cities a { min-height: 56px; }
.where__note, .where__detail { border-color: transparent; }
.pin { width: 44px; height: 44px; animation: pin-in .6s var(--ease-out) backwards; animation-delay: var(--d, 0ms); }
.pin__dot { width: 16px; height: 16px; background: #fff4ec; border: 4px solid #861b24; box-shadow: none; }
.pin--has .pin__dot { background: #fff4ec; color: var(--red); box-shadow: 0 0 0 3px var(--gold); border: 0; }
.pin--hq .pin__dot { background: var(--gold); border-color: #fff4ec; box-shadow: none; }
.pin.is-active .pin__dot { transform: scale(1.5); background: var(--gold); }
.pin:hover .pin__dot { transform: scale(1.3); }
.pin__label { top: 30px; left: 50%; translate: -50% 0; color: #fff4ec; font-weight: 700; font-size: 13px; text-shadow: 0 0 2px #861b24, 0 0 4px #861b24, 0 0 6px #861b24; }
@keyframes pin-in { from { opacity: 0; transform: translateY(-18px) scale(.4); } }
@media (prefers-reduced-motion: reduce) { .pin { animation: none; } }
.leaflet-container .libya-land { fill: var(--red); stroke: #fff4ec; stroke-width: 3; }
.where__head { flex: none; }
@media (max-width: 860px) {
  .where__panel { z-index: 600; }
  .where__guide { width: 56px; top: 6px; }
  .where__head { padding: 10px 16px 14px; }
  .where__head h1 { max-width: none; padding-inline-end: 64px; }
}
.where__map { direction: ltr; } .where__map .pin__label, .where__map .leaflet-control { direction: rtl; } [dir="ltr"] .where__map .pin__label { direction: ltr; }
@media (min-width: 861px) { .where__map.leaflet-container { position: relative; inset: auto; height: 100%; } }
.xh__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.xh__picker { margin-top: 0; }
@media (max-width: 900px) { .xh__controls { order: 3; } }
.pd-hero__desc { opacity: 1; }
.site-foot a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.site-foot .social a, .site-foot__cols a { text-decoration: none; }
/* Reserve the hero title's lines so the late display font does not push the stage down */
@media (max-width: 900px) {
  .xh__title { min-height: calc(2 * .94em); }
  [lang="fr"] .xh__title { min-height: calc(4 * .94em); }
  [dir="rtl"] .xh__title { min-height: calc(3 * 1.15em); }
}
