.lithos-hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
  background: #000;
  font-family: var(--calone-font-sans);
  letter-spacing: -0.02em;
}

.lithos-hero__base {
  position: absolute;
  inset: 0;
  z-index: 10;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.12);
}

/* Degradê que dissolve a base da hero em preto para emendar no rodapé sem
   linha dura. Fica acima das imagens (z-index 30) e abaixo do texto (50),
   então escurece o fundo sem apagar os asides. */
.lithos-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  z-index: 40;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, .35) 38%,
    rgba(0, 0, 0, .72) 66%,
    rgba(0, 0, 0, .93) 86%,
    #000 100%);
}

.lithos-hero__canvas {
  position: absolute;
  inset: 0;
  display: none;
}

/* Holofote do cursor. A máscara é um gradiente do próprio CSS e só a posição
   muda (via --lithos-x/y, escritas em lithos-hero.js). A versão anterior
   redesenhava um canvas e fazia canvas.toDataURL() a cada frame: no WebKit
   isso custava ~15ms por frame só para serializar o PNG, quase todo o
   orçamento de um frame a 60fps — daí o efeito travar no Safari. */
.lithos-hero__reveal {
  --lithos-r: 260px;
  --lithos-x: -9999px;
  --lithos-y: -9999px;
  position: absolute;
  inset: 0;
  z-index: 30;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle closest-side,
    #000 0%, #000 40%,
    rgba(0, 0, 0, .75) 60%,
    rgba(0, 0, 0, .4) 75%,
    rgba(0, 0, 0, .12) 88%,
    transparent 100%);
          mask-image: radial-gradient(circle closest-side,
    #000 0%, #000 40%,
    rgba(0, 0, 0, .75) 60%,
    rgba(0, 0, 0, .4) 75%,
    rgba(0, 0, 0, .12) 88%,
    transparent 100%);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: calc(var(--lithos-r) * 2) calc(var(--lithos-r) * 2);
          mask-size: calc(var(--lithos-r) * 2) calc(var(--lithos-r) * 2);
  -webkit-mask-position: calc(var(--lithos-x) - var(--lithos-r)) calc(var(--lithos-y) - var(--lithos-r));
          mask-position: calc(var(--lithos-x) - var(--lithos-r)) calc(var(--lithos-y) - var(--lithos-r));
}

.lithos-hero__heading {
  position: absolute;
  top: 14%;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  pointer-events: none;
}
.lithos-hero__heading h1 {
  color: #fff;
  line-height: 0.95;
  margin: 0;
}
.lithos-line {
  display: block;
  opacity: 0;
  font-size: 48px;
  font-weight: 400;
}
.lithos-line--serif {
  font-family: var(--calone-font-display);
  font-style: italic;
  letter-spacing: -0.05em;
}
.lithos-line:not(.lithos-line--serif) {
  letter-spacing: -0.08em;
  margin-top: -4px;
}
@media (min-width: 640px) {
  .lithos-line { font-size: 72px; }
}
@media (min-width: 768px) {
  .lithos-line { font-size: 96px; }
}

.lithos-hero__aside-left {
  display: none;
  position: absolute;
  bottom: 56px;
  left: 40px;
  max-width: 260px;
  z-index: 50;
  opacity: 0;
}
@media (min-width: 640px) {
  .lithos-hero__aside-left { display: block; }
}
@media (min-width: 768px) {
  .lithos-hero__aside-left { left: 56px; }
}
.lithos-hero__aside-left p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.lithos-hero__aside-right {
  position: absolute;
  bottom: 40px;
  left: 20px;
  right: 20px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  opacity: 0;
}
@media (min-width: 640px) {
  .lithos-hero__aside-right {
    bottom: 96px;
    left: auto;
    right: 40px;
    max-width: 260px;
    gap: 20px;
  }
}
@media (min-width: 768px) {
  .lithos-hero__aside-right { right: 56px; }
}
.lithos-hero__aside-right p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  line-height: 1.6;
  margin: 0;
}
@media (min-width: 640px) {
  .lithos-hero__aside-right p { font-size: 14px; }
}

/* Botão principal em fundo escuro: fundo branco, texto preto (§13) */
.lithos-hero__cta {
  min-height: 44px;
  background: var(--calone-white);
  color: var(--calone-black);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--calone-white);
  cursor: pointer;
  transition: background-color var(--motion-standard) var(--ease-calone),
    transform var(--motion-standard) var(--ease-calone);
}
.lithos-hero__cta:hover {
  background: var(--calone-silver);
  transform: translateY(-2px);
}
.lithos-hero__cta:active {
  transform: scale(0.95);
}

@media (prefers-reduced-motion: reduce) {
  .lithos-line,
  .lithos-hero__aside-left,
  .lithos-hero__aside-right {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .lithos-hero__base {
    transform: scale(1) !important;
  }
}
