/* Janela de navegador em volta de um print */
.browser {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow:
    0 1px 2px rgba(16, 15, 12, 0.04),
    0 24px 56px -28px rgba(16, 15, 12, 0.28);
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  padding: 0 12px;
  background: #fafaf9;
  border-bottom: 1px solid var(--line);
}

.browser__dots {
  display: flex;
  gap: 5px;
}

.browser__dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(16, 15, 12, 0.14);
}

.browser__url {
  flex: 1;
  max-width: 260px;
  margin-inline: auto;
  padding: 2px 10px;
  border-radius: 6px;
  background: rgba(16, 15, 12, 0.05);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 16px;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
}

/* Celular em volta de um print */
.phone {
  overflow: hidden;
  padding: 6px;
  background: var(--ink);
  border-radius: 28px;
  box-shadow: 0 24px 48px -20px rgba(16, 15, 12, 0.45);
}

.phone img {
  width: 100%;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
  border-radius: 22px;
}

/* Card de projeto */
.project {
  display: grid;
  gap: 28px;
}

.project__media {
  position: relative;
  display: block;
  padding-right: 64px;
  padding-bottom: 48px;
  text-decoration: none;
}

.project__desktop {
  transition: transform var(--dur-3) var(--ease-out);
}

.project__desktop img {
  transition: transform 900ms var(--ease-out);
}

.project__phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  max-width: 180px;
  transition: transform var(--dur-3) var(--ease-out);
}

@media (hover: hover) {
  .project__media:hover .project__desktop img {
    transform: scale(1.03);
  }

  .project__media:hover .project__phone {
    transform: translateY(-8px);
  }
}

.project__meta {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  color: var(--ink-2);
}

.project__name {
  margin-top: 8px;
  font-size: var(--fs-32);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: var(--tracking-title);
}

.project__summary {
  max-width: 44ch;
  margin-top: 10px;
  color: var(--ink-2);
}

.project__link {
  margin-top: 18px;
  font-size: var(--fs-14);
}

/* Cursor "ver site" que segue o mouse sobre os prints (só com mouse) */
.cursor-badge {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-13);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}

.cursor-badge.is-on {
  opacity: 1;
  transform: scale(1);
}

[data-cursor] {
  cursor: none;
}

@media (max-width: 640px) {
  .project__media {
    padding-right: 40px;
    padding-bottom: 32px;
  }
}
