/* Work index page styles */

.work-index-hero {
    padding-top: clamp(240px, 28vh, 320px);
    padding-bottom: clamp(48px, 6vw, 64px);
}

.work-index-grid-section {
    padding: clamp(64px, 8vw, 96px) 0;
}

.work-index-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(64px, 8vw, 96px) clamp(32px, 4vw, 48px);
}

.work-index-item {
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-index-image {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    margin-bottom: 1.25rem;
    position: relative;
}

.work-index-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 1 !important;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.work-index-item:hover .work-index-image img {
    transform: scale(1.03);
    opacity: 0.92 !important;
}

/* Hover overlay for work index grid cards */
.work-index-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
}

/* Enhanced glassmorphic pill */
.work-index-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--pill-text);

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 20px;
  border-radius: 24px;

  background: var(--pill-bg);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);

  border: 1.5px solid var(--pill-border);

  position: relative;
  will-change: transform;
  cursor: pointer;

  user-select: none;
  -webkit-user-select: none;
}

/* Pill dot with glow */
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pill-dot);
  box-shadow: 0 0 8px var(--pill-dot-glow);
  flex-shrink: 0;
  will-change: transform;
}

/* Split text container */
.pill-text {
  display: inline-block;
  white-space: nowrap;
}

/* Individual character spans (injected by JS) */
.pill-char {
  display: inline-block;
  will-change: transform, opacity;
}

/* Force white text and cyan accent on dark overlay (both themes) */
.work-index-overlay .work-index-pill {
  color: #ffffff;
  border-color: #00ffd5;
}

.work-index-overlay .pill-dot {
  background: #00ffd5;
  box-shadow: 0 0 8px rgba(0, 255, 213, 0.6);
}

.work-index-title {
    font-size: clamp(20px, 1.5vw, 24px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.work-index-descriptor {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .work-index-hero {
        padding-top: 220px;
    }

    .work-index-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}
