/* ==========================================================================
   Estética Kirei — 4 variações de hero
   .hero--imersivo · .hero--split · .hero--minimalista · .hero--galeria
   ========================================================================== */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.04; }
.hero h1 em { font-style: italic; font-weight: 300; }
.hero .lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 46ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero .pill-note { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; font-size: .9rem; font-weight: 500; margin-bottom: 28px; }
.hero .pill-note b { display: inline-grid; place-items: center; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

/* Momento autoral: as linhas do título sobem de dentro de uma máscara */
.line-mask { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line-mask > span { display: block; transform: translateY(105%); animation: line-up 1.1s var(--ease-out) forwards; }
.line-mask:nth-child(2) > span { animation-delay: .12s; }
.line-mask:nth-child(3) > span { animation-delay: .24s; }
@keyframes line-up { to { transform: none; } }

/* onda orgânica na base dos heros escuros */
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; width: 100%; height: clamp(40px, 6vw, 90px); color: var(--wine-700); pointer-events: none; }

.scroll-cue { position: absolute; left: 50%; bottom: clamp(64px, 7vw, 100px); z-index: 4; transform: translateX(-50%); width: 28px; height: 46px; border-radius: 999px; border: 2px solid rgba(255,255,255,.7); }
.scroll-cue::after { content: ''; position: absolute; left: 50%; top: 9px; width: 4px; height: 9px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- tríptico de fotos (usado no V1 e V4) ---------- */
.triptych { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.triptych img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) {
  .triptych { grid-template-columns: 1fr; }
  .triptych img:not(:nth-child(2)) { display: none; }
}

/* ==========================================================================
   V1 — IMERSIVO
   ========================================================================== */
.hero--imersivo { min-height: 100svh; display: flex; align-items: center; color: #fff; background: var(--wine-900); padding: calc(var(--header-h) + 40px) 0 190px; }
.hero--imersivo .hero-bg { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero--imersivo::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(120% 90% at 50% 40%, rgba(63,29,25,.35) 0%, rgba(46,21,18,.82) 70%),
  linear-gradient(180deg, rgba(46,21,18,.55) 0%, rgba(46,21,18,.25) 40%, rgba(46,21,18,.85) 100%); }
.hero--imersivo .container { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero--imersivo .lead { color: rgba(255, 244, 240, .9); margin-top: 24px; }
.hero--imersivo .pill-note { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero--imersivo .pill-note b { background: var(--rose-300); color: var(--wine-900); }
.hero--imersivo .actions { justify-content: center; }
.hero--imersivo h1 { max-width: 19ch; font-size: clamp(2.4rem, 5vw, 4.4rem); }

/* ==========================================================================
   V2 — SPLIT
   ========================================================================== */
.hero--split { min-height: 100svh; display: flex; align-items: center; background: var(--cream-050); padding: calc(var(--header-h) + 48px) 0 80px; }
.hero--split .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero--split h1 { color: var(--ink); }
.hero--split h1 em { color: var(--wine-600); }
.hero--split .lead { color: var(--text-soft); margin-top: 24px; }
.hero--split .pill-note { background: var(--blush-100); color: var(--wine-800); }
.hero--split .pill-note b { background: var(--wine-700); color: #fff; }
.hero-proofs { display: flex; flex-wrap: wrap; gap: clamp(20px, 4vw, 44px); margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-proofs div { display: flex; flex-direction: column; }
.hero-proofs strong { font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; color: var(--wine-700); line-height: 1.1; }
.hero-proofs span { font-size: .9rem; color: var(--text-soft); }
.split-media { position: relative; aspect-ratio: 4 / 4.6; max-width: 540px; width: 100%; justify-self: end; }
.split-media .morph {
  position: absolute; inset: 0 0 6% 6%; overflow: hidden;
  border-radius: var(--blob-a); box-shadow: var(--shadow-soft);
  animation: blob-morph 12s ease-in-out infinite alternate, img-in 1.4s var(--ease-out) both;
}
.split-media .morph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
@keyframes img-in { from { clip-path: circle(0% at 60% 50%); } to { clip-path: circle(75% at 50% 50%); } }
.split-media .float-circle { position: absolute; left: -4%; bottom: 0; width: 38%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--cream-050); box-shadow: var(--shadow-card); animation: bob 7s ease-in-out infinite alternate; }
.split-media .float-circle img { width: 100%; height: 100%; object-fit: cover; }
.split-media .float-chip { position: absolute; right: -2%; top: 8%; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #fff; border-radius: 999px; box-shadow: var(--shadow-card); font-weight: 600; font-size: .92rem; animation: bob 6s ease-in-out .8s infinite alternate-reverse; }
.split-media .float-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.split-media .float-chip small { display: block; font-weight: 400; color: var(--text-soft); font-size: .8rem; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-14px); } }

@media (max-width: 900px) {
  .hero--split .container { grid-template-columns: 1fr; }
  .split-media { justify-self: center; max-width: 440px; order: -1; }
}

/* ==========================================================================
   V3 — MINIMALISTA TIPOGRÁFICO
   ========================================================================== */
.hero--minimalista { min-height: 100svh; display: flex; align-items: center; color: #fff; padding: calc(var(--header-h) + 40px) 0 140px; background:
  radial-gradient(60% 70% at 78% 18%, rgba(156, 82, 68, .55) 0%, transparent 70%),
  radial-gradient(50% 60% at 12% 90%, rgba(131, 63, 53, .5) 0%, transparent 70%),
  var(--wine-900); }
.hero--minimalista .watermark {
  position: absolute; right: -2%; top: 50%; transform: translateY(-50%); z-index: -1;
  writing-mode: vertical-rl; font-size: clamp(14rem, 34vw, 30rem); line-height: .9;
  color: rgba(255, 220, 210, .06); user-select: none;
}
.hero--minimalista .container { display: flex; flex-direction: column; align-items: flex-start; max-width: 1100px; }
.hero--minimalista .logo-mark { width: clamp(96px, 11vw, 132px); aspect-ratio: 1; border-radius: 32px; overflow: hidden; box-shadow: 0 20px 50px -16px rgba(0,0,0,.6); margin-bottom: 40px; }
.hero--minimalista .logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.hero--minimalista h1 { font-size: clamp(2.7rem, 7vw, 6rem); font-weight: 300; letter-spacing: -.035em; max-width: 14ch; }
.hero--minimalista h1 strong { font-weight: 600; }
.hero--minimalista .lead { color: rgba(255, 240, 235, .82); margin-top: 28px; }
.hero--minimalista .meta { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 28px; font-size: .9rem; color: rgba(255,240,235,.7); }
.hero--minimalista .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero--minimalista .meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rose-300); }
.hero--minimalista .blob { opacity: .5; }

/* ==========================================================================
   V4 — GALERIA / CARROSSEL
   ========================================================================== */
.hero--galeria { min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--wine-950); padding: calc(var(--header-h) + 40px) 0 clamp(140px, 16vw, 200px); }
.hero--galeria .hero-bg { position: absolute; inset: -8% 0 -8% 0; z-index: -2; will-change: transform; }
.hero--galeria .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero--galeria .slide.is-active { opacity: 1; }
.hero--galeria .slide.is-active .triptych img { animation: kenburns 7s ease-out both; }
.hero--galeria .slide .triptych img:nth-child(2) { animation-delay: .2s; }
.hero--galeria .slide .triptych img:nth-child(3) { animation-delay: .4s; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero--galeria .triptych { overflow: hidden; }
.hero--galeria::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(46,21,18,.88) 0%, rgba(46,21,18,.55) 55%, rgba(46,21,18,.25) 100%), linear-gradient(0deg, rgba(46,21,18,.8) 0%, transparent 50%); }
.hero--galeria .lead { color: rgba(255,244,240,.9); margin-top: 22px; }
.hero--galeria h1 { max-width: 19ch; font-size: clamp(2.4rem, 5vw, 4.4rem); }
.hero--galeria .pill-note { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hero--galeria .pill-note b { background: var(--rose-300); color: var(--wine-900); }
.slide-dots { display: flex; gap: 10px; margin-top: 44px; }
.slide-dots button { width: 34px; height: 6px; border-radius: 999px; border: 0; padding: 0; background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.slide-dots button.is-active::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: dot-fill 5s linear forwards; }
@keyframes dot-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.slide-label { position: absolute; right: var(--gutter); bottom: clamp(110px, 13vw, 170px); z-index: 2; font-size: .9rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 10px; }
.slide-label::before { content: ''; width: 28px; height: 1px; background: currentColor; }
@media (max-width: 760px) { .slide-label { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .line-mask > span { transform: none; animation: none; }
  .split-media .morph, .split-media .float-circle, .split-media .float-chip, .hero--galeria .slide.is-active .triptych img, .scroll-cue::after { animation: none !important; }
}

@media (max-height: 820px) { .scroll-cue { display: none; } }

/* ajustes de escala e camadas */
.hero > .container { position: relative; z-index: 2; }
.hero--split h1 { font-size: clamp(2.3rem, 4.1vw, 3.7rem); }
.hero--split .container { grid-template-columns: 1.1fr .9fr; }
.hero--minimalista h1 { font-size: clamp(2.5rem, 5.4vw, 4.6rem); max-width: 17ch; }
.hero--minimalista .logo-mark { width: clamp(84px, 8vw, 108px); border-radius: 26px; margin-bottom: 32px; }
