.home-page {
  background: var(--studio-bg);
}

.home-main {
  overflow: hidden;
}

.home-hero {
  position: relative;
  display: grid;
  height: min(800px, calc(100svh - 82px));
  min-height: 620px;
  align-items: end;
  overflow: hidden;
  background: #0b1110;
}

.home-hero > picture,
.home-hero-art,
.home-hero-video,
.home-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero-art {
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 700ms ease;
}

.home-hero-video {
  z-index: 1;
  border: 0;
  object-fit: cover;
  object-position: 60% center;
  pointer-events: none;
}

.home-hero:hover .home-hero-art {
  transform: scale(1.025);
}

.home-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 7, 7, 0.96) 0%, rgba(3, 7, 7, 0.72) 34%, rgba(3, 7, 7, 0.2) 63%, transparent 82%),
    linear-gradient(0deg, rgba(3, 7, 7, 0.88), transparent 54%);
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  width: min(550px, calc(100% - 2rem));
  margin: clamp(1rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.home-kicker,
.section-kicker,
.feature-kicker {
  margin: 0;
  color: #d7dde2;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.home-hero-logo {
  display: block;
  width: min(380px, 72vw);
  height: auto;
  margin: 0;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

.home-hero-logo + .home-kicker {
  margin-top: 0.9rem;
}

.home-hero-copy > p:not(.home-kicker) {
  max-width: 510px;
  margin: 0.75rem 0 0;
  color: #f0f2f4;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 400;
  line-height: 1.5;
}

.home-actions,
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.home-actions .studio-button {
  gap: 0.4rem;
}

.feature-actions .studio-button {
  gap: 0.4rem;
}

.virucide-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #030608;
}

.virucide-hero-art,
.virucide-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.virucide-hero-art {
  object-fit: cover;
  object-position: center;
  transition: transform 600ms ease;
}

.virucide-hero:hover .virucide-hero-art {
  transform: scale(1.02);
}

.virucide-hero-shade {
  z-index: 1;
  background:
    linear-gradient(270deg, rgba(2, 5, 8, 0.97) 0%, rgba(2, 5, 8, 0.76) 35%, rgba(2, 5, 8, 0.18) 64%, transparent 82%),
    linear-gradient(0deg, rgba(2, 5, 8, 0.84), transparent 52%);
}

.virucide-hero-copy {
  position: relative;
  z-index: 2;
  width: min(540px, calc(100% - 2rem));
  margin: clamp(1rem, 4.5vw, 4.5rem);
  margin-left: auto;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.virucide-hero-copy h2 {
  margin: 0 0 0.9rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.virucide-hero-logo {
  display: block;
  width: min(380px, 100%);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.virucide-hero-copy > p:not(.feature-kicker) {
  max-width: 460px;
  margin: 0;
  color: #f0f2f4;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

.virucide-hero-copy .feature-kicker {
  margin-bottom: 0.75rem;
}

.virucide-hero .feature-kicker,
.virucide-hero h2 {
  color: #d7dde2;
}

.d2jam-hero {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: #08030a;
}

.d2jam-hero-art,
.d2jam-hero-video,
.d2jam-hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.d2jam-hero-art,
.d2jam-hero-video {
  object-fit: cover;
  object-position: center;
}

.d2jam-hero-video {
  z-index: 1;
  border: 0;
  pointer-events: none;
}

.d2jam-hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 2, 7, 0.97) 0%, rgba(4, 2, 7, 0.76) 35%, rgba(4, 2, 7, 0.18) 64%, transparent 82%),
    linear-gradient(0deg, rgba(4, 2, 7, 0.86), transparent 52%);
}

.d2jam-hero-copy {
  position: relative;
  z-index: 2;
  width: min(520px, calc(100% - 2rem));
  margin: clamp(1rem, 4.5vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.d2jam-hero-copy h2 {
  margin: 0 0 0.9rem;
}

.d2jam-hero-logo {
  display: block;
  width: min(210px, 54vw);
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.46));
}

.d2jam-hero-copy .feature-kicker {
  margin-bottom: 0.75rem;
  color: #d7dde2;
}

.d2jam-hero-copy > p:not(.feature-kicker) {
  max-width: 460px;
  margin: 0;
  color: #f0f2f4;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.5;
}

.home-projects {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
  background: #f3f4f2;
  color: #101215;
}

.home-section-heading {
  display: flex;
  max-width: 1240px;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin: 0 auto 2.5rem;
}

.home-section-heading .section-kicker {
  color: #68707a;
}

.home-section-heading h2 {
  margin: 0.35rem 0 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}

.text-link {
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}

.project-grid {
  display: grid;
  max-width: 1240px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  margin: 0 auto;
}

.project-grid.single-project {
  grid-template-columns: 1fr;
}

.single-project .project-preview {
  min-height: clamp(340px, 46vw, 560px);
}

.project-tile {
  display: block;
  color: #101215;
}

.project-preview {
  position: relative;
  display: grid;
  min-height: 320px;
  place-items: center;
  overflow: hidden;
  background: #0c1017;
}

.project-preview > img {
  display: block;
  transition: transform 500ms ease;
}

.project-tile:hover .project-preview > img {
  transform: scale(1.035);
}

.d2jam-preview {
  background:
    radial-gradient(circle at center, rgba(75, 184, 242, 0.14), transparent 38%),
    #090b11;
}

.d2jam-preview img {
  width: min(250px, 48%);
  height: auto;
}

.wiki-preview > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.58) saturate(0.75);
}

.wiki-preview .wiki-mark {
  position: relative;
  z-index: 1;
  width: min(180px, 36%);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.project-copy {
  padding: 1.25rem 0 0;
}

.project-copy .section-kicker {
  color: #68707a;
}

.project-copy h3 {
  margin: 0.35rem 0 0.6rem;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.project-copy p:not(.section-kicker) {
  max-width: 540px;
  margin: 0;
  color: #59616b;
  font-size: 0.96rem;
  line-height: 1.6;
}

.project-copy strong {
  display: inline-block;
  margin-top: 1rem;
  border-bottom: 1px solid currentColor;
  font-size: 0.9rem;
  font-weight: 600;
}

.home-notes {
  display: flex;
  min-height: 170px;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: #d84a70;
  color: #ffffff;
  text-align: center;
}

.home-notes a {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.home-notes span {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .home-hero {
    height: min(720px, calc(100svh - 72px));
    min-height: 630px;
  }

  .home-hero-shade {
    background: linear-gradient(0deg, rgba(3, 7, 7, 0.94), rgba(3, 7, 7, 0.18) 75%);
  }

  .home-hero-copy {
    margin: 1rem;
    padding-bottom: 2.5rem;
  }

  .virucide-hero-shade {
    background: linear-gradient(0deg, rgba(2, 5, 8, 0.96), rgba(2, 5, 8, 0.16) 78%);
  }

  .virucide-hero-copy {
    margin: 1rem;
    margin-left: auto;
    padding-bottom: 2.5rem;
  }

  .d2jam-hero-shade {
    background: linear-gradient(0deg, rgba(4, 2, 7, 0.96), rgba(4, 2, 7, 0.16) 78%);
  }

  .d2jam-hero-copy {
    margin: 1rem;
    padding-bottom: 2.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .home-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .home-hero {
    min-height: 600px;
  }

  .home-hero-art {
    object-position: 58% center;
  }

  .home-hero-video {
    display: none;
  }

  .d2jam-hero-video {
    display: none;
  }

  .project-preview {
    min-height: 250px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video,
  .d2jam-hero-video {
    display: none;
  }
}
