/* Página de apresentação do DevCore.
   O jeito de organizar e as animações foram inspirados no site do arquiteto Ricardo Salomão:
   títulos grandes com serifa (Cormorant), texto em Jost, linhas finas e bastante espaço.
   As cores são as do DevCore: fundo escuro, creme e um dourado usado pouco. */
@import url("paleta.css");

:root {
  --bg: #0b0a09;
  --bg2: #12110f;
  --fg: #edece6;
  --muted: #a39f95;
  --line: rgba(237, 236, 230, 0.12);
  --accent: var(--dc-ouro);
  --accent-ink: #0b0a09;
  --f: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --gl: max(20px, env(safe-area-inset-left, 0px));
  --gr: max(20px, env(safe-area-inset-right, 0px));
  --curva: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.pular { position: fixed; top: -100px; left: 20px; z-index: 200; padding: 12px 16px; background: var(--fg); color: var(--bg); }
.pular:focus { top: 12px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gl); padding-right: var(--gr); }
.label { font-size: 14px; letter-spacing: 0.04em; color: var(--muted); font-weight: 400; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.05; text-wrap: balance; font-variant-numeric: lining-nums; }
h2 { font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.005em; }

#progresso { position: fixed; left: 0; top: 0; z-index: 100; width: 100%; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }

/* botões e links */
.btn { display: inline-flex; align-items: center; gap: 16px; padding: 16px 32px; border: 1px solid var(--line); background: transparent; color: var(--fg); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn:hover { background: rgba(237, 236, 230, 0.08); }
.btn svg { width: 20px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 0.3s; }
.btn:hover svg { transform: translateX(4px); }
.btn.solido { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn.solido:hover { background: #fff; }
.link { display: inline-flex; align-items: center; gap: 16px; min-height: 44px; padding-block: 8px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--fg); font-size: 14px; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; transition: border-color 0.3s, gap 0.3s; }
.link:hover { gap: 20px; border-color: var(--fg); }
.link svg { width: 18px; height: 10px; fill: none; stroke: currentColor; }

/* cabeçalho: some ao descer, volta ao subir, fica sólido depois da abertura */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; border-bottom: 1px solid transparent; transition: background 0.5s, border-color 0.5s, transform 0.45s var(--curva); }
header.esconde { transform: translateY(-110%); }
header.solido, header.aberto { background: rgba(11, 10, 9, 0.94); border-color: var(--line); backdrop-filter: blur(8px); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.marca { display: flex; align-items: center; gap: 14px; min-height: 44px; white-space: nowrap; }
.marca img { width: 32px; height: 32px; }
.marca-nome { padding-top: 2px; font-family: 'Josefin Sans', var(--f); font-size: 14px; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 36px; }
nav a.l { position: relative; padding-block: 12px; color: rgba(237, 236, 230, 0.75); font-size: 14px; letter-spacing: 0.04em; transition: color 0.3s; }
nav a.l::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.45s; }
nav a.l:hover, nav a.l.on { color: var(--fg); }
nav a.l:hover::after, nav a.l.on::after { transform: scaleX(1); }
.acesso { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid rgba(237, 236, 230, 0.4); font-size: 14px; font-weight: 500; letter-spacing: 0.02em; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.acesso:hover { background: var(--fg); color: var(--bg); }
header.solido .acesso { background: var(--fg); color: var(--bg); border-color: var(--fg); }
#menu { display: none; height: 44px; padding: 0 20px; border: 1px solid rgba(237, 236, 230, 0.3); background: none; color: var(--fg); font-size: 14px; letter-spacing: 0.04em; cursor: pointer; }
#gaveta { position: absolute; top: 100%; left: 0; right: 0; padding: 0 var(--gr) 8px var(--gl); background: var(--bg); border-bottom: 1px solid var(--line); }
#gaveta a { display: flex; align-items: center; min-height: 56px; border-top: 1px solid var(--line); font-size: 18px; }
#gaveta a:first-child { border-top: 0; }
@media (max-width: 900px) { nav a.l { display: none; } #menu { display: inline-flex; align-items: center; } }
@media (min-width: 901px) { #gaveta { display: none; } }
@media (max-width: 560px) { .acesso { display: none; } }

/* abertura */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 620px; background: var(--bg); }
.palco { position: absolute; inset: 0; overflow: hidden; }
.hero-fundo { position: absolute; inset: -8% 0; display: grid; place-items: center; opacity: 0.04; will-change: transform; animation: afastar 9s var(--curva) both; }
.hero-fundo img { width: min(120vh, 90vw); height: auto; }
@keyframes afastar { from { scale: 1.12; } to { scale: 1; } }
.hero-grade { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 96px 96px; opacity: 0.35; mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 20%, transparent 75%); }
.t { position: absolute; left: 0; right: 0; will-change: transform, opacity; }
.t1 { top: max(20vh, 140px); display: flex; flex-direction: column; align-items: center; gap: 24px; padding-inline: var(--gl) var(--gr); text-align: center; pointer-events: none; }
.t1 h1 { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.t1 .nm { display: block; line-height: 0; }
.t1 .nm img { width: clamp(260px, 32vw, 480px); height: auto; }
.t1 .sb { padding-left: 0.34em; font-family: 'Josefin Sans', var(--f); font-size: 14px; font-weight: 400; letter-spacing: 0.34em; text-transform: uppercase; color: var(--fg); }
.t2 { bottom: max(13vh, 96px); pointer-events: none; }
.t2 .in { max-width: 1320px; margin: 0 auto; padding-inline: var(--gl) var(--gr); }
.t2 p { max-width: 11em; margin: 0; font-family: var(--serif); font-size: clamp(30px, 4vw, 60px); line-height: 1.04; }
.t3 { bottom: max(3.5vh, 28px); display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
.t3 i { width: 1px; height: 48px; background: linear-gradient(rgba(237, 236, 230, 0.8), transparent); }
.coord { position: absolute; left: max(var(--gl), calc((100vw - 1320px) / 2 + var(--gl))); bottom: 32px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
@media (max-width: 700px) { .t3, .coord { display: none; } .t2 { bottom: max(14vh, 112px); } }

/* seções */
section { padding-block: clamp(110px, 14vw, 220px); }
.manifesto { position: relative; overflow: hidden; text-align: center; }
.manifesto .txt { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; }
.manifesto h2 { font-size: clamp(36px, 5.4vw, 76px); line-height: 1.1; }
.manifesto p { max-width: 46ch; margin: 40px auto 0; color: var(--muted); font-size: 19px; text-wrap: balance; }
.manifesto .f { position: absolute; z-index: 1; overflow: hidden; opacity: 0.85; border: 1px solid var(--line); }
.manifesto .f img { width: 100%; height: 120%; object-fit: cover; object-position: 0 0; will-change: transform; }
.manifesto .fa { left: var(--gl); top: 10%; width: clamp(140px, 17vw, 260px); aspect-ratio: 3 / 4; }
.manifesto .fb { right: var(--gr); bottom: 8%; width: clamp(160px, 20vw, 300px); aspect-ratio: 4 / 5; }
@media (max-width: 900px) { .manifesto .f { display: none; } }

.numeros { border-block: 1px solid var(--line); }
.numeros .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.num { padding: 64px 32px; border-right: 1px solid var(--line); text-align: center; }
.num:last-child { border-right: 0; }
.num b { display: block; font-family: var(--serif); font-size: clamp(56px, 7vw, 104px); font-weight: 400; line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.num span { display: block; margin-top: 16px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
@media (max-width: 760px) { .numeros .wrap { grid-template-columns: 1fr; } .num { padding: 40px 0; border-right: 0; border-bottom: 1px solid var(--line); } .num:last-child { border-bottom: 0; } }

/* cabeçalhos de seção numa grade de 12 colunas */
.cabeca, .processo-cabeca { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; margin-bottom: clamp(70px, 9vw, 140px); }
.lede { max-width: 40ch; margin: 0; color: var(--muted); font-size: 19px; text-wrap: balance; }
@media (max-width: 900px) { .cabeca, .processo-cabeca { grid-template-columns: 1fr; } }

/* Dispatch: telas em linhas editoriais alternadas */
.projetos { background: var(--bg2); }
.proj { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(24px, 4vw, 70px); align-items: center; margin-bottom: clamp(90px, 12vw, 200px); }
.proj:last-child { margin-bottom: 0; }
.proj .frame { position: relative; grid-column: 1 / 9; display: block; width: 100%; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 1px solid var(--line); background: #111; cursor: pointer; }
.proj .info { grid-column: 9 / 13; }
.proj:nth-child(even) .frame { grid-column: 5 / 13; grid-row: 1; }
.proj:nth-child(even) .info { grid-column: 1 / 5; grid-row: 1; }
.frame img { position: absolute; left: 0; top: -6%; width: 100%; height: 112%; object-fit: cover; object-position: 0 0; will-change: transform; transition: filter 0.6s, scale 1.4s var(--curva); }
.frame:hover img, .frame:focus-visible img { filter: brightness(1.1); }
.info .idx { display: block; margin-bottom: 16px; font-family: var(--serif); font-size: 20px; letter-spacing: 0.1em; color: var(--muted); }
.info h3 { margin: 0 0 12px; font-size: clamp(36px, 3.8vw, 56px); line-height: 1.12; }
.info .cat { display: block; margin-bottom: 24px; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.info p { max-width: 38ch; margin: 0 0 32px; color: var(--muted); font-size: 16px; }
.nota { margin: clamp(72px, 9vw, 128px) 0 0; color: var(--muted); font-size: 14px; letter-spacing: 0.02em; text-align: center; }
@media (max-width: 900px) { .proj { grid-template-columns: 1fr; } .proj .frame, .proj:nth-child(even) .frame, .proj .info, .proj:nth-child(even) .info { grid-column: 1; grid-row: auto; } }

/* faixa de frase em tela cheia */
.faixa { position: relative; isolation: isolate; display: grid; place-items: center; height: clamp(520px, 92vh, 880px); overflow: hidden; background: var(--bg); text-align: center; }
.faixa .fundo { position: absolute; left: 0; top: -14%; z-index: -2; width: 100%; height: 128%; will-change: transform; }
.faixa .fundo img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(0.6); }
.faixa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(8, 7, 6, 0.78); }
.faixa q { display: block; max-width: 14em; margin: 0 auto; font-family: var(--serif); font-size: clamp(36px, 5.6vw, 84px); line-height: 1.06; quotes: none; text-wrap: balance; }
.faixa .label { display: block; margin-top: 24px; }

/* essência */
.sobre { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 8vw, 140px); align-items: center; }
.sobre-arte { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border: 1px solid var(--line); }
.sobre-arte img { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 30% 0; will-change: transform; }
.sobre h2 { margin-bottom: 36px; }
.sobre p { max-width: 52ch; margin: 0 0 20px; color: var(--muted); font-size: 18px; }
.pilares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.pilares b { display: block; margin-bottom: 4px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.pilares span { display: block; color: var(--muted); font-size: 14px; line-height: 1.55; }
@media (max-width: 900px) { .sobre { grid-template-columns: 1fr; } .sobre-arte { aspect-ratio: 4 / 3; } .pilares { grid-template-columns: 1fr; gap: 20px; } }

/* frentes do Dispatch numeradas */
.processo { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); counter-reset: s; }
.processo div { padding: 40px 32px 48px; border-right: 1px solid var(--line); counter-increment: s; }
.processo div:first-child { padding-left: 0; }
.processo div:last-child { border-right: 0; }
.processo div::before { content: "0" counter(s); display: block; margin-bottom: 32px; font-family: var(--serif); font-size: 20px; letter-spacing: 0.1em; color: var(--muted); }
.processo h3 { margin-bottom: 16px; font-size: 32px; }
.processo p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 1000px) { .processo { grid-template-columns: 1fr 1fr; } .processo div, .processo div:first-child { padding: 32px 24px 40px; border-bottom: 1px solid var(--line); } .processo div:nth-child(2n) { border-right: 0; } }
@media (max-width: 560px) { .processo { grid-template-columns: 1fr; } .processo div { border-right: 0; } }

/* planos em índice */
.ix, .ix-h { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: baseline; }
.ix-h { padding-bottom: 12px; color: var(--muted); font-size: 13px; letter-spacing: 0.02em; }
.ix-h span:nth-child(1), .ix .nm { grid-column: 1 / 7; }
.ix-h span:nth-child(2), .ix .onde { grid-column: 7 / 9; }
.ix-h span:nth-child(3), .ix .vl { grid-column: 9 / 11; }
.ix-h span:nth-child(4), .ix .stc { grid-column: 11 / 13; padding-left: 16px; }
.ix { padding: 28px 0; border-top: 1px solid var(--line); cursor: pointer; transition: background 0.3s; }
.ix:last-of-type { border-bottom: 1px solid var(--line); }
.ix:hover { background: rgba(237, 236, 230, 0.03); }
.ix:focus-visible { outline-offset: -2px; }
.ix .nm { padding-right: 32px; }
.ix h3 { font-size: clamp(28px, 2.6vw, 40px); transition: translate 0.6s var(--curva); }
.ix:hover h3, .ix:focus-visible h3 { translate: 12px 0; }
.ix p { max-width: 52ch; margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.ix .onde, .ix .vl { font-size: 15px; font-weight: 400; }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 900px) { .ix-h { display: none; } .ix { grid-template-columns: auto auto 1fr; gap: 4px 16px; padding: 24px 0; } .ix .nm { grid-column: 1 / -1; margin-bottom: 8px; padding: 0; } .ix .onde, .ix .vl, .ix .stc { grid-column: auto; padding: 0; } .ix .stc { justify-self: end; } }

/* equipe */
.integrantes { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); counter-reset: p; }
.integrantes li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 32px 24px 32px 0; border-bottom: 1px solid var(--line); counter-increment: p; }
.integrantes li span { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 48px); line-height: 1.1; }
.integrantes li:not(.assinatura)::after { content: "0" counter(p); color: var(--muted); font-size: 14px; letter-spacing: 0.1em; }
.integrantes .assinatura { align-items: center; justify-content: flex-start; }
.integrantes .assinatura img { width: 40px; height: 40px; }
.integrantes .assinatura span { font-size: 24px; color: var(--muted); }
@media (max-width: 900px) { .integrantes { grid-template-columns: 1fr 1fr; } }

/* perguntas: título fixo à esquerda */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .cabeca { position: sticky; top: 120px; grid-template-columns: 1fr; margin: 0; }
.faq .lede { max-width: 30ch; }
.faq details { border-top: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 72px; padding: 16px 0; font-family: var(--serif); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-family: var(--f); font-size: 28px; font-weight: 300; color: var(--muted); transition: transform 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 64ch; margin: 0 0 32px; color: var(--muted); }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.45s var(--curva), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
@media (max-width: 900px) { .faq .wrap { grid-template-columns: 1fr; } .faq .cabeca { position: static; margin-bottom: 40px; } }

/* convite */
.contato { position: relative; overflow: hidden; background: var(--bg2); text-align: center; }
.contato .dentro { display: flex; flex-direction: column; align-items: center; gap: 36px; }
.contato h2 { font-size: clamp(44px, 8vw, 128px); line-height: 0.98; }
.contato p { max-width: 46ch; margin: 0; color: var(--muted); font-size: 18px; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

footer { padding-block: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer a { display: inline-flex; align-items: center; min-height: 44px; }
footer a:hover { color: var(--fg); }

/* janela de detalhes (telas e planos) */
dialog { width: min(1180px, calc(100vw - 24px)); max-height: calc(100vh - 24px); margin: auto; padding: 0; overflow: auto; border: 1px solid var(--line); background: var(--bg2); color: var(--fg); opacity: 0; translate: 0 32px; transition: opacity 0.5s var(--curva), translate 0.7s var(--curva), overlay 0.5s allow-discrete, display 0.5s allow-discrete; }
dialog[open] { opacity: 1; translate: 0 0; }
@starting-style { dialog[open] { opacity: 0; translate: 0 32px; } }
dialog::backdrop { background: rgba(5, 4, 3, 0.88); transition: background-color 0.5s, overlay 0.5s allow-discrete, display 0.5s allow-discrete; }
@starting-style { dialog[open]::backdrop { background-color: rgba(5, 4, 3, 0); } }
.jn .pic { position: relative; aspect-ratio: 16 / 10; background: #111; }
.jn .pic.off { display: none; }
.jn .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 0 0; }
.jn .txt { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; padding: clamp(26px, 4vw, 54px); }
.jn h3 { margin-top: 12px; font-size: clamp(34px, 4vw, 58px); }
.jn p { margin: 0 0 22px; color: var(--muted); }
.ficha { display: grid; gap: 8px; margin: 0 0 24px; font-size: 15px; }
.ficha div { display: flex; justify-content: space-between; gap: 24px; padding-top: 8px; border-top: 1px solid var(--line); }
.ficha span:first-child { color: var(--muted); }
.x { position: absolute; top: 16px; right: 16px; z-index: 3; width: 44px; height: 44px; border: 1px solid rgba(237, 236, 230, 0.5); border-radius: 50%; background: rgba(0, 0, 0, 0.5); color: var(--fg); font-size: 20px; line-height: 1; cursor: pointer; }
.x:hover { border-color: var(--fg); }
.jnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px clamp(26px, 4vw, 54px); border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.jnav button { min-height: 44px; padding: 0 20px; border: 1px solid var(--line); background: none; color: var(--fg); font-size: 14px; cursor: pointer; transition: border-color 0.3s; }
.jnav button:hover { border-color: var(--fg); }
.jnav button:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 760px) { .jn .txt { grid-template-columns: 1fr; } }

/* cursor sobre as telas: só um anel pequeno com um ponto no meio */
#cursor { position: fixed; left: 0; top: 0; z-index: 95; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 1px solid var(--fg); border-radius: 50%; pointer-events: none; opacity: 0; scale: 0.4; transition: opacity 0.3s var(--curva), scale 0.4s var(--curva); will-change: transform; }
#cursor::after { content: ""; position: absolute; top: 50%; left: 50%; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%; background: var(--fg); }
#cursor.on { opacity: 1; scale: 1; }
@media (pointer: fine) { .js .frame { cursor: none; } }
@media (pointer: coarse) { #cursor { display: none; } }

/* ===== animações de entrada ===== */
@keyframes subir { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes desenhar { to { clip-path: inset(0 0 0 0); } }
.t1 .nm img { clip-path: inset(0 100% 0 0); animation: desenhar 2s cubic-bezier(0.65, 0, 0.35, 1) 0.35s forwards; }
.t1 .sb { animation: subir 1.4s var(--curva) 1.4s backwards; }
.t2 .in { animation: subir 1.6s var(--curva) 1.2s backwards; }
.t3 { animation: subir 1.2s var(--curva) 1.8s backwards; }
.coord { animation: subir 1.2s var(--curva) 2s backwards; }

/* títulos palavra por palavra */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.16em; margin-bottom: -0.16em; }
.sw > span { display: inline-block; }
.js .split .sw > span { transform: translate3d(0, 108%, 0); transition: transform 1.2s var(--curva); transition-delay: calc(var(--i) * 60ms); }
.js .split.in .sw > span { transform: none; }
/* blocos que sobem */
.js .rv { opacity: 0; transform: translate3d(0, 40px, 0); transition: opacity 1.1s var(--curva), transform 1.3s var(--curva); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
/* imagens que se abrem de cima para baixo */
.js .wipe { clip-path: inset(0 0 100% 0); transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1); }
.js .wipe.in { clip-path: inset(0 0 0 0); }
.js .wipe img { scale: 1.18; transition: scale 1.8s var(--curva), filter 0.6s; }
.js .wipe.in img { scale: 1; }
.js .wipe.in.frame:hover img, .js .wipe.in.frame:focus-visible img { scale: 1.045; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-fundo, .t1 .nm img, .t1 .sb, .t2 .in, .t3, .coord { animation: none; }
  .t1 .nm img { clip-path: none; }
  .js .split .sw > span, .js .rv { transform: none; }
  .js .rv { opacity: 1; }
  .js .wipe { clip-path: none; }
  .js .wipe img { scale: 1; }
  dialog { transition: none; }
}
