/* ==========================================================================
   Section: Contact — reusable contact section with animated SVG trail
   ========================================================================== */

.section-contact {
  position: relative;
  background-color: var(--bg-white);
  overflow-x: hidden;
  min-height: 648px;
  /* Figma 3486:26998: 60px top / 80px bottom at the 1440 reference width.
     Above 1440 the padding grows with the viewport (60/1440 = 4.17vw,
     80/1440 = 5.56vw) so the section keeps Figma's proportions on wide
     screens instead of looking squeezed. */
  padding-block: max(60px, 4.17vw) max(80px, 5.56vw);
}

/* Animated SVG trail in background — scales with section height, fixed width */
.section-contact__trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;   /* let the stroke begin off-screen and slide in */
}
.section-contact__trail-path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.1s linear;
}

/* 4-column grid — col 1–2: left block, col 3: empty spacer, col 4: right */
.section-contact__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 508px;
  column-gap: 20px;

}

/* Left block: eyebrow, body, nav-link */
.section-contact__left {
  grid-column: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
 height: 100%;
  padding: 0;
}

.section-contact__title {
  font-size: var(--body-lg);        /* Figma: Body/Large 24/36, dark */
  font-weight: 400;
  line-height: var(--body-lg-lh);
  color: var(--text-title);
}

/* small-link in contact section — stays dark on hover, never blue */
.section-contact__link:hover { color: var(--text-title); }

.section-contact__body {
  font-size: var(--title-sm);       /* Figma: Header/Small 40/50 */
  font-weight: 400;
  line-height: var(--title-sm-lh);
  letter-spacing: -0.8px;
  color: var(--text-title);
  flex: 1;
  display: flex;
  align-items: center;
  margin-block: 32px;
}

/* Right block: photo, name, role, CTA btn — column 4 */
.section-contact__right {
  grid-column: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  gap: 16px;
}

.section-contact__photo-wrap {
  flex: 1 0 0;
  align-self: stretch;
  border-radius: 20px;
  width: 300px;
  overflow: hidden;
  min-height: 200px;
}
.section-contact__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}
.section-contact__photo-placeholder {
  flex: 1 0 0;
  align-self: stretch;
  min-height: 200px;
  background-color: var(--bg-primary);
  border-radius: 20px;
}

/* Person block (Figma 2766:32478): photo ↔ name 24px, name block ↔ button 16px
   (right column gap is 16px; the extra 8px comes from the photo margin). */
.section-contact__photo-wrap,
.section-contact__photo-placeholder { margin-bottom: 8px; }
.section-contact__name {
  font-size: var(--body-lg);        /* Body/Large 24/36, dark */
  line-height: var(--body-lg-lh);
  letter-spacing: -0.24px;
  color: var(--text-title);
}
.section-contact__role {
  font-size: var(--body-md);        /* Body/Medium 20/30, grey */
  line-height: var(--body-md-lh);
  letter-spacing: -0.2px;
  color: var(--text-body);
}

/* ── Mobile (Figma 3190:6984) — single column, image full-width ───────────── */
@media (max-width: 767px) {
  .section-contact {
    min-height: 0;
    padding-block: 40px;
  }

  /* Stack: left block on top, then image + person + button */
  .section-contact__inner {
    grid-template-columns: 1fr;
    min-height: 0;
    row-gap: 32px;
  }

  .section-contact__left {
    grid-column: 1;
    justify-content: flex-start;
    height: auto;
    row-gap: 60px;
  }

  .section-contact__right {
    grid-column: 1;
    width: 100%;
    height: auto;
    padding-top: 8px;
    gap: 16px;
  }

  .section-contact__photo-wrap,
  .section-contact__photo-placeholder {
    width: 100%;
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;   /* landscape card on mobile — slightly taller than 3:2 so the portrait photo is less zoomed-in */
    min-height: 0;
  }
  /* Landscape crop of a portrait photo — anchor to the top so the face stays in frame */
  .section-contact__photo { object-position: top; }
  .section-contact__role { padding-bottom: 7px; }
  .section-contact__right { padding-top: 0; }

  .section-contact__body {
    margin: 0px;
  }

}
