/* Gilfoyle's profile hero: the real portrait leads the first screen, standing in the site's misty hills.
   Linked only by templates/employee-gilfoyle.html; the shared shell and later sections keep their rules. */
.employee-profile-page #home.se-hero {
  --se-head: 128px;
  --se-crop: .755;
  display: block;
  height: clamp(620px, calc(100svh - 96px), 860px);
  /* A soft morning wash on the copy side keeps the headline at full contrast over the photograph. */
  background:
    linear-gradient(90deg, #fbf8f1c2 0%, #fbf8f185 32%, #fbf8f100 58%),
    #efe9dc url("/optimized-media/v2/mist-hills-q95.webp") 50% 58% / cover no-repeat;
}
.employee-profile-page #home.se-hero::before { content: none; }
.se-hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  width: 58%;
  height: 100%;
  padding: 72px 0 0 clamp(56px, 8.4vw, 120px);
}
.employee-profile-page .se-hero h1 {
  width: auto;
  max-width: none;
  margin: 0 0 24px;
  font-size: clamp(48px, 3.9vw, 60px);
}
.se-hero .profile-hero-role { text-wrap: balance; }
@media (min-width: 1360px) {
  .se-hero .profile-hero-role { white-space: nowrap; }
}
.se-hero .profile-promise {
  max-width: 400px;
  margin: 0;
  color: #5d5e54;
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}
.employee-profile-page .se-hero .hero-actions { margin-top: 32px; }

/* Portrait: hair sits just below the floating header; the card edge crops at the hips. */
.se-hero-figure {
  --se-portrait-h: calc((100% - var(--se-head)) / (var(--se-crop) - .033));
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  right: clamp(16px, 3vw, 56px);
  width: min(42%, 600px);
  pointer-events: none;
}
.se-hero-stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(86%, 470px);
  height: calc(100% - var(--se-head) - 44px);
  transform: translateX(-50%);
  border-radius: 28px 28px 0 0;
  /* The portrait arch: a warmly lit, slightly translucent panel so the landscape stays visible around it. */
  background:
    radial-gradient(70% 46% at 50% 24%, #f8f4ece6 0%, #f8f4ec00 100%),
    linear-gradient(180deg, #efe8dbe0 0%, #e2d8c6eb 100%);
  box-shadow: inset 0 0 0 1px #ffffff66, 0 30px 60px -36px #3a3a2a59;
}
.employee-profile-page .se-hero .profile-portrait {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: calc(var(--se-portrait-h) * (var(--se-crop) - 1));
  width: auto;
  height: var(--se-portrait-h);
  max-width: none;
  transform: translateX(-50%);
  filter: none;
}

@media (min-width: 761px) and (max-width: 1100px) {
  .employee-profile-page #home.se-hero { --se-head: 120px; height: clamp(600px, calc(100svh - 96px), 720px); }
  .se-hero-copy { width: 56%; padding-left: 40px; }
  .employee-profile-page .se-hero h1 { font-size: clamp(40px, 4.6vw, 50px); }
  .se-hero .profile-promise { max-width: 360px; font-size: 17px; }
  .se-hero-figure { right: 8px; width: 46%; }
}

/* Phones: name and promise first, then the portrait standing on its stage. */
@media (max-width: 760px) {
  .employee-profile-page #home.se-hero {
    --se-head: 22px; --se-crop: .67; height: auto;
    background:
      linear-gradient(180deg, #fbf8f1eb 0%, #fbf8f1c7 46%, #fbf8f10f 72%),
      #efe9dc url("/optimized-media/v2/mist-hills-q95.webp") 42% 100% / cover no-repeat;
  }
  .se-hero-copy { display: block; width: auto; height: auto; padding: 112px 24px 0; }
  .employee-profile-page .se-hero h1 { margin-bottom: 18px; font-size: clamp(32px, 9.6vw, 44px); }
  .se-hero .profile-promise { max-width: 360px; font-size: 17px; }
  .employee-profile-page .se-hero .hero-actions { margin-top: 24px; }
  .se-hero-figure { position: relative; top: auto; bottom: auto; right: auto; width: auto; height: 440px; margin-top: 12px; overflow: hidden; }
  .se-hero-stage { width: min(84%, 380px); height: calc(100% - 64px); }
}
/* Phones: the two actions stack at full width so neither label or shadow is squeezed. */
@media (max-width: 600px) {
  .employee-profile-page .se-hero .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; max-width: 342px; }
  .se-hero .hero-actions .hero-signup, .se-hero .hero-actions .native-demo-button { flex: none; width: 100%; }
}
/* The phone header wraps its actions onto a second row. */
@media (max-width: 600px) {
  .se-hero-copy { padding-top: 144px; }
  .employee-profile-page .se-hero h1 { margin-bottom: 14px; }
  .employee-profile-page .se-hero .hero-actions { margin-top: 20px; }
}
@media (max-width: 360px) {
  .se-hero-copy { padding-inline: 20px; }
  .se-hero-figure { height: 400px; }
}
