/* /metodo — v3 forma (OS-28) + v4 cenas e motor de partículas (OS-29).
   Estado padrão é totalmente visível; JS só adiciona movimento quando permitido. */

main { position: relative; z-index: 1; counter-reset: capitulo; }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--azul-claro); }

/* ---------- Fundo com parallax (textura, sem conteúdo) ---------- */
.bg-parallax {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.px-layer { position: absolute; left: 0; right: 0; will-change: transform; }
.px-glow {
  top: -20vh;
  height: 150vh;
  background:
    radial-gradient(600px 600px at 82% 22%, rgba(29, 75, 176, 0.38), transparent 70%),
    radial-gradient(520px 520px at 8% 64%, rgba(0, 52, 119, 0.5), transparent 70%);
}
.px-dots {
  top: -10vh;
  height: 130vh;
  background-image: radial-gradient(circle, rgba(157, 178, 216, 0.22) 1.2px, transparent 1.6px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 40%, #000 0%, transparent 75%);
}
.px-shapes { top: 0; height: 160vh; }
.shape {
  position: absolute;
  width: 46px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(29, 75, 176, 0.32), rgba(29, 75, 176, 0));
}
.shape.s1 { left: 5%;  top: 18vh; height: 150px; }
.shape.s2 { left: 9%;  top: 40vh; height: 260px; opacity: 0.7; }
.shape.s3 { left: 13%; top: 74vh; height: 110px; opacity: 0.6; }
.shape.s4 { right: 6%;  top: 30vh; height: 220px; }
.shape.s5 { right: 10%; top: 62vh; height: 140px; opacity: 0.7; }
.shape.s6 { right: 14%; top: 96vh; height: 250px; opacity: 0.5; }

/* Acessibilidade: texto só para leitores de tela e SEO */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Hero ---------- */
.metodo-hero {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 4rem 1.5rem 6rem;
  position: relative;
}
.brand {
  position: relative;
  width: clamp(190px, 22vw, 240px);
  display: grid;
  place-items: center;
  margin-bottom: 0.5rem;
}
.brand-glow {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 75, 176, 0.65) 0%, rgba(29, 75, 176, 0.18) 45%, transparent 70%);
  filter: blur(18px);
  opacity: 0.8;
}
.brand-mark {
  position: relative;
  width: 100%;
  height: auto;
  overflow: visible;
}
/* Marca estática (OS-29); só um brilho discreto varre o símbolo a cada ~5s */
.marca-base { opacity: 0.9; }
.brand-mark .brilho {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  transform: translateX(-140px) skewX(-18deg);
  opacity: 0.85;
  animation: marca-brilho 5.5s ease-in-out 1.6s infinite;
}
@keyframes marca-brilho {
  0% { transform: translateX(-140px) skewX(-18deg); }
  30%, 100% { transform: translateX(460px) skewX(-18deg); }
}

.metodo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.metodo-hero .tagline {
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  max-width: 36ch;
  margin: 0;
}
.scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--azul-claro);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.scroll-hint .chevron {
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--azul-claro);
  border-bottom: 2px solid var(--azul-claro);
  transform: rotate(45deg);
  animation: chevron-down 1.6s ease-in-out infinite;
}
@keyframes chevron-down {
  0%   { transform: translateY(-6px) rotate(45deg); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(8px) rotate(45deg); opacity: 0; }
}

/* ---------- Seções ---------- */
.metodo-section {
  position: relative;
  counter-increment: capitulo;
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 68rem;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Numeral gigante do capítulo, em contorno, atrás do título (textura; oculto para leitores de tela) */
.metodo-section::before {
  content: counter(capitulo, decimal-leading-zero);
  content: counter(capitulo, decimal-leading-zero) / "";
  position: absolute;
  top: 2.4rem;
  left: 0.4rem;
  z-index: -1;
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 11.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(127, 167, 240, 0.17);
  pointer-events: none;
  user-select: none;
}
.metodo-section .kicker {
  color: var(--azul-claro);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}
.metodo-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}
.metodo-section .lead {
  color: var(--ink-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 44ch;
  margin: 0 0 2.5rem;
}
.mono { font-family: var(--font-mono); font-size: 0.8rem; color: var(--azul-claro); }

/* #o-problema — abertura com tensão (OS-29) */
.problema {
  box-sizing: border-box;
  min-height: 100vh;
  max-width: 62rem;
  margin: 0 auto;
  padding: 7rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  text-align: center;
}
.tensao { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.selo { margin: 0; font-family: var(--font-display); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--azul-claro); }
.dor-titulo { font-size: clamp(2.4rem, 5vw, 3.6rem); color: #fff; }
.dor-texto { margin: 0; font-size: clamp(1.2rem, 2.5vw, 1.8rem); font-weight: 500; color: var(--ink); max-width: 38ch; line-height: 1.4; }
.solucao-sub { margin: 0; color: var(--ink-muted); font-size: clamp(1rem, 1.8vw, 1.2rem); max-width: 44ch; line-height: 1.5; }
.tensao-2 {
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  color: #fff;
  max-width: 16ch;
}
.problema-pasta { width: min(260px, 66vw); height: 190px; display: grid; place-items: center; margin-top: 4.5rem; }
.problema-pasta .pasta-icone { max-width: 220px; }

/* Pasta — estado estático; com o motor ativo, as partículas desenham a forma */
.pasta-icone {
  width: 100%;
  max-width: 190px;
  height: auto;
  fill: none;
  stroke: var(--azul-claro);
  stroke-width: 2px;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 10px var(--glow));
  transition: opacity 0.6s;
}
.pasta-icone path { vector-effect: non-scaling-stroke; }
.pasta-fantasma { stroke-dasharray: 6 6; opacity: 0.45; }
.tem-particulas .pasta-icone { opacity: 0; }

/* S2 — a pasta que viaja */
.viagem { display: grid; grid-template-columns: minmax(0, 1fr) 110px minmax(0, 1fr); align-items: center; gap: 1.25rem; }
.caixa {
  position: relative;
  min-height: 270px;
  border-radius: 20px;
  background: rgba(157, 178, 216, 0.035);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  outline: none;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.caixa-rotulo {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--azul-claro);
}
.caixa-rotulo::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--azul-claro); opacity: 0.75; }
.caixa-palco { position: absolute; inset: 3.2rem 1.5rem 1.5rem; display: grid; place-items: center; }
.caixa-palco .pasta-icone { max-width: 170px; }
.caixa.ativa, .caixa.recebeu { border-color: var(--azul-claro); box-shadow: 0 0 46px -12px var(--glow), inset 0 0 34px -20px var(--azul-claro); }
.caixa-origem { cursor: help; }
.caixa-origem:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 4px; }
.caixa-tip {
  position: absolute;
  left: 0;
  top: calc(100% + 0.75rem);
  z-index: 6;
  width: max-content;
  max-width: min(84vw, 30rem);
  padding: 1rem 1.15rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
}
.caixa-origem:hover .caixa-tip,
.caixa-origem:focus-visible .caixa-tip,
.caixa-origem.aberto .caixa-tip { opacity: 1; visibility: visible; transform: none; }
.da-tag { display: block; margin-bottom: 0.5rem; font-size: 0.7rem; }
.tree { font-family: var(--font-mono); font-size: 0.72rem; line-height: 1.55; margin: 0; overflow-x: auto; color: var(--ink); }
.tree .dir { color: var(--azul-claro); }
.tree .note { color: var(--ink-muted); }
.rota { width: 100%; height: auto; fill: none; stroke: var(--azul-claro); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.55; }
.rota path:first-child { stroke-dasharray: 5 6; }

/* S3 — o leque: 5 áreas em arco sobre a pasta aberta; a máquina operacional embaixo */
.leque { position: relative; height: 560px; --s: 1; --dx: -7px; }
.leque-centro {
  position: absolute;
  left: calc(50% + var(--dx));
  top: 61%;
  width: 190px;
  height: 130px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}
.leque-centro .pasta-icone { max-width: 160px; }
.leque-itens { list-style: none; margin: 0; padding: 0; }
.leque-slot {
  position: absolute;
  left: calc(50% + var(--dx) + var(--x) * var(--s));
  top: calc(61% + var(--y) * var(--s));
  transform: translate(-50%, -50%);
}
.leque-slot:nth-child(1) { --x: -362px; --y: -46px; }
.leque-slot:nth-child(2) { --x: -246px; --y: -164px; }
.leque-slot:nth-child(3) { --x: -12px; --y: -244px; }
.leque-slot:nth-child(4) { --x: 232px; --y: -176px; }
.leque-slot:nth-child(5) { --x: 366px; --y: -56px; }
.leque-slot:nth-child(6) { --x: 0px; --y: 172px; }
.slot-maquina::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  height: 38px;
  border-left: 1px dashed rgba(127, 167, 240, 0.55);
}
.tem-particulas .slot-maquina::before { opacity: 0; }
.pilula {
  display: inline-flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 0.1rem;
  padding: 0.7rem 1.5rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
  outline: none;
  cursor: default;
  transition: border-color 0.35s, box-shadow 0.35s;
}
.pilula .q { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; color: var(--ink); }
.pilula .path { font-family: var(--font-mono); font-size: 0.72rem; color: var(--azul-claro); }
.pilula:hover, .pilula:focus-visible {
  border-color: var(--azul-claro);
  box-shadow: 0 0 0 1px rgba(127, 167, 240, 0.25), 0 12px 34px -12px var(--glow), 0 0 26px -6px rgba(127, 167, 240, 0.45);
}
.pilula-maquina {
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
  border: 1px dashed rgba(127, 167, 240, 0.65);
  background: rgba(3, 16, 42, 0.78);
}
.pilula-maquina .path { font-size: 0.82rem; color: var(--ink); letter-spacing: 0.02em; }
.pilula-maquina .q { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; color: var(--azul-claro); letter-spacing: 0.06em; }

/* S4 — o anel */
.anel { position: relative; width: min(600px, 100%); aspect-ratio: 1; margin: 0 auto; --disco: 84px; }
.anel-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.anel-trilho { fill: none; stroke: rgba(127, 167, 240, 0.5); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke-opacity 0.8s; }
.tem-particulas .anel-trilho { stroke-opacity: 0.18; }
.anel-cometa { display: none; }
.tem-movimento .anel-cometa { display: inline; }
.anel-cometa circle { fill: #fff; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #7FA7F0); }
.metodo-section .anel-lead {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  max-width: none;
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  line-height: 1.3;
  color: var(--ink);
}
.anel-nos { list-style: none; margin: 0; padding: 0; }
.no { position: absolute; z-index: 2; transform: translate(-50%, calc(var(--disco) / -2)); }
.no-1 { left: 50%; top: 14%; }
.no-2 { left: 84.24%; top: 38.88%; }
.no-3 { left: 71.16%; top: 79.12%; }
.no-4 { left: 28.84%; top: 79.12%; }
.no-5 { left: 15.76%; top: 38.88%; }
.no-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: help;
  outline: none;
}
.no-num {
  width: var(--disco);
  height: var(--disco);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  border: 2px solid rgba(127, 167, 240, 0.45);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: calc(var(--disco) * 0.46);
  line-height: 1;
  color: var(--azul-claro);
  transition: border-color 0.4s, color 0.4s, box-shadow 0.4s, transform 0.4s;
}
.no-txt { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); white-space: nowrap; }
.no.ativo .no-num {
  border-color: var(--azul-claro);
  color: #fff;
  transform: scale(1.06);
  box-shadow: 0 0 0 7px rgba(127, 167, 240, 0.1), 0 0 34px -2px var(--glow);
}
.no-btn:hover .no-num, .no-btn:focus-visible .no-num { border-color: var(--azul-claro); color: #fff; }
.no-btn:focus-visible .no-num { outline: 2px solid var(--azul-claro); outline-offset: 4px; }
.no-tip {
  position: absolute;
  left: 50%;
  top: calc(100% + 0.5rem);
  z-index: 4;
  padding: 0.45rem 0.8rem;
  font-size: 0.8rem;
  color: var(--ink);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  pointer-events: none;
}
.no-1 .no-tip { top: auto; bottom: calc(100% + 0.5rem); }
.no:hover .no-tip, .no-btn:focus-visible + .no-tip, .no-btn.aberto + .no-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.no-2 .no-tip { left: auto; right: 0; transform: translateY(4px); }
.no-5 .no-tip { left: 0; transform: translateY(4px); }
.no-2:hover .no-tip, .no-2 .no-btn:focus-visible + .no-tip, .no-2 .no-btn.aberto + .no-tip,
.no-5:hover .no-tip, .no-5 .no-btn:focus-visible + .no-tip, .no-5 .no-btn.aberto + .no-tip { transform: none; }

/* ---------- Direção de arte global (OS-29): partículas, spotlight, progresso ---------- */
.particulas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.spotlight {
  position: fixed;
  left: 0;
  top: 0;
  width: 760px;
  height: 760px;
  margin: -380px 0 0 -380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(127, 167, 240, 0.075) 0%, rgba(127, 167, 240, 0.03) 38%, transparent 66%);
  z-index: -1;
  pointer-events: none;
  will-change: transform;
}
.progresso {
  position: fixed;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0.25rem 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s, visibility 0.5s;
}
.progresso.visivel { opacity: 1; visibility: visible; }
.progresso-trilho { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; margin-left: -0.5px; background: rgba(157, 178, 216, 0.18); }
.progresso-preench {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--azul-claro), rgba(127, 167, 240, 0.35));
  transform: scaleY(0);
  transform-origin: top;
}
.progresso-ponto {
  position: relative;
  width: 11px;
  height: 11px;
  padding: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(127, 167, 240, 0.6);
  background: var(--navy-900);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.progresso-ponto::after { content: ""; position: absolute; inset: -8px; }
.progresso-ponto:hover, .progresso-ponto:focus-visible { border-color: var(--azul-claro); transform: scale(1.25); outline: none; }
.progresso-ponto.ativo { background: var(--azul-claro); border-color: var(--azul-claro); box-shadow: 0 0 12px var(--glow), 0 0 4px var(--azul-claro); }
.progresso-rotulo {
  position: absolute;
  right: calc(100% + 0.9rem);
  top: 50%;
  transform: translate(6px, -50%);
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(3, 16, 42, 0.88);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--azul-claro);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.progresso-ponto:hover .progresso-rotulo, .progresso-ponto:focus-visible .progresso-rotulo { opacity: 1; transform: translate(0, -50%); }

.fechamento { text-align: center; align-items: center; }
.fechamento .fechamento-frase {
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6vw, 4.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  max-width: 18ch;
}

/* Diagrama da operação (OS-27) — estado padrão é totalmente visível;
   JS adiciona .anim e controla opacidades quando motion é permitido. */
.diagram-wrap {
  position: relative;
  width: 100%;
  max-width: 56rem;
  margin: 0 auto 2.5rem;
  padding: 1.5rem;
}
.diagram { display: block; width: 100%; height: auto; }

.diagram .edge {
  fill: none;
  stroke: var(--ink-muted);
  stroke-width: 2;
  stroke-opacity: 0.9;
  transition: stroke-opacity 0.4s, stroke 0.4s;
}
.diagram .edge-label {
  font-family: var(--font-mono);
  font-size: 14px;
  fill: var(--azul-claro);
  opacity: 1;
  transition: opacity 0.4s, fill 0.4s;
  paint-order: stroke;
  stroke: var(--navy-900);
  stroke-width: 5px;
  stroke-linejoin: round;
}
.diagram .edge.lit { stroke: var(--azul); stroke-opacity: 1; filter: drop-shadow(0 0 6px var(--glow)); }
.diagram .edge.visited { stroke: var(--azul); stroke-opacity: 0.55; }
.diagram .edge-label.lit { fill: var(--ink); opacity: 1; }
.diagram .viajante { font-family: var(--font-mono); font-size: 14px; fill: var(--ink); text-anchor: middle; opacity: 0; transition: opacity 0.2s; pointer-events: none; paint-order: stroke; stroke: var(--navy-900); stroke-width: 6px; stroke-linejoin: round; }
.diagram .viajante.visivel { opacity: 1; }

#os-packet {
  display: none;
  fill: #fff;
  filter: drop-shadow(0 0 8px var(--glow)) drop-shadow(0 0 3px #fff);
}
.anim #os-packet { display: block; }

.diagram .node { cursor: pointer; outline: none; }
.diagram .node-core { fill: var(--navy-800); stroke-width: 0; }
.diagram .node-ring { fill: none; stroke-width: 2.5; }
.diagram .node-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  fill: var(--ink);
  text-anchor: middle;
}
.diagram .node-role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  fill: var(--ink-muted);
  text-anchor: middle;
}
.node-will .node-ring { stroke: #F0A93B; }
.node-iris .node-ring,
.node-neo .node-ring { stroke: var(--azul); filter: drop-shadow(0 0 8px var(--glow)); }
.node-repo .node-ring { stroke: var(--ink-muted); stroke-dasharray: 5 4; }
.node-github .node-ring { stroke: var(--ink-muted); }
.diagram .node:hover .node-ring,
.diagram .node:focus .node-ring,
.diagram .node:focus-visible .node-ring { stroke-width: 4; }
.diagram .node:focus-visible { outline: 2px solid var(--azul-claro); outline-offset: 4px; }

.diagram-tooltip {
  position: absolute;
  z-index: 20;
  max-width: 280px;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.diagram-tooltip .tip-nome { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.diagram-tooltip .tip-papel { color: var(--azul-claro); font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }
.diagram-tooltip p { margin: 0; }

/* Lenis — recomendação oficial */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Respiro entre secoes (OS-33): o numeral so aparece com a secao no topo da tela */
html.pre-ativa .metodo-section::before { opacity: 0; transition: opacity 0.6s ease; }
html.pre-ativa .metodo-section.capitulo-ativo::before { opacity: 1; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .leque { --s: 0.86; }
}
@media (max-width: 900px) {
  .leque { --s: 0.72; height: 500px; }
  .pilula { padding: 0.6rem 1.1rem 0.65rem; }
  .pilula .q { font-size: 0.98rem; }
}
@media (max-width: 760px) {
  .viagem { grid-template-columns: 1fr; gap: 0.75rem; }
  .rota { width: 56px; justify-self: center; transform: rotate(90deg); }
  .caixa { min-height: 230px; }
  .leque { height: auto; display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
  .leque-centro { position: relative; left: auto; top: auto; transform: none; width: 170px; height: 116px; }
  .leque-itens { width: 100%; display: flex; flex-direction: column; gap: 0.7rem; }
  .leque-slot { position: static; transform: none; display: flex; justify-content: flex-start; padding-left: 3%; }
  .leque-slot:nth-child(even) { justify-content: flex-end; padding: 0 3% 0 0; }
  .leque-slot.slot-maquina { justify-content: center; padding: 0; margin-top: 0.5rem; }
  .slot-maquina::before { display: none; }
  .pilula-maquina { white-space: normal; text-align: center; }
}
@media (max-width: 640px) {
  .metodo-section { padding: 5rem 1.5rem; }
  .problema { padding: 5rem 1.5rem; gap: 1.25rem; }
  .problema-pasta { height: 160px; }
  .anel { --disco: 56px; }
  .metodo-section .anel-lead { width: 46%; font-size: 1rem; }
  .no-txt { font-size: 0.82rem; }
  .no-tip { white-space: normal; width: 10rem; text-align: center; }
  .progresso { display: none; }
  .diagram-wrap { padding: 0.75rem; }
  .diagram .node-name { font-size: 24px; }
  .diagram .node-role { font-size: 22px; letter-spacing: 0.04em; }
  .node-github .node-name { font-size: 20px; }
  .diagram .edge-label, .diagram .viajante { font-size: 24px; }
}

/* ---------- Movimento reduzido: tudo estático e íntegro ---------- */
@media (prefers-reduced-motion: reduce) {
  .brand-mark .brilho { display: none; }
  .marca-base { opacity: 1; }
  .scroll-hint .chevron { animation: none; opacity: 1; }
  .caixa, .caixa-tip, .pilula, .no-num, .no-tip,
  .pasta-icone, .progresso, .progresso-ponto, .progresso-rotulo { transition: none; }
  .no.ativo .no-num { transform: none; }
}

/* Integração Lenis (recomendação oficial): neutraliza o scroll-behavior
   do site.css e a altura fixa do body enquanto o smooth scroll roda. */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
