.grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(90px, 1fr));
  grid-auto-rows: minmax(90px, 1fr);
  gap: 10px;
  padding: 20px;
  user-select: none;
  -webkit-user-select: none;
}
.cell {
  grid-row: var(--r);
  grid-column: var(--c);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 2px;
  background: transparent;
  content-visibility: auto;
  contain-intrinsic-size: 120px 120px;
}
.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#r {
  font-size: 0.4em;
  vertical-align: super;
  font-weight: bolder;
  margin: 5px;
}

.hero {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.815);
  text-transform: uppercase;
}

.glass-nav {
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.footer-link:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-pill {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.footer-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.9);
}

.about-section {
  background: linear-gradient(
    135deg,
    #d9d1cd 0%,
    #d1d1d1 45%,
    #c7c1bd 100%
  );
}

.about-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.about-pill {
  border: 1px solid rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.05);
}

.about-pill strong {
  letter-spacing: 0.18em;
}

.mobile-menu {
  min-width: 210px;
}

@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, minmax(90px, 1fr));
    grid-auto-rows: minmax(90px, 1fr);
    gap: 12px;
  }
  .cell {
    grid-row: auto !important;
    grid-column: auto !important;
  }
  #heroText p:first-child {
    font-size: 3rem !important;
  }
  #heroText p:last-child {
    font-size: 1.25rem !important;
  }
  #about {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
  #about p {
    width: 100% !important;
    font-size: 1.15rem !important;
  }
  #about #cursor,
  #cursor {
    display: none !important;
  }
}

@media (max-width: 640px) {
  nav .glass-nav {
    border-radius: 18px;
    padding-left: 16px;
    padding-right: 16px;
  }
  nav .glass-nav > a {
    font-size: 11px;
    letter-spacing: 0.28em;
  }
  .mobile-menu {
    width: 100%;
    min-width: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  }
  .mobile-menu a {
    padding: 10px 0;
    font-size: 12px;
    letter-spacing: 0.2em;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    grid-auto-rows: minmax(120px, 1fr);
    gap: 12px;
    padding: 16px;
  }
  #heroText {
    padding: 0 16px;
  }
  #heroText p:first-child {
    font-size: 2rem !important;
  }
  #heroText p:last-child {
    font-size: 1rem !important;
  }
  #about {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  #about p {
    width: 100% !important;
    font-size: 1rem !important;
  }
  #about #cursor,
  #cursor {
    display: none !important;
  }
}
::selection {
  background: #ffb7b7;
  color: #e91d1d6b;
}
.hero1 {
  font-family: roc-grotesk, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: normal;
  color: rgb(0, 0, 0);
  text-transform: uppercase;
}
#cursor {
  height: 30%;
  width: 15%;
  background-color: rgba(160, 72, 148, 0.25);
  /* backdrop-filter: blur(10px); */
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
}
