/* Homepage: a larger background motif, with no cropped edges or sidebar. */
.home-page .home-shell {
  display: block;
}

.home-page .site-header__inner {
  width: min(72rem, calc(100% - 3rem));
}

body.home-page #intro.intro--immersive {
  min-height: calc(min(38rem, 58vw) + var(--header-h) + 2rem);
  padding-top: calc(var(--header-h) + clamp(3.25rem, 6vw, 5.5rem));
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  overflow: visible;
}

.home-page .intro__layout {
  display: block;
}

.home-page .intro__column--lead {
  display: block;
  min-width: 0;
  max-width: 52rem;
}

.home-page .intro__eyebrow {
  margin-bottom: 1.35rem;
  color: var(--accent-blush);
  font-size: 0.875rem;
}

.home-page .intro__title {
  max-width: 22ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 4.8vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-page .hero-motif-intro-line {
  display: block;
}

.home-page .intro__split-line {
  max-width: 36rem;
  gap: 1.2rem;
  margin-bottom: 1.75rem;
}

.home-page .intro__split-bar {
  min-height: 3rem;
  height: calc(100% - 0.5rem);
}

.home-page .intro__lede {
  max-width: 34rem;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-page .intro .hero-actions {
  margin: 0 0 1.25rem;
  gap: 0.75rem;
}

.home-page .hero-motif-intro-meta {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.home-page .intro__hero-bg {
  position: absolute;
  inset: calc(var(--header-h) + 1rem) 0 1rem;
  z-index: 0;
  pointer-events: none;
}

.home-page .intro__hero-sheet {
  inset: 4% 0 0 30%;
  height: auto;
  background: radial-gradient(ellipse at center, rgba(139, 57, 73, 0.18), transparent 70%);
  transform: none;
}

.home-page .intro__hero-motif-slot {
  display: block;
  position: absolute;
  inset: 0 1rem auto auto;
  width: min(38rem, 58vw);
}

.home-page .hero-motif-enter-shell,
.home-page .hero-motif-motion {
  display: block;
}

body.home-page #intro.intro--immersive .intro__hero-motif--svg {
  display: block;
  overflow: visible;
  width: 100%;
  height: auto;
  opacity: 0.4;
  filter: saturate(1.06) blur(0.55px);
}

body.home-page #intro.intro--immersive .hero-motif-motion {
  transform: rotate(8deg);
  transform-origin: center;
}

/* Keep the artwork visible from its first frame; animate only its pieces. */
body.home-page #intro.intro--immersive .hero-motif-enter-shell {
  opacity: 1;
  animation: none;
  will-change: auto;
}

/* Text and navigation are available immediately; retain the motif animation. */
body.home-page #site-header .site-header__inner,
body.home-page #intro.intro--immersive .hero-motif-intro-eyebrow,
body.home-page #intro.intro--immersive .hero-motif-intro-line:nth-child(n),
body.home-page #intro.intro--immersive .hero-motif-intro-lede,
body.home-page #intro.intro--immersive .hero-motif-intro-actions,
body.home-page #intro.intro--immersive .hero-motif-intro-meta {
  opacity: 1;
  transform: none;
  animation: none;
  will-change: auto;
}

.home-page .section-panel {
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.home-page #work.section-panel {
  padding-top: 0;
}

.home-page .section-head {
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.home-page .section-head.accent-rule {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.home-page .section-head > .label {
  margin: 0;
  color: var(--accent-blush);
  font-size: 0.875rem;
}

.home-page .section-head > .typo-h2 {
  max-width: 23ch;
  margin: 0;
  font-size: clamp(2rem, 3.7vw, 3rem);
  text-wrap: balance;
}

.home-page .section-head > p:not(.label) {
  margin: 0;
  max-width: 39rem;
  font-size: 1rem;
  line-height: 1.65;
}

.home-page .work-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

.home-page .work-grid > article {
  min-width: 0;
}

.home-page .project-preview {
  height: 100%;
  padding: 0;
  gap: 0;
  overflow: hidden;
  grid-template-rows: auto 1fr;
  background: var(--bg-elevated);
}

.home-page .project-preview__media {
  aspect-ratio: 3 / 2;
  width: 100%;
  max-height: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.home-page .project-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .project-preview__body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  gap: 0.65rem;
  grid-template-rows: auto auto 1fr auto;
}

.home-page .project-preview__category {
  margin: 0;
  color: var(--accent-blush);
  font-size: 0.875rem;
}

.home-page .project-preview__title {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  line-height: 1.15;
}

.home-page .project-preview__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.home-page .project-preview__link {
  justify-self: start;
  margin-top: 0.5rem;
  padding-bottom: 0.2rem;
  border-bottom: 1px solid var(--accent-wine-bright);
  color: var(--text-primary);
  font-size: 0.875rem;
}

.home-page .project-preview:hover .project-preview__link {
  border-color: var(--accent-blush);
}

.home-page .system-card {
  gap: 1rem;
  padding: 1.5rem;
}

.home-page .system-card h3 {
  font-size: 1.375rem;
}

.home-page .system-card p,
.home-page .system-card li {
  font-size: 1rem;
  line-height: 1.6;
}

.home-page .system-card p {
  margin: 0;
}

.home-page .system-card ul {
  padding-left: 1.05rem;
}

.home-page .about-profile {
  margin-top: 1rem;
  gap: clamp(1.5rem, 4vw, 3rem);
}

.home-page .about-rows p {
  max-width: 37rem;
  font-size: 1rem;
  line-height: 1.75;
}

.home-page .chip-row--tight {
  gap: 0.5rem;
}

.home-page .testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-page .testimonial-card {
  padding: 1.4rem;
}

.home-page .testimonial-card__quote p {
  font-size: 1rem;
  line-height: 1.7;
}

.home-page .testimonial-card__author {
  font-size: 0.875rem;
  color: var(--accent-blush);
}

.home-page #start {
  border-top: 1px solid var(--line);
}

.home-page #start-heading {
  max-width: 14ch;
  text-wrap: balance;
}

.home-page #start .contact-grid > div > p {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 959px) {
  .home-page .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .home-page .testimonial-card {
    max-width: none;
  }
}

@media (max-width: 759px) {
  body.home-page #intro.intro--immersive {
    min-height: 0;
    padding-top: calc(var(--header-h) + 2.25rem);
    padding-bottom: 2.5rem;
  }

  .home-page .intro__column--lead {
    max-width: 38rem;
  }

  .home-page .intro__title {
    font-size: clamp(2.5rem, 7.5vw, 3.75rem);
    max-width: 21ch;
  }

  .home-page .intro__hero-bg {
    inset: calc(var(--header-h) + 2rem) 0 0;
  }

  .home-page .intro__hero-motif-slot {
    inset: 0 0 auto auto;
    width: min(24rem, 76vw);
  }

  body.home-page #intro.intro--immersive .intro__hero-motif--svg {
    opacity: 0.28;
  }

  body.home-page #intro.intro--immersive .hero-motif-motion {
    transform: rotate(5deg);
  }

  .home-page .site-header__inner {
    width: calc(100% - 2rem);
  }

  .home-page .intro__lede {
    font-size: 1rem;
  }

  .home-page .intro .hero-actions .btn {
    padding-inline: 1rem;
    font-size: 0.875rem;
  }

  .home-page .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .home-page .project-preview__title {
    font-size: 1.75rem;
  }

  .home-page .section-panel {
    padding-block: 3rem;
  }

  .home-page #work.section-panel {
    padding-top: 0;
  }

  .home-page .section-head > .typo-h2 {
    max-width: 23ch;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-page #intro.intro--immersive .hero-motif-motion {
    transform: none !important;
  }

  .home-page .project-preview,
  .home-page .project-preview:hover {
    transform: none;
  }
}
