/**
 * Homepage-only: About preview + Contact band (aligned with inner-page card language).
 */

/* ——— About preview (full story on /about) ——— */
.page-home .km-home-about-preview {
  padding: clamp(3.5rem, 9vw, 5.5rem) 0;
  background: #fafbfc;
}

.page-home .km-home-about-preview__figure {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(14, 29, 66, 0.12);
}

.page-home .km-home-about-preview__figure img {
  display: block;
  width: 100%;
  height: min(58vh, 480px);
  object-fit: cover;
}

.page-home .km-home-about-preview__copy .md-kicker {
  color: var(--color-blue-600);
}

.page-home .km-home-about-preview__copy .md-section-title {
  margin-bottom: 1.25rem;
}

.page-home .km-home-about-preview__text {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.95rem, 1.5vw, 1.03rem);
  line-height: 1.78;
  color: #333;
  margin-bottom: 1.5rem;
}

.page-home .km-home-about-preview__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-blue-600) !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(14, 29, 66, 0.35);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}

.page-home .km-home-about-preview__link:hover {
  color: var(--color-blue-800) !important;
  border-bottom-color: var(--color-blue-800);
}

/* ——— Contact: dark immersive + glass card ——— */
.page-home .km-home-contact {
  position: relative;
  padding: clamp(4rem, 11vw, 6.5rem) 0;
  color: #fff;
  overflow: hidden;
  /* Solid base so no white flash if children use scroll-reveal opacity */
  background: var(--km-ceo-bg);
}

@keyframes km-home-contact-bg-drift {
  0% {
    transform: scale(1.12) translate(0, 0);
  }
  50% {
    transform: scale(1.2) translate(2.2%, -1.8%);
  }
  100% {
    transform: scale(1.14) translate(-1.5%, 1.2%);
  }
}

.page-home .km-home-contact__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    rgba(2, 6, 18, 0.92) 0%,
    rgba(10, 22, 48, 0.88) 45%,
    rgba(40, 10, 30, 0.85) 100%
  );
}

.page-home .km-home-contact__bg::before {
  content: "";
  position: absolute;
  inset: -12%;
  pointer-events: none;
  background: url("../assets/images/hero/699c32f051784.webp") center center / cover no-repeat;
  animation: km-home-contact-bg-drift 42s ease-in-out infinite alternate;
  will-change: transform;
  z-index: 0;
}

.page-home .km-home-contact__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Blue accent on top, 75% black over the photo for readability */
  background:
    radial-gradient(ellipse 70% 55% at 70% 40%, rgba(14, 29, 66, 0.18), transparent 60%),
    rgba(0, 0, 0, 0.75);
  pointer-events: none;
  z-index: 1;
}

.page-home .km-home-contact .container {
  position: relative;
  z-index: 2;
}

.page-home .km-home-contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}

@media (min-width: 992px) {
  .page-home .km-home-contact__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
    align-items: center;
  }
}

.page-home .km-home-contact__intro .md-kicker {
  color: var(--color-blue-400);
}

.page-home .km-home-contact__headline {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.65rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 20ch;
}

.page-home .km-home-contact__lede {
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.08rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
  margin: 0;
}

.page-home .km-home-contact__card {
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: rgba(8, 10, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.page-home .km-home-contact__card-title {
  font-family: var(--md-font-display), "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  color: #fff;
}

.page-home .km-home-contact__form .form-control {
  border-radius: 999px;
  border: none;
  padding: 0.8rem 1.15rem;
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-size: 0.92rem;
  background: #fff;
  margin-bottom: 0.75rem;
}

.page-home .km-home-contact__form textarea.form-control {
  border-radius: 18px;
  min-height: 120px;
  resize: vertical;
}

.page-home .km-home-contact__form .form-control:focus {
  box-shadow: 0 0 0 3px rgba(14, 29, 66, 0.35);
}

.page-home .km-home-contact__submit {
  margin-top: 0.5rem;
  font-family: var(--md-font-body), "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  color: #fff !important;
  float: right;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.page-home .km-home-contact__submit:hover:not(:disabled) {
  background: #fff;
  color: #000 !important;
}

.page-home .km-home-contact__submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
  .page-home .km-home-contact__submit:hover:not(:disabled) {
    transform: none;
  }

  .page-home .km-home-contact__bg::before {
    animation: none !important;
    transform: scale(1.08) translate(0, 0);
  }
}
