/* bust:1789570627 cavity stall-failsafe sister to lift */
.cavity-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent; /* media inside sticky — no opaque app slab */
  overflow: hidden;
  z-index: 0;
}

.cavity-still-wrap,
.cavity-still {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  display: block;
}

.cavity-still {
  object-fit: cover;
  opacity: 1;
}

.cavity-still-wrap--full {
  z-index: 1;
  opacity: 1;
}

.cavity-still-wrap--empty {
  z-index: 2;
  opacity: 1;
}

.cavity-stage.is-dissolve .cavity-still-wrap--empty,
.cavity-stage.is-dissolve .cavity-still-wrap--full {
  will-change: opacity;
}

.job {
  padding: 0;
  width: 100%;
  max-width: none;
  scroll-margin-top: var(--header, 4.5rem);
}

.job-pin {
  --pin-vh: 100vh;
  --pin-vh: 100lvh; /* large viewport under Liquid Glass; not visual-hole dvh */
  --cavity-fill: 0;
  --pin-exit: 0;
  position: relative;
  background: transparent;
}

.job-pin__sticky {
  position: sticky;
  top: 0;
  height: var(--pin-vh);
  z-index: 1;
  overflow: hidden;
}

/* Soft settle into Foam jacking — middle ground: visible handoff, not a wipe */
.job-pin__sticky::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(18%, 7.5rem);
  z-index: 5;
  pointer-events: none;
  opacity: calc(var(--pin-exit, 0) * 0.72);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in oklch, var(--gulf-ink, #065a75) 12%, transparent) 45%,
    color-mix(in oklch, var(--gulf-ink, #065a75) 28%, transparent) 100%
  );
}

.job-pin__travel {
  height: 160svh; /* scroll-debt: was 480 — ~1.5–2 desktop gestures */
  pointer-events: none;
}

.job-pin__figure {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.75rem, 4vw, 3rem) max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-top: calc(var(--header, 4.5rem) + env(safe-area-inset-top, 0px) + 0.35rem);
  padding-left: max(calc(var(--gutter) + 0.75rem), calc((100% - var(--max)) / 2 + 0.85rem));
  box-sizing: border-box;
  pointer-events: none;
  background: none;
  opacity: 1;
}

/* Full-height brand-blue under left column — denser local wash for bright foam */
.job-pin__figure::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0 auto 0 0;
  width: min(40rem, 54%);
  height: 100%;
  pointer-events: none;
  border-radius: 0;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--gulf-ink, #065a75) 76%, transparent) 0%,
    color-mix(in oklch, var(--gulf-ink, #065a75) 62%, transparent) 26%,
    color-mix(in oklch, var(--gulf, #0a7ea4) 44%, transparent) 48%,
    color-mix(in oklch, var(--gulf, #0a7ea4) 20%, transparent) 68%,
    color-mix(in oklch, var(--gulf, #0a7ea4) 6%, transparent) 86%,
    transparent 100%
  );
}

.job-pin__entry {
  --reveal: 0;
  margin: 0 0 0.15rem;
  padding: 0 0 0.55rem 1.2rem;
  border-left: 1.5px solid rgba(255, 255, 255, 0.35);
  opacity: var(--reveal);
  transform: translate3d(calc((1 - var(--reveal)) * -1.4rem), 0, 0);
  will-change: transform, opacity;
}

.job-pin__label {
  margin: 0;
  color: #fff;
  font-size: clamp(0.72rem, 1.1vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.32),
    0 3px 12px rgba(6, 90, 117, 0.25);
}

.job-pin__sub {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 3px 14px rgba(6, 90, 117, 0.24);
}

.gains-on-plate {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.35rem);
  width: min(34rem, 88vw);
}

.job-pin .gain--plate {
  --reveal: 0;
  --lead: 0;
  pointer-events: auto;
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0 0 0 1.2rem;
  border: 0;
  border-radius: 0;
  border-left: 1.5px solid color-mix(
    in oklch,
    var(--gulf, #0a7ea4) calc(var(--lead) * 85%),
    rgba(255, 255, 255, 0.42)
  );
  background: transparent;
  box-shadow: none;
  opacity: var(--reveal);
  transform: translate3d(calc((1 - var(--reveal)) * -1.85rem), 0, 0);
  will-change: transform, opacity;
  transition: opacity 0.05s linear, transform 0.05s linear, border-color 0.2s ease;
}

.job-pin .gain--plate h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 2.75vw, 2.05rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.32),
    0 4px 16px rgba(6, 90, 117, 0.28);
}

.job-pin .gain--plate p {
  margin: 0;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.005em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.28),
    0 3px 12px rgba(6, 90, 117, 0.22);
}

.job-pin.is-static .job-pin__entry,
.job-pin.is-static .gain--plate {
  --reveal: 1;
  --lead: 0;
  opacity: 1;
  transform: none;
}

.job-pin.is-static .cavity-still-wrap--empty {
  opacity: 0;
}

.job-pin.is-static .cavity-still-wrap--full {
  opacity: 1;
}

.lift {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  background: var(--page, #f8f9fa);
}

@media (max-width: 768px) {
  .job-pin__figure {
    justify-content: flex-end;
    padding: 1.25rem max(var(--gutter), 1.2rem) 1.85rem;
    padding-top: calc(var(--header, 4.5rem) + env(safe-area-inset-top, 0px) + 0.5rem);
    background: none;
  }

  .job-pin__figure::before {
    inset: 0 auto 0 0;
    width: min(100%, 90%);
    height: 100%;
    background: linear-gradient(
      90deg,
      color-mix(in oklch, var(--gulf-ink, #065a75) 78%, transparent) 0%,
      color-mix(in oklch, var(--gulf-ink, #065a75) 58%, transparent) 34%,
      color-mix(in oklch, var(--gulf, #0a7ea4) 36%, transparent) 60%,
      color-mix(in oklch, var(--gulf, #0a7ea4) 12%, transparent) 82%,
      transparent 100%
    );
  }

  .job-pin__travel {
    height: 220svh; /* Plate D thumb; was 300 after 520 */
  }

  .job-pin__entry {
    padding: 0 0 0.4rem 1.05rem;
    transform: translate3d(calc((1 - var(--reveal)) * -1.15rem), 0, 0);
  }

  .job-pin__label {
    font-size: clamp(0.78rem, 2.8vw, 0.86rem);
    letter-spacing: 0.1em;
  }

  .job-pin__sub {
    font-size: clamp(1.02rem, 4.2vw, 1.18rem);
  }

  .gains-on-plate {
    width: 100%;
    gap: clamp(1.55rem, 3.5vw, 2.05rem);
  }

  .job-pin .gain--plate {
    padding-left: 1.05rem;
    gap: 0.4rem;
    transform: translate3d(calc((1 - var(--reveal)) * -1.5rem), 0, 0);
  }

  .job-pin .gain--plate h3 {
    font-size: clamp(1.28rem, 5.4vw, 1.58rem);
    letter-spacing: -0.028em;
  }

  .job-pin .gain--plate p {
    font-size: 1rem;
    line-height: 1.45;
    max-width: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .job-pin__travel {
    height: 180svh;
  }

  .job-pin .gain--plate,
  .job-pin__entry {
    transition: opacity 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
  }

  .job-pin.is-static-plate .cavity-still-wrap--empty {
    opacity: 0;
  }

  .job-pin.is-static-plate .cavity-still-wrap--full {
    opacity: 1;
  }

  .job-pin__sticky::after {
    display: none;
  }
}

/* bust:1789601086 post-settle: collapse after exit beat (cavity + lift) */
.job-pin.is-pin-collapsed .job-pin__travel {
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  pointer-events: none;
}
/* sticky stays pin-vh — plate media is absolute; travel=0 already ends the pin */
.job-pin.is-pin-collapsed .job-pin__sticky {
  /* no position/height change */
}


/* Plate D short-screen — less dead travel on short phones */
@media (max-width: 768px) and (max-height: 750px) {
  .job-pin__travel {
    height: 160svh;
  }
}
