/* The homepage fills the viewport; other product pages keep their shared layout. */
.home-page {
  --home-gutter: clamp(24px, 4.4vw, 112px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100dvh;
}

.home-page::before,
.home-page::after {
  display: none;
}

.home-page .site-header {
  position: relative;
  background: #fff;
}

.home-page .nav-shell {
  max-width: none;
  min-height: clamp(68px, 8.8dvh, 96px);
  padding-inline: var(--home-gutter);
}

.home-page .brand img {
  width: clamp(158px, 13.1vw, 204px);
}

.home-page .nav-links {
  gap: clamp(28px, 3.2vw, 52px);
}

.home-page .nav-links a {
  font-size: clamp(14px, 1.15vw, 18px);
  padding-block: 26px;
}

.home-page main {
  min-width: 0;
}

.home-page .hero-home {
  position: relative;
  isolation: isolate;
  flex: 1;
  width: 100%;
  min-height: 440px;
  margin: 0;
  padding: clamp(40px, 7dvh, 104px) var(--home-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0;
  border: 0;
  overflow: hidden;
}

.home-artwork {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.home-page .hero-copy {
  width: 55%;
  max-width: 1000px;
}

.home-page .hero h1 {
  font-size: clamp(48px, min(6.35vw, 10dvh), 122px);
  line-height: 1.03;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.home-page .hero h1 .headline-intro {
  display: block;
  white-space: nowrap;
  color: var(--text);
  background: none;
}

.home-page .headline-accent {
  display: block;
}

.home-page .hero-copy p {
  max-width: 24em;
  margin-top: clamp(24px, 2.8dvh, 34px);
  font-size: clamp(17px, 1.72vw, 26px);
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.home-page .hero-actions {
  display: flex;
  margin-top: clamp(28px, 3.2dvh, 40px);
}

.home-page .hero-actions .button {
  min-height: clamp(50px, 6dvh, 64px);
  padding-inline: clamp(28px, 3.2vw, 48px);
  gap: 20px;
  font-size: clamp(15px, 1.35vw, 20px);
}

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

.home-page .site-footer {
  width: 100%;
  min-height: clamp(68px, 9.6dvh, 100px);
  padding: 18px var(--home-gutter) max(18px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  align-items: center;
  background: #fff;
}

.home-page .footer-brand {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-page .footer-brand img {
  width: clamp(150px, 11vw, 176px);
}

.home-page .footer-brand p {
  margin: 0;
  font-size: clamp(12px, 0.95vw, 14px);
  color: var(--muted);
}

/* Keep the sculpture intact in unusually wide or tall desktop windows. */
@media (min-width: 901px) and (min-aspect-ratio: 2/1) {
  .home-artwork {
    object-fit: contain;
    object-position: right center;
  }
}

@media (max-width: 1040px) {
  .home-page .nav-links {
    top: calc(100% - 4px);
    left: var(--home-gutter);
    right: var(--home-gutter);
  }

  .home-page .nav-links a {
    padding: 12px;
  }
}

@media (max-width: 900px), (max-width: 1200px) and (orientation: portrait) {
  .home-page .hero-home {
    grid-template-rows: auto minmax(220px, 1fr);
    row-gap: 20px;
    padding: clamp(32px, 5dvh, 56px) var(--home-gutter) 0;
    align-content: start;
    min-height: 0;
  }

  .home-page .hero-copy {
    width: 100%;
    max-width: 650px;
  }

  .home-page .hero h1 {
    font-size: clamp(42px, min(8.2vw, 8dvh), 72px);
  }

  .home-page .hero-copy p {
    font-size: clamp(16px, 2.4vw, 20px);
    max-width: 30em;
    margin-top: 22px;
  }

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

  .home-artwork {
    position: relative;
    grid-row: 2;
    width: calc(100% + var(--home-gutter) + var(--home-gutter));
    height: 100%;
    min-height: 220px;
    max-height: 48dvh;
    margin-inline: calc(-1 * var(--home-gutter));
    object-fit: cover;
    object-position: right center;
  }
}

@media (max-width: 540px) {
  .home-page {
    --home-gutter: 24px;
  }

  .home-page .hero h1 {
    font-size: clamp(32px, min(9.6vw, 6.6dvh), 48px);
  }

  .home-page .hero-actions .button {
    min-height: 48px;
    font-size: 15px;
  }

  .home-page .footer-brand {
    flex-wrap: wrap;
    gap: 10px;
  }

  .home-page .footer-brand img {
    width: 134px;
  }
}

@media (min-width: 541px) and (max-width: 900px), (min-width: 901px) and (max-width: 1200px) and (orientation: portrait) {
  .home-artwork {
    max-height: 36dvh;
  }
}
