@font-face { font-family: "Sora"; src: url("assets/sora-latin.woff2") format("woff2"); font-style: normal; font-weight: 100 800; font-display: swap; }
/* Kavra v2 — "Observatório" + "Do ruído à clareza".
   Brand: black, cyan #08F7EA, aurora blue #1FA8FF. Green and red only on data that rises or falls,
   always with an arrow. The page is complete without JavaScript and without motion: the scroll scene
   and every animation are opt-in layers under `.js:not(.still)`. */

:root {
  --black: #000;
  --cyan: #08F7EA;
  --blue: #1FA8FF;
  --ice: #EFFFFD;
  --mist: #A9CCC9;
  --glass: rgba(6, 24, 26, .76);
  --line: rgba(8, 247, 234, .2);
  --line-soft: rgba(169, 204, 201, .16);
  --up: #3CEB78;
  --down: #FF5A76;
  --on-cyan: #001413;
  --font-display: "Sora", system-ui, sans-serif;
  --font-text: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 5vw, 4.5rem);
  --top-h: 4.25rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--black); color-scheme: dark; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--black); color: var(--ice); font: 400 1.0625rem/1.6 var(--font-text); overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; padding: .7rem 1rem; background: var(--cyan); color: var(--on-cyan); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--black); pointer-events: none; }
.sky-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform: scale(1.12); }
.sky-restless { opacity: 0; }
#aurora { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
#aurora.is-live { opacity: 1; }
/* Without WebGL the two images breathe into each other, as the product's own sky does. */
.js:not(.still) .sky-restless { animation: breathe 21s ease-in-out infinite alternate; }
.sky:has(#aurora.is-live) .sky-restless { animation: none; }
@keyframes breathe { from { opacity: 0; } to { opacity: .85; } }

main, .top, .foot { position: relative; z-index: 1; }
.shell { width: min(100% - 2 * var(--gutter), 1180px); margin-inline: auto; }

/* ---------- Header ---------- */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 1.5rem; padding: 0 var(--gutter); transition: background-color .4s ease, border-color .4s ease; border-bottom: 1px solid transparent; }
.top.is-solid { background: rgba(0, 0, 0, .78); border-bottom-color: rgba(8, 247, 234, .12); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-samurai { height: 2.6rem; width: auto; }
.brand-word { height: 1.35rem; width: auto; }
.top-nav { display: flex; gap: clamp(1rem, 2.4vw, 2rem); font-size: .9375rem; }
.top-nav a { text-decoration: none; color: var(--mist); padding: .5rem 0; transition: color .2s ease; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--ice); }
.motion { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .8rem; background: none; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--mist); font-size: .8125rem; cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.motion:hover:not(:disabled) { border-color: var(--cyan); color: var(--ice); }
.motion:disabled { cursor: default; opacity: .8; }
.motion-glyph { width: .62rem; height: .7rem; border-inline: .2rem solid currentColor; }
.motion[aria-pressed="true"] .motion-glyph { width: 0; height: 0; border: .38rem solid transparent; border-left: .62rem solid currentColor; border-right: 0; }

/* ---------- Shared type ---------- */
.eyebrow { font: 600 .75rem/1.2 var(--font-text); letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.h1-a, .h1-b { display: block; }
.h1-a { font-weight: 300; color: var(--ice); }
.h1-b { font-weight: 600; color: var(--cyan); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .h1-b { background: linear-gradient(100deg, var(--cyan) 8%, var(--blue) 96%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
}
.btn { display: inline-flex; align-items: center; gap: .7rem; min-height: 3.1rem; padding: .7rem 1.5rem; border: 0; border-radius: 999px; background: var(--cyan); color: var(--on-cyan); font: 600 1rem/1.2 var(--font-text); text-decoration: none; cursor: pointer; box-shadow: 0 0 0 0 rgba(8, 247, 234, .5), 0 0 36px -6px rgba(8, 247, 234, .65); transition: box-shadow .35s var(--ease), transform .35s var(--ease); }
.btn:hover { box-shadow: 0 0 0 6px rgba(8, 247, 234, .16), 0 0 44px -4px rgba(8, 247, 234, .8); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.link { display: inline-flex; align-items: center; gap: .4rem; min-height: 2.75rem; color: var(--ice); text-decoration: underline; text-decoration-color: rgba(8, 247, 234, .55); text-underline-offset: .35em; text-decoration-thickness: 1px; transition: text-decoration-color .2s ease, color .2s ease; }
.link:hover { color: var(--cyan); text-decoration-color: var(--cyan); }
.flag { display: inline-flex; align-items: center; gap: .5rem; font-size: .8125rem; letter-spacing: .04em; color: var(--mist); }
.flag-strong { padding: .5rem .9rem; border: 1px dashed rgba(8, 247, 234, .45); border-radius: 999px; color: var(--ice); }
.flag-strong > span { color: var(--cyan); font-size: .6rem; }
.up { color: var(--up); }
.down { color: var(--down); }
.sec-head { display: grid; gap: 1rem; max-width: 46rem; }
.sec-head h2 { font: 300 clamp(2.1rem, 5vw, 4rem)/1.02 var(--font-display); letter-spacing: -.02em; }
.sec-head h2 strong { font-weight: 600; color: var(--cyan); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--mist); max-width: 36rem; }

/* ---------- 1. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-content: center; padding: calc(var(--top-h) + 3svh) var(--gutter) 13svh; overflow: hidden; isolation: isolate; }
.hero-scrim { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, 0) 62%), linear-gradient(180deg, rgba(0, 0, 0, .3) 0%, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .94) 100%); }
.hero-copy { position: relative; z-index: 2; display: grid; gap: clamp(1rem, 2.4svh, 1.6rem); justify-items: start; max-width: min(46rem, 58%); opacity: calc(1 - var(--out, 0) * 1.1); }
.hero h1 { font: 300 clamp(4rem, 11.4vw, 11.5rem)/.86 var(--font-display); letter-spacing: -.035em; margin-left: -.04em; }
.hero-sub { font-size: clamp(1.1rem, 1.6vw, 1.4rem); line-height: 1.45; color: var(--ice); max-width: 26rem; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; margin-top: .4rem; }

.hero-figure { position: absolute; z-index: 1; right: max(5vw, calc((100vw - 1500px) / 2)); bottom: 8svh; height: min(79svh, 60vw); aspect-ratio: 539 / 1089; transform: translate3d(calc(var(--px, 0) * -12px), calc(var(--py, 0) * -7px + var(--out, 0) * 9svh), 0); opacity: calc(1 - var(--out, 0) * .85); }
.hero-pocket { position: absolute; inset: -4% -34% -8% -34%; background: radial-gradient(closest-side, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .4) 45%, rgba(0, 0, 0, 0) 100%); }
/* A shadow with the figure's own shape: it darkens the inner lines and a thin halo, so the aurora can come close. */
.figure-shade { position: absolute; inset: 0; width: 100%; height: 100%; filter: brightness(0) blur(5px) drop-shadow(0 0 10px #000) drop-shadow(0 0 26px rgba(0, 0, 0, .85)); }
.samurai { position: relative; height: 100%; width: auto; filter: drop-shadow(0 0 30px rgba(8, 247, 234, .3)); }
.samurai-sheen { position: absolute; inset: 0; -webkit-mask: url(assets/samurai-760.webp) center / 100% 100% no-repeat; mask: url(assets/samurai-760.webp) center / 100% 100% no-repeat; background: linear-gradient(112deg, rgba(239, 255, 253, 0) 42%, rgba(239, 255, 253, .75) 50%, rgba(239, 255, 253, 0) 58%) 130% 0 / 260% 100% no-repeat; opacity: 0; }
.samurai-echo { position: absolute; left: 0; top: 99%; width: 100%; height: auto; transform: scaleY(-1); opacity: .2; filter: blur(3px); -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 16%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0) 16%); }
.hero-ground { position: absolute; left: -90%; right: -90%; top: 99%; height: 1px; background: linear-gradient(90deg, rgba(8, 247, 234, 0), rgba(8, 247, 234, .75) 50%, rgba(8, 247, 234, 0)); box-shadow: 0 0 22px 1px rgba(8, 247, 234, .45); }
.hero-cue { position: absolute; z-index: 2; left: var(--gutter); bottom: 3.2svh; display: inline-flex; align-items: center; gap: .9rem; min-height: 2.75rem; font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mist); text-decoration: none; opacity: calc(1 - var(--out, 0) * 3); }
.hero-cue:hover { color: var(--ice); }
.cue-line { position: relative; width: 1px; height: 2.4rem; background: rgba(169, 204, 201, .3); overflow: hidden; }
.cue-line::after { content: ""; position: absolute; inset: 0; background: var(--cyan); transform: translateY(-100%); }

.js:not(.still) .samurai { animation: appear 1.1s var(--ease) both; }
.js:not(.still) .samurai-sheen { opacity: 1; animation: sheen 9s var(--ease) 1.4s infinite; }
.js:not(.still) .cue-line::after { animation: cue 2.6s var(--ease) infinite; }
.js:not(.still) .hero-ground { animation: ground 1.4s var(--ease) .15s both; }
@keyframes appear { from { opacity: 0; transform: translateY(16px); filter: drop-shadow(0 0 0 rgba(8, 247, 234, 0)) brightness(.4); } }
@keyframes sheen { 0% { background-position: 130% 0; } 34%, 100% { background-position: -40% 0; } }
@keyframes cue { 0% { transform: translateY(-100%); } 55%, 100% { transform: translateY(100%); } }
@keyframes ground { from { transform: scaleX(0); opacity: 0; } }

/* ---------- 2. Do ruído à clareza ---------- */
/* Static by default: the organised board, complete without JavaScript or with motion off.
   `.is-live` (set by clarity.js when motion is on) turns it into a scroll-linked scene in four beats:
   noise, separate, group, clarity. */
.clarity { position: relative; isolation: isolate; }
/* Soft hand-offs: the scene starts in the dark tone the hero ends in, and ends in the tone the demo
   starts in, so no edge shows between them. */
.clarity::before, .clarity::after { content: ""; position: absolute; left: 0; right: 0; z-index: -1; pointer-events: none; }
.clarity::before { top: 0; height: 70svh; background: linear-gradient(180deg, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .74) 24%, rgba(0, 0, 0, .34) 58%, rgba(0, 0, 0, 0) 100%); }
.clarity::after { bottom: 0; height: 50svh; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .36)); }
.clarity-pin { position: relative; overflow: clip; }
.clarity-pin::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, calc(.26 + .3 * var(--s, 1))); }
.clarity-stage { position: relative; display: grid; align-content: center; gap: clamp(.9rem, 2.4svh, 1.6rem); width: min(100% - 2 * var(--gutter), 1100px); margin-inline: auto; padding: calc(var(--top-h) + 1.5svh) 0 3svh; }
.clarity.is-live { height: 440svh; }
.clarity.is-live .clarity-pin { position: sticky; top: var(--stick, 0px); }
.clarity.is-live .clarity-stage { min-height: 100svh; }

.clarity-intro { display: grid; gap: clamp(.5rem, 1.3svh, .85rem); }
.clarity-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.5rem; }
.clarity-flag { display: none; }
.clarity-heads { display: grid; font: 300 clamp(2rem, 5.2vw, 4.2rem)/1.04 var(--font-display); letter-spacing: -.02em; text-shadow: 0 2px 30px rgba(0, 0, 0, .85); }
.clarity-heads .head-3 { font-weight: 600; color: var(--cyan); }
.clarity-subs { display: grid; max-width: 40rem; font-size: clamp(1rem, 1.35vw, 1.15rem); line-height: 1.45; color: var(--mist); text-shadow: 0 1px 18px rgba(0, 0, 0, .9); }
/* Static: the problem in one small line, then the result. */
.clarity-heads .head-1, .clarity-heads .head-2, .clarity-subs .sub-0, .clarity-subs .sub-1, .clarity-subs .sub-2 { display: none; }
.clarity-heads .head-0 { font-size: .46em; line-height: 1.5; color: var(--mist); }
/* Live: the four lines share one place and take turns. */
.clarity.is-live .clarity-flag { display: inline-flex; }
.clarity.is-live .clarity-heads > span:not(.sr-only), .clarity.is-live .clarity-subs > span { display: block; grid-area: 1 / 1; opacity: var(--w, 0); transform: translateY(calc((1 - var(--w, 0)) * .3em)); }
.clarity.is-live .clarity-heads .head-0 { font-size: 1em; line-height: inherit; color: var(--ice); }
.clarity.is-live .clarity-heads > span:not(.sr-only) { align-self: end; }

/* The four beats, as steps you can jump to. Each column starts where its beat starts on the track. */
.phases { display: none; position: relative; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .3rem; }
.clarity.is-live .phases { display: grid; }
.phases::before, .phases::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; pointer-events: none; }
.phases::before { background: rgba(169, 204, 201, .24); }
.phases::after { background: var(--cyan); box-shadow: 0 0 10px rgba(8, 247, 234, .8); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.phases li { display: flex; }
.phases button { position: relative; display: inline-flex; align-items: center; min-height: 2.75rem; padding: .85rem .5rem .2rem 0; border: 0; background: none; font: 600 .6875rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--mist); cursor: pointer; transition: color .3s ease; }
.phases button::before { content: ""; position: absolute; left: -.3rem; top: -.3rem; width: .6rem; height: .6rem; border: 1px solid rgba(169, 204, 201, .6); border-radius: 50%; background: #000; transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease; }
.phases button:hover { color: var(--ice); }
.phases button.is-done { color: var(--cyan); }
.phases button.is-done::before { border-color: var(--cyan); background: var(--cyan); }
.phases button[aria-current="step"] { color: var(--ice); }
.phases button[aria-current="step"]::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 0 4px rgba(8, 247, 234, .18), 0 0 12px rgba(8, 247, 234, .9); }

/* The organised board. */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.6svh, 1.8rem) clamp(1rem, 3vw, 2.6rem); }
.lane, .tray { position: relative; display: grid; align-content: start; gap: .7rem; padding-top: .9rem; }
.lane::before, .tray::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(8, 247, 234, .4); transform-origin: left center; transform: scaleX(var(--draw, 1)); }
.tray::before { background: rgba(169, 204, 201, .22); }
.lane h3, .tray h3 { font: 600 .75rem/1.2 var(--font-text); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); opacity: var(--draw, 1); transform: translateY(calc((1 - var(--draw, 1)) * 8px)); }
.lane-note { font-size: .875rem; line-height: 1.4; color: var(--mist); opacity: var(--note, 1); }
.lane ul { display: grid; gap: .6rem; }
.tray { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem 1.6rem; }
.tray h3 { color: var(--mist); opacity: var(--tray, 1); transform: none; }
.tray .lane-note { opacity: var(--tray, 1); }
.tray ul { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.clarity-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1.5rem; opacity: var(--foot, 1); }

/* A measure: a neutral card in the mess, lit in cyan when the line finds it. */
.frag { --c: var(--ice); position: relative; display: grid; gap: .1rem; padding: .7rem 1rem; border: 1px solid rgba(8, 247, 234, .2); border-radius: 14px; background: var(--glass); }
.frag > span { font-size: .8125rem; color: var(--mist); }
.frag strong { font: 600 clamp(1.35rem, 2.3vw, 1.9rem)/1.15 var(--font-display); letter-spacing: -.01em; color: var(--c); }
.frag strong.up { --c: var(--up); }
.frag strong.down { --c: var(--down); }
.frag small { font: 400 .8125rem/1 var(--font-text); color: var(--mist); letter-spacing: 0; }
.frag:not(.opinion)::before { content: ""; position: absolute; inset: -1px; border: 1px solid var(--cyan); border-radius: inherit; opacity: var(--ring, 0); transform: scale(var(--rs, 1)); pointer-events: none; }
/* An opinion: a speech bubble in the mess, a struck-through line "de fora" at the end. */
.frag.opinion { isolation: isolate; display: block; padding: .2rem 0; border: 0; border-radius: 0; background: none; font: italic 400 1.05rem/1.4 var(--font-text); color: var(--mist); }
.frag.opinion::before { content: ""; position: absolute; inset: -.42rem -.85rem; z-index: -1; border: 1px solid rgba(239, 255, 253, .18); border-radius: 18px 18px 18px 4px; background: rgba(20, 30, 32, .84); opacity: var(--bubble, 0); }
.frag.opinion::after { content: ""; position: absolute; left: -.15rem; right: -.15rem; top: 54%; height: 1px; background: rgba(169, 204, 201, .8); transform-origin: left center; transform: scaleX(var(--strike, 1)); pointer-events: none; }
.chip { position: absolute; top: -.62rem; right: .7rem; padding: .2rem .5rem; border: 1px solid currentColor; border-radius: 999px; background: #000; font: 700 .5625rem/1.1 var(--font-text); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: var(--chip, 0); pointer-events: none; }
.chip-medida { color: var(--cyan); box-shadow: 0 0 14px rgba(8, 247, 234, .35); }
.chip-palpite { top: -1.2rem; right: auto; left: -.4rem; color: var(--mist); }
.clarity.is-live .frag { will-change: transform, opacity; }
.clarity.is-live .frag:not(.opinion) { border-color: color-mix(in srgb, rgba(8, 247, 234, .22) calc(var(--lit, 1) * 100%), rgba(169, 204, 201, .2)); background: color-mix(in srgb, rgba(6, 24, 26, .78) calc(var(--lit, 1) * 100%), rgba(5, 9, 11, .9)); box-shadow: 0 0 0 1px rgba(8, 247, 234, calc(var(--glow, 0) * .6)), 0 0 calc(var(--glow, 0) * 34px) rgba(8, 247, 234, calc(var(--glow, 0) * .4)); }
.clarity.is-live .frag strong { color: color-mix(in srgb, var(--c) calc(var(--lit, 1) * 100%), var(--mist)); }
.clarity.is-live .frag.opinion { color: color-mix(in srgb, var(--mist) calc(var(--strike, 1) * 100%), var(--ice)); }

/* The line of light that sorts the mess. */
.scan { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 2px; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.clarity.is-live .scan { display: block; }
.scan::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 247, 234, 0), rgba(8, 247, 234, .85) 12%, #B9FFFB 50%, rgba(8, 247, 234, .85) 88%, rgba(8, 247, 234, 0)); box-shadow: 0 0 22px 3px rgba(8, 247, 234, .65), 0 0 70px 10px rgba(31, 168, 255, .28); }
.scan::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 32svh; background: linear-gradient(0deg, rgba(8, 247, 234, .16), rgba(8, 247, 234, .04) 40%, rgba(8, 247, 234, 0)); }

/* The noise (built by clarity.js; decorative, hidden from screen readers, every word fictitious). */
.noise { display: none; position: absolute; left: 0; top: 0; width: 100%; height: 100svh; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px); mask-image: linear-gradient(180deg, transparent 0, #000 120px); }
.clarity.is-live .noise { display: block; }
.nz { position: absolute; left: 0; top: 0; opacity: 0; visibility: hidden; color: var(--ice); white-space: nowrap; transform-origin: 50% 50%; will-change: transform, opacity; }
/* Out-of-focus depths, baked into the drawing (text-shadow, soft gradients) instead of a live blur filter:
   the browser rasterises each piece once and then only moves it. */
.nz.is-far, .nz.is-near { border-color: transparent; box-shadow: none; }
.nz.is-far, .nz.is-far * { color: transparent !important; text-shadow: 0 0 2.4px rgba(239, 255, 253, .92); }
.nz.is-far { background: radial-gradient(closest-side, rgba(10, 16, 18, .55), rgba(10, 16, 18, 0)); }
.nz.is-near, .nz.is-near * { color: transparent !important; text-shadow: 0 0 6px rgba(239, 255, 253, .95); }
.nz.is-near { background: radial-gradient(closest-side, rgba(12, 18, 20, .8), rgba(12, 18, 20, 0)); }
/* A filter on a still child is drawn once into the piece, so this blur costs nothing per frame. */
.nz.is-far svg { opacity: .55; filter: blur(1.4px); }
.nz.is-near svg { opacity: .6; filter: blur(3.5px); }
.nz.is-far b::before, .nz.is-near b::before { box-shadow: none; opacity: .5; }
.nz::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 1px rgba(239, 255, 253, .75), 0 0 26px 2px rgba(239, 255, 253, .32); opacity: var(--pg, 0); pointer-events: none; }
.nz-news { width: 16.5rem; padding: .75rem .9rem .85rem; white-space: normal; border: 1px solid rgba(169, 204, 201, .2); border-radius: 10px; background: rgba(5, 9, 11, .88); box-shadow: 0 14px 34px rgba(0, 0, 0, .5); }
.nz-news b { display: flex; align-items: center; gap: .45rem; margin-bottom: .45rem; font: 700 .625rem/1 var(--font-text); letter-spacing: .18em; text-transform: uppercase; }
.nz-news b::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px rgba(239, 255, 253, .9); }
.nz-news span { display: block; font: 600 1.02rem/1.28 var(--font-display); letter-spacing: -.01em; }
.nz-op { padding: .55rem .95rem; border: 1px solid rgba(239, 255, 253, .18); border-radius: 18px 18px 18px 4px; background: rgba(20, 30, 32, .84); font: italic 400 1.02rem/1.3 var(--font-text); }
.nz-op::before { content: ""; position: absolute; left: .75rem; right: .75rem; top: 52%; height: 1.5px; background: rgba(239, 255, 253, .85); transform-origin: left center; transform: scaleX(var(--k, 0)); }
.nz-tick { display: inline-flex; align-items: baseline; gap: .5rem; padding: .45rem .8rem; border: 1px solid rgba(169, 204, 201, .26); border-radius: 999px; background: rgba(4, 8, 10, .88); font: 600 .95rem/1 var(--font-display); }
.nz-tick b { font: 700 .7rem/1 var(--font-text); letter-spacing: .12em; color: var(--mist); }
.nz-tick i { font-style: normal; }
.nz-tick small { font: 400 .75rem/1 var(--font-text); color: var(--mist); }
.nz-alert { display: flex; align-items: center; gap: .6rem; padding: .62rem .9rem .62rem .75rem; border-left: 2px solid var(--ice); border-radius: 8px; background: rgba(14, 20, 22, .94); font: 500 .875rem/1.2 var(--font-text); box-shadow: 0 12px 30px rgba(0, 0, 0, .55); }
.nz-alert svg { flex: none; width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.nz-alert time { font: 600 .875rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.nz-term { padding: .32rem .78rem; border: 1px solid rgba(169, 204, 201, .42); border-radius: 999px; background: rgba(0, 0, 0, .45); font: 600 .7rem/1.4 var(--font-text); letter-spacing: .14em; text-transform: uppercase; color: var(--mist); }
.nz-chart { width: 9.5rem; padding: .5rem .65rem .45rem; border: 1px solid rgba(169, 204, 201, .2); border-radius: 10px; background: rgba(5, 9, 11, .88); }
.nz-chart small { display: block; font: 700 .625rem/1 var(--font-text); letter-spacing: .14em; color: var(--mist); }
.nz-chart svg { display: block; width: 100%; height: 2.6rem; margin-top: .35rem; fill: none; stroke: var(--ice); stroke-width: 1.5; stroke-linejoin: round; }
.nz-chart path { vector-effect: non-scaling-stroke; }

/* ---------- 3. Demonstração ---------- */
.demo { position: relative; padding: clamp(5rem, 14svh, 9rem) 0 clamp(4rem, 10svh, 7rem); background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0, rgba(0, 3, 5, .82) 14rem, rgba(0, 0, 0, .9) 100%); scroll-margin-top: 0; }
.demo-body { display: grid; gap: 1.4rem; margin-top: clamp(1.8rem, 5svh, 3rem); justify-items: start; }
.demo-grid { display: grid; grid-template-columns: minmax(14rem, 17.5rem) minmax(0, 1fr); gap: clamp(1.2rem, 3vw, 2.4rem); width: 100%; }
.q-list { display: grid; align-content: start; gap: .5rem; }
.q-tab { display: grid; grid-template-columns: auto 1fr; gap: .15rem .9rem; padding: 1rem 1.1rem; text-align: left; background: none; border: 1px solid transparent; border-left: 2px solid var(--line-soft); border-radius: 0 14px 14px 0; cursor: pointer; transition: background-color .3s ease, border-color .3s ease; }
.q-tab:hover { border-left-color: rgba(8, 247, 234, .6); }
.q-n { grid-row: 1 / 3; font: 600 .75rem/1.9 var(--font-text); letter-spacing: .12em; color: var(--mist); }
.q-t { font: 400 1.25rem/1.2 var(--font-display); color: var(--ice); }
.q-k { font-size: .8125rem; color: var(--mist); }
.q-tab[aria-selected="true"] { background: var(--glass); border-color: var(--line); border-left-color: var(--cyan); }
.q-tab[aria-selected="true"] .q-n { color: var(--cyan); }

.lens { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(1rem, 2.4vw, 2rem); align-items: start; padding: clamp(1rem, 2.2vw, 1.6rem); border: 1px solid var(--line); border-radius: 22px; background: var(--glass); outline: 0; }
.chart { display: grid; gap: .7rem; min-width: 0; }
.chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem 1rem; }
.asset { font: 600 1.05rem/1.2 var(--font-display); }
.asset small { font: 400 .8125rem/1.2 var(--font-text); color: var(--mist); margin-left: .35rem; }
#chart-reading { font: 600 .875rem/1.2 var(--font-text); font-variant-numeric: tabular-nums; color: var(--cyan); }
.chart-canvas { position: relative; min-height: 14rem; touch-action: pan-y; cursor: crosshair; }
.chart-canvas svg { width: 100%; height: auto; overflow: visible; }
.chart-fallback { font-size: .9rem; color: var(--mist); }
.chart-foot { display: grid; gap: .35rem; }
.chart-foot label { font-size: .8125rem; color: var(--mist); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.75rem; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 2px; background: rgba(169, 204, 201, .35); }
input[type="range"]::-moz-range-track { height: 2px; background: rgba(169, 204, 201, .35); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.15rem; height: 1.15rem; margin-top: calc(-.575rem + 1px); border-radius: 50%; border: 2px solid var(--cyan); background: var(--black); box-shadow: 0 0 12px rgba(8, 247, 234, .7); }
input[type="range"]::-moz-range-thumb { width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--cyan); background: var(--black); box-shadow: 0 0 12px rgba(8, 247, 234, .7); }

.c-grid { stroke: rgba(169, 204, 201, .14); stroke-width: 1; }
.c-tick { fill: var(--mist); font: 400 11px var(--font-text); }
.c-area { fill: url(#c-fade); }
.c-line { fill: none; stroke: var(--ice); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .5; }
.c-hi { fill: none; stroke: var(--cyan); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(8, 247, 234, .7)); }
.c-chord { stroke: var(--blue); stroke-width: 1.4; stroke-dasharray: 4 5; fill: none; }
.c-bar { fill: var(--blue); opacity: .85; }
.c-guide { stroke: var(--cyan); stroke-width: 1.2; stroke-dasharray: 3 4; fill: none; }
.c-dot { fill: var(--black); stroke: var(--cyan); stroke-width: 2; }
.c-label { fill: var(--ice); font: 600 12px var(--font-text); }
.c-label-soft { fill: var(--mist); font: 400 11px var(--font-text); }
.c-cursor { stroke: rgba(239, 255, 253, .5); stroke-width: 1; }
.c-cursor-dot { fill: var(--ice); }
.js:not(.still) .c-lens { animation: lensIn .6s var(--ease) both; }
.js:not(.still) .chart-canvas.draw .c-line { stroke-dasharray: 1; animation: draw 1.5s var(--ease) both; }
@keyframes lensIn { from { opacity: 0; transform: translateY(6px); } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

.reading-box { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.steps { display: flex; flex-wrap: wrap; gap: .4rem; }
.step-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: .3rem .8rem .3rem .35rem; background: none; border: 1px solid var(--line-soft); border-radius: 999px; font-size: .8125rem; color: var(--mist); cursor: pointer; transition: border-color .25s ease, color .25s ease; }
.step-btn span { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(169, 204, 201, .14); font-weight: 600; font-size: .75rem; }
.step-btn.is-open { color: var(--ice); border-color: var(--line); }
.step-btn.is-open span { background: var(--cyan); color: var(--on-cyan); }
.step-btn[aria-current="step"] { border-color: var(--cyan); }
.reading { display: grid; gap: 1rem; }
.reading h3 { font: 400 clamp(1.4rem, 2.2vw, 1.8rem)/1.15 var(--font-display); }
.step { display: grid; gap: .45rem; padding-top: .9rem; border-top: 1px solid var(--line-soft); }
.step-k { font: 600 .6875rem/1.2 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.step p { color: var(--ice); font-size: 1rem; line-height: 1.5; }
.step .figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; color: var(--mist); font-size: .9375rem; }
.step .figure strong { font: 600 clamp(2rem, 3.4vw, 2.7rem)/1.05 var(--font-display); letter-spacing: -.015em; color: var(--ice); }
.step .figure strong.up { color: var(--up); }
.step .figure strong.down { color: var(--down); }
.step .figure small { font: 400 1rem/1 var(--font-text); color: var(--mist); letter-spacing: 0; }
.step .fine { font-size: .8125rem; color: var(--mist); }
.js:not(.still) .step.is-new { animation: stepIn .6s var(--ease) both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.scale { position: relative; display: flex; justify-content: space-between; padding-top: 1.3rem; margin-top: .3rem; font-size: .75rem; color: var(--mist); }
.scale i { position: absolute; inset: .45rem 0 auto 0; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(31, 168, 255, .35), var(--blue), var(--cyan)); }
.scale b { position: absolute; left: 38%; top: .1rem; width: 2px; height: .95rem; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.btn-next { justify-self: start; }
/* Without JavaScript there is nothing to operate: controls that would do nothing are not shown,
   and the three readings are simply written out one after the other. */
html:not(.js) .steps, html:not(.js) .btn-next, html:not(.js) .chart-foot, html:not(.js) .chart-head output, html:not(.js) .chart-canvas, html:not(.js) .q-list { display: none; }
html:not(.js) .readings { display: grid; gap: 2rem; }
html:not(.js) .demo-grid, html:not(.js) .lens { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .top { background: rgba(0, 0, 0, .82); border-bottom-color: rgba(8, 247, 234, .12); }

/* ---------- 4. Entender o sistema ---------- */
.system { position: relative; padding: clamp(5rem, 13svh, 8rem) 0; background: radial-gradient(120% 60% at 85% 0%, rgba(31, 168, 255, .1), rgba(0, 0, 0, 0) 60%), var(--black); }
.system .shell { display: grid; gap: clamp(3rem, 8svh, 5rem); }
.verbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem clamp(1.5rem, 4vw, 3.5rem); }
.verbs li { display: grid; gap: .5rem; align-content: start; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.verb-n { font: 600 .75rem/1 var(--font-text); letter-spacing: .16em; color: var(--cyan); }
.verbs h3 { font: 400 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--font-display); }
.verbs p { color: var(--mist); }
.sub-head { display: grid; gap: .5rem; max-width: 40rem; margin-bottom: 1.2rem; }
.sub-head h3, .nots h3 { font: 400 clamp(1.5rem, 2.6vw, 2.1rem)/1.15 var(--font-display); }
.sub-head p { color: var(--mist); }
.acc { border-top: 1px solid var(--line-soft); }
.acc details { border-bottom: 1px solid var(--line-soft); }
.acc summary { display: flex; align-items: center; gap: 1rem; min-height: 4rem; padding: .8rem 0; cursor: pointer; list-style: none; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover .acc-t { color: var(--cyan); }
.ico { flex: none; width: 2rem; height: 2rem; fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.acc-t { flex: 1; display: grid; gap: .1rem; font: 400 1.2rem/1.25 var(--font-display); transition: color .2s ease; }
.acc-t small { font: 400 .875rem/1.4 var(--font-text); color: var(--mist); }
.plus { position: relative; flex: none; width: 1rem; height: 1rem; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px; background: var(--cyan); transition: transform .35s var(--ease); }
.plus::after { transform: rotate(90deg); }
details[open] > summary .plus::after { transform: rotate(0deg); }
.acc dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem; padding: .2rem 0 1.6rem 3rem; }
.acc dt { font: 600 .6875rem/1.2 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: .35rem; }
.acc dd { color: var(--ice); font-size: .9688rem; line-height: 1.5; }
.acc details > p { padding: 0 2rem 1.5rem 0; max-width: 44rem; color: var(--ice); }
.js:not(.still) details[open] > summary ~ * { animation: stepIn .5s var(--ease) both; }
.nots { display: grid; gap: 1.1rem; padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--line-soft); border-radius: 22px; }
.nots ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.nots li { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 1rem; border: 1px solid var(--line-soft); border-radius: 999px; color: var(--mist); text-decoration: line-through; text-decoration-color: rgba(169, 204, 201, .55); }
.nots p { color: var(--ice); max-width: 38rem; }

/* ---------- 5. Encerramento ---------- */
.closing { position: relative; min-height: 100svh; display: grid; align-content: center; padding: clamp(5rem, 12svh, 8rem) var(--gutter); overflow: hidden; isolation: isolate; background: linear-gradient(180deg, var(--black) 0%, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, .25) 60%, rgba(0, 0, 0, .8) 100%); }
.closing-figure { position: absolute; z-index: -1; right: max(-2vw, calc((100vw - 1560px) / 2)); bottom: 0; height: min(88svh, 62vw); aspect-ratio: 996 / 1220; }
.closing-figure::before { content: ""; position: absolute; inset: -6% -20% 0 -24%; background: radial-gradient(closest-side, rgba(0, 0, 0, .6) 0%, rgba(0, 0, 0, .38) 50%, rgba(0, 0, 0, 0) 100%); }
.closing-figure img:not(.figure-shade) { position: relative; height: 100%; width: auto; filter: drop-shadow(0 0 34px rgba(8, 247, 234, .22)); }
.closing-copy { display: grid; gap: clamp(1rem, 2.4svh, 1.6rem); justify-items: start; max-width: min(40rem, 52%); }
.closing-word { height: clamp(1.6rem, 2.6vw, 2.4rem); width: auto; }
.closing h2 { font: 300 clamp(3.2rem, 8.4vw, 8rem)/.88 var(--font-display); letter-spacing: -.035em; margin-left: -.04em; }
.closing-copy p { font-size: clamp(1.1rem, 1.6vw, 1.35rem); color: var(--ice); }
.foot { display: grid; gap: 1.1rem; padding: 1.8rem var(--gutter) 2rem; background: var(--black); border-top: 1px solid var(--line-soft); font-size: .875rem; color: var(--mist); }
.foot-main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 2rem; }
.foot-brand img { height: 1.1rem; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.6rem; }
.foot-links a { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; color: var(--ice); text-decoration: none; }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--cyan); }
.foot-social svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.6; }
.foot-social circle:last-child { fill: currentColor; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); font-size: .8125rem; }

/* ---------- Reveal on scroll ---------- */
.js:not(.still) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js:not(.still) .reveal.in { opacity: 1; transform: none; }

/* ---------- Motion off: system preference or the page's own switch ---------- */
.still { scroll-behavior: auto; }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
.still #aurora { display: none; }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1060px) {
  .lens { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 1fr); }
  .q-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
  .q-tab { grid-template-columns: 1fr; padding: .8rem .8rem; border-left-width: 1px; border-left-color: var(--line-soft); border-top: 2px solid var(--line-soft); border-radius: 0 0 12px 12px; }
  .q-tab[aria-selected="true"] { border-left-color: var(--line); border-top-color: var(--cyan); }
  .q-n { grid-row: auto; line-height: 1.2; }
  .q-t { font-size: 1.02rem; }
  .q-t br { display: none; }
  .q-k { display: none; }
  .acc dl { grid-template-columns: minmax(0, 1fr); padding-left: 3rem; }
  .verbs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --top-h: 3.75rem; }
  .top-nav .nav-wide { display: none; }
  .motion-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .motion { width: 2.75rem; height: 2.75rem; justify-content: center; padding: 0; }
  .top { gap: .8rem; }
  .top-nav { gap: .9rem; }
  .top-nav a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .brand-samurai { height: 2.2rem; }
  .brand-word { height: 1.15rem; }
  .sky-img { object-position: 38% 50%; }

  .hero { align-content: start; padding: calc(var(--top-h) + 4svh) var(--gutter) 0; }
  .hero-scrim { background: linear-gradient(180deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .5) 40%, rgba(0, 0, 0, .1) 62%, rgba(0, 0, 0, .94) 100%); }
  .hero-copy { max-width: none; }
  .hero h1 { font-size: clamp(3.6rem, 21vw, 6rem); }
  .hero-figure { right: 7vw; bottom: 6svh; height: min(44svh, calc(100svh - 27.5rem)); min-height: 10rem; }
  .hero-cue { bottom: 2.4svh; }

  .board { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .lane, .tray { gap: .45rem; padding-top: .6rem; }
  .lane ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
  .frag { padding: .5rem .7rem; border-radius: 12px; }
  .frag > span { font-size: .75rem; }
  .frag strong { font-size: 1.3rem; }
  .frag.opinion { font-size: .9375rem; }
  .lane-note { font-size: .8125rem; }
  .tray { grid-template-columns: minmax(0, 1fr); }
  .clarity-stage { gap: .75rem; padding-bottom: 2svh; }
  .clarity-heads { font-size: clamp(1.75rem, 8.4vw, 2.6rem); }
  .clarity-subs { font-size: .9375rem; }
  .clarity-top .flag { font-size: .75rem; }
  .phases button { padding-right: .2rem; font-size: .625rem; letter-spacing: .1em; }
  .nz-news { width: 12.25rem; padding: .6rem .7rem .65rem; }
  .nz-news span { font-size: .84rem; }
  .nz-op { padding: .42rem .72rem; font-size: .84rem; }
  .nz-tick { padding: .36rem .62rem; font-size: .8rem; }
  .nz-alert { padding: .5rem .7rem .5rem .6rem; font-size: .74rem; }
  .nz-term { font-size: .6rem; }
  .nz-chart { width: 7.5rem; }
  .nz-chart svg { height: 2rem; }

  .lens { padding: .9rem; border-radius: 18px; }
  .acc dl { padding-left: 0; }
  .acc-t { font-size: 1.1rem; }

  .closing { align-content: start; padding-top: calc(var(--top-h) + 6svh); padding-bottom: 0; }
  .closing-copy { max-width: none; }
  .closing-figure { right: -14vw; height: min(50svh, 96vw); }
  .foot { padding-bottom: 2.2rem; }
}
@media (max-width: 420px) {
  .q-t { font-size: .95rem; }
  .tray ul { gap: .1rem 1rem; }
  .flag-strong { border-radius: 14px; }
}
@media (max-width: 420px) {
  .top { gap: .55rem; }
  .brand { gap: .45rem; }
  .brand-samurai { height: 2rem; }
  .brand-word { height: 1rem; }
  .top-nav { gap: .75rem; font-size: .875rem; }
  .motion { width: 2.5rem; height: 2.75rem; border-color: transparent; }
}
@media (max-width: 360px) {
  :root { --gutter: 1rem; }
  .brand-word { height: .9rem; }
  .top-nav { gap: .6rem; font-size: .8125rem; }
}
/* Short phones: the scene keeps its headings and figures; the one-line notes under each group go. */
@media (max-width: 760px) and (max-height: 720px) {
  .clarity.is-live .lane .lane-note { display: none; }
  .clarity.is-live .clarity-subs { font-size: .875rem; }
}
/* Short landscape screens: let the hero grow instead of squeezing the figure over the copy. */
@media (max-height: 560px) and (min-width: 761px) {
  .hero { min-height: 36rem; }
  .hero-figure { height: 26rem; }
}

