:root {
  --charcoal: #1b1b1b;
  --primary-orange: #ff7f35;
}

.page-wrapper {
  z-index: 3;
  background-color: #0000;
  position: relative;
  overflow: hidden;
}

.nav-bar {
  z-index: 999;
  grid-column-gap: 48px;
  grid-row-gap: 48px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 32px 56px;
  position: fixed;
  inset: 0% auto auto;
}

.link-block {
  text-decoration: none;
}

.nav-link {
  color: var(--charcoal);
  letter-spacing: 0.02px;
  font-size: 20px;
  line-height: 100%;
  text-decoration: none;
}

.nav-link-wrapper {
  grid-column-gap: 48px;
  grid-row-gap: 48px;
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.hero-content {
  grid-column-gap: 32px;
  grid-row-gap: 32px;
  pointer-events: none;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding: 136px 32px 56px;
  display: flex;
  position: fixed;
}

.h1 {
  color: var(--primary-orange);
  letter-spacing: 0.01em;
  margin-top: 0;
  margin-bottom: 0;
  font-size: clamp(72px, 19.7vw, 284px);
  line-height: 90%;
}

.h1.text-fade {
  flex: 1;
  font-size: clamp(80px, 19.7vw, 284px);
}

.body-22px {
  color: #1b1b1b;
  letter-spacing: 0.01em;
  font-size: 22px;
  line-height: 120%;
}

.div-block {
  padding-bottom: 40px;
  padding-right: 16px;
}

.work-section {
  z-index: 3;
  padding: 60px;
  position: relative;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section {
  z-index: 3;
  height: 400px;
  position: relative;
}

.polaroid {
  background-color: #fff;
  padding: 20px;
  box-shadow:
    0 1px 2px #00000012,
    0 0 0 3px #e7e7e7;
}

.image-wrapper {
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  overflow: hidden;
}

.bg-dots {
  z-index: 2;
  height: 100vh;
  position: fixed;
  inset: 0%;
  background-color: #ffffff;
  background-image: radial-gradient(rgba(0, 0, 0, 0.2) 1px, transparent 1px);
  background-size: 18px 18px;
}

.h-2 {
  color: var(--primary-orange);
  text-align: center;
  letter-spacing: 0.01em;
  font-size: 80px;
  line-height: 90%;
}

.h-2.text-fade {
  display: inline-block;
}

.body-18px.text-fade {
  color: #1b1b1bcc;
  text-align: center;
  letter-spacing: 0.01em;
  font-size: 18px;
  line-height: 130%;
}

.opacity-80 {
  opacity: 0.8;
}

.mw-320 {
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.work-info {
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.work-card {
  width: 100%;
  max-width: 1320px;
  margin-bottom: 160px;
  margin-left: auto;
  margin-right: auto;
  text-decoration: none;
}

.pixelated-button {
  background-color: var(--primary-orange);
  color: #180b04;
  letter-spacing: -0.01em;
  justify-content: center;
  align-items: center;
  padding: 12px 16px;
  font-size: 22px;
  line-height: 100%;
  text-decoration: none;
  position: relative;
}

.pixelated-button.lg {
  padding: 18px 24px;
}

.btn-pixelated-side {
  flex-flow: column;
  width: 6px;
  display: flex;
  position: absolute;
  top: 0%;
  bottom: 0%;
  left: -6%;
}

.btn-pixelated-side.left {
  left: -6px;
}

.btn-pixelated-side.left.lg {
  width: 9px;
  left: -9px;
}

.btn-pixelated-side.right {
  inset: 0% -6px 0% auto;
}

.btn-pixelated-side.right.lg {
  width: 9px;
  right: -9px;
}

.white-block {
  width: 6px;
  height: 6px;
}

.white-block.lg {
  width: 9px;
  height: 9px;
}

.orange-block {
  background-color: var(--primary-orange);
  flex: 1;
  width: 6px;
}

.orange-block.lg {
  width: 9px;
}

.div-block-2 {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.div-block-3 {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.footer-section {
  z-index: 2;
  background-color: #e9e9e9;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  height: 75vh;
  max-height: 675px;
  padding: 48px 32px 24px;
  display: flex;
  position: relative;
}

.code-embed {
  display: none;
}

.phone-screen {
  border: 8px solid var(--primary-orange);
  background-color: #fff;
  border-radius: 30px;
  width: 502px;
  height: 664px;
  margin-top: -70px;
  margin-bottom: -22vh;
  text-decoration: none;
  position: relative;
  transform: rotate(1.11deg) scale(clamp(0.7, 1vw + 0.6, 1));
  transform-origin: center;
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.div-block-5 {
  height: 100vh;
  position: sticky;
  top: 0;
}

.phone-notch {
  background-color: #000;
  border-radius: 99px;
  width: 160px;
  height: 36px;
}

.phone-notch-container {
  justify-content: center;
  align-items: center;
  padding-top: 28px;
  display: flex;
}

.email-container {
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 48px;
  padding-left: 32px;
  padding-right: 32px;
  display: flex;
}

.email-text {
  color: #1b1b1b;
  font-size: 28px;
  line-height: 100%;
}

.opacity-40 {
  opacity: 0.4;
}

.div-block-6 {
  grid-column-gap: 12px;
  grid-row-gap: 12px;
  justify-content: flex-start;
  align-items: center;
  padding-left: 12px;
  padding-right: 12px;
  display: flex;
}

.email-divider {
  background-color: #0000001a;
  width: 100%;
  height: 1.8px;
}

.button-wrapper {
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-top: 50px;
  display: flex;
  position: absolute;
  inset: 0%;
  transform: rotate(-1.11deg);
}

.div-block-7 {
  flex: 1;
}

@media screen and (max-width: 991px) {
  .hero-content {
    grid-column-gap: 20px;
    grid-row-gap: 20px;
  }

  .body-22px.text-fade {
    font-size: 16px;
  }

  .div-block {
    padding-bottom: 20px;
    padding-right: 0;
  }
}

@media screen and (max-width: 767px) {
  .nav-link {
    font-size: 14px;
  }

  .nav-link-wrapper {
    grid-column-gap: 32px;
    grid-row-gap: 32px;
  }

  .hero-content {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
  }

  .div-block {
    width: 320px;
  }

  .work-section {
    padding: 40px 16px;
  }

  .polaroid {
    padding: 12px;
  }

  .image-wrapper {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  }

  .h-2 {
    font-size: 32px;
  }

  .body-18px.text-fade {
    font-size: 14px;
  }

  .work-card {
    margin-bottom: 64px;
  }

  .email-text {
    font-size: 16px;
  }

  .footer-section {
    padding-left: 16px;
    padding-right: 16px;
    max-height: unset;
  }

  .phone-screen {
    margin-top: 10%;
  }
}

.body {
  font-family: "Pacaembu", sans-serif;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: eight-semi-condensed, sans-serif;
  font-weight: 900;
  font-style: normal;
}

.footer-text {
  font-family: eight-semi-condensed, sans-serif;
  font-weight: 900;
  font-style: normal;
  color: #1b1b1b;
  /* Fluid type */
  font-size: clamp(80px, 17vw, 240px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  width: 100%;
  text-align: center;
}

.text-fade {
  position: relative;
  z-index: 1;
}

.cursor-button {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  pointer-events: none;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.polaroid {
  cursor: none;
  transition:
    transform 250ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 250ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hover → lift */
.polaroid:hover {
  transform: translateY(-8px) rotate(-0.5deg) scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Press → push down */
.polaroid:active {
  transform: translateY(-2px) rotate(0deg) scale(0.99);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}

.pixelated-button {
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 700;
}

.pixelated-button.lg {
  font-family: "Pixelify Sans", sans-serif;
  font-weight: 700;
  font-size: 32px;
}

.text-fade::before {
  content: "";
  position: absolute;
  inset: -0.45em;
  z-index: -1;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 255, 255, 0.65) 0%,
    rgba(255, 255, 255, 0.65) 45%,
    rgba(255, 255, 255, 0.25) 70%,
    rgba(255, 255, 255, 0.08) 85%,
    rgba(255, 255, 255, 0) 100%
  );
  pointer-events: none;
}

/* Hover → lift + slightly more rotation */
.phone-screen:hover {
  transform: translateY(-10px) rotate(-2deg) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

/* Press → compress + stabilize */
.phone-screen:active {
  transform: translateY(-2px) rotate(0deg) scale(0.97);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}
