/* Homepage layout; saved desktop element appearance remains in the HTML. */
.home-page .home-hero {
  padding: 146px 0 36px;
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 64px;
}

.home-portrait-frame {
  width: 100%;
  border-radius: var(--radius);
  justify-self: end;
}

.home-portrait-frame .home-portrait-image {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.home-page .hero-copy {
  max-width: 760px;
}

.home-page .hero-copy h1 {
  margin-top: 16px;
  margin-bottom: 14px;
}

.home-page .hero-actions {
  margin-top: 20px;
}

.home-page .work-section {
  padding: 32px 0 72px;
}

.home-page .work-section .section-heading {
  align-items: end;
  margin-bottom: 28px;
}

.home-page .section-heading h2 {
  letter-spacing: -.055em;
  line-height: 1.05;
}

.home-page .work-section .section-heading > p {
  margin: 0;
}

.home-page .about-section {
  padding: 64px 0;
}

.home-page .about-section h2 {
  line-height: 1.05;
  letter-spacing: -.055em;
}

.home-page .work-collection-link {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.home-page section[id] {
  scroll-margin-top: 130px;
}

.home-page a.project-card:hover {
  transform: none;
}

.home-page :is(a, button):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}

/* Shared card geometry keeps every corner on the grid at all screen sizes.
   Retain saved appearance in the HTML; supersede individual frame offsets here. */
.home-page .selected-work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
}

.home-page .selected-work-grid :is(.project-card, .project-image, .project-content, .project-thumbnail) {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  translate: none !important;
}

.home-page .selected-work-grid :is(.project-card, .project-content) {
  height: auto !important;
}

.home-page .selected-work-grid .project-image {
  flex-shrink: 0;
}

.home-page .selected-work-grid .project-thumbnail {
  height: 100% !important;
}

@media (max-width: 1000px) {
  .home-page .hero-grid {
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 32px;
  }

  .home-page .hero-copy > :is(.eyebrow, h1, p) {
    width: 100% !important;
    height: auto !important;
    translate: none !important;
  }
}

@media (max-width: 760px) {
  .home-page .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .home-portrait-frame {
    width: 160px;
    justify-self: start;
  }

  .home-page .selected-work-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }

  .home-page .selected-work-grid .project-image {
    height: 250px !important;
  }

  .home-page .home-hero {
    padding: 132px 0 24px;
  }

  .home-page .hero-copy > :is(.eyebrow, h1, p) {
    width: 100% !important;
    height: auto !important;
    translate: none !important;
  }

  .home-page .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 3.75rem) !important;
    letter-spacing: -.055em;
    line-height: 1.05 !important;
  }

  .home-page :is(.section-heading, .about-section, .contact-section) h2 {
    font-size: 2.25rem !important;
    line-height: 1.08;
  }

  .home-page .work-section .section-heading {
    gap: 12px;
  }

  .home-page .work-section, .home-page .about-section {
    padding-top: 32px;
    padding-bottom: 40px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  html:has(.home-page) {
    scroll-behavior: auto;
  }

  .home-page .reveal {
    opacity: 1;
    transform: none;
  }
}
