/* dark cover: same navy as the home hero and operating model, so the page reads as part of the site */
.contact-cover {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  background:
    radial-gradient(ellipse 55% 40% at 50% 78%, rgba(45, 113, 245, 0.34), transparent 70%),
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(106, 164, 248, 0.16), transparent 60%),
    #0f172a;
  color: var(--color-white);
}

.contact-cover__heading {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.contact-cover__heading .eyebrow {
  margin: 0;
  color: #8eb8d8;
}

.contact-cover__heading h1 {
  max-width: 18ch;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.contact-cover__highlight {
  color: transparent;
  background: var(--gradient-brand-text);
  -webkit-background-clip: text;
  background-clip: text;
}

.contact-cover__heading > p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.contact-cover__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

/* ghost on dark: the shared ghost button is white and would glare against the navy */
.contact-cover__call {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-white);
}

.contact-cover__call:hover,
.contact-cover__call:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

/* aspect ratio = laptop height / 0.96, so the laptop fills the stage above its 4% lift */
.contact-cover__stage {
  position: relative;
  aspect-ratio: 2.44 / 1;
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* positioned with offsets only: transform belongs to the reveal animation */
.contact-cover__device {
  position: absolute;
  height: auto;
}

/* the laptop is the base: it shares the baseline, lifted just enough to read as behind */
.contact-cover__device--mac {
  bottom: 4%;
  left: 11%;
  width: 78%;
}

.contact-cover__device--ipad,
.contact-cover__device--ios {
  bottom: 0;
  filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.5));
  will-change: translate;
}

.contact-cover__device--ipad {
  left: 2%;
  width: 32%;
  animation: contact-device-float 6s ease-in-out 1.2s infinite;
}

.contact-cover__device--ios {
  right: 7%;
  width: 12%;
  animation: contact-device-float 7s ease-in-out 2s infinite;
}

/* translate, not transform, so the idle float composes with the reveal instead of replacing it;
   the global reduced-motion rule in layout.css stops it */
@keyframes contact-device-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

.contact-details h2 {
  margin-bottom: 1.25rem;
}

.contact-details__list {
  display: grid;
  margin: 0;
}

.contact-details__list > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--color-border);
}

.contact-details__list dt {
  color: var(--color-signal);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-details__list dd {
  margin: 0;
  color: var(--color-ink-900);
}

.contact-details__list a {
  font-weight: 600;
  color: var(--color-brand);
}

.contact-details__list a:hover {
  text-decoration: underline;
}

/* the form is the point of the page, so it gets the wider column */
.contact-layout--form {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
}

@media (max-width: 900px) {
  .contact-layout--form {
    grid-template-columns: 1fr;
  }
}

/* phones: bigger devices, tighter overlap, or the phone shrinks to a sliver */
@media (max-width: 700px) {
  .contact-cover__stage {
    aspect-ratio: 2.11 / 1;
  }

  .contact-cover__device--mac {
    left: 5%;
    width: 90%;
  }

  .contact-cover__device--ipad {
    left: 0;
    width: 44%;
  }

  .contact-cover__device--ios {
    right: 2%;
    width: 17%;
  }
}
