/* alexandreyuan.com — Direção "Nexo" (docs/design-nexo.md)
   dark premium · dourado · Space Grotesk + IBM Plex Mono · grafo como identidade */

:root {
  --bg: #0B0D11;
  --surface: #131720;
  --line: #1D232E;
  --line-strong: #2A3342;
  --text: #E9ECF2;
  --text-2: #9AA3B2;
  --text-3: #5C6670;
  --gold: #D4AF37;
  --gold-light: #E0C25B;
  --gold-dim: #8C7326;
  --gold-glow: rgba(212, 175, 55, .25);
  --success: #4C9A6B;
  --error: #C25B4E;

  --s-1: 8px;  --s-2: 16px; --s-3: 24px; --s-4: 32px;
  --s-6: 48px; --s-8: 64px; --s-12: 96px; --s-16: 128px;

  --r-btn: 6px;
  --r-card: 10px;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

[data-theme="light"] {
  --bg: #F4F5F7; --surface: #FFFFFF; --line: #E2E5EA; --line-strong: #C9CFD8;
  --text: #14181F; --text-2: #4A525E; --text-3: #7A8391;
  --gold: #7A621C; --gold-light: #8C7326; --gold-dim: #B99A3C;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: var(--gold); }
a:focus-visible, button:focus-visible, input:focus-visible,
.node:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--s-3);
  padding-right: var(--s-3);
}
@media (min-width: 900px) {
  .container { padding-left: var(--s-6); padding-right: var(--s-6); }
}

/* ---------- tipografia ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(44px, 6vw, 69px); line-height: 1.08; }
h2 { font-size: clamp(35px, 4vw, 44px); line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; }

p { text-wrap: pretty; }

/* kicker mono com prefixo // (design-nexo §Tipografia) */
.kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
/* AY-P1: kickers sem o prefixo "//" (sinal de terminal removido) */

/* ---------- para o seu negócio: duas portas (AY-P1) ---------- */
.doors { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 860px) { .doors { grid-template-columns: 1fr 1fr; } }
.door {
  display: flex; flex-direction: column; gap: var(--s-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s-4); color: inherit; text-decoration: none;
  transition: border-color 200ms ease-out;
}
.door:hover { border-color: var(--gold); }
.door__tag { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.door h3 { font-size: 26px; }
.door p { font-size: 17px; color: var(--text-2); flex: 1; }
.door__link { font-family: var(--font-mono); font-size: 15px; color: var(--gold); margin-top: var(--s-1); }

.prose { max-width: 68ch; }
.prose p + p { margin-top: var(--s-3); }

.lead { font-size: 22px; line-height: 1.5; color: var(--text-2); }

.link-draw {
  color: var(--gold);
  text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size 200ms ease-out;
  padding-bottom: 2px;
}
.link-draw:hover { background-size: 100% 1.5px; }

/* ---------- header / wordmark com nó ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  margin-top: var(--s-2);
  padding: var(--s-2) 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-1);
}
.masthead__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  text-transform: lowercase;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
/* nó dourado do wordmark */
.masthead__name::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold-glow);
  flex-shrink: 0;
}
.masthead__nav {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
  gap: var(--s-2);
}
.masthead__nav::-webkit-scrollbar { display: none; }
.masthead__nav a {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--text-2);
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.masthead__nav a:hover { color: var(--text); }
.masthead__nav a.is-active { color: var(--gold); border-bottom-color: var(--gold); }
@media (min-width: 900px) {
  .masthead { flex-direction: row; justify-content: space-between; margin-top: var(--s-3); }
  .masthead__nav { gap: var(--s-3); overflow: visible; }
}

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 26px;
  border-radius: var(--r-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out;
}
.btn--primary { background: var(--gold); color: var(--bg); }
.btn--primary:hover { background: var(--gold-light); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn--outline:hover { border-color: var(--gold-dim); }
.btn--spotify { background: var(--gold); color: var(--bg); }
.btn--spotify:hover { background: var(--gold-light); }

@media (max-width: 560px) {
  .hero__ctas .btn,
  .setembro__ctas .btn,
  .quiz .btn,
  .cartas__form .btn {
    width: 100%;
    text-align: center;
  }
}

/* ---------- badge ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  padding: 7px 14px;
  margin-bottom: var(--s-3);
}
.badge strong { color: var(--gold); font-weight: 500; }

/* ---------- stats bar ---------- */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
  margin-top: var(--s-6);
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  color: var(--gold);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 6px;
}

/* ---------- hero ---------- */
.hero { padding: var(--s-8) 0; }
@media (min-width: 900px) { .hero { padding: var(--s-12) 0; } }
.hero__grid { display: grid; gap: var(--s-6); align-items: center; }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 7fr 4fr; gap: var(--s-8); }
}
.hero h1 { margin: var(--s-3) 0 var(--s-4); }
.hero h1 .em { color: var(--gold); }
.hero__sub { max-width: 52ch; font-size: 20px; color: var(--text-2); margin-bottom: var(--s-6); }
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); }

/* retrato dentro de nó circular (design-nexo §Imagética) */
.portrait {
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid var(--gold);
  box-shadow: 0 0 48px var(--gold-glow);
  overflow: hidden;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-2);
  background: var(--surface);
}
.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
}

/* ---------- seções ---------- */
.section { padding: var(--s-12) 0; }
/* um fundo por página: --alt diferencia por filete, não por cor */
.section--alt { background: transparent; }
.section__head { margin-bottom: var(--s-6); }
.section__head h2 { margin-top: var(--s-2); }
.section__opening { border-top: 1px solid var(--line-strong); padding-top: var(--s-3); }

/* ---------- manifesto ---------- */
.manifesto-curto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 35px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 30ch;
}
.manifesto-curto .em { color: var(--gold); }
.assinatura {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: var(--s-4);
}

blockquote {
  background: var(--surface);
  border-left: 2px solid var(--gold-dim);
  padding: var(--s-3) var(--s-4);
  color: var(--text-2);
  margin: var(--s-4) 0;
  border-radius: var(--r-card);
}

.pull {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 600;
  line-height: 1.3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--s-4) 0;
  margin: var(--s-6) 0 0;
}
.pull .em { color: var(--gold); }

.beliefs { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.belief {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex;
  gap: var(--s-3);
  transition: border-color 200ms ease-out;
}
.belief:hover { border-color: var(--gold-dim); }
.belief__num {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--gold);
  line-height: 1.5;
}
.belief h3 { margin-bottom: var(--s-1); font-size: 21px; }
.belief p { color: var(--text-2); font-size: 17px; }

/* ---------- caminhos (escada) ---------- */
.offers { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color 200ms ease-out;
}
.offer:hover { border-color: var(--gold-dim); }
.offer--destaque { border: 1.5px solid var(--gold); }
.offer__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-2); }
.offer__num { font-family: var(--font-mono); font-size: 20px; color: var(--gold); }
.offer__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.offer h3 { font-size: 26px; }
.offer > p { font-size: 17px; color: var(--text-2); flex: 1; }
.offer__features {
  list-style: none;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-2);
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  border-top: 1px solid var(--line);
  padding-top: var(--s-2);
}
.offer__features li::before { content: "— "; color: var(--gold-dim); }
.offer .btn { align-self: flex-start; margin-top: var(--s-2); }

/* ---------- mapa de conexões (grafo-identidade) ---------- */
.map-wrap {
  margin: var(--s-6) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.map-svg { width: 100%; min-width: 680px; height: auto; display: block; }
@media (min-width: 760px) { .map-svg { min-width: 0; } }

.map-svg .edge {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  fill: none;
  transition: opacity 200ms ease-out, stroke 200ms ease-out;
}
.map-svg .node circle {
  fill: var(--surface);
  stroke: var(--gold-dim);
  stroke-width: 2;
  transition: fill 200ms ease-out, stroke 200ms ease-out, opacity 200ms ease-out;
  cursor: pointer;
}
/* pulso dessincronizado dos nós (design-nexo §Motion) */
.map-svg .node circle {
  animation: node-pulse 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
.map-svg .node:nth-of-type(odd) circle { animation-delay: 1.3s; }
.map-svg .node:nth-of-type(3n) circle { animation-delay: 2.6s; }
@keyframes node-pulse {
  0%, 100% { stroke-opacity: .55; }
  50% { stroke-opacity: 1; }
}
.map-svg .node.is-active circle,
.map-svg .node:hover circle { fill: var(--gold); stroke: var(--gold); }
.map-svg .node.is-active text,
.map-svg .node:hover text { fill: var(--bg); }
.map-svg .node text {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  fill: var(--text);
  text-anchor: middle;
  pointer-events: none;
  text-transform: lowercase;
  transition: fill 200ms ease-out;
}
.map-svg .node--center circle { fill: var(--gold); stroke: var(--gold); box-shadow: 0 0 24px var(--gold-glow); }
.map-svg .node--center text { fill: var(--bg); font-weight: 500; }
.map-svg .dim { opacity: 0.25; }
.map-hint {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-3);
  margin-top: var(--s-2);
}

/* ---------- provas / trabalhos ---------- */
.proofs { display: grid; gap: var(--s-3); margin-top: var(--s-6); }
@media (min-width: 700px) { .proofs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .proofs { grid-template-columns: 1fr 1fr 1fr; } }

.proof {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  transition: border-color 200ms ease-out;
}
.proof:hover { border-color: var(--gold-dim); }
.proof.is-hidden { display: none; }
.proof__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.proof__kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.proof:hover .proof__kicker::before { box-shadow: 0 0 8px var(--gold-glow); }
.proof h3 { font-size: 22px; }
.proof p { font-size: 17px; color: var(--text-2); flex: 1; }
.proof__link {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--gold);
  text-decoration: none;
}
a.proof__link:hover { text-decoration: underline; }
span.proof__link { color: var(--text-3); }

/* ---------- jornada (linha dourada vertical) ---------- */
.act {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--s-3);
  padding: var(--s-6) 0;
  position: relative;
}
@media (min-width: 900px) {
  .act { grid-template-columns: 140px 1fr; gap: var(--s-6); }
}
/* linha vertical conectando os atos */
.act::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.act:first-of-type::before { top: var(--s-6); }
.act:last-of-type::before { bottom: auto; height: var(--s-6); }
@media (min-width: 900px) { .act::before { left: 28px; } }
.act__numeral {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.4;
  color: var(--bg);
  background: var(--gold);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 16px var(--gold-glow);
}
@media (min-width: 900px) {
  .act__numeral {
    width: 56px;
    height: 56px;
    font-size: 26px;
    position: sticky;
    top: var(--s-4);
    align-self: start;
  }
}
.act__title { font-size: 24px; margin-bottom: var(--s-2); }
.act__body { max-width: 68ch; }
.act__body p + p { margin-top: var(--s-3); }
.act q { color: var(--gold-light); quotes: '"' '"'; }

.anchor-quote {
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
  padding: var(--s-6) 0;
  margin-top: var(--s-6);
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  line-height: 1.45;
  color: var(--text);
}
.anchor-quote .byline {
  display: block;
  margin-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* ---------- setembro (glow dourado radial) ---------- */
.setembro {
  position: relative;
  padding: var(--s-16) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(212, 175, 55, .10), transparent 70%);
}
.setembro__grid { display: grid; gap: var(--s-6); }
.setembro__grid > * { min-width: 0; }
@media (min-width: 900px) {
  .setembro__grid { grid-template-columns: 5fr 7fr; gap: var(--s-8); align-items: center; }
}
.album-cover {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}
.setembro h2 { font-size: clamp(44px, 5vw, 55px); }
.setembro__meta {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: var(--s-3) 0 var(--s-4);
}
.setembro__meta #countdown { color: var(--gold); }
.setembro__body { max-width: 60ch; color: var(--text-2); margin-bottom: var(--s-4); }
.setembro__ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* waveform decorativa (design-nexo §Player) */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin-bottom: var(--s-4);
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.waveform span { flex-shrink: 0; }
.waveform span {
  width: 3px;
  border-radius: 2px;
  background: var(--line-strong);
}
.waveform span.played { background: var(--gold); }
.waveform span.buffer { background: var(--gold-dim); }

/* ---------- quiz CTA ---------- */
.quiz {
  padding: var(--s-12) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 50% 70% at 50% 50%, rgba(212, 175, 55, .07), transparent 70%);
}
.quiz h2 { margin-bottom: var(--s-4); }
.quiz p { color: var(--text-2); max-width: 52ch; margin: 0 auto var(--s-4); }

/* ---------- cartas / newsletter ---------- */
.cartas { padding: var(--s-12) 0; }
.cartas__grid { display: grid; gap: var(--s-6); align-items: center; }
.cartas__grid > * { min-width: 0; }
@media (min-width: 900px) {
  .cartas__grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); }
}
.cartas__photo {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.cartas__photo img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.85);
}
.cartas__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
  max-width: 560px;
}
.cartas__form input[type="email"] {
  flex: 1;
  min-width: 240px;
  font-family: var(--font-display);
  font-size: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
  color: var(--text);
  min-height: 44px;
}
.cartas__form input[type="email"]::placeholder { color: var(--text-3); }
.form-msg { font-family: var(--font-display); font-size: 16px; margin-top: var(--s-2); display: none; }
.form-msg.is-ok { display: block; color: var(--success); }
.form-msg.is-err { display: block; color: var(--error); }
.microcopy { font-family: var(--font-mono); font-size: 14px; color: var(--text-3); }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line-strong);
  margin-top: var(--s-8);
  padding: var(--s-8) 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6) var(--s-4);
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer .byline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  text-transform: lowercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer .byline::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.footer__desc { font-size: 16px; color: var(--text-2); max-width: 34ch; margin-top: var(--s-2); }
.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-2);
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: var(--s-1); }
.footer__col a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-2);
  text-decoration: none;
}
.footer__col a:hover { color: var(--gold); }
.footer__legal {
  border-top: 1px solid var(--line);
  margin-top: var(--s-6);
  padding-top: var(--s-3);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  justify-content: space-between;
}

/* ---------- reveals ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); }
html.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 320ms ease-out, transform 320ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .map-svg .node circle { animation: none; }
  .map-svg .edge { stroke-dashoffset: 0 !important; stroke-dasharray: none !important; }
}

/* ================= SITE-3: motion + costura (2026-07-20) ================= */

/* hero: grafo ambiente em canvas atrás do conteúdo */
.hero { position: relative; }
.hero > * { position: relative; z-index: 1; }
.hero .hero-net {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none; opacity: .45;
}

/* diário de operação (terminal vivo) */
.oplog {
  margin-top: var(--s-4);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.7;
  min-height: 44px;
}
.oplog__label { font-size: 10.5px; letter-spacing: .08em; color: var(--text-3); opacity: .7; }
.oplog__prompt { color: var(--gold); }
#oplog-text { color: var(--text-2); }
.oplog__cursor { color: var(--gold); animation: oplog-blink 1.1s steps(1) infinite; }
@keyframes oplog-blink { 50% { opacity: 0; } }

/* frase-arquitetura do manifesto */
.manifesto-arq {
  font-size: 19px;
  color: var(--text-2);
  max-width: 62ch;
  margin-top: var(--s-3);
}
.manifesto-arq a { text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.manifesto-arq a:hover { border-bottom-color: var(--gold); }

@media (prefers-reduced-motion: no-preference) {
  /* fluxo contínuo nas linhas do mapa (IA -> domínios) */
  .map-svg .edge.flow {
    stroke-dasharray: 4 12;
    animation: edge-flow 1.8s linear infinite;
  }
  @keyframes edge-flow { to { stroke-dashoffset: -16; } }

  /* reveals escalonados dentro de grades */
  .offers .offer.reveal:nth-child(2), .beliefs .belief.reveal:nth-child(2),
  #proofs-grid .proof.reveal:nth-child(2), .stats .stat:nth-child(2) { transition-delay: .08s; }
  .offers .offer.reveal:nth-child(3), .beliefs .belief.reveal:nth-child(3),
  #proofs-grid .proof.reveal:nth-child(3), .stats .stat:nth-child(3) { transition-delay: .16s; }
  .offers .offer.reveal:nth-child(4), .beliefs .belief.reveal:nth-child(4),
  #proofs-grid .proof.reveal:nth-child(4), .stats .stat:nth-child(4) { transition-delay: .24s; }
  #proofs-grid .proof.reveal:nth-child(5) { transition-delay: .32s; }
  #proofs-grid .proof.reveal:nth-child(6) { transition-delay: .40s; }

  /* waveform respirando em idle */
  .waveform span {
    transform-origin: bottom;
    animation: wf-breathe 2.6s ease-in-out infinite;
  }
  .waveform span:nth-child(5n+1) { animation-delay: 0s; }
  .waveform span:nth-child(5n+2) { animation-delay: .35s; }
  .waveform span:nth-child(5n+3) { animation-delay: .7s; }
  .waveform span:nth-child(5n+4) { animation-delay: 1.05s; }
  .waveform span:nth-child(5n)   { animation-delay: 1.4s; }
  @keyframes wf-breathe {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(.72); }
  }
}

/* ================= SITE-4: mobile-first (menu sanduiche + chips do mapa) ================= */

/* botão hambúrguer */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong); border-radius: var(--r-btn);
  width: 44px; height: 40px; padding: 10px 11px; cursor: pointer;
  flex-direction: column; justify-content: space-between; align-items: stretch;
}
.nav-toggle span {
  display: block; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 220ms ease, opacity 180ms ease;
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .masthead {
    flex-direction: row; justify-content: space-between; align-items: center;
    position: relative;
  }
  .nav-toggle { display: flex; }
  .masthead__nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 40;
    flex-direction: column; gap: 0;
    background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-card);
    margin-top: 8px; padding: 8px;
    overflow: visible; white-space: normal;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .55);
  }
  .masthead__nav.is-open { display: flex; }
  .masthead__nav a {
    padding: 14px 12px; border-bottom: 1px solid var(--line);
    font-size: 15px;
  }
  .masthead__nav a:last-child { border-bottom: 0; }
  .masthead__nav a.is-active { border-bottom-color: var(--line); }
}

/* chips de filtro (substituem o mapa no mobile) */
.map-chips { display: none; }
@media (max-width: 759px) {
  .map-wrap { display: none; }
  .map-chips {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-top: var(--s-4);
  }
}
.chip {
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .04em;
  color: var(--text-2); background: var(--bg);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.chip.is-active {
  color: var(--bg); background: var(--gold); border-color: var(--gold); font-weight: 600;
}

/* ================= SITE-5: workers por seção ================= */

/* chip de operação (assinatura do método) */
.opchip {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .05em;
  color: var(--text-3); text-transform: lowercase;
  flex-wrap: wrap;
}
.opdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); align-self: center; flex-shrink: 0;
}
.opchip__more {
  display: block; flex-basis: 100%;
  max-height: 0; overflow: hidden; opacity: 0;
  color: var(--text-3);
  transition: max-height 300ms ease, opacity 300ms ease;
}
.proof:hover .opchip__more { max-height: 3em; opacity: 1; }
.proof .opchip { margin: 6px 0 4px; }
.offer .opchip { margin: 2px 0 8px; }

@media (prefers-reduced-motion: no-preference) {
  .opdot { animation: opdot-pulse 2.8s ease-in-out infinite; }
  @keyframes opdot-pulse {
    0%, 100% { opacity: .45; box-shadow: 0 0 0 0 rgba(212,175,55,0); }
    50% { opacity: 1; box-shadow: 0 0 8px 1px rgba(212,175,55,.35); }
  }
}

/* caminhos: a porta se abre (borda dourada cresce no hover) */
.offer { position: relative; overflow: hidden; }
.offer::after {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px; background: var(--gold);
  transform: scaleY(0); transform-origin: top;
  transition: transform 320ms ease;
}
.offer:hover::after { transform: scaleY(1); }

/* manifesto: sublinhado sequencial tese -> método -> produto */
.arq-u {
  background-image: linear-gradient(var(--gold-dim), var(--gold-dim));
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 0% 1px; padding-bottom: 2px;
}
.manifesto-arq a.arq-u { border-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .manifesto-arq.is-in .u1 { transition: background-size 500ms ease 200ms; background-size: 100% 1px; }
  .manifesto-arq.is-in .u2 { transition: background-size 500ms ease 800ms; background-size: 100% 1px; }
  .manifesto-arq.is-in .u3 { transition: background-size 500ms ease 1400ms; background-size: 100% 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .arq-u { background-size: 100% 1px; }
}

/* jornada: trilho que se desenha por ato + numeral acende */
.act { position: relative; }
.act::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: -6px;
  width: 1.5px; background: var(--line-strong);
  transform: scaleY(0); transform-origin: top;
}
.act .act__numeral { transition: color 500ms ease 350ms; }
@media (prefers-reduced-motion: no-preference) {
  .act.is-in::before { transition: transform 700ms ease; transform: scaleY(1); }
  .act.is-in .act__numeral { color: var(--gold); }
}
@media (prefers-reduced-motion: reduce) {
  .act::before { transform: scaleY(1); }
}

/* quiz: sheen periódico no CTA principal */
@media (prefers-reduced-motion: no-preference) {
  .quiz .btn--primary { position: relative; overflow: hidden; }
  .quiz .btn--primary::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 40%;
    left: -60%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
    animation: btn-sheen 6s ease-in-out infinite;
  }
  @keyframes btn-sheen {
    0%, 82% { left: -60%; }
    92%, 100% { left: 130%; }
  }
}

/* cartas: botão vira check no sucesso */
.btn.is-done { background: var(--success); border-color: var(--success); color: #fff; }

/* badge do hero (AY-P0): abaixo dos CTAs, discreto, linka #setembro */
.badge--hero { margin: var(--s-4) 0 0; text-decoration: none; }
.badge--hero:hover { border-color: var(--gold); }
