/* Landing page. Shared reference cards, logo strip and closing CTA live in references.css. */
.homepage {
  container-type: inline-size;
  color: var(--wulf-charcoal);
  background: var(--wulf-white);
}
.hp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 28.65cqw;
  padding: clamp(1.25rem, 2.1cqw, 2.75rem) var(--pad);
  overflow: hidden;
  background: var(--wulf-charcoal);
  color: var(--wulf-white);
}
.hp-hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, var(--wulf-charcoal) 5%, transparent 62%);
}
.hp-hero-copy { width: min(100%, 45cqw); }
.hp-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.35cqw, 3.85rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.06;
}
.hp-hero-copy > p {
  margin: clamp(.7rem, 1.2cqw, 1.4rem) 0 0;
  max-width: 42ch;
  font-size: clamp(.95rem, 1.36cqw, 1.5rem);
  letter-spacing: -.015em;
  line-height: 1.42;
}
.hp-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(.65rem, 1.7cqw, 1.65rem);
  margin-top: clamp(.9rem, 1.85cqw, 1.75rem);
}
.hp-services {
  padding: clamp(1.4rem, 2.05cqw, 2.5rem) var(--pad) clamp(1.5rem, 2.15cqw, 2.8rem);
}
.hp-services > header { margin-bottom: clamp(.8rem, 1.55cqw, 1.5rem); }
.hp-service-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(.55rem, 1.2cqw, 1.25rem);
  padding: 0;
  margin: 0;
  list-style: none;
}
.hp-service-grid > li, .hp-service-card {
  display: grid;
  grid-row: span 4;
  grid-template-rows: subgrid;
  min-width: 0;
}
.hp-service-card {
  align-items: start;
  gap: clamp(.5rem, 1.1cqw, 1rem);
  padding: clamp(.65rem, 1.25cqw, 1.4rem) clamp(.6rem, 1.05cqw, 1.25rem);
  border-radius: .25rem;
  color: var(--wulf-charcoal);
  background: var(--wulf-mist);
  text-decoration: none;
}
.hp-service-card:hover { background: var(--wulf-line); }
.hp-service-card > .icon {
  width: clamp(1.7rem, 2.85cqw, 3rem);
  height: clamp(1.7rem, 2.85cqw, 3rem);
}
.hp-service-card h3 {
  margin: 0;
  font-size: clamp(.83rem, 1.15cqw, 1.35rem);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.28;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.hp-service-card p {
  margin: 0;
  color: var(--wulf-graphite);
  font-size: clamp(.75rem, .92cqw, 1.1rem);
  line-height: 1.45;
  hyphens: auto;
  hyphenate-limit-chars: 6 3 3;
  overflow-wrap: anywhere;
}
.hp-service-arrow { align-self: end; line-height: 1; }
.hp-service-arrow .icon { width: 1.1em; height: 1.1em; }
.hp-title-break { display: inline; }

@container (max-width: 960px) {
  .hp-hero-copy { width: min(100%, 31rem); }
  .hp-hero-break { display: none; }
  .hp-service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hp-service-card { gap: .8rem; padding: 1.05rem; }
  .hp-service-card h3 { font-size: 1rem; }
  .hp-service-card p { font-size: .88rem; }
}
@container (max-width: 580px) {
  .hp-hero {
    min-height: 22rem;
    padding-block: 1.65rem;
  }
  .hp-hero-photo { object-position: 72% center; }
  .hp-hero::before {
    background: var(--wulf-charcoal);
    opacity: .74;
  }
  .hp-hero h1 { font-size: clamp(1.85rem, 7.2cqw, 2.75rem); }
  .hp-hero-copy > p { font-size: 1rem; max-width: 35ch; }
  .hp-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hp-service-card { padding: .875rem; }
}
