/* Palette Girlies, live.css: the live layer on every page (nov 2026, site/js/live.js; technique of docs/web/REFERENCIA-DISENO-EU.md, never its colors).
   1. hand marks [data-mark]  2. drawings [data-draw]  3. the marquee  4. tilt [data-tilt]  5. the pinned track [data-track]  6. the fan deck [data-fan-deck].
   Hidden or folded states live under html.live only, which site/js/live.js sets when motion is allowed; reduced motion, Save-Data and no JavaScript see
   the final state. Swatches stay flat and exact: the paint sticks are plain color on a white stick. No hex here except the gold pin and its shadow, which are brand gold. */

/* ---------- 1. hand marks: the svg is drawn by live.js over, under or behind the word ---------- */
.mk-host { position: relative; white-space: nowrap; isolation: isolate; }
.mk-host[data-mark="circle"] { margin-inline: .28em; }
.mk { position: absolute; left: -6px; top: -6px; overflow: visible; pointer-events: none; fill: none; stroke: var(--mark-c, var(--berry)); stroke-width: 2.2px; stroke-linecap: round; stroke-linejoin: round; }
.mk .mk-p2 { stroke-width: 1.6px; opacity: .8; }
.mk--highlight { z-index: -1; stroke: var(--mark-hl, var(--blush)); opacity: .55; }
.mk--underline { stroke-width: 2.6px; }
.dark .mk-host, .mk-host.on-dark { --mark-c: var(--blush); --mark-hl: var(--berry); }
.live .mk path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.live .mk-on .mk .mk-p1 { stroke-dashoffset: 0; transition: stroke-dashoffset .9s var(--ease); }
.live .mk-on .mk .mk-p2 { stroke-dashoffset: 0; transition: stroke-dashoffset .55s var(--ease) .62s; }

/* ---------- 2. drawings: lines in order, then fills, then the handwritten caption ---------- */
.live .ld .ld-s { stroke-dasharray: 1; stroke-dashoffset: 1; }
.live .ld .ld-f { fill-opacity: 0; }
.live .ld .note-hand { opacity: 0; transform: translateY(6px); }
.live .ld-in .ld-s { stroke-dashoffset: 0; transition: stroke-dashoffset .8s var(--ease) calc(var(--i, 0) * 140ms); }
.live .ld-in .ld-f { fill-opacity: var(--fo, 1); transition: fill-opacity .7s var(--ease) var(--fd, 0ms); }
.live .ld-in .note-hand { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--cd, 0ms), transform .6s var(--ease) var(--cd, 0ms); }

/* ---------- 3. the marquee: two copies side by side, moved by half its width ---------- */
.marquee { overflow: hidden; }
.marquee-track { display: flex; width: max-content; }
.marquee-group { display: flex; flex: none; align-items: center; gap: var(--mq-gap, 48px); padding-right: var(--mq-gap, 48px); margin: 0; list-style: none; }
.live .marquee-track { animation: pg-marquee var(--mq-time, 40s) linear infinite; }
.live .marquee:hover .marquee-track, .live .marquee.is-off .marquee-track { animation-play-state: paused; }
@keyframes pg-marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- 4. tilt toward a fine pointer (at most 6 degrees and 12 px; the values come from live.js) ---------- */
.is-tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .6s var(--ease); will-change: transform; }

/* ---------- 5. the pinned track: stacked by default, a sideways rail from 900px when live.js turns it on ---------- */
.track-on [data-track-stage] { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.track-on [data-track-rail] { display: flex; flex-wrap: nowrap; will-change: transform; }

/* ---------- 6. the fan deck: paint sticks round a gold pin, opened once in view ---------- */
.fan { --arc: 84deg; --stick-w: 44px; --stick-h: 230px; position: relative; isolation: isolate; display: grid; justify-items: center; gap: var(--s3); }
.fan-wash { position: absolute; left: -14%; top: -14%; width: 128%; height: 120%; z-index: -1; pointer-events: none; }
.fan-deck { position: relative; width: 100%; height: calc(var(--stick-h) + 36px); }
.fan-deck::after { content: ""; position: absolute; left: 50%; bottom: 10px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--gold); box-shadow: inset 0 0 0 3px #7A5512, 0 2px 4px rgba(43, 34, 48, .35); z-index: 60; }
.stick {
  --a: calc((var(--i) - (var(--n) - 1) / 2) * var(--spread, 0deg));
  position: absolute; left: 50%; bottom: 0; width: var(--stick-w); height: var(--stick-h); margin-left: calc(var(--stick-w) / -2);
  display: flex; flex-direction: column; padding: 5px 5px 0; border: 0; border-radius: 5px; background: var(--card); color: var(--ink-2); cursor: pointer;
  box-shadow: 0 1px 0 rgba(43, 34, 48, .1), 0 10px 22px -12px rgba(43, 34, 48, .6);
  transform-origin: 50% calc(100% - 18px); transform: rotate(var(--a)); transition: transform .9s var(--ease) calc(var(--i) * 18ms);
  z-index: calc(1 + var(--i)); -webkit-tap-highlight-color: transparent;
}
.stick::before { content: ""; display: block; flex: none; height: 64%; border-radius: 3px; background: var(--c); }
.stick.is-light::before { box-shadow: inset 0 0 0 1px var(--line-2); }
.stick span { align-self: center; margin-top: 6px; max-height: calc(var(--stick-h) * .3); overflow: hidden; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font: 600 12.5px/1 var(--sans); }
.stick.is-up { transform: rotate(var(--a)) translateY(-24px); z-index: 50; transition-delay: 0ms; transition-duration: .35s; }
.stick:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.fan.is-open, html:not(.js) .fan { --spread: calc(var(--arc) / max(1, var(--n) - 1)); }
.fan-name { min-height: 1.5em; font: 400 var(--fs-3)/1.4 var(--sans); color: var(--ink); text-align: center; }
.fan-name b { font: 400 22px/1.2 var(--serif); letter-spacing: -.01em; }
.fan-name code { font: 500 13px/1 ui-monospace, "SF Mono", Consolas, monospace; letter-spacing: .04em; color: var(--ink-2); }
.dark .fan-name, .dark .fan-name code { color: var(--paper); }
@media (min-width: 900px) { .fan { --stick-w: 52px; --stick-h: 300px; } .stick span { font-size: 13.5px; } }

@media (prefers-reduced-motion: reduce) {
  .mk path, .ld-s { stroke-dashoffset: 0 !important; transition: none !important; }
  .ld-f { fill-opacity: var(--fo, 1) !important; }
  .marquee-track { animation: none !important; }
  .is-tilt { transform: none; }
  .stick { transition: none; }
  .fan { --spread: calc(var(--arc) / max(1, var(--n) - 1)); }
}
