/* Hero paint rotator v5: the highlighter lives on "Before"; the cycle is clean; "Together" seals. */
.cover-title .bp { position: relative; z-index: 0; display: inline-block; animation: bp-breathe 3.6s ease-in-out infinite; }
@keyframes bp-breathe { 0%, 100% { font-weight: 560; } 50% { font-weight: 660; } }
.cover-title .bp .bp-wash { position: absolute; z-index: -1; left: -0.12em; right: -0.08em; bottom: -0.08em; height: 0.8em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23b08b3e' d='M5,10 C60,4 135,7 193,10 C200,18 199,36 185,52 C128,57 66,54 9,55 C1,42 0,22 5,10 Z'/%3E%3Cpath fill='%23b08b3e' opacity='.5' d='M12,20 C70,16 140,18 182,21 C186,28 185,36 179,42 C118,46 62,44 15,44 C11,36 10,27 12,20 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; opacity: 0.32; transform: rotate(var(--wash-tilt, -0.9deg)); transform-origin: left center; clip-path: inset(-10% 100% -10% -4%); transition: clip-path 0.7s cubic-bezier(0.55, 0, 0.3, 1); pointer-events: none; }
.cover-title .bp .bp-wash.on { clip-path: inset(-10% -4% -10% -4%); }
html[data-theme="guide"] .cover-title .bp .bp-wash { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath fill='%23e8833a' d='M5,10 C60,4 135,7 193,10 C200,18 199,36 185,52 C128,57 66,54 9,55 C1,42 0,22 5,10 Z'/%3E%3Cpath fill='%23e8833a' opacity='.5' d='M12,20 C70,16 140,18 182,21 C186,28 185,36 179,42 C118,46 62,44 15,44 C11,36 10,27 12,20 Z'/%3E%3C/svg%3E"); }
.cover-title .slot { position: relative; display: inline-block; white-space: nowrap; vertical-align: bottom; }
.cover-title .slot.w { transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.cover-title .slot em { position: relative; z-index: 1; transition: clip-path 0.62s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.26s ease; }
.cover-title .slot em.reveal { clip-path: inset(-0.25em 100% -0.25em -0.05em); }
.cover-title .slot em.reveal.in { clip-path: inset(-0.25em -0.1em -0.25em -0.05em); }
.cover-title .slot em.out { opacity: 0; }
.cover-title .stroke { position: absolute; z-index: 1; left: -0.02em; right: 0; bottom: 0.03em; height: 0.075em; border-radius: 2px; background: var(--gold-deep); opacity: 0; transform: scaleX(0); transform-origin: left center; transition: transform 0.52s cubic-bezier(0.55, 0, 0.3, 1), opacity 0.26s ease; pointer-events: none; }
.cover-title .stroke.seal { opacity: 1; }
.cover-title .stroke.seal.on { transform: scaleX(1); }
.cover-title .stroke.off { opacity: 0; }
html[data-theme="guide"] .cover-title .stroke { background: #3e7c59; }
/* The signature line: waits in neutral ink, wider than the name, then flushes green when signed. */
.cover-title .stroke.sig { z-index: 1; left: -0.12em; right: -0.18em; bottom: 0.14em; height: 2px; border-radius: 1px; background: rgba(26, 25, 23, 0.45); opacity: 1; transform: scaleX(0); transform-origin: left center; transition: transform 0.55s cubic-bezier(0.55, 0, 0.3, 1), background-color 0.45s ease, opacity 0.26s ease; }
.cover-title .stroke.sig.on { transform: scaleX(1); }
.cover-title .stroke.sig.signed { background: rgba(26, 25, 23, 0.78); }
.cover-title .stroke.sig.off { opacity: 0; }
.cover-title .stroke.sig::before { content: "\00d7"; position: absolute; left: 0.05em; bottom: 0.28em; font-size: 0.38em; line-height: 1; font-weight: 700; font-family: var(--serif); font-style: normal; color: var(--gold-deep); opacity: 0; transition: opacity 0.3s ease 0.35s; }
.cover-title .stroke.sig.on::before { opacity: 1; }
html[data-theme="guide"] .cover-title .stroke.sig { background: rgba(41, 37, 36, 0.4); }
html[data-theme="guide"] .cover-title .stroke.sig.signed { background: rgba(41, 37, 36, 0.75); }
html[data-theme="guide"] .cover-title .stroke.sig::before { color: #b4530a; }
/* The written signature (Vara.js single-stroke handwriting) */
.cover-title .slot .sigword { position: absolute; left: 0.18em; bottom: -0.32em; width: 140%; pointer-events: none; opacity: 1; transition: opacity 0.26s ease; }
.cover-title .slot .sigword.out { opacity: 0; }
.cover-title .slot .sigword svg { overflow: visible; display: block; }
.cover-title .dot { display: inline-block; }
.cover-title .dot.pop { animation: dot-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes dot-pop { 0% { transform: scale(1); } 45% { transform: scale(1.4); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cover-title .bp { animation: none; }
  .cover-title .bp .bp-wash { transition: none; clip-path: none; }
}
