/* Hero C · "Tapete de letras" (aprovado) — copiado de 03-heros/c/estilo-c.css; :root e corpo estão em base.css */
/* ---------- navegação ---------- */
.c-nav {
  position: absolute; top: 0; left: 0; right: 0;
  z-index: 20;
  height: var(--nav-h);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 44px);
  padding: 0 var(--margem);
}
.c-marca {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none;
  font-family: var(--f-titulo); font-weight: 600;
  font-size: 1.12rem; letter-spacing: -.01em;
  color: var(--tinta);
}
.c-marca-peca { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 3px 4px rgb(120 40 70 / .22)); }
.c-marca-peca path { fill: var(--rosa-eva); stroke: rgb(255 255 255 / .55); stroke-width: .6; }
.c-marca-peca text { font-family: var(--f-titulo); font-weight: 600; font-size: 17px; fill: var(--bordo); }
.c-links { display: flex; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; }
.c-links a {
  text-decoration: none; font-weight: 400; font-size: .95rem; color: var(--texto);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s;
  padding: 4px 0;
}
.c-links a:hover { color: var(--bordo); background-size: 100% 1px; }
.c-nav-whats {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .62rem 1.1rem .62rem .9rem;
  border-radius: var(--raio);
  text-decoration: none; font-weight: 500; font-size: .92rem;
  color: var(--bordo);
  background: rgb(255 255 255 / .55);
  box-shadow: 0 0 0 1.5px rgb(166 45 88 / .55) inset;
  backdrop-filter: blur(6px);
  transition: background .25s, color .25s;
}
.c-nav-whats svg { width: 18px; height: 18px; fill: currentColor; }
.c-nav-whats:hover { background: var(--bordo); color: #fff; }

/* ---------- hero ---------- */
.c-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(100svh, 640px);
  display: grid;
  grid-template-columns: var(--margem) minmax(0, min(45vw, 650px)) 1fr;
  grid-template-rows: auto auto 1fr;
  padding-top: calc(var(--nav-h) + clamp(12px, 3.6svh, 44px));
}

/* malha de gradiente (oklch), respirando devagar */
.c-malha {
  position: absolute; inset: -14%;
  z-index: -2;
  background:
    radial-gradient(circle farthest-side at 74% 30% in oklch, oklch(86% .075 8) 0%, oklch(90% .05 12 / .55) 34%, oklch(95% .02 30 / 0) 62%),
    radial-gradient(circle farthest-side at 12% 92% in oklch, oklch(89% .055 52) 0%, oklch(92% .04 50 / .5) 30%, oklch(96% .015 40 / 0) 58%),
    radial-gradient(circle farthest-side at 98% 100% in oklch, oklch(62% .13 358 / .30) 0%, oklch(80% .08 5 / .12) 30%, oklch(90% .03 10 / 0) 52%),
    radial-gradient(circle farthest-side at 38% 8% in oklch, oklch(98.5% .012 40) 0%, oklch(98% .01 40 / 0) 55%),
    radial-gradient(circle farthest-side at 92% 4% in oklch, oklch(40% .05 270 / .10) 0%, oklch(60% .03 270 / 0) 40%),
    var(--papel);
  animation: c-respira 34s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes c-respira {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2.2%, 1.4%, 0) scale(1.04); }
  100% { transform: translate3d(1.6%, -1.2%, 0) scale(1.02); }
}

.c-texto-topo { grid-column: 2; grid-row: 1; position: relative; z-index: 4; }
.c-texto-base { grid-column: 2; grid-row: 2; position: relative; z-index: 4; }

.c-sobre {
  margin: 0 0 clamp(14px, 2.4svh, 26px);
  display: inline-flex; align-items: center; gap: .7rem;
  font-weight: 500; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--bordo);
}
.c-ponto {
  display: inline-block; width: 7px; height: 7px; border-radius: 2px;
  background: currentColor; opacity: .55; transform: rotate(45deg);
}
.c-titulo {
  margin: 0;
  font-family: var(--f-titulo);
  font-weight: 600;
  font-size: clamp(2.5rem, min(6.1vw, 9.2svh), 5.7rem);
  line-height: .98;
  letter-spacing: -.028em;
  color: var(--tinta);
  max-width: 10.6ch;
  text-wrap: balance;
  animation: c-chega .9s cubic-bezier(.2, .7, .2, 1) both;
}
.c-titulo em {
  font-style: normal;
  color: var(--bordo);
  position: relative;
  white-space: nowrap;
}
.c-apoio {
  margin: clamp(16px, 2.6svh, 30px) 0 0;
  max-width: 40ch;
  font-size: clamp(1rem, .45vw + .8rem, 1.16rem);
  line-height: 1.55;
  color: var(--texto);
  animation: c-chega .9s .12s cubic-bezier(.2, .7, .2, 1) both;
}
.c-acoes {
  display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem;
  margin-top: clamp(18px, 3svh, 32px);
  animation: c-chega .9s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.c-botao {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.55rem;
  border-radius: 18px;
  text-decoration: none;
  font-family: var(--f-titulo); font-weight: 500; font-size: 1.08rem; letter-spacing: .005em;
  color: #fff;
  background: linear-gradient(180deg, oklch(56% .16 358), oklch(48% .16 358));
  box-shadow: var(--sombra-eva);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s;
}
.c-botao::after { content: "→"; font-family: var(--f-texto); font-weight: 400; transition: transform .25s; }
.c-botao:hover { transform: translateY(-2px); }
.c-botao:hover::after { transform: translateX(3px); }
.c-botao:active { transform: translateY(1px) scale(.98); }
.c-prova {
  display: grid; gap: .1rem;
  margin: 0;
  padding-left: 1.1rem;
  border-left: 1.5px solid rgb(166 45 88 / .3);
  font-size: .88rem; line-height: 1.4; font-weight: 400; color: var(--texto);
}
.c-prova span:first-child { color: var(--tinta); font-weight: 500; }
@keyframes c-chega { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- retrato sobre a placa de EVA ---------- */
.c-figura {
  position: absolute;
  z-index: 1;
  margin: 0;
  bottom: 0;
  height: var(--fig-h);
  aspect-ratio: 1200 / 2000;
  right: calc(3.6vw - .09 * var(--fig-h));
}
.c-placa {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: visible;
  filter: drop-shadow(0 26px 34px rgb(130 40 70 / .16)) drop-shadow(0 4px 6px rgb(130 40 70 / .10));
  animation: c-chega 1s .1s cubic-bezier(.2, .7, .2, 1) both;
}
.c-placa-base { fill: var(--rosa-eva); stroke: rgb(255 255 255 / .55); stroke-width: 1.4; }
.c-placa-poros { fill: #000; opacity: .5; }
.c-retrato {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  /* o corte reto do cabelo (lado direito, abaixo da orelha) se dissolve no papel, como a base */
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 49%), linear-gradient(to left, transparent 4%, #000 16%);
  mask-image: linear-gradient(to bottom, #000 40%, transparent 49%), linear-gradient(to left, transparent 4%, #000 16%);
  filter: saturate(1.03) contrast(1.02);
}

/* chão: uma faixa de papel na base assenta o retrato e as peças */
.c-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top in oklab, oklch(96.5% .018 25 / .92), oklch(96.5% .018 25 / .5) 45%, oklch(96.5% .018 25 / 0));
}

/* ---------- palco das peças (Three.js) ---------- */
.c-palco {
  position: absolute;
  z-index: 3;
  left: calc(var(--margem) - 24px);
  width: min(70vw, 1100px);
  top: 64%;
  bottom: 0;
  display: flex; flex-direction: column;
  pointer-events: none;
}
.c-palco-cena { position: relative; flex: 1; min-height: 150px; }
.c-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity .7s ease;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.c-canvas.pronta { opacity: 1; }
.c-reserva { display: none; position: absolute; inset: 0; align-items: center; gap: 4px; padding-left: 24px; }
html:not(.js) .c-reserva, .sem-webgl .c-reserva { display: flex; }
html:not(.js) .c-canvas, .sem-webgl .c-canvas { display: none; }
.c-reserva span {
  display: grid; place-items: center;
  width: clamp(40px, 5vw, 72px); aspect-ratio: 1;
  border-radius: 6px;
  font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  color: var(--bordo);
  box-shadow: var(--sombra-eva);
}
.c-reserva span:nth-child(5n+1) { background: #f5b5c3; }
.c-reserva span:nth-child(5n+2) { background: #f7d77e; }
.c-reserva span:nth-child(5n+3) { background: #a6dcc9; }
.c-reserva span:nth-child(5n+4) { background: #c7b6e8; }
.c-reserva span:nth-child(5n+5) { background: #f8c3a2; }

.c-fala {
  margin: 0 0 clamp(14px, 2.6svh, 30px);
  padding-left: 24px;
  max-width: 34rem;
  pointer-events: auto;
}
.c-palco--curto .c-fala { display: none; }
.c-fala p {
  margin: 0;
  font-size: clamp(.92rem, .3vw + .8rem, 1.04rem);
  line-height: 1.45;
  font-weight: 300;
  color: var(--texto);
}
.c-fala b { font-weight: 500; color: var(--bordo); }
.c-fala footer {
  margin-top: .3rem;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: rgb(84 77 71 / .78);
}
.c-fala footer::before { content: "— "; }

/* ---------- telas médias ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
  :root { --fig-h: min(86svh, 900px); }
  .c-hero { grid-template-columns: var(--margem) minmax(0, 50vw) 1fr; }
  .c-links a:nth-child(2) { display: none; }
}

/* ---------- celular ---------- */
@media (max-width: 760px) {
  :root { --nav-h: 64px; --fig-h: min(60svh, 540px); }
  .c-links { display: none; }
  .c-nav { justify-content: space-between; }
  .c-marca { font-size: 1rem; }
  .c-marca-peca { width: 30px; height: 30px; }
  .c-nav-whats { padding: .55rem .85rem .55rem .7rem; font-size: .84rem; }
  .c-nav-whats span::before { content: "WhatsApp"; }
  .c-nav-whats span { font-size: 0; }
  .c-nav-whats span::before { font-size: .84rem; }

  .c-hero {
    display: flex; flex-direction: column;
    min-height: 0;
    padding: calc(var(--nav-h) + 10px) 0 40px;
  }
  .c-texto-topo, .c-texto-base { padding: 0 var(--margem); }
  .c-sobre { font-size: .74rem; margin-bottom: 12px; }
  .c-titulo { font-size: clamp(2.3rem, 10.8vw, 3.1rem); max-width: 11ch; }
  .c-figura {
    position: relative;
    right: auto; bottom: auto;
    align-self: center;
    margin: 6px 0 0 9%;
  }
  .c-palco {
    position: relative;
    left: auto; top: auto; bottom: auto;
    width: 100%;
    margin-top: calc(-.37 * var(--fig-h));
  }
  .c-palco-cena { flex: none; height: clamp(190px, 56vw, 250px); }
  .c-fala { padding: 0 var(--margem); margin: 4px 0 0; }
  .c-reserva { padding-left: var(--margem); }
  .c-texto-base { margin-top: 22px; }
  .c-apoio { margin-top: 0; }
  .c-botao { width: 100%; justify-content: center; }
}

/* ---------- movimento reduzido: estado final, sem deriva ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
