.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1.25rem, 3vw, 3rem);
  min-height: calc(100svh - var(--header-h));
  padding: clamp(1rem, 3vw, 2.25rem) var(--page-pad) clamp(1.25rem, 3vw, 2.75rem);
  background: var(--cream-50);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 0.25rem 0;
}

.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.35rem, 3.4vw + 1rem, 4.7rem);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.03em;
}

.lead,
.section-head p,
.intro-copy,
.feature p,
.process-note,
.cta-band p {
  color: var(--ink-soft);
}

.lead {
  max-width: 36rem;
  margin-top: var(--space-4);
  font-size: var(--text-lg);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

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

.home-section.alt {
  background: var(--cream-100);
}

.section-head {
  max-width: 40rem;
  margin-bottom: var(--space-6);
}

.home-section h2,
.cta-band h2 {
  font-size: clamp(2rem, 3vw, 2.85rem);
}

.section-head p,
.intro-copy {
  margin-top: var(--space-3);
  font-size: var(--text-lg);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: center;
}

.media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--green-900);
}

.media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-hero {
  min-height: min(72vh, 640px);
  align-self: stretch;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.hero-slides img {
  opacity: 0;
  animation: hero-fade 12s infinite;
}

.hero-slides img:nth-child(1) {
  animation-name: hero-fade-first;
}

.hero-slides img:nth-child(2) {
  animation-delay: 3s;
}

.hero-slides img:nth-child(3) {
  animation-delay: 6s;
}

.hero-slides img:nth-child(4) {
  animation-delay: 9s;
}

@keyframes hero-fade {
  0% {
    opacity: 0;
    transform: scale(1.06);
  }
  8% {
    opacity: 1;
  }
  22% {
    opacity: 1;
    transform: scale(1);
  }
  30% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    opacity: 0 !important;
    transform: none !important;
  }

  .hero-slides img:first-child {
    opacity: 1 !important;
  }
}

@keyframes hero-fade-first {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  20% {
    opacity: 1;
    transform: scale(1.06);
  }
  28% {
    opacity: 0;
  }
  92% {
    opacity: 0;
    transform: scale(1);
  }
  100% {
    opacity: 1;
  }
}

.media-intro,
.media-band,
.home-shot-photo {
  border-radius: var(--radius-card);
}

.media-intro {
  aspect-ratio: 4 / 5;
}

.media-card {
  aspect-ratio: 4 / 3;
}

.media-band {
  width: 100%;
  aspect-ratio: 16 / 7;
  min-height: 220px;
  max-height: 520px;
}

.media figcaption,
.media-index {
  position: absolute;
  z-index: 1;
  color: var(--cream-50);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.media figcaption {
  left: var(--space-4);
  bottom: var(--space-4);
}

.product-index {
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
}

.product-grid,
.feature-list,
.steps {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card,
.feature {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease);
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover,
.feature:hover {
  border-color: var(--green-800);
}

.product-card:hover .media-fallback {
  transform: scale(1.03);
}

.media-fallback {
  transition: transform 500ms ease;
  object-position: center;
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
  padding: var(--space-4);
}

.product-body h3,
.feature h3,
.step h3 {
  font-size: 1.35rem;
}

.product-body p {
  color: var(--ink-soft);
}

.product-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.feature-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
  padding: var(--space-5) var(--space-4);
}

.feature svg {
  width: 1.6rem;
  height: 1.6rem;
  stroke: var(--green-800);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature h3 {
  margin-top: var(--space-4);
}

.feature p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

.steps {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.step {
  padding: var(--space-4) 0 0;
  border-top: 2px solid var(--green-800);
}

.step-num {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.process-note {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
}

.section-action {
  margin-top: var(--space-6);
}

.since-home {
  background: var(--green-900);
  color: var(--cream-50);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.since-home-inner {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.since-home-year {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 8vw, 6.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--green-300);
  white-space: nowrap;
}

.since-home h2 {
  color: var(--cream-50);
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
}

.since-home p {
  max-width: 36rem;
  margin-top: var(--space-3);
  color: var(--green-200);
}

.since-home .btn {
  margin-top: var(--space-4);
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.home-shot {
  display: grid;
  gap: var(--space-3);
  color: var(--green-900);
  text-decoration: none;
  font-weight: 600;
}

.home-shot-photo {
  overflow: hidden;
  background: var(--green-900);
}

.home-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--green-900);
}

.home-shot:hover {
  color: var(--green-800);
}

.place-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.wide-visual {
  padding: 0 var(--page-pad) clamp(1rem, 3vw, 2rem);
}

.cta-band {
  background: #1c1915;
  color: var(--cream-50);
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.cta-band h2 {
  max-width: 16ch;
  color: var(--cream-50);
}

.cta-band p {
  max-width: 34rem;
  margin-top: var(--space-3);
  color: #d9d0c3;
  font-size: var(--text-lg);
}

.cta-side {
  display: grid;
  gap: var(--space-3);
  width: min(100%, 18rem);
  flex: none;
}

.cta-side .btn {
  width: 100%;
}

.cta-phones {
  display: grid;
  gap: var(--space-2);
}

.cta-band .btn-primary {
  background: var(--green-800);
  color: #f3f0ea;
}

.cta-band .btn-primary:hover {
  background: var(--green-900);
  color: #f3f0ea;
}

.cta-band .phone-link {
  min-height: 44px;
  padding: 0 1rem;
  background: transparent;
  color: #f3f0ea;
  border: 1px solid rgba(243, 240, 234, 0.35);
  border-radius: 999px;
  font-size: 1rem;
}

.cta-band .phone-link:hover {
  background: var(--cream-50);
  color: var(--green-900);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.reveal {
  animation: rise 700ms ease both;
}

.product-card:nth-child(2),
.feature:nth-child(2),
.step:nth-child(2) {
  animation-delay: 70ms;
}

.product-card:nth-child(3),
.feature:nth-child(3),
.step:nth-child(3) {
  animation-delay: 140ms;
}

.product-card:nth-child(4),
.feature:nth-child(4),
.step:nth-child(4) {
  animation-delay: 210ms;
}

@media (max-width: 1100px) {
  .product-grid,
  .feature-list,
  .steps,
  .home-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .home-gallery .home-shot:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .hero,
  .split,
  .place-home,
  .since-home-inner {
    grid-template-columns: 1fr;
  }

  .since-home-inner {
    display: grid;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-block: 0.2rem 0.4rem;
  }

  .media-hero {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 10;
    max-height: 70vh;
  }

  .media-intro {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 699px) {
  .since-home-year {
    font-size: 3.25rem;
    line-height: 1;
  }

  .since-home h2 {
    font-size: 1.7rem;
    line-height: 1.15;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 11vw, 3.15rem);
  }

  .hero-actions,
  .cta-actions,
  .cta-layout {
    display: grid;
  }

  .cta-side {
    width: 100%;
  }

  .hero-actions .btn,
  .cta-actions .btn {
    width: 100%;
  }

  .product-grid,
  .feature-list,
  .steps,
  .home-gallery {
    grid-template-columns: 1fr;
  }

  .home-gallery .home-shot:last-child {
    grid-column: auto;
  }

  .media-hero {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .media-band {
    aspect-ratio: 4 / 3;
    max-height: none;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: 0;
  }

  .hero-copy {
    padding-block: 0.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .media-hero {
    aspect-ratio: 21 / 9;
    max-height: 70vh;
  }
}
