/* BeliBex · landing page — felt patches, stitched seams, postcards from the prototype */

:root {
  --blue: #1f8ae6;
  --blue-deep: #0f5fae;
  --blue-ink: #0b3a6b;
  --cotton: #fbf6ec;
  --cream: #fff9ee;
  --wool: #f3ead8;
  --yellow: #f2b705;
  --tile: #d9622b;
  --ink: #1f2a3a;
  --muted: #5b6577;
  --stitch: rgba(255, 249, 238, 0.85);
  --radius: 34px;
  --shadow: 0 18px 40px -18px rgba(11, 58, 107, 0.45), 0 6px 14px -8px rgba(11, 58, 107, 0.35);
  --font-display: 'Bagel Fat One', 'Baloo 2', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --font-hand: 'Gochi Hand', 'Comic Sans MS', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--cotton);
  /* paper grain */
  background-image:
    radial-gradient(rgba(31, 42, 58, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(31, 42, 58, 0.025) 1px, transparent 1px);
  background-size: 7px 7px, 11px 11px;
  background-position: 0 0, 3px 5px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px;
}
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- felt patches */
.patch {
  position: relative;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
/* the stitched seam, a few px inside the edge */
.patch::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 3px dashed var(--stitch);
  border-radius: calc(var(--radius) - 12px);
  pointer-events: none;
}

/* ------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 28px 28px 0;
}
/* the real contour lines of Bex (swisstopo, belibex-3d/tools/topo_site.py) dress the sides of the hero
   and fade out before the first section */
.hero::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 0 -140px;
  background: url('img/topo-bex.svg') center / cover no-repeat;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
  pointer-events: none;
}
.hero-patch {
  max-width: 1240px;
  margin: 0 auto;
  min-height: min(760px, 92vh);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 24px;
  padding: 72px 64px 120px;
  background: var(--blue) url('img/felt-blue.jpg?v=2') center / 420px;
  color: var(--cream);
  overflow: hidden;
}
.hero-patch::after { /* soft light from the top left, like a lamp on felt */
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.18), transparent 55%),
              radial-gradient(90% 70% at 100% 100%, rgba(11, 58, 107, 0.35), transparent 60%);
  pointer-events: none;
}
.hero-text { position: relative; z-index: 2; }

/* felt controller patch beside the title, as tall as its two lines, with the kicker curving over it */
.brand {
  display: flex; align-items: center; gap: 0.1em;
  margin-top: 0.3em; padding-left: 0.2em; /* room for the curved kicker, kept inside the stitching */
  font-size: clamp(4rem, 10vw, 8.6rem); /* the logo's size: the badge and the kicker scale with it */
}
.brand-badge {
  flex: none; position: relative;
  width: 1.6em; height: 1.6em;
  transform: rotate(-6deg);
}
.brand-badge img {
  display: block; width: 100%; height: 100%;
  filter: drop-shadow(0 8px 12px rgba(11, 58, 107, 0.45));
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.brand-badge img:hover { transform: rotate(10deg) scale(1.05); }
.kicker {
  position: absolute; inset: -20%; /* matches the viewBox margin: 20 units around a 100-unit badge */
  overflow: visible; pointer-events: none;
  font-family: var(--font-hand);
  font-size: 17px; /* in viewBox units */
  letter-spacing: 0.04em;
  fill: var(--yellow);
}
.logo {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1em;
  line-height: 0.88;
  letter-spacing: -0.02em;
}
.logo span { display: block; width: fit-content; }
.logo-beli {
  color: var(--cream);
  text-shadow: 0 5px 0 var(--blue-deep), 0 10px 22px rgba(11, 58, 107, 0.45);
}
.logo-bex {
  color: var(--yellow);
  text-shadow: 0 5px 0 #b98400, 0 10px 22px rgba(11, 58, 107, 0.45);
  position: relative; /* drawn over the bottom of "Beli" */
  transform: rotate(-4deg);
  margin: -0.3em 0 0 0.3em;
}
.tagline {
  margin: 22px 0 14px;
  font-family: var(--font-body); /* the round display font stays for the logo and the titles */
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.lead {
  max-width: 34em;
  margin: 0 0 30px;
  color: rgba(255, 249, 238, 0.92);
  font-size: 1.08rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(.34,1.56,.64,1), box-shadow 0.18s;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.btn-cream {
  background: var(--cream); color: var(--blue-ink);
  box-shadow: 0 6px 0 #d6c9b0, 0 14px 24px -10px rgba(0, 0, 0, 0.4);
}
.btn-ghost {
  color: var(--cream);
  border: 3px dashed var(--stitch);
}
.btn-blue {
  background: var(--blue); color: var(--cream);
  box-shadow: 0 6px 0 var(--blue-deep), 0 14px 24px -10px rgba(11, 58, 107, 0.6);
  font-size: 1.15rem;
}

/* Beli */
.beli-stage {
  position: relative; z-index: 2;
  justify-self: center;
  width: min(100%, 520px);
  padding: 0; border: 0; background: none; cursor: pointer;
}
/* Beli is a stack of full-size layers (assets/img/hero, cut by belibex-3d/tools/prep_hero_site.py):
   four legs that lift in diagonal pairs, the body that bobs, and one eyes + one mouth layer per expression */
.beli {
  display: block; position: relative;
  aspect-ratio: 809 / 900;
  filter: drop-shadow(0 26px 30px rgba(11, 58, 107, 0.45));
  transform-origin: 50% 95%;
}
.beli img, .beli-body { position: absolute; inset: 0; width: 100%; height: 100%; }
.beli-body { transform-origin: 50% 95%; animation: walk-body var(--step) ease-in-out infinite; }
.beli-stage { --step: 0.9s; }
.leg { animation: walk-leg var(--step) ease-in-out infinite; }
.leg-fr, .leg-bl { animation-delay: calc(var(--step) / -2); }
.shadow {
  position: absolute; left: 22%; right: 22%; bottom: -2%;
  height: 24px; border-radius: 50%;
  background: rgba(11, 58, 107, 0.35); filter: blur(10px);
  animation: shadow calc(var(--step) / 2) ease-in-out infinite;
}
.beli-stage.jump .beli { animation: jump 0.75s cubic-bezier(.3,.9,.4,1) 1; }
.beli-stage:focus-visible { outline: 3px dashed var(--yellow); outline-offset: 8px; border-radius: 30px; }

.beli .eyes, .beli .mouth { display: none; }
/* following the pointer (set by main.js, -1..1): the eyes travel further than the mouth, so the face seems to turn */
.beli .eyes { translate: calc(var(--look-x, 0) * 1.5%) calc(var(--look-y, 0) * 1%); }
.beli .mouth { translate: calc(var(--look-x, 0) * 0.6%) calc(var(--look-y, 0) * 0.4%); }
[data-expression="neutre"] :is(.eyes-open, .mouth-smile),
[data-expression="sourire"] :is(.eyes-happy, .mouth-laugh),
[data-expression="surprise"] :is(.eyes-wide, .mouth-o),
[data-expression="clin"] :is(.eyes-wink, .mouth-smile),
[data-expression="satisfaction"] :is(.eyes-calm, .mouth-smile),
[data-expression="triste"] :is(.eyes-open, .mouth-sad) { display: block; }
.beli.blink .eyes-open { display: none; }
.beli.blink:is([data-expression="neutre"], [data-expression="triste"]) .eyes-calm { display: block; }

@keyframes walk-leg {
  0%, 50%, 100% { transform: translateY(0); }
  25% { transform: translateY(-2.2%); }
}
/* the body rises a little on each step and leans toward the legs that stay on the ground */
@keyframes walk-body {
  0%, 50%, 100% { transform: translateY(0) rotate(0); }
  25% { transform: translateY(-0.7%) rotate(1deg); }
  75% { transform: translateY(-0.7%) rotate(-1deg); }
}
@keyframes shadow {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.94); opacity: 0.85; }
}
@keyframes jump {
  0% { transform: translateY(0) scale(1.06, 0.92); }
  30% { transform: translateY(-80px) scale(0.95, 1.06) rotate(-6deg); }
  60% { transform: translateY(-40px) rotate(4deg); }
  85% { transform: translateY(0) scale(1.08, 0.9); }
  100% { transform: translateY(0) scale(1); }
}

/* sewn-on "bientôt" tag */
.tag {
  position: absolute; z-index: 3;
  right: 56px; top: 54px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px 10px 14px;
  background: var(--yellow);
  color: var(--blue-ink);
  border-radius: 10px 999px 999px 10px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  transform: rotate(9deg);
  box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
  transform-origin: 0 50%;
  animation: swing 5s ease-in-out infinite;
}
.tag-hole { width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 2px 3px rgba(0,0,0,.35); }
@keyframes swing { 0%, 100% { transform: rotate(9deg); } 50% { transform: rotate(3deg); } }

/* Dents du Midi along the bottom of the felt */
.dents {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 120px;
  z-index: 1;
  fill: rgba(255, 249, 238, 0.16);
  pointer-events: none;
}
.dents .snow { fill: rgba(255, 255, 255, 0.55); }

/* ------------------------------------------------------------- sections */
main { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 72px 0; }

/* every other section sits on a full-width strip of pale blue felt, sewn on top and bottom
   (new sections join the rhythm by themselves; class="no-band" opts out) */
main > section:nth-of-type(even):not(.no-band)::before {
  content: ""; position: absolute; z-index: -1;
  inset: 0 calc(50% - 50vw);
  --seam: repeating-linear-gradient(90deg, rgba(31, 138, 230, 0.45) 0 14px, transparent 14px 24px);
  background:
    var(--seam) 0 12px / 100% 2px no-repeat,
    var(--seam) 0 calc(100% - 12px) / 100% 2px no-repeat,
    url('img/felt-grain.jpg?v=2') 0 0 / 320px,
    #dcecf8;
  background-blend-mode: normal, normal, multiply, normal;
}

.section-title {
  position: relative;
  display: inline-block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  color: var(--blue-ink);
}
.scribble { /* hand-drawn underline */
  position: absolute; left: -2%; right: -4%; bottom: -10px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 60 2, 120 13, 180 6 S 270 4, 298 8' fill='none' stroke='%23f2b705' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
}
/* a title followed by Beli's hoofprints walking off to the right */
.title-row { display: flex; align-items: center; gap: 28px; }
.title-row .section-title { flex: none; }
.hoof-walk {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 22px;
  height: 76px; padding-top: 6px;
  overflow: hidden;
}
.hoof {
  flex: none;
  width: 26px; height: 26px;
  fill: var(--blue-ink);
  opacity: 0.4; /* resting state, also what reduced-motion visitors see */
  transform: rotate(96deg) translateX(-12px); /* walking right, toes turned a little out; left feet higher */
  animation: hoof-step 7s calc(var(--i) * 0.28s) infinite backwards;
}
.hoof:nth-of-type(odd) { transform: rotate(84deg) translateX(12px); }
@keyframes hoof-step {
  0% { opacity: 0; scale: 0.6; }
  4%, 60% { opacity: 0.4; scale: 1; }
  75%, 100% { opacity: 0; }
}
.section-lead {
  margin: 18px 0 40px;
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--muted);
}

/* concept cards */
.patches {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  padding: 40px 34px 38px;
  color: var(--cream);
  background-size: 320px;
}
/* the icon sits beside the title */
.card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.1;
}
.card p { margin: 0; font-size: 1.05rem; }
.card-blue { background: var(--blue) url('img/felt-blue.jpg?v=2'); transform: rotate(-1.2deg); }
/* warm brown on yellow: a dark blue on this yellow vibrated and tired the eyes */
.card-yellow {
  background: var(--yellow) url('img/felt-grain.jpg?v=2');
  background-blend-mode: multiply;
  color: #4a3405;
  --stitch: rgba(74, 52, 5, 0.4);
  transform: rotate(0.8deg) translateY(14px);
}
.card-tile {
  background: var(--tile) url('img/felt-grain.jpg?v=2');
  background-blend-mode: multiply;
  transform: rotate(-0.6deg);
}
.card-icon {
  flex: none; width: 60px; height: 60px; fill: var(--cream);
  filter: drop-shadow(0 4px 5px rgba(11, 58, 107, 0.35));
}
.card-icon .ci-dark { fill: var(--blue-deep); }
.card-icon .ci-line { fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; }
.card-badge {
  flex: none; width: 64px; height: 64px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .card-badge { transform: rotate(-8deg) scale(1.06); }
/* family card: the three stars of a mission, sewn in yellow felt */
.card-stars { flex: none; display: flex; gap: 2px; align-items: center; }
.card-stars > svg:not([width="0"]) {
  width: 34px; height: 34px; fill: var(--yellow);
  stroke: rgba(255, 249, 238, 0.9); stroke-width: 1; stroke-dasharray: 1.6 1.2;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.3));
}
.card-stars > svg:nth-child(3) { transform: translateY(-7px) scale(1.15); }

/* shops: a felt road from shop to shop */
.circuit { position: relative; aspect-ratio: 1200 / 440; margin: 10px 0 30px; }
.road { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; fill: none; }
.road path {
  stroke: #e8dcc3; stroke-width: 38px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 6px 8px rgba(11, 58, 107, 0.18));
}
.road .road-line { stroke: var(--yellow); stroke-width: 4px; stroke-dasharray: 14 12; filter: none; }
.road-tall { display: none; }
.stops { list-style: none; margin: 0; padding: 0; }
.stops li {
  position: absolute; left: var(--x); top: var(--y);
  width: clamp(92px, 11vw, 140px);
  translate: -50% -50%;
  display: flex; flex-direction: column; align-items: center;
}
.stops img {
  width: 100%; height: auto;
  filter: drop-shadow(0 10px 12px rgba(11, 58, 107, 0.3));
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.stops li:hover img { transform: translateY(-8px) rotate(-6deg) scale(1.06); }
.stops span {
  position: absolute; top: 100%; margin-top: 6px;
  white-space: nowrap;
  /* a soft cotton halo keeps the label readable over the road without cutting the icon's shadow */
  text-shadow: 0 0 3px var(--cotton), 0 0 6px var(--cotton), 0 0 10px var(--cotton);
  font-family: var(--font-hand); font-size: 1.35rem; color: var(--blue-ink);
}

/* the presentation video, a big postcard above the others (YouTube's player inside) */
.video-card {
  position: relative;
  max-width: 900px;
  margin: 10px auto 64px;
  padding: 16px 16px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 26px 46px -24px rgba(31, 42, 58, 0.6), 0 2px 6px rgba(31, 42, 58, 0.12);
  transform: rotate(-0.8deg);
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--blue-ink); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card figcaption {
  padding: 12px 6px 16px;
  font-family: var(--font-hand);
  font-size: 1.6rem;
  color: var(--blue-ink);
}

/* postcards */
.postcards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 46px 40px;
  align-items: start; /* a longer caption must not stretch the card next to it */
  padding: 10px 10px 30px;
}
.postcard {
  position: relative;
  margin: 0;
  padding: 14px 14px 0;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 22px 40px -22px rgba(31, 42, 58, 0.55), 0 2px 6px rgba(31, 42, 58, 0.12);
  transition: transform 0.35s cubic-bezier(.34,1.56,.64,1);
}
.postcard img { width: 100%; height: auto; border-radius: 3px; aspect-ratio: 16 / 9; object-fit: cover; }
.postcard figcaption {
  padding: 10px 6px 14px;
  font-family: var(--font-hand);
  font-size: 1.5rem;
  color: var(--blue-ink);
}
.pc-1 { transform: rotate(-2.2deg); }
.pc-2 { transform: rotate(1.6deg) translateY(26px); }
.pc-3 { transform: rotate(1.2deg); }
.pc-4 { transform: rotate(-1.8deg) translateY(20px); }
.postcard:hover { transform: rotate(0) scale(1.03); z-index: 2; }
.tape {
  position: absolute; top: -14px; left: 50%;
  width: 120px; height: 30px; margin-left: -60px;
  background: rgba(242, 183, 5, 0.75);
  transform: rotate(-4deg);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%);
}
.pc-2 .tape, .pc-4 .tape { background: rgba(31, 138, 230, 0.6); transform: rotate(5deg); }

/* moods */
.moods-patch {
  padding: 56px 40px 50px;
  background: var(--wool) url('img/wool.jpg?v=2') center / 300px;
  text-align: center;
  --stitch: rgba(31, 138, 230, 0.55);
}
.section-title.on-wool { color: var(--blue-ink); }
.faces {
  list-style: none;
  margin: 26px 0 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.faces li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.faces img {
  width: 100%; max-width: 120px; height: auto;
  filter: drop-shadow(0 8px 10px rgba(11, 58, 107, 0.25));
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1);
}
.faces li:hover img { transform: translateY(-10px) rotate(-6deg) scale(1.08); }
.faces span { font-family: var(--font-hand); font-size: 1.25rem; color: var(--blue-ink); }

/* signup */
.signup { padding-bottom: 40px; }
.signup-patch {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 50px 56px;
  text-align: center;
  background: var(--cream);
  --stitch: rgba(31, 138, 230, 0.5);
}
.signup-patch h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--blue-ink);
}
.signup-patch p { margin: 0 auto 28px; max-width: 30em; color: var(--muted); }
/* newsletter form (Infomaniak markup, inf-* classes kept for their script) */
.signup-form { max-width: 560px; margin: 0 auto; }
.signup-row { display: flex; gap: 12px; align-items: flex-start; }
.signup-form .inf-input { flex: 1; text-align: left; }
.signup-form input[type="email"] {
  width: 100%; height: 56px;
  padding: 0 22px;
  border: 3px dashed var(--stitch);
  border-radius: 999px;
  background: #fff;
  font: inherit; font-size: 1.05rem; color: var(--ink);
}
.signup-form input[type="email"]::placeholder { color: #a3abb8; }
.signup-form input[type="email"]:focus { outline: none; border-style: solid; border-color: var(--blue); }
.signup-form .inf-submit input { height: 56px; border: 0; font-family: inherit; cursor: pointer; }
.signup-form .inf-submit input.disabled { opacity: 0.5; cursor: wait; }
.signup-form .inf-error input[type="email"] { border-color: var(--tile); border-style: solid; }
.signup-form .inf-message { display: block; margin: 8px 22px 0; color: var(--tile); font-size: 0.92rem; font-weight: 600; }
.signup-small { margin: 18px auto 0; max-width: 34em; color: var(--muted); font-size: 0.88rem; }
.signup-thanks { margin: 0 auto; max-width: 26em; font-family: var(--font-hand); font-size: 1.6rem; line-height: 1.3; color: var(--blue-ink); }
.signup-form altcha-widget { --altcha-max-width: 100%; }
/* Facebook page, under the newsletter and in the footer */
.fb-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; text-decoration: none;
  color: var(--blue-deep);
}
.fb-link svg { width: 26px; height: 26px; fill: var(--blue); transition: transform 0.25s cubic-bezier(.34,1.56,.64,1); }
.fb-link:hover svg { transform: rotate(-10deg) scale(1.1); }
.fb-link:hover { text-decoration: underline 3px var(--yellow); text-underline-offset: 5px; }
.fb-link:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 6px; }
.signup-follow {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 10px;
  margin: 30px auto 0 !important; padding-top: 24px; max-width: 30em;
  border-top: 2px dashed var(--stitch);
  color: var(--muted);
}
.footer .follow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 18px; margin: 0 0 14px; }
.footer .fb-link { color: var(--cream); }
.footer .fb-link svg { fill: var(--cream); --fb-f: var(--blue-ink); } /* the f reaches the <use> copy through the variable */

/* merci.html, where Infomaniak sends people after they confirm */
.merci { min-height: 100vh; box-sizing: border-box; display: grid; place-items: center; }
.merci .signup { width: 100%; padding: 90px 0 40px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.signup-beli {
  position: absolute; top: -58px; right: 40px;
  width: 120px; transform: rotate(10deg);
  filter: drop-shadow(0 10px 12px rgba(11, 58, 107, 0.3));
}

/* footer */
.footer {
  margin-top: 30px;
  padding: 50px 28px 46px;
  text-align: center;
  background: var(--blue-ink);
  color: rgba(255, 249, 238, 0.8);
}
.footer .made { margin: 0 0 8px; font-family: var(--font-hand); font-size: 1.5rem; color: var(--cream); }
.footer .small { margin: 0; font-size: 0.85rem; line-height: 1.7; }

/* scroll reveal */
.reveal { opacity: 0; translate: 0 30px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; translate: 0 0; }
.patches .reveal:nth-child(2), .postcards .reveal:nth-child(2) { transition-delay: 0.12s; }
.patches .reveal:nth-child(3), .postcards .reveal:nth-child(3) { transition-delay: 0.24s; }
.postcards .reveal:nth-child(4) { transition-delay: 0.36s; }

/* hero entrance */
.hero-text > * { animation: rise 0.8s cubic-bezier(.2,.8,.2,1) both; }
.hero-text > :nth-child(2) { animation-delay: 0.08s; }
.hero-text > :nth-child(3) { animation-delay: 0.18s; }
.hero-text > :nth-child(4) { animation-delay: 0.26s; }
.hero-text > :nth-child(5) { animation-delay: 0.34s; }
.beli-stage { animation: pop 0.9s cubic-bezier(.34,1.56,.64,1) 0.3s both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6) rotate(-8deg); } }

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-patch { grid-template-columns: 1fr; padding: 56px 32px 110px; text-align: left; }
  .beli-stage { width: min(78%, 420px); order: -1; margin-top: 10px; }
  .tag { right: 26px; top: 26px; font-size: 1.2rem; }
  .patches { grid-template-columns: 1fr; }
  .card-yellow { transform: rotate(0.8deg); }
  .faces { grid-template-columns: repeat(4, 1fr); row-gap: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero { padding: 16px 16px 0; }
  main { padding: 0 16px; }
  .hero-patch { padding: 44px 24px 96px; --radius: 26px; }
  .postcards { grid-template-columns: 1fr; gap: 34px; padding: 10px 4px 20px; }
  .pc-2, .pc-4 { transform: rotate(1.4deg); }
  .signup-patch { padding: 56px 24px 46px; }
  .signup-beli { width: 92px; right: 18px; top: -46px; }
  .signup-row { flex-direction: column; align-items: stretch; }
  /* the road turns into a zigzag down the page */
  .circuit { aspect-ratio: 400 / 1150; max-width: 420px; margin: 0 auto 20px; }
  .road-wide { display: none; }
  .road-tall { display: block; }
  .stops li { left: var(--mx); top: var(--my); width: 112px; }
  .dents { height: 70px; }
  section { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}
