/* =========================================================
   PULSE // BREAKOUT — Sinematik Nabız Reveal
   Namespace: .wcs-breakout
   ========================================================= */

html, body { margin: 0; padding: 0; }

.wcs-breakout {
  --wcs-accent: #ff4d3d;
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  max-height: 1300px;
  overflow: hidden;
  background: #07080a;
  color: #f4efe8;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
}

.wcs-breakout * {
  box-sizing: border-box;
}

.wcs-breakout__stage {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.wcs-breakout__idle {
  display: contents;
}
.wcs-breakout__idle img,
.wcs-breakout__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wcs-breakout__idle img {
  transition: opacity 1s ease 0.15s;
  z-index: 2;
}
.wcs-breakout__video {
  z-index: 1;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.wcs-breakout.is-active .wcs-breakout__video {
  opacity: 1;
}
.wcs-breakout.is-active .wcs-breakout__idle img {
  opacity: 0;
}

/* ---------- Nabız (ECG) çizgisi ---------- */
.wcs-breakout__ecg {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.wcs-breakout__ecg path {
  fill: none;
  stroke: var(--wcs-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 77, 61, 0.65));
  transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}
.wcs-breakout.is-active .wcs-breakout__ecg path {
  opacity: 0.9;
  stroke-dashoffset: 0 !important;
}

.wcs-breakout__scrim {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(7, 8, 10, 0.35) 0%,
    rgba(7, 8, 10, 0) 24%,
    rgba(7, 8, 10, 0.1) 55%,
    rgba(7, 8, 10, 0.86) 100%
  ),
  linear-gradient(
    90deg,
    rgba(7, 8, 10, 0.7) 0%,
    rgba(7, 8, 10, 0.2) 34%,
    rgba(7, 8, 10, 0) 58%
  );
}

.wcs-breakout__content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(28px, 6vw, 88px);
  max-width: 640px;
}

.wcs-breakout__kicker {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--wcs-accent);
  margin-bottom: 16px;
}

.wcs-breakout__title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  margin: 0 0 14px;
  line-height: 1.08;
}

.wcs-breakout__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(244, 239, 232, 0.75);
  max-width: 46ch;
  margin: 0 0 30px;
}

.wcs-breakout__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.wcs-breakout__stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.wcs-breakout__stat-value {
  font-family: Georgia, serif;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--wcs-accent);
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.wcs-breakout__stat-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(244, 239, 232, 0.55);
  max-width: 16ch;
}

@media (max-width: 760px) {
  .wcs-breakout__content {
    padding-bottom: clamp(32px, 8vh, 64px);
  }
  .wcs-breakout__stats {
    gap: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wcs-breakout__ecg path {
    transition: opacity 0.4s ease;
  }
  .wcs-breakout__idle img,
  .wcs-breakout__video {
    transition-duration: 0.3s;
  }
}
