/* ===== HERO — "suave e minimalista, fotos soltas flutuando" =====
   Paleta própria do hero (névoa fria, tinta ameixa) que se dissolve no creme do resto da página.
   Fontes: Instrument Serif (título gigante) + Manrope (texto pequeno). */
.hero {
  --nevoa: #EDEEF2;
  --perola: #FAFAFC;
  --tinta: #26232D;
  --tinta-2: #55505E;
  --ameixa: #6E5370;   /* AA sobre a névoa */
  --lilas: #C9C2D8;
  --blush-nevoa: #EAD6D6;
  --h-serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --h-sans: "Manrope", "DM Sans", system-ui, sans-serif;

  position: relative; isolation: isolate; overflow: hidden;
  max-width: none; margin: 0;
  min-height: 100svh;
  padding: 96px var(--pad) 72px;
  display: grid; place-items: center;
  color: var(--tinta);
  background:
    radial-gradient(42% 38% at 18% 26%, rgba(201,194,216,.55), transparent 70%),
    radial-gradient(38% 34% at 84% 70%, rgba(234,214,214,.7), transparent 70%),
    linear-gradient(180deg, var(--nevoa) 0%, var(--nevoa) 72%, var(--creme) 100%);
}
/* grão bem leve, para a névoa não parecer chapada */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .15 0 0 0 0 .14 0 0 0 0 .18 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- texto central ----- */
.hero-texto { position: relative; z-index: 2; text-align: center; max-width: 980px; }
.h-eyebrow {
  font: 500 11px/1.4 var(--h-sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ameixa);
}
.h-eyebrow::before, .h-eyebrow::after { content: ""; display: inline-block; vertical-align: middle; width: 28px; height: 1px; margin: 0 14px; background: currentColor; opacity: .5; }
.h-titulo {
  margin-top: 22px;
  font: 400 clamp(46px, 7.6vw, 112px)/.92 var(--h-serif); letter-spacing: -.025em;
  color: var(--tinta); text-wrap: balance;
}
.h-titulo em { font-style: italic; color: var(--ameixa); }
/* palavras recortadas pelo JS para a máscara da entrada */
.h-titulo .pal { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.h-titulo .pal > span { display: inline-block; will-change: transform; }

.h-sub {
  margin: 28px auto 0; max-width: 40ch;
  font: 400 clamp(15px, 1.6vw, 17px)/1.7 var(--h-sans); color: var(--tinta-2);
}

/* ----- ações: um link com seta que se estica + linha de texto, nada de dois botões ----- */
.h-acoes { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.h-proposta {
  display: inline-flex; align-items: center; gap: 16px; padding: 10px 4px;
  font: italic 400 clamp(26px, 3vw, 34px)/1 var(--h-serif); color: var(--tinta); text-decoration: none;
  background: linear-gradient(var(--ameixa), var(--ameixa)) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s cubic-bezier(.2,.7,.2,1), color .3s;
}
.h-proposta svg { width: 40px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.h-proposta:hover { color: var(--ameixa); background-size: 0 1px; background-position: 100% 100%; }
.h-proposta:hover svg { transform: translateX(8px); }
.h-insta { font: 400 14px/1.4 var(--h-sans); color: var(--tinta-2); text-decoration: none; padding: 6px 2px; }
.h-insta b { font-weight: 600; color: var(--tinta); border-bottom: 1px solid var(--lilas); transition: border-color .3s; }
.h-insta:hover b { border-color: var(--ameixa); }
.hero :focus-visible { outline-color: var(--ameixa); }

/* ----- fotos soltas ----- */
.hero-nuvem { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.solta { position: absolute; margin: 0; }
.boia { will-change: transform; }
.solta .foto {
  border-radius: 16px; aspect-ratio: 4 / 5;
  background:
    radial-gradient(110% 70% at 30% 15%, rgba(255,255,255,.75), transparent 60%),
    linear-gradient(165deg, #E4DDEB, #D8C8D3);
  box-shadow: 0 30px 60px -24px rgba(38,35,45,.28), 0 8px 18px -10px rgba(38,35,45,.18);
  outline: 6px solid var(--perola); outline-offset: -1px;
}
.solta .foto::after { color: rgba(38,35,45,.35); bottom: 10px; }

/* posições no desktop: em volta do texto, tamanhos e giros diferentes */
/* o texto ocupa o miolo e as fotos ficam nas laterais, sem cobrir o título */
@media (min-width: 1200px) { .hero-texto { max-width: min(820px, 56vw); } }
.s1 { width: clamp(180px, 18vw, 270px); right: 2.5%; top: 17%; rotate: 3deg; }
.s2 { width: clamp(140px, 14vw, 210px); left: 5%; top: 14%; rotate: -5deg; }
.s3 { width: clamp(120px, 12vw, 180px); left: 11%; bottom: 9%; rotate: 2.5deg; }
.s4 { width: clamp(96px, 9.5vw, 140px); right: 22%; bottom: 5%; rotate: -4deg; }
.s4 .foto { aspect-ratio: 9 / 16; }
.s5 { width: clamp(80px, 7vw, 110px); left: 23%; top: 4%; rotate: 6deg; }
.s5 .foto, .s4 .foto { border-radius: 12px; outline-width: 4px; }
/* a foto pequena de cima se ajusta à altura da tela: não encosta no título nem no nome do topo */
@media (min-width: 1500px) { .s5 { left: calc(50% - 390px); } }
@media (min-width: 1600px) and (min-height: 900px) { .s5 { top: 9%; } }
@media (min-width: 900px) and (max-height: 880px) { .s5 { top: 2.5%; width: 6vw; } }

/* sinal de rolagem: uma linha que escorre */
.h-role { position: absolute; left: 50%; bottom: 22px; width: 1px; height: 46px; background: rgba(38,35,45,.15); overflow: hidden; z-index: 2; }
.h-role i { position: absolute; inset: 0; background: var(--ameixa); transform: translateY(-100%); }

/* ----- telas médias: texto mais estreito, fotos recolhidas para as bordas ----- */
@media (max-width: 1199px) and (min-width: 900px) {
  .hero-texto { max-width: 52vw; }
  .s1 { width: 16vw; right: 2%; top: 22%; }
  .s2 { left: 2%; }
  .s3 { left: 4%; }
  .s4 { right: 8%; bottom: 4%; }
  .s5 { left: 18%; top: 9%; }
}

/* ----- celular e tablet: as fotos viram uma nuvem acima do texto ----- */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; padding-top: 84px; padding-bottom: 88px; }
  .hero-nuvem { position: relative; inset: auto; width: 100%; max-width: 560px; height: clamp(330px, 92vw, 560px); margin: 0 auto 8px; }
  .s1 { width: 50%; left: 25%; right: auto; top: 4%; rotate: 2deg; }
  .s2 { width: 29%; left: 0; top: 13%; rotate: -6deg; }
  .s3 { width: 26%; left: 5%; top: auto; bottom: 0; rotate: 4deg; }
  .s4 { width: 22%; right: 2%; left: auto; bottom: 6%; rotate: -4deg; }
  .s5 { width: 19%; right: 4%; left: auto; top: 0; rotate: 7deg; }
  .solta .foto { outline-width: 4px; border-radius: 12px; }
  .s5 .foto, .s4 .foto { outline-width: 3px; }
  .solta .foto::after { font-size: 8px; letter-spacing: .2em; }
  .h-role { display: none; }
  .h-eyebrow { font-size: 10px; letter-spacing: .24em; white-space: nowrap; }
  .h-eyebrow::before, .h-eyebrow::after { width: 14px; margin: 0 8px; }
}
@media (max-width: 380px) {
  .h-titulo { font-size: 42px; }
}

/* ----- estado inicial da entrada (só quando o GSAP vai animar) ----- */
.anim .hero .solta .foto,
.anim .hero .h-eyebrow, .anim .hero .h-sub, .anim .hero .h-acoes { visibility: hidden; }
.anim .hero .h-titulo { visibility: hidden; }
