/* Mada Ruz, "affiche de marché" version: full-bleed red and forest green, giant type, scroll-driven scenes.
   Motion lives in two layers:
   - load animations, CSS only, inside prefers-reduced-motion: no-preference;
   - scroll scenes, enabled by main.js with the .mo class (motion OK) and .pinned (pinned sections).
   Every [data-scrub] element exposes its scroll progress as --p (0 to 1): a CSS scroll timeline drives it
   when the browser supports one, main.js computes it otherwise. Without JS the page is a plain static poster. */

@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --red: #C8281E;
  --red-d: #A91F16;
  --red-dd: #8E1A13;
  --forest: #0F3D25;
  --green: #007E3A;
  --cream: #FBF7EE;
  --paper: #F1E6CC;
  --gold: #F2A31A;
  --ink: #2B170D;
  --brown: #4A2A1A;
  --display: "Bricolage Grotesque", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --g: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  --grain-l: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .29 0 0 0 0 .16 0 0 0 0 .1 0 0 0 .7 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.2'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus, var(--red)); outline-offset: 3px; }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; z-index: 100; top: 12px; left: 12px;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: var(--cream); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
  --focus: var(--gold);
}
.skip:focus { transform: none; }

.tag {
  display: inline-block;
  margin: 0;
  padding: .32em .9em .4em;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
}

h2 {
  margin: 0 0 .3em;
  font-weight: 800;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(3rem, 10.5vw, 9.6rem);
  line-height: .86;
  letter-spacing: -.015em;
}
/* Words built by main.js for the kinetic headings. */
.split .w { display: inline-block; overflow: clip; vertical-align: top; padding: .14em .03em .05em; margin: -.14em -.03em -.05em; }
.split .wi { display: inline-block; }

/* ---------- Header ---------- */
.top {
  position: fixed; z-index: 30;
  top: 10px; left: var(--g); right: var(--g);
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 14px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  box-shadow: 0 14px 34px -16px rgba(43, 23, 13, .6);
  --focus: var(--red);
}
.brand { display: block; flex: none; border-radius: 10px; }
.brand img { width: auto; height: 46px; }
.menu { display: none; }
.reach { display: flex; gap: 6px; margin: 0 0 0 auto; }
.reach a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 46px; min-height: 46px; padding: 0 14px;
  border-radius: 999px;
  color: var(--ink); font-weight: 700; text-decoration: none;
  border: 2px solid var(--ink);
}
.reach a:last-child { background: var(--red); border-color: var(--red); color: var(--cream); }
.reach a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.progress { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; z-index: 0;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 104px var(--g) 40px;
  background-color: var(--red);
  background-image: var(--grain);
  color: var(--cream);
  overflow: clip;
  /* Its content is bottom-aligned and resizes when fonts arrive: never use it as a scroll anchor
     (otherwise a reload at the top of the page lands a hundred pixels down). */
  overflow-anchor: none;
  --focus: var(--cream);
}
.hero-island {
  position: absolute; z-index: -1;
  top: -6%; right: -34%;
  height: 116%; width: auto; aspect-ratio: 100 / 205;
  fill: var(--red-dd);
  opacity: .55;
  rotate: 14deg;
}
.badge {
  position: absolute; z-index: 1;
  top: 86px; right: var(--g);
  width: clamp(96px, 12vw, 170px); aspect-ratio: 1;
}
.badge-ring { display: block; width: 100%; height: 100%; fill: var(--cream); font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: .02em; text-transform: uppercase; }
.badge-f { position: absolute; inset: 0; margin: auto; width: 40%; height: 40%; }
.hero-in { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin: 0 auto; }
.tag-line { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.hero h1 { margin: .3em 0 0; font-weight: 800; text-transform: uppercase; line-height: .8; }
.l1 {
  display: block;
  font-stretch: 75%;
  font-size: min(calc((100vw - 2 * var(--g)) / 4.5), 18.4rem);
  letter-spacing: -.02em;
  white-space: nowrap;
  overflow: clip;
  padding-top: .07em;
  margin-left: -.03em;
}
.l1 .c { display: inline-block; }
.l2 { display: block; margin-top: .06em; font-size: clamp(2.3rem, 9.4vw, 8.6rem); line-height: 1; }
.l2 em {
  display: inline-block;
  padding: .02em .28em .14em .2em;
  border-radius: .12em;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  text-transform: none;
  letter-spacing: -.01em;
  rotate: -2deg;
  transform-origin: 0 50%;
}
.hero-foot { display: grid; gap: 22px; margin-top: 30px; align-items: end; }
.hero-lead { margin: 0; max-width: 32ch; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.3; font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--red-d);
  font-weight: 800; font-size: 1.12rem; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.link-more { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- Marquee bands (moved by the scroll only) ---------- */
.bands {
  position: relative; z-index: 2;
  height: clamp(150px, 21vw, 300px);
  display: grid; place-items: center; grid-template-columns: 100%;
  background: var(--grain), linear-gradient(var(--red) 50%, var(--forest) 50%);
  overflow: clip;
}
.band {
  grid-area: 1 / 1;
  width: 130%;
  padding: .26em 0 .3em;
  font-weight: 800; font-stretch: 75%; text-transform: uppercase;
  font-size: clamp(1.5rem, 4.6vw, 4.4rem); line-height: 1;
  white-space: nowrap;
}
.band-a { background: var(--cream); color: var(--red); rotate: -4deg; }
.band-b { background: var(--gold); color: var(--ink); rotate: 3deg; }
.band-move { display: flex; align-items: center; width: max-content; }
.band-move span { padding: 0 .42em; }
.bf { flex: none; width: .8em; height: .8em; }

/* ---------- Route map ---------- */
.trajet {
  position: relative;
  background-color: var(--forest);
  background-image: var(--grain);
  color: var(--cream);
  --focus: var(--gold);
}
.trajet-pin { padding: clamp(56px, 8vw, 110px) var(--g) clamp(80px, 10vw, 140px); }
.route { margin: 0 auto; max-width: 1180px; overflow-x: auto; }
.route svg { display: block; width: 100%; min-width: 640px; height: auto; overflow: visible; }
.m-island path { fill: var(--red); stroke: var(--cream); stroke-width: 1.3; stroke-linejoin: round; }
.coast { fill: var(--paper); stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; }
.coast-waves { fill: none; stroke: var(--brown); stroke-width: 1.2; stroke-dasharray: 2 5; stroke-linecap: round; opacity: .5; }
.m-route, .m-dots { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; }
.m-route { stroke-dasharray: 3 14; }
.m-ring { fill: none; stroke: var(--gold); stroke-width: 2; }
.m-start { fill: var(--cream); stroke: var(--gold); stroke-width: 3; }
.m-t { font-family: var(--serif); font-style: italic; font-weight: 700; fill: var(--cream); }
.m-t1 { font-weight: 900; }
.m-t3, .m-t4 text { fill: var(--gold); font-weight: 900; }
.m-t4 path { fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; }

/* ---------- Sentence ---------- */
.nom {
  position: relative; z-index: 1;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding: clamp(72px, 12vw, 170px) var(--g) clamp(56px, 9vw, 120px);
  background-color: var(--cream);
  background-image: var(--grain-l);
  text-align: center;
}
.nom-flower { display: block; width: 58px; height: 58px; margin: 0 auto; }
.nom-s {
  max-width: 13ch;
  margin: 22px auto 0;
  font-weight: 800; font-stretch: 80%;
  font-size: clamp(2.6rem, 9vw, 8rem);
  line-height: .92;
  letter-spacing: -.025em;
  color: var(--ink);
}
.nom-s .hl { font-family: var(--serif); font-style: italic; font-stretch: normal; color: var(--red); letter-spacing: -.01em; }

/* ---------- Markets ticket ---------- */
.marches {
  padding: 0 var(--g) clamp(80px, 12vw, 160px);
  overflow-x: clip;
  background-color: var(--cream);
  background-image: var(--grain-l);
}
.ticket {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  border-radius: 28px;
  background-color: var(--red);
  background-image: var(--grain);
  color: var(--cream);
  --focus: var(--cream);
}
.ticket-main { padding: clamp(28px, 6vw, 76px); }
.kicker { margin-bottom: 20px; }
.marches .lead { max-width: 30ch; margin: 0 0 28px; font-size: clamp(1.25rem, 2.4vw, 2rem); line-height: 1.25; font-weight: 600; }
.nowrap { white-space: nowrap; }
.board { max-width: 46ch; padding: 18px 22px; border: 2px dashed rgba(251, 247, 238, .75); border-radius: 18px; font-size: 1.1rem; }
.board p { margin: 0; }
.ticket a { font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ticket-stub {
  position: relative;
  display: grid; place-items: center;
  padding: 30px;
  border-top: 3px dashed rgba(251, 247, 238, .7);
}
.ticket-stub::before, .ticket-stub::after {
  content: ""; position: absolute; top: -19px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream);
}
.ticket-stub::before { left: -18px; }
.ticket-stub::after { right: -18px; }
.stub-ring { display: block; width: 176px; height: 176px; fill: var(--cream); font-weight: 700; font-size: 17px; text-transform: uppercase; }
.stub-f { position: absolute; width: 58px; height: 58px; }

/* ---------- Products ---------- */
.produits {
  position: relative;
  padding: clamp(72px, 11vw, 150px) var(--g);
  background-color: var(--forest);
  background-image: var(--grain);
  color: var(--cream);
  counter-reset: prod;
  --focus: var(--gold);
}
.track { max-width: 1320px; margin: 0 auto; }
.produits .sec-head { margin-bottom: 36px; }
.sec-head p { max-width: 34ch; margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.35; }
.hint { display: none; }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.produit {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 24px 22px 26px;
  border-radius: 26px;
  background: var(--cream);
  color: var(--ink);
  counter-increment: prod;
}
.produit::before {
  content: counter(prod, decimal-leading-zero);
  content: counter(prod, decimal-leading-zero) / "";
  position: absolute; top: 18px; right: 22px;
  font-family: var(--serif); font-style: italic; font-weight: 900;
  font-size: 2.3rem; line-height: 1;
  color: var(--red);
}
.produit .ico { width: clamp(88px, 9vw, 120px); height: auto; aspect-ratio: 1; }
.produit h3 { margin: 0 0 8px; font-weight: 800; font-stretch: 78%; text-transform: uppercase; font-size: clamp(1.7rem, 2.5vw, 2.4rem); line-height: .92; letter-spacing: -.01em; }
.produit p { margin: 0 0 12px; font-size: clamp(1.0625rem, 1.15vw, 1.25rem); line-height: 1.45; }
.vedette { background: var(--red); color: var(--cream); }
.vedette::before { color: var(--cream); }
.coffret { background: var(--gold); color: var(--ink); }
.coffret::before { color: var(--ink); }
.coffret .tag { background: var(--ink); color: var(--gold); }
.extras { display: grid; gap: 16px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.corps { padding: 24px 22px; border: 2px solid rgba(251, 247, 238, .5); border-radius: 26px; }
.corps-t { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: 1.8rem; line-height: 1.1; }
.corps-n { margin: 4px 0 16px; color: var(--gold); font-weight: 700; }
.liste-corps { display: block; }
.liste-corps .produit { counter-increment: none; }
.liste-corps .produit::before { content: none; }
.liste-corps .ico { width: 72px; }
.cafe { display: flex; flex-direction: column; gap: 14px; padding: 24px 22px; border-radius: 26px; background: var(--cream); color: var(--ink); }
.cafe .ico { flex: none; width: 88px; height: 88px; }
.cafe h3 { margin: 12px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.05; }
.cafe p { margin: 0; }
.pin-bar { display: none; }

/* ---------- Recipes ---------- */
.recettes {
  position: relative;
  padding: clamp(90px, 13vw, 190px) var(--g) clamp(80px, 12vw, 170px);
  background-color: var(--red);
  background-image: var(--grain);
  color: var(--cream);
  overflow: clip;
  --focus: var(--cream);
}
.recettes .sec-head { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; }
.recettes .sec-head p { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2.2rem); }
.cards {
  position: relative; z-index: 1;
  list-style: none; margin: clamp(36px, 6vw, 72px) auto 0; padding: 0;
  max-width: 1320px;
  display: grid; gap: clamp(22px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
.card {
  --r: 0deg;
  position: relative;
  padding: 26px 24px 104px;
  border-radius: 6px;
  background-color: var(--cream);
  background-image: repeating-linear-gradient(to bottom, transparent 0 33px, rgba(200, 40, 30, .16) 33px 34px);
  color: var(--ink);
  rotate: var(--r);
  box-shadow: 0 22px 40px -22px rgba(30, 6, 2, .75);
}
.c1 { --r: -3deg; } .c2 { --r: 2deg; } .c3 { --r: -1.5deg; } .c4 { --r: 2.6deg; }
.card .tag { background: var(--red); color: var(--cream); }
.card h3 { margin: 16px 0 10px; font-family: var(--serif); font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 2.3vw, 2.1rem); line-height: 1.05; color: var(--red-d); }
.card p { margin: 0; }
.rec-ico { position: absolute; right: 18px; bottom: 18px; width: 70px; height: 70px; }

/* ---------- Contact ---------- */
.contact {
  padding: clamp(80px, 12vw, 160px) var(--g) clamp(120px, 14vw, 200px);
  overflow-x: clip;
  background-color: var(--cream);
  background-image: var(--grain-l);
}
.postcard {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  padding: clamp(30px, 6vw, 80px);
  border-radius: 28px;
  background-color: var(--forest);
  background-image: var(--grain);
  color: var(--cream);
  --focus: var(--gold);
}
.contact h2 { padding-right: 80px; }
.pc-text > p { max-width: 32ch; margin: 0; font-size: clamp(1.2rem, 2.2vw, 1.8rem); line-height: 1.3; }
.contact ul { list-style: none; margin: clamp(28px, 4vw, 48px) 0 0; padding: 0; display: grid; gap: 14px; font-size: clamp(1.15rem, 2.6vw, 2.1rem); font-weight: 600; }
.contact li { padding-top: 14px; border-top: 2px solid rgba(251, 247, 238, .25); }
.contact a { display: inline-block; color: var(--gold); font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .18em; overflow-wrap: anywhere; }
.stamp {
  position: absolute; top: -34px; right: clamp(16px, 4vw, 48px);
  width: clamp(86px, 10vw, 124px); aspect-ratio: 1;
  display: grid; place-items: center;
  border: 5px dotted var(--cream);
  background: var(--red);
  box-shadow: 0 0 0 5px var(--red);
  rotate: 8deg;
}
.stamp svg { width: 62%; height: 62%; }

/* ---------- Footer ---------- */
.foot {
  position: relative; z-index: 1;
  margin-top: -40px;
  border-radius: 40px 40px 0 0;
  padding: clamp(36px, 6vw, 72px) var(--g) 28px;
  background-color: var(--red);
  background-image: var(--grain);
  color: var(--cream);
  text-align: center;
  overflow: clip;
  --focus: var(--cream);
}
.foot-word { margin: 0; font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: clamp(4rem, 26vw, 25rem); line-height: .8; letter-spacing: -.03em; white-space: nowrap; }
.foot-word span { display: inline-block; }
.foot-rule { display: block; width: 120px; height: 6px; margin: 28px auto 18px; border-radius: 3px; background: linear-gradient(90deg, var(--forest) 0 50%, var(--cream) 50% 100%); }
.foot p:last-child { margin: 0; font-size: .95rem; }
.sticky { display: none; }

/* Cursor follower, created by main.js on fine pointers only. */
.cursor {
  position: fixed; z-index: 60; left: 0; top: 0;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border: 2px solid #fff; border-radius: 50%;
  mix-blend-mode: difference;
  pointer-events: none;
  opacity: 0;
  transition: opacity .3s, background-color .25s;
}
.cursor.is-on { opacity: 1; }
.cursor.is-link { background: #fff; }

/* ---------- Layout breakpoints ---------- */
@media (max-width: 759px) {
  .sticky {
    display: flex; position: fixed; z-index: 25;
    left: 12px; right: 12px; bottom: 12px;
    border-radius: 999px; overflow: hidden;
    background: var(--ink);
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
  }
  .sticky a { flex: 1; padding: 15px 8px; text-align: center; color: var(--cream); font-weight: 700; text-decoration: none; }
  .sticky a + a { background: var(--red); }
  .sticky a:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
  html.js:not(.is-scrolled) .sticky { translate: 0 160%; }
  .foot { padding-bottom: 96px; }
}
@media (min-width: 760px) {
  .brand img { height: 52px; }
  .menu { display: flex; gap: 2px; margin-left: auto; }
  .menu a { padding: 11px 16px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: background-color .25s, color .25s; }
  .menu a:hover { background: var(--paper); }
  .menu a.is-active { background: var(--forest); color: var(--cream); }
  .reach { margin-left: 8px; }
  .hero { padding-bottom: 56px; }
  .badge { top: 112px; }
  .hero-island { right: -12%; height: 124%; top: -14%; }
  .ticket { grid-template-columns: 1fr auto; }
  .ticket-stub { padding: 40px; border-top: 0; border-left: 3px dashed rgba(251, 247, 238, .7); }
  .ticket-stub::before { top: -18px; left: -19px; }
  .ticket-stub::after { top: auto; bottom: -18px; left: -19px; right: auto; }
  .stub-ring { width: 210px; height: 210px; }
  .cafe { flex-direction: row; align-items: flex-start; }
  .stamp { top: -40px; }
}
@media (min-width: 1100px) {
  .reach a span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .hero-foot { grid-template-columns: 1fr auto; }
  .hero-island { right: 2%; }
}

/* ---------- Motion ---------- */
@keyframes scrub { from { --p: 0; } to { --p: 1; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Load: the giant word rises letter by letter, the green slab wipes in, the island and badge land. */
  .l1 .c { animation: rise 1.1s var(--ease) both; animation-delay: calc(120ms + var(--i) * 55ms); }
  .l2 em { animation: wipe 1s var(--ease) .7s both; }
  .tag-line { animation: fade-up .9s var(--ease) .9s both; }
  .hero-island { animation: island-in 1.8s var(--ease) both; }
  .badge { animation: badge-in 1.4s var(--ease) .8s both; }
  @keyframes rise { from { translate: 0 108%; } }
  @keyframes wipe { from { clip-path: inset(0 100% 0 0); translate: -.4em 0; } to { clip-path: inset(0 0 0 0); } }
  @keyframes fade-up { from { opacity: 0; translate: 0 22px; } }
  @keyframes island-in { from { opacity: 0; translate: 0 12%; rotate: -10deg; } }
  @keyframes badge-in { from { opacity: 0; scale: .4; rotate: -120deg; } }

  html.js .sticky { transition: translate .5s var(--ease); }
  .mo [data-magnetic] { transition: translate .5s var(--ease), background-color .25s, color .25s; }

  /* Reveals (IntersectionObserver in main.js). */
  .mo [data-reveal] { opacity: 0; translate: 0 30px; transition: opacity .9s var(--ease), translate 1s var(--ease); }
  .mo [data-reveal].is-in { opacity: 1; translate: none; }
  .mo [data-stagger] > * { opacity: 0; translate: 0 26px; transition: opacity .8s var(--ease) calc(var(--i, 0) * 100ms), translate 1s var(--ease) calc(var(--i, 0) * 100ms); }
  .mo [data-stagger].is-in > * { opacity: 1; translate: none; }
  .mo .split .wi { translate: 0 110%; transition: translate 1.05s var(--ease) calc(var(--i) * 90ms); }
  .mo .is-in > .split .wi { translate: none; }

  .mo .cards > li {
    translate: 0 110px; rotate: calc(var(--r) * 5);
    transition: opacity .8s var(--ease) calc(var(--i) * 120ms), translate 1.1s var(--ease) calc(var(--i) * 120ms), rotate 1.1s var(--ease) calc(var(--i) * 120ms), scale .5s var(--ease);
  }
  .mo .cards.is-in > li { rotate: var(--r); }
  .mo .cards.is-done > li { transition-delay: 0s; }

  @media (hover: hover) {
    .cards > li:hover, .mo .cards.is-in > li:hover { rotate: 0deg; scale: 1.035; }
    .produit, .cafe { transition: rotate .5s var(--ease); }
    .liste .produit:hover, .cafe:hover { rotate: -1.5deg; }
  }

  /* Scroll progress bar. */
  .mo .progress { display: block; position: fixed; z-index: 31; top: 0; left: 0; width: 100%; height: 4px; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p)); pointer-events: none; }

  /* Hero leaves: the two lines drift apart, the island turns, the badge spins. */
  .mo .l1 { transform: translateX(calc(var(--p) * -16%)); }
  .mo .l2 { transform: translateX(calc(var(--p) * 22%)); }
  .mo .hero-island { transform: translateY(calc(var(--p) * -14%)) rotate(calc(var(--p) * 22deg)) scale(calc(1 + var(--p) * .18)); }
  .mo .badge-ring { transform: rotate(calc(var(--p) * 300deg)); }
  .mo .hero-foot, .mo .tag-line { transform: translateY(calc(var(--p) * -40px)); }

  /* Bands slide in opposite directions while they cross the screen. */
  .mo .band-a .band-move { transform: translateX(calc(var(--p) * -55vw)); }
  .mo .band-b .band-move { transform: translateX(calc((var(--p) - 1) * 55vw)); }

  /* Route map: each piece enters at its own point of the scroll. */
  .mo .route :is(.m-island, .m-flower, .m-coast, .m-start, .m-pod, .m-pin, .m-ring, .m-t) { transform-box: fill-box; transform-origin: 50% 50%; }
  .mo .m-island { --k: clamp(0, var(--p) / .14, 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 40px)) scale(calc(.8 + .2 * var(--k))); }
  .mo .m-t1 { --k: clamp(0, (var(--p) - .04) / .12, 1); }
  .mo .m-t2 { --k: clamp(0, (var(--p) - .09) / .12, 1); }
  .mo .m-t3 { --k: clamp(0, (var(--p) - .2) / .12, 1); }
  .mo .m-t5 { --k: clamp(0, (var(--p) - .48) / .12, 1); }
  .mo .m-t4 { --k: clamp(0, (var(--p) - .84) / .1, 1); }
  .mo .m-t { opacity: var(--k); transform: translateY(calc((1 - var(--k)) * 18px)); }
  .mo .m-flower { --k: clamp(0, (var(--p) - .1) / .14, 1); opacity: var(--k); transform: rotate(calc((1 - var(--k)) * -140deg)) scale(calc(.3 + .7 * var(--k))); }
  .mo .m-coast { --k: clamp(0, (var(--p) - .15) / .16, 1); opacity: var(--k); transform: translateX(calc((1 - var(--k)) * 70px)); }
  .mo .m-start { --k: clamp(0, (var(--p) - .24) / .05, 1); opacity: var(--k); transform: scale(var(--k)); }
  .mo .route.has-dots .m-route { visibility: hidden; }
  .mo .m-dots path { opacity: clamp(0, (var(--p) - .28 - var(--t) * .5) * 40, 1); }
  .mo .m-pod { --k: clamp(0, (var(--p) - .4) / .1, 1); opacity: var(--k); transform: translate(calc((1 - var(--k)) * -26px), calc((1 - var(--k)) * 20px)) rotate(calc((1 - var(--k)) * -28deg)) scale(calc(.6 + .4 * var(--k))); }
  .mo .m-pin { --k: clamp(0, (var(--p) - .79) / .06, 1); opacity: var(--k); transform: translateY(calc((1 - var(--k)) * -50px)); transform-origin: 50% 100%; }
  .mo .m-ring { --k: clamp(0, (var(--p) - .84) / .12, 1); opacity: calc(var(--k) * (1 - var(--k)) * 3.6); transform: scale(calc(.3 + 2.1 * var(--k))); }

  /* Sentence: words light up one after the other. */
  .mo .nom-s .wd { opacity: clamp(.16, var(--p) * (var(--n) + 3) - var(--i), 1); }
  .mo .nom-flower { transform: rotate(calc(var(--p) * 216deg)); }

  /* Markets ticket is torn in, then the stub ring turns. */
  .mo .ticket { transform: translateY(calc((1 - var(--p)) * 80px)) rotate(calc((1 - var(--p)) * -5deg)); clip-path: inset(calc((1 - var(--p)) * 12%) calc((1 - var(--p)) * 5%) round 28px); }
  .mo .stub-ring { transform: rotate(calc(var(--p) * 220deg)); }

  /* Recipes: a green wedge (the end of the products) flattens as the red section arrives. */
  .mo .recettes::before {
    content: ""; position: absolute; z-index: 0; top: -1px; left: 0; right: 0;
    height: 10vw;
    background-color: var(--forest);
    clip-path: polygon(0 0, 100% 0, 0 100%);
    transform-origin: 50% 0;
    transform: scaleY(calc(1 - var(--p)));
  }

  /* Contact postcard lands, the stamp is slapped on. */
  .mo .postcard { transform: translateY(calc((1 - var(--p)) * 90px)) rotate(calc((1 - var(--p)) * 3deg)); }
  .mo .stamp { transform: rotate(calc((1 - var(--p)) * 120deg)) scale(calc(.5 + .5 * var(--p))); }

  /* Footer word rises out of the red. */
  .mo .foot-word span { transform: translateY(calc((1 - var(--p)) * 70%)) rotate(calc((1 - var(--p)) * -7deg)); }
  .mo .foot-word span + span { transform: translateY(calc((1 - var(--p)) * 95%)) rotate(calc((1 - var(--p)) * 7deg)); }

  /* Pinned scenes: main.js adds .pinned on a section when the viewport is tall enough for it. */
  .trajet.pinned { height: 300vh; }
  .pinned .trajet-pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    display: flex; align-items: center;
    padding: 76px var(--g) 28px;
    overflow: clip;
  }
  .pinned .route { width: min(100%, calc((100vh - 130px) * 1.73)); width: min(100%, calc((100svh - 130px) * 1.73)); overflow: visible; }
  .pinned .route svg { min-width: 0; }

  .produits.pinned { padding: 0; height: calc(100vh + var(--dist, 0px)); height: calc(100svh + var(--dist, 0px)); }
  .produits.pinned .pin {
    position: sticky; top: 0;
    height: 100vh; height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
    padding-top: 70px;
    overflow: clip;
  }
  .pinned .track {
    display: flex; align-items: stretch; gap: 16px;
    width: max-content; max-width: none; margin: 0;
    padding: 0 var(--g);
    transform: translate3d(calc(var(--p) * var(--dist, 0px) * -1), 0, 0);
    will-change: transform;
  }
  .produits.pinned .liste, .pinned .extras { display: flex; gap: 16px; margin: 0; }
  .pinned .liste-corps { display: block; }
  .pinned .panel { flex: none; width: clamp(262px, 76vw, 380px); min-height: min(66vh, 560px); min-height: min(66svh, 560px); }
  .produits.pinned .sec-head { width: clamp(280px, 86vw, 660px); margin: 0; display: flex; flex-direction: column; justify-content: center; gap: 22px; }
  .produits.pinned .sec-head h2 { margin: 0; }
  .pinned .hint { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; margin: 0; }
  .pinned .hint svg { animation: nudge 1.6s var(--ease) 3; }
  @keyframes nudge { 50% { translate: 8px 0; } }
  .pinned .liste:not(.liste-corps) .ico { width: clamp(96px, 9vw, 140px); }
  .pinned .produit h3 { font-size: clamp(1.9rem, 2.6vw, 2.7rem); }
  .pinned .corps, .pinned .cafe { width: clamp(280px, 84vw, 440px); }
  .pinned .cafe { flex-direction: column; }
  .pinned .pin-bar {
    display: block; position: absolute;
    left: var(--g); right: var(--g); bottom: clamp(18px, 3.5vh, 34px);
    height: 4px; border-radius: 2px;
    background: rgba(251, 247, 238, .22);
    overflow: hidden;
  }
  .pinned .pin-bar::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(var(--p)); }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 759px) {
  /* On a phone the map is wider than the screen: the camera follows the route. */
  .pinned .route { flex: none; width: 175vw; max-width: none; transform: translateX(calc(clamp(0, (var(--p) - .22) / .6, 1) * (-75vw - 2 * var(--g)))); }
  .pinned .pin-bar { bottom: 84px; }
  .produits.pinned .pin { padding-bottom: 60px; }
}

/* Native scroll-driven timelines; main.js writes the matching animation-range on each element. */
@supports (animation-timeline: view()) and (animation-range: entry 0% entry 100%) {
  @media (prefers-reduced-motion: no-preference) {
    /* view(0px): no inset, so scroll-padding-top (anchor offset) does not shift the ranges. */
    .mo:not(.scrub-js) [data-scrub] { animation: scrub linear both; animation-timeline: view(block 0px); }
    .mo:not(.scrub-js) .progress { animation-timeline: scroll(root block); }
  }
}

@media print {
  .top, .sticky, .progress, .bands, .badge, .cursor, .skip { display: none !important; }
  .hero { min-height: 0; }
  body, .hero, .trajet, .produits, .recettes, .postcard, .ticket, .foot { background-image: none; }
}
