/* Fonts are self-hosted (no third-party requests). Fredoka & Nunito, SIL Open Font License. */
@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-black-soft.woff2") format("woff2");
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("fonts/nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --cream: #fffaf3;
  --pink: #ffe1ea;
  --pink-deep: #ff9fbd;
  --pink-shadow: #e9799d;
  --mint: #d6f3e2;
  --mint-deep: #8fcfaa;
  --lavender: #e9e1ff;
  --lavender-deep: #5b4bb7;   /* text/link purple: 5.3:1 on lavender, 6.7:1 on white */
  --butter: #fff1c2;
  --peach: #ffe0cc;
  --ink: #4a3a5a;
  --ink-soft: #5f5070;        /* 5:1+ on every pastel background */
  --crust: #95531f;           /* 5.3:1+ on white and butter */
  --field-border: #8577b8;    /* 3:1+ against field and page backgrounds */
  --focus: #4a3a5a;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(122, 96, 160, 0.15);
  --berry: #6b2f4f;           /* headline color, 9:1+ on cream */
  --font-display: "Fraunces", Georgia, serif;
  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lavender-deep); font-weight: 700; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .nav nav a:focus-visible, .motion-toggle:focus-visible { border-radius: 999px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 10px clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 243, .92);
  backdrop-filter: blur(10px);
  border-bottom: 2px dashed var(--lavender);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; margin-right: auto; }
.nav-brand img { border-radius: 50%; transition: transform .6s; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: background .2s; }
.nav nav a.nav-cta { background: var(--pink-deep); }
.motion-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .85rem; font-weight: 700; color: var(--ink);
  background: #fff; border: 2px solid var(--field-border); border-radius: 999px;
  padding: 6px 12px; min-height: 44px; cursor: pointer;
}
.motion-toggle svg { fill: currentColor; flex-shrink: 0; }
.motion-toggle .ico-play { display: none; }
html.still .motion-toggle .ico-pause { display: none; }
html.still .motion-toggle .ico-play { display: inline; }
@media (max-width: 760px) {
  .nav nav a:not(.nav-cta) { display: none; }
  .motion-toggle { width: 44px; padding: 0; justify-content: center; }
  .motion-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 380px) {
  .nav-brand span { font-size: 1.05rem; }
  .nav { gap: 8px; }
}

/* ---------- floating sparkles ---------- */
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sparkles span {
  position: absolute; width: 14px; height: 14px;
  background: var(--butter);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle 4s ease-in-out infinite;
  opacity: .9;
}
.sparkles span:nth-child(1) { top: 12%; left: 6%;  animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 28%; left: 92%; animation-delay: .7s; background: var(--pink-deep); }
.sparkles span:nth-child(3) { top: 55%; left: 3%;  animation-delay: 1.4s; background: #8b7fd6; width: 10px; height: 10px; }
.sparkles span:nth-child(4) { top: 72%; left: 95%; animation-delay: 2.1s; }
.sparkles span:nth-child(5) { top: 88%; left: 10%; animation-delay: 2.8s; background: var(--mint-deep); }
.sparkles span:nth-child(6) { top: 8%;  left: 70%; animation-delay: 3.3s; background: var(--pink-deep); width: 10px; height: 10px; }
.sparkles span:nth-child(7) { top: 42%; left: 50%; animation-delay: 1.1s; opacity: .5; }
.sparkles span:nth-child(8) { top: 95%; left: 60%; animation-delay: 1.9s; background: #8b7fd6; }
@keyframes twinkle {
  0%, 100% { transform: scale(.4) rotate(0); opacity: .2; }
  50% { transform: scale(1.2) rotate(45deg); opacity: 1; }
}

main, section, footer { position: relative; z-index: 1; }

/* ---------- shared ---------- */
section { padding: 70px clamp(16px, 5vw, 64px); }
.section-pink { background: var(--pink); }
.section-mint { background: var(--mint); }
.section-lav  { background: var(--lavender); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.sub { color: var(--ink-soft); margin: 0; }

.wave { height: 60px; margin: -1px 0; position: relative; z-index: 1; background-repeat: repeat-x; background-size: 240px 60px; animation: drift 12s linear infinite; }
.wave.flip { transform: scaleY(-1); }
.wave-pink { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cpath d='M0 40 Q60 0 120 40 T240 40 V60 H0Z' fill='%23ffe1ea'/%3E%3C/svg%3E"); }
.wave-mint { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cpath d='M0 40 Q60 0 120 40 T240 40 V60 H0Z' fill='%23d6f3e2'/%3E%3C/svg%3E"); }
.wave-lav  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60'%3E%3Cpath d='M0 40 Q60 0 120 40 T240 40 V60 H0Z' fill='%23e9e1ff'/%3E%3C/svg%3E"); }
@keyframes drift { to { background-position-x: 240px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .2s, box-shadow .2s;
}
.btn-primary { background: var(--pink-deep); color: var(--ink); box-shadow: 0 6px 0 var(--pink-shadow); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--pink-shadow); }
.btn[disabled] { opacity: .7; cursor: wait; }

/* ---------- hero: storybook cluster ---------- */
.hero { padding-top: 56px; padding-bottom: 56px; overflow-x: clip; }
.hero-cluster {
  --med: 420px;
  position: relative;
  display: grid; grid-template-columns: var(--med) minmax(0, 1fr); align-items: center;
  max-width: 1060px; margin: 0 auto;
}
.hero-medallion { position: relative; z-index: 2; width: var(--med); margin-left: -24px; }
.logo-ring { border-radius: 50%; box-shadow: 0 0 0 12px var(--pink), 0 0 0 24px var(--mint), var(--shadow); animation: bob 5s ease-in-out infinite; }
.logo-ring img { border-radius: 50%; width: 100%; }

.recipe-card {
  position: relative; z-index: 1;
  margin-left: -120px;
  padding: 46px 48px 40px 168px;
  background: #fffdf8;
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(122, 96, 160, .16);
  rotate: 1.2deg;
}
.recipe-card::before {           /* stitched inner border, like a recipe card */
  content: ""; position: absolute; inset: 12px; border-radius: 22px;
  border: 2px dashed var(--pink-deep); pointer-events: none;
}
.tape { position: absolute; width: 104px; height: 30px; opacity: .85; border-radius: 4px; }
.tape-a { top: -12px; right: 70px; rotate: 6deg; background: repeating-linear-gradient(45deg, var(--mint-deep) 0 8px, var(--mint) 8px 16px); }
.tape-b { bottom: -10px; right: -18px; rotate: -38deg; background: repeating-linear-gradient(45deg, var(--pink-deep) 0 8px, var(--pink) 8px 16px); }

.hero-title { margin: 0 0 18px; color: var(--berry); font-family: var(--font-display); line-height: 1; }
.hero-title .arch { display: block; width: min(100%, 480px); height: auto; margin: 0 0 -6px -6px; overflow: visible; }
.hero-title .arch text { font-family: var(--font-display); font-size: 62px; fill: var(--berry); letter-spacing: .5px; }
.hero-title .big {
  display: block; font-size: clamp(4rem, 9vw, 7rem); letter-spacing: -1px;
  rotate: -3deg; transform-origin: left center; margin-left: 4px;
  text-shadow: 4px 4px 0 var(--pink);
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 470px; margin: 0; }
.hero-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; margin: 24px 0 18px; }
.text-link {
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--berry);
  text-decoration: none; padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 10'%3E%3Cpath d='M0 5 Q10 0 20 5 T40 5' stroke='%23ff9fbd' stroke-width='3' fill='none'/%3E%3C/svg%3E") repeat-x left bottom 4px / 24px 6px;
}
.text-link::after { content: "→"; margin-left: 6px; transition: translate .2s; }
.tagline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.tagline li + li::before { content: "✿"; color: var(--pink-shadow); margin: 0 10px; }

.hero-loaf {
  position: absolute; z-index: 3; width: 180px;
  left: calc(var(--med) - 24px - 150px); bottom: 2%;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,.16));
  animation: tilt 3s ease-in-out infinite; transform-origin: 50% 85%;
}

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-12px) rotate(2deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

@media (max-width: 1060px) {
  .hero-cluster { --med: 340px; }
  .hero-medallion { margin-left: 0; }
  .recipe-card { margin-left: -90px; padding-left: 128px; padding-right: 34px; }
  .hero-loaf { width: 150px; left: calc(var(--med) - 120px); }
}

/* Phones & small tablets: medallion on top, card tucked underneath, loaf on the seam */
@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-cluster { --med: min(290px, 70vw); grid-template-columns: 1fr; justify-items: center; }
  .hero-medallion { margin-left: 0; }
  .recipe-card { margin: calc(var(--med) * -0.22) 0 0; padding: calc(var(--med) * 0.26 + 16px) 26px 34px; rotate: -0.8deg; width: 100%; text-align: center; }
  .hero-title .arch { margin: 0 auto -4px; }
  .hero-title .big { rotate: -2deg; transform-origin: center; margin-left: 0; }
  .lede { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .tagline { flex-direction: column; align-items: center; }
  .tagline li::before, .tagline li + li::before { content: "✿"; color: var(--pink-shadow); margin: 0 8px 0 0; }
  .tape-a { right: 24px; }
  .tape-b { right: -8px; }
  .hero-loaf { width: 112px; left: auto; right: max(0px, calc(50% - var(--med) / 2 - 30px)); bottom: auto; top: calc(var(--med) * 0.68); }
}
@media (max-width: 420px) {
  .hero-buttons .btn { flex: 1 1 100%; }
}

/* ---------- menu cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 26px; max-width: 1180px; margin: 0 auto; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); border: 4px solid #fff;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  display: flex; flex-direction: column;
}
.card-photo { aspect-ratio: 4 / 3.4; overflow: hidden; border-radius: calc(var(--radius) - 6px) calc(var(--radius) - 6px) 0 0; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card-body { padding: 20px 22px 22px; background: var(--accent); flex: 1; display: flex; flex-direction: column; }
.card-body p { margin: 0 0 14px; color: var(--ink-soft); }
.prices { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; }
.prices li { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 6px 14px; font-weight: 700; }
.prices b { font-family: var(--font-head); font-size: 1.35rem; color: var(--crust); }

/* ---------- inclusions ---------- */
.flavors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 30px; max-width: 980px; margin: 0 auto; }
.flavor { background: var(--bg); border-radius: var(--radius); padding: 30px 22px; text-align: center; box-shadow: var(--shadow); }
.flavor-art { display: flex; align-items: center; justify-content: center; gap: 6px; height: 180px; margin-bottom: 14px; }
.flavor-art img { max-height: 175px; width: auto; max-width: 42%; filter: drop-shadow(0 10px 10px rgba(0,0,0,.12)); }
.plus { font-family: var(--font-head); font-size: 2.4rem; font-weight: 700; color: var(--pink-shadow); }
.flavor p { color: var(--ink-soft); margin: 0; }

.tilt { animation: tilt 2.6s ease-in-out infinite; transform-origin: 50% 85%; }
.tilt-alt { animation-delay: -1.3s; }
@keyframes tilt {
  0%, 100% { transform: rotate(-12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-8px); }
}

/* ---------- steps ---------- */
.steps { list-style: none; padding: 0; margin: 0 auto; max-width: 1080px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 46px 26px; }
.step { background: #fff; border-radius: var(--radius); padding: 34px 24px 26px; text-align: center; box-shadow: var(--shadow); position: relative; }
.step p { margin: 0; color: var(--ink-soft); }
.step-num {
  display: grid; place-items: center; width: 58px; height: 58px; margin: -64px auto 14px;
  border-radius: 50%; background: var(--pink-deep); color: var(--ink);
  font-family: var(--font-head); font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 0 0 6px #fff;
}
.step:nth-child(2) .step-num { background: var(--lavender-deep); color: #fff; }
.step:nth-child(3) .step-num { background: var(--mint-deep); }

/* ---------- gallery ---------- */
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.gallery li { transition: transform .3s; }
.gallery li:nth-child(odd) { transform: rotate(-2deg); }
.gallery li:nth-child(even) { transform: rotate(2deg); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 22px; border: 6px solid #fff; box-shadow: var(--shadow); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* ---------- hover effects (mouse/trackpad only, so taps don't leave things stuck) ---------- */
@media (hover: hover) {
  .nav-brand:hover img { transform: rotate(360deg); }
  .nav nav a:hover { background: var(--lavender); }
  .nav nav a.nav-cta:hover { background: #ff86ab; }
  .motion-toggle:hover { background: var(--lavender); }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 9px 0 var(--pink-shadow); }
  .text-link:hover::after { translate: 4px 0; }
  .card:hover { transform: translateY(-8px) rotate(-1.2deg); box-shadow: 0 18px 40px rgba(122, 96, 160, .22); }
  .card:nth-child(even):hover { transform: translateY(-8px) rotate(1.2deg); }
  .card:hover .card-photo img { transform: scale(1.06); }
  .flavor:hover .tilt { animation-duration: .7s; }
  .step:hover .step-num { animation: wiggle .6s ease-in-out 2; }
  .gallery li:hover { transform: rotate(0) scale(1.04); z-index: 2; position: relative; }
  .qty button:hover { background: var(--pink-deep); transform: scale(1.1); }
}

/* ---------- order form ---------- */
.order-form { max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 20px; }
.form-intro { margin: 0; color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { color: #b0305a; font-weight: 700; }
.opt, .hint { font-weight: 400; color: var(--ink-soft); font-size: .92rem; }
.hint { margin: 0; }
.row-hint { display: block; }
input[type=text], input[type=email], input[type=tel], textarea {
  font: inherit; color: var(--ink); width: 100%; min-height: 48px;
  padding: 12px 16px; border-radius: 16px; border: 2px solid var(--field-border); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
input:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: #b0305a; background: #fff5f8; }
.field-error { margin: 0; color: #a3214c; font-weight: 700; font-size: .95rem; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; }

.items { border: 2px dashed var(--field-border); border-radius: 22px; padding: 14px 18px 18px; margin: 0; display: grid; gap: 4px; min-width: 0; }
.items legend { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; padding: 0 8px; }
.item-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 0; border-bottom: 1px solid var(--pink); }
.item-row em { font-style: normal; color: var(--crust); font-weight: 700; margin-left: 4px; white-space: nowrap; }
.item-row.has-qty { background: linear-gradient(90deg, var(--butter), transparent); border-radius: 12px; padding-left: 8px; }
.qty { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: auto; }
.qty input { width: 48px; min-height: 44px; text-align: center; font: inherit; font-weight: 700; border: 2px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty button { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--field-border); cursor: pointer; font-size: 1.3rem; font-weight: 700; background: var(--lavender); color: var(--ink); transition: transform .15s, background .2s; }
.qty button:active { transform: scale(.9); }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-family: var(--font-head); font-size: 1.2rem; font-weight: 600; }
.total b { font-size: 1.8rem; color: var(--crust); display: inline-block; }
.total b.pop { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.3); } }

.form-note { margin: 0; background: var(--mint); border-radius: 16px; padding: 12px 16px; font-size: .95rem; }
.btn-big { justify-self: center; font-size: 1.25rem; padding: 14px 34px; }
@media (max-width: 420px) { .btn-big { justify-self: stretch; } }
.form-status { text-align: center; margin: 0; font-weight: 700; }
.form-status:empty { display: none; }
.form-status.ok { color: #1f6b43; background: var(--mint); padding: 12px 16px; border-radius: 16px; }
.form-status.err { color: #a3214c; background: #fff0f4; padding: 12px 16px; border-radius: 16px; }
.form-privacy { margin: 0; text-align: center; font-size: .92rem; color: var(--ink-soft); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 40px 16px 50px; background: var(--lavender); color: var(--ink); }
.footer img { margin: 0 auto 10px; border-radius: 50%; animation: bob 5s ease-in-out infinite; }
.footer p { margin: 6px 0; }
.footer a { display: inline-block; padding: 6px 4px; }

/* ---------- "Built by Bee & Gold" badge (bottom-right of footer) ----------
   Bee mark at rest; swaps to a sparkle-trimmed credit line on hover/focus. */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/playfair-display-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
.footer { position: relative; }
.footer-bee { position: absolute; right: clamp(12px, 3vw, 32px); bottom: 14px; }
.footer .bee-badge {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  color: var(--ink-soft); text-decoration: none;
}
.bee-badge-logo { width: 22px; height: 22px; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; }
.bee-badge-tip {
  position: absolute; right: 0; top: 50%;
  transform: translate(4px, -50%);
  white-space: nowrap;
  font-family: "Playfair Display", Georgia, serif; font-size: .8rem;
  color: var(--ink-soft);
  opacity: 0; pointer-events: none;
  transition: transform .3s ease .1s, opacity .3s ease .1s;
}
.bee-badge-tip-name { position: relative; color: #86580a; font-weight: 600; margin-left: 3px; }
.bee-badge-spark { position: absolute; font-size: .6rem; line-height: 1; color: #d8a13a; opacity: 0; }
.bee-badge-spark-1 { top: -9px; left: -10px; animation-delay: 0s; }
.bee-badge-spark-2 { top: -11px; right: 6px; animation-delay: .45s; }
.bee-badge-spark-3 { bottom: -9px; right: -8px; animation-delay: .9s; }
.bee-badge-spark-4 { bottom: -7px; left: 10px; animation-delay: .25s; }
@keyframes bee-badge-twinkle {
  0%, 100% { opacity: 0; transform: scale(.3) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(90deg); }
}
.bee-badge:hover .bee-badge-logo, .bee-badge:focus-visible .bee-badge-logo { transform: scale(0); opacity: 0; }
.bee-badge:hover .bee-badge-tip, .bee-badge:focus-visible .bee-badge-tip { transform: translate(0, -50%); opacity: 1; }
.bee-badge:hover .bee-badge-spark, .bee-badge:focus-visible .bee-badge-spark { animation: bee-badge-twinkle 1.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .bee-badge-logo, .bee-badge-tip { transition: none; }
  .bee-badge-spark { animation: none !important; }
}

/* ---------- privacy page ---------- */
.policy { max-width: 760px; margin: 0 auto; padding: 50px clamp(16px, 5vw, 40px) 70px; }
.policy h1 { font-size: clamp(2rem, 5vw, 3rem); }
.policy h2 { font-size: 1.5rem; margin-top: 1.6em; }
.policy p, .policy li { color: var(--ink); }
.policy .updated { color: var(--ink-soft); }
.policy-page .footer img { animation: none; }

/* ---------- scroll reveal ----------
   Uses the separate `translate` property so it never fights with hover `transform`s. */
.js .reveal { opacity: 0; }
.js .reveal.in { animation: rise .7s cubic-bezier(.34,1.56,.64,1) var(--d, 0ms) both; }
@keyframes rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}

/* ---------- motion off: "Pause animations" button, or the OS reduced-motion setting ---------- */
html.still *, html.still *::before, html.still *::after {
  animation: none !important;
  transition-duration: .01ms !important;
  scroll-behavior: auto !important;
}
html.still .reveal { opacity: 1 !important; translate: none !important; }
@media (prefers-reduced-motion: reduce) {
  html:not(.js) *, html:not(.js) *::before, html:not(.js) *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
