.home .hero {
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  min-height: max(710px, min(100svh, 960px));
}

.home .hero-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(315px, 38%);
  align-items: center;
  flex: 1;
  gap: clamp(24px, 4vw, 64px);
  padding-block: calc(var(--header) + 34px) 38px;
}

.home .hero-stage .hero-content {
  min-width: 0;
  padding-top: 0;
}

.home .hero-bottom {
  position: relative;
  inset: auto;
  box-sizing: border-box;
  width: 100%;
  max-width: calc(var(--container) + 80px);
  margin-inline: auto;
  padding: 0 40px 25px;
}

.hero-dialogue {
  width: min(100%, 419px);
  min-width: 0;
  justify-self: end;
  margin-top: clamp(12px, 3vw, 38px);
  color: #fff9f5;
}

.hero-dialogue .horizon-conversation {
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid #fff4;
  border-radius: 22px;
  background: linear-gradient(150deg, #302633b8, #211e28ba);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px #211b2329;
}

.hero-dialogue .conversation-header,
.hero-dialogue .conversation-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero-dialogue .conversation-header { justify-content: space-between; }
.hero-dialogue .conversation-profile strong { display: block; font-size: 1rem; }
.hero-dialogue .conversation-profile small { display: block; color: #f2e5e9; font-size: .75rem; }
.hero-dialogue .conversation-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  height: 36px;
  background: #fff4ea;
  border-radius: 11px;
}
.hero-dialogue .conversation-photo { flex: 0 0 56px; border-radius: 8px; overflow: hidden; }
.hero-dialogue .conversation-photo img { width: 100%; height: 38px; object-fit: cover; object-position: center 70%; display: block; }

.hero-dialogue .conversation-thread { margin-block: 12px 9px; }
.hero-dialogue .conversation-message {
  margin: 0;
  min-height: 4.75em;
  padding: 8px 10px;
  border-inline-start: 2px solid #ffc797;
  border-radius: 0 9px 9px 0;
  background: #fff1;
  font-size: .87rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.hero-dialogue .conversation-message a { display: block; margin-top: 4px; color: #ffe2bc; text-decoration: underline; }
.hero-dialogue .conversation-reply { animation: horizon-reply .26s ease-out both; }

.hero-dialogue .conversation-topics { display: flex; flex-wrap: wrap; gap: 5px; }
.hero-dialogue .conversation-topics[hidden] { display: none; }
.hero-dialogue .conversation-topics button {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid #fff5;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .75rem;
  cursor: pointer;
  transition: background-color .18s, border-color .18s, color .18s;
}
.hero-dialogue .conversation-topics button:is(:hover, [aria-pressed="true"]) {
  background: #f6dcc6;
  border-color: #f6dcc6;
  color: #2c2029;
}
.home .hero-dialogue .conversation-footer {
  display: flex;
  justify-content: flex-end;
}
.home .hero-dialogue .conversation-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 1 auto;
  min-height: 44px;
  color: #fff4ec;
  font-size: .8rem;
}
.hero-dialogue :is(a, button):focus-visible { outline: 2px solid #ffe2bc; outline-offset: 2px; }
.home.hero-in-view :is(.floating-contact, .back-top) { visibility: hidden; }

@keyframes horizon-reply { from { opacity: .25; translate: 0 5px; } to { opacity: 1; translate: 0; } }

@media (max-width: 900px) {
  .home .hero-stage { gap: 20px; grid-template-columns: minmax(0, 1fr) minmax(290px, 38%); }
  .home .hero-bottom { padding-inline: 24px; }
}
@media (max-width: 760px) {
  .home .hero { min-height: 100svh; }
  .home .hero-stage {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 20px;
    padding-block: calc(var(--header) + 30px) 20px;
  }
  .hero-dialogue { margin-top: 0; justify-self: start; }
  .home .hero-bottom { padding: 0 20px 18px; }
}
@media (max-width: 450px) {
  .home .hero-bottom { display: flex; justify-content: space-between; }
  .home .hero-bottom .photo-credit { flex-basis: auto; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dialogue .conversation-reply { animation: none; }
  .hero-dialogue .conversation-topics button { transition: none; }
}
