/* Projeler: sürekli akan, kaydırmayla ilerleyen sabit sahne (masaüstü) — ÖNİZLEME. */

.strip-nav { display: none; }

@media (max-width: 680px) {
  .projects-grid > .project-card.is-clone { display: none !important; }
}

@media (min-width: 681px) {
  #projects.is-pinned {
    position: relative;
    padding-top: 0;
    padding-bottom: 0;
    /* Kart genişliği ekran yüksekliğine de bağlı: başlık, kartlar ve işaretler sahneye sığsın */
    --card-w: clamp(240px, min(29vw, calc((var(--pin-h, 100vh) - 400px) / 0.92)), 360px);
  }

  #projects.is-pinned > .pin-sticky {
    position: sticky;
    top: var(--pin-top, 0px);
    height: var(--pin-h, 100vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #projects.is-pinned .section-header {
    padding-top: 0;
    padding-bottom: 14px;
  }

  #projects.is-pinned .strip-viewport {
    overflow: hidden;
    /* Hover'daki yükselme ve gölgeler kesilmesin */
    padding: 18px 0 40px;
    margin: -18px 0 -40px;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  }

  #projects.is-pinned .projects-grid {
    display: flex;
    gap: 22px;
    width: max-content;
    max-width: none;
    margin: 0;
    padding: 0;
    will-change: transform;
  }

  #projects.is-pinned .project-card-image {
    aspect-ratio: 1 / 0.92;
  }

  #projects.is-pinned .projects-grid > .project-card {
    flex: 0 0 var(--card-w);
    width: var(--card-w) !important;
    grid-column: auto !important;
    justify-self: auto !important;
  }

  #projects.is-pinned .project-card.is-clone {
    animation: none !important;
    opacity: 1 !important;
  }

  /* ─── Dünya işaretleri + sayaç ─── */
  #projects.is-pinned .strip-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin-top: 16px;
  }

  .strip-marks {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .strip-mark {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: none;
    color: #b9bfc8;
    cursor: pointer;
    transition: color .3s ease, background .3s ease;
  }

  .strip-mark:hover { background: rgba(20, 24, 31, 0.05); }

  .strip-mark i {
    display: block;
    width: 10px;
    height: 10px;
    background: currentColor;
    transform: scale(.85);
    transition: transform .35s cubic-bezier(.3, 1.5, .5, 1);
  }

  .strip-mark.is-active i { transform: scale(1.45); }

  /* Her projenin kartındaki rol işaretiyle aynı şekil ve renk */
  .strip-mark[data-world="finance"].is-active { color: #c8102e; }
  .strip-mark[data-world="social"] i { clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
  .strip-mark[data-world="social"].is-active { color: #7c63d8; }
  .strip-mark[data-world="fitness"] i { border-radius: 50% 50% 50% 0; rotate: -45deg; width: 9px; height: 9px; }
  .strip-mark[data-world="fitness"].is-active { color: #2f8a5b; }
  .strip-mark[data-world="sosyobel"] i { clip-path: polygon(50% 0, 100% 45%, 100% 100%, 0 100%, 0 45%); }
  .strip-mark[data-world="sosyobel"].is-active { color: #3629b7; }
  .strip-mark[data-world="smalltalk"] i { width: 12px; height: 9px; border-radius: 5px 5px 5px 1px; }
  .strip-mark[data-world="smalltalk"].is-active { color: #d34a32; }
  .strip-mark[data-world="tomar"] i { width: 8px; height: 12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); }
  .strip-mark[data-world="tomar"].is-active { color: #b0823f; }

  .strip-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 200px;
    margin: 0;
    color: #8a929e;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
  }

  .strip-count b {
    color: var(--premium-ink, #14181f);
    font: 800 13px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    letter-spacing: .5px;
  }
}
