:root {
  --papel: #eee8dd; --tinta: #161412; --suave: #5f574d; --linha: #c4baab;
  --verde: #047857; --verde-esc: #064e3b; --verde-claro: #34d399; --menta: #a7f3d0;
  --ease: cubic-bezier(.2,.8,.2,1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: Geist, system-ui, sans-serif; color: var(--tinta); background: var(--papel); font-size: 17px; line-height: 1.5; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }

.grao { position: relative; }
.grao::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .3  0 0 0 0 .25  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.sec { position: relative; padding: 110px 20px; overflow-x: clip; }
.sec > *, .gruda > * { position: relative; z-index: 1; }
.box { max-width: 1120px; margin: 0 auto; }

.verdao { background: radial-gradient(120% 90% at 85% 10%, #0f9f6e 0%, var(--verde) 38%, var(--verde-esc) 100%); color: #f2f5ef; }
.verdao.grao::before { mix-blend-mode: overlay; opacity: .55; }
.verdao .eyebrow, .tapete .eyebrow { color: var(--menta); }
.tapete { background-color: var(--verde); color: #f2f5ef;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px; }

.eyebrow { font-family: "Geist Mono", monospace; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--verde); }
.g { font-weight: 700; letter-spacing: -0.045em; line-height: .95; }
h1.g { font-size: clamp(46px, 8.6vw, 104px); margin: 18px 0 24px; }
h2.g { font-size: clamp(38px, 6vw, 72px); margin: 12px 0 18px; }
.claro { color: var(--verde-claro); }
.lead { font-size: clamp(17px, 2vw, 20px); max-width: 560px; }
.mao { font-family: "Caveat Brush", cursive; color: var(--verde); font-size: 26px; line-height: 1.05; }
.etq { display: inline-block; background: var(--verde); color: #f4f7f2; font-family: "Geist Mono", monospace; font-weight: 500; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; padding: 5px 11px 4px; border-radius: 3px; box-shadow: inset 0 -1px 0 rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.18); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 17px; text-decoration: none; padding: 16px 24px; border-radius: 999px; transition: transform .2s var(--ease), box-shadow .2s ease; }
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn .seta { transition: transform .2s var(--ease); }
.btn:hover .seta { transform: translateX(4px); }
.btn-claro { background: #f4f1ea; color: var(--verde-esc); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.btn-verde { background: var(--verde); color: #fff; box-shadow: 0 6px 18px rgba(4,120,87,.3); }
.btn-linha { border: 1.5px solid currentColor; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* barra de progresso da leitura */
.progresso { position: fixed; left: 0; top: 0; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--rolou, 0)); background: var(--verde-claro); z-index: 60; }

/* palavras que sobem */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
[data-split] .w > span { display: inline-block; transform: translateY(112%) rotate(5deg); transform-origin: 0 100%; transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 55ms); }
[data-split][data-visto] .w > span { transform: none; }
/* texto que acende com a rolagem */
[data-acende] .a > span { opacity: .14; transition: opacity .35s ease; }
[data-acende] .a.on > span { opacity: 1; }
.frase { font-size: clamp(30px, 4.6vw, 60px); font-weight: 700; letter-spacing: -.04em; line-height: 1.06; max-width: 1000px; }
/* entrada */
.rev { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.rev[data-visto] { opacity: 1; transform: none; }
.rev.gira { transform: translateY(70px) rotate(var(--r, -6deg)); }
.rev.gira[data-visto] { transform: none; }

/* hero */
.hero-sec { min-height: 100svh; display: flex; align-items: center; }
.topo { position: absolute; top: 28px; left: 20px; right: 20px; max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 3; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 70px; width: 100%; }
.entra { animation: sobe 1s var(--ease) both; }
@keyframes sobe { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes cai { from { opacity: 0; transform: translateY(-90px) rotate(-14deg); } to { opacity: 1; transform: rotate(2.4deg); } }
.credito { margin-top: 34px; max-width: 560px; border-top: 1px solid rgba(255,255,255,.3); }
.credito div { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.18); font-size: 15px; }
.credito .eyebrow { font-size: 11px; padding-top: 3px; }
.role { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; font-family: "Geist Mono", monospace; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--menta); display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; }
.role::after { content: ""; width: 1px; height: 38px; background: linear-gradient(var(--menta), transparent); animation: pinga 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes pinga { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.polaroide { background: #fff; padding: 10px 10px 46px; box-shadow: 0 14px 34px rgba(0,0,0,.3); position: relative; }
.polaroide img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.polaroide .mao { position: absolute; left: 16px; right: 16px; bottom: 9px; color: var(--tinta); font-size: 23px; }
.fita { position: absolute; width: 86px; height: 26px; background: rgba(232,222,200,.86); box-shadow: 0 1px 2px rgba(0,0,0,.1); z-index: 2; }

/* faixas gigantes que correm com a rolagem */
.faixas { background: var(--papel); padding: 70px 0 30px; overflow: hidden; }
.faixa { white-space: nowrap; font-weight: 800; letter-spacing: -.05em; font-size: clamp(64px, 11vw, 150px); line-height: 1.02; will-change: transform; }
.faixa span { padding-right: .4em; }
.faixa.contorno { color: transparent; -webkit-text-stroke: 1.5px var(--verde); }
.faixa.cheia { color: var(--verde); margin-left: -70vw; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.cartao { background: #fff; border: 2px solid var(--tinta); padding: 22px 20px 24px; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.cartao h3 { font-size: 23px; margin: 14px 0 8px; }
.cartao p { font-size: 16px; color: #3b352e; }

/* cenas grudadas */
.gruda { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding: 0 20px; overflow: hidden; }

/* fim */
.fim { text-align: center; min-height: 90svh; display: flex; align-items: center; }
.fim .box { width: 100%; }
.fim h2.g { font-size: clamp(50px, 10vw, 128px); }
.fim .lead { margin: 0 auto; }
.fim .btns { justify-content: center; }
.rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px; margin-top: 0; font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #cde9dc; }
.rodape img { width: 64px; }
.fixo { display: none; }

/* quem prefere menos movimento: tudo parado e legível */
.calmo [data-split] .w > span, .calmo .rev, .calmo .rev.gira { transform: none !important; opacity: 1 !important; transition: none !important; }
.calmo [data-acende] .a > span { opacity: 1; }
.calmo [data-cena] { height: auto !important; }
.calmo .gruda { position: relative; height: auto; padding-top: 90px; padding-bottom: 90px; }
.calmo .janela { overflow-x: auto; }
.calmo .entra, .calmo .polaroide, .calmo .role::after { animation: none !important; }

@media (max-width: 900px) {
  .sec { padding: 80px 16px; }
  .hero { grid-template-columns: 1fr; gap: 44px; padding-top: 90px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .topo { top: 20px; left: 16px; right: 16px; }
  .topo img { width: 74px !important; }
  .role { display: none; }
  .gruda { padding: 0 16px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .credito div { grid-template-columns: 1fr; gap: 2px; }
  .btn { width: 100%; }
  .topo .eyebrow { display: none; }
  .fixo { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; text-align: center; background: var(--verde); color: #fff; font-weight: 600; text-decoration: none; padding: 15px; border-radius: 999px; box-shadow: 0 8px 22px rgba(0,0,0,.3); transform: translateY(130%); transition: transform .3s ease; }
  .fixo.on { transform: none; }
}
.rodape a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.rodape a:hover { color: #fff; }
