/* Universo Amardura · identidade feita no Mercúrio Estúdio.
   Terra, folha, água e off-white. O manual usa Courier New; a página usa Courier Prime, livre e parecida. */
.u-amardura {
  --a-terra: #B54522; --a-folha: #406919; --a-agua: #283776; --a-fundo: #FFECBD; --a-tinta: #4a2a1c;
  --a-mono: "Courier Prime", "Courier New", Courier, monospace;
  --a-ease: cubic-bezier(.16, 1, .3, 1);
  --papel: var(--a-fundo); --tinta: var(--a-terra); --suave: #6b4a3a; --cinza: #8a6a58; --linha: #ecd3a0; --ac: var(--a-terra);
  background: var(--a-fundo); color: var(--a-terra);
}
.u-amardura .cta-final, .u-amardura .universo-pe { padding-inline: var(--mx); max-width: var(--larg); margin-inline: auto; }
.u-amardura .universo-pe { padding-top: 40px; }

.am { font-family: var(--a-mono); overflow: clip; }
.am p { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.65; margin: 0 0 1em; max-width: 52ch; color: var(--a-tinta); }
.am b { font-weight: 700; color: var(--a-terra); }
.am h2 { font: 400 clamp(28px, 3.8vw, 54px)/1.1 var(--a-mono); letter-spacing: -.02em; margin: 0; color: var(--a-terra); }
.am-num { font: 700 12px/1 var(--a-mono) !important; letter-spacing: .16em; text-transform: uppercase; color: var(--a-folha) !important; margin: 0 0 22px !important; }
.am-sec { padding: clamp(56px, 7vw, 104px) var(--mx); max-width: var(--larg); margin-inline: auto; }
.am-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 20px clamp(32px, 6vw, 100px); align-items: start; }
.am-duas > :last-child { padding-top: .3em; }
.am svg { display: block; overflow: visible; }
[data-svg] svg { width: 100%; height: auto; }
[data-svg] path[fill] { fill: currentColor; }
[data-svg] path[stroke] { stroke: currentColor; }

/* aparecer */
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--a-ease), transform .9s var(--a-ease); }
[data-rv].visto { opacity: 1; transform: none; }

/* anéis crescem do centro: cada anel com seu atraso (--i) */
[data-cresce] .anel { transform-box: view-box; transform-origin: var(--ox) var(--oy); transform: scale(.05); opacity: 0; transition: transform 1.6s var(--a-ease), opacity .6s; transition-delay: calc(var(--i) * 110ms); }
[data-cresce].cresceu .anel { transform: none; opacity: 1; }
[data-cresce] .letra { opacity: 0; transform: translateY(14px); transition: opacity 1s, transform 1s var(--a-ease); transition-delay: calc(700ms + var(--i) * 60ms); }
[data-cresce].cresceu .letra { opacity: 1; transform: none; }

/* ABERTURA */
.am-abre { min-height: 100svh; display: grid; place-items: center; align-content: center; gap: 28px; padding: 110px var(--mx) 80px; text-align: center; position: relative; }
.am-rot { position: absolute; top: 96px; left: var(--mx); margin: 0 !important; font: 400 12px/1 var(--a-mono) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--cinza) !important; }
.am-rot a { color: inherit; }
.am-logo { width: min(520px, 76vw); margin: 0; color: var(--a-terra); }
.am-sub { margin: 0 auto !important; color: var(--a-terra) !important; }
.am-desce { position: absolute; bottom: 28px; left: 50%; width: 1px; height: 48px; background: var(--a-terra); transform-origin: top; animation: am-desce 2.4s var(--a-ease) infinite; }
@keyframes am-desce { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* O VERBO: bolha orgânica desenhada à mão */
.am-verbo { position: relative; min-height: 92svh; display: grid; place-items: center; padding: 80px var(--mx); }
.am-bolha { position: absolute; inset: 6% 4%; width: 92%; height: 88%; }
.am-bolha path { fill: none; stroke: var(--a-terra); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--a-ease); }
.am-verbo.visto .am-bolha path { stroke-dashoffset: 0; }
.am-verbo-in { position: relative; text-align: center; max-width: 760px; }
.am-frase { font-size: clamp(24px, 3.2vw, 44px) !important; line-height: 1.3 !important; max-width: none !important; color: var(--a-tinta) !important; margin: 0 auto !important; }
.am-frase-p { font-size: clamp(18px, 2vw, 26px) !important; max-width: 36ch !important; }

/* CORES: ciclo da semente */
.am-ciclo { list-style: none; padding: 0; margin: clamp(40px, 5vw, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: c; }
.am-ciclo li { position: relative; display: grid; gap: 6px; padding: 20px 18px 22px; border-radius: 46% 54% 40% 60% / 18% 22% 16% 20%; background: var(--c); color: var(--a-fundo); min-height: 260px; align-content: end; overflow: hidden; opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .9s, transform 1.1s var(--a-ease); transition-delay: calc(var(--k) * 140ms); }
.am-ciclo.visto li { opacity: 1; transform: none; }
.am-ciclo li.claro { color: var(--a-terra); box-shadow: inset 0 0 0 1.5px var(--a-terra); }
.am-ciclo b { color: inherit !important; font-size: 22px; }
.am-ciclo small { font-size: 12px; letter-spacing: .06em; opacity: .85; }
.am-ciclo em { font-style: italic; font-size: 14px; }
.am-ciclo li::before { counter-increment: c; content: "0" counter(c); position: absolute; top: 16px; left: 18px; font-size: 12px; opacity: .7; }
.am-gota { position: absolute; top: 34%; left: 50%; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; box-shadow: 0 0 0 1px currentColor, 0 0 0 12px var(--c), 0 0 0 13px currentColor, 0 0 0 26px var(--c), 0 0 0 27px currentColor; opacity: .45; transition: transform 1.4s var(--a-ease); }
.am-ciclo li:hover .am-gota { transform: scale(1.25); }

/* TRONCO */
.am-tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin: clamp(40px, 5vw, 64px) 0 0; }
.am-tres figure { margin: 0; color: var(--cor); }
.am-gerador { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px 40px; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px dashed var(--a-terra); }
.am-gerador p { margin: 0; }
.am-anel-novo { grid-row: span 2; grid-column: 2; width: min(300px, 60vw); aspect-ratio: 1; }
.am-anel-novo svg { width: 100%; height: 100%; }
.am-anel-novo path { fill: none; stroke: var(--cor-gera, var(--a-terra)); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: am-risca 1.4s var(--a-ease) forwards; animation-delay: calc(var(--i) * 90ms); }
@keyframes am-risca { to { stroke-dashoffset: 0; } }
.am-btn { justify-self: start; font: 700 14px/1 var(--a-mono); color: var(--a-fundo); background: var(--a-terra); border: 0; padding: 15px 22px; border-radius: 40px 34px 44px 30px; cursor: pointer; transition: background .3s, transform .3s var(--a-ease); }
.am-btn:hover { background: var(--a-folha); transform: rotate(-2deg); }

/* palco do logo e troca de cor */
.am-palco { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 620px; color: var(--cor, var(--a-terra)); transition: color .6s; }
.am-palco-p { max-width: 380px; margin-top: 0; }
.am-type { max-width: 760px; }
.am-troca { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.am-duas .am-troca { justify-content: flex-start; }
.am-troca button { font: 400 13px/1 var(--a-mono); padding: 10px 16px 10px 34px; border-radius: 30px; border: 1px solid var(--c); color: var(--c); background: transparent; cursor: pointer; position: relative; }
.am-troca button::before { content: ""; position: absolute; left: 12px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--c); }
.am-troca button[aria-pressed="true"] { background: var(--c); color: var(--a-fundo); }
.am-troca button[aria-pressed="true"]::before { background: var(--a-fundo); }

/* VERSÃO REDUZIDA: fundo terra, amar desce pela diagonal até o dura */
.am-reduz { background: var(--a-terra); color: var(--a-fundo); padding: clamp(72px, 9vw, 130px) var(--mx); }
.am-reduz-in { max-width: var(--larg); margin-inline: auto; display: grid; justify-items: center; text-align: center; gap: 32px; }
.am-reduz .am-num { color: var(--a-fundo) !important; opacity: .7; }
.am-reduz .am-frase, .am-reduz b { color: var(--a-fundo) !important; }
.am-reduz-fig { width: min(680px, 88vw); color: var(--a-fundo); }
.am-reduz-fig .amar, .am-reduz-fig .dura { transition: transform 1.8s var(--a-ease), opacity 1s; }
.am-reduz-fig .amar { transform: translate(18%, -18%); opacity: 0; }
.am-reduz-fig .dura { transform: translate(-18%, 18%); opacity: 0; }
.am-reduz-fig .guia { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--a-ease) .9s; opacity: .7; }
.am-reduz-fig.junto .amar, .am-reduz-fig.junto .dura { transform: none; opacity: 1; }
.am-reduz-fig.junto .guia { stroke-dashoffset: 0; }

/* APLICAÇÕES: fotos em formas orgânicas */
.am-mosaico { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: clamp(40px, 5vw, 64px); }
.am-mosaico figure { margin: 0; overflow: hidden; }
.am-mosaico img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--a-ease); }
.am-mosaico figure:hover img { transform: scale(1.04); }
.am-mosaico .f1 { grid-column: span 2; grid-row: span 2; border-radius: 38% 62% 44% 56% / 30% 34% 66% 70%; }
.am-mosaico .f2 { grid-column: span 4; border-radius: 22% 30% 26% 34% / 40% 30% 44% 36%; aspect-ratio: 3 / 2; }
.am-mosaico .f3 { grid-column: span 4; border-radius: 30% 22% 34% 26% / 32% 44% 30% 40%; aspect-ratio: 3 / 2; }
.am-mosaico .f4 { grid-column: span 3; border-radius: 26% 36% 30% 40% / 40% 30% 36% 28%; aspect-ratio: 4 / 3; }
.am-mosaico .f5 { grid-column: span 3; border-radius: 40% 30% 36% 26% / 30% 42% 28% 40%; aspect-ratio: 4 / 3; }

.am-fim { display: grid; justify-items: center; gap: 40px; }
.am-fim-anel { width: 140px; color: var(--a-folha); }
.am .ficha { width: 100%; }

@media (max-width: 760px) {
  .am-duas, .am-gerador { grid-template-columns: 1fr; }
  .am-anel-novo { grid-column: 1; grid-row: auto; justify-self: center; }
  .am-ciclo { grid-template-columns: 1fr 1fr; }
  .am-ciclo li { min-height: 200px; }
  .am-tres { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .am-mosaico { grid-template-columns: 1fr 1fr; }
  .am-mosaico figure { grid-column: span 2 !important; grid-row: auto !important; aspect-ratio: 4 / 3; }
  .am-mosaico .f1 { aspect-ratio: 3 / 4; }
  .am-rot { top: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .am *, .am *::before { transition: none !important; animation: none !important; }
  [data-rv], .am-ciclo li { opacity: 1; transform: none; }
  [data-cresce] .anel, [data-cresce] .letra, .am-reduz-fig .amar, .am-reduz-fig .dura { opacity: 1; transform: none; }
  .am-bolha path, .am-reduz-fig .guia, .am-anel-novo path { stroke-dashoffset: 0; }
}
