/* Camada de efeitos sobre o estilo "Estúdio" */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* ---------- Capa ---------- */
.fx-hero { isolation: isolate; }
.fx-hero .hero-words { z-index: 1; }
.fx-hero .hero-words span.w1, .fx-hero .hero-words span.w2 { display: inline-flex; overflow: hidden; padding-bottom: .08em; }
.fx-hero .ch { display: inline-block; will-change: transform; }
.fx-hero .hero-figure { will-change: transform; }
.fx-hero .hero-figure img { filter: drop-shadow(0 30px 40px rgba(0, 36, 63, .18)); }

/* Luz de estúdio que acompanha o mouse */
.spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 45%), rgba(255,255,255,.38), rgba(255,255,255,0) 70%);
  mix-blend-mode: soft-light;
}
/* Textura de papel fotográfico */
.grain {
  position: absolute; inset: -50%; z-index: 4; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 22px; width: 1px; height: 54px; background: rgba(0, 54, 95, .25); overflow: hidden; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--navy); animation: cue 1.8s cubic-bezier(.6,0,.2,1) infinite; }
@keyframes cue { to { top: 110%; } }

/* A animação CSS antiga da capa é substituída pela do GSAP */
.fx .hero-words .w1, .fx .hero-words .w2, .fx .hero-figure img, .fx .hero-copy, .fx .hero-facts { animation: none; }

/* Botão magnético */
.magnetic { will-change: transform; }
.magnetic span { display: inline-block; will-change: transform; pointer-events: none; }

/* ---------- Faixa em movimento ---------- */
.marquee { background: var(--navy-deep); color: #fff; overflow: hidden; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); }
.marquee-track { display: flex; align-items: center; gap: 36px; width: max-content; will-change: transform; }
.marquee-track span { font-family: var(--display); text-transform: uppercase; letter-spacing: .04em; font-size: clamp(1.1rem, 2.2vw, 1.8rem); white-space: nowrap; }
.marquee-track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.7); }
.marquee-track img { width: 22px; height: 22px; opacity: .9; }

/* ---------- Áreas com rolagem guiada ---------- */
.fx-areas { background: var(--navy-deep); color: #c9d6e2; padding: clamp(72px, 9vw, 120px) 0 clamp(80px, 10vw, 140px); }
.fx-areas-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.fx-sticky { position: sticky; top: 18vh; container-type: inline-size; }
.fx-kicker { color: var(--orange-soft); font-weight: 600; margin: 0 0 18px; }
.fx-word { position: relative; height: 1.25em; overflow: hidden; font-size: min(4.4rem, 8.6cqi); color: #fff; }
.fx-word span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.fx-count { margin: 22px 0 0; color: #8fa7bc; font-size: .95rem; }
.fx-count b { color: #fff; font-weight: 600; }
.fx-list { padding: 10vh 0 20vh; }
.fx-area { padding: 34px 0; border-top: 1px solid rgba(255,255,255,.12); opacity: .32; transition: opacity .45s ease; }
.fx-area:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.fx-area.is-active { opacity: 1; }
.fx-area h3 { color: #fff; font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 500; margin: 0 0 10px; position: relative; padding-left: 0; transition: padding-left .45s ease; }
.fx-area.is-active h3 { padding-left: 34px; }
.fx-area h3::before { content: ""; position: absolute; left: 0; top: .5em; width: 0; height: 2px; background: var(--orange); transition: width .45s ease; }
.fx-area.is-active h3::before { width: 20px; }
.fx-area p { margin: 0; max-width: 52ch; }

.fx-end p { margin: 0; color: var(--muted); }

@media (max-width: 860px) {
  .fx-areas-grid { grid-template-columns: 1fr; }
  .fx-sticky { position: relative; top: auto; }
  .fx-word, .fx-count { display: none; }
  .fx-list { padding: 0; }
  .fx-area { opacity: 1; }
  .spotlight, .grain { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .grain, .scroll-cue span { animation: none; }
  .fx-area { opacity: 1; }
}
h2.fx-kicker { font-size: 1rem; line-height: 1.4; font-weight: 600; }
.fx-area .tags { margin-top: 16px; }
.fx-area .link { display: inline-block; margin-top: 16px; color: #fff; font-weight: 600; text-decoration-color: var(--orange); text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Páginas internas */
.fx-title { display: flex; overflow: hidden; padding-bottom: .08em; }
.fx-title .ch { display: inline-block; will-change: transform; }
.read-progress { position: fixed; left: 0; top: 0; z-index: 70; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }
.page-hero.fx-hero .hero-words { justify-content: center; }
