.motion-toggle {
  flex: 0 0 auto;
  padding: 8px 10px;
  min-height: 36px;
  border: 1px solid #bdd6d2;
  border-radius: 20px;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
}
.motion-toggle:disabled { cursor: default; color: #597d7b; }
.section-base { width:100%; mask-size:100% 100%; -webkit-mask-size:100% 100%; mask-repeat:no-repeat; -webkit-mask-repeat:no-repeat; }
.motion-stage { position:absolute; overflow:hidden; background:#eff8f6; pointer-events:none; line-height:0; contain:paint; }
.motion-piece { width:100%; height:100%; background-repeat:no-repeat; transform-origin:center center; }
.motion-stage[data-motion-kind="hero-copy"] { background:transparent; }
.motion-piece > svg { display:block; width:100%; height:100%; }
.hero-ink-cover { position:absolute; pointer-events:none; }
html[data-motion="on"] .motion-stage[data-motion-state="waiting"] .motion-piece { opacity:0; }
.flavor-lines { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; overflow:visible; }
.trace-path,.trace-halo { fill:none; stroke-linecap:round; stroke-dasharray:1; stroke-dashoffset:1; opacity:0; }
.trace-path { stroke:#218e8b; stroke-width:4; }
.trace-halo { stroke:#f6fffc; stroke-width:11; }
.trace-dot { fill:#ecfffa; stroke:#218e8b; stroke-width:3; opacity:0; transform-box:fill-box; transform-origin:center; }
.flavor-hotspot { position:absolute; border:1px solid transparent; border-radius:18px; background:transparent; cursor:pointer; padding:0; }
.flavor-guide.is-active .flavor-hotspot { border-color:#5aa5a0; box-shadow:0 0 0 4px #caeae240,0 3px 20px #347a7b16; }
.flavor-guide.is-active .trace-path,.flavor-guide.is-active .trace-halo { stroke-dashoffset:0; opacity:1; }
.flavor-guide.is-active .trace-dot { opacity:1; }
html[data-motion="on"] .trace-path,html[data-motion="on"] .trace-halo { transition:stroke-dashoffset 650ms cubic-bezier(.25,.7,.3,1),opacity 120ms; }
html[data-motion="on"] .trace-dot { transition:opacity 240ms 380ms; }
html[data-motion="off"] .trace-path,html[data-motion="off"] .trace-halo,html[data-motion="off"] .trace-dot { transition:none; }
.reading-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 20;
  background: #347a7b;
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
html[data-motion="on"] .masthead nav a {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-position: left bottom 5px;
  background-repeat: no-repeat;
  transition: background-size 240ms ease;
}
html[data-motion="on"] .masthead nav a:hover { background-size: 100% 1px; }
.purchase-bar .primary { border:0; cursor:pointer; font:inherit; }
.primary span { display:inline-block; }
.purchase-hit { overflow:hidden; }
html[data-motion="on"] .primary { transition:background-color 200ms ease,box-shadow 200ms ease,transform 200ms ease; }
html[data-motion="on"] .primary span { transition:transform 200ms ease; }
html[data-motion="on"] .purchase-hit { transition:backdrop-filter 200ms ease,background-color 200ms ease,box-shadow 200ms ease; }
.primary:is(:hover,:focus-visible) { background-color:#347f7d; box-shadow:0 7px 20px #183f423d; }
html[data-motion="on"] .primary:is(:hover,:focus-visible) { transform:translateY(-3px); }
html[data-motion="on"] .primary:is(:hover,:focus-visible) span { transform:translateX(6px); }
.purchase-hit:is(:hover,:focus-visible) {
  -webkit-backdrop-filter:brightness(1.5) saturate(1.15);
  backdrop-filter:brightness(1.5) saturate(1.15);
  background-color:#40b9b224;
  box-shadow:0 7px 22px #183f424d;
}
html[data-motion="off"] { scroll-behavior: auto; }
@media (max-width:480px) {
  .masthead { gap: 10px; }
  .masthead nav { gap: 10px; }
  .motion-toggle { padding: 7px 8px; font-size: 10px; }
}
@media (prefers-reduced-motion:reduce) {
  .reading-progress { display: none; }
  .masthead nav a, .primary, .primary span, .purchase-hit { transition: none !important; }
}
@media print { .motion-toggle, .reading-progress { display:none; } }
@media print { .flavor-guide { display:none; } .motion-piece { opacity:1 !important; } }
