/* ==========================================================================
   REC — Palestras
   Três modos: projetor (palco 16:9 escalável), ao vivo (celular/notebook)
   e controle (apresentadora). Os tons seguem o arco da palestra:
   luz → peso → pausa → transição → borboleta → legado.
   ========================================================================== */

/* 1. Tons narrativos ------------------------------------------------------- */
[data-tom] { transition: background-color 1.2s var(--ease), color 1.2s var(--ease); }
[data-tom="luz"] {
    --bg: #F8F2F0; --bg-2: #F1E6E3; --ink: #26151E; --ink-2: #6B5A61; --accent: #6E2240; --accent-2: #A94A5E;
    --v-ink: #6E2240; --v-accent: #D67685; --v-soft: #F4DCE0; --v-muted: #CDB8BB; --v-earth: #8A6650; --v-glow: #F2C2CC; --v-tag: #F6EAE2;
}
[data-tom="peso"] {
    --bg: #2A201B; --bg-2: #362922; --ink: #F3E9E2; --ink-2: #CDBBAE; --accent: #E6AC92; --accent-2: #E6AC92;
    --v-ink: #D9C2B1; --v-accent: #E09A86; --v-soft: #4B3B32; --v-muted: #6E5A4D; --v-earth: #7E553D; --v-glow: #C88E74; --v-tag: #F6E4D6;
}
[data-tom="pausa"] {
    --bg: #15100E; --bg-2: #211915; --ink: #EFE6E0; --ink-2: #ADA099; --accent: #E3B2A2; --accent-2: #E3B2A2;
    --v-ink: #CDBBB0; --v-accent: #E8C2B4; --v-soft: #3A2E28; --v-muted: #5A4B43; --v-earth: #7E553D; --v-glow: #E8C4B6; --v-tag: #F6E4D6;
}
[data-tom="transicao"] {
    --bg: #33232A; --bg-2: #402C35; --ink: #F7EDEB; --ink-2: #D6C2C6; --accent: #F2B6C1; --accent-2: #F2B6C1;
    --v-ink: #E9D3D6; --v-accent: #F0A9B6; --v-soft: #5A3E48; --v-muted: #77586A; --v-earth: #7E553D; --v-glow: #F4C9D1; --v-tag: #F6E4D6;
}
[data-tom="borboleta"] {
    --bg: #FBF0F2; --bg-2: #F6E1E6; --ink: #26151E; --ink-2: #6B5A61; --accent: #8E3150; --accent-2: #A94A5E;
    --v-ink: #8E3150; --v-accent: #D67685; --v-soft: #F6D3DB; --v-muted: #D9B9C0; --v-earth: #8A6650; --v-glow: #F7C3CE; --v-tag: #FFFFFF;
}
[data-tom="legado"] {
    --bg: #24141D; --bg-2: #301C27; --ink: #F8F2F0; --ink-2: #D2BFC5; --accent: #E8C08F; --accent-2: #E8C08F;
    --v-ink: #E6D0C3; --v-accent: #D67685; --v-soft: #3B2532; --v-muted: #5E4352; --v-earth: #7E553D; --v-glow: #D67685; --v-tag: #F6E4D6;
    --v-gold: #D7B07A;
}

[data-tom="radiante"] {
    --bg: #4A1A2C; --bg-2: #5A2236; --ink: #FBF3EE; --ink-2: #E6CDD3; --accent: #E5BC6C; --accent-2: #E5BC6C;
    --v-ink: #F1DCCF; --v-accent: #E5BC6C; --v-soft: #6C2C45; --v-muted: #8E5D70; --v-earth: #7E553D; --v-glow: #E9C47C; --v-tag: #FFF4E6;
    --v-gold: #E5BC6C;
}
[data-tom="ouro"] {
    --bg: #D2A855; --bg-2: #C79A45; --ink: #2E1520; --ink-2: #4A2630; --accent: #5A1A33; --accent-2: #5A1A33;
    --v-ink: #3A1A26; --v-accent: #6E2240; --v-soft: #E6C57F; --v-muted: #A77D3A; --v-earth: #7E553D; --v-glow: #FFF0C8; --v-tag: #FFF8EC;
}
[data-tom="salvia"] {
    --bg: #EEF1E8; --bg-2: #E1E8D6; --ink: #26151E; --ink-2: #4F5A52; --accent: #4A6542; --accent-2: #4A6542;
    --v-ink: #4A6542; --v-accent: #8C9D6E; --v-soft: #D8E2C8; --v-muted: #B2BEA2; --v-earth: #8A6650; --v-glow: #DCE8C4; --v-tag: #FFFFFF;
}

/* 2. Elementos dos visuais (SVG) ------------------------------------------ */
.vis { position: relative; width: 100%; height: 100%; }
.vis > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
:where(.vis) :where(path, line, polyline) { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.vis [class^="a-"], .vis [class*=" a-"], .vis [class^="l-"], .vis [class*=" l-"] { transform-box: fill-box; transform-origin: center; }

.v-key { fill: var(--v-accent); }
.v-node { fill: var(--bg); stroke: var(--v-ink); stroke-width: 1.6; }
.v-leaf { fill: var(--v-accent); }
.v-faint { fill: var(--v-muted); }
.v-branch, .v-thread, .v-trunk { stroke: var(--v-ink); stroke-width: 1.6; }
.v-trunk { stroke-width: 3; }
.v-thread--soft { stroke-width: 1; opacity: 0.45; }
.v-root { stroke: var(--v-gold, var(--v-earth)); stroke-width: 1.6; opacity: 0.9; }
.v-divider { stroke: var(--v-muted); stroke-width: 1; stroke-dasharray: 2 5; }
.v-ground { stroke: var(--v-muted); stroke-width: 1.2; }
.v-label { font-family: var(--f-sans); font-size: 12px; font-weight: 500; fill: var(--ink-2); }
.v-label--strong { font-weight: 700; fill: var(--ink); }
.v-label--sm { font-size: 10.5px; }
.v-label--inverse { fill: var(--v-tag); font-size: 11px; }
.l-ripple { fill: none; stroke: var(--v-accent); stroke-width: 1.4; opacity: 0; }
.l-mote { fill: var(--v-accent); opacity: 0; }
.v-figure { fill: var(--v-soft); }
.v-cloak { fill: var(--v-earth); opacity: 0; }
.v-cloak--on { opacity: 1; transition: opacity 0.9s var(--ease); }
.v-gift { font-family: var(--f-display); font-style: italic; font-size: 17px; fill: var(--v-accent); font-weight: 400; }
.v-tag { font-family: var(--f-display); font-size: 13px; fill: var(--v-tag); }
.v-free-glow { fill: var(--v-glow); opacity: 0; filter: blur(24px); transition: opacity 1.4s var(--ease); }
.is-free .v-free-glow { opacity: 0.55; }
.v-block { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.2; }
.v-rope { stroke: var(--v-ink); stroke-width: 1.4; }
.v-weight { fill: var(--v-earth); }
.v-pill { fill: var(--bg); stroke: var(--v-ink); stroke-width: 1; }
.v-pill-text { font-family: var(--f-sans); font-size: 11px; font-weight: 600; fill: var(--v-ink); }
.v-surface { stroke: var(--v-ink); stroke-width: 1.6; }
.v-hidden { fill: var(--v-earth); fill-opacity: 0.4; opacity: 0; }
.v-pillar { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.2; }
.v-bridge { stroke: var(--v-ink); stroke-width: 4; }
.v-crack { stroke: var(--v-accent); stroke-width: 2.4; }
.v-goal { fill: var(--v-accent); }
.v-guide { stroke: var(--v-accent); stroke-width: 2; stroke-dasharray: 1; }
.v-own { stroke: var(--v-ink); stroke-width: 2; }
.v-own-end { fill: var(--v-ink); }
.v-past { fill: var(--v-earth); }
.v-link { fill: none; stroke: var(--v-ink); stroke-width: 2.4; }
.v-arrow { stroke: var(--v-ink); stroke-width: 2; }
.v-orbit { fill: none; stroke: var(--v-muted); stroke-width: 1; stroke-dasharray: 3 6; }
.v-light { fill: var(--v-glow); }
.v-idol { fill: var(--v-earth); }
.v-idol-text { font-family: var(--f-sans); font-size: 11px; font-weight: 600; fill: var(--v-tag); }
.a-stain { fill: var(--v-soft); }
.v-soil { fill: var(--v-earth); }
.v-stem { stroke: var(--v-ink); stroke-width: 2; }
.v-bloom { fill: var(--v-accent); }
.v-leafy { fill: var(--v-ink); opacity: 0.6; }
.v-race { stroke: var(--v-ink); stroke-width: 2; stroke-dasharray: 1; }
.v-braid { stroke: var(--v-accent); stroke-width: 2.4; }
.v-facade rect { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.2; }
.v-ornament { stroke: var(--v-ink); stroke-width: 1.2; }
.v-hollow { fill: #0B0807; }
.v-fragment { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1; }
.v-branch-line { stroke: var(--v-ink); stroke-width: 3; }
.v-cocoon { fill: var(--v-earth); }
.v-cocoon-glow { fill: var(--v-glow); opacity: 0.5; filter: blur(4px); }
.v-wrap { stroke: var(--v-tag); stroke-width: 1.2; opacity: 0.6; }
.v-wings path { fill: var(--v-accent); stroke: var(--v-ink); stroke-width: 1.2; }
.v-wings g path:nth-child(2) { fill: var(--v-glow); }
.v-body { fill: var(--v-ink); }
.v-antenna { stroke: var(--v-ink); stroke-width: 1.4; }
.v-path { stroke: var(--v-muted); stroke-width: 1.4; }
.v-stage { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.2; }
.v-stage--cocoon { fill: var(--v-earth); }
.v-trail { stroke: var(--v-accent); stroke-width: 1.4; stroke-dasharray: 1; }
.v-earth { fill: var(--v-soft); opacity: 0.5; }
.v-seed { fill: var(--v-gold, var(--v-earth)); }
.v-sprout { stroke: #8FB08A; stroke-width: 2.4; }
.v-leaf-shape { fill: #8FB08A; }
.v-print { fill: var(--v-muted); }
.v-fruit { fill: var(--v-accent); }

/* Maturidade Radiante */
.v-ray { stroke: var(--v-accent); stroke-width: 2; stroke-linecap: round; opacity: 0.85; }
.v-arc { stroke: var(--v-accent); stroke-width: 2.4; }
.v-sparkle { fill: var(--v-accent); }
.v-mirror { stroke: var(--v-ink); stroke-width: 2.2; }
.v-mirror-fill { fill: var(--v-soft); }
.v-reflection { fill: var(--v-muted); }
.v-shine { fill: #fff; opacity: 0.35; }
.v-shard { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1; }
.v-paper { fill: var(--v-tag); stroke: var(--v-ink); stroke-width: 1.2; }
.v-paper-line { stroke: var(--v-muted); stroke-width: 2; }
.v-water { fill: var(--v-soft); opacity: 0.6; }
.v-wave { stroke: var(--v-accent); stroke-width: 2.2; }
.v-wave--soft { stroke: var(--v-muted); stroke-width: 1.6; }
.v-body-line { stroke: var(--v-ink); stroke-width: 4; }
.v-support { stroke: var(--v-tag); stroke-width: 2; opacity: 0.8; }
.v-lens { fill: none; stroke: var(--v-accent); stroke-width: 3; }
.v-beam { fill: var(--v-glow); opacity: 0; fill-opacity: 0.35; }
.v-door-light { fill: #FFF8E6; }
.v-door { fill: var(--v-earth); }
.v-petal { fill: var(--v-soft); stroke: var(--v-accent); stroke-width: 1.6; }
.v-stone { fill: var(--v-soft); stroke: var(--v-muted); stroke-width: 1; }
.v-building { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.4; }
.v-window { fill: var(--v-glow); }
.v-heart { stroke: var(--v-accent); stroke-width: 2.6; }
.v-heart-fill { fill: var(--v-accent); }
.v-print-big { fill: var(--v-muted); }
.v-print-small { fill: var(--v-accent); }
.v-coin { fill: var(--v-gold, var(--v-accent)); stroke: var(--v-earth); stroke-width: 1; }
.v-destiny { stroke: var(--v-accent); stroke-width: 2.6; }
.v-star { fill: var(--v-accent); }
.v-post, .v-beam-line { stroke: var(--v-ink); stroke-width: 3; }
.v-chain { stroke: var(--v-muted); stroke-width: 1.4; }
.v-pan { fill: var(--v-soft); stroke: var(--v-ink); stroke-width: 1.4; }
.v-infinite { stroke: var(--v-accent); stroke-width: 4; }
.v-clock { stroke: var(--v-ink); stroke-width: 2.4; }
.v-tick { stroke: var(--v-ink); stroke-width: 1.4; }
.v-hand { stroke: var(--v-accent); stroke-width: 3; }
.v-star-dot { fill: var(--v-accent); }
.v-moon { fill: var(--v-accent); }
.v-sofa { fill: var(--v-soft); }
.v-sun { fill: #E5BC6C; }
.v-cloud { fill: var(--v-muted); }
.v-photo { fill: var(--v-tag); stroke: var(--v-ink); stroke-width: 1.2; }
.v-box { fill: var(--v-accent); }
.v-ribbon { stroke: var(--v-tag); stroke-width: 3; }
.v-word-box { fill: var(--v-tag); stroke: var(--v-accent); stroke-width: 2; }
.v-word { font-family: var(--f-display); font-style: italic; font-size: 24px; fill: var(--v-ink); }
.v-caret { stroke: var(--v-accent); stroke-width: 2; opacity: 0; }
.v-segment { stroke: var(--v-accent); stroke-width: 12; stroke-linecap: butt; }
.v-big-number { font-family: var(--f-display); font-size: 64px; fill: var(--ink); }
.v-plate { fill: var(--v-tag); stroke: var(--v-muted); stroke-width: 2; }
.v-slice--a { fill: #8FB08A; }
.v-slice--b { fill: #D67685; }
.v-slice--c { fill: var(--v-gold, #E5BC6C); }
.v-spiky { stroke: var(--v-muted); stroke-width: 2; stroke-dasharray: 4 5; }
.v-smooth { stroke: var(--v-accent); stroke-width: 3; }
.v-qr-card { fill: #FFFFFF; }
.v-qr-title { font-family: var(--f-sans); font-size: 12px; font-weight: 700; fill: #26151E; }
.v-price { font-family: var(--f-display); font-size: 22px; fill: #6E2240; }

/* 3. Animações de entrada (uma vez) ----------------------------------------- */
.a-draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.a-pop, .a-fade, .a-fade-slow, .a-rise, .a-drop-in, .a-push, .a-ascend, .a-unfold, .a-print, .a-grow, .a-garden-mine { opacity: 0; }
.is-in .a-draw { animation: v-draw 1.5s var(--ease) var(--d, 0s) forwards; }
.is-in .a-pop { animation: v-pop 0.8s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-fade { animation: v-fade 1s var(--ease) var(--d, 0s) forwards; }
.is-in .a-fade-slow { animation: v-fade 2.2s var(--ease) var(--d, 0s) forwards; }
.is-in .a-rise { animation: v-rise 0.9s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-drop-in { animation: v-drop-in 1s cubic-bezier(.5, 0, .75, 0) var(--d, 0s) forwards; }
.is-in .a-push { animation: v-push 1.2s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-ascend { animation: v-ascend 1.8s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-unfold { animation: v-unfold 1.6s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-print { animation: v-print 3.2s var(--ease) var(--d, 0s) forwards; }
.is-in .a-grow { transform-origin: 50% 100%; animation: v-grow 1.2s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-garden-mine { transform-origin: 50% 100%; animation: v-garden 5s var(--ease) var(--d, 0s) forwards; }
.is-in .a-lean { transform-origin: 50% 100%; animation: v-lean 1.4s var(--ease) var(--d, 0s) forwards; }
.is-in .a-break-l { transform-origin: 0% 100%; animation: v-break-l 1s cubic-bezier(.5, 0, .75, 0) var(--d, 0s) forwards; }
.is-in .a-break-r { transform-origin: 100% 100%; animation: v-break-r 1s cubic-bezier(.5, 0, .75, 0) var(--d, 0s) forwards; }
.is-in .a-displace { animation: v-displace 1.6s var(--ease) var(--d, 0s) forwards; }
.is-in .a-stain { animation: v-stain 1.2s var(--ease) var(--d, 0s) forwards; }
.is-in .a-touch { fill: var(--bg); stroke: var(--v-ink); stroke-width: 1.4; animation: v-touch 0.6s var(--ease) var(--d, 0s) forwards; }
.a-touch, .a-flash { fill: var(--bg); stroke: var(--v-ink); stroke-width: 1.4; }
.is-in .a-flash { animation: v-flash 2.6s var(--ease) var(--d, 0s) forwards; }
.is-in .a-crumble { animation: v-crumble 1.4s cubic-bezier(.5, 0, .75, 0) var(--d, 0s) forwards; }
.is-in .a-travel { animation: v-travel 3s var(--ease) var(--d, 0s) forwards; }

.a-drift, .a-gather, .a-sink { }
.is-in .a-drift { animation: v-drift 1.6s var(--ease-out) var(--d, 0s) forwards; }
.is-in .a-move { animation: v-move 2s var(--ease) var(--d, 0s) forwards; }
.is-in .a-open { transform-origin: 0% 50%; animation: v-open 1.4s var(--ease) var(--d, 0s) forwards; }
.is-in .a-tilt { transform-box: view-box; transform-origin: 200px 80px; animation: v-tilt 1.6s var(--ease) var(--d, 0s) forwards; }
.is-in .a-gather { animation: v-gather 1.4s var(--ease) var(--d, 0s) forwards; }
.is-in .a-sink { animation: v-sink 0.9s cubic-bezier(.5, 0, .75, 0) var(--d, 0s) forwards; }
.is-in .a-turn { transform-box: view-box; transform-origin: 120px 150px; animation: v-turn 2.4s var(--ease) var(--d, 0s) forwards; }
@keyframes v-drift { to { transform: translate(var(--fx), var(--fy)) rotate(var(--r)); opacity: 0.35; } }
@keyframes v-move { to { transform: translateX(var(--tx)); } }
@keyframes v-open { to { transform: scaleX(0.15); } }
@keyframes v-tilt { to { transform: rotate(-9deg); } }
@keyframes v-gather { 80% { opacity: 1; } to { transform: translate(var(--fx), var(--fy)); opacity: 0; } }
@keyframes v-sink { to { transform: translateY(40px); opacity: 0; } }
@keyframes v-turn { to { transform: rotate(360deg); } }

/* 4. Laços sutis --------------------------------------------------------------- */
.is-in .l-spin { transform-box: view-box; transform-origin: 200px 150px; animation: v-spin 60s linear infinite; }
.is-in .l-shine { animation: v-shine 4.5s ease-in-out 1s infinite; }
.is-in .l-wave { animation: v-wave 4s linear infinite; }
.is-in .l-blink { animation: v-fade 0.1s var(--d, 0s) forwards, v-blink 1s steps(1) var(--d, 0s) infinite; }
@keyframes v-spin { to { transform: rotate(360deg); } }
@keyframes v-shine { 0% { transform: translateX(-60px); } 60%, 100% { transform: translateX(220px); } }
@keyframes v-wave { to { transform: translateX(-50px); } }
@keyframes v-blink { 50% { opacity: 0; } }
.is-in .l-ripple { animation: v-ripple 3.2s ease-out var(--d, 0s) infinite; }
.is-in .l-mote { animation: v-mote 6s ease-in-out var(--d, 0s) infinite; }
.is-in .l-breathe { animation: v-breathe 5s ease-in-out infinite; }
.is-in .l-breathe-slow { animation: v-breathe 8s ease-in-out infinite, v-fade 2.2s var(--ease) forwards; }
.is-in .l-pulse { animation: v-pulse 3s ease-in-out var(--d, 0s) infinite; }
.is-in .l-float { animation: v-fade 2.2s var(--ease) var(--d, 0s) forwards, v-float 6s ease-in-out infinite; }
.is-in .l-heavy { transform-origin: 50% 100%; animation: v-heavy 4.5s ease-in-out infinite; }
.is-in .l-tug { animation: v-tug 1.8s ease-in-out var(--d, 0s) infinite; }
.is-in .l-sway { transform-box: view-box; transform-origin: 200px 40px; animation: v-sway 5s ease-in-out infinite; }
.is-in .l-flap { animation: v-flap 2.4s ease-in-out 1.8s infinite; }

/* 5. Passos (despir, pares) ------------------------------------------------- */
.v-tag--falling { transition: transform 1s cubic-bezier(.5, 0, .75, 0), opacity 1s var(--ease); }
.v-tag--falling.is-on { transform: translate(var(--fx), 150px) rotate(var(--r)); opacity: 0; }

@keyframes v-draw { to { stroke-dashoffset: 0; } }
@keyframes v-pop { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes v-fade { to { opacity: 1; } }
@keyframes v-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes v-drop-in { from { opacity: 0; transform: translateY(-170px); } 20% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes v-push { from { opacity: 0; transform: translate(var(--fx), var(--fy)); } to { opacity: 1; transform: none; } }
@keyframes v-ascend { from { opacity: 0; transform: translateY(110px); } to { opacity: 1; transform: none; } }
@keyframes v-unfold { from { opacity: 0; transform: scaleX(0.05); } to { opacity: 1; transform: none; } }
@keyframes v-print { 0% { opacity: 0; } 20% { opacity: 0.9; } 100% { opacity: 0.12; } }
@keyframes v-grow { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes v-garden { 0% { opacity: 0; transform: scaleY(0.2); } 18% { opacity: 1; transform: scaleY(0.7); } 40% { transform: rotate(16deg) scaleY(0.62); filter: grayscale(1); opacity: 0.6; } 62% { transform: rotate(16deg) scaleY(0.62); filter: grayscale(1); opacity: 0.6; } 100% { opacity: 1; transform: none; filter: none; } }
@keyframes v-lean { to { transform: rotate(-5deg) translateX(4px); } }
@keyframes v-break-l { to { transform: rotate(24deg); opacity: 0.55; } }
@keyframes v-break-r { to { transform: rotate(-24deg); opacity: 0.55; } }
@keyframes v-displace { to { transform: translate(120px, -92px) scale(0.45); opacity: 0.45; } }
@keyframes v-stain { to { fill: var(--v-earth); } }
@keyframes v-touch { to { fill: var(--v-accent); stroke: var(--v-accent); } }
@keyframes v-flash { 0% { } 25% { fill: var(--v-accent); stroke: var(--v-accent); } 100% { fill: var(--bg); stroke: var(--v-muted); } }
@keyframes v-crumble { to { transform: translate(30px, 190px) rotate(28deg); opacity: 0; } }
@keyframes v-travel { to { transform: translateX(300px); } }
@keyframes v-ripple { 0% { opacity: 0.7; transform: scale(0.15); } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes v-mote { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-90px); } }
@keyframes v-breathe { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.05); } }
@keyframes v-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes v-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes v-heavy { 0%, 100% { transform: none; } 50% { transform: translateY(4px) scaleY(0.985); } }
@keyframes v-tug { 0%, 100% { transform: none; } 50% { transform: translateX(6px); } }
@keyframes v-sway { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes v-flap { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(0.78); } }

/* 6. Projetor --------------------------------------------------------------- */
.modo-projetor { overflow: hidden; }
.modo-projetor .skip-link { display: none; }
.projector { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.projector.is-idle { cursor: none; }
.stage {
    position: relative; width: min(100vw, 177.78vh); height: min(100vh, 56.25vw);
    container-type: size; overflow: hidden; background: var(--bg); color: var(--ink);
}
.stage::after { /* vinheta suave para profundidade */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 50% 40%, transparent 60%, rgb(0 0 0 / 0.08));
}

.scene { position: absolute; inset: 0; padding: 7cqh 6.5cqw 9cqh; display: grid; gap: 4cqw; opacity: 0; transition: opacity 0.8s var(--ease), filter 0.8s var(--ease); }
.scene.is-active { opacity: 1; }
.scene.is-leaving { opacity: 0; filter: blur(8px); }
.scene__text { display: grid; align-content: center; gap: 2.6cqh; min-width: 0; }
.scene__visual { position: relative; min-width: 0; min-height: 0; align-self: stretch; }
.scene__visual > .vis { position: absolute; inset: 0; }
.scene__kicker { font-family: var(--f-sans); font-size: 1.35cqw; font-weight: 600; color: var(--accent); letter-spacing: 0.02em; }
.scene__title { font-family: var(--f-display); font-weight: 400; font-size: 4.3cqw; line-height: 1.08; color: var(--ink); text-wrap: balance; }
.scene__line { font-size: 2.05cqw; line-height: 1.4; color: var(--ink-2); max-width: 34ch; }
.scene__line--strong { font-family: var(--f-display); font-size: 3cqw; color: var(--accent); }

.t-in { opacity: 0; transform: translateY(2.5cqh); }
.is-active .t-in { animation: t-in 1s var(--ease-out) forwards; animation-delay: calc(250ms + var(--i, 0) * 140ms); }
@keyframes t-in { to { opacity: 1; transform: none; } }

.scene--lado { grid-template-columns: 1fr 1.05fr; align-items: center; }
.scene--centro { grid-template-rows: minmax(0, 1fr) auto; justify-items: center; text-align: center; }
.scene--centro .scene__visual { width: 70%; height: 100%; }
.scene--centro .scene__text { justify-items: center; }
.scene--centro .scene__title { font-size: 4.6cqw; max-width: 24ch; }
.scene--centro .scene__line { max-width: 44ch; }

.scene--capa { grid-template-columns: 1.15fr 1fr; align-items: center; }
.scene--capa .scene__title { font-size: 7.4cqw; line-height: 0.98; }
.capa-destaque { display: block; color: var(--accent); }
.capa-x { display: block; font-style: italic; color: var(--v-accent); font-size: 0.55em; line-height: 1.2; }
.scene--capa .scene__visual { grid-row: 1; grid-column: 2; height: 66cqh; align-self: start; margin-top: 2cqh; }
.scene__qr { position: absolute; right: 6.5cqw; bottom: 7cqh; display: grid; grid-template-columns: auto auto; gap: 1.4cqw; align-items: center; }
.scene__qr .qr { width: 15cqh; height: 15cqh; border-radius: 1cqh; }
.scene__qr p { font-size: 1.35cqw; line-height: 1.35; color: var(--ink-2); max-width: 30ch; }
.scene__qr strong { display: block; color: var(--ink); font-size: 1.5cqw; }

.scene--fardo { grid-template-columns: 1.1fr 0.9fr; grid-template-rows: minmax(0, 1fr) auto; align-items: center; }
.scene__word { font-family: var(--f-display); font-size: 7.8cqw; line-height: 0.95; color: var(--accent); }
.scene--fardo .scene__title { font-size: 3.2cqw; line-height: 1.15; }
.scene__question { font-family: var(--f-display); font-style: italic; font-size: 2.3cqw; line-height: 1.3; color: var(--ink-2); padding-left: 1.4cqw; border-left: 0.25cqw solid var(--accent); }
.burden-bar { grid-column: 1 / -1; display: grid; grid-template-columns: auto repeat(8, 1fr); gap: 0.8cqw; align-items: center; }
.burden-bar__label { font-size: 1.15cqw; color: var(--ink-2); margin-right: 1cqw; white-space: nowrap; }
.burden-slot { height: 4.6cqh; border-radius: 0.6cqh; border: 1px dashed var(--v-muted); display: grid; place-items: center; font-size: 1.1cqw; color: transparent; white-space: nowrap; overflow: hidden; }
.burden-slot.is-filled { background: var(--v-earth); border-color: transparent; color: var(--v-tag); }
.burden-slot.is-new { animation: slot-in 0.9s var(--ease-out) 0.6s both; }
@keyframes slot-in { from { transform: translateY(-3cqh); opacity: 0; } to { transform: none; opacity: 1; } }

.scene--pares { grid-template-rows: auto 1fr; align-content: center; }
.scene--pares .scene__title { font-size: 3.6cqw; max-width: 30ch; }
.pairs { display: grid; gap: 3cqh; align-content: center; list-style: none; padding: 0; margin: 0; }
.pair { display: grid; grid-template-columns: minmax(0, max-content) auto 1fr; gap: 2cqw; align-items: baseline; font-size: 2.3cqw; opacity: 0.18; transition: opacity 0.8s var(--ease); }
.pair.is-on { opacity: 1; }
.pair__from { color: var(--ink-2); font-size: 0.85em; }
.pair__from s { text-decoration-thickness: 0.15cqw; text-decoration-color: transparent; transition: text-decoration-color 0.8s var(--ease) 0.5s; }
.pair.is-on .pair__from s { text-decoration-color: var(--accent); }
.pair__arrow { color: var(--accent); }
.pair__to { font-family: var(--f-display); font-size: 3.2cqw; color: var(--ink); line-height: 1.15; }

.step-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2cqh; }
.step-list li { font-family: var(--f-display); font-size: 2.6cqw; line-height: 1.15; color: var(--ink); opacity: 0; transform: translateX(-2cqw); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease-out), color 0.6s; }
.step-list li.is-on { opacity: 1; transform: none; }
.step-list--auto li { opacity: 1; transform: none; font-size: 2.2cqw; }
.step-list--auto li.t-in { opacity: 0; }

.scene--encerramento { grid-template-columns: 1fr auto; align-items: center; }
.scene__logo { width: 9cqw; }
.scene--encerramento .scene__title { font-size: 4.6cqw; }
.scene--encerramento .scene__qr { position: static; grid-template-columns: 1fr; justify-items: center; text-align: center; }
.scene--encerramento .scene__qr .qr { width: 26cqh; height: 26cqh; }

/* HUD: aparece ao mover o mouse, some sozinho */
.hud { position: fixed; inset: 0; pointer-events: none; }
.hud__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgb(127 127 127 / 0.15); }
.hud__progress span { display: block; height: 100%; width: 0; background: var(--v-accent); transition: width 0.8s var(--ease); }
.hud__tools {
    position: absolute; right: 1rem; top: 1rem; display: flex; gap: 0.5rem; align-items: center;
    opacity: 0; transition: opacity 0.4s var(--ease); pointer-events: auto;
}
.projector:not(.is-idle) .hud__tools, .hud__tools:focus-within { opacity: 1; }
.hud__btn {
    display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.4rem 0.9rem;
    border-radius: 999px; border: 1px solid rgb(127 127 127 / 0.35); background: color-mix(in srgb, var(--bg) 80%, transparent);
    color: var(--ink); font-size: 0.875rem; font-weight: 600; backdrop-filter: blur(8px);
}
.hud__btn:hover { background: var(--ink); color: var(--bg); }
.hud__count { font-size: 0.875rem; color: var(--ink-2); padding: 0 0.5rem; font-variant-numeric: tabular-nums; }
.hud__qr { position: absolute; left: 1rem; bottom: 1rem; padding: 0.6rem; border-radius: 12px; background: #fff; display: grid; gap: 0.3rem; justify-items: center; font-size: 0.75rem; color: #26151E; font-weight: 600; pointer-events: auto; }
.hud__qr .qr { width: 110px; height: 110px; }
.hud__notice {
    position: absolute; left: 50%; top: 1rem; transform: translateX(-50%); padding: 0.5rem 1rem; border-radius: 999px;
    background: var(--ink); color: var(--bg); font-size: 0.875rem; font-weight: 600; pointer-events: auto;
}
.blackout { position: fixed; inset: 0; background: #000; z-index: 50; }

.sheet { border: 0; border-radius: 20px; padding: 1.75rem; width: min(92vw, 28rem); background: #F8F2F0; color: #26151E; box-shadow: var(--sh-3); }
.sheet::backdrop { background: rgb(0 0 0 / 0.6); }
.sheet h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1rem; font-size: 0.9375rem; }
.sheet dt { font-weight: 700; }
.sheet dd { margin: 0; color: #6B5A61; }
.sheet__actions { display: flex; gap: 0.5rem; justify-content: flex-end; margin-top: 1.25rem; flex-wrap: wrap; }
kbd { font-family: var(--f-sans); font-size: 0.8125rem; padding: 0.1rem 0.45rem; border-radius: 6px; border: 1px solid #E7D8D4; background: #fff; }

/* 7. Ao vivo (celular e notebook) ---------------------------------------- */
.modo-ao-vivo { --leitura: 1; background: var(--bg); color: var(--ink); }
.live { min-height: 100svh; display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bg); color: var(--ink); }
.live__bar {
    position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: auto 1fr auto; gap: 0.75rem; align-items: center;
    padding: 0.6rem max(1rem, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.live__brand img { width: 40px; }
.live__talk { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.1; }
.live__status { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.75rem; font-weight: 600; color: var(--ink-2); }
.live__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); }
.live__status[data-state="live"]::before { background: #3FB37F; box-shadow: 0 0 0 0 rgb(63 179 127 / 0.6); animation: live-dot 2s infinite; }
.live__status[data-state="offline"]::before { background: #D9534F; }
@keyframes live-dot { 70% { box-shadow: 0 0 0 8px rgb(63 179 127 / 0); } 100% { box-shadow: 0 0 0 0 rgb(63 179 127 / 0); } }
.live__tools { display: flex; gap: 0.35rem; }
.live__tool {
    min-width: 2.75rem; height: 2.75rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent);
    background: transparent; color: var(--ink); font-weight: 700; font-size: 0.875rem;
}
.live__tool[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.live__progress { height: 3px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.live__progress span { display: block; height: 100%; width: 0; background: var(--v-accent); transition: width 0.8s var(--ease); }

.live__main { width: min(100% - 2rem, 44rem); margin: 0 auto; padding: 1.25rem 0 7rem; }
.card { animation: card-swap 0.7s var(--ease-out) both; }
.card.from-left { animation-name: card-swap-left; }
@keyframes card-swap { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes card-swap-left { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
.card__visual { aspect-ratio: 4 / 3; border-radius: 22px; background: var(--bg-2); padding: 0.75rem; overflow: hidden; }
.card__kicker { margin-top: 1.25rem; font-size: calc(0.8125rem * var(--leitura)); font-weight: 700; color: var(--accent); }
.card__word { margin-top: 0.5rem; font-family: var(--f-display); font-size: calc(2.8rem * var(--leitura)); line-height: 1; color: var(--accent); }
.card__title { margin-top: 0.4rem; font-family: var(--f-display); font-weight: 400; font-size: calc(clamp(1.75rem, 1.3rem + 2vw, 2.4rem) * var(--leitura)); line-height: 1.12; text-wrap: balance; }
.card__question { margin-top: 1rem; padding-left: 0.9rem; border-left: 3px solid var(--accent); font-family: var(--f-display); font-style: italic; font-size: calc(1.3rem * var(--leitura)); line-height: 1.35; color: var(--ink-2); }
.card__text { margin-top: 1.25rem; display: grid; gap: 0.9rem; }
.card__text p { font-size: calc(1.0625rem * var(--leitura)); line-height: 1.75; color: var(--ink); }
.card .step-list li, .card .pair { font-size: calc(1.25rem * var(--leitura)); }
.card .step-list { margin-top: 1rem; }
.card .pairs { margin-top: 1.25rem; gap: 1rem; }
.card .pair { grid-template-columns: 1fr; gap: 0.15rem; }
.card .pair__to { font-size: calc(1.5rem * var(--leitura)); }
.card .pair__arrow { display: none; }
.card .burden-bar { margin-top: 1rem; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.card .burden-bar__label { grid-column: 1 / -1; font-size: 0.8125rem; }
.card .burden-slot { height: 2rem; font-size: 0.75rem; border-radius: 6px; }

.offers { margin-top: 1.5rem; display: grid; gap: 1rem; }
.offer { padding: 1.1rem; border-radius: 18px; background: var(--bg-2); display: grid; gap: 0.4rem; }
.offer__title { font-weight: 700; font-size: 1.0625rem; }
.offer__price { font-family: var(--f-display); font-size: 1.75rem; color: var(--accent); line-height: 1.1; }
.offer .btn { margin-top: 0.4rem; }
.reflect { margin-top: 1.5rem; padding: 1.1rem; border-radius: 18px; background: var(--bg-2); display: grid; gap: 0.6rem; }
.reflect label { font-weight: 700; font-size: 0.9375rem; }
.reflect p { font-size: 0.8125rem; color: var(--ink-2); }
.reflect textarea { width: 100%; min-height: 8rem; padding: 0.8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); background: var(--bg); color: var(--ink); font-size: 1rem; resize: vertical; }
.reflect textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }
.reflect button { justify-self: start; background: none; border: 0; color: var(--accent); font-weight: 600; text-decoration: underline; padding: 0.25rem 0; }

.live__nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center;
    padding: 0.6rem max(1rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px);
    border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
}
.live__navbtn {
    min-height: 3rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
    background: transparent; color: var(--ink); font-weight: 600; font-size: 0.9375rem; padding: 0 1rem;
}
.live__navbtn:disabled { opacity: 0.35; }
.live__navbtn[data-next] { justify-self: end; }
.live__navbtn[data-prev] { justify-self: start; }
.live__center { display: grid; justify-items: center; gap: 0.2rem; }
.live__counter { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.live__golive { border: 0; border-radius: 999px; padding: 0.45rem 0.9rem; background: var(--accent); color: var(--bg); font-weight: 700; font-size: 0.8125rem; }
.live__golive[hidden] { display: none; }
.live__waiting { text-align: center; padding: 3rem 0; color: var(--ink-2); }

@media (min-width: 900px) {
    .live__main { width: min(100% - 4rem, 72rem); display: block; }
    .card { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; align-items: start; }
    .card__visual { grid-row: 1 / span 20; position: sticky; top: 6rem; }
    .card__kicker { margin-top: 0; }
}

/* 8. Controle da apresentadora --------------------------------------------- */
.modo-controle { background: #1C1418; color: #F3ECEE; }
.control { min-height: 100svh; }
.control__login { min-height: 100svh; display: grid; place-content: center; gap: 1rem; padding: 2rem; max-width: 28rem; margin: 0 auto; }
.control__login h1 { font-size: 2.4rem; }
.control__login p { color: #C9B9BF; }
.control__login form { display: grid; gap: 0.75rem; }
.control__login input { min-height: 3.25rem; padding: 0 1rem; border-radius: 12px; border: 1px solid #5A4650; background: #2A1F25; color: #fff; font-size: 1rem; }
.control__login input:focus-visible { outline: 2px solid #D67685; outline-offset: 2px; box-shadow: none; }
.control__error { color: #F4A3A8; font-weight: 600; font-size: 0.9375rem; }
.control__link { background: none; border: 0; color: #E9B3BF; text-decoration: underline; font-weight: 600; justify-self: start; padding: 0.25rem 0; }

.control__panel { display: grid; grid-template-rows: auto 1fr auto; min-height: 100svh; }
.control__bar { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; padding: 0.75rem 1.25rem; border-bottom: 1px solid #3A2C33; }
.control__title { font-family: var(--f-display); font-size: 1.4rem; }
.control__meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; font-size: 0.875rem; color: #C9B9BF; }
.control__timer { font-variant-numeric: tabular-nums; font-weight: 700; color: #fff; font-size: 1.1rem; }
.control__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.control__chip { min-height: 2.5rem; padding: 0 0.9rem; border-radius: 999px; border: 1px solid #5A4650; background: transparent; color: #F3ECEE; font-weight: 600; font-size: 0.875rem; text-decoration: none; display: inline-flex; align-items: center; }
.control__chip:hover { background: #F3ECEE; color: #1C1418; }
.control__sync { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
.control__sync::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8B7A82; }
.control__sync[data-state="live"]::before { background: #3FB37F; }
.control__sync[data-state="offline"]::before, .control__sync[data-state="chave"]::before { background: #D9534F; }
.control__sync[data-state="local"]::before { background: #E8B04B; }

.control__grid { display: grid; gap: 1.25rem; padding: 1.25rem; align-content: start; }
.stage--preview { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; box-shadow: 0 20px 50px -20px #000; }
.control__step { margin-top: 0.6rem; display: flex; gap: 0.35rem; align-items: center; font-size: 0.875rem; color: #C9B9BF; flex-wrap: wrap; }
.control__step i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #8B7A82; }
.control__step i.is-on { background: #D67685; border-color: #D67685; }
.control__side { display: grid; gap: 1rem; align-content: start; }
.control__box { padding: 1rem 1.1rem; border-radius: 14px; background: #2A1F25; }
.control__box h2 { font-family: var(--f-sans); font-size: 0.75rem; font-weight: 700; color: #E9B3BF; letter-spacing: 0.03em; margin-bottom: 0.4rem; }
.control__box p { font-size: 1rem; line-height: 1.6; }
.control__box--cue { background: #4A2A1C; border: 1px solid #8A5E43; }
.control__box--cue p { font-size: 1.1rem; font-weight: 600; }
.control__notes p + p { margin-top: 0.6rem; }
.control__notes { max-height: 40vh; overflow: auto; }
.control__jump { display: grid; gap: 0.35rem; font-size: 0.875rem; color: #C9B9BF; }
.control__jump select { min-height: 2.75rem; border-radius: 10px; background: #2A1F25; color: #fff; border: 1px solid #5A4650; padding: 0 0.6rem; }
.control__buttons { position: sticky; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 0.75rem; padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom)); background: #1C1418; border-top: 1px solid #3A2C33; }
.control__btn { min-height: 4rem; border-radius: 16px; border: 1px solid #5A4650; background: #2A1F25; color: #fff; font-size: 1.15rem; font-weight: 700; }
.control__btn--next { background: #D67685; border-color: #D67685; color: #1C1418; }
.control__btn:active { transform: scale(0.98); }
.control__btn:disabled { opacity: 0.4; }
@media (min-width: 1000px) {
    .control__grid { grid-template-columns: 1.5fr 1fr; }
}

/* 9. Lista de palestras ---------------------------------------------------- */
.talk-card { display: grid; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border-radius: var(--r-lg); background: var(--ameixa); color: var(--linho); overflow: hidden; position: relative; }
.talk-card__title { font-size: var(--t-2xl); line-height: 1; }
.talk-card__x { display: block; font-style: italic; color: var(--rosa); font-size: 0.6em; }
.talk-card__phrase { margin-top: 1rem; font-family: var(--f-display); font-style: italic; font-size: var(--t-md); color: #E9C9D0; max-width: 32ch; }
.talk-card__desc { margin-top: 1rem; color: rgb(248 242 240 / 0.8); max-width: 40rem; }
.talk-card__meta { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.talk-card__meta .tag { background: rgb(248 242 240 / 0.1); color: var(--linho); }
.talk-card__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.talk-card__visual { min-height: 14rem; }
.talk-card details { margin-top: 0.5rem; font-size: var(--t-sm); color: rgb(248 242 240 / 0.8); }
.talk-card summary { cursor: pointer; font-weight: 600; color: var(--linho); min-height: 2.75rem; display: flex; align-items: center; }
.talk-card details ul { margin-top: 0.5rem; display: grid; gap: 0.5rem; padding-left: 1.2rem; }
.talk-card details a { color: #F2B6C1; font-weight: 600; }
@media (min-width: 900px) { .talk-card { grid-template-columns: 1.2fr 1fr; align-items: center; } }

/* 10. Movimento reduzido ---------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .vis *, .t-in, .card, .burden-slot { animation-delay: 0s !important; }
    .vis [class^="l-"], .vis [class*=" l-"] { animation: none !important; }
    .vis .l-ripple, .vis .l-mote { display: none; }
    .vis .l-float, .vis .l-breathe-slow { opacity: 1; }
    .is-in .a-garden-mine { animation: v-grow 1ms forwards !important; }
}

/* No celular, só aparecem as frases já ditas (sem espaços vazios). */
.card .step-list li:not(.is-on) { display: none; }
.vis .qr path { fill: #26151E; stroke: none; }

/* 11. Movimento intenso (ativado por "movimento": "intenso" no JSON da palestra) */
.v-label--lg { font-size: 14px; }
.v-glow-dot { fill: var(--v-glow); opacity: 0.35; }
.v-orbit-dash { fill: none; stroke: var(--v-accent); stroke-width: 1.4; stroke-dasharray: 3 7; }
.v-flow { stroke: var(--v-tag); stroke-width: 2.4; stroke-dasharray: 2 10; stroke-linecap: round; animation: v-flow 1.4s linear infinite; }
.v-bubble { fill: none; stroke: var(--v-tag); stroke-width: 1.2; opacity: 0; }
.v-segment-glow { fill: none; stroke: var(--v-tag); stroke-width: 14; stroke-linecap: round; opacity: 0.5; }
.v-big-number--sm { font-size: 36px; }
@keyframes v-flow { to { stroke-dashoffset: -24; } }

.is-in .l-spin-rev { transform-box: view-box; transform-origin: 200px 150px; animation: v-spin 40s linear infinite reverse; }
.is-in .l-spin-slow { transform-box: view-box; transform-origin: 200px 150px; animation: v-sway-big 9s ease-in-out infinite; }
.is-in .l-rotate { animation: v-spin 14s linear infinite; }
.is-in .l-rotate-rev { animation: v-spin 22s linear infinite reverse; }
.is-in .l-rotate-slow { transform-box: view-box; transform-origin: 112px 150px; animation: v-spin 40s linear infinite; }
.is-in .l-twinkle { animation: v-twinkle 2.4s ease-in-out var(--d, 0s) infinite; }
.is-in .l-flicker { animation: v-flicker 5s ease-in-out 2.6s infinite; }
.is-in .l-bob { animation: v-bob 3.6s ease-in-out infinite; }
.is-in .l-bubble { animation: v-bubble 5s ease-in infinite; }
.is-in .l-scan { animation: v-scan 3s ease-in-out 3.2s infinite; }
.is-in .l-petal { animation: v-petal 4s ease-in-out infinite; }
.is-in .l-beat { animation: v-beat 1.6s ease-in-out 2.6s infinite; }
.is-in .l-steps { opacity: 0; animation: v-steps 4.2s ease-in-out infinite; }
.is-in .l-swing { transform-box: view-box; transform-origin: 200px 76px; animation: v-swing 4s ease-in-out 3.4s infinite; }
.is-in .l-clock { transform-box: view-box; transform-origin: 116px 150px; animation: v-spin 8s linear infinite; }
.is-in .l-sway-moon { animation: v-sway 6s ease-in-out infinite; }
.is-in .l-breathe-soft { animation: v-breathe-soft 4s ease-in-out infinite; }
.is-in .l-gather { animation: v-gather-loop 4s ease-in infinite; }
.is-in .l-glucose-spiky { animation: v-glucose-a 6s ease-in-out 1.6s infinite both; }
.is-in .l-glucose-smooth { opacity: 0; animation: v-glucose-b 6s ease-in-out 1.6s infinite both; }
@keyframes v-sway-big { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes v-twinkle { 0%, 100% { transform: scale(0.75); opacity: 0.6; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes v-flicker { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: 0.35; } 55% { opacity: 0.9; } 60% { opacity: 0.4; } 70% { opacity: 1; } }
@keyframes v-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-2deg); } }
@keyframes v-bubble { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.8; } 100% { transform: translateY(-150px); opacity: 0; } }
@keyframes v-scan { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-10px, -8px); } 66% { transform: translate(8px, 6px); } }
@keyframes v-petal { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes v-beat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.14); } 30% { transform: scale(1); } 45% { transform: scale(1.1); } }
@keyframes v-steps { 0% { opacity: 0; transform: scale(0.6); } 20%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes v-swing { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(3deg); } }
@keyframes v-breathe-soft { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes v-gather-loop { 0% { transform: none; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translate(var(--fx), var(--fy)) scale(0.3); opacity: 0; } }
@keyframes v-glucose-a { 0%, 35% { opacity: 1; } 50%, 85% { opacity: 0.12; } 100% { opacity: 1; } }
@keyframes v-glucose-b { 0%, 35% { opacity: 0; transform: translateY(14px); } 50%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.ambient { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.stage > .scene { z-index: 1; }
.orb { position: absolute; border-radius: 50%; background: radial-gradient(circle at 40% 40%, color-mix(in srgb, var(--v-glow) 30%, transparent), transparent 70%); animation: orb-drift 26s ease-in-out infinite alternate; }
.orb--1 { width: 52cqw; height: 52cqw; right: -16cqw; top: -22cqw; }
.orb--2 { width: 34cqw; height: 34cqw; left: -12cqw; bottom: -16cqw; animation-duration: 34s; }
.orb--3 { width: 20cqw; height: 20cqw; right: 26cqw; bottom: -10cqw; animation-duration: 22s; opacity: 0.7; }
.dust span { position: absolute; width: 0.32cqw; height: 0.32cqw; border-radius: 50%; background: var(--v-accent); opacity: 0; animation: dust-rise 12s linear infinite; }
@keyframes orb-drift { to { transform: translate(-5cqw, 4cqh) scale(1.1); } }
@keyframes dust-rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 0.6; } 100% { transform: translateY(-70cqh) translateX(3cqw); opacity: 0; } }

.sweep { position: absolute; inset: 0; z-index: 6; background: var(--accent); pointer-events: none; animation: sweep 1.15s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes sweep { 0% { clip-path: inset(0 100% 0 0); } 45% { clip-path: inset(0 0 0 0); } 55% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }

[data-movimento="intenso"] .scene--lado { grid-template-columns: 0.8fr 1.3fr; gap: 3cqw; }
[data-movimento="intenso"] .scene--lado .scene__title { font-size: 4cqw; }
[data-movimento="intenso"] .scene--centro .scene__visual { width: 82%; }
[data-movimento="intenso"] .scene .scene__visual { opacity: 0; transform: scale(0.86) translateY(3cqh); filter: blur(10px); }
[data-movimento="intenso"] .scene.is-active .scene__visual { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1.3s var(--ease-out), filter 1s var(--ease); transition-delay: 0.12s; }
[data-movimento="intenso"] .scene.is-leaving { transform: translateX(-4cqw) scale(0.97); transition: opacity 0.7s var(--ease), filter 0.7s var(--ease), transform 0.8s var(--ease); }
.w { display: inline-block; opacity: 0; transform: translateY(0.45em); filter: blur(8px); }
.is-active .w { animation: w-in 0.8s var(--ease-out) forwards; animation-delay: calc(180ms + var(--w, 0) * 75ms); }
@keyframes w-in { to { opacity: 1; transform: none; filter: none; } }
mark.hl { color: inherit; padding: 0 0.04em; background: linear-gradient(color-mix(in srgb, var(--accent) 45%, transparent), color-mix(in srgb, var(--accent) 45%, transparent)) 0 90% / 0% 0.32em no-repeat; }
.is-active mark.hl { animation: hl-in 1s var(--ease) forwards; animation-delay: var(--hl, 1s); }
@keyframes hl-in { to { background-size: 100% 0.32em; } }

@media (prefers-reduced-motion: reduce) {
    .ambient, .sweep { display: none; }
    .w { opacity: 1; transform: none; filter: none; }
    mark.hl { background-size: 100% 0.32em; }
    [data-movimento="intenso"] .scene .scene__visual { opacity: 1; transform: none; filter: none; }
    .v-flow { animation: none; }
}
