/* Fábrica de Vídeos Motion — AG LABS
   Mundo: painel de LED da fábrica. Pontos apagados também são desenho; a luz é laranja-sinal e branco quente. */

@font-face { font-family: "Archivo"; src: url("assets/fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/fonts/playfair-display-italic.woff2") format("woff2"); font-style: italic; font-weight: 400 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --ground: #0b0b0c;
  --ground-2: #111113;
  --ghost: #232326;
  --ink: #f3eee4;
  --ink-2: #bcb5a9;
  --ink-3: #8f897f;
  --line: rgba(243, 238, 228, .13);
  --signal: #f97316;
  --signal-hi: #ff8b3d;
  --cream: #eee6d6;
  --cream-ink: #161412;
  --cream-ink-2: #574f45;
  --sand: #c9bb9f;
  --pad: clamp(20px, 4.4vw, 72px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.42, .64, 1);
  --sans: "Archivo", "Arial Nova", system-ui, sans-serif;
  --serif: "Playfair Display", "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; scrollbar-color: #3b3936 var(--ground); caret-color: var(--signal); }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.55; font-weight: 420; font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body::after { content: ""; position: fixed; inset: 0; background: url("assets/grao.png"); opacity: .05; mix-blend-mode: overlay; pointer-events: none; z-index: 200; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--signal); color: #0b0b0c; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
em { font-style: normal; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--signal); color: #0b0b0c; padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* Tipografia de papéis */
.h2 { font-size: clamp(2.4rem, 5.2vw, 5.4rem); line-height: .95; font-weight: 880; letter-spacing: -0.032em; text-wrap: balance; }
.h2 em, .hero-title em, .offer-title em, .sc-big em { font-family: var(--serif); font-style: italic; font-weight: 480; font-size: 1em; letter-spacing: -0.02em; line-height: .8; }
.lede { max-width: 52ch; color: var(--ink-2); font-size: clamp(1.05rem, 1.25vw, 1.2rem); line-height: 1.5; text-wrap: pretty; }
.mono, .tag-k, .tag-v, .screen-cap, .work-n, .work-meta, .rail-count, .rail-hint, .player-meta, .stage-note, .l-kind, .l-state, .foot-note, .hero-status { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* Botões */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; border: 0; font-family: var(--sans); font-weight: 650; font-size: 1rem; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease-out), color .2s var(--ease-out), transform .15s var(--ease-out); }
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: #0b0b0c; }
.btn--signal:hover { background: var(--signal-hi); }
.btn--ink { background: #0b0b0c; color: var(--ink); }
.btn--ink:disabled { cursor: not-allowed; color: #d8d1c5; }
.btn--line { background: transparent; color: #0b0b0c; box-shadow: inset 0 0 0 2px #0b0b0c; }
.btn--line:hover { background: rgba(11, 11, 12, .08); }

/* Barra */
.bar { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; height: 64px; padding-inline: var(--pad); background: var(--ground); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; justify-self: start; }
.brand img { width: 28px; height: 28px; }
.brand-name { font-weight: 700; font-size: .98rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-name em { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.02em; color: var(--ink); }
.bar-nav { display: flex; gap: 28px; }
.bar-nav a { font-size: .94rem; font-weight: 520; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.bar-nav a:hover { color: var(--ink); text-decoration: underline; }
.motion-toggle { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); transition: color .2s, border-color .2s; }
.motion-toggle:hover { color: var(--ink); border-color: rgba(243, 238, 228, .35); }
.motion-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.motion-toggle .i-play, .is-paused .motion-toggle .i-pause { display: none; }
.is-paused .motion-toggle .i-play { display: block; }

/* ABERTURA */
.hero { position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 64px); padding-top: clamp(18px, 3vh, 32px); padding-bottom: clamp(28px, 5vh, 56px); overflow: hidden; }
.wall-tag { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; }
.tag-k { color: var(--ink-3); }
.tag-v { color: var(--signal); }

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(30px, 6vh, 84px) var(--pad) clamp(26px, 4.4vh, 52px); }
.hero-title { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: .28em; max-width: 15ch; font-size: clamp(2.7rem, min(6.4vw, 10.8svh), 7.25rem); line-height: .92; font-weight: 900; font-stretch: 96%; letter-spacing: -0.036em; }
.ht-line { white-space: nowrap; }
.hero-title em { font-size: 1.02em; }
.ht-dot { display: inline-block; width: .34em; height: .34em; margin-left: .26em; border-radius: 50%; background: var(--signal); vertical-align: .2em; }
.hero-deck { max-width: 46ch; margin-top: clamp(20px, 3vh, 30px); color: var(--ink-2); font-size: clamp(1.05rem, 1.35vw, 1.3rem); line-height: 1.48; text-wrap: balance; }
.hero-deck strong { color: var(--ink); font-weight: 680; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: clamp(22px, 3.4vh, 34px); }
.hero-status { font-size: .8rem; line-height: 1.6; letter-spacing: .04em; color: var(--ink-2); text-align: center; text-wrap: balance; }
.hero-status .soon { color: var(--ink); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--signal); vertical-align: .06em; }

/* Cada tela é um módulo de LED: pontos apagados desenhados (::before) e o vídeo visto através de uma máscara de pontos.
   A lente sob o cursor mostra o vídeo em resolução real; o clique abre a tela inteira. */
@property --lens { syntax: "<length>"; inherits: false; initial-value: 0px; }
.wall { position: relative; margin-top: auto; padding-inline: var(--pad); }
.wall-tag { max-width: clamp(640px, calc(158svh - 250px), 1312px); margin-inline: auto; }
.screens { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 28px); max-width: clamp(640px, calc(158svh - 250px), 1312px); margin-inline: auto; list-style: none; padding: 0; }
.screen { --pitch: 8px; --dr: 3px; position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; isolation: isolate; }
.screen::before { content: ""; position: absolute; inset: 0; border-radius: 4px; background: radial-gradient(circle, var(--ghost) 0 1.6px, transparent 2.1px) 0 0 / var(--pitch) var(--pitch); }
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; mix-blend-mode: lighten; filter: brightness(.46) saturate(.8);
  -webkit-mask-image: radial-gradient(circle, #000 0 var(--dr), transparent calc(var(--dr) + .8px)), radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0 var(--lens), transparent calc(var(--lens) + 1px));
  mask-image: radial-gradient(circle, #000 0 var(--dr), transparent calc(var(--dr) + .8px)), radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #000 0 var(--lens), transparent calc(var(--lens) + 1px));
  -webkit-mask-size: var(--pitch) var(--pitch), 100% 100%; mask-size: var(--pitch) var(--pitch), 100% 100%;
  -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
  -webkit-mask-composite: source-over; mask-composite: add;
  transition: filter .5s var(--ease-out), --lens .3s cubic-bezier(.4, 0, 1, 1); }
.screen[data-tone="light"] .screen-video { filter: invert(1) hue-rotate(180deg) brightness(.62); }
.screen:not(.is-active):hover .screen-video { filter: brightness(.75); }
.screen[data-tone="light"]:not(.is-active):hover .screen-video { filter: invert(1) hue-rotate(180deg) brightness(.85); }
.screen.is-active .screen-video, .screen[data-tone="light"].is-active .screen-video { --lens: 720px; filter: none; mix-blend-mode: normal; transition: filter .45s var(--ease-out), --lens 1s var(--ease-out); }
.screen[aria-pressed="true"] .screen-cap::after { content: " · fixa"; }
.screen.is-fire::after { content: ""; position: absolute; inset: 0; border-radius: 4px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(249, 115, 22, .55) 48%, rgba(249, 115, 22, .0) 52%, transparent) 0 -60% / 100% 50% no-repeat; animation: scan .9s var(--ease-out) forwards; }
@keyframes scan { to { background-position: 0 160%; opacity: 0; } }
.screen-cap { position: absolute; left: 0; top: calc(100% + 10px); max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; transition: color .2s; }
.screen.is-active .screen-cap { color: var(--signal); }
.screen:focus-visible { outline-offset: 6px; }
.wall-note { max-width: clamp(640px, calc(158svh - 250px), 1312px); margin: 40px auto 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .03em; color: var(--ink-3); }
.only-coarse { display: none; }
@media (hover: none) { .only-fine { display: none; } .only-coarse { display: inline; } }

/* ACERVO */
.acervo { padding-block: clamp(96px, 14vh, 160px) clamp(64px, 10vh, 120px); border-top: 1px solid var(--line); }
.acervo-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 28px 48px; }
.acervo-head .h2 { grid-column: 1 / -1; }
.rail-ctrl { display: flex; align-items: center; gap: 10px; }
.rail-count { font-size: .78rem; letter-spacing: .12em; color: var(--ink-3); margin-right: 8px; }
.rail-count span:first-child { color: var(--ink); }
.rail-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; transition: border-color .2s, background-color .2s; }
.rail-btn svg { width: 20px; height: 20px; }
.rail-btn:hover { border-color: rgba(243, 238, 228, .4); background: rgba(243, 238, 228, .04); }
.rail-btn:disabled { opacity: .35; cursor: default; }
.rail-hint { margin-left: 10px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.rail { margin-top: clamp(40px, 6vh, 64px); overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; padding-block: 8px 24px; }
.rail::-webkit-scrollbar { display: none; }
.rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.is-dragging * { user-select: none; }
.rail-track { display: flex; align-items: flex-start; gap: clamp(28px, 4.2vw, 76px); width: max-content; list-style: none; margin: 0; padding: 0 var(--pad); }
.work { flex: none; scroll-snap-align: start; scroll-margin-left: var(--pad); }
.work--land { width: clamp(280px, 33vw, 500px); }
.work--tall { width: clamp(190px, 17vw, 270px); }
.work--wide { width: clamp(290px, 31vw, 470px); }
.work--low { margin-top: clamp(48px, 9vw, 150px); }
.work--high { margin-top: 0; }
.work:not(.work--low):not(.work--high) { margin-top: clamp(16px, 3.4vw, 56px); }
.work-media { overflow: hidden; background: #141416; border-radius: 3px; }
.work-media video { width: 100%; height: auto; transition: transform .6s var(--ease-out), filter .4s; }
.work--land video { aspect-ratio: 720 / 458; }
.work--tall video { aspect-ratio: 9 / 16; }
.work--wide video { aspect-ratio: 16 / 9; }
.work:hover .work-media video { transform: scale(1.025); }
.work figcaption { display: grid; gap: 4px; margin-top: 14px; }
.work-n { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.work-meta { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

/* LINHA DE PRODUÇÃO */
.linha { padding-block: clamp(96px, 14vh, 160px); background: #0e0e10; border-top: 1px solid var(--line); }
.linha-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; margin-bottom: clamp(40px, 6vh, 64px); }
.stage-frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #080809; }
.stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.stage.is-portrait { aspect-ratio: 9 / 13; }
.st-inner { position: absolute; left: 0; top: 0; width: 1600px; height: 900px; transform-origin: 0 0; transform: scale(var(--s, .5)); color: var(--ink); }
.stage.is-portrait .st-inner { width: 900px; height: 1300px; }
.st-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(243, 238, 228, .075) 1.7px, transparent 2px); background-size: 26px 26px; background-position: 13px 13px; }
.st-label, .st-time { position: absolute; top: 40px; font-family: var(--mono); font-size: 22px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.st-label { left: 56px; }
.st-label [data-st-station] { color: var(--signal); }
.st-time { right: 56px; font-variant-numeric: tabular-nums; }
.sc { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.sc.is-on { visibility: visible; }
.sc-big { font-size: 86px; line-height: .95; font-weight: 900; letter-spacing: -0.034em; }
.sc-big em { font-size: 1em; }

.sheet { position: absolute; left: 120px; top: 200px; width: 660px; padding: 46px 52px 54px; background: var(--cream); color: var(--cream-ink); border-radius: 6px; transform: rotate(-1.6deg); box-shadow: 0 34px 70px -24px rgba(0, 0, 0, .7); }
.sheet-k { font-family: var(--mono); font-size: 18px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-ink-2); margin-bottom: 14px; }
.sheet-line { font-size: 31px; line-height: 1.34; font-weight: 480; margin-top: 16px; clip-path: inset(0 100% 0 0); }
.sheet-line b { font-weight: 820; }
.sc-roteiro .sc-big { position: absolute; left: 880px; top: 330px; width: 620px; }

.sc-prompt .sc-big { position: absolute; left: 120px; top: 150px; width: 1200px; }
.field { position: absolute; left: 120px; right: 120px; top: 420px; padding: 38px 42px 30px; background: #151517; border: 1px solid rgba(243, 238, 228, .14); border-radius: 24px; }
.field-text { min-height: 156px; font-size: 38px; line-height: 1.36; font-weight: 430; color: var(--ink); }
.caret { display: inline-block; width: 4px; height: .95em; margin-left: 4px; vertical-align: -0.12em; background: var(--signal); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.field-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; font-family: var(--mono); font-size: 19px; letter-spacing: .06em; color: var(--ink-3); }
.send { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #2b2b2e; color: var(--ink-3); transition: background-color .25s, color .25s, transform .25s var(--ease-out); }
.send svg { width: 28px; height: 28px; }
.send.is-sent { background: var(--signal); color: #0b0b0c; transform: scale(1.08); }

.code { position: absolute; left: 90px; top: 130px; width: 770px; height: 660px; padding: 34px 36px; background: #101012; border: 1px solid rgba(243, 238, 228, .12); border-radius: 18px; overflow: hidden; }
.code pre { margin: 0; font-family: var(--mono); font-size: 21px; line-height: 1.62; color: #cfc7b9; white-space: pre; }
.code::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, #101012); }
.c-k { color: var(--signal); } .c-a { color: #efe9de; } .c-s { color: #a9c7a6; } .c-p { color: #9a9286; } .c-o { color: #ffb37a; }
.render { position: absolute; left: 920px; top: 150px; width: 600px; }
.render-k { font-family: var(--mono); font-size: 20px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.render-n { margin-top: 6px; font-size: 150px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.render-of { font-family: var(--mono); font-size: 22px; font-weight: 400; letter-spacing: .04em; color: var(--ink-3); }
.render-bar { height: 10px; margin-top: 26px; border-radius: 6px; background: #232326; overflow: hidden; }
.render-bar span { display: block; height: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 44px; }
.fr { aspect-ratio: 9 / 16; border-radius: 6px; display: grid; place-items: center; font-weight: 900; font-stretch: 80%; font-size: 17px; letter-spacing: -0.02em; opacity: 0; transform: translateY(14px); }
.fr--d { background: #050505; color: #f3eee4; } .fr--l { background: #f3eee4; color: #050505; }
.fr--o { background: #050505; } .fr--o span { background: #f0622a; color: #050505; padding: 2px 4px; }

.out-copy { position: absolute; left: 120px; top: 270px; width: 700px; }
.file { display: grid; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(243, 238, 228, .16); }
.file-name { font-family: var(--mono); font-size: 30px; color: var(--ink); }
.file-meta { font-family: var(--mono); font-size: 21px; letter-spacing: .04em; color: var(--ink-3); }
.out-video { position: absolute; right: 230px; top: 76px; height: 748px; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: #000; box-shadow: 0 46px 90px -30px rgba(0, 0, 0, .9); }
.out-video video { width: 100%; height: 100%; object-fit: cover; }

/* palco em retrato (telas estreitas) */
.stage.is-portrait .sc-big { font-size: 74px; }
.stage.is-portrait .sheet { left: 70px; top: 470px; width: 760px; }
.stage.is-portrait .sc-roteiro .sc-big { left: 70px; top: 170px; width: 760px; }
.stage.is-portrait .sc-prompt .sc-big { left: 70px; top: 170px; width: 760px; }
.stage.is-portrait .field { left: 70px; right: 70px; top: 470px; }
.stage.is-portrait .field-text { min-height: 360px; font-size: 40px; }
.stage.is-portrait .code { left: 60px; top: 130px; width: 780px; height: 560px; }
.stage.is-portrait .render { left: 60px; top: 740px; width: 780px; }
.stage.is-portrait .render-n { font-size: 120px; }
.stage.is-portrait .strip { margin-top: 30px; }
.stage.is-portrait .out-copy { left: 70px; top: 150px; width: 760px; }
.stage.is-portrait .out-video { right: auto; left: 230px; top: 560px; height: 680px; }
.stage.is-portrait .file { margin-top: 26px; padding-top: 22px; }
.stage.is-portrait .st-label, .stage.is-portrait .st-time { font-size: 24px; }

.stage-bar { display: flex; align-items: center; gap: 18px; padding: 16px 18px; border-top: 1px solid var(--line); }
.st-play { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.st-play svg { width: 14px; height: 14px; fill: currentColor; }
.st-play .i-play, .st-play[aria-pressed="false"] .i-pause { display: none; }
.st-play[aria-pressed="false"] .i-play { display: block; }
.st-steps { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.st-steps button { position: relative; padding: 12px 0 4px; border: 0; border-top: 2px solid rgba(243, 238, 228, .14); background: none; text-align: left; cursor: pointer; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.st-steps button:hover, .st-steps button[aria-current="step"] { color: var(--ink); }
.st-steps .sn { color: var(--signal); margin-right: 6px; }
.st-fill { position: absolute; left: 0; top: -2px; height: 2px; width: 100%; background: var(--signal); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.stage-note { margin-top: 14px; font-size: .78rem; letter-spacing: .03em; color: var(--ink-3); }

/* VERSÕES (creme, faixas pontilhadas) */
.versoes { position: relative; overflow: hidden; padding-block: clamp(96px, 14vh, 150px) clamp(96px, 14vh, 150px); background: var(--cream); color: var(--cream-ink); }
.bands { position: absolute; z-index: 0; left: 50%; top: 0; width: 100vw; height: calc(100% + clamp(96px, 14vh, 150px) + 2px); transform: translateX(-50%); pointer-events: none; }
.band, .band-tex { fill: none; }
.band-a { stroke: var(--signal); }
.band-b { stroke: #1d1b19; }
.band-c { stroke: var(--sand); }
.band-tex { stroke: url(#pt-dots); }
.versoes-head { position: relative; z-index: 1; text-align: center; }
.h2-cond { font-size: clamp(3.3rem, 10.5vw, 9.6rem); line-height: .97; font-weight: 900; font-stretch: 62%; letter-spacing: -0.01em; text-transform: uppercase; text-wrap: balance; }
.lede--ink { margin: 26px auto 0; color: var(--cream-ink-2); }
.lede--ink i { font-family: var(--serif); font-size: 1em; color: var(--cream-ink); }
.player-meta { position: relative; z-index: 1; width: fit-content; margin: 30px auto 0; padding: 4px 10px; border-radius: 6px; background: var(--cream); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-ink-2); text-align: center; }

/* PROGRAMA */
.programa { padding-block: clamp(96px, 14vh, 160px); }
.programa-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.mods { margin-top: clamp(48px, 7vh, 72px); }
.mods > .mod { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 2fr); gap: 28px 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.mods > .mod:last-child { border-bottom: 1px solid var(--line); }
.mod-head { display: flex; flex-direction: column; gap: 18px; }
.mod-n svg { height: 52px; width: auto; }
.mod-n .on { fill: var(--signal); } .mod-n .off { fill: var(--ghost); }
.mod-title { font-size: clamp(1.6rem, 2.5vw, 2.35rem); line-height: 1.04; font-weight: 820; letter-spacing: -0.024em; }
.lessons { display: grid; gap: 12px; list-style: none; padding: 0; }
.lessons details { border: 1px solid var(--line); border-radius: 14px; background: var(--ground-2); transition: border-color .2s; }
.lessons details:hover, .lessons details[open] { border-color: rgba(243, 238, 228, .26); }
.lessons summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; }
.lessons summary::-webkit-details-marker { display: none; }
.l-kind { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.l-kind--lib { color: var(--signal); border-color: rgba(249, 115, 22, .45); }
.l-title { font-size: 1.12rem; font-weight: 620; line-height: 1.3; letter-spacing: -0.008em; }
.l-state { display: inline-flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.l-state::after { content: ""; width: 12px; height: 12px; background: linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat, linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat; transition: transform .3s var(--ease-out); }
details[open] .l-state::after { transform: rotate(45deg); }
.l-body { padding: 0 22px 24px; color: var(--ink-2); max-width: 68ch; }
.l-body ul { margin: 12px 0 0; padding-left: 1.1em; }
.l-body li { margin-top: 6px; }
.l-body li::marker { color: var(--signal); }
.l-practice { margin-top: 14px; color: var(--ink); }

/* OFERTA */
.oferta { padding-block: 0 clamp(96px, 14vh, 160px); }
.offer { position: relative; overflow: hidden; padding: clamp(36px, 6.4vw, 100px) clamp(28px, 6.4vw, 100px) clamp(28px, 4vw, 56px); border-radius: 28px; background: var(--signal); color: #0b0b0c; }
.offer-title { font-size: clamp(2.8rem, 7.2vw, 7.2rem); line-height: .92; font-weight: 900; letter-spacing: -0.036em; text-wrap: balance; }
.offer-title em { font-size: 1em; }
.offer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; max-width: 920px; margin-top: clamp(24px, 4vh, 40px); }
.offer-text { font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.48; font-weight: 520; color: #1a1006; }
.offer-text--state { color: #3a2208; }
.offer-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vh, 40px); }
.offer :focus-visible { outline-color: #0b0b0c; }
.runner { position: relative; height: 64px; margin-top: clamp(36px, 6vh, 64px); container-type: inline-size; }
.runner-line { position: absolute; left: 0; right: 0; bottom: 6px; border-top: 3px dotted #0b0b0c; }
.clap { position: absolute; left: 0; bottom: 10px; width: 44px; height: 44px; animation: walk 18s linear infinite; cursor: pointer; }
.clap svg { width: 44px; height: 44px; overflow: visible; }
.clap-top { transform-origin: 1px 6px; transform: rotate(-24deg); transform-box: view-box; }
.clap.is-clapping .clap-top { animation: clap .42s var(--ease-out); }
.leg-a { animation: step .36s steps(1) infinite; }
.leg-b { animation: step .36s steps(1) infinite reverse; }
@keyframes walk { from { transform: translateX(0); } to { transform: translateX(calc(100cqw - 44px)); } }
@keyframes step { 0% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes clap { 0% { transform: rotate(-24deg); } 40% { transform: rotate(0); } 100% { transform: rotate(-24deg); } }

/* DÚVIDAS */
.duvidas { padding-block: clamp(96px, 14vh, 150px); border-top: 1px solid var(--line); }
.duvidas-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 40px 72px; align-items: start; }
.duvidas-grid .h2 { position: sticky; top: 104px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.15rem; font-weight: 620; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; background: linear-gradient(var(--signal), var(--signal)) center / 14px 2px no-repeat, linear-gradient(var(--signal), var(--signal)) center / 2px 14px no-repeat; transition: transform .3s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 40px 24px 0; color: var(--ink-2); max-width: 64ch; }

/* RODAPÉ */
.foot { border-top: 1px solid var(--line); padding-block: 48px 64px; }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 22px; align-items: center; }
.foot-grid img { grid-row: span 2; width: 40px; height: 40px; }
.foot-grid p { color: var(--ink-2); font-size: .98rem; }
.foot-note { font-size: .78rem !important; letter-spacing: .03em; color: var(--ink-3) !important; }

/* Movimento pausado ou reduzido */
.is-paused .caret, .is-paused .clap, .is-paused .leg-a, .is-paused .leg-b { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .screen-video, .screen.is-active .screen-video, .fan-card { transition-duration: .01s !important; }
  .dic-item .fx, .dic-item .fx * , .dic-item .fx::before, .dic-item .fx::after { animation: none !important; }
  .work-media video { transition: none; }
}

/* Responsivo */
@media (max-width: 1100px) {
  .bar-nav { gap: 20px; }
  .bar-nav a:nth-child(2) { display: none; }
}
@media (max-width: 860px) {
  .bar { grid-template-columns: 1fr auto; }
  .bar-nav { display: none; }
  .acervo-head, .linha-head, .programa-head { grid-template-columns: minmax(0, 1fr); }
  .rail-ctrl { justify-self: start; }
  .mods > .mod { grid-template-columns: minmax(0, 1fr); padding: 32px 0; }
  .mod-head { flex-direction: row; align-items: center; gap: 18px; }
  .mod-n svg { height: 40px; }
  .duvidas-grid { grid-template-columns: minmax(0, 1fr); }
  .duvidas-grid .h2 { position: static; }
  .offer-cols { grid-template-columns: minmax(0, 1fr); }
  .wall-note { margin-top: 40px; }
}
@media (max-width: 720px) {
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(2.3rem, 10.2vw, 4rem); }
  .screens { grid-template-columns: minmax(0, 1fr); max-width: 380px; margin-inline: auto; }
  .screens li { display: none; }
  .screens li.is-shown { display: block; }
  .wall-tag { justify-content: center; }
  .wall-note { text-align: center; margin-top: 38px; }
  .screen-cap { left: 50%; transform: translateX(-50%); }
  .motion-toggle .mt-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .motion-toggle { width: 40px; padding: 0; justify-content: center; }
  .lessons summary { grid-template-columns: minmax(0, 1fr) auto; }
  .lessons summary .l-kind { grid-column: 1 / -1; justify-self: start; }
  .lessons summary { row-gap: 10px; }
  .lessons summary .l-title { grid-column: 1 / -1; }
  .lessons summary .l-state { grid-row: 1; grid-column: 2; }
  .stage-bar { flex-wrap: wrap; gap: 12px; }
  .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

/* VERSÕES: três vídeos sobre faixas que entram pelas bordas */
.vstage { position: relative; margin-top: clamp(44px, 7vh, 72px); }
.vrow { --vh: clamp(300px, 35vw, 500px); position: relative; z-index: 1; display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0 var(--pad); }
.vcell { flex: none; }
.vcell figure { margin: 0; text-align: center; }
.pv { display: block; height: var(--vh); width: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #0b0b0c; box-shadow: 0 30px 60px -26px rgba(32, 22, 10, .6), 0 6px 14px -8px rgba(32, 22, 10, .35); }
.vcell--mid .pv { aspect-ratio: 4 / 5; }
.vcell figcaption { display: inline-block; margin-top: 14px; padding: 4px 10px; border-radius: 6px; background: var(--cream); font-family: var(--mono); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cream-ink); }

/* DESTAQUES: carrossel em leque */
.destaques { padding-block: clamp(96px, 14vh, 160px) clamp(72px, 10vh, 120px); border-top: 1px solid var(--line); overflow: hidden; }
.destaques-head, .dic-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; gap: 24px 64px; }
.fan { --card-w: clamp(150px, 18.5vw, 270px); position: relative; margin-top: clamp(28px, 5vh, 56px); outline: none; }
.fan:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; border-radius: 16px; }
.fan-stage { position: relative; height: calc(var(--card-w) * 16 / 9 + clamp(90px, 12vw, 170px)); }
.fan-card { position: absolute; left: 50%; top: clamp(30px, 4vw, 56px); width: var(--card-w); aspect-ratio: 9 / 16; margin-left: calc(var(--card-w) / -2); border-radius: 14px; overflow: hidden; background: var(--card-bg, #111113); box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .9), 0 10px 20px -12px rgba(0, 0, 0, .6); cursor: pointer; opacity: 0; transform-origin: 50% 60%; transition: transform .62s var(--spring), opacity .45s var(--ease-out); }
.fan-card.is-snap { transition: none; }
.fan-card.is-center { cursor: default; }
.fan-card video, .fan-card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.fan-card--still img { object-fit: contain; }
.fan-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: rgba(11, 11, 12, .38); transition: opacity .4s; pointer-events: none; }
.fan-card.is-center::after, .fan-card:hover::after { opacity: 0; }
.fan-sound { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: none; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(11, 11, 12, .78); color: var(--ink); cursor: pointer; }
.fan-card.is-center .fan-sound { display: grid; }
.fan-sound svg { width: 20px; height: 20px; }
.fan-sound .i-on, .fan-sound[aria-pressed="true"] .i-off { display: none; }
.fan-sound[aria-pressed="true"] .i-on { display: block; }
.fan-sound:hover { background: var(--signal); color: #0b0b0c; }
.fan-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 48px; margin-top: 8px; }
.fan-info { max-width: 62ch; min-height: 9.5rem; }
.fan-title { font-size: clamp(1.4rem, 2vw, 1.9rem); line-height: 1.1; font-weight: 820; letter-spacing: -0.02em; }
.fan-meta { margin-top: 6px; font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.fan-desc { margin-top: 12px; color: var(--ink-2); text-wrap: pretty; }
.fan-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--signal); font-weight: 600; text-decoration: underline; }
.fan-link svg { width: 14px; height: 14px; }
.fan-link[hidden] { display: none; }
.fan-ctrl { display: flex; align-items: center; gap: 12px; }
.fan-dots { display: flex; gap: 2px; }
.fan-dots button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.fan-dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(243, 238, 228, .22); transition: background-color .25s, transform .25s; }
.fan-dots button[aria-current="true"]::before { background: var(--signal); transform: scale(1.35); }

/* DICIONÁRIO de motion */
.dicionario { padding-block: clamp(96px, 14vh, 160px); border-top: 1px solid var(--line); }
.dic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 48px; margin-top: clamp(44px, 7vh, 72px); }
.dic-group { padding-top: 22px; border-top: 1px solid var(--line); }
.dic-g { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink-2); }
.dic-group dl { display: grid; gap: 20px; margin: 20px 0 0; }
.dic-item { display: grid; gap: 6px; border-radius: 8px; outline: none; cursor: default; }
.dic-item:focus-visible { outline: 2px solid var(--signal); outline-offset: 6px; }
.dic-item dt { font-size: clamp(1.9rem, 2.7vw, 2.75rem); line-height: 1.02; font-weight: 880; letter-spacing: -0.03em; }
.dic-item dd { margin: 0; color: var(--ink-2); }
.fx { position: relative; display: inline-block; }
.fx .ch, .fx .w { display: inline-block; white-space: pre; }
.dic-src { margin-top: clamp(40px, 6vh, 64px); }
.dic-src a { display: inline-flex; align-items: center; gap: 6px; color: var(--signal); font-weight: 600; }
.dic-src svg { width: 14px; height: 14px; }
.is-play[data-fx="fade"] .fx { animation: fx-fade .9s ease-out both; }
.is-play[data-fx="slide"] .fx { animation: fx-slide .75s var(--ease-out) both; }
.is-play[data-fx="blur"] .fx { animation: fx-blur 1s ease-out both; }
.is-play[data-fx="pop"] .fx { transform-origin: 30% 60%; animation: fx-pop .62s cubic-bezier(.34, 1.9, .64, 1) both; }
.is-play[data-fx="scale"] .fx { transform-origin: 0 70%; animation: fx-scale .85s var(--ease-out) both; }
.is-play[data-fx="stagger"] .fx .ch { animation: fx-up .5s var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
.is-play[data-fx="ease"] .fx { animation: fx-ease 1.15s cubic-bezier(.65, 0, .35, 1) both; }
.is-play[data-fx="overshoot"] .fx { animation: fx-ease .95s cubic-bezier(.3, 1.9, .55, 1) both; }
.is-play[data-fx="bounce"] .fx { animation: fx-bounce 1.05s both; }
.is-play[data-fx="type"] .fx .ch { animation: fx-fade .01s steps(1, jump-start) both; animation-delay: calc(var(--i) * 75ms); }
.is-play[data-fx="type"] .fx::after { content: ""; position: absolute; right: -.12em; top: .08em; width: .07em; height: .86em; background: var(--signal); animation: blink .7s steps(1) 4 both; }
.is-play[data-fx="words"] .fx .w { animation: fx-up .55s var(--ease-out) both; animation-delay: calc(var(--i) * 220ms); }
.fx-swap { display: inline-grid; overflow: hidden; vertical-align: bottom; }
.fx-swap > span { grid-area: 1 / 1; }
.fx-swap .b { color: var(--signal); opacity: 0; }
.is-play[data-fx="swap"] .fx-swap .a { animation: fx-swap-a 2.2s var(--ease-out) both; }
.is-play[data-fx="swap"] .fx-swap .b { animation: fx-swap-b 2.2s var(--ease-out) both; }
.fx .u { position: absolute; left: 0; bottom: -.16em; width: 100%; height: .3em; overflow: visible; }
.fx .u path { fill: none; stroke: var(--signal); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.is-play[data-fx="draw"] .fx .u path { animation: fx-draw 1.1s var(--ease-out) both; }
.fx .shape { display: inline-block; width: .52em; height: .52em; margin-left: .22em; vertical-align: .06em; border-radius: 3px; background: var(--signal); }
.is-play[data-fx="morph"] .fx .shape { animation: fx-morph 1.2s var(--ease-out) both; }
.fx .fx-bar { position: absolute; left: 0; bottom: -.18em; width: 100%; height: .12em; border-radius: 2px; background: var(--signal); transform-origin: 0 50%; }
.is-play[data-fx="bar"] .fx .fx-bar { animation: fx-bar 1s var(--ease-out) both; }
.is-play[data-fx="mask"] .fx { animation: fx-mask 1s var(--ease-out) both; }
.is-play[data-fx="wipe"] .fx { animation: fx-wipe-text .9s steps(1) both; }
.is-play[data-fx="wipe"] .fx::before { content: ""; position: absolute; inset: -.02em -.08em; background: var(--signal); transform-origin: 0 50%; animation: fx-wipe-band .9s cubic-bezier(.7, 0, .3, 1) both; }
.is-play[data-fx="punch"] .fx { animation: fx-punch .55s cubic-bezier(.2, .9, .3, 1) both; }
@keyframes fx-fade { from { opacity: 0; } }
@keyframes fx-slide { from { opacity: 0; transform: translateX(-1.2em); } }
@keyframes fx-blur { from { opacity: 0; filter: blur(14px); } }
@keyframes fx-pop { from { opacity: 0; transform: scale(.3); } }
@keyframes fx-scale { from { opacity: .25; transform: scale(.45); } }
@keyframes fx-up { from { opacity: 0; transform: translateY(.6em); } }
@keyframes fx-ease { from { transform: translateX(-1.5em); } }
@keyframes fx-bounce { 0% { transform: translateY(-1.1em); animation-timing-function: ease-in; } 36% { transform: translateY(0); animation-timing-function: ease-out; } 56% { transform: translateY(-.34em); animation-timing-function: ease-in; } 74% { transform: translateY(0); animation-timing-function: ease-out; } 87% { transform: translateY(-.1em); animation-timing-function: ease-in; } 100% { transform: translateY(0); } }
@keyframes fx-swap-a { 0%, 12% { transform: translateY(0); opacity: 1; } 30%, 70% { transform: translateY(-100%); opacity: 0; } 88%, 100% { transform: translateY(0); opacity: 1; } }
@keyframes fx-swap-b { 0%, 12% { transform: translateY(100%); opacity: 0; } 30%, 70% { transform: translateY(0); opacity: 1; } 88%, 100% { transform: translateY(-100%); opacity: 0; } }
@keyframes fx-draw { from { stroke-dashoffset: 1; } }
@keyframes fx-morph { 0% { border-radius: 50%; transform: scale(.6); } 60% { border-radius: 50%; transform: scale(1) rotate(0); } 100% { border-radius: 3px; transform: rotate(90deg); } }
@keyframes fx-bar { from { transform: scaleX(0); } }
@keyframes fx-mask { from { clip-path: circle(0% at 12% 55%); } to { clip-path: circle(160% at 12% 55%); } }
@keyframes fx-wipe-text { 0% { color: transparent; } 50% { color: inherit; } }
@keyframes fx-wipe-band { 0% { transform: scaleX(0); transform-origin: 0 50%; } 49% { transform: scaleX(1); transform-origin: 0 50%; } 51% { transform: scaleX(1); transform-origin: 100% 50%; } 100% { transform: scaleX(0); transform-origin: 100% 50%; } }
@keyframes fx-punch { 0% { opacity: 0; transform: scale(1.9); filter: blur(5px); } 45% { opacity: 1; transform: scale(.97); filter: blur(0); } 100% { transform: scale(1); } }

@media (max-width: 860px) {
  .destaques-head, .dic-head { grid-template-columns: minmax(0, 1fr); }
  .fan-foot { grid-template-columns: minmax(0, 1fr); }
  .fan-ctrl { order: -1; justify-content: center; }
  .dic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .fan { --card-w: clamp(150px, 44vw, 210px); }
  .dic-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .vrow { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
  .vrow::-webkit-scrollbar { display: none; }
  .vrow { --vh: min(62svh, 480px); }
  .vcell { scroll-snap-align: center; }
}

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
