/* ═════════ SECTION 9 · SELECTED WORK (horizontal scroll) ═════════ */
.section9 {
  position: relative;
  overflow: hidden;
}

.s9-pin {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0;
}

.s9-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.s9-head .eyebrow {
  margin-bottom: 20px;
}

.s9-viewport {
  width: 100%;
  direction: ltr;
}

.s9-track {
  display: flex;
  width: max-content;
  gap: 20px;
  padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  will-change: transform;
}

.s9-card {
  flex-shrink: 0;
  width: clamp(280px, 30vw, 420px);
  text-decoration: none;
  color: inherit;
}

[dir="rtl"] .s9-card {
  direction: rtl;
}

.s9-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  box-shadow: var(--highlight);
  margin-bottom: 18px;
  transition: transform 0.6s var(--ease), border-color 0.4s;
}

.s9-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.s9-card:hover .s9-img {
  transform: scale(0.97);
  border-color: rgba(20, 99, 243, 0.6);
}

.s9-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.s9-tag,
.s9-status {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
}

.s9-status {
  border-color: rgba(20, 99, 243, 0.5);
  color: var(--blue-light);
}

.s9-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
}

.s9-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.s9-card--more {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border-strong);
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  transition: background 0.4s, border-color 0.4s;
}

.s9-card--more:hover {
  background: rgba(20, 99, 243, 0.1);
  border-color: var(--blue);
}

/* Mobile: native swipe instead of pinned scroll */
@media (max-width: 900px) {
  .s9-pin { min-height: 0; }

  .s9-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .s9-viewport::-webkit-scrollbar { display: none; }
  .s9-card { scroll-snap-align: center; width: 80vw; }
  .s9-card--more { min-height: 300px; }
}
