.home-hero {
  position: relative;
}

.home-hero-inner {
  position: relative;
}

.home-hero-layout {
  align-items: stretch;
}

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

.home-hero-eyebrow {
  flex-wrap: wrap;
}

.home-hero-actions {
  margin-top: var(--space-md);
}

.home-hero-metrics {
  margin-top: var(--space-md);
}

.home-hero-visual {
  flex: 1 1 0;
  min-width: 0;
}

.home-hero-figure {
  position: relative;
  overflow: hidden;
}

.home-hero-figure img {
  border-radius: var(--radius-lg);
}

.home-hero-figcaption {
  padding: var(--space-sm) var(--space-md);
}

.home-hero-blueprint-note {
  position: absolute;
  inset-inline: auto 1.5rem;
  bottom: 1.5rem;
}

.home-services {
  position: relative;
}

.home-section-header {
  max-width: var(--container-sm);
  margin-inline: auto;
}

.home-services-grid {
  margin-top: var(--space-xl);
}

.home-service-card {
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.home-service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  border: 1px dashed var(--color-border-strong);
  background-image: linear-gradient(135deg, rgba(245, 124, 44, 0.12), rgba(92, 140, 106, 0.12));
  position: relative;
}

.home-service-icon::before,
.home-service-icon::after {
  content: "";
  position: absolute;
  inset: 0.55rem;
  border-radius: inherit;
}

.home-service-icon::before {
  border-top: 2px solid var(--color-border-strong);
  border-bottom: 2px solid var(--color-border-strong);
  opacity: 0.7;
}

.home-service-icon::after {
  border-left: 2px solid var(--color-border-strong);
  border-right: 2px solid var(--color-border-strong);
  opacity: 0.5;
}

.home-service-icon--renovation {
  background-image: repeating-linear-gradient(45deg, rgba(245, 124, 44, 0.25) 0, rgba(245, 124, 44, 0.25) 2px, transparent 2px, transparent 5px);
}

.home-service-icon--maintenance {
  background-image: linear-gradient(to bottom, rgba(92, 140, 106, 0.2), transparent);
}

.home-service-icon--planning {
  background-image: linear-gradient(to right, rgba(120, 140, 160, 0.25) 1px, transparent 1px), linear-gradient(to bottom, rgba(120, 140, 160, 0.25) 1px, transparent 1px);
  background-size: 6px 6px;
}

.home-services-footer {
  border-top: 1px dashed var(--color-border);
  padding-top: var(--space-md);
}

.home-inspiration {
  position: relative;
}

.home-inspiration-layout {
  align-items: stretch;
}

.home-inspiration-gallery {
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background-color: var(--color-surface);
}

.home-inspiration-gallery img {
  width: 100%;
  height: auto;
}

.home-inspiration-gallery-meta {
  border-top: 1px dashed var(--color-border-subtle);
  background-color: var(--color-surface-muted);
}

.home-inspiration-stories {
  max-width: 640px;
  margin-inline: auto;
}

.home-story {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.home-story:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.home-inspiration-cta {
  padding-top: var(--space-sm);
  border-top: 1px dashed var(--color-border-subtle);
}

.home-process {
  position: relative;
}

.home-process-grid {
  margin-top: var(--space-lg);
}

.home-process-step {
  position: relative;
  padding-top: calc(var(--space-lg) + var(--space-sm));
}

.home-process-step::before {
  content: attr(data-step);
  position: absolute;
  top: var(--space-md);
  left: var(--space-lg);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid rgba(120, 140, 160, 0.8);
  background-color: #f6f1e9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.home-process-step::after {
  content: "";
  position: absolute;
  top: calc(var(--space-md) + 2rem);
  left: calc(var(--space-lg) + 1rem);
  width: 1px;
  height: 40px;
  background-image: linear-gradient(to bottom, rgba(120, 140, 160, 0.8) 50%, transparent 50%);
  background-size: 1px 6px;
}

.home-process-step:last-child::after {
  display: none;
}

.home-process-footer {
  border-top: 1px dashed var(--color-border-subtle);
  padding-top: var(--space-md);
}

.home-why-layout {
  align-items: stretch;
}

.home-why-list {
  margin-top: var(--space-md);
}

.home-why-figure {
  position: relative;
  overflow: hidden;
}

.home-why-figure img {
  width: 100%;
  border-radius: var(--radius-xl);
}

.home-why-figcaption {
  padding: var(--space-sm) var(--space-md);
}

.home-why-overlay {
  position: absolute;
  inset-inline: auto var(--space-md);
  bottom: var(--space-md);
  max-width: 260px;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  background-color: rgba(247, 243, 238, 0.96);
  box-shadow: var(--shadow-md);
}

.home-why-overlay .btn {
  width: 100%;
}

@media (max-width: 767.98px) {
  .home-hero-layout {
    gap: var(--space-2xl);
  }
  .home-hero-visual {
    width: 100%;
  }
  .home-hero-blueprint-note {
    right: 1rem;
    bottom: 1rem;
  }
  .home-process-step::after {
    height: 30px;
  }
  .home-why-overlay {
    position: static;
    margin-top: var(--space-md);
    max-width: none;
  }
}

@media (min-width: 768px) {
  .home-hero-inner {
    padding-inline: var(--space-lg);
  }
  .home-hero-copy {
    padding-right: var(--space-xl);
  }
  .home-inspiration-stories {
    margin-inline: 0;
  }
}

@media (min-width: 1024px) {
  .home-hero-copy {
    max-width: 720px;
  }
  .home-hero-visual {
    max-width: 520px;
  }
  .home-hero-figure img {
    max-height: 480px;
    object-fit: cover;
  }
}
