:root {
  --accent: #ff7a18;
  --accent-hot: #ffb000;
  --ink: #080706;
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.hero {
  position: relative;
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  padding: clamp(18px, 3vw, 32px);
  place-items: end center;
}

.sound-toggle {
  position: absolute;
  top: max(26px, env(safe-area-inset-top));
  right: max(26px, env(safe-area-inset-right));
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--text);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: sound-nudge 2.8s ease-in-out infinite;
}

@media (min-width: 681px) {
  .sound-toggle {
    top: 30px;
    right: 30px;
  }
}

.sound-toggle::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 2px solid rgba(255, 176, 0, 0.72);
  border-radius: inherit;
  opacity: 0;
  animation: sound-ring 2.8s ease-out infinite;
}

.sound-toggle:hover,
.sound-toggle:focus-visible {
  transform: translateY(-2px);
  background: rgba(0, 0, 0, 0.72);
  border-color: rgba(255, 176, 0, 0.7);
}

.sound-toggle:focus-visible {
  outline: 3px solid rgba(255, 176, 0, 0.72);
  outline-offset: 4px;
}

.sound-toggle.is-playing {
  color: #17100a;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 34px rgba(255, 122, 24, 0.34);
  animation: none;
}

.sound-toggle.is-playing::after {
  animation: none;
  opacity: 0;
}

.sound-toggle__icon {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.sound-toggle__speaker {
  fill: currentColor;
  stroke: currentColor;
}

.sound-toggle__slash {
  opacity: 1;
}

.sound-toggle__wave {
  opacity: 0;
}

.sound-toggle.is-playing .sound-toggle__slash {
  opacity: 0;
}

.sound-toggle.is-playing .sound-toggle__wave {
  opacity: 1;
}

.hero__bg,
.hero__video,
.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg {
  background-image: url("../img/capfat-dime-loe-arte-urbano-graffiti-mural.webp");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: mural-drift 24s ease-in-out infinite alternate;
}

.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__video--mobile {
  display: none;
}

.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.42) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.08) 42%, rgba(0, 0, 0, 0.34) 100%);
}

.hero__content {
  width: min(1040px, 100%);
  margin-bottom: 10px;
  text-align: center;
}

.hero__lead,
.hero__copy,
.hero__soon,
.hero__actions {
  opacity: 0;
  animation: reveal-up 720ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero__content span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 0.08em 0.32em 0.12em;
  background: rgba(0, 0, 0, 0.65);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.hero__lead span {
  display: inline-block;
  white-space: nowrap;
}

.hero__lead {
  margin: 0 auto;
  max-width: none;
  color: var(--text);
  font-size: clamp(0.775rem, 1.2vw, 1.055rem);
  font-weight: 800;
  line-height: 1.28;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.72);
  animation-delay: 80ms;
}

.hero__copy {
  max-width: 430px;
  margin: clamp(8px, 1.4vw, 14px) auto 0;
  color: var(--text);
  font-size: clamp(0.635rem, 0.82vw, 0.755rem);
  font-weight: 700;
  line-height: 1.35;
  animation-delay: 220ms;
}

.hero__soon {
  margin: clamp(8px, 1.4vw, 14px) auto 0;
  color: var(--text);
  font-size: clamp(0.635rem, 0.8vw, 0.735rem);
  font-weight: 800;
  line-height: 1.35;
  animation-delay: 360ms;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: clamp(12px, 1.8vw, 18px);
  animation-delay: 520ms;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 126px;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
  will-change: transform;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 176, 0, 0.72);
  outline-offset: 4px;
}

.button--primary {
  color: #16100b;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent));
  box-shadow: 0 14px 34px rgba(255, 122, 24, 0.34);
}

.button--primary:hover,
.button--primary:focus-visible {
  box-shadow: 0 18px 40px rgba(255, 122, 24, 0.46);
}

.button--secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 176, 0, 0.62);
}

@keyframes mural-drift {
  from {
    transform: scale(1.04) translate3d(-0.6%, -0.4%, 0);
  }

  to {
    transform: scale(1.1) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes sound-nudge {
  0%,
  70%,
  100% {
    transform: scale(1);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
  }

  78% {
    transform: scale(1.08);
    box-shadow: 0 16px 38px rgba(255, 122, 24, 0.44);
  }

  86% {
    transform: scale(0.98);
  }
}

@keyframes sound-ring {
  0%,
  64% {
    opacity: 0;
    transform: scale(0.82);
  }

  76% {
    opacity: 0.85;
  }

  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (max-width: 680px) {
  .sound-toggle {
    top: 48px;
    right: 30px;
    width: 38px;
    height: 38px;
  }

  .sound-toggle__icon {
    width: 21px;
    height: 21px;
  }

  .hero__bg {
    background-image: none;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transform: none;
    animation: none;
  }

  .hero__video--desktop {
    display: none;
  }

  .hero__video--mobile {
    display: block;
  }

  .hero {
    background: #000;
    padding: 18px;
    place-items: end center;
  }

  .hero__content {
    width: min(1040px, 100%);
    margin-bottom: 10px;
    text-align: center;
  }

  .hero__content span {
    margin-right: auto;
    margin-left: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: auto;
    min-width: 148px;
  }
}

@media (max-width: 420px) {
  .hero {
    padding: 14px;
  }

  .hero__lead span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .hero__bg {
    transform: scale(1.04);
  }
}
