.hero {
  position: relative;
  min-height: 87vh;
  color: #ffffff;
  overflow-x: clip;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 12, 20, 0.72) 0%, rgba(7, 12, 20, 0.48) 42%, rgba(7, 12, 20, 0.28) 100%),
    url("./assets/images/optimized/display/garden/a1.webp") center 10% / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 87vh;
  padding: 120px 0 90px;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: -40px -80px -40px -80px;
  background:
    radial-gradient(circle at 18% 36%, rgba(7, 12, 20, 0.24) 0%, rgba(7, 12, 20, 0.16) 24%, rgba(7, 12, 20, 0.08) 42%, rgba(7, 12, 20, 0) 62%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin-bottom: 16px;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin-bottom: 18px;
  line-height: 0.92;
}

h2 {
  max-width: 14ch;
  margin-bottom: 16px;
  line-height: 0.96;
}

h3 {
  margin-bottom: 10px;
}

.hero-text,
.intro-copy p,
.section-heading p,
.feature-project-copy p,
.cta-copy p {
  color: var(--muted);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}

.hero-text {
  max-width: 40rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 14px rgba(7, 12, 20, 0.34);
}

.hero .eyebrow {
  text-shadow: 0 2px 12px rgba(7, 12, 20, 0.34);
}

.hero-actions,
.intro-actions,
.cta-actions-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 32px;
}

.intro-section,
.featured-section,
.cta-section {
  padding: 88px 0;
}

.intro-grid {
  display: flow-root;
}

.profile-card,
.cta-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-card {
  float: left;
  overflow: hidden;
  width: min(320px, 32vw);
  margin: 0 32px 20px 0;
  border-radius: var(--radius-box);
}

.profile-card img {
  aspect-ratio: 4 / 5.4;
  object-fit: cover;
  object-position: 73% center;
}

.intro-copy {
  max-width: none;
}

.intro-copy h2 {
  max-width: none;
}

.intro-signoff {
  margin: 18px 0 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.intro-signoff span {
  display: block;
}

.intro-signoff span + span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.95rem;
}

.intro-actions {
  margin-top: 28px;
}

.section-heading {
  max-width: 42rem;
  margin-bottom: 28px;
}

#featured-title {
  max-width: none;
}

.feature-link:focus-visible,
.feature-project-hero:focus-visible,
.feature-project-thumb:focus-visible {
  outline: 2px solid rgba(29, 78, 216, 0.2);
  outline-offset: 4px;
}

.featured-projects {
  display: grid;
  gap: 28px;
}

.feature-project {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.feature-project:first-child {
  padding-top: 0;
  border-top: 0;
}

.feature-project-reversed {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.feature-project-reversed .feature-project-media {
  order: 2;
}

.feature-project-reversed .feature-project-copy {
  order: 1;
}

.feature-project-media {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.feature-project-hero,
.feature-project-thumb {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-media);
  height: 100%;
}

.feature-project-hero img,
.feature-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 220ms ease,
    filter 220ms ease;
}

.feature-project-hero img {
  aspect-ratio: 1 / 1;
}

.feature-project-hero-kamin img {
  object-position: center 38%;
}

.feature-project-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-project-thumb img {
  aspect-ratio: 1 / 1;
}

.feature-project-thumbs .feature-project-thumb:first-child {
  grid-column: 1 / -1;
}

.feature-project-copy {
  max-width: 34rem;
}

.feature-project-copy .eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
}

.feature-project-copy p {
  margin-bottom: 0;
}

.feature-link {
  display: inline-flex;
  margin-top: 16px;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  transition:
    transform 160ms ease,
    color 160ms ease;
}

.feature-project-hero:hover img,
.feature-project-hero:focus-visible img,
.feature-project-thumb:hover img,
.feature-project-thumb:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.03) brightness(1.02);
}

.feature-link:hover,
.feature-link:focus-visible {
  transform: translateX(4px);
  color: var(--accent-dark);
}

.cta-section {
  padding-top: 0;
}

.cta-panel {
  display: block;
  max-width: 760px;
  margin-inline: auto;
  padding: 36px;
  border-radius: var(--radius-box);
  text-align: center;
}

.cta-copy {
  max-width: 44rem;
  margin-inline: auto;
}

.cta-copy h2 {
  max-width: 9ch;
  margin-inline: auto;
}

.cta-contact {
  display: grid;
  gap: 16px;
  width: min(100%, 360px);
  min-width: 0;
  margin-top: 24px;
  margin-inline: auto;
  justify-items: center;
  font-style: normal;
}

.cta-contact p {
  margin-bottom: 0;
  width: 100%;
}

.cta-contact span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-email-button {
  justify-content: center;
  width: 100%;
  padding-inline: 18px;
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
}

.cta-email-link {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(29, 78, 216, 0.24);
}

.cta-email-link:hover,
.cta-email-link:focus-visible {
  color: var(--accent);
  border-bottom-color: currentColor;
}

@media (max-width: 920px) {
  .feature-project,
  .feature-project-reversed {
    grid-template-columns: 1fr;
  }

  .feature-project-media {
    grid-template-columns: 1fr;
  }

  .feature-project-thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-project-thumbs .feature-project-thumb:first-child {
    grid-column: auto;
  }

  .feature-project-reversed .feature-project-media,
  .feature-project-reversed .feature-project-copy {
    order: initial;
  }
}

@media (max-width: 780px) {
  .profile-card {
    float: left;
    width: min(250px, 38vw);
    margin: 0 24px 18px 0;
  }
}

@media (max-width: 640px) {
  .intro-grid {
    display: flow-root;
  }

  .profile-card {
    float: left;
    width: min(170px, 42vw);
    margin: 0 16px 14px 0;
  }

  :root {
    --container: min(100% - 24px, 1160px);
  }

  .hero,
  .hero-content {
    min-height: 87vh;
  }

  .intro-section,
  .featured-section,
  .cta-section {
    padding: 64px 0;
  }

  .feature-project {
    padding: 18px 0;
    gap: 18px;
  }

  .feature-project-thumbs {
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-panel {
    padding: 24px;
  }
}
