/* =========================================================
   The Wonder Crafts by Maria
   ========================================================= */

:root {
  /* brand palette (from the logo) */
  --yellow: #F4B143;
  --coral: #F57D61;
  --peach: #F9B4A2;
  --blue: #7C97AC;
  --sage: #90B4A4;
  --teal: #597771;

  /* surfaces & text */
  --cream: #FFF8EE;
  --paper: #FFFDF9;
  --ink: #2E3A4F;
  --ink-soft: #5B6576;
  --coral-ink: #DD5B3C;
  --line: #F2E2D3;

  /* tints */
  --pink-tint: #FADDE2;
  --butter-tint: #FCEBC4;
  --sage-tint: #DCEBE3;
  --sky-tint: #DCE7F3;
  --peach-tint: #FAE3D7;

  --stage: #C9DBEE;
  --slide-ink: #3E5679;

  --radius-xl: 36px;
  --radius-l: 26px;
  --radius-m: 18px;
  --shadow-soft: 0 18px 40px -22px rgba(46, 58, 79, .35);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --f-display: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --f-body: 'Nunito', ui-rounded, system-ui, -apple-system, sans-serif;
  --f-script: 'Caveat', 'Segoe Print', cursive;

  --scallop: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M50.00 10.00A12.5 12.5 0 0 1 70.00 15.36A12.5 12.5 0 0 1 84.64 30.00A12.5 12.5 0 0 1 90.00 50.00A12.5 12.5 0 0 1 84.64 70.00A12.5 12.5 0 0 1 70.00 84.64A12.5 12.5 0 0 1 50.00 90.00A12.5 12.5 0 0 1 30.00 84.64A12.5 12.5 0 0 1 15.36 70.00A12.5 12.5 0 0 1 10.00 50.00A12.5 12.5 0 0 1 15.36 30.00A12.5 12.5 0 0 1 30.00 15.36A12.5 12.5 0 0 1 50.00 10.00Z'/%3E%3C/svg%3E");
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1240px;

  /* crochet stitch texture (little Vs) */
  --stitch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='22' viewBox='0 0 26 22'%3E%3Cpath d='M4 4c3 0 6 4 9 10 3-6 6-10 9-10' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 10px; }

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 99px; }
.skip:focus { top: 12px; }

.script { font-family: var(--f-script); font-weight: 700; }
.script-accent { font-family: var(--f-script); font-weight: 700; color: var(--coral-ink); font-size: 1.12em; white-space: nowrap; }

.eyebrow {
  margin: 0 0 .6rem;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.display {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -.01em;
  color: var(--coral-ink);
}
.lead { color: var(--ink-soft); max-width: 36rem; margin: 1rem auto 0; }

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: var(--h);
  padding: 0 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  transition: transform .25s var(--ease-spring), background-color .3s, color .3s, box-shadow .3s;
}
.btn svg { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(46,58,79,.7); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-small { --h: 44px; padding: 0 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: #fff; color: var(--ink);
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease-spring);
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { transform: scale(1.08); }
[data-stage-prev] svg { transform: scaleX(-1); }

/* ---------- Header ---------- */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 18px calc(var(--gutter) + 18px) 0;
}
.brand { display: block; }
/* one-colour logo that follows the hero title colour */
.brand-mark {
  display: block;
  width: clamp(108px, 12vw, 150px); aspect-ratio: 469 / 330;
  background-color: var(--logo-c, var(--coral));
  transition: background-color 1.1s var(--ease-out);
  -webkit-mask: url(assets/logo.svg) center / contain no-repeat;
          mask: url(assets/logo.svg) center / contain no-repeat;
}
.pill-nav {
  display: flex; gap: 4px; padding: 5px;
  background: rgba(255, 253, 249, .72);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
}
.pill-nav a {
  padding: .5rem 1.05rem; border-radius: 999px;
  font-weight: 700; font-size: .92rem; text-decoration: none;
  transition: background-color .25s, color .25s;
}
.pill-nav a:hover { background: var(--ink); color: #fff; }
.header-cta { justify-self: end; position: relative; }
.header-cta svg { width: 18px; height: 18px; }
.wish-count {
  position: absolute; top: -6px; right: -6px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  background: var(--coral); color: #fff; font-size: .75rem; border-radius: 99px;
  animation: pop .4s var(--ease-spring);
}

/* ---------- Hero (full-width carousel) ---------- */
.hero {
  position: relative;
  display: flex; flex-direction: column;
  min-height: min(100svh, 940px);
  padding-top: clamp(104px, 10vw, 140px);
  background: var(--stage);
  transition: background-color 1.1s var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
}
/* scalloped bottom edge, like a crochet trim */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 5;
  height: 18px;
  background: var(--cream);
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
}
.hero-top { position: relative; z-index: 4; text-align: center; padding: 0 var(--gutter); }
.hero-hello {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.1;
  color: var(--slide-ink);
  transition: color 1.1s;
  transform: rotate(-2deg);
}
.hero-kickers { display: grid; justify-items: center; margin-top: .7rem; }
.hero-kicker {
  grid-area: 1 / 1;
  padding: .32rem .9rem;
  background: rgba(255,255,255,.66);
  border-radius: 99px;
  font-weight: 800; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--slide-ink);
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.hero-kicker.is-active { opacity: 1; transform: none; transition-delay: .2s; }

.hero-stage {
  position: relative;
  flex: 1;
  min-height: clamp(340px, 52vh, 600px);
}
.hero-titles { position: absolute; inset: 0; z-index: 1; display: grid; place-items: start center; padding-top: clamp(4px, 1.5vw, 24px); pointer-events: none; }
.hero-title {
  grid-area: 1 / 1;
  margin: 0; padding: 0 var(--gutter);
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3.4rem, 9.2vw, 10rem);
  line-height: .86; letter-spacing: -.035em;
  text-align: center; white-space: nowrap;
  color: var(--ink-c);
}
.hero-title .w {
  display: inline-block;
  opacity: 0; transform: translateY(.35em) rotate(4deg);
  transition: opacity .35s ease, transform .5s var(--ease-out);
}
.hero-title.is-active .w {
  opacity: 1; transform: none;
  transition: opacity .5s ease calc(.12s + var(--w) * 90ms), transform .9s var(--ease-spring) calc(.12s + var(--w) * 90ms);
}

.hero-slide {
  position: absolute; z-index: 3;
  left: 50%; top: 58%;
  width: min(44vw, 560px); height: 82%;
  opacity: 0;
  transform: translate(-50%, -50%) translateX(var(--x, 40%)) scale(.78) rotate(var(--r, 8deg));
  transition: opacity .55s ease, transform 1s var(--ease-out);
  pointer-events: none;
}
.hero-slide.no-anim { transition: none; }
.hero-slide.is-active { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; cursor: zoom-in; }
.hero-slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 30px 28px rgba(46,58,79,.24));
}
.hero-slide.is-active img { animation: bob 6s ease-in-out 1s infinite; }

/* doodles as die-cut stickers */
.doodles { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.doodle {
  position: absolute;
  left: var(--dx); top: var(--dy);
  width: calc(var(--ds) * .85vmin + 18px);
  transform: translate(-50%, -50%) rotate(var(--dr)) scale(0);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.doodles.is-active .doodle {
  transform: translate(-50%, -50%) rotate(var(--dr)) scale(1);
  opacity: 1;
  transition: transform .8s var(--ease-spring) calc(.3s + var(--i) * 70ms), opacity .4s calc(.3s + var(--i) * 70ms);
}
.doodle svg {
  display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 1);
  filter:
    drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff)
    drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff)
    drop-shadow(0 6px 6px rgba(46,58,79,.16));
  animation: float 5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -.8s);
}

.hero-bottom { position: relative; z-index: 4; text-align: center; padding: 6px var(--gutter) 54px; }
.hero-texts { display: grid; justify-items: center; }
.hero-tagline {
  grid-area: 1 / 1;
  margin: 0; max-width: 30rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600;
  color: var(--ink);
  opacity: 0; transform: translateY(10px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.hero-tagline.is-active { opacity: 1; transform: none; transition-delay: .35s; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 1.2rem; }
.hero-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 1.4rem; }

.stage-dots { display: flex; gap: 8px; align-items: center; }
.stage-dot {
  width: 10px; height: 10px; padding: 0; border: 0;
  border-radius: 99px; background: rgba(46,58,79,.22);
  transition: width .4s var(--ease-out), background-color .3s;
  position: relative; overflow: hidden;
}
.stage-dot::before { content: ''; position: absolute; inset: -10px -4px; }
.stage-dot[aria-selected="true"] { width: 44px; background: rgba(46,58,79,.18); }
.stage-dot[aria-selected="true"]::after {
  content: ''; position: absolute; inset: 0;
  background: var(--ink); border-radius: inherit;
  transform-origin: left; transform: scaleX(0);
  animation: progress var(--autoplay, 5.5s) linear forwards;
}
.hero.is-paused .stage-dot[aria-selected="true"]::after { animation: none; transform: scaleX(1); }

/* ---------- Seal badge (rotating) ---------- */
.seal {
  position: absolute; z-index: 4;
  left: calc(50% + min(21vw, 300px)); bottom: 10%;
  width: clamp(80px, 8vw, 118px); aspect-ratio: 1;
  display: grid; place-items: center;
  filter: drop-shadow(0 8px 14px rgba(46,58,79,.15));
}
.seal > svg:first-child { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.seal text { font: 800 10.4px var(--f-body); letter-spacing: .14em; fill: var(--slide-ink); transition: fill 1s; }
.seal-heart { width: 30%; aspect-ratio: 40/36; position: relative; animation: beat 2.4s ease-in-out infinite; }

/* ---------- Highlighted words ---------- */
.hl {
  display: inline-block;
  padding: .02em .32em .08em;
  border-radius: .5em;
  transform: rotate(-2.5deg);
  line-height: 1;
}
.hl-blue { background: #C3D5E8; color: #3E5679; }
.hl-pink { background: #F8CFC6; color: var(--coral-ink); transform: rotate(2deg); }
.hl-sage { background: #CBE0D5; color: #3F6B5A; }

/* ---------- Marquee ---------- */
.marquee {
  margin: clamp(28px, 5vw, 48px) -20px 0;
  background: var(--yellow);
  transform: rotate(-1.6deg);
  overflow: hidden;
  padding: 14px 0;
  box-shadow: 0 10px 24px -18px rgba(46,58,79,.6);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 44s linear infinite;
}
/* two identical groups; each carries its own trailing space so -50% loops seamlessly */
.marquee-group { display: flex; align-items: center; gap: 28px; padding-right: 28px; }
.marquee span {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink); white-space: nowrap;
}
.marquee svg { width: 34px; height: 34px; flex: none; }

/* ---------- Sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 112px) var(--gutter) 0; }
.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- Collection ---------- */
.collection { max-width: 1560px; }
.filters {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  margin-bottom: clamp(24px, 3vw, 36px);
}
.chip {
  padding: .55rem 1.15rem;
  border: 2px solid var(--ink); border-radius: 999px;
  background: transparent;
  font-weight: 800; font-size: .92rem;
  transition: background-color .25s, color .25s, transform .25s var(--ease-spring);
}
.chip:hover { transform: translateY(-2px); }
.chip.is-active { background: var(--ink); color: #fff; }

.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(30px, 4vw, 56px) clamp(8px, 1.6vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card { position: relative; animation: card-in .7s var(--ease-out) both; animation-delay: calc(var(--i) * 70ms); }
.card[hidden] { display: none; }
.card.is-offset { margin-top: clamp(28px, 5vw, 72px); }
.card-btn {
  display: block; width: 100%; padding: 0; border: 0;
  background: none; text-align: center;
}
.card-art { position: relative; aspect-ratio: 1; }
.card-shape {
  position: absolute; inset: 7%;
  background: var(--stage);
  -webkit-mask: var(--shape) center / contain no-repeat;
          mask: var(--shape) center / contain no-repeat;
  transition: transform 1.2s var(--ease-spring);
}
.card-btn:hover .card-shape { transform: rotate(18deg) scale(1.04); }
.card-art img {
  position: absolute; left: 11%; top: 3%;
  width: 78%; height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 20px 16px rgba(46,58,79,.2));
  transition: transform .7s var(--ease-spring);
}
.card-btn:hover .card-art img { transform: translateY(-8px) rotate(-3deg) scale(1.04); }
.card-name {
  margin: .5rem 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.1;
  color: var(--ink-c);
}
.card-line { margin: .3rem auto 0; max-width: 18rem; font-size: .93rem; color: var(--ink-soft); line-height: 1.35; }
.card-price { display: inline-block; margin-top: .3rem; font-weight: 800; color: var(--ink-c); }

.heart-btn {
  position: absolute; z-index: 2; right: 8%; top: 8%;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--coral);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px -8px rgba(46,58,79,.5);
  transition: transform .3s var(--ease-spring);
}
.heart-btn svg { width: 22px; height: 22px; }
.heart-btn:hover { transform: scale(1.1); }
.heart-btn[aria-pressed="true"] { --heart-fill: var(--coral); }
.heart-btn[aria-pressed="true"] svg { animation: pop .45s var(--ease-spring); }

.inline-heart { width: 1.05em; height: 1.05em; vertical-align: -.17em; color: var(--coral); }

.custom-note {
  display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2vw, 22px);
  max-width: 920px;
  margin: clamp(80px, 11vw, 140px) auto 0;
  font-family: var(--f-script); font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.25; text-align: center;
  color: var(--ink);
}
.custom-note svg {
  width: clamp(30px, 3.6vw, 48px); aspect-ratio: 1; flex: none;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
  animation: float 5s ease-in-out infinite;
}
.custom-note svg:last-child { animation-delay: -2.5s; }
.custom-note a { text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .82em; padding: .05em .4em .12em; transition: transform .3s var(--ease-spring); }
.custom-note a:hover { transform: rotate(-4deg) scale(1.06); }

/* ---------- About ---------- */
.about-card {
  display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: var(--pink-tint);
  border-radius: var(--radius-xl);
  position: relative; overflow: hidden;
}
.about-card::before {
  content: ''; position: absolute; inset: 0; opacity: .45;
  background-image: var(--stitch); background-size: 26px 22px;
  -webkit-mask-image: linear-gradient(110deg, #000 0%, transparent 45%);
          mask-image: linear-gradient(110deg, #000 0%, transparent 45%);
}
.about-photo { position: relative; }
.blob-frame {
  aspect-ratio: 1;
  -webkit-mask: var(--scallop) center / contain no-repeat;
          mask: var(--scallop) center / contain no-repeat;
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.about-photo::before {
  content: ''; position: absolute; inset: 0;
  background: var(--coral);
  -webkit-mask: var(--scallop) center / contain no-repeat;
          mask: var(--scallop) center / contain no-repeat;
  transform: translate(10px, 12px) rotate(8deg);
  opacity: .9;
}
.blob-frame { position: relative; }
.about-doodle { position: absolute; }
.about-doodle.d1 { width: 34%; right: -6%; top: -4%; aspect-ratio: 80/46; }
.about-doodle.d2 { width: 14%; left: -4%; bottom: 12%; aspect-ratio: 1; animation: float 5s ease-in-out infinite; }
.about-doodle.d3 { width: 13%; right: 2%; bottom: -2%; aspect-ratio: 40/38; animation: float 6s ease-in-out -2s infinite; }
.about-copy { position: relative; }
.about-copy p { margin: 1rem 0 0; }
.quote {
  margin: 1.6rem 0 0; padding: 1rem 1.3rem;
  background: rgba(255,255,255,.7); border-radius: var(--radius-m);
  font-size: 1.6rem; line-height: 1.2; color: var(--coral-ink);
  transform: rotate(-1.2deg);
}
.values {
  list-style: none; padding: 0; margin: clamp(40px, 6vw, 72px) 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 28px);
  text-align: center;
}
.value strong { display: block; margin-top: .6rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.1; color: var(--ink); }
.value .script { display: block; font-size: 1.35rem; line-height: 1.1; color: var(--teal); }
.value-art {
  position: relative; display: grid; place-items: center;
  width: min(100%, 210px); aspect-ratio: 1; margin: 0 auto;
  transform: rotate(var(--tilt));
  transition: transform .6s var(--ease-spring);
}
.value:hover .value-art { transform: rotate(calc(var(--tilt) * -1.5)) scale(1.05); }
.value-shape, .step-shape {
  position: absolute; inset: 0;
  background: var(--stage);
  -webkit-mask: var(--shape) center / contain no-repeat;
          mask: var(--shape) center / contain no-repeat;
}
.value-art svg, .step-art svg {
  position: relative; width: 56%; aspect-ratio: 1;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 10px 10px rgba(46,58,79,.18));
}

/* ---------- How it works (full-width band) ---------- */
.how {
  position: relative;
  margin-top: clamp(72px, 10vw, 128px);
  padding: clamp(72px, 9vw, 112px) var(--gutter);
  background: #F4D88C;
}
/* scalloped top and bottom edges, like the hero */
.how::before, .how::after {
  content: ''; position: absolute; left: 0; right: 0; height: 18px; background: var(--cream);
}
.how::before {
  top: -1px;
  -webkit-mask: radial-gradient(circle at 50% 100%, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
          mask: radial-gradient(circle at 50% 100%, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
}
.how::after {
  bottom: -1px;
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 16px, #000 16.5px) 0 0 / 34px 18px repeat-x;
}
.how-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.how .eyebrow { color: #7A5410; }
.how-thread { position: absolute; left: 0; right: 0; top: clamp(150px, 15vw, 190px); width: 100%; height: 120px; pointer-events: none; }
.how-yarn {
  position: absolute; z-index: 1; left: 84%; top: calc(clamp(150px, 15vw, 190px) + 42px);
  width: 46px; aspect-ratio: 1;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
  animation: float 5s ease-in-out infinite;
}
.steps {
  position: relative;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px);
  text-align: center;
}
.step-art {
  position: relative; display: grid; place-items: center;
  width: min(100%, 250px); aspect-ratio: 1; margin: 0 auto;
  transform: rotate(var(--tilt));
  transition: transform .6s var(--ease-spring);
}
.step:hover .step-art { transform: rotate(calc(var(--tilt) * -1.5)) scale(1.04); }
.step .step-shape { background: var(--cream); }
.step-num {
  position: absolute; left: 4%; top: 6%;
  display: grid; place-items: center;
  width: 30%; aspect-ratio: 1; border-radius: 50%;
  background: var(--ink); color: var(--cream);
  font-family: var(--f-display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1;
  box-shadow: 0 0 0 4px #fff, 0 10px 18px -8px rgba(46,58,79,.5);
  transform: rotate(-10deg);
}
.step h3 { margin: 1.1rem 0 .35rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.1; color: var(--ink); }
.step p { margin: 0 auto; max-width: 19rem; color: #5A4A2A; }

/* ---------- Contact (fill-in-the-blanks letter) ---------- */
.contact { position: relative; padding-bottom: clamp(72px, 10vw, 128px); }
.c-doodle {
  position: absolute; pointer-events: none; aspect-ratio: 1;
  filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 8px 8px rgba(46,58,79,.14));
  animation: float 6s ease-in-out infinite;
}
.c1 { width: clamp(70px, 9vw, 120px); left: 4%; top: 18%; rotate: -12deg; }
.c2 { width: clamp(40px, 4vw, 60px); aspect-ratio: .5; right: 6%; top: 14%; rotate: 24deg; animation-delay: -2s; }
.c3 { width: clamp(46px, 5vw, 72px); right: 4%; top: 52%; rotate: 10deg; animation-delay: -1s; }
.c4 { width: clamp(30px, 3vw, 44px); left: 9%; top: 60%; animation-delay: -3s; }
.c5 { width: clamp(56px, 6vw, 86px); left: 6%; bottom: 10%; rotate: -8deg; animation-delay: -4s; }

.letter { position: relative; max-width: 860px; margin: 0 auto; text-align: center; }
.letter-line {
  margin: 1.6rem 0 .6rem;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.55rem, 3.2vw, 2.4rem); line-height: 1.35;
  color: var(--ink);
}
.letter input, .letter textarea {
  font-family: var(--f-script); font-weight: 700;
  color: var(--coral-ink);
  background: transparent;
  border: 0; border-radius: 0;
  outline: none;
}
.letter input {
  font-size: 1.25em; line-height: 1;
  padding: 0 .15em;
  border-bottom: 3px dashed var(--coral);
  min-width: 4ch; max-width: 100%;
  text-align: center;
}
.letter input::placeholder, .letter textarea::placeholder { color: #E9A99A; opacity: 1; }
.letter input:focus { border-bottom-style: solid; }
.letter .has-error input { border-bottom-color: var(--coral-ink); animation: wiggle .4s; }
.letter-heart { color: var(--coral); }
.letter-picked { font-family: var(--f-script); font-weight: 700; font-size: 1.15em; color: var(--coral-ink); }
.letter-picked.is-empty { color: #E9A99A; }

.pick-list {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
  margin: 1rem auto 0;
}
.pick {
  position: relative;
  width: clamp(84px, 9.5vw, 116px);
  padding: 0; border: 0; background: none;
  display: grid; justify-items: center; gap: 4px;
  font-size: .8rem; font-weight: 700; line-height: 1.15; color: var(--ink-soft);
  transition: transform .4s var(--ease-spring);
}
.pick-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; }
.pick-art::before {
  content: ''; position: absolute; inset: 6%;
  background: var(--stage); opacity: .55;
  -webkit-mask: var(--shape-flower) center / contain no-repeat;
          mask: var(--shape-flower) center / contain no-repeat;
  transition: opacity .3s, transform .6s var(--ease-spring);
}
.pick img { position: absolute; inset: 11%; width: 78%; height: 78%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(46,58,79,.18)); }
.pick:hover { transform: translateY(-4px) rotate(-3deg); }
.pick[aria-pressed="true"] { color: var(--ink-c); }
.pick[aria-pressed="true"] .pick-art::before { opacity: 1; transform: rotate(20deg) scale(1.06); }
.pick[aria-pressed="true"] .pick-art { animation: pop .45s var(--ease-spring); }
.pick[aria-pressed="true"]::after {
  content: '♥'; position: absolute; top: 2px; right: 6px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: .8rem;
  box-shadow: 0 0 0 3px #fff;
}

.letter textarea {
  display: block; width: 100%;
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 48px;
  padding: 0 .4em; min-height: 144px; resize: none; overflow: hidden;
  text-align: left;
  background-image: repeating-linear-gradient(transparent 0 46px, rgba(124,151,172,.45) 46px 48px);
}
.letter-send { margin-top: 2rem; }
.btn-send { --h: 64px; padding: 0 2.2rem; font-size: 1.15rem; box-shadow: 0 14px 26px -14px rgba(221,91,60,.8); }
.btn-send svg { width: 22px; height: 22px; transition: transform .4s var(--ease-spring); }
.btn-send:hover svg { transform: translate(4px, -4px) rotate(-8deg); }
.form-hint { margin: 1rem 0 0; font-size: .95rem; color: var(--ink-soft); }
.form-hint a { color: var(--coral-ink); font-weight: 700; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-send:disabled { opacity: .7; cursor: progress; transform: none; }
.letter-sent { position: relative; max-width: 640px; margin: 1rem auto 0; text-align: center; outline: none; animation: card-in .7s var(--ease-out) both; }
.letter-sent .sent-art {
  width: clamp(110px, 14vw, 160px); aspect-ratio: 1; margin: 0 auto;
  filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 10px 10px rgba(46,58,79,.18));
  animation: fly-in 1s var(--ease-spring) both;
}
.letter-sent .display { margin-top: 1rem; }
.letter-sent .script { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; color: var(--teal); margin: .6rem 0 1.6rem; }
@keyframes fly-in { from { transform: translate(-60px, 40px) rotate(-20deg) scale(.6); opacity: 0; } }
@keyframes wiggle { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* ---------- Footer (open, full-colour logo) ---------- */
.site-footer { position: relative; padding: 0 var(--gutter) clamp(40px, 6vw, 64px); text-align: center; }
.footer-thread { display: block; width: 100%; height: 40px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding-top: clamp(32px, 5vw, 56px); }
.footer-logo { width: clamp(220px, 26vw, 320px); margin: 0 auto; }
.footer-thanks { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; margin: 1.2rem 0 1.4rem; color: var(--coral-ink); }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.footer-nav a {
  padding: .5rem 1.1rem; border-radius: 999px;
  border: 2px solid var(--ink);
  font-weight: 800; font-size: .95rem; text-decoration: none;
  transition: background-color .25s, color .25s, transform .25s var(--ease-spring);
}
.footer-nav a:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.footer-meta { margin: 1.6rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.footer-heart { color: var(--coral); }

/* ---------- Product sheet (dialog) ---------- */
.sheet {
  width: min(1040px, calc(100vw - 48px));
  max-height: min(860px, calc(100dvh - 48px));
  padding: 0; border: 0;
  border-radius: var(--radius-xl);
  background: var(--paper); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(46,58,79,.5);
  overflow: hidden;
}
.sheet::backdrop { background: rgba(46,58,79,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet[open] { animation: sheet-in .5s var(--ease-out); }
.sheet[open]::backdrop { animation: fade-in .35s ease; }
.sheet.is-closing { animation: sheet-out .3s ease forwards; }
.sheet.is-closing::backdrop { animation: fade-out .3s ease forwards; }
.sheet-body { display: grid; grid-template-columns: 1.05fr 1fr; grid-template-rows: minmax(0, 1fr); height: min(860px, calc(100dvh - 48px)); }

.sheet-close {
  position: absolute; right: 16px; top: 16px; z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-soft);
}
.sheet-close svg { width: 22px; height: 22px; }
.sheet-grab { display: none; }

.sheet { background: var(--cream); }
.gallery { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 40px); min-height: 0; }
.gallery-track {
  position: relative;
  width: 100%; max-width: min(540px, calc(100dvh - 230px));
  aspect-ratio: 1;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; }
.g-shape {
  position: absolute; inset: 0;
  background: var(--stage);
  -webkit-mask: var(--shape-flower) center / contain no-repeat;
          mask: var(--shape-flower) center / contain no-repeat;
}
.g-cut img {
  position: absolute; inset: 12%; width: 76%; height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 22px 18px rgba(46,58,79,.22));
}
.g-photo::before {
  content: ''; position: absolute; inset: 0;
  background: var(--stage);
  -webkit-mask: var(--shape-flower) center / contain no-repeat;
          mask: var(--shape-flower) center / contain no-repeat;
}
.g-photo img {
  position: absolute; inset: 6%;
  width: 88%; height: 88%; object-fit: cover;
  -webkit-mask: var(--shape-flower) center / contain no-repeat;
          mask: var(--shape-flower) center / contain no-repeat;
}
.gallery .heart-btn { right: 9%; top: 9%; }
.thumbs { display: flex; gap: 10px; justify-content: center; padding-top: 16px; flex-wrap: wrap; }
.thumb {
  width: 54px; height: 54px; padding: 0; border-radius: 50%; overflow: hidden;
  border: 3px solid transparent; background: var(--stage);
  transition: border-color .2s, transform .25s var(--ease-spring);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-cut img { object-fit: contain; padding: 4px; }
.thumb[aria-current="true"] { border-color: var(--slide-ink); transform: translateY(-3px); }

.sheet-info { min-height: 0; overflow-y: auto; padding: clamp(28px, 4vw, 48px); padding-top: 56px; padding-bottom: 0; overscroll-behavior: contain; }
.sheet-kicker { display: inline-block; padding: .3rem .85rem; border-radius: 99px; background: var(--stage); color: var(--slide-ink); font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; }
.sheet-title { margin: .8rem 0 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(2.6rem, 5vw, 4rem); line-height: .92; letter-spacing: -.02em; color: var(--slide-ink); }
.sheet-price { font-family: var(--f-display); font-weight: 600; font-size: 1.5rem; color: var(--coral-ink); margin: .4rem 0 0; }
.sheet-tagline { margin: .7rem 0 0; font-family: var(--f-script); font-weight: 700; font-size: 1.7rem; line-height: 1.15; color: var(--ink); }
.sheet-desc { margin: 1rem 0 0; color: var(--ink-soft); }
.swatches { display: flex; gap: 8px; margin-top: 1.1rem; align-items: center; }
.swatches span.sw { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), 0 0 0 1px rgba(46,58,79,.12); }
.swatches small { color: var(--ink-soft); font-weight: 700; margin-left: 4px; }
.note {
  position: relative;
  margin: 1.5rem 0 0; padding: 1rem 1.2rem 1rem 1.2rem;
  background: var(--butter-tint);
  border-radius: 6px 18px 18px 18px;
  transform: rotate(-1deg);
  font-family: var(--f-script); font-size: 1.45rem; line-height: 1.2; color: var(--ink);
}
.note b { display: block; font-family: var(--f-body); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin-bottom: .2rem; }
.note::after { content: '♥'; position: absolute; right: 14px; bottom: 6px; color: var(--coral); font-size: 1.1rem; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.2rem; margin: 1.4rem 0 0; font-size: .95rem; }
.facts dt { font-weight: 800; }
.facts dd { margin: 0; color: var(--ink-soft); }
.accordions { margin-top: 1.3rem; display: grid; gap: 8px; }
.acc { border-radius: var(--radius-m); background: var(--bg); }
.acc summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.1rem;
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary svg { width: 26px; height: 26px; padding: 4px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease-out); }
.acc[open] summary svg { transform: rotate(45deg); }
.acc p { margin: 0; padding: 0 1.1rem 1rem; font-size: .95rem; color: var(--ink); }
/* pinned to the bottom of the info column so the buttons never scroll away */
.sheet-actions {
  position: sticky; bottom: 0; z-index: 2;
  display: flex; gap: 10px;
  margin-top: 1.2rem; padding: 1.2rem 0 clamp(20px, 3vw, 32px);
  background: linear-gradient(to top, var(--cream) 78%, rgba(255,248,238,0));
}
.sheet-actions .btn { flex: 1 1 auto; padding: 0 1.1rem; white-space: nowrap; }
.btn-wish[aria-pressed="true"] { --heart-fill: currentColor; background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-share { flex: 0 0 auto !important; width: 54px; padding: 0; }

/* ---------- Love note (floating button + sticky note) ---------- */
.love-fab {
  position: fixed; z-index: 60;
  right: max(16px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
  width: 86px; height: 86px; padding: 0; border: 0;
  background: none;
  display: grid; place-items: center;
  /* pops in, then hops every few seconds while two hearts float up */
  animation: fab-in .7s var(--ease-spring) 1.2s both, fab-hop 4s ease-in-out 3s infinite;
  transition: transform .3s var(--ease-spring);
}
.love-fab:hover { transform: scale(1.1) rotate(-6deg); }
/* die-cut sticker envelope, like the other illustrations */
.love-fab > svg {
  width: 100%; height: 100%;
  filter:
    drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff)
    drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff)
    drop-shadow(0 10px 12px rgba(46,58,79,.28));
}
/* always-visible handwritten label + hand-drawn arrow pointing at the envelope */
.love-callout {
  position: absolute; right: 62%; bottom: 72%;
  display: flex; align-items: flex-end;
  pointer-events: none;   /* only the envelope is tappable; never blocks what's underneath */
  transition: opacity .35s ease, translate .35s ease;
}
/* fades away while scrolling, comes back once the page settles */
.love-fab.is-scrolling .love-callout { opacity: 0; translate: 6px 6px; }
.love-callout-text {
  font-family: var(--f-script); font-weight: 700;
  font-size: 1.8rem; line-height: .95; text-align: right; white-space: nowrap;
  color: var(--ink);
  transform: rotate(-7deg); transform-origin: right bottom;
  margin: 0 -6px 30px 0;
  text-shadow:
    2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff,
    1.5px 1.5px 0 #fff, -1.5px -1.5px 0 #fff, 1.5px -1.5px 0 #fff, -1.5px 1.5px 0 #fff;
}
.love-arrow {
  width: 56px; height: 50px; overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  animation: arrow-nudge 4s ease-in-out 3s infinite;
}
.love-arrow .halo { stroke: #fff; stroke-width: 7; }
@keyframes arrow-nudge { 0%, 66%, 100% { translate: 0 0; } 72% { translate: 4px 4px; } 78% { translate: 0 0; } }
.love-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(.6); }
.love-fab::before, .love-fab::after {
  content: '♥'; position: absolute; left: 50%; top: 10px;
  font-size: 22px; line-height: 1; color: var(--coral);
  text-shadow: 0 0 0 #fff, 1px 1px 0 #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff;
  opacity: 0; pointer-events: none;
  animation: heart-rise 4s ease-out 3s infinite;
}
.love-fab::after { font-size: 15px; color: #F4B143; animation-delay: 3.2s; --hx: 16px; }
@keyframes fab-hop {
  0%, 70%, 100% { translate: 0 0; }
  76% { translate: 0 -12px; }
  82% { translate: 0 0; }
  87% { translate: 0 -5px; }
  92% { translate: 0 0; }
}
@keyframes heart-rise {
  0%, 72% { opacity: 0; transform: translate(-50%, 0) scale(.4); }
  78% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--hx, -12px)), -46px) scale(1.1) rotate(-12deg); }
}
@keyframes fab-in { from { opacity: 0; transform: translateY(40px) scale(.5); } }
@keyframes fab-wiggle { 0%, 88%, 100% { rotate: 0deg; } 91% { rotate: -12deg; } 94% { rotate: 10deg; } 97% { rotate: -6deg; } }

.love {
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 130px);
  margin: auto 24px 104px auto;
  padding: 0; border: 0; border-radius: 28px;
  background: var(--cream); color: var(--ink);
  box-shadow: 0 30px 70px -24px rgba(46,58,79,.55);
  overflow: visible;
}
.love::backdrop { background: rgba(46,58,79,.28); }
.love[open] { animation: love-in .5s var(--ease-spring); transform-origin: bottom right; }
.love[open]::backdrop { animation: fade-in .3s ease; }
.love.is-closing { animation: love-out .25s ease forwards; }
@keyframes love-in { from { opacity: 0; transform: translateY(30px) scale(.85); } }
@keyframes love-out { to { opacity: 0; transform: translateY(20px) scale(.92); } }
.love-form, .love-sent { max-height: calc(100dvh - 130px); overflow-x: hidden; overflow-y: auto; padding: 26px 24px 22px; overscroll-behavior: contain; }
.love-close {
  position: absolute; z-index: 3; right: 14px; top: 14px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-soft);
}
.love-close svg { width: 20px; height: 20px; }
.love-title { margin: 0; padding-right: 44px; font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; line-height: 1.05; color: var(--coral-ink); }
.love-sub { margin: .2rem 0 1.2rem; font-size: 1.3rem; color: var(--teal); }

.note-card {
  --paper: #FCEBC4;
  position: relative;
  margin: 18px 10px 22px;
  padding: 30px 20px 14px;
  background: var(--paper);
  border-radius: 4px 4px 22px 4px;
  transform: rotate(-1.5deg);
  box-shadow: 0 16px 24px -16px rgba(46,58,79,.45), inset 0 -10px 18px -14px rgba(0,0,0,.12);
  transition: background-color .4s;
}
/* strip of tape */
.note-card::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 92px; height: 26px;
  translate: -50% 0; rotate: 3deg;
  background: rgba(255,255,255,.65); box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.note-card textarea {
  display: block; width: 100%; min-height: 120px; resize: none;
  border: 0; outline: none; background: transparent;
  font-family: var(--f-script); font-weight: 700; font-size: 1.55rem; line-height: 1.25; color: var(--ink);
}
.note-card textarea::placeholder { color: rgba(46,58,79,.38); }
.note-from { margin: .3rem 0 0; text-align: right; font-family: var(--f-script); font-weight: 700; font-size: 1.4rem; color: var(--ink); }
.note-from input {
  width: 9ch; border: 0; border-bottom: 2px dashed rgba(46,58,79,.35); background: transparent; outline: none;
  font: inherit; color: var(--coral-ink); text-align: center;
}
.note-from input:focus { border-bottom-style: solid; }
.note-stickers { position: absolute; inset: 0; pointer-events: none; }
.note-sticker {
  position: absolute; width: 58px; height: 58px; padding: 0; border: 0; background: none;
  pointer-events: auto; cursor: pointer;
  rotate: var(--r);
  animation: sticker-pop .5s var(--ease-spring);
}
.note-sticker svg {
  width: 100%; height: 100%;
  filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 6px 6px rgba(46,58,79,.2));
}
.note-sticker[data-slot="0"] { left: -22px; top: -24px; }
.note-sticker[data-slot="1"] { right: -20px; top: -18px; }
.note-sticker[data-slot="2"] { right: -14px; bottom: -22px; }
@keyframes sticker-pop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } }

.love-row { display: flex; align-items: center; gap: 12px; margin-bottom: .9rem; }
.love-label { margin: 0 0 .5rem; font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.love-row .love-label { margin: 0; }
.paper-dots { display: flex; gap: 8px; }
.paper-dot {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 3px solid #fff; background: var(--c);
  box-shadow: 0 0 0 1px rgba(46,58,79,.15);
  transition: transform .25s var(--ease-spring), box-shadow .2s;
}
.paper-dot[aria-checked="true"] { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.12); }
.sticker-tray { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-bottom: 1.1rem; }
.tray-sticker {
  min-width: 0; aspect-ratio: 1; padding: 6px; border: 2px solid transparent; border-radius: 16px;
  background: #fff;
  transition: transform .25s var(--ease-spring), border-color .2s, opacity .2s;
}
.tray-sticker svg { display: block; width: 100%; height: 100%; }
.tray-sticker:hover { transform: translateY(-3px) rotate(-6deg); }
.tray-sticker[aria-pressed="true"] { border-color: var(--coral); background: #FFF1EC; }
.tray-sticker:disabled { opacity: .35; transform: none; cursor: not-allowed; }
.love-send { --h: 56px; }
.love-status { margin: .7rem 0 0; min-height: 1.2em; text-align: center; font-size: .9rem; color: var(--coral-ink); }
.love-sent { text-align: center; padding-top: 40px; padding-bottom: 32px; outline: none; }
.love-sent .love-title { padding: 0; font-size: 2.4rem; margin-top: .6rem; }
.love-sent .script { font-size: 1.6rem; color: var(--teal); margin: .3rem 0 1.4rem; }
.love-sent-art { width: 96px; height: 96px; animation: beat 1.6s ease-in-out infinite; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff); }
.love-burst { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.love-burst svg { position: absolute; left: 50%; top: 45%; width: 26px; height: 26px; animation: burst 1.2s var(--ease-out) forwards; }
@keyframes burst {
  0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--bx)), calc(-50% + var(--by))) scale(1) rotate(var(--br)); opacity: 0; }
}

@media (max-width: 560px) {
  .love-fab { width: 66px; height: 66px; }
  .love-callout-text { font-size: 1.25rem; margin-bottom: 24px; }
  .love-arrow { width: 40px; height: 36px; }
  .love {
    width: 100%; max-width: 100%; max-height: 92dvh;
    margin: auto 0 0; border-radius: 28px 28px 0 0;
  }
  .love[open] { animation: sheet-up .45s var(--ease-out); }
  .love-form, .love-sent { max-height: 92dvh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 200;
  transform: translate(-50%, 220%);
  opacity: 0;
  padding: .8rem 1.3rem; border-radius: 99px;
  background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease-spring), opacity .3s;
  pointer-events: none; white-space: nowrap;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Animations ---------- */
@keyframes morph {
  0% { border-radius: 58% 42% 50% 50% / 46% 54% 46% 54%; }
  50% { border-radius: 44% 56% 58% 42% / 56% 42% 58% 44%; }
  100% { border-radius: 52% 48% 40% 60% / 42% 58% 42% 58%; }
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes bob { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -10px; rotate: -1.2deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.15); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes card-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { grid-template-columns: 1fr auto; padding: 14px calc(var(--gutter) + 12px) 0; }
  .pill-nav { display: none; }

  .hero { min-height: auto; padding-top: 104px; }
  .hero-hello { font-size: 1.3rem; }
  .hero-stage { min-height: max(360px, 100vw); }
  .hero-title { white-space: normal; font-size: clamp(3.2rem, 17vw, 6.5rem); line-height: .86; }
  .hero-slide { width: 84vw; height: 66%; top: 62%; }
  .doodle { width: calc(var(--ds) * .9vmin + 12px); }
  .doodle:nth-child(n+6) { display: none; }
  .seal { left: auto; right: 6%; bottom: 2%; width: 78px; }
  .hero-bottom { padding-bottom: 46px; }
  .hero-actions .btn { flex: 1; max-width: 220px; --h: 50px; padding: 0 1rem; }
  .hero-controls { justify-content: space-between; }
  .round-btn { width: 46px; height: 46px; }
  .about-card { grid-template-columns: 1fr; }
  .c1, .c2, .c4 { display: none; }
  .c3 { top: 4%; right: 2%; }
  .c5 { bottom: 4%; left: 2%; }
  .pick-list { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 1rem calc(-1 * var(--gutter)) 0; padding: 6px var(--gutter) 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .pick-list::-webkit-scrollbar { display: none; }
  .pick { flex: none; scroll-snap-align: start; }
  .about-photo { max-width: 360px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .how-thread, .how-yarn { display: none; }
  .step-art { width: min(72%, 240px); }

  /* bottom sheet */
  .sheet {
    width: 100%; max-width: 100%;
    max-height: 94dvh; height: 94dvh;
    margin: auto 0 0;
    border-radius: 28px 28px 0 0;
  }
  .sheet[open] { animation: sheet-up .5s var(--ease-out); }
  .sheet.is-closing { animation: sheet-down .3s ease forwards; }
  .sheet-body { display: block; height: 100%; overflow-y: auto; overscroll-behavior: contain; }
  .sheet-grab { display: block; position: absolute; z-index: 6; left: 50%; top: 8px; width: 44px; height: 5px; border-radius: 9px; background: rgba(46,58,79,.25); transform: translateX(-50%); }
  .sheet-close { width: 40px; height: 40px; right: 12px; top: 14px; }
  .gallery { padding: 40px 16px 8px; }
  .gallery-track { max-width: 100%; }
  .thumb { width: 46px; height: 46px; }
  .sheet-info { overflow: visible; padding: 24px 22px calc(110px + env(safe-area-inset-bottom)); }
  .sheet-actions {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
    margin: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--paper) 70%, rgba(255,253,249,0));
    flex-wrap: nowrap;
  }
  .sheet-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 .8rem; font-size: .94rem; }
  .sheet-actions .btn span { overflow: hidden; text-overflow: ellipsis; }
  .sheet-actions .btn-share { flex: 0 0 50px !important; width: 50px; padding: 0; }
  .sheet-actions .btn-wish { flex: 0 0 50px; width: 50px; padding: 0; }
  .sheet-actions .btn-wish span { display: none; }
  .gallery .heart-btn { right: auto; left: 7%; top: 44px; }
}

@media (max-width: 560px) {
  :root { --gutter: 12px; }
  body { font-size: 1rem; }
  .grid { column-gap: 4px; row-gap: 22px; margin: 0 -4px; }
  .card-line { display: none; }
  .heart-btn { width: 38px; height: 38px; }
  .heart-btn svg { width: 19px; height: 19px; }
  .values { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .chip { padding: .45rem .9rem; font-size: .86rem; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .header-cta { --h: 42px; padding: 0 1rem; font-size: .9rem; gap: .4rem; }
  .header-cta svg { width: 16px; height: 16px; }
}

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
