/* IBIÁ Pipa — base: variáveis, reset, tipografia, reveals, grain/vignette, cursor, reduced-motion */
:root{
  --tex:url(/ibia/assets/img/texture.webp);
  --terra:#AD4525;
  --terra-deep:#7E2F15;
  --brasa:#D9542B;
  --oliva:#A78D14;
  --ceu:#B1C3C4;
  --areia:#D6C7AE;
  --cream:#EFE8DA;
  --ink:#2A1810;
  --white:#F7F2E9;
  --ease:cubic-bezier(.19,1,.22,1);
  --ease2:cubic-bezier(.77,0,.175,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
html,body{background:var(--cream);color:var(--ink);font-family:'Poppins',sans-serif;font-weight:300;overflow-x:hidden;overflow-x:clip}
::selection{background:var(--terra);color:var(--cream)}
img{display:block;max-width:100%;height:auto}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer}

/* ---------- film grain + vignette ---------- */
.grain{position:fixed;inset:-100px;z-index:9990;pointer-events:none;opacity:.055;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  animation:grain 700ms steps(6) infinite}
@keyframes grain{0%{transform:translate(0,0)}20%{transform:translate(-30px,20px)}40%{transform:translate(20px,-35px)}60%{transform:translate(-25px,-15px)}80%{transform:translate(30px,25px)}100%{transform:translate(0,0)}}
.vignette{position:fixed;inset:0;z-index:9989;pointer-events:none;background:radial-gradient(ellipse at center,transparent 68%,rgba(20,8,2,.14) 100%)}

/* ---------- cursor ---------- */
#cur{position:fixed;top:0;left:0;width:10px;height:10px;border-radius:50%;background:var(--cream);mix-blend-mode:difference;z-index:9999;pointer-events:none;transform:translate(-50%,-50%);transition:width .3s,height .3s,opacity .3s}
#cur.big{width:56px;height:56px}
@media(hover:none){#cur{display:none}}

/* ---------- generic type ---------- */
.label{font-size:11px;letter-spacing:.5em;text-transform:uppercase;color:var(--terra);display:flex;align-items:center;gap:16px;font-weight:400}
.label::before{content:"";width:44px;height:1px;background:var(--terra);display:inline-block}
.light .label{color:var(--cream)}
.light .label::before{background:var(--cream)}
h1,h2,h3{font-weight:200;letter-spacing:.01em}
.display{font-size:clamp(38px,7vw,96px);line-height:1.04;text-transform:uppercase}
.h2{font-size:clamp(30px,4.6vw,62px);line-height:1.1}
.body{font-size:clamp(15px,1.15vw,18px);line-height:1.9;font-weight:300;color:rgba(42,24,16,.78);max-width:56ch}
.light .body{color:rgba(247,242,233,.8)}

/* ---------- reveals ---------- */
.rv{opacity:0;transform:translateY(60px);transition:opacity 1.1s var(--ease),transform 1.1s var(--ease)}
.rv.inview{opacity:1;transform:none}
.rv.d1{transition-delay:.12s}.rv.d2{transition-delay:.24s}.rv.d3{transition-delay:.36s}.rv.d4{transition-delay:.48s}
.wipe{position:relative;overflow:hidden}
.wipe img{transform:scale(1.18);transition:transform 1.6s var(--ease)}
.wipe::after{content:"";position:absolute;inset:0;background:var(--areia);transform:scaleX(1);transform-origin:right;transition:transform 1.1s var(--ease2)}
.wipe.tw::after{background:var(--terra)}
.wipe.inview::after{transform:scaleX(0)}
.wipe.inview img{transform:scale(1.02)}
.lines .ln{display:block;overflow:hidden}
.lines .ln span{display:block;transform:translateY(115%);transition:transform 1.2s var(--ease)}
.lines.inview .ln span{transform:none}
.lines .ln:nth-child(2) span{transition-delay:.1s}
.lines .ln:nth-child(3) span{transition-delay:.2s}

@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001s !important;transition-duration:.001s !important}
}
