/* The home page. Watercolours float on the paper without a box; the sample
   recipe card and cook mode are the app's own, at reading size. */

.watercolor {
  display: block;
  pointer-events: none;
  user-select: none;
}

/* Watercolours may reach past the column, never past the page. */
main {
  overflow-x: clip;
}

/* Hero: the splash's kitchen table. The carnet lies at the corner and runs
   off the page, the phone rests on it, ingredients are set down around and
   stay behind it: the table is the background, the phone the subject. */
.home-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  padding-block: 32px 96px;
}
.home-hero h1 {
  font-size: clamp(56px, 7.2vw, 104px);
  letter-spacing: -2.5px;
  line-height: 0.98;
  text-wrap: balance;
}
.home-hero .lead {
  margin: 24px 0 32px;
  max-width: 470px;
  font-size: 20px;
  line-height: 1.5;
  text-wrap: pretty;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}
.home-table {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.home-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 640px;
}
.home-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.home-sources li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
}
.sources-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}
.sources-marks {
  display: grid;
  grid-template-columns: repeat(2, 24px);
  gap: 8px 12px;
}
/* The three networks fit one line. */
.sources-social {
  grid-template-columns: repeat(3, 24px);
}
.source-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--ink);
}
.source-mark svg {
  width: 20px;
  height: 20px;
}
.source-mark img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

/* Cookbooks: a still life as tall as the two rows of marks beside it. */
.sources-books img {
  width: auto;
  height: 56px;
}

/* An iPhone 14 Pro drawn in CSS, after devices.css (picturepan2, MIT):
   every measure is in --u, a 428th of the phone's width, so it scales. */
.phone {
  --w: 300px;
  --u: calc(var(--w) / 428);
  position: relative;
  z-index: 1;
  width: var(--w);
  margin: 0;
  padding: calc(19 * var(--u));
  border: 1px solid #b9b2a6;
  border-radius: calc(68 * var(--u));
  background: #010101;
  box-shadow:
    inset 0 0 calc(4 * var(--u)) calc(2 * var(--u)) #f4f1ea,
    inset 0 0 0 calc(6 * var(--u)) #d8d1c4,
    0 32px 64px -28px rgba(58, 39, 25, 0.5),
    0 8px 24px -12px rgba(58, 39, 25, 0.24);
  rotate: 3deg;
}
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: calc(49 * var(--u));
}
/* The Dynamic Island. */
.phone::after {
  content: "";
  position: absolute;
  top: calc(30 * var(--u));
  left: 50%;
  width: calc(120 * var(--u));
  height: calc(35 * var(--u));
  border-radius: 999px;
  background: #010101;
  translate: -50% 0;
}
/* Volume buttons on the left edge, power on the right. */
.phone-buttons,
.phone-buttons::before,
.phone-buttons::after {
  position: absolute;
  width: calc(3 * var(--u));
  border-radius: 2px;
  background: #b9b2a6;
}
.phone-buttons {
  top: calc(115 * var(--u));
  left: calc(-3 * var(--u));
  height: calc(32 * var(--u));
}
.phone-buttons::before,
.phone-buttons::after {
  content: "";
  left: 0;
  height: calc(62 * var(--u));
}
.phone-buttons::before {
  top: calc(60 * var(--u));
}
.phone-buttons::after {
  top: calc(140 * var(--u));
}
.phone::before {
  content: "";
  position: absolute;
  top: calc(200 * var(--u));
  right: calc(-3 * var(--u));
  width: calc(3 * var(--u));
  height: calc(100 * var(--u));
  border-radius: 2px;
  background: #b9b2a6;
}

/* A prop's wrapper places it and follows the pointer (--mx, --my from
   home.js); the image inside it pops in, then breathes. */
.prop {
  position: absolute;
  display: block;
  pointer-events: none;
  translate: calc(var(--mx, 0) * var(--depth, 0) * 1px)
    calc(var(--my, 0) * var(--depth, 0) * 1px);
  transition: translate 1.2s var(--ease-out);
}
.prop img {
  width: 100%;
  height: auto;
  rotate: var(--r, 0deg);
}
.prop-carnet {
  --w: clamp(260px, 30vw, 420px);
  /* Its cover's C stays clear of the phone: a quarter runs off the page. */
  right: calc(var(--w) * -0.26);
  bottom: 0;
  width: var(--w);
  filter: drop-shadow(-16px 24px 32px rgba(58, 39, 25, 0.22));
}
/* The artwork stops where the splash's screen did; it fades into the
   paper instead of ending on a straight cut. */
.prop-carnet img {
  mask-image: linear-gradient(to bottom, #000 62%, transparent 96%);
}
.prop-basil {
  z-index: 0;
  top: 36%;
  left: -6%;
  width: 150px;
  --r: -28deg;
}
.prop-lemon {
  z-index: 0;
  bottom: 6%;
  left: -8%;
  width: 150px;
  filter: drop-shadow(8px 16px 16px rgba(58, 39, 25, 0.22));
}
.prop-tomato {
  z-index: 0;
  top: 6%;
  left: -6%;
  width: 136px;
  --r: -10deg;
}

/* Watercolours set beside a section's content. */
.float {
  position: absolute;
  z-index: 2;
}

/* How it works */
.home-steps {
  padding-block: 90px;
  border-top: 1px solid var(--line);
}
.home-step-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* Each step's moment in the app, on a common stage. */
.step-visual {
  position: relative;
  display: flex;
  align-items: center;
  height: 176px;
  margin-bottom: 24px;
}
/* 01: the ways in, going to Carnet. */
.share-inputs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.share-inputs li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  color: var(--ink);
}
.share-inputs svg {
  color: var(--accent);
}
.share-arrow {
  flex: none;
  margin: 0 8px;
  color: var(--muted);
}
.share-carnet {
  width: 111px;
  height: auto;
}
/* 02: the fiche fills in as Carnet reads the recipe. */
.read-fiche {
  width: min(100%, 280px);
  padding: 12px 16px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--card);
  box-shadow: 0 16px 32px -20px rgba(58, 39, 25, 0.5);
  font-size: 13px;
  line-height: 1.4;
  color: var(--body);
}
.read-fiche ul,
.read-fiche ol {
  display: grid;
  gap: 4px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}
.read-fiche ol {
  margin-bottom: 0;
}
.read-fiche .read-label {
  max-width: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.read-fiche strong {
  font-weight: 600;
  color: var(--accent);
}
.read-fiche ol li {
  display: flex;
  gap: 8px;
}
.read-number {
  font:
    600 14px / 1.2 Cormorant,
    serif;
  color: var(--accent);
}
/* 03: fiches kept in the carnet, spine bar and all. */
.step-keep {
  gap: 0;
}
.keep-card {
  position: relative;
  display: grid;
  width: 128px;
  border-left: 4px solid var(--accent);
  border-radius: 4px 12px 12px 4px;
  background: var(--card);
  box-shadow: 0 16px 32px -20px rgba(58, 39, 25, 0.5);
  overflow: hidden;
  rotate: -4deg;
}
.keep-card + .keep-card {
  margin-left: -24px;
  margin-top: 32px;
  rotate: 5deg;
}
.keep-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.keep-card span {
  padding: 8px 12px 12px;
  font:
    600 16px / 1.1 Cormorant,
    serif;
  color: var(--ink);
}
.home-step-number {
  font:
    500 28px Cormorant,
    serif;
  color: var(--accent);
}
.home-step h3 {
  margin: 6px 0 10px;
  font-size: 30px;
}
.home-step p {
  max-width: 300px;
  font-size: 16px;
}

/* Covers laid on the table, in no order, around the title. Each slot
   places a print (--x, --y: from the section's corner; --s: its width;
   --r: its tilt; --depth: how far it drifts as the section scrolls by,
   from home.js). Slots fill nearest the title first. */
.home-mosaic {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 1000px;
  overflow: clip;
  --k: 1;
}
/* The same divider as the other sections: as wide as the page's column. */
.home-mosaic::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(0px, (100% - 1120px) / 2);
  right: max(0px, (100% - 1120px) / 2);
  border-top: 1px solid var(--line);
}
.mosaic-heading {
  position: relative;
  z-index: 2;
  max-width: 600px;
  padding: 0 24px;
  text-align: center;
}
.mosaic-heading h2 {
  font-size: clamp(44px, 5vw, 68px);
  letter-spacing: -1.5px;
  line-height: 1.02;
  text-wrap: balance;
}
.mosaic-heading p {
  max-width: 420px;
  margin: 20px auto 0;
  font-size: 18px;
}
.mosaic-covers {
  position: absolute;
  inset: 80px 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.mosaic-cover {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: calc(var(--s) * var(--k));
  rotate: var(--r);
  translate: 0 calc(var(--drift, 0) * var(--depth, 0) * 1px);
}
.mosaic-cover:nth-child(1) {
  --x: 7%;
  --y: 8%;
  --s: 210px;
  --r: -7deg;
  --depth: 40;
}
.mosaic-cover:nth-child(2) {
  --x: 76%;
  --y: 6%;
  --s: 230px;
  --r: 6deg;
  --depth: 64;
}
.mosaic-cover:nth-child(3) {
  --x: 13%;
  --y: 56%;
  --s: 236px;
  --r: 5deg;
  --depth: 72;
}
.mosaic-cover:nth-child(4) {
  --x: 72%;
  --y: 54%;
  --s: 214px;
  --r: -5deg;
  --depth: 46;
}
.mosaic-cover:nth-child(5) {
  --x: 33%;
  --y: 2%;
  --s: 150px;
  --r: 4deg;
  --depth: 24;
}
.mosaic-cover:nth-child(6) {
  --x: 55%;
  --y: 74%;
  --s: 164px;
  --r: -4deg;
  --depth: 30;
}
.mosaic-cover:nth-child(7) {
  --x: 57%;
  --y: 1%;
  --s: 140px;
  --r: -6deg;
  --depth: 36;
}
.mosaic-cover:nth-child(8) {
  --x: 31%;
  --y: 76%;
  --s: 152px;
  --r: 7deg;
  --depth: 52;
}
.mosaic-cover:nth-child(9) {
  --x: -2%;
  --y: 33%;
  --s: 150px;
  --r: 3deg;
  --depth: 58;
}
.mosaic-cover:nth-child(10) {
  --x: 89%;
  --y: 31%;
  --s: 160px;
  --r: -8deg;
  --depth: 42;
}
.mosaic-cover:nth-child(n + 11) {
  display: none;
}
/* A print: the cover, its title and its creator on white card. */
.mosaic-cover > * {
  display: block;
  padding: 8px 8px 12px;
  border-radius: 6px;
  background: #fff;
  box-shadow:
    0 24px 44px -26px rgba(58, 39, 25, 0.55),
    0 2px 6px rgba(58, 39, 25, 0.1);
  color: inherit;
  text-decoration: none;
  transition:
    rotate 0.6s var(--ease-out),
    scale 0.6s var(--ease-out),
    box-shadow 0.6s var(--ease-out);
}
.mosaic-cover > a:hover {
  rotate: calc(var(--r) * -1);
  scale: 1.04;
  box-shadow:
    0 32px 56px -26px rgba(58, 39, 25, 0.6),
    0 2px 6px rgba(58, 39, 25, 0.1);
}
.mosaic-cover:has(a:hover) {
  z-index: 3;
}
.mosaic-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 3px;
}
.mosaic-title {
  display: block;
  margin: 10px 4px 0;
  font:
    600 17px / 1.15 Cormorant,
    Georgia,
    serif;
  color: var(--ink);
}
.mosaic-credit {
  display: block;
  margin: 3px 4px 0;
  font-size: 11px;
  color: var(--support, #c0703f);
}

/* The app itself, in a phone, on a warmer patch of paper that fades in
   and out of the page instead of starting on a line. */
.home-live {
  /* A warm wash over the paper's own grain, so the fades leave no seam. */
  --tint: rgba(196, 160, 118, 0.16);
  background: linear-gradient(
    to bottom,
    transparent,
    var(--tint) 24%,
    var(--tint) 76%,
    transparent
  );
}
.home-live-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 96px;
  align-items: center;
  padding-block: 150px;
}
.live-copy {
  max-width: 460px;
}
.live-copy p {
  margin-top: 20px;
  font-size: 18px;
}
/* Says the phone is the reader's to use: a live dot, then their turn. */
.live-try {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  padding: 12px 22px 12px 18px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  font:
    600 15px Karla,
    sans-serif;
  cursor: pointer;
  transition:
    background 0.3s var(--ease-out),
    color 0.3s var(--ease-out);
}
.live-try:hover:not(:disabled) {
  background: var(--accent);
  color: var(--paper);
}
.live-try:disabled {
  border-color: var(--line);
  color: var(--body);
  cursor: default;
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.live-try:disabled .live-dot {
  background: #4f8a4a;
}
.live-phone {
  margin: 0;
}
/* The screen holds the app at an iPhone 17's 402 x 874 points, scaled to
   the phone drawn around it. */
.phone.phone-live {
  --wn: 360;
  --w: calc(var(--wn) * 1px);
  rotate: none;
}
.phone-screen {
  position: relative;
  aspect-ratio: 402 / 874;
  overflow: hidden;
  border-radius: calc(49 * var(--u));
  background: var(--paper);
}
.phone-screen iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 402px;
  height: 874px;
  border: 0;
  transform: scale(calc(var(--wn) * 390 / 428 / 402));
  transform-origin: 0 0;
}
.phone-takeover {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  background: none;
  cursor: pointer;
}
.phone-live::after {
  z-index: 2;
  pointer-events: none;
}
.live-credit {
  margin-top: 24px;
  font-size: 13px;
  text-align: center;
}
.live-credit a {
  color: var(--muted);
  text-underline-offset: 3px;
}
.live-credit a:hover {
  color: var(--ink);
}

/* Pricing */
.home-pricing {
  padding-block: 90px;
  border-top: 1px solid var(--line);
}
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.plan {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: inset 6px 0 0 var(--accent);
}
.plan h3 {
  margin: 12px 0 14px;
}
.price {
  margin-bottom: 14px;
  font:
    600 40px / 1.2 Cormorant,
    serif;
}
.price small {
  font:
    400 14px Karla,
    sans-serif;
}
.price.price-store {
  font-size: 22px;
  color: var(--muted);
}
.plan > p:last-child {
  font-size: 15px;
}
.pricing-note {
  max-width: 760px;
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}

/* Questions */
.home-faq {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 40px;
  padding-block: 80px 100px;
  border-top: 1px solid var(--line);
}
.home-faq details {
  border-bottom: 1px solid var(--line);
}
.home-faq summary {
  padding: 20px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}
.home-faq summary::-webkit-details-marker {
  display: none;
}
.home-faq summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--accent);
}
.home-faq details[open] summary::after {
  content: "–";
}
.home-faq details p {
  padding-bottom: 20px;
  max-width: 620px;
}

/* Closing */
.home-closing {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 110px;
  background: var(--card);
  border-top: 1px solid var(--line);
  text-align: center;
}
.home-closing h2 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 14px;
}
.home-closing p {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
  font-size: 19px;
}
.home-closing .button,
.home-closing .fine {
  position: relative;
  z-index: 1;
}
.home-closing .fine {
  margin-top: 14px;
}
.float-strawberry {
  width: 150px;
  left: 6%;
  top: 22%;
  rotate: -14deg;
}
.float-eggs {
  width: 160px;
  right: 7%;
  top: 14%;
  rotate: 10deg;
}
.float-chili {
  width: 150px;
  right: 16%;
  bottom: 8%;
  rotate: -30deg;
}

/* Section headings */
.home-heading {
  max-width: 620px;
  margin-bottom: 48px;
}
.home-heading h2 + p {
  margin-top: 18px;
  font-size: 18px;
}

@media (max-width: 980px) {
  .home-hero,
  .home-live-inner {
    gap: 40px;
  }
}
@media (max-width: 1100px) {
  .home-mosaic {
    --k: 0.78;
  }
}
@media (max-width: 760px) {
  /* The title first, then the prints in two loose columns. */
  .home-mosaic {
    display: block;
    min-height: 0;
    padding-block: 64px 72px;
  }
  .mosaic-heading h2 {
    font-size: 40px;
    letter-spacing: -1px;
  }
  .mosaic-covers {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 18px;
    margin-top: 40px;
    padding-inline: 24px;
  }
  .mosaic-cover {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
  }
  .mosaic-cover:nth-child(even) {
    margin-top: 36px;
  }
  .mosaic-cover:nth-child(n + 9) {
    display: none;
  }
  .home-live-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 104px;
  }
  .live-phone {
    justify-self: center;
  }
  .phone.phone-live {
    --wn: 290;
    --w: calc(var(--wn) * 1px);
  }
  .home-hero-inner {
    grid-template-columns: 1fr;
    padding-block: 16px 64px;
  }
  .home-hero h1 {
    font-size: 58px;
    letter-spacing: -1.6px;
  }
  .home-hero .lead {
    font-size: 18px;
    margin: 16px 0 24px;
  }
  .home-hero-art {
    min-height: 0;
    padding: 32px 0 8px;
  }
  .phone {
    --w: 240px;
  }
  .prop-carnet {
    --w: 240px;
    right: -120px;
  }
  .prop-basil {
    width: 110px;
    top: 2%;
    left: auto;
    right: -4px;
    --r: 18deg;
  }
  .prop-lemon {
    width: 104px;
    left: -4px;
  }
  .prop-tomato {
    width: 100px;
    top: 4%;
    left: -4px;
  }
  .home-steps,
  .home-pricing {
    padding-block: 60px;
  }
  .home-step-list {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .step-visual {
    height: auto;
    min-height: 152px;
    margin-bottom: 16px;
  }
  .home-step h3 {
    font-size: 26px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .home-faq {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-block: 60px 70px;
  }
  .home-closing {
    padding-block: 140px 80px;
  }
  .float-strawberry {
    width: 100px;
    top: 30px;
    left: 4%;
  }
  .float-eggs {
    width: 110px;
    top: 24px;
    right: 4%;
  }
  .float-chili {
    display: none;
  }
}
/* Motion, after the design-to-motion grammar: things rise from below and
   resolve from blur to sharp, staggered in reading order, on curves that
   decelerate into place. Only transform, opacity and filter move. With
   reduced motion everything is simply there, in its final state. */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-fade: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}
@media (prefers-reduced-motion: no-preference) {
  /* The hero plays once on load, in CSS, so it needs no script to show. */
  .enter {
    animation: rise 1.05s var(--ease-out) var(--d, 0s) both;
  }
  .phone {
    animation: card-in 1.1s var(--ease-out) 0.45s both;
  }
  .prop img {
    animation:
      pop 1.05s var(--ease-out) var(--d, 0s) both,
      breathe 3.2s ease-in-out calc(var(--d, 0s) + 1.05s) infinite alternate;
  }
  .prop-carnet img {
    animation: slide-in 1.3s var(--ease-out) var(--d, 0s) both;
  }

  /* Sections reveal once, when about a third is in view (home.js). */
  .motion [data-reveal] .reveal {
    opacity: 0;
    transform: translateY(32px);
    filter: blur(4px);
    transition:
      opacity 0.8s var(--ease-fade),
      transform 1.05s var(--ease-out),
      filter 0.8s var(--ease-fade);
    transition-delay: calc(var(--i, 0) * 90ms);
  }
  .motion [data-reveal].is-in .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .motion [data-reveal] .share-inputs li,
  .motion [data-reveal] .share-carnet,
  .motion [data-reveal] .read-fiche li,
  .motion [data-reveal] .keep-card img {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    filter: blur(4px);
    transition:
      opacity 0.7s var(--ease-fade),
      transform 1.05s var(--ease-out),
      filter 0.7s var(--ease-fade);
    transition-delay: calc(var(--i, 0) * 90ms + var(--k, 0) * 140ms + 300ms);
  }
  .motion [data-reveal] .share-carnet {
    transition-delay: calc(var(--i, 0) * 90ms + 800ms);
  }
  .motion [data-reveal] .share-arrow path:first-child {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 0.7s var(--ease-io) calc(var(--i, 0) * 90ms + 600ms);
  }
  .motion [data-reveal].is-in .share-inputs li,
  .motion [data-reveal].is-in .share-carnet,
  .motion [data-reveal].is-in .read-fiche li,
  .motion [data-reveal].is-in .keep-card img {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .motion [data-reveal].is-in .share-arrow path:first-child {
    stroke-dashoffset: 0;
  }
  .motion [data-reveal] .pop-in {
    opacity: 0;
    transform: translateY(16px) scale(0.86) rotate(-10deg);
    filter: blur(6px);
    transition:
      opacity 0.7s var(--ease-fade),
      transform 1.05s var(--ease-out),
      filter 0.7s var(--ease-fade);
  }
  .motion [data-reveal] .pop-in:nth-child(2) {
    transition-delay: 120ms;
  }
  .motion [data-reveal] .pop-in:nth-child(3) {
    transition-delay: 240ms;
  }
  .motion [data-reveal].is-in .pop-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .motion [data-reveal].is-in .pop-in {
    animation: breathe 3.2s ease-in-out 1.2s infinite alternate;
  }

  .live-try:not(:disabled) .live-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: currentColor;
    animation: live-pulse 1.8s var(--ease-out) infinite;
  }
}
@keyframes live-pulse {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(4px);
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(32px) scale(0.985);
    filter: blur(6px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.86) rotate(-12deg);
    filter: blur(6px);
  }
}
@keyframes slide-in {
  from {
    opacity: 0;
    transform: translate(64px, 96px) rotate(6deg);
    filter: blur(6px);
  }
}
@keyframes breathe {
  to {
    translate: 0 -4px;
  }
}
