/* Copied from the brittanymyra.com theme (assets/bm-draw.css). Change it there and copy it here so both sites stay one family. */
/*
  Hand drawn motion (Nov 14, 2026), approved by Brittany from the demo:
  1. A knotted strand of faceted ruby rondelles that draws itself above the email signup, with a few sparkles once it settles.
  2. The seasonal header garland draws in left to right on the first page of a visit.
  3. Her signature writes itself at the end of the About page.
  Each plays once when it comes into view, then stays still. With reduced motion everything is simply shown finished.
*/
.bm-strand-band { padding: 3.2rem 0 0; display: block; }
.bm-strand { width: 100%; height: auto; display: block; overflow: visible; }
.bm-strand .thread { fill: none; stroke: url(#bmSilkFade); stroke-width: .9; stroke-linecap: round; }
.bm-strand .sparkle { opacity: 0; }

.bm-sig { display: block; }
.bm-sig svg { width: min(100%, 170px); height: auto; overflow: visible; display: block; }
.bm-sig .ink { fill: none; stroke: rgb(var(--color-foreground)); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.bm-sig mask .ink { stroke: #fff; stroke-width: 30; }
.bm-sig .sig-line path { fill: none; stroke: rgb(var(--color-foreground)); stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; }
.bm-sig .swash { stroke: #86577a; stroke-width: 1.8; opacity: .75; }

.bm-garland-draw { position: absolute; left: 0; right: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.bm-garland-draw svg { display: block; width: 100%; height: 100%; }
html.bm-garland-drawing .header-wrapper::after { visibility: hidden; }

@media (prefers-reduced-motion: no-preference) {
  /* Nov 24, 2026: nothing of the strand shows until it starts drawing, so it never appears finished first */
  svg.bm-strand:not(.bm-play):not(.bm-frozen) .thread, svg.bm-strand:not(.bm-play):not(.bm-frozen) .beads { visibility: hidden; }
  .bm-play .thread, .bm-play .g-thread { animation: bmDraw 1s cubic-bezier(.4,.1,.2,1) both; }
  .bm-play .bead { animation: bmBead .45s cubic-bezier(.22,.8,.24,1) both; transform-box: fill-box; transform-origin: center; }
  .bm-play .knot, .bm-play .wire { animation: bmFade .4s ease both; }
  .bm-play .sparkle { animation: bmSparkle .95s cubic-bezier(.3,.6,.3,1) both; transform-box: fill-box; transform-origin: center; }
  .bm-play .g-item { animation: bmBloom .6s cubic-bezier(.2,.9,.3,1.2) both; transform-box: fill-box; transform-origin: center bottom; }
  .bm-play .ink { animation-name: bmDraw; animation-fill-mode: both; }
}
@media (prefers-reduced-motion: reduce) { .bm-strand .sparkle { display: none; } }
@keyframes bmDraw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
@keyframes bmBead { from { opacity: 0; transform: translateY(-4px) scale(.82); } 60% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes bmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bmBloom { from { opacity: 0; transform: scale(.3) rotate(-8deg); } to { opacity: 1; transform: none; } }
@keyframes bmSparkle { 0% { opacity: 0; transform: scale(0) rotate(0deg); } 45% { opacity: 1; transform: scale(1) rotate(30deg); } 100% { opacity: 0; transform: scale(.2) rotate(70deg); } }

/* Gold heart tag (Nov 14, 2026): hangs like the real tag on her clasps, swings in once and catches a glint of light. */
.bm-tag-host { position: relative; }
.bm-tag-host--img { display: table; }
.bm-tag { position: absolute; pointer-events: none; z-index: 2; display: block; }
.bm-tag svg { width: 100%; height: auto; display: block; overflow: visible; }
.bm-tag--photo { width: 7.6rem; top: -1.4rem; left: -2.6rem; }
.bm-tag--band { width: 6.4rem; top: -2rem; right: 6%; }
.bm-tag--inline { position: relative; display: inline-block; width: 4rem; vertical-align: top; margin-left: .8rem; top: -.4rem; }
.bm-tag--details { width: 4.6rem; top: -1rem; right: 6.4rem; }
@media screen and (max-width: 749px) { .bm-tag--photo { width: 6rem; left: -.6rem; } }
/* Nov 17, 2026: the heart may swing past its own little frame; without this the far side was cut off flat */
svg.bm-heart { overflow: visible; }
.bm-heart__swing { transform-box: view-box; transform-origin: 40px 12px; }
.bm-tag--left .bm-heart__swing { transform-origin: 80px 12px; }
.bm-heart__glint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .bm-play .bm-heart__swing { animation: bmHgSwing 1.9s cubic-bezier(.3,.6,.35,1) both; }
  .bm-play .bm-heart__glint { animation: bmHgGlint .9s cubic-bezier(.4,.1,.3,1) .05s both; }
  /* the strand's tag is the one tag that fades in, only after the last stone has settled */
  .bm-strand[data-built]:not(.bm-play) .bm-heart__swing { opacity: 0; }
  .bm-strand.bm-play .bm-heart__swing { animation: bmHgFadeSwing 1.8s cubic-bezier(.3,.6,.35,1) 1.1s both; }
  .bm-strand.bm-play .bm-heart__glint { animation-delay: 2.15s; }
}
@keyframes bmHgSwing { 0% { transform: rotate(-16deg); } 35% { transform: rotate(9deg); } 58% { transform: rotate(-4.5deg); } 78% { transform: rotate(2deg); } 100% { transform: rotate(0); } }
@keyframes bmHgFadeSwing { 0% { opacity: 0; transform: rotate(-12deg); } 22% { opacity: 1; } 42% { transform: rotate(7deg); } 64% { transform: rotate(-3.5deg); } 82% { transform: rotate(1.5deg); } 100% { opacity: 1; transform: rotate(0); } }
@keyframes bmHgGlint { 0% { opacity: 0; transform: skewX(-18deg) translateX(0); } 20% { opacity: 1; } 100% { opacity: 0; transform: skewX(-18deg) translateX(190px); } }

/* Chain break between sections: a fine gold chain (still, no fade) with the heart tag swinging from its center link */
.bm-chain { display: block; width: 100%; height: 68px; overflow: visible; }
.bm-chain-wrap { position: relative; }
.bm-chain.bm-chain__tag { position: absolute; left: 0; top: 0; pointer-events: none; }
canvas.bm-frozen { display: block; max-width: none; }
.bm-strand-wrap { position: relative; }
.bm-strand.bm-strand__tag { position: absolute; left: 0; top: 0; height: 100%; pointer-events: none; }
/* Phones: "One of one, ready to wear" on a single line */
@media screen and (max-width: 749px) { [id$="__bm_new"] .title { font-size: min(8.2vw, 3.6rem); line-height: 1.2; } }
/* Scroll aware tags (bm-draw.js tagPhysics): the swing and glint follow scrolling instead of a timer, so the timed
   keyframes step aside. The strand's heart still fades in once the last stone has settled. */
@media (prefers-reduced-motion: no-preference) {
  .bm-phys .bm-heart__swing, .bm-phys .bm-play .bm-heart__swing, .bm-phys .bm-strand.bm-play .bm-heart__swing { animation: none; }
  .bm-phys .bm-heart__glint, .bm-phys .bm-play .bm-heart__glint { animation: none; opacity: 0; }
  .bm-phys .bm-strand.bm-play .bm-heart__swing { opacity: 1; transition: opacity .9s ease 2s; }
}
/* Lessons strand (brittanymakesit.com): a thread with a stone at each lesson, drawn in as you scroll */
.ls-strand { position: relative; padding-left: 46px !important; padding-bottom: 44px !important; }
.ls-svg { position: absolute; left: 0; top: 0; width: 34px; overflow: visible; pointer-events: none; }
.ls-item { opacity: 0; transform: translateY(-5px) scale(.82); transform-box: fill-box; transform-origin: center; transition: opacity .45s ease, transform .6s cubic-bezier(.22,.8,.24,1); }
.ls-item.on { opacity: 1; transform: none; }
.ls-tag { opacity: 0; transition: opacity .7s ease .15s; }
.ls-done .ls-tag { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ls-item, .ls-tag { opacity: 1 !important; transform: none !important; transition: none !important; } }
