.clients-hatch {
  overflow-x: clip;
  position: relative;
  height: 250svh;
  margin-block: clamp(2rem, 5vw, 5rem) clamp(3rem, 8vw, 8rem);
}

.clients-stage {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4svh, 3rem);
  width: min(94%, 1280px);
  height: 100svh;
  margin-inline: auto;
  padding-block: clamp(1.5rem, 4svh, 3rem);
  isolation: isolate;
}

.clients-stage > .section-heading {
  flex-shrink: 0;
  width: 100%;
  margin: 0;
  text-align: center;
  font-size: clamp(30px, 4.6vw, 64px);
}

.clients-nest {
  --egg-size: min(22vw, 30svh, 280px);
  --egg-overlap: clamp(12px, 2vw, 28px);
  display: flex;
  align-items: start;
  justify-content: center;
  width: 100%;
  padding-top: clamp(1rem, 4svh, 3rem);
}

.client-egg {
  position: relative;
  flex: 0 0 var(--egg-size);
  width: var(--egg-size);
  min-width: 0;
  margin: 0 calc(-1 * var(--egg-overlap));
  text-align: center;
  transform: translateY(var(--egg-offset, 0px));
}

.client-egg--sorensen {
  --egg-tilt: -10deg;
  --egg-offset: 12px;
  --shell-tone: sepia(.12) saturate(.9);
  z-index: 1;
}

.client-egg--nikita {
  --egg-tilt: 6deg;
  --egg-offset: -12px;
  --shell-tone: sepia(.1) hue-rotate(320deg) saturate(.8);
  z-index: 3;
}

.client-egg--mills {
  --egg-tilt: -5deg;
  --egg-offset: 22px;
  --shell-tone: sepia(.16) hue-rotate(139deg) saturate(.83);
  z-index: 5;
}

.client-egg--ghazi {
  --egg-tilt: 8deg;
  --egg-offset: -8px;
  --shell-tone: sepia(.12) hue-rotate(26deg) saturate(.9);
  z-index: 4;
}

.client-egg--bastien {
  --egg-tilt: -8deg;
  --egg-offset: 14px;
  --shell-tone: sepia(.16) hue-rotate(287deg) saturate(.85);
  z-index: 2;
}

.client-tilt {
  transform: rotate(var(--egg-tilt, 0deg));
  transform-origin: center 85%;
}

.client-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  transform: rotate(var(--rock, 0deg));
  transform-origin: center 95%;
  pointer-events: none;
  user-select: none;
}

.client-shell::before {
  position: absolute;
  inset: auto 8% -2%;
  height: 12%;
  border-radius: 50%;
  background: #0009;
  filter: blur(clamp(5px, 1.2vw, 14px));
  content: '';
}

.client-intact,
.client-top,
.client-bottom,
.client-cracks,
.client-debris {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.client-intact,
.client-top,
.client-bottom,
.client-debris i {
  filter: var(--shell-tone, none);
}

.client-top,
.client-bottom {
  display: none;
}

.client-egg[data-opening] .client-intact {
  visibility: hidden;
}

.client-egg[data-opening] .client-top,
.client-egg[data-opening] .client-bottom {
  display: block;
}

.client-top {
  clip-path: var(--lid-cut);
  opacity: var(--lid-opacity, 1);
  transform: translate(var(--lid-x, 0%), var(--lid-y, 0%)) rotate(var(--lid-spin, 0deg));
  transform-origin: center 53%;
}

.client-bottom {
  clip-path: var(--base-cut);
}

.client-cracks {
  mask: url('./client-egg.webp') center / 100% 100% no-repeat;
}

.client-face-window {
  position: absolute;
  inset: 0;
  clip-path: var(--reveal-cut, inset(50%));
  pointer-events: none;
}

.client-portrait {
  position: absolute;
  top: var(--face-top, -15%);
  left: 50%;
  width: var(--face-width, 166%);
  height: auto;
  max-width: none;
  opacity: var(--face-opacity, 0);
  transform: translate(-50%, var(--face-drop, 76%)) rotate(var(--face-tilt, 0deg));
  transform-origin: 50% 54%;
  pointer-events: none;
  user-select: none;
}

.client-debris i {
  position: absolute;
  left: var(--debris-left);
  bottom: 2%;
  width: 12%;
  height: 8%;
  clip-path: polygon(0 85%, 26% 24%, 57% 34%, 76% 0, 100% 57%, 77% 100%);
  background: url('./client-egg.webp') 48% 69% / 540% auto;
  opacity: var(--debris-opacity, 0);
  transform: translate(var(--debris-x, 0%), var(--debris-y, 0%)) rotate(var(--debris-angle, 0deg));
}

.client-debris i:nth-child(1) { --debris-left: 9%; }
.client-debris i:nth-child(2) { --debris-left: 89%; }
.client-debris i:nth-child(3) { --debris-left: 79%; width: 8%; height: 6%; }

.client-egg figcaption {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  width: 100%;
  min-height: 4rem;
  margin-top: .9rem;
  color: var(--paper, #f0e9dc);
  font-size: 20px;
  line-height: 1.2;
  text-wrap: balance;
}

.client-egg figcaption strong {
  font-weight: 650;
}

.client-egg figcaption span {
  max-width: 12rem;
  margin-inline: auto;
  color: #b5afa5;
  font-size: 16px;
  line-height: 1.25;
}

.client-print-defs { position: absolute; pointer-events: none; }
.client-egg figcaption .client-company { color: var(--paper); font-size: 15px; }
.client-egg figcaption .client-impact { margin-top: .2rem; }
.client-impact u { text-decoration-color: var(--red); text-underline-offset: .16em; text-decoration-thickness: 1px; white-space: nowrap; }

@media (max-width: 640px) and (orientation: portrait) {
  .clients-hatch { height: 290svh; }

  .clients-stage {
    width: 94%;
    gap: .8rem;
    padding-block: .75rem;
  }

  .clients-stage > .section-heading {
    max-width: 340px;
    font-size: clamp(25px, 7.6vw, 32px);
    line-height: 1.08;
  }

  .clients-nest {
    --egg-size: min(30vw, 15.3svh, 132px);
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-items: center;
    align-items: start;
    width: min(100%, calc(var(--egg-size) * 2.65));
    row-gap: clamp(18px, 3svh, 26px);
    padding-top: .8rem;
  }

  .client-egg {
    grid-column: span 2;
    margin: 0;
    transform: none;
  }

  .client-egg--ghazi { grid-column: 2 / span 2; }
  .client-egg--bastien { grid-column: 4 / span 2; }

  .client-egg figcaption {
    width: calc(100% - 18px);
    min-height: 3.8rem;
    margin-top: .7rem;
    margin-inline: 9px;
    font-size: 16px;
  }

  .client-egg figcaption strong {
    display: flex;
    align-items: end;
    justify-content: center;
    min-height: 2.4em;
  }

  .client-egg figcaption span {
    max-width: 10rem;
    font-size: 14px;
  }

  .client-egg figcaption .client-company { font-size: 13px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .clients-stage { gap: .5rem; padding-block: .7rem; }
  .clients-stage > .section-heading { font-size: clamp(23px, 5svh, 34px); }
  .clients-nest { --egg-size: min(18vw, 28svh, 180px); padding-top: .5rem; }
  .client-egg { --egg-offset: 0px; }
  .client-egg figcaption { margin-top: .5rem; font-size: 14px; }
}

@media (max-width: 640px) and (max-height: 600px) and (orientation: portrait) {
  .clients-stage { gap: .5rem; padding-block: .6rem; }
  .clients-stage > .section-heading { font-size: 24px; }
  .clients-nest { width: 100%; --egg-size: min(31vw, 100px); row-gap: .65rem; padding-top: .25rem; }
  .client-tilt { width: min(21vw, 12svh); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .client-shell { transform: none; }
}
