html { scroll-behavior: smooth; }
body { background: var(--ground-deep); }

/* o fundo É o sinal: canvas leve atrás de tudo */
#field { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* estática suave, nada agressiva, sobre todo o campo */
.field-noise {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.07; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
  background-size: 150px 150px;
}
@media (prefers-reduced-motion: no-preference) { .field-noise { animation: fieldStatic 1.3s steps(1) infinite; } }
@keyframes fieldStatic { 0%{opacity:.066;background-position:0 0} 20%{opacity:.039;background-position:-20px 12px} 40%{opacity:.077;background-position:14px -16px} 60%{opacity:.033;background-position:22px 18px} 80%{opacity:.072;background-position:-12px -8px} 100%{opacity:.066;background-position:0 0} }
.field-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(135% 100% at 50% 32%, transparent 42%, var(--ground-deep) 100%); }

.frame { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.frame .corner { position: absolute; width: 16px; height: 16px; border: 1px solid var(--line); }
.frame .tl { top: 14px; left: 14px; border-right: 0; border-bottom: 0; }
.frame .tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.frame .bl { bottom: 14px; left: 14px; border-right: 0; border-top: 0; }
.frame .br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 32;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem clamp(1.6rem, 4vw, 3rem); pointer-events: none;
  background: linear-gradient(180deg, var(--ground-deep) 35%, transparent);
}
.top .grp { display: flex; align-items: center; gap: 0.7rem; pointer-events: auto; }
.top a.home { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em; color: var(--ink-mute); text-transform: uppercase; transition: color var(--fast); }
.top a.home:hover { color: var(--sun); }
.top .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 10px 1px var(--sun-glow); animation: breathe 5.2s var(--ease-in-out) infinite; }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.85);} 50% { opacity: 1; transform: scale(1.12);} }
.top b { font-family: var(--serif); font-weight: 500; font-size: 0.96rem; }

/* .eixo (visual) vive em shared/base.css; aqui só o breakpoint do ruído */
@media (max-width: 880px) { .eixo { display: none; } }

main { position: relative; z-index: 10; }
.act { max-width: var(--max); margin: 0 auto; padding-inline: clamp(1.6rem, 5vw, 4.5rem); }
.reveal { opacity: 1; }
.reveal.in { animation: riseIn .9s var(--ease) both; }
.reveal.d1.in { animation-delay: .08s; } .reveal.d2.in { animation-delay: .16s; } .reveal.d3.in { animation-delay: .24s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.capa { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; padding-block: 7rem 3rem; }
.capa .eyebrow { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.capa .eyebrow .tick { width: 3rem; height: 1px; background: var(--line-soft); }
.verbete { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-soft); }
.capa h1 { font-family: var(--serif); font-weight: 300; letter-spacing: -0.025em; font-size: clamp(3rem, 8.5vw, 7.6rem); line-height: 0.92; }
.capa h1 em { font-style: italic; color: var(--sun); }
.capa .verb2 { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.6vw, 2.2rem); color: var(--ink); line-height: 1.2; max-width: 30ch; }
.capa .lead { margin-top: 2.2rem; max-width: 60ch; display: grid; gap: 1.5rem; }
.capa .lead p { color: var(--ink-soft); font-size: clamp(1.05rem, 1.5vw, 1.22rem); line-height: 1.65; }
.capa .lead p b { color: var(--ink); font-weight: 500; }
.capa .lead p em { color: var(--ink); font-style: italic; }
.cue { margin-top: 2.8rem; display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--mono); font-size: var(--meta-size); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.cue .dotp { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: recPulse 2.2s var(--ease-in-out) infinite; }
@keyframes recPulse { 0%,100% { box-shadow: 0 0 0 0 oklch(0.86 0.15 75 / 0.4); opacity: .6; } 50% { box-shadow: 0 0 0 7px oklch(0.86 0.15 75 / 0); opacity: 1; } }

.actlabel { display: flex; align-items: baseline; gap: 1.2rem; margin-bottom: 2.4rem; }
.actlabel .ix { font-family: var(--mono); font-size: 0.78rem; color: var(--sun-soft); letter-spacing: 0.08em; }
.actlabel h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -0.01em; }
.actlabel .rule { flex: 1; height: 1px; background: var(--line-soft); align-self: center; }

/* feed: devaneios espalhados numa constelação, ligados por uma teia viva */
.feed { padding-block: 3rem 5rem; }
.thread {
  position: relative; margin-top: 2.6rem;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.6rem, 7vh, 4.5rem) clamp(2.4rem, 6vw, 5rem);
  align-items: start;
  padding-bottom: clamp(2rem, 6vh, 4rem);
}
/* escalonamento: a coluna direita desce meio passo */
.frag:nth-of-type(2), .frag:nth-of-type(6) { margin-top: clamp(3rem, 10vh, 6rem); }
.thread__links { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
/* arestas em repouso: sinal frio, calmo, tracejado */
.thread__links .ln { fill: none; stroke: oklch(0.82 0.065 232 / 0.2); stroke-width: 1; stroke-dasharray: 3 7;
  transition: stroke var(--base) var(--ease), opacity var(--base) var(--ease), stroke-width var(--base) var(--ease); }
/* aresta acesa (card sob o cursor): âmbar + estática tremida (ruído no sinal) */
.thread__links .ln.acesa { stroke: var(--sun); stroke-width: 1.6; stroke-dasharray: 2 5;
  filter: url(#sig-noise); }
.thread__links .trav { fill: var(--sun); }
.thread__links .travglow { fill: oklch(0.86 0.15 75 / 0.5); }

.frag { position: relative; z-index: 1; max-width: 36rem;
  background: oklch(0.2 0.013 256 / 0.82); border: 1px solid var(--line-faint);
  padding: clamp(1.4rem, 2.4vw, 2rem); display: grid; gap: 0.85rem; align-content: start; cursor: pointer; overflow: hidden;
  backdrop-filter: blur(3px); transition: background var(--base), border-color var(--base), transform var(--base) var(--ease), box-shadow var(--base) var(--ease); }
/* hover: levanta de leve e "chega pra frente" (sobe + cresce pouquinho) */
.frag:hover { background: oklch(0.225 0.013 255 / 0.92); border-color: oklch(0.83 0.135 72 / 0.4); transform: translateY(-6px) scale(1.02); box-shadow: 0 30px 60px -30px oklch(0 0 0 / 0.85); z-index: 4; }
/* card aberto: sobe e fica opaco, crescendo limpo por cima da teia/vizinhos */
.frag.open { z-index: 6; background: oklch(0.215 0.013 256 / 0.97); border-color: oklch(0.83 0.135 72 / 0.34); box-shadow: 0 30px 60px -34px oklch(0 0 0 / 0.85); }
/* fallback / mobile: pilha vertical limpa, sem teia */
@media (max-width: 700px) {
  .thread { min-height: auto; display: flex; flex-direction: column; gap: clamp(1.6rem, 5vh, 3rem); }
  .frag { position: static !important; left: auto !important; top: auto !important; width: 100% !important; }
  .thread__links { display: none; }
}
.frag__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--mono); font-size: var(--meta-size); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-mute); }
.frag__top .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex-shrink: 0; animation: recPulse 2.6s var(--ease-in-out) infinite; }
.frag:nth-child(2) .pulse { animation-delay: .5s; } .frag:nth-child(3) .pulse { animation-delay: 1s; }
.frag:nth-child(4) .pulse { animation-delay: 1.5s; } .frag:nth-child(5) .pulse { animation-delay: 2s; }
.frag h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.4rem, 2.2vw, 1.95rem); line-height: 1.08; letter-spacing: -0.01em; transition: color var(--base); }
.frag:hover h3, .frag.open h3 { color: var(--sun); }
.frag .sum { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.55; }
.frag .det { color: var(--ink-mute); font-size: 0.96rem; line-height: 1.6; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease), opacity .5s var(--ease), margin-top .5s var(--ease); }
.frag .det em { color: var(--ink-soft); font-style: italic; }
.frag.open .det { max-height: 14rem; opacity: 1; margin-top: 0.2rem; }
.frag__tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.2rem; }
.frag__tags span { font-family: var(--mono); font-size: var(--meta-size); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); border: 1px solid var(--line-faint); padding: 0.22rem 0.55rem; }
.frag--xadrez::after { content:""; position: absolute; top: -1px; right: -1px; width: 64px; height: 64px; opacity: 0.5; pointer-events: none;
  background-image:
    linear-gradient(45deg, oklch(0.83 0.135 72 / 0.14) 25%, transparent 25%, transparent 75%, oklch(0.83 0.135 72 / 0.14) 75%),
    linear-gradient(45deg, oklch(0.83 0.135 72 / 0.14) 25%, transparent 25%, transparent 75%, oklch(0.83 0.135 72 / 0.14) 75%);
  background-size: 16px 16px; background-position: 0 0, 8px 8px;
  -webkit-mask-image: linear-gradient(225deg, #000, transparent 80%); mask-image: linear-gradient(225deg, #000, transparent 80%); }

.pullquote { margin: clamp(5rem, 12vh, 9rem) auto; max-width: 34ch; text-align: center; }
.pullquote .glyph { font-family: var(--serif); font-size: 2.4rem; color: var(--sun-soft); line-height: 0; }
.pullquote p { font-family: var(--serif); font-weight: 300; font-style: italic; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.24; letter-spacing: -0.01em; color: var(--ink); margin: 1.2rem 0; }
.pullquote p b { font-style: normal; color: var(--sun); font-weight: 400; }

.colofao { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; padding-block: 4rem 7rem; }
.colofao .statement { max-width: 50ch; font-family: var(--serif); font-weight: 300; font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.35; color: var(--ink-soft); }
.colofao .statement b { color: var(--ink); font-weight: 500; }
.colofao .statement em { color: var(--sun); font-style: italic; }
.colofao .sig { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid var(--line-faint); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-family: var(--mono); font-size: var(--meta-size); letter-spacing: 0.14em; color: var(--ink-faint); text-transform: uppercase; }
.colofao .sig a { color: var(--ink-mute); transition: color var(--fast); }
.colofao .sig a:hover { color: var(--sun); }

/* ---- logo de fundo (canto inferior esquerdo, fixo) ---- */
.logo-bg {
  position: fixed; bottom: 5%; left: 3%; right: auto;
  width: clamp(8vw, 9.6vw, 12.6vw);
  opacity: 0.045; pointer-events: none; z-index: 2;
  user-select: none; -webkit-user-select: none;
}
/* ---- nav global ---- */
.obs-top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 32;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.7rem clamp(1.4rem, 3.5vw, 2.6rem);
  background: oklch(0.19 0.014 257 / 0.8);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-faint);
}
.obs-top .grp { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; }
.obs-top { transition: background 0.5s var(--ease); }
.obs-top.scrolling { background: oklch(0.19 0.014 257 / 0.25); }
.logo-mark { height: 48px; width: auto; display: block; opacity: 0.9; flex-shrink: 0; }
.logo-mark--sm { height: 20px; width: auto; display: block; opacity: 0.5; flex-shrink: 0; }
.obs-top b { font-family: var(--serif); font-weight: 500; font-size: 0.96rem; text-transform: uppercase; letter-spacing: 0.06em; }
.obs-nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.2vw, 1.2rem); }
.obs-nav__link { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); transition: color 0.18s; white-space: nowrap; text-decoration: none; }
.obs-nav__link:hover { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.obs-nav__link.active { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.obs-nav__link[href="digital-artisan.html"] { color: var(--sun); }
@media (max-width: 860px) {
  .obs-top { flex-wrap: wrap; }
  .obs-nav { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0.4rem; scrollbar-width: none; }
  .obs-nav::-webkit-scrollbar { display: none; }
}
.obs-top .site-name { display: flex; flex-direction: column; justify-content: space-between; height: 48px; font-family: var(--mono); font-weight: 300; font-size: 0.60rem; letter-spacing: 0.15em; text-transform: uppercase; line-height: 1; gap: 0; }

/* ====================== ajustes v2: o sinal chia ao ser tocado ====================== */
.frag { position: relative; }
.frag::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 150px 150px; mix-blend-mode: soft-light;
}
@media (prefers-reduced-motion: no-preference) {
  .frag:hover::after, .frag:focus-visible::after { animation: fragStatic 0.8s steps(1) infinite; }
}
@keyframes fragStatic {
  0% { opacity: 0.16; background-position: 0 0; }
  25% { opacity: 0.07; background-position: -18px 12px; }
  50% { opacity: 0.18; background-position: 14px -14px; }
  75% { opacity: 0.06; background-position: 20px 16px; }
  100% { opacity: 0.14; background-position: 0 0; }
}

/* ====================== ajustes v3: sinais com formas próprias ====================== */
/* berro — a frase solta, sem caixa: só a voz */
.frag--berro { grid-column: 1 / -1; justify-self: center; max-width: 36ch; text-align: center;
  background: none; border: 0; box-shadow: none; cursor: default; padding: clamp(1rem, 3vh, 2rem) 0; }
.frag--berro .frag__top { justify-content: center; gap: 0.7rem; }
.berro__text { font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.berro__text b { font-style: normal; font-weight: 400; color: var(--sun); }

/* som — a faixa que está tocando, com equalizador vivo */
.frag--som { grid-column: 1 / -1; justify-self: end; width: min(36rem, 86%);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: 1.1rem; row-gap: 0.3rem; align-items: center; cursor: default;
  padding: 1.1rem 1.4rem; }
.frag--som .pulse { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.som__k { grid-column: 2; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-soft); }
.som__t { grid-column: 2; font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.2; color: var(--ink); }
.som__a { grid-column: 2; font-family: var(--mono); font-size: var(--meta-size); letter-spacing: 0.08em; color: var(--ink-mute); }
.eq { grid-column: 3; grid-row: 1 / span 3; display: inline-flex; gap: 3px; align-items: flex-end; height: 16px; align-self: center; }
.eq i { width: 3px; height: 30%; background: var(--sun); opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .eq i { animation: eqBar 1.05s var(--ease-in-out) infinite; }
  .eq i:nth-child(2) { animation-delay: 0.18s; } .eq i:nth-child(3) { animation-delay: 0.36s; }
  .eq i:nth-child(4) { animation-delay: 0.54s; } .eq i:nth-child(5) { animation-delay: 0.72s; }
}
@keyframes eqBar { 0%, 100% { height: 26%; } 35% { height: 95%; } 65% { height: 48%; } }

/* risco — o rabisco carimbado, torto de propósito */
.frag--risco { grid-column: 1 / -1; justify-self: center; width: fit-content; max-width: 34rem;
  display: flex; align-items: center; gap: 1.1rem; cursor: default;
  background: none; border: 1px dashed oklch(0.8 0.02 250 / 0.25); transform: rotate(-1.2deg);
  padding: 1rem 1.4rem; }
.risco__text { font-family: var(--mono); font-size: clamp(0.82rem, 1.2vw, 0.95rem); letter-spacing: 0.04em; color: var(--ink-soft); }
.carimbo { flex: 0 0 auto; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sun-soft); border: 1px solid oklch(0.83 0.135 72 / 0.45); padding: 0.3rem 0.55rem; transform: rotate(2.4deg); }

/* formas soltas não levantam como cards */
.frag--berro:hover, .frag--som:hover, .frag--risco:hover { transform: none; }
.frag--risco:hover { transform: rotate(-1.2deg); }

@media (max-width: 700px) {
  .frag--berro, .frag--som, .frag--risco { width: 100% !important; justify-self: stretch; }
  .frag--som { justify-self: stretch; }
  .frag:nth-of-type(2), .frag:nth-of-type(6) { margin-top: 0; }
}
