/* Petite Pâtisserie — landing page
   Palette sampled from the brand illustrations (storefront, Geneviève, Madeleine, Juliette). */

:root {
  --ink: #15120f;
  --ink-soft: #3d3732;
  --paper: #fffaf4;
  --white: #ffffff;
  --blue: #c1c6fc;        /* brand periwinkle, softened */
  --blue-clear: rgba(193, 198, 252, 0);
  --blue-light: #dfe2ff;
  --blue-deep: #8f99fb;
  --peach: #fff0db;       /* soft warm cream, instructions section */
  --mist: #b5c7eb;        /* soft blue accent */
  --periwinkle: #8f99fb;  /* deeper brand periwinkle, for shadows */
  --sage: #b4cbb2;        /* Geneviève's apron */
  --butter: #ffffd7;      /* brand cream */
  --navy: #2b2f5c;        /* brand navy, used for buttons */
  --lilac: #d9c7e2;       /* Madeleine's apron */
  --cinnamon: #b9793f;

  --font-display: "Bodoni Moda", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Jost", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 28px;
  --hard: 5px 5px 0 var(--ink);

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 5.2vw, 4.25rem); }
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.15;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px; top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
}
.skip:focus { top: 12px; }

/* ---------- Buttons, stickers, status ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 2px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
  box-shadow: 5px 5px 0 var(--periwinkle);
  cursor: pointer;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), background-color .18s, color .18s;
  touch-action: manipulation;
}
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 8px 8px 0 var(--periwinkle);
  background: var(--white);
  color: var(--navy);
}
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--periwinkle); }
.btn--small { min-height: 44px; padding: 8px 20px; font-size: 1rem; box-shadow: 4px 4px 0 var(--periwinkle); }
.btn--big { min-height: 64px; padding: 16px 36px; font-size: 1.25rem; }

.sticker {
  display: inline-block;
  padding: 9px 18px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--ink);
}
.sticker--sage { background: var(--sage); }
.sticker--mist { background: var(--mist); }
.sticker--butter { background: var(--butter); }

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
}
.status__dot {
  flex: none;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--ink-soft);
}
.status[data-state="open"] .status__dot {
  background: #2f9e5b;
  animation: pulse 1.8s ease-out infinite;
}
.status[data-state="closed"] .status__dot { background: var(--periwinkle); }
.status--inline { margin-top: 28px; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 158, 91, .55); }
  100% { box-shadow: 0 0 0 12px rgba(47, 158, 91, 0); }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--blue);
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: max(100vh, 700px);
  min-height: max(100svh, 700px);
}
/* The shop illustration fills the section. It is sized a little taller than
   the section and anchored to the bottom, so the shop's own painted sign sits
   above the top edge instead of clashing with the page title. */
.hero__shop {
  position: absolute;
  inset: -30% 0 0;
  z-index: -1;
  background: #c4e3ec url("assets/storefront.jpg") 50% 100% / cover no-repeat;
}

/* The black-and-white striped awning from the storefront illustration */
.awning {
  height: 46px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 36px, var(--white) 36px 72px);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 28px no-repeat,
    radial-gradient(circle at 50% 0, #000 17.5px, transparent 18.5px) 0 28px / 36px 18px repeat-x;
          mask:
    linear-gradient(#000 0 0) top / 100% 28px no-repeat,
    radial-gradient(circle at 50% 0, #000 17.5px, transparent 18.5px) 0 28px / 36px 18px repeat-x;
  filter: drop-shadow(0 3px 0 rgba(21, 18, 15, .18));
}

.nav {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: min(100% - var(--gutter) * 2, 1320px);
  margin: 10px auto 0;
}
.nav__links {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
}
.nav__links a {
  display: block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.3;
  transition: background-color .18s;
}
.nav__links a:hover { background: var(--mist); }

.hero__stage {
  position: relative;
  z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100% - var(--gutter) * 2, 1320px);
  margin-inline: auto;
  padding: clamp(14px, 2.5vh, 32px) 0 clamp(14px, 3.2vh, 40px);
}

/* The page title is the shop sign: a white board, like the one painted on the shop */
.hero__title {
  margin-top: 14px;
  padding: .2em .5em .16em;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: inset 0 0 0 5px var(--white), inset 0 0 0 6.5px var(--ink), 7px 7px 0 var(--ink);
  font-size: clamp(2.4rem, 6.2vw, 6.4rem);
  font-weight: 700;
  line-height: .98;
  text-transform: uppercase;
  letter-spacing: .01em;
  text-align: center;
  position: relative;
  z-index: 1;
}


.hero__figure {
  position: relative;
  width: min(100%, 400px);
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 2;
}
.hero__gen {
  position: relative;
  width: auto;
  height: clamp(360px, 56vh, 620px);
  transform-origin: 50% 100%;
}
/* Waving Geneviève (see script.js) */
.wave-defs { position: absolute; width: 0; height: 0; }
.gen-wave { display: block; aspect-ratio: 432 / 844; overflow: hidden; }
.gen-wave canvas { display: block; width: 100%; height: 200%; filter: url(#wave-matte); }

/* "Pre-orders open" starburst. It is also the text-to-order link. */
.burst {
  position: absolute;
  z-index: 4;
  left: 80%;
  top: 4%;
  width: clamp(158px, 13.5vw, 196px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  filter: drop-shadow(5px 5px 0 var(--ink));
  animation: burst-in .7s var(--ease-spring) 1.8s both;
  transition: scale .25s var(--ease-spring);
}
.burst:hover { scale: 1.08; }
.burst__shape { position: absolute; inset: 0; width: 100%; height: 100%; animation: burst-spin 48s linear infinite; }
.burst__fill { fill: var(--butter); stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.burst__line { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 5 4; }
.burst[data-state="closed"] .burst__fill { fill: var(--mist); }
.burst__text {
  position: relative;
  width: 62%;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.02rem, 1.3vw, 1.22rem);
  line-height: 1.08;
  text-align: center;
  text-wrap: balance;
  animation: burst-throb 1.5s ease-in-out 2.6s infinite alternate;
}
@keyframes burst-in {
  from { opacity: 0; transform: scale(.2) rotate(-40deg); }
  to { opacity: 1; transform: scale(1) rotate(9deg); }
}
@keyframes burst-spin { to { transform: rotate(360deg); } }
@keyframes burst-throb { to { transform: scale(1.09); } }
.burst__shape { transform-origin: 50% 50%; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Geneviève's speech bubble */
.bubble {
  position: absolute;
  z-index: 4;
  right: 77%;
  top: 11%;
  width: clamp(190px, 17vw, 250px);
  padding: 16px 20px 18px;
  border: 2.5px solid var(--ink);
  border-radius: 26px;
  background: var(--white);
  box-shadow: 6px 6px 0 var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.25;
  text-align: center;
  text-wrap: balance;
  transform-origin: 100% 100%;
  animation: bubble-in .6s var(--ease-spring) 1.5s both;
}
.bubble::after {
  content: "";
  position: absolute;
  right: 26px;
  bottom: -13px;
  width: 22px;
  height: 22px;
  background: var(--white);
  border-right: 2.5px solid var(--ink);
  border-bottom: 2.5px solid var(--ink);
  transform: rotate(28deg) skewX(28deg);
}
@keyframes bubble-in {
  from { opacity: 0; transform: scale(.3) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(-3deg); }
}

/* One orchestrated entrance */
.hero__title { animation: rise .9s var(--ease-out) both; }
.hero__gen { animation: pop-up .9s var(--ease-spring) .35s both; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes arch-in { from { opacity: 0; transform: scaleY(.6); } to { opacity: 1; transform: none; } }
@keyframes pop-up { from { opacity: 0; transform: translateY(60px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes sticker-in { from { opacity: 0; transform: rotate(var(--r)) scale(.3); } to { opacity: 1; transform: rotate(var(--r)) scale(1); } }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -9px; } }

/* Floating rolls */
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.floater {
  position: absolute;
  width: var(--s, 80px);
  height: var(--s, 80px);
  rotate: var(--rot, 0deg);
  translate: 0 calc(var(--scroll, 0) * 1px);
  animation: drift 3.4s ease-in-out infinite alternate;
  filter: drop-shadow(0 6px 0 rgba(21, 18, 15, .12));
}
.floater--heart { color: var(--periwinkle); filter: none; }
@keyframes drift { from { transform: translateY(-12px) rotate(-11deg) scale(.96); } to { transform: translateY(12px) rotate(11deg) scale(1.05); } }


/* ---------- Ticker ---------- */

.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding: 14px 0;
  position: relative;
  z-index: 4;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  white-space: nowrap;
}
.ticker svg { width: 42px; height: 38px; flex: none; animation: rock 1.6s ease-in-out infinite alternate; }
@keyframes rock { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Why ---------- */

.why { padding-top: clamp(64px, 9vw, 120px); background: var(--paper); }
.why__title { max-width: 9em; }
.why__wave { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.wave { width: 100%; height: clamp(60px, 9vw, 140px); }
.wave path { fill: var(--mist); }
.wave--top { margin-bottom: -1px; }
.wave--bottom { margin-top: -1px; }
.why__body {
  position: relative;
  background: var(--mist);
  padding: clamp(16px, 3vw, 40px) 0;
}
.why__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 72px);
  padding-right: clamp(0px, 22vw, 300px);
}
.why__item { display: flex; gap: 18px; align-items: flex-start; }
.why__item:nth-child(even) { margin-top: clamp(0px, 4vw, 56px); }
.why__item p { margin-top: 8px; max-width: 30em; color: var(--ink-soft); }
.why__icon {
  flex: none;
  width: 64px; height: 64px;
  padding: 11px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  box-shadow: 4px 4px 0 var(--ink);
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why__madeleine {
  position: absolute;
  right: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
  bottom: clamp(-150px, -9vw, -70px);
  width: auto;
  height: clamp(280px, 34vw, 460px);
  z-index: 2;
  transform-origin: 50% 100%;
  animation: sway 1.9s ease-in-out -.9s infinite alternate;
}

/* ---------- Four-pack ---------- */

.pack {
  position: relative;
  background: var(--butter);
  padding: clamp(72px, 10vw, 140px) 0 clamp(88px, 11vw, 150px);
  overflow: hidden;
  isolation: isolate;
}

.pack__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pack__lede { margin-top: 22px; max-width: 32em; font-size: 1.1875rem; color: var(--ink-soft); }
.pack__price { margin: 26px 0 28px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.pack__amount {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: .85;
  font-variant-numeric: lining-nums;
}
.pack__unit { font-family: var(--font-display); font-style: italic; font-size: 1.5rem; }
.pack__note { margin-top: 22px; color: var(--ink-soft); }

.photos {
  position: relative;
  width: min(100%, 480px);
  margin-inline: auto;
  aspect-ratio: 1 / 1.16;
}
.photo {
  position: absolute;
  margin: 0;
  border: 2.5px solid var(--ink);
  border-radius: 22px;
  background: var(--white);
  padding: 10px;
  box-shadow: 10px 10px 0 var(--ink);
}
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 13px; }
.photo--back { left: 0; top: 0; width: 58%; aspect-ratio: 3 / 4.3; --r: -6deg; }
.photo--front { right: 0; bottom: 0; width: 66%; aspect-ratio: 3 / 4.1; --r: 4deg; z-index: 1; }
.photo { transform: rotate(var(--r)); }
.photos__sticker { position: absolute; z-index: 2; left: -4px; bottom: 9%; rotate: -10deg; }

/* Photos drop into place when they scroll into view */
.js .photo { opacity: 0; transform: translateY(-60px) rotate(calc(var(--r) * 3)) scale(.9); }
.js .photos.is-in .photo {
  opacity: 1;
  transform: rotate(var(--r));
  transition: transform .8s var(--ease-spring), opacity .35s;
}
.js .photos.is-in .photo--front { transition-delay: .18s; }

/* ---------- Ordering ---------- */

.order {
  position: relative;
  background: var(--blue);
  padding: clamp(72px, 10vw, 140px) 0;
}
.order::before, .cta::before {
  /* scalloped top edge, like the awning */
  content: "";
  position: absolute;
  left: 0; right: 0; top: -19px;
  height: 20px;
  background: radial-gradient(circle at 50% 100%, var(--edge) 19.5px, transparent 20.5px) 50% 0 / 40px 20px repeat-x;
}
.order::before { --edge: var(--blue); }
.order__grid { position: relative; z-index: 2; }
.order__copy { max-width: 720px; margin-inline: auto; text-align: center; }
.order__copy h2 { max-width: none; }
.o1 { --s: 92px; left: 4%; top: 14%; --rot: 16deg; }
.o2 { --s: 56px; left: 13%; top: 48%; --rot: -20deg; animation-delay: -2s; }
.o3 { --s: 74px; right: 5%; top: 12%; --rot: 8deg; animation-delay: -4s; }
.o4 { --s: 66px; left: 6%; bottom: 10%; --rot: -10deg; animation-delay: -1s; }
.o5 { --s: 50px; right: 13%; top: 52%; --rot: 26deg; animation-delay: -3s; }
.o6 { --s: 84px; right: 4%; bottom: 12%; --rot: -16deg; animation-delay: -5s; }

/* The big starburst under the steps */
.burst--big {
  position: relative;
  left: auto; top: auto;
  width: clamp(220px, 24vw, 280px);
  margin: clamp(28px, 4vw, 48px) auto 0;
  rotate: -6deg;
  animation: none;
}
.burst--big .burst__text { font-size: clamp(1.45rem, 2.1vw, 1.8rem); animation-delay: 0s; }

.steps { margin-top: clamp(24px, 3vw, 40px); display: grid; gap: 14px; }
.steps__item {
  text-align: left;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.steps__item:hover { transform: translate(-3px, -3px); box-shadow: var(--hard); }
.steps__item p { margin-top: 4px; color: var(--ink-soft); }
.steps__num {
  flex: none;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  font-variant-numeric: lining-nums;
}
.steps__item:nth-child(1) .steps__num { background: var(--mist); }
.steps__item:nth-child(2) .steps__num { background: var(--butter); }
.steps__item:nth-child(3) .steps__num { background: var(--sage); }

/* ---------- Warm-up card and FAQ ---------- */

.care { padding: clamp(28px, 4vw, 56px) 0 clamp(48px, 6vw, 88px); background: var(--paper); }
.care .wave path { fill: var(--peach); }
.care__body { background: var(--peach); padding: clamp(20px, 3vw, 44px) 0 clamp(8px, 1vw, 16px); }
.care__juliette {
  position: relative;
  z-index: 2;
  width: auto;
  height: clamp(280px, 34vw, 460px); /* same size as Madeleine */
  margin: clamp(20px, 3vw, 36px) 4% calc(clamp(60px, 9vw, 140px) * -0.8) auto;
  transform-origin: 50% 100%;
  animation: sway 1.9s ease-in-out infinite alternate;
}
@keyframes sway {
  from { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(0deg) translateY(-10px); }
  to { transform: rotate(4deg) translateY(0); }
}
.care__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
/* Modelled on the printed instruction card: double rule, notched corners */
.card {
  --notch: 26px;
  padding: 10px;
  background: var(--ink);
  rotate: -2deg;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom right / 51% 51% no-repeat;
}
.card__inner {
  padding: clamp(44px, 6.5vw, 88px) clamp(26px, 4.5vw, 60px);
  background: var(--white);
  text-align: center;
  -webkit-mask: inherit;
          mask: inherit;
  --notch: 30px;
  -webkit-mask:
    radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom right / 51% 51% no-repeat;
          mask:
    radial-gradient(circle at 0 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 0, transparent var(--notch), #000 calc(var(--notch) + 1px)) top right / 51% 51% no-repeat,
    radial-gradient(circle at 0 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom left / 51% 51% no-repeat,
    radial-gradient(circle at 100% 100%, transparent var(--notch), #000 calc(var(--notch) + 1px)) bottom right / 51% 51% no-repeat;
}
.card__title {
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  line-height: 1.15;
}
.card__rule { display: flex; align-items: center; gap: 12px; margin: 22px auto 30px; max-width: 400px; }
.card__rule::before, .card__rule::after { content: ""; flex: 1; height: 2px; background: var(--ink); }
.card__rule span { width: 9px; height: 9px; border: 2px solid var(--ink); border-radius: 50%; }
.card__inner p { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1.9vw, 1.6rem); line-height: 1.5; }
.card__inner p + p { margin-top: 14px; }
.card__inner .card__enjoy { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-style: italic; margin-top: 24px; }

.faq h2 { margin-bottom: clamp(20px, 3vw, 32px); }
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-of-type { border-bottom: 2px solid var(--ink); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 34px; height: 34px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(var(--ink) 0 0) center / 14px 2px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 2px 14px no-repeat,
    var(--butter);
  transition: rotate .25s var(--ease-out), background-color .2s;
}
.faq details[open] summary::after { rotate: 45deg; background-color: var(--mist); }
.faq summary:hover::after { background-color: var(--mist); }
.faq details p { padding: 0 52px 20px 4px; color: var(--ink-soft); max-width: 38em; }

/* ---------- Call to action ---------- */

.cta {
  position: relative;
  background: var(--mist);
  padding: clamp(64px, 9vw, 120px) 0 0;
}
.cta::before { --edge: var(--mist); }
.cta__head { text-align: center; max-width: 880px; margin-inline: auto; }
.cta__head h2 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
.cta__lede {
  margin: 20px auto 28px;
  max-width: 30em;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.3;
}
/* Card payment on the left, Geneviève in the middle, Zelle on the right */
.cta__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(20px, 3.5vw, 56px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}
.cta__figure { display: flex; justify-content: center; }
.cta__opt {
  align-self: center;
  margin-bottom: clamp(40px, 6vw, 80px);
  padding: clamp(22px, 2.6vw, 34px);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
}
.cta__opt h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.cta__opt > p { margin: 8px 0 18px; overflow-wrap: anywhere; }
.cta__opt > .cta__note { margin: 14px 0 0; font-size: .9375rem; color: var(--ink-soft); }
/* Scan codes: only useful on a computer, so they are hidden on small screens */
.cta__qr { margin-top: 20px; text-align: center; }
.cta__qr img { width: 132px; height: 132px; margin-inline: auto; padding: 8px; border: 2.5px solid var(--ink); border-radius: 16px; background: var(--white); image-rendering: pixelated; }
.cta__qr figcaption { margin-top: 6px; font-family: var(--font-display); font-style: italic; font-weight: 600; }
.kiss {
  position: relative;
  height: clamp(340px, 40vw, 600px);
  aspect-ratio: 562 / 1000;
  transform-origin: 50% 100%;
  animation: sway 1.9s ease-in-out -.4s infinite alternate;
}
.kiss img { display: block; width: 100%; height: 100%; }
.kiss__hand { position: absolute; inset: 0; }
/* Each hand pivots at its wrist */
.kiss__hand--left { transform-origin: 32.3% 45.3%; animation: rub-left 2.2s ease-in-out infinite; }
.kiss__hand--right { transform-origin: 64.6% 45.5%; animation: rub-right 2.2s ease-in-out infinite; }
/* A quick flurry of little twists, then a rest */
@keyframes rub-left {
  0%, 52%, 100% { transform: rotate(0deg); }
  6%, 18%, 30%, 42% { transform: rotate(-7deg); }
  12%, 24%, 36%, 48% { transform: rotate(5deg); }
}
@keyframes rub-right {
  0%, 52%, 100% { transform: rotate(0deg); }
  6%, 18%, 30%, 42% { transform: rotate(7deg); }
  12%, 24%, 36%, 48% { transform: rotate(-5deg); }
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  padding: clamp(56px, 7vw, 88px) 0 32px;
}
.scallop {
  position: absolute;
  left: 0; right: 0; top: -19px;
  height: 20px;
  background: radial-gradient(circle at 50% 100%, var(--ink) 19.5px, transparent 20.5px) 50% 0 / 40px 20px repeat-x;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
}
.footer__brand img { width: 190px; height: 190px; border-radius: 22px; background: var(--white); }
.footer__name {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.1;
}
.footer__brand p + p { margin-top: 8px; color: #d9d1c8; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer__col h2 {
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 10px;
}
.footer__col a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s;
}
.footer__col a:hover { color: var(--mist); text-decoration: underline; text-underline-offset: 4px; }
.footer :focus-visible { outline-color: var(--paper); }
.footer__fine {
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid #4a433d;
  display: grid;
  gap: 8px;
  font-size: .9375rem;
  color: #d9d1c8;
}
.footer__fine span { white-space: nowrap; }

/* ---------- Scroll reveal (only where JS is running) ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal:nth-child(2).is-in { transition-delay: .08s; }
.js .reveal:nth-child(3).is-in { transition-delay: .16s; }
.js .reveal:nth-child(4).is-in { transition-delay: .24s; }

/* ---------- Order pop-up (computers only) ---------- */

.order-dialog {
  width: min(92vw, 440px);
  max-height: 92vh;
  padding: 36px 32px 28px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  text-align: center;
  overflow: auto;
}
.order-dialog::backdrop { background: rgba(43, 47, 92, .55); }
.order-dialog[open] { animation: dialog-in .35s var(--ease-spring) both; }
@keyframes dialog-in { from { opacity: 0; transform: scale(.9) translateY(16px); } to { opacity: 1; transform: none; } }
.order-dialog h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); }
.order-dialog__lede { margin-top: 10px; color: var(--ink-soft); }
.order-dialog__qr { width: min(100%, 260px); margin: 18px auto 14px; }
.order-dialog__or { color: var(--ink-soft); }
.order-dialog__number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  line-height: 1.1;
  font-variant-numeric: lining-nums;
}
.order-dialog__alt { margin-top: 14px; font-size: .9375rem; }
.order-dialog__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--butter);
  color: var(--ink);
  cursor: pointer;
  transition: background-color .18s;
}
.order-dialog__close:hover { background: var(--mist); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero__title { margin-bottom: 128px; }
  .hero__figure { width: min(100%, 360px); }
  .hero .burst { left: auto; right: -3%; top: auto; bottom: 3%; width: 128px; }
  .hero .burst__text { font-size: .92rem; }
  .bubble { right: auto; left: 50%; top: auto; bottom: calc(100% - 8px); width: min(300px, 86vw); margin-left: calc(min(300px, 86vw) / -2); transform-origin: 50% 100%; }
  .bubble::after { right: calc(50% - 11px); }
  .hero__gen { height: clamp(340px, 52vh, 460px); }

  .why__list { grid-template-columns: 1fr; padding-right: 0; }
  .why__item:nth-child(even) { margin-top: 0; }
  .why__body { padding-bottom: clamp(200px, 52vw, 300px); }
  .why__madeleine { right: 50%; translate: 50% 0; bottom: -60px; height: clamp(240px, 60vw, 330px); }

  .pack__grid, .care__grid { grid-template-columns: 1fr; }
  .cta__row { grid-template-columns: 1fr; }
  .cta__opt { margin-bottom: 0; max-width: 460px; width: 100%; justify-self: center; }
  .cta__figure { order: 3; margin-top: 8px; }
  .o2, .o5 { display: none; }
  .o1 { --s: 46px; left: 3%; top: 14px; }
  .o3 { --s: 42px; right: 4%; top: 18px; }
  .o4 { --s: 46px; left: 3%; bottom: 3%; }
  .o6 { --s: 54px; right: 3%; bottom: 4%; }
  .photos { margin-top: 12px; width: min(100%, 400px); }


  .card { rotate: -1.5deg; max-width: 520px; margin-inline: auto; }
  .cta__qr { display: none; }
  .care__juliette { margin-inline: auto; height: clamp(240px, 60vw, 330px); }
  .kiss { height: clamp(300px, 82vw, 440px); }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero__title { font-size: clamp(2.1rem, 10.6vw, 3.2rem); }
  .nav__links a { padding: 7px 9px; font-size: .875rem; white-space: nowrap; }
  .faq details p { padding-right: 8px; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticker { font-size: .95rem; padding: 7px 14px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .ticker__track { animation: none; }
  .floater { translate: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .photo { opacity: 1; transform: rotate(var(--r)); }
}
