/*
  Central dos Squads · Funnel Labs I.A — redesign 24/09/2026

  TESE: hangar de lançamento. A tela de seleção de um jogo AAA encontra o keynote de produto:
        quatro squads com personalidades distintas lado a lado, sob a marca Funnel Labs.
  SENSAÇÃO: "tenho 73 agentes esperando uma ordem minha".
  GESTO: a constelação viva — cada ponto é um agente real, com nome; quatro galáxias nas cores
         dos squads; o número 73 é uma janela onde a constelação acende.
  ANTI-REFERÊNCIAS: template de SaaS com cards iguais; landing de curso com contador; dashboard
         com gráfico decorativo.
  APOSTA: o 73 em corpo de um terço da tela, sangrando a composição, feito de luz e não de tinta.

  Tokens: void black e laranja Funnel Labs (#FF5A00) no escuro; branco e grafite frio no claro.
  Os quatro cartões de squad ficam sempre na identidade escura de cada squad (vitrine).
*/

@property --ux { syntax: "<percentage>"; inherits: true; initial-value: 30%; }
@property --uy { syntax: "<percentage>"; inherits: true; initial-value: 40%; }

:root {
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --mse: #E0523F; --eng: #38BDF8; --fci: #9B6CFF; --af: #F5A524;
  --r-ctl: 4px;
  --r-box: 16px;
  --pad: clamp(16px, 4vw, 48px);
  --wrap: 1280px;
  --font: "Mona Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

[data-theme="dark"] {
  --bg: #050505;
  --bg-2: #0B0B0B;
  --raised: #111111;
  --raised-2: #191919;
  --ink: #FDFDFD;
  --ink-2: #B3B3B3;
  --ink-3: #6F6F6F;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .17);
  --acc: #FF5A00;
  --acc-hi: #FF8C40;
  --acc-ink: #0E0E0E;
  --acc-text: #FF7A2E;
  --glow: rgba(255, 90, 0, .16);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --bg-2: #F3F4F6;
  --raised: #FFFFFF;
  --raised-2: #ECEEF1;
  --ink: #0E1116;
  --ink-2: #454B55;
  --ink-3: #7A808A;
  --line: rgba(14, 17, 22, .09);
  --line-2: rgba(14, 17, 22, .18);
  --acc: #FF5A00;
  --acc-hi: #FF7A2A;
  --acc-ink: #0E0E0E;
  --acc-text: #C2410C;
  --glow: rgba(255, 90, 0, .10);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
code { font-family: var(--mono); font-size: .88em; padding: .1em .35em; border-radius: 3px; background: var(--raised-2); color: var(--ink); white-space: nowrap; }
::selection { background: var(--acc); color: var(--acc-ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--acc); color: var(--acc-ink); font-weight: 600; text-decoration: none; border-radius: var(--r-ctl); transition: top .3s var(--ease); }
.skip:focus { top: 12px; }

/* ── Transição de tema (círculo que nasce do botão) ─────────────────────────── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ── Tarja de área restrita ──────────────────────────────────────────────────── */
.notice {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 9px var(--pad);
  font-size: 13px; line-height: 1.35; color: var(--ink-2);
  background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.notice strong { color: var(--ink); font-weight: 600; }
.notice-led {
  display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 1px;
  border-radius: 50%; background: var(--acc);
  animation: led 2.6s var(--ease) infinite;
}
@keyframes led {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 0, .55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0); }
}
.notice-status { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .notice-long, .notice-status { display: none; } }

/* ── Navegação ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  border-bottom-color: var(--line);
}
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand-mark { width: 128px; height: auto; }
.brand-mark text { font-family: "Playfair Display", Georgia, serif; }
.brand-word, .brand-dot { fill: var(--ink); }
.brand-sub { font-size: 13px; color: var(--ink-2); padding-left: 16px; border-left: 1px solid var(--line-2); white-space: nowrap; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a { position: relative; padding: 6px 0; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: color .3s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .55s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-tools { display: flex; align-items: center; gap: 12px; }
@media (max-width: 920px) { .nav-links, .brand-sub { display: none; } .nav-tools { margin-left: auto; } }
@media (max-width: 480px) { .nav .btn-sm { display: none; } .brand-mark { width: 112px; } }

.theme-toggle {
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: var(--r-ctl);
  background: transparent; cursor: pointer;
  transition: border-color .3s, background-color .3s;
}
.theme-toggle:hover { border-color: var(--ink-3); background: var(--raised-2); }
.theme-toggle svg { grid-area: 1 / 1; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .7s var(--ease), opacity .35s; }
[data-theme="dark"] .ico-moon { opacity: 0; transform: rotate(90deg) scale(.5); }
[data-theme="light"] .ico-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }

/* ── Botões ──────────────────────────────────────────────────────────────────── */
.btn {
  --h: 54px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r-ctl);
  font: 600 15px/1 var(--font); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .6s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .55s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-solid { background: var(--acc); color: var(--acc-ink); }
.btn-solid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--acc-hi); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-solid:hover::before { transform: translateY(0); }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 14px; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost:hover svg { transform: translateY(-3px); }
.link-draw {
  color: var(--ink); font-weight: 500; text-decoration: none; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .55s var(--ease);
}
.link-draw:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ── Revelações ──────────────────────────────────────────────────────────────── */
.js .hero-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .rv { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease); }
.js .is-in .rv, .js .rv.in { transform: none; }
.js .hero-line:nth-child(3) .rv { transition-delay: .08s; }
.js .hero-line:nth-child(4) .rv { transition-delay: .16s; }
.js .rv-block { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js .rv-block.in { opacity: 1; transform: none; }

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100svh - 112px);
  display: flex; align-items: stretch;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60% 55% at 22% 38%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 88% 18%, color-mix(in srgb, var(--acc) 7%, transparent), transparent 70%);
}
[data-theme="light"] .hero::before { opacity: .5; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--bg)); }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease); }
.sky.on { opacity: 1; }

.hero-inner {
  width: 100%; max-width: 1480px; margin: 0 auto;
  padding: clamp(20px, 4vh, 56px) var(--pad) clamp(40px, 7vh, 88px);
  display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px); align-items: end;
}
.hero-title { font-size: clamp(30px, 3.3vw, 54px); line-height: 1.02; letter-spacing: -.035em; font-weight: 640; font-stretch: 96%; }
.hero-num {
  display: block;
  font-size: clamp(170px, 31vw, 520px);
  line-height: .74; font-weight: 900; font-stretch: 100%; letter-spacing: -.055em;
  margin: 0 0 clamp(14px, 2.4vh, 30px) -.085em;
  color: var(--ink);
  font-variant-numeric: lining-nums;
}
.cv .hero-num { color: transparent; }
.bl { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.hero-line { display: block; }

.hero-side { display: grid; gap: 26px; padding-bottom: 6px; max-width: 520px; }
.hero-kicker { font-size: 13.5px; font-weight: 600; letter-spacing: .01em; color: var(--acc-text); display: flex; align-items: center; gap: 12px; }
.hero-kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero-lede { font-size: 18.5px; line-height: 1.62; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.legend { list-style: none; margin: 6px 0 0; padding: 0; border-top: 1px solid var(--line-2); }
.legend li {
  display: grid; grid-template-columns: 14px 1fr auto; align-items: center; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-2); cursor: default;
  transition: color .3s, padding .5s var(--ease);
}
.legend i { width: 10px; height: 10px; background: var(--c); transform: rotate(45deg); box-shadow: 0 0 14px var(--c); transition: transform .6s var(--ease); }
.legend b { font-weight: 700; font-size: 17px; color: var(--ink); font-variant-numeric: tabular-nums; }
.legend li:hover, .legend li.on { color: var(--ink); padding-left: 8px; }
.legend li:hover i, .legend li.on i { transform: rotate(225deg) scale(1.2); }

.sky-tip {
  position: absolute; z-index: 5; pointer-events: none;
  display: grid; gap: 2px; padding: 9px 12px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line-2); border-left: 2px solid var(--tc, var(--acc));
  border-radius: 3px; transform: translate(14px, -50%);
  font-size: 12.5px; line-height: 1.3; white-space: nowrap;
}
.sky-tip[hidden] { display: none; }
.sky-tip b { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--ink); }
.sky-tip span { color: var(--ink-2); }

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-inner { grid-template-columns: 1fr; align-items: start; padding-top: 18px; }
  .hero-num { font-size: clamp(150px, 60vw, 380px); margin-left: -.05em; }
  .hero-side { max-width: 640px; }
}

/* ── SQUADS ──────────────────────────────────────────────────────────────────── */
.squads { padding: clamp(80px, 13vh, 170px) 0 clamp(80px, 12vh, 150px); }
.squads-head { max-width: 1720px; margin-bottom: clamp(36px, 6vh, 64px); }
.h2 { font-size: clamp(40px, 5.4vw, 88px); line-height: .96; letter-spacing: -.045em; font-weight: 700; font-stretch: 92%; }

.deck {
  container-type: inline-size;
  display: flex; gap: 10px;
  height: clamp(560px, 80vh, 740px);
  padding: 0 var(--pad);
  max-width: 1720px; margin: 0 auto;
}
.card {
  --open: 5.4;
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden;
  border-radius: var(--r-box);
  background: var(--card-bg);
  color: var(--c-ink);
  isolation: isolate;
  transition: flex-grow .9s var(--ease), box-shadow .6s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.card.is-active { flex-grow: var(--open); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 40px 80px -40px var(--c-glow); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--card-tex); opacity: .9; }
.card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at var(--gx, 80%) var(--gy, 90%), var(--c-glow), transparent 70%); opacity: .0; transition: opacity .9s var(--ease); }
.card.is-active::after { opacity: 1; }

.card-trigger { position: absolute; inset: 0; z-index: 4; width: 100%; border: 0; background: transparent; cursor: pointer; }
.card.is-active .card-trigger { pointer-events: none; }

.card-spine {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 28px 0 24px;
  transition: opacity .45s var(--ease) .25s;
}
.card.is-active .card-spine { opacity: 0; transition-delay: 0s; pointer-events: none; }
.spine-name { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--card-font); font-size: 30px; line-height: 1; letter-spacing: var(--card-track, -.02em); white-space: nowrap; color: var(--c-ink); font-weight: var(--card-weight, 700); font-stretch: var(--card-stretch, 100%); text-transform: var(--card-case, none); }
.spine-num { font-family: var(--card-font); font-weight: var(--card-weight, 700); font-size: 44px; line-height: 1; color: var(--c); font-variant-numeric: lining-nums; }
.card:hover .card-spine .spine-name { color: #fff; }

.card-body {
  position: absolute; top: 0; bottom: 0; left: 0;
  width: calc((100cqw - 2 * var(--pad) - 30px) * var(--open) / (var(--open) + 3));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: 20px;
  padding: clamp(28px, 4vh, 44px) clamp(26px, 3vw, 44px);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.card.is-active .card-body { z-index: 2; opacity: 1; visibility: visible; transition: opacity .8s var(--ease) .18s, visibility 0s; }
.card-copy { display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; min-width: 0; }
.card-title { font-family: var(--card-font); font-size: var(--card-size, clamp(40px, 4.2vw, 68px)); line-height: .95; letter-spacing: var(--card-track, -.02em); font-weight: var(--card-weight, 700); font-stretch: var(--card-stretch, 100%); text-transform: var(--card-case, none); color: #fff; }
.card-desc { font-size: 15.5px; line-height: 1.62; color: var(--c-ink-2); max-width: 46ch; }
.card-stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: 4px 0 6px; }
.card-stats div { padding: 2px 18px 2px 0; margin-right: 18px; border-right: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column-reverse; gap: 2px; }
.card-stats div:last-child { border-right: 0; margin-right: 0; }
.card-stats dt { font-size: 12px; line-height: 1.25; color: var(--c-ink-2); max-width: 12ch; }
.card-stats dd { margin: 0; font-family: var(--card-font); font-weight: var(--card-weight, 700); font-stretch: var(--card-stretch, 100%); font-size: 34px; line-height: 1; color: #fff; font-variant-numeric: lining-nums tabular-nums; }
.btn-card { align-self: flex-start; background: var(--c); color: var(--c-btn-ink); --h: 52px; }
.btn-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-card:hover { color: #0B0B0B; }
.btn-card:hover::before { transform: none; }

.js .card .card-copy > * { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.js .card.is-active .card-copy > * { opacity: 1; transform: none; }
.js .card.is-active .card-copy > :nth-child(1) { transition-delay: .22s; }
.js .card.is-active .card-copy > :nth-child(2) { transition-delay: .28s; }
.js .card.is-active .card-copy > :nth-child(3) { transition-delay: .34s; }
.js .card.is-active .card-copy > :nth-child(4) { transition-delay: .40s; }
.js .card.is-active .card-copy > :nth-child(5) { transition-delay: .46s; }
.js .card.is-active .card-copy > :nth-child(6) { transition-delay: .52s; }

.card-art { position: relative; min-width: 0; display: grid; place-items: center; }

/* Identidade de cada squad no cartão */
.card-mse {
  --c: #D43D2E; --c-ink: #F2EEE8; --c-ink-2: #B9AFA5; --c-btn-ink: #FFFFFF; --c-glow: rgba(212, 61, 46, .38);
  --card-bg: #0E0B0A;
  --card-tex: radial-gradient(120% 80% at 100% 100%, rgba(201, 162, 39, .10), transparent 60%);
  --card-font: "Funnel Display", sans-serif; --card-weight: 700; --card-track: -.025em;
  --card-size: clamp(44px, 4.6vw, 76px);
}
.card-eng {
  --c: #38BDF8; --c-ink: #E6EEF6; --c-ink-2: #8FA2B8; --c-btn-ink: #04111C; --c-glow: rgba(56, 189, 248, .30);
  --card-bg: #06101A;
  --card-tex: linear-gradient(rgba(56, 189, 248, .07) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(56, 189, 248, .07) 1px, transparent 1px) 0 0 / 28px 28px;
  --card-font: "Geist", var(--font); --card-weight: 700; --card-track: -.045em;
}
.card-fci {
  --c: #8B5CF6; --c-ink: #EFEAF7; --c-ink-2: #A69EBB; --c-btn-ink: #FFFFFF; --c-glow: rgba(139, 92, 246, .38);
  --card-bg: #0B0913;
  --card-tex: radial-gradient(70% 60% at 20% 0%, rgba(139, 92, 246, .14), transparent 70%);
  --card-font: "Bricolage Grotesque", var(--font); --card-weight: 800; --card-stretch: 75%; --card-track: -.03em;
}
.card-af {
  --c: #F59E0B; --c-ink: #F5F1EA; --c-ink-2: #ADA597; --c-btn-ink: #0B0A08; --c-glow: rgba(245, 158, 11, .34);
  --card-bg: #0E0B07;
  --card-tex: repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px);
  --card-font: "Big Shoulders Display", var(--font); --card-weight: 900; --card-track: .005em; --card-case: uppercase;
  --card-size: clamp(48px, 5vw, 84px);
}

/* Arte MSE: páginas + lacre */
.art-mse { perspective: 900px; }
.mse-pages { position: absolute; inset: 12% 8% 16% 10%; }
.mse-page {
  position: absolute; left: 18%; top: 6%; width: 58%; aspect-ratio: 3 / 4;
  background: #F4F1EC; border-radius: 3px; padding: 9% 9%;
  display: flex; flex-direction: column; gap: 7%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -20px rgba(0, 0, 0, .8);
  transform-origin: 50% 110%;
  transition: transform 1.1s var(--ease);
}
.mse-page i { display: block; height: 5%; background: #2A2522; border-radius: 1px; opacity: .8; }
.mse-page i:nth-child(2) { width: 70%; opacity: .35; }
.mse-page i:nth-child(3) { width: 82%; opacity: .35; }
.mse-page b { display: block; flex: 1; background: linear-gradient(135deg, #D43D2E, #7E1D12); border-radius: 2px; }
.mse-page.p2 { background: #FFFFFF; }
.mse-page.p2 b { background: linear-gradient(160deg, #1C1917, #3B302B); }
.mse-page.p3 b { background: linear-gradient(135deg, #C9A227, #7A5E10); flex: .8; }
.card-mse.is-active .p1 { transform: rotate(-14deg) translate(-14%, 4%); }
.card-mse.is-active .p2 { transform: rotate(3deg) translate(4%, -2%); }
.card-mse.is-active .p3 { transform: rotate(17deg) translate(22%, 6%); }
/* Lacre: cópia das regras .seal-w e .seal do portal do MSE (assets/styles.css), escopadas no cartão.
   Sem a classe .stamp: no portal ela esconde o selo até o JS de lá carimbar, e o hub não tem esse JS. */
.art-mse .seal-w { position: relative; display: block; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .45)) drop-shadow(0 2px 2px rgba(0, 0, 0, .4)); }
[data-theme="light"] .art-mse .seal-w { filter: drop-shadow(0 14px 18px rgba(70, 12, 6, .22)) drop-shadow(0 2px 3px rgba(70, 12, 6, .3)); }
.art-mse .seal { display: block; width: 100%; height: auto; overflow: visible; }
.art-mse .seal-w {
  position: absolute; width: min(46%, 220px); right: 6%; bottom: 8%;
  transform: scale(1.35) rotate(-18deg); opacity: 0;
  transition: transform .5s cubic-bezier(.3, 1.6, .5, 1) .55s, opacity .2s .55s;
}
.card-mse.is-active .seal-w { transform: scale(1) rotate(0deg); opacity: 1; }

/* Arte Eng: esquema */
.eng-schema { width: min(100%, 420px); overflow: visible; }
.eng-dim path { fill: none; stroke: rgba(56, 189, 248, .45); stroke-width: 1; }
.eng-dim text { font-family: var(--mono); font-size: 9.5px; fill: rgba(143, 162, 184, .95); }
.eng-wires path { fill: none; stroke: rgba(56, 189, 248, .42); stroke-width: 1.2; stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s var(--ease) .3s; }
.card-eng.is-active .eng-wires path { stroke-dashoffset: 0; }
.eng-nodes rect { fill: #0A1826; stroke: rgba(56, 189, 248, .75); stroke-width: 1.2; rx: 3; }
.eng-chief rect { fill: #38BDF8; rx: 4; }
.eng-chief text { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: #04111C; }
.eng-gate rect { fill: #06101A; stroke: #34D399; stroke-width: 1.4; rx: 3; }
.eng-gate text { font-family: var(--mono); font-size: 10px; fill: #34D399; }
.pk { fill: #BDEBFF; filter: drop-shadow(0 0 5px #38BDF8); }
.card-eng:not(.is-active) .pk { display: none; }

/* Arte FCI: lente UV */
.uv {
  --r: 118px; --ux: 30%; --uy: 40%;
  position: relative; width: min(100%, 380px);
  padding: 26px 24px; border: 1px dashed rgba(139, 92, 246, .45); border-radius: 10px;
  font-size: 15px; line-height: 1.55;
  animation: uv-wander 11s ease-in-out infinite alternate;
}
.card-fci:not(.is-active) .uv { animation-play-state: paused; }
.uv.live { animation: none; }
@keyframes uv-wander {
  0% { --ux: 18%; --uy: 22%; }
  35% { --ux: 72%; --uy: 38%; }
  70% { --ux: 34%; --uy: 72%; }
  100% { --ux: 80%; --uy: 84%; }
}
.uv p { margin: 0; }
.uv .uv-note { margin: 6px 0 18px; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: #D9F99D; text-shadow: 0 0 12px rgba(217, 249, 157, .55); }
.uv .uv-note:last-child { margin-bottom: 0; }
.uv mark { background: none; color: #F4FFE0; font-weight: 600; }
.uv-plain { color: #CFC8DE; }
.uv-plain .uv-note { visibility: hidden; }
.uv-hidden {
  position: absolute; inset: 0; padding: inherit;
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--ux) var(--uy), #000 45%, transparent 75%);
  mask-image: radial-gradient(circle var(--r) at var(--ux) var(--uy), #000 45%, transparent 75%);
}
.uv-hidden p:not(.uv-note) { visibility: hidden; }
.uv::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(circle var(--r) at var(--ux) var(--uy), rgba(139, 92, 246, .22), rgba(139, 92, 246, .08) 60%, transparent 76%);
}

/* Arte AF: fagulhas + placa */
.art-af { overflow: hidden; }
.af-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.art-af::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -30%; height: 60%; background: radial-gradient(50% 60% at 50% 100%, rgba(245, 158, 11, .5), rgba(194, 112, 61, .15) 50%, transparent 75%); filter: blur(6px); }
/* três placas de aço em leque; a da frente é o laudo real do gate (api-forge, A+ 9,43/10) */
.art-af { container-type: size; }
.af-stack { position: absolute; left: 50%; top: 53%; width: 22em; height: 21em; font-size: clamp(9px, min(3.55cqw, 3.4cqh), 16px); translate: -50% -50%; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6)) drop-shadow(0 2px 2px rgba(0, 0, 0, .5)); }
.af-pl { position: absolute; inset: 0; padding: 1.5em 1.6em 1.3em; background: linear-gradient(180deg, #2C2823 0%, #1B1814 100%); clip-path: polygon(1em 0, calc(100% - 1em) 0, 100% 1em, 100% calc(100% - 1em), calc(100% - 1em) 100%, 1em 100%, 0 calc(100% - 1em), 0 1em); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .7s cubic-bezier(.7, 0, .2, 1); }
.af-rv { position: absolute; inset: .7em; pointer-events: none; --rv: radial-gradient(circle at 42% 38%, #9A9286 0 .07em, #4C463D .12em .21em, rgba(0, 0, 0, .75) .24em .27em, transparent .3em); background: var(--rv) 0 0 / .62em .62em no-repeat, var(--rv) 100% 0 / .62em .62em no-repeat, var(--rv) 0 100% / .62em .62em no-repeat, var(--rv) 100% 100% / .62em .62em no-repeat; }
.af-pl2, .af-pl3 { display: flex; flex-direction: column; gap: .8em; background: linear-gradient(180deg, #25221D, #151310); }
.af-pl2 b, .af-pl3 b { font: 600 1em/1 "JetBrains Mono", monospace; color: #C2703D; }
.af-pl2 i, .af-pl3 i { display: block; height: .45em; background: #3A352E; }
.af-pl2 i:nth-of-type(2), .af-pl3 i:nth-of-type(2) { width: 72%; }
.af-pl2 i:nth-of-type(3), .af-pl3 i:nth-of-type(3) { width: 84%; }
.af-pl2 { transform: translate(-6%, -6%) rotate(-5deg); }
.af-pl3 { transform: translate(6%, -9%) rotate(4deg); }
.card-af.is-active .af-pl2 { transform: translate(-7%, -8%) rotate(-6deg); }
.card-af.is-active .af-pl3 { transform: translate(7%, -11%) rotate(5deg); }
.af-top { display: flex; align-items: baseline; justify-content: space-between; gap: .8em; margin: 0 0 .8em; padding-bottom: .7em; border-bottom: 1px solid #3A352E; font: 500 .74em/1 "JetBrains Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #8C857A; }
.af-serial { font: 800 1.9em/1 "Big Shoulders Stencil Display", var(--font); letter-spacing: .1em; color: #F59E0B; }
.af-rows { list-style: none; margin: 0; padding: 0; }
.af-rows li { display: flex; align-items: center; justify-content: space-between; gap: 1em; padding: .5em 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font: 500 .95em/1.2 var(--font); color: #F5F1EA; opacity: .38; transition: opacity .35s cubic-bezier(.7, 0, .2, 1) calc(.3s + var(--i) * .13s); }
.af-rows em { font: 600 1em/1 "JetBrains Mono", monospace; font-style: normal; color: #F59E0B; }
.af-ck { width: .62em; height: .34em; margin: 0 .2em .2em 0; border: solid #F59E0B; border-width: 0 0 .14em .14em; transform: rotate(-45deg) scale(.3); opacity: 0; transition: transform .3s cubic-bezier(.7, 0, .2, 1) calc(.42s + var(--i) * .13s), opacity .2s calc(.42s + var(--i) * .13s); }
.card-af.is-active .af-rows li { opacity: 1; }
.card-af.is-active .af-ck { transform: rotate(-45deg) scale(1); opacity: 1; }
.af-grade { display: flex; align-items: baseline; gap: .7em; margin: .9em 0 0; font: 500 .8em/1 "JetBrains Mono", monospace; color: #ADA597; }
.af-grade b { font: 800 2.5em/1 var(--font); color: #F5F1EA; letter-spacing: -.02em; }
.af-stamp {
  position: absolute; right: -5%; bottom: -9%; z-index: 2;
  font-family: "Big Shoulders Stencil Display", var(--font); font-weight: 800; font-size: 2.35em; letter-spacing: .06em; line-height: 1;
  color: #F59E0B; border: .09em solid #F59E0B; padding: .14em .36em .1em; background: rgba(14, 11, 7, .35);
  transform: rotate(-9deg) scale(1.6); opacity: 0;
  transition: transform .28s cubic-bezier(.7, 0, .2, 1) 1.25s, opacity .1s 1.25s;
}
.card-af.is-active .af-stamp { transform: rotate(-9deg) scale(1); opacity: 1; animation: thud .3s linear 1.53s; }
@keyframes thud { 0%, 100% { translate: 0 0; } 25% { translate: 2px -1px; } 50% { translate: -2px 1px; } 75% { translate: 1px 1px; } }

/* Deck em telas menores: cartões empilhados, todos abertos */
@media (max-width: 1020px) {
  .deck { flex-direction: column; height: auto; gap: 14px; }
  .card, .card.is-active { flex: none; }
  .card-spine, .card-trigger { display: none; }
  .card-body { position: relative; width: auto; opacity: 1; visibility: visible; grid-template-columns: 1fr; gap: 8px; padding: 30px 22px 28px; }
  .card-art { order: -1; height: 260px; overflow: hidden; }
  .eng-schema { height: 100%; width: auto; }
  .mse-pages { inset: 6% 10% 6% 8%; }
  .mse-page { width: auto; height: 82%; }
  .card::after { opacity: 1; }
  .js .card .card-copy > * { opacity: 1; transform: none; }
  .card-stats { grid-template-columns: repeat(2, auto); row-gap: 14px; }
  .card-stats div:nth-child(2) { border-right: 0; }
  .card-mse .p1 { transform: rotate(-14deg) translate(-14%, 4%); }
  .card-mse .p2 { transform: rotate(3deg) translate(4%, -2%); }
  .card-mse .p3 { transform: rotate(17deg) translate(22%, 6%); }
  .card-mse .seal-w { transform: scale(1) rotate(0deg); opacity: 1; width: min(40%, 170px); }
  .eng-wires path { stroke-dashoffset: 0; }
  .card-eng .pk { display: inline; }
  .af-stamp { transform: rotate(-9deg) scale(1); opacity: 1; }
  .af-rows li { opacity: 1; }
  .af-ck { transform: rotate(-45deg) scale(1); opacity: 1; }
}

/* ── ACESSO ──────────────────────────────────────────────────────────────────── */
.access { position: relative; padding: clamp(80px, 12vh, 150px) 0; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.access::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(60% 70% at 78% 45%, #000, transparent 75%);
  mask-image: radial-gradient(60% 70% at 78% 45%, #000, transparent 75%);
}
.access-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.step { position: relative; padding: 18px 0 18px 26px; border-left: 1px solid var(--line-2); transition: border-color .5s var(--ease); }
.step::before { content: ""; position: absolute; left: -1px; top: 0; width: 2px; height: 0; background: var(--acc); transition: height .8s var(--ease); }
.step h3 { font-size: 20px; letter-spacing: -.02em; font-weight: 650; color: var(--ink-3); transition: color .5s var(--ease); }
.step p { margin-top: 6px; font-size: 15.5px; color: var(--ink-3); max-width: 470px; transition: color .5s var(--ease); }
.step.on::before { height: 100%; }
.step.on h3 { color: var(--ink); }
.step.on p { color: var(--ink-2); }
.no-anim .step h3 { color: var(--ink); }
.no-anim .step p { color: var(--ink-2); }

.term-wrap { display: grid; gap: 12px; }
.term {
  --t-bg: #0C0C0D;
  border-radius: 12px; overflow: hidden;
  background: var(--t-bg);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .4), 0 50px 100px -30px rgba(0, 0, 0, .7), 0 30px 120px -60px rgba(255, 90, 0, .35);
  color: #D7D7D7;
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transform-origin: 30% 50%;
  transition: transform 1.2s var(--ease);
}
.term:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.term-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: #161617; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.dots { display: flex; gap: 7px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #3A3A3C; }
.dots i:nth-child(1) { background: #FF5F57; } .dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.term-tabs { display: flex; gap: 2px; margin-left: 8px; }
.term-tabs button {
  border: 0; background: transparent; color: #8A8A8E; cursor: pointer;
  font: 500 12.5px/1 var(--mono); padding: 7px 12px; border-radius: 5px;
  transition: background-color .3s, color .3s;
}
.term-tabs button[aria-selected="true"] { background: #252527; color: #F4F4F5; }
.term-tabs button:hover { color: #F4F4F5; }
.term-replay { margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 5px; background: transparent; color: #8A8A8E; cursor: pointer; }
.term-replay:hover { background: #252527; color: #F4F4F5; }
.term-replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.term-screen {
  margin: 0; padding: 22px 22px 26px; height: 430px; overflow: hidden;
  font: 400 14px/1.75 var(--mono); white-space: pre-wrap; word-break: break-word;
  background: radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .025), transparent 60%);
}
.term-screen code { background: none; padding: 0; font-size: inherit; color: inherit; white-space: inherit; }
.t-cmt { color: #6B6B70; }
.t-ps { color: #FF7A2E; }
.t-in { color: #F4F4F5; }
.t-out { color: #A4A4AA; }
.t-ok { color: #3FB950; }
.t-hi { color: #F4F4F5; font-weight: 600; }
.t-cursor { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: #FF7A2E; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-note { font-size: 12.5px; color: var(--ink-3); padding-left: 4px; }

.restrict {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  margin-top: clamp(56px, 9vh, 96px); padding: 26px 28px;
  background: var(--raised); border: 1px solid var(--line-2); border-radius: 10px;
  max-width: 880px;
}
.restrict-ico { width: 34px; height: 34px; fill: none; stroke: var(--acc-text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.restrict p { font-size: 16px; color: var(--ink-2); }
.restrict strong { color: var(--ink); }
.restrict .license-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 980px) {
  .access-grid { grid-template-columns: 1fr; }
  .term { transform: none; }
  .term-screen { height: 400px; font-size: 12.5px; padding: 18px 16px; }
  .term-tabs button { padding: 7px 8px; }
}

/* ── Rodapé ──────────────────────────────────────────────────────────────────── */
.foot { position: relative; overflow: hidden; padding: 56px 0 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-links a { font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color .3s; }
.foot-links a:hover { color: var(--ink); }
.foot-legal { font-size: 13px; color: var(--ink-3); }
.foot-word {
  margin: 36px 0 -0.19em; text-align: center; white-space: nowrap;
  font-size: 12.4vw; line-height: 1; font-weight: 900; font-stretch: 125%; letter-spacing: -.045em;
  color: transparent;
  background: linear-gradient(180deg, color-mix(in srgb, var(--acc) 26%, transparent), transparent 78%); -webkit-background-clip: text; background-clip: text;
  user-select: none;
}

/* ── Movimento reduzido ──────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js .rv, .js .rv-block { transform: none; opacity: 1; }
  .term { transform: none; }
}
