.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; }
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; }
html[data-motion="on"] .primary {
  transition: background-color 220ms ease, box-shadow 220ms ease;
}
html[data-motion="on"] .primary:hover {
  background-color: #2b6263;
  box-shadow: 0 4px 16px #183f4220;
}
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 { transition: none !important; }
}
@media print { .motion-toggle, .reading-progress { display:none; } }
@media print { .flavor-guide { display:none; } .motion-piece { opacity:1 !important; } }
