/* ——— Hero (bg + texto + ilustração) ——— */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 5.5rem clamp(1.15rem, 4vw, 3.25rem) 4.75rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 70% 55% at 18% 48%,
      rgba(250, 246, 239, 0.55) 0%,
      transparent 68%
    ),
    linear-gradient(
      180deg,
      rgba(250, 246, 239, 0.18) 0%,
      transparent 28%,
      transparent 72%,
      rgba(237, 225, 210, 0.22) 100%
    );
  pointer-events: none;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}

@keyframes bg-breathe {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(0, -0.8%, 0);
  }
}

.hero__stage {
  width: min(100%, 1240px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  grid-template-areas:
    "title art"
    "lede art"
    "cta art";
  column-gap: clamp(1.25rem, 4vw, 3.5rem);
  row-gap: 0.85rem;
  align-items: center;
}

.hero__title {
  grid-area: title;
  margin: 0;
  width: min(100%, 36rem);
  align-self: end;
}

.hero__title picture {
  display: contents;
}

.hero__title-img {
  width: 100%;
  height: auto;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 10px 22px rgba(42, 21, 28, 0.1));
}

.hero__lede {
  grid-area: lede;
  margin: 0;
  max-width: 28rem;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.35;
  color: var(--burgundy);
  opacity: 0;
  transform: translateY(16px);
  animation: rise 1s var(--ease-out) 0.12s forwards;
}

.hero__cta {
  grid-area: cta;
  justify-self: start;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-height: 3.15rem;
  margin-top: 0.55rem;
  padding: 0.9rem 1.45rem 0.9rem 1.7rem;
  background: var(--olive);
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--olive);
  box-shadow: 0 14px 30px rgba(43, 51, 20, 0.14);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 1.05s var(--ease-out) 0.2s forwards;
  transition:
    background 0.28s ease,
    border-color 0.28s ease,
    color 0.28s ease,
    transform 0.28s var(--ease-out),
    box-shadow 0.28s ease,
    gap 0.28s ease;
}

.hero__cta-label {
  position: relative;
  top: 0.05em;
}

.hero__cta-arrow {
  width: 1.35rem;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.28s var(--ease-out);
}

.hero__cta-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 0.42rem;
  height: 0.42rem;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.hero__cta:hover {
  background: #3a4520;
  border-color: #3a4520;
  box-shadow: 0 16px 34px rgba(43, 51, 20, 0.22);
  gap: 1.1rem;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateX(3px);
}

.hero__cta:active {
  transform: translateY(1px);
}

.hero__cta:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.hero__visual {
  grid-area: art;
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  justify-self: stretch;
  width: 100%;
  align-self: center;
}

.hero__visual picture {
  display: contents;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% 8% 8% 8%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(196, 133, 58, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero__art {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  height: auto;
  opacity: 1;
  transform: none;
  filter: drop-shadow(0 22px 40px rgba(42, 21, 28, 0.16));
}

@media (hover: hover) and (pointer: fine) {
  .hero__art {
    animation: art-float 7.5s ease-in-out 0.4s infinite;
  }

  .hero__bg-img {
    animation: bg-breathe 22s var(--ease-out) infinite alternate;
  }
}

@keyframes rise-art {
  to {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
}

@keyframes art-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
  opacity: 0;
  animation: rise 1s var(--ease-out) 0.45s forwards;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: auto;
  margin: 0;
  padding: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--burgundy);
  text-decoration: none;
  transform: translateX(-50%);
  opacity: 0;
  animation: fade-in 1s var(--ease-out) 1.15s forwards;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 2rem;
  background: linear-gradient(
    180deg,
    rgba(85, 49, 62, 0.05),
    rgba(85, 49, 62, 0.7)
  );
  transform-origin: top center;
  animation: scroll-line 1.9s var(--ease-out) infinite;
}

.hero__scroll-label {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(85, 49, 62, 0.72);
}

.hero__scroll:hover .hero__scroll-label {
  color: var(--burgundy);
}

.hero__scroll:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

@keyframes scroll-line {
  0% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  45% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@property --peek-size {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

/* ——— Peek (salão) ——— */
.peek {
  --peek-x: 50%;
  --peek-y: 50%;
  --peek-size: 0px;
  position: relative;
  isolation: isolate;
  min-height: 78svh;
  overflow: hidden;
  cursor: pointer;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.peek.is-peeking {
  touch-action: none;
}

@media (hover: hover) and (pointer: fine) {
  .peek {
    cursor: none;
  }
}

.peek__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.peek__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.9);
  background-image: none;
  pointer-events: none;
}

.peek.is-peeking .peek__veil {
  background-color: transparent;
  background-image: radial-gradient(
    circle var(--peek-size) at var(--peek-x) var(--peek-y),
    transparent 0%,
    transparent 28%,
    rgba(0, 0, 0, 0.28) 46%,
    rgba(0, 0, 0, 0.72) 68%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.peek__lens {
  position: absolute;
  top: var(--peek-y);
  left: var(--peek-x);
  z-index: 2;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 1px solid rgba(243, 235, 224, 0.55);
  border-radius: 50%;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25),
    0 0 24px rgba(228, 174, 104, 0.25);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.2s ease,
    transform 0.2s var(--ease-out);
  pointer-events: none;
}

.peek.is-peeking .peek__lens {
  opacity: 1;
  transform: scale(1);
}

.peek__hint {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 18ch;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(0.78rem, 2.2vw, 0.92rem);
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--cream-soft);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.peek.is-peeking .peek__hint {
  opacity: 0;
}

.peek__hint--desktop {
  display: none;
}

.peek__hint--touch {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .peek__hint--desktop {
    display: block;
  }

  .peek__hint--touch {
    display: none;
  }
}

html.has-fine-pointer .peek__hint--desktop {
  display: block;
}

html.has-fine-pointer .peek__hint--touch {
  display: none;
}

html.has-touch-peek .peek__hint--desktop {
  display: none;
}

html.has-touch-peek .peek__hint--touch {
  display: block;
}

/* ——— Manifesto (BG escuro) ——— */
.manifesto {
  position: relative;
  isolation: isolate;
  min-height: 70svh;
  display: grid;
  place-items: center;
  padding: 5.5rem 1.25rem;
  color: var(--cream-soft);
  overflow: hidden;
}

.manifesto__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.manifesto__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manifesto__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 65% at 50% 45%,
      rgba(20, 15, 14, 0.28) 0%,
      rgba(20, 15, 14, 0.52) 55%,
      rgba(20, 15, 14, 0.68) 100%
    );
}

.manifesto__inner {
  width: min(92vw, 640px);
  text-align: center;
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
}

.manifesto__inner.is-visible {
  opacity: 1;
  transform: none;
}

.manifesto__kicker {
  margin: 0 0 1.1rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold-bright);
}

.manifesto__title {
  margin: 0 0 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.15;
  color: #fffaf3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}

.manifesto__text {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2.4vw, 1.32rem);
  line-height: 1.65;
  color: var(--cream);
}

.manifesto__closing {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gold-bright);
}

/* ——— Newsletter modal ——— */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal[hidden] {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 15, 14, 0.62);
  animation: fade-in 0.35s var(--ease-out) both;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 420px);
  max-height: min(90svh, 640px);
  overflow-y: auto;
  padding: 2.25rem 1.6rem 1.75rem;
  background:
    linear-gradient(165deg, #fffaf3 0%, var(--cream) 55%, #ebe0d2 100%);
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(20, 15, 14, 0.35);
  animation: modal-rise 0.45s var(--ease-out) both;
}

@keyframes modal-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.25s ease;
}

.modal__close:hover {
  color: var(--burgundy);
}

.modal__kicker {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--burgundy);
}

.modal__title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 5vw, 2.25rem);
  line-height: 1.15;
  color: var(--olive);
}

.modal__text {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.modal__form {
  display: grid;
  gap: 0.9rem;
}

.modal__field {
  display: grid;
  gap: 0.4rem;
  text-align: left;
}

.modal__field span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.modal__field input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(85, 49, 62, 0.35);
  border-radius: 0;
  background: rgba(250, 246, 239, 0.9);
  color: var(--nero);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  outline: none;
  transition:
    border-color 0.3s ease,
    background 0.3s ease;
}

.modal__field input::placeholder {
  color: rgba(61, 52, 46, 0.5);
}

.modal__field input:focus {
  border-color: var(--burgundy);
  background: #fffaf3;
}

.modal__status {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--olive);
}

.modal__status.is-error {
  color: #8a2f3a;
}

.modal__submit {
  margin-top: 0.25rem;
  padding: 0.95rem 1.35rem;
  border: 0;
  background: var(--olive);
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.modal__submit:hover {
  background: #3a4520;
  box-shadow: 0 10px 28px rgba(43, 51, 20, 0.22);
}

.modal__submit:disabled {
  cursor: wait;
  opacity: 0.72;
  box-shadow: none;
}

.modal__follow {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(85, 49, 62, 0.18);
  text-align: center;
}

.modal__follow-label {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.modal__instagram {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: none;
  color: var(--burgundy);
  transition: color 0.25s ease;
}

.modal__instagram:hover {
  color: var(--olive);
}

.modal__success {
  text-align: center;
  animation: modal-rise 0.4s var(--ease-out) both;
}

.modal__instagram-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.95rem 1.35rem;
  background: var(--olive);
  color: var(--cream-soft);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.modal__instagram-btn:hover {
  background: #3a4520;
  box-shadow: 0 10px 28px rgba(43, 51, 20, 0.22);
}

.modal__success-hint {
  margin: 1.25rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--ink-muted);
}

body.modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero__title-img,
  .hero__art,
  .hero__lede,
  .hero__cta,
  .hero__eyebrow,
  .hero__scroll,
  .manifesto__inner {
    opacity: 1;
    transform: none;
  }

  .hero__bg-img {
    transform: none;
  }

  .modal__backdrop,
  .modal__panel {
    animation: none !important;
  }
}

/* ——— Hero responsive ——— */
@media (max-width: 980px) {
  .hero {
    padding-bottom: 4.25rem;
    align-items: start;
  }

  .hero__stage {
    grid-template-columns: 1fr;
    grid-template-areas:
      "art"
      "title"
      "lede"
      "cta";
    column-gap: 0;
    row-gap: 0.9rem;
    padding-top: 0.5rem;
    justify-items: center;
    text-align: center;
  }

  .hero__title {
    width: min(100%, 30rem);
    justify-self: center;
    align-self: center;
  }

  .hero__lede {
    max-width: 22rem;
    justify-self: center;
    text-align: center;
  }

  .hero__cta {
    justify-self: center;
    align-self: center;
    margin-top: 0.35rem;
  }

  .hero__visual {
    justify-self: center;
    max-width: min(94vw, 520px);
  }

  .hero__visual::before {
    inset: 18% 12% 10% 12%;
  }

  .hero__art {
    width: min(100%, 480px);
    animation:
      rise-art 1.2s var(--ease-out) 0.08s forwards,
      art-float 7.5s ease-in-out 1.4s infinite;
  }

  .hero__scroll {
    bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: 4.85rem max(1.1rem, env(safe-area-inset-left, 0px))
      3.5rem max(1.1rem, env(safe-area-inset-right, 0px));
  }

  .hero__stage {
    row-gap: 0.8rem;
    width: 100%;
  }

  .hero__title {
    width: min(100%, 22.5rem);
  }

  .hero__lede {
    max-width: min(100%, 22rem);
    font-size: 1.02rem;
    padding-inline: 0.15rem;
  }

  .hero__cta {
    width: min(100%, 22.5rem);
    min-height: 48px;
    padding-inline: 1.25rem;
  }

  .hero__art {
    width: min(100%, 100%);
    max-width: 380px;
  }

  .hero__scroll {
    display: none;
  }

  .peek {
    min-height: 62svh;
  }

  .manifesto {
    min-height: auto;
    padding: 4rem max(1.1rem, env(safe-area-inset-left, 0px))
      4rem max(1.1rem, env(safe-area-inset-right, 0px));
  }

  .manifesto__title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .manifesto__text {
    font-size: 1.05rem;
  }
}

@media (min-width: 981px) and (max-height: 780px) {
  .hero {
    min-height: auto;
    padding-top: 4.85rem;
    padding-bottom: 3.25rem;
  }

  .hero__art {
    width: min(100%, 520px);
    animation: rise-art 1.2s var(--ease-out) 0.18s forwards;
  }

  .hero__title {
    width: min(100%, 30rem);
  }

  .hero__scroll {
    bottom: 0.85rem;
  }
}
