.coach-visual {
  display: block;
  padding: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(92, 117, 255, 0.28), transparent 38%),
    linear-gradient(135deg, #0c1128, #050817 72%);
}

.coach-app-visual {
  isolation: isolate;
  background: #050807;
}

.coach-app-visual::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 6, 5, 0.92) 0%, rgba(3, 6, 5, 0.55) 42%, transparent 72%);
  content: '';
  pointer-events: none;
}

.coach-gym-bg {
  position: absolute;
  inset: 0;
}

.coach-app-caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 7%;
  display: grid;
  transform: translateY(-50%);
  text-shadow: 0 6px 28px rgba(0, 0, 0, 0.9);
}

.coach-app-caption span,
.coach-app-caption small {
  color: #c2ff3d;
  font: 800 8px var(--mono);
  letter-spacing: 0.18em;
}

.coach-app-caption strong {
  margin: 4px 0 10px;
  color: #f3f6f3;
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.coach-app-caption small {
  padding-top: 10px;
  border-top: 1px solid rgba(194, 255, 61, 0.5);
  font-size: 6px;
}

.coach-phone {
  position: absolute;
  z-index: 3;
  top: -11%;
  right: 13%;
  height: 122%;
  aspect-ratio: 1170 / 2532;
  overflow: hidden;
  border: 5px solid #080b0a;
  border-radius: 9% / 4.2%;
  background: #080b0a;
  box-shadow: 0 30px 44px rgba(0, 0, 0, 0.72), 0 0 34px rgba(194, 255, 61, 0.2);
  transform: rotate(7deg);
  transform-origin: center;
}

.coach-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

.project-card:hover .coach-phone img {
  transform: none;
}

.coach-visual::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(143, 160, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 160, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  content: '';
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

.coach-session {
  position: absolute;
  z-index: 2;
  top: 24px;
  left: 26px;
  display: grid;
  width: 86px;
  height: 86px;
  place-content: center;
  border: 1px solid rgba(143, 160, 255, 0.58);
  border-radius: 50%;
  background: rgba(4, 8, 23, 0.74);
  box-shadow: 0 0 34px rgba(92, 117, 255, 0.18), inset 0 0 22px rgba(92, 117, 255, 0.12);
  text-align: center;
}

.coach-session::after {
  position: absolute;
  inset: -7px;
  border: 1px dashed rgba(143, 160, 255, 0.26);
  border-radius: 50%;
  content: '';
}

.coach-session strong {
  color: #edf1ff;
  font: 800 15px var(--mono);
}

.coach-session span {
  margin-top: 4px;
  color: #8fa0ff;
  font: 800 6px var(--mono);
  letter-spacing: 0.12em;
}

.training-athlete {
  position: absolute;
  z-index: 1;
  inset: 3% 8% 4%;
  width: 84%;
  height: 93%;
  filter: drop-shadow(0 0 12px rgba(92, 117, 255, 0.35));
}

.training-floor {
  fill: none;
  stroke: rgba(143, 160, 255, 0.18);
  stroke-width: 2;
}

.barbell,
.athlete {
  fill: none;
  stroke: url('#coach-energy');
  stroke-linecap: round;
  stroke-linejoin: round;
}

.barbell { fill: url('#coach-energy'); stroke: none; }
.barbell-bar { filter: drop-shadow(0 0 7px rgba(143, 160, 255, 0.8)); }
.athlete { stroke-width: 11; }
.athlete circle { fill: #8fa0ff; stroke-width: 5; }
.athlete path:nth-of-type(1) { fill: rgba(92, 117, 255, 0.24); }

.training-stats {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  display: flex;
  gap: 8px;
}

.training-stats span {
  display: grid;
  min-width: 57px;
  padding: 9px 10px;
  border: 1px solid rgba(143, 160, 255, 0.22);
  border-radius: 7px;
  background: rgba(4, 8, 23, 0.72);
}

.training-stats strong { color: #edf1ff; font: 800 13px var(--mono); }
.training-stats small { margin-top: 3px; color: #8fa0ff; font: 800 6px var(--mono); letter-spacing: 0.11em; }

.coach-visual > p {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 16px;
  margin: 0;
  color: #8fa0ff;
  font: 800 7px var(--mono);
  letter-spacing: 0.13em;
}

@media (max-width: 680px) {
  .coach-app-caption { left: 6%; }
  .coach-app-caption span { font-size: 6px; }
  .coach-app-caption strong { margin: 3px 0 7px; font-size: 24px; }
  .coach-app-caption small { padding-top: 7px; font-size: 5px; }
  .coach-phone { right: 9%; border-width: 3px; }
  .coach-visual { display: block; padding: 0; }
  .coach-session { top: 14px; left: 16px; width: 60px; height: 60px; }
  .coach-session strong { font-size: 11px; }
  .coach-session span { font-size: 5px; }
  .training-stats { top: 13px; right: 13px; }
  .training-stats span { min-width: 44px; padding: 6px 7px; }
  .training-stats strong { font-size: 10px; }
  .coach-visual > p { right: 13px; bottom: 10px; font-size: 5px; }
}
