.hero {
  position: relative;
  z-index: var(--z-content);
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: clip;
  isolation: isolate;
  padding: 0;
}

.hero-shell {
  --hero-title-offset-y: clamp(6rem, 16svh, 12rem);

  position: relative;
  z-index: 3;
  width: min(100%, calc(var(--max) + 240px));
  min-height: 100svh;
  margin-inline: auto;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding-inline: var(--gutter);
}

.hero-camera-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-camera-canvas {
  /* A câmera é o primeiro plano da hero, mas continua abaixo do header. */
  z-index: 4;
  display: block;
  opacity: 0;
  filter: brightness(0.9) saturate(0.78) contrast(0.96);
  transition: opacity 360ms var(--ease-out);
}

.hero-camera-canvas[hidden] {
  display: none;
}

.hero-camera-canvas.is-ready {
  /* O modelo precisa ocluir as letras durante toda a travessia. */
  opacity: 1;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  /* Mantém a barra legível enquanto só a câmera pode cruzá-la. */
  clip-path: inset(var(--header-height) 0 0);
}

.hero-flash-cast {
  --flash-target-x: 50%;
  --flash-target-y: 36%;
  --flash-focus-y: calc(var(--flash-target-y) + 10%);
  --flash-lower-y: calc(var(--flash-target-y) + 22%);
  --flash-focus-x: clamp(15rem, 30vw, 28rem);
  --flash-focus-y-size: clamp(22rem, 50vw, 46rem);
  --flash-spread: clamp(34rem, 82vw, 76rem);
  --flash-spread-y: clamp(38rem, 88vw, 80rem);

  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      ellipse var(--flash-focus-x) var(--flash-focus-y-size) at var(--flash-target-x) var(--flash-focus-y),
      rgba(255, 253, 254, 0.54) 0%,
      rgba(247, 241, 244, 0.27) 28%,
      rgba(229, 213, 221, 0.075) 58%,
      transparent 78%
    ),
    radial-gradient(
      ellipse var(--flash-spread) var(--flash-spread-y) at var(--flash-target-x) var(--flash-lower-y),
      rgba(248, 244, 246, 0.105) 0%,
      rgba(232, 219, 225, 0.038) 42%,
      transparent 80%
    );
  filter: blur(9px);
  mix-blend-mode: screen;
  will-change: opacity;
}

.hero-flash-cast::after {
  position: absolute;
  inset: -8%;
  background: radial-gradient(
    ellipse 62% 92% at var(--flash-target-x) var(--flash-lower-y),
    rgba(249, 246, 247, 0.045),
    rgba(228, 214, 221, 0.014) 48%,
    transparent 82%
  );
  content: "";
}

@media (min-width: 761px) {
  .hero-flash-cast {
    /* Replica no desktop as dimensões efetivas do clarão do mobile. */
    --flash-focus-x: 15rem;
    --flash-focus-y-size: 22rem;
    --flash-spread: 34rem;
    --flash-spread-y: 38rem;
  }
}

.hero-portrait::before,
.hero-portrait::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.hero-portrait::before {
  background: radial-gradient(ellipse at 50% 36%, rgba(0, 0, 0, 0) 0 20%, rgba(0, 0, 0, 0.64) 51%, #000 78%);
}

.hero-portrait::after {
  background: linear-gradient(180deg, transparent 0 58%, #000 94%);
}

.hero-portrait-frame {
  position: relative;
  width: min(48vw, 460px);
  min-width: 320px;
  height: min(76svh, 740px);
  transform: translateY(clamp(0.75rem, 2.5svh, 1.7rem));
}

.hero-portrait img {
  display: block;
  width: 100%;
  min-width: 0;
  height: 100%;
  object-fit: cover;
  object-position: 50% 36%;
  filter: grayscale(1) contrast(1.08) brightness(0.56);
  opacity: 0.9;
}

/* Caixa sem apresentação visual que delimita somente o rosto no retrato. */
.hero-camera-target {
  position: absolute;
  top: 17%;
  left: 50%;
  width: 32%;
  height: 24%;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-type {
  --hero-line-gap: clamp(0.18em, 1.3vw, 0.34em);

  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(100%, calc(var(--max) + 120px));
  padding-top: 0;
  text-align: center;
  transform: translate3d(0, var(--hero-title-offset-y), 0);
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 8.6vw, 6rem);
  font-weight: 900;
  line-height: 0.86;
}

.hero-type h1 {
  width: 100%;
}

#hero-title {
  max-width: 100%;
}

.hero-title-visual {
  display: grid;
  gap: 0;
  justify-items: center;
  width: 100%;
}

.hero-line {
  position: relative;
  display: flex;
  justify-content: center;
  gap: var(--hero-line-gap);
  width: var(--hero-line-target-width, fit-content);
  max-width: 100%;
  min-width: 0;
  padding-block: 0.055em 0.09em;
  white-space: nowrap;
}

.hero-title-visual.is-line-width-synced .hero-line {
  justify-content: space-between;
}

.hero-line-intro {
  margin-top: -0.12em;
}

.hero-word-mask {
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  overflow: hidden;
  overflow: clip;
  padding: 0.03em 0.015em 0.11em;
  vertical-align: bottom;
}

.hero-word {
  display: inline-block;
  opacity: 1;
  transform: translateY(0);
  transform-origin: 50% 88%;
}

.hero-word-gradient {
  white-space: nowrap;
}

.hero-letter {
  display: inline-block;
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero-line-greeting .hero-letter {
    --grad-stop-safe: clamp(60%, var(--grad-stop, 78%), 86%);

    background-image: linear-gradient(175deg, #ffffff 0%, #ffffff var(--grad-stop-safe), #d2d2d2 calc(var(--grad-stop-safe) + 10%), #000000 115%);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 100% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
  }
}

@media (forced-colors: active) {
  .hero-line-greeting .hero-letter {
    background: none;
    background-image: none;
    background-clip: border-box;
    -webkit-background-clip: border-box;
    color: CanvasText;
    -webkit-text-fill-color: CanvasText;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-line-greeting .hero-word,
  .hero-line-intro .hero-word {
    opacity: 0;
  }

  .hero-line-greeting .hero-word {
    transform: translate3d(var(--drift, 0), var(--lift, 1.2em), 0) rotateX(8deg) scaleY(0.97);
  }

  .hero-line-intro .hero-word {
    filter: blur(6px);
    transform: translate3d(var(--drift, 0), var(--lift, 1.2em), 0) rotateX(13deg) scaleY(0.94);
  }

  .hero-line-greeting .hero-word {
    animation: hero-word-rise-no-blur var(--dur, 1s) var(--ease-out) forwards;
    animation-delay: var(--delay, 100ms);
  }

  .hero-line-intro .hero-word {
    animation: hero-word-rise var(--dur, 1.2s) var(--ease-out) forwards;
    animation-delay: var(--delay, 520ms);
  }

}

@keyframes hero-word-rise {
  48% {
    opacity: 1;
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes hero-word-rise-no-blur {
  48% {
    opacity: 1;
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pink-stop {
  display: inline;
  color: var(--accent);
  letter-spacing: -0.03em;
}

#linha1maior{
  transform: scaleY(1.2);
  transform-origin: center bottom;
}
