/* ═══════════════════════════════════════════════════════════════
   PREMIUM PROJECTS PAGE — IMPERIAL DARK UI
   Obsidian base · Aurelian Gold accents · Space Grotesk headings
   ═══════════════════════════════════════════════════════════════ */

/* Main Container */
.premium-main {
  min-height: 100vh;
}

.premium-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ═══════════════════════════════════════════════════════════════
   HERO SECTION - Refined and Spacious
   ═══════════════════════════════════════════════════════════════ */

.premium-hero {
  padding: clamp(4rem, 10vh, 8rem) 0 clamp(3rem, 6vh, 5rem);
}

.premium-hero-content {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vh, 4rem);
}

.premium-hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ivory-stone);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.premium-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--steel-slate);
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Stats - Elegant and Minimal */
.premium-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
}

.premium-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.premium-stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--aurelian-gold);
  line-height: 1;
}

.premium-stat-label {
  font-size: clamp(0.75rem, 1.5vw, 0.875rem);
  color: var(--steel-slate);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.premium-stat-divider {
  width: 1px;
  height: 2rem;
  background: rgba(200,164,77,0.2);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   CONTROLS SECTION - Clean and Organized
   ═══════════════════════════════════════════════════════════════ */

.premium-controls {
  position: relative;
  top: auto;
  z-index: 20;
  padding: clamp(1.25rem, 2.5vh, 1.75rem) 0 1rem;
  background: rgba(11, 13, 18, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(200,164,77,0.1);
  transition: padding 0.28s ease, background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.premium-controls.scrolled {
  padding: 0.5rem 0 0.35rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.premium-controls.scrolled .premium-search {
  margin-bottom: 0.55rem;
}

.premium-controls.scrolled .premium-search-input {
  min-height: 40px;
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.premium-controls.scrolled .premium-filters-row {
  gap: 0.45rem;
}

.premium-controls.scrolled .premium-filter,
.premium-controls.scrolled .premium-skill-filter,
.premium-controls.scrolled .premium-view-btn {
  min-height: 36px;
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.premium-controls.scrolled .premium-controls-bottom {
  margin-top: 0.55rem;
}

.premium-controls.scrolled .premium-filter-label {
  font-size: 0.62rem;
}

.premium-controls.scrolled .premium-results-count {
  font-size: 0.76rem;
}

/* Search - Sleek and Integrated */
.premium-search {
  position: relative;
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.premium-search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--neutral-500);
  pointer-events: none;
}

.premium-search-input {
  width: 100%;
  padding: 1rem 1.25rem 1rem 3.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  color: var(--ivory-stone);
  font-size: 1rem;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.premium-search-input::placeholder {
  color: var(--steel-slate);
}

.premium-search-input:focus {
  outline: none;
  background: rgba(255,255,255,0.04);
  border-color: rgba(200,164,77,0.35);
  box-shadow: 0 0 0 3px rgba(200,164,77,0.07);
}

/* Filters - Wrap on All Screens */
.premium-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.premium-filter {
  padding: 0.625rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: var(--steel-slate);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.premium-filter:hover {
  background: rgba(200,164,77,0.06);
  border-color: rgba(200,164,77,0.25);
  color: var(--ivory-stone);
}

.premium-filter.active {
  background: rgba(200,164,77,0.1);
  border-color: rgba(200,164,77,0.35);
  color: var(--aurelian-gold);
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS GRID - Premium Cards
   ═══════════════════════════════════════════════════════════════ */

.premium-projects {
  padding: clamp(3rem, 6vh, 5rem) 0 clamp(4rem, 8vh, 6rem);
}

.premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Project Card - Imperial Dark */
.premium-card {
  background: var(--deep-navy);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.premium-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--aurelian-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200,164,77,0.2);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4), 0 0 20px rgba(200,164,77,0.08);
}

.premium-card:hover::before { opacity: 1; }

/* Card Image */
.premium-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, rgba(139,92,246,0.08) 100%);
  overflow: hidden;
}

.premium-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-card:hover .premium-card-image img {
  transform: scale(1.04);
}

/* Card Badge */
.premium-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem 0.875rem;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(12px);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  letter-spacing: 0.03em;
}

/* Card Content */
.premium-card-content {
  padding: clamp(1.5rem, 3vw, 2rem);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.premium-card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 0.75rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.premium-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--steel-slate);
}

.premium-card-year {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.premium-card-year svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

.premium-card-live {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--primary-600);
}

.premium-card-live svg {
  width: 14px;
  height: 14px;
}

.premium-card-description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--steel-slate);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.premium-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.premium-card-tag {
  padding: 0.375rem 0.75rem;
  background: rgba(91,127,255,0.08);
  border: 1px solid rgba(91,127,255,0.18);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--cynosure-blue);
}

.premium-card-more {
  padding: 0.375rem 0.75rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--steel-slate);
}

/* Card Footer */
.premium-card-footer {
  padding: 1rem clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.premium-card-action {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--aurelian-gold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}

.premium-card:hover .premium-card-action { gap: 0.75rem; }

.premium-card-action svg { width: 16px; height: 16px; }

.premium-card-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--steel-slate);
  text-decoration: none;
  transition: color 0.2s ease;
}

.premium-card-link:hover { color: var(--ivory-stone); border-color: var(--ivory-stone); }

/* ═══════════════════════════════════════════════════════════════
   MODAL - Refined and Elegant
   ═══════════════════════════════════════════════════════════════ */

.premium-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.premium-modal.active {
  display: flex;
}

.premium-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.premium-modal-container {
  position: relative;
  background: var(--deep-navy);
  border: 1px solid rgba(200,164,77,0.15);
  border-radius: 20px;
  max-width: 900px;
  width: 100%;
  height: 85vh;
  max-height: 800px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.7);
  animation: modalSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.premium-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--ivory-stone);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}

.premium-modal-close svg { width: 20px; height: 20px; }

.premium-modal-close:hover {
  background: rgba(200,164,77,0.12);
  border-color: rgba(200,164,77,0.3);
  transform: scale(1.05);
}

.premium-modal-content {
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Modal Image Gallery */
.premium-modal-gallery {
  position: relative;
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
}

.premium-gallery-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.premium-gallery-track {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.premium-gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.premium-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, rgba(139,92,246,0.08) 100%);
  font-size: 4rem;
  opacity: 0.3;
}

/* Gallery Navigation Arrows */
.premium-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 2;
}

.premium-gallery-nav:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.premium-gallery-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.premium-gallery-nav-prev {
  left: 1rem;
}

.premium-gallery-nav-next {
  right: 1rem;
}

.premium-gallery-nav svg {
  width: 20px;
  height: 20px;
}

/* Gallery Dots */
.premium-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem 0;
}

.premium-gallery-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  padding: 0;
}

.premium-gallery-dot.active {
  background: var(--primary-600);
  width: 16px;
  border-radius: 2px;
}

.premium-gallery-dot:hover:not(.active) {
  background: rgba(255,255,255,0.6);
}

/* Modal Sections */
.premium-modal-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--deep-navy);
  padding: clamp(2rem, 5vw, 3rem);
  padding-bottom: 1.5rem;
  padding-right: 5rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.premium-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
}

.premium-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  padding-right: 3rem;
}

.premium-modal-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.premium-modal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--steel-slate);
}

.premium-modal-meta-item svg { width: 16px; height: 16px; }

.premium-modal-description {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--steel-slate);
  margin-bottom: 2.5rem;
}

.premium-modal-section { margin-bottom: 2.5rem; }

.premium-modal-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.premium-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.premium-modal-skill {
  padding: 0.5rem 1rem;
  background: rgba(91,127,255,0.08);
  border: 1px solid rgba(91,127,255,0.18);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--cynosure-blue);
}

.premium-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background: var(--aurelian-gold);
  color: var(--obsidian);
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.premium-modal-cta:hover {
  background: #d4b060;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(200,164,77,0.3);
  color: var(--obsidian);
}

.premium-modal-cta svg { width: 18px; height: 18px; }

/* Empty State */
.premium-empty {
  text-align: center;
  padding: clamp(4rem, 8vh, 6rem) 2rem;
  color: var(--steel-slate);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.premium-empty-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 0.5rem;
}

.premium-empty-text {
  font-size: 1rem;
  color: var(--steel-slate);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  /* Hero - Refined */
  .premium-hero {
    padding: 1.5rem 0 1.25rem;
  }
  
  .premium-hero-title {
    font-size: 1.875rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
  }
  
  .premium-hero-subtitle {
    font-size: 0.875rem;
    opacity: 0.7;
    font-weight: 400;
  }
  
  /* Stats - Minimal */
  .premium-stats {
    gap: 1rem;
    padding: 1rem 0 1.25rem;
  }
  
  .premium-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
  }
  
  .premium-stat-label {
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    opacity: 0.65;
  }
  
  .premium-stat-divider {
    height: 1.5rem;
    opacity: 0.25;
  }
  
  /* Controls - Clean */
  .premium-controls {
    padding: 1.05rem 0 0.8rem;
    margin-bottom: 0;
  }
  
  .premium-controls.scrolled {
    padding: 0.8rem 0 0.65rem;
  }
  
  /* Search - Refined */
  .premium-search {
    margin-bottom: 1rem;
  }
  
  .premium-search-input {
    padding: 0.875rem 1rem 0.875rem 3rem;
    font-size: 0.9375rem;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    font-weight: 400;
  }
  
  .premium-search-input:focus {
    background: rgba(255,255,255,0.04);
    border-color: rgba(96,165,250,0.3);
  }
  
  .premium-search-icon {
    left: 1rem;
    width: 18px;
    height: 18px;
    opacity: 0.6;
  }
  
  /* Filters - Proper Scroll with Strong Visual Treatment */
  .premium-filters {
    gap: 0.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    padding-right: 3rem;
    position: relative;
    margin-right: -1rem;
  }
  
  .premium-filters::-webkit-scrollbar {
    display: none;
  }
  
  /* Strong scroll fade indicator */
  .premium-filters::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0.5rem;
    width: 4rem;
    background: linear-gradient(to left, var(--neutral-50) 30%, transparent);
    pointer-events: none;
    z-index: 1;
  }
  
  .premium-filter {
    padding: 0.625rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  
  .premium-filter:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.8);
  }
  
  .premium-filter.active {
    background: rgba(96,165,250,0.15);
    border-color: rgba(96,165,250,0.35);
    color: var(--primary-500);
  }
  
  /* Grid - Optimized */
  .premium-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  /* Projects - Breathing Room */
  .premium-projects {
    padding: 1.25rem 0 calc(1.5rem + 70px);
  }
  
  /* Cards - Premium Horizontal Composition */
  .premium-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 1rem;
    padding: 1rem;
    min-height: 0;
    border-radius: 14px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
    transition: all 0.2s ease;
  }
  
  .premium-card:active {
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.12);
  }
  
  /* Card Image - Real Preview Feel */
  .premium-card-image {
    grid-column: 1;
    grid-row: 1;
    aspect-ratio: 9/6;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(96,165,250,0.08) 0%, rgba(139,92,246,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.06);
  }
  
  .premium-card-image img {
    opacity: 0.95;
  }
  
  .premium-card-badge {
    position: absolute;
    top: 0.625rem;
    left: 0.625rem;
    right: auto;
    padding: 0.375rem 0.625rem;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    border-radius: 6px;
    backdrop-filter: blur(16px);
    background: rgba(0,0,0,0.7);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
  }
  
  /* Card Content - Strong Hierarchy */
  .premium-card-content {
    grid-column: 2;
    grid-row: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    min-width: 0;
  }
  
  /* Title Row with Visit Link */
  .premium-card-title {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--neutral-900);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  /* Meta Row with Visit Link */
  .premium-card-meta {
    font-size: 0.75rem;
    margin-bottom: 0;
    gap: 0.625rem;
    opacity: 0.65;
    font-weight: 600;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .premium-card-meta svg {
    width: 12px;
    height: 12px;
    opacity: 0.8;
  }
  
  .premium-card-live {
    color: var(--primary-500);
    opacity: 1;
  }
  
  /* Visit Link - Inline with Meta */
  .premium-card-link {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 0.75rem;
    background: rgba(96,165,250,0.15);
    border: 1px solid rgba(96,165,250,0.3);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary-500);
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.01em;
    margin-left: auto;
  }
  
  .premium-card-link:active {
    background: rgba(96,165,250,0.2);
    border-color: rgba(96,165,250,0.4);
    transform: scale(0.96);
  }
  
  /* Description - Concise and Readable */
  .premium-card-description {
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
    font-weight: 400;
  }
  
  /* Tags - Minimal but Visible (Max 2) */
  .premium-card-tags {
    gap: 0.5rem;
    margin-top: auto;
    flex-wrap: wrap;
  }
  
  .premium-card-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: rgba(96,165,250,0.1);
    border: 1px solid rgba(96,165,250,0.2);
    border-radius: 6px;
    color: var(--primary-500);
  }
  
  .premium-card-more {
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
  }
  
  /* Card Footer - Hidden on Mobile */
  .premium-card-footer {
    display: none;
  }
  
  /* Hide View Details on Mobile */
  .premium-card-action {
    display: none;
  }
  
  /* Mobile Bottom Nav - Imperial Dark */
  .mobile-bottom-nav {
    background: rgba(11, 13, 18, 0.98);
    backdrop-filter: blur(24px) saturate(180%);
    border-top: 1px solid rgba(200, 164, 77, 0.12);
    padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 rgba(200,164,77,0.06), 0 -8px 20px rgba(0, 0, 0, 0.4);
  }

  .mobile-nav-link {
    color: var(--steel-slate);
  }

  .mobile-nav-link[aria-current="page"] {
    color: var(--ivory-stone);
  }

  .mobile-nav-link[aria-current="page"] .nav-icon {
    stroke: var(--aurelian-gold);
    opacity: 1;
  }
  
  /* Modal - Mobile Optimized */
  .premium-modal {
    padding: 0;
    align-items: flex-end;
  }
  
  .premium-modal-container {
    max-width: 100%;
    height: 90vh;
    max-height: 90vh;
    border-radius: 20px 20px 0 0;
  }
  
  .premium-modal-close {
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
  }
  
  .premium-modal-header {
    padding: 1.75rem 1.25rem 1.25rem;
    padding-right: 4.5rem;
  }
  
  .premium-modal-body {
    padding: 1.25rem;
    padding-bottom: calc(1.5rem + 70px);
  }
  
  .premium-modal-title {
    font-size: 1.75rem;
    line-height: 1.25;
  }
  
  .premium-modal-description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .premium-modal-meta-item {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
  }
  
  .premium-gallery-nav {
    width: 36px;
    height: 36px;
  }
  
  .premium-gallery-nav-prev {
    left: 0.75rem;
  }
  
  .premium-gallery-nav-next {
    right: 0.75rem;
  }
}

/* Very Small Screens */
@media (max-width: 480px) {
  .premium-hero-title {
    font-size: 2rem;
  }
  
  .premium-stats {
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .premium-stat-divider {
    display: none;
  }
}


/* ═══════════════════════════════════════════════════════════════
   FEATURED / START HERE SECTION
   ═══════════════════════════════════════════════════════════════ */

.premium-featured {
  padding: clamp(2rem, 4vh, 3rem) 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.premium-featured-header {
  margin-bottom: clamp(1.5rem, 3vh, 2.5rem);
}

.premium-featured-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 0.5rem;
}

.premium-featured-subtitle {
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  color: var(--steel-slate);
  max-width: 600px;
}

.premium-featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.premium-featured-card {
  background: var(--deep-navy);
  border: 1px solid rgba(200,164,77,0.1);
  border-radius: 14px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
}

.premium-featured-card:hover {
  transform: translateY(-2px);
  border-color: rgba(200,164,77,0.25);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.premium-featured-card-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.07);
}

.premium-featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.premium-featured-card-content h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 0.25rem;
}

.premium-featured-card-content p {
  font-size: 0.8125rem;
  color: var(--steel-slate);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-featured-card-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-top: 0.5rem;
}

.premium-featured-card-tech span {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  background: rgba(91,127,255,0.08);
  border: 1px solid rgba(91,127,255,0.18);
  border-radius: 4px;
  color: var(--cynosure-blue);
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   SKILL FILTERS & VIEW TOGGLE
   ═══════════════════════════════════════════════════════════════ */

.premium-filters-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.premium-filter-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--aurelian-gold);
  white-space: nowrap;
}

.premium-results-count {
  font-size: 0.875rem;
  color: var(--steel-slate);
}

.premium-skill-filter {
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: var(--steel-slate);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.premium-skill-filter:hover {
  background: rgba(91,127,255,0.06);
  border-color: rgba(91,127,255,0.2);
  color: var(--cynosure-blue);
}

.premium-skill-filter.active {
  background: rgba(91,127,255,0.1);
  border-color: rgba(91,127,255,0.3);
  color: var(--cynosure-blue);
}

.premium-view-toggle {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.premium-view-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  color: var(--steel-slate);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.premium-view-btn:hover {
  background: rgba(255,255,255,0.04);
  color: var(--ivory-stone);
}

.premium-view-btn.active {
  background: rgba(200,164,77,0.1);
  border-color: rgba(200,164,77,0.3);
  color: var(--aurelian-gold);
}

/* ═══════════════════════════════════════════════════════════════
   TIMELINE VIEW
   ═══════════════════════════════════════════════════════════════ */

.premium-timeline {
  position: relative;
  padding-left: 2rem;
}

.premium-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(200,164,77,0.15);
}

.timeline-year-group { margin-bottom: 2.5rem; }

.timeline-year-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--aurelian-gold);
  margin-bottom: 1rem;
  position: relative;
}

.timeline-year-label::before {
  content: '';
  position: absolute;
  left: -2.375rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aurelian-gold);
  border: 2px solid var(--obsidian);
  box-shadow: 0 0 8px rgba(200,164,77,0.4);
}

.timeline-year-items { display: flex; flex-direction: column; gap: 0.75rem; }

.timeline-item {
  background: var(--deep-navy);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  display: flex;
  gap: 1rem;
}

.timeline-item-dot {
  position: absolute;
  left: -1.625rem;
  top: 1.5rem;
  width: 6px;
  height: 0px;
  border-radius: 50%;
  flex-shrink: 0;
}

.timeline-item:hover {
  border-color: rgba(200,164,77,0.2);
  transform: translateX(4px);
}

.timeline-item-content { flex: 1; min-width: 0; }

.timeline-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.375rem;
}

.timeline-item-type {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
}

.timeline-item-live {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #3DAA7A;
}

.timeline-item-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ivory-stone);
  margin-bottom: 0.25rem;
}

.timeline-item-desc {
  font-size: 0.8125rem;
  color: var(--steel-slate);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.timeline-item-skills {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
}

.timeline-item-skills span {
  font-size: 0.6875rem;
  padding: 0.125rem 0.5rem;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 4px;
  color: var(--primary-600);
  font-weight: 500;
}

.timeline-item-more {
  color: var(--neutral-500) !important;
  background: transparent !important;
  border-color: rgba(255,255,255,0.08) !important;
}

.timeline-item-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.03);
}

.timeline-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════════
   CASE STUDY MODAL ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════ */

.premium-modal-case-study {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.premium-case-study-item {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.25rem;
}

.premium-case-study-item h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.premium-case-study-item p {
  font-size: 0.9rem;
  color: var(--neutral-800);
  line-height: 1.5;
  margin: 0;
}

/* Architecture Diagram */
.premium-architecture {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.premium-architecture h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.architecture-flow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.arch-node {
  padding: 0.625rem 1rem;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.2);
  border-radius: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-600);
  text-align: center;
}

.arch-arrow {
  color: var(--neutral-500);
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .premium-featured-grid {
    grid-template-columns: 1fr;
  }

  .premium-filters-row {
    gap: 0.875rem;
  }

  .premium-filter-label {
    width: 100%;
    margin-bottom: 0.125rem;
  }

  #typeFilters,
  #skillFilters {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    padding-bottom: 0.25rem;
    margin-right: 0;
    padding-right: 1rem;
  }

  #typeFilters::-webkit-scrollbar,
  #skillFilters::-webkit-scrollbar { display: none; }

  .premium-controls-bottom {
    align-items: stretch;
    gap: 0.875rem;
  }

  .premium-results-count {
    order: 2;
  }

  .premium-view-toggle {
    margin-top: 0;
    width: 100%;
  }

  .premium-view-btn {
    flex: 1;
    justify-content: center;
  }

  .premium-modal-case-study {
    grid-template-columns: 1fr;
  }

  .architecture-flow {
    flex-direction: column;
  }

  .arch-arrow {
    transform: rotate(90deg);
  }

  .timeline-item {
    flex-direction: column;
  }

  .timeline-item-thumb {
    width: 100%;
    height: 120px;
    order: -1;
  }

  .premium-timeline {
    padding-left: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   COLOR-CODED FILTER ACTIVE STATES
   ══════════════════════════════════════════════════════════════ */

.premium-filter[data-filter="work"].active {
  background: rgba(16,185,129,0.1);
  border-color: rgba(16,185,129,0.3);
  color: #34d399;
}

.premium-filter[data-filter="start up"].active {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.3);
  color: #fb923c;
}

.premium-filter[data-filter="university"].active {
  background: rgba(59,130,246,0.1);
  border-color: rgba(59,130,246,0.3);
  color: #60a5fa;
}

.premium-filter[data-filter="personal"].active {
  background: rgba(139,92,246,0.1);
  border-color: rgba(139,92,246,0.3);
  color: #a78bfa;
}

/* Filter label pill */
.premium-filter-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--neutral-500);
  flex-shrink: 0;
  margin-right: 0.125rem;
  align-self: center;
}

/* Skill filter — rounder pills, slightly smaller */
.premium-skill-filter {
  border-radius: 100px;
  font-size: 0.7875rem;
}

/* Results count */
.premium-results-count {
  font-size: 0.8125rem;
  color: var(--neutral-500);
  font-weight: 500;
}

/* Controls bottom row */
.premium-controls-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════
   FEATURED CASE STUDY — Editorial spotlight card
   ══════════════════════════════════════════════════════════════ */

.premium-case-study {
  padding: 3rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.premium-case-study-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.premium-case-study-label-text {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-600);
  white-space: nowrap;
}

.premium-case-study-label-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.06);
}

.premium-case-study-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  position: relative;
  min-height: 360px;
  cursor: pointer;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.premium-case-study-card:hover {
  border-color: rgba(255,255,255,0.16);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.premium-case-study-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(96,165,250,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.premium-case-study-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.02);
  border-right: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
  min-height: 300px;
}

.premium-case-study-visual img {
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.premium-case-study-card:hover .premium-case-study-visual img {
  transform: scale(1.07);
}

/* Placeholder inside the case study visual */
.premium-case-study-visual .img-placeholder {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
  min-height: unset;
}

.premium-case-study-content {
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.premium-case-study-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.premium-case-study-type-badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 5px;
  color: #fff;
}

.premium-case-study-year {
  font-size: 0.75rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.premium-case-study-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--neutral-900);
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
}

.premium-case-study-desc {
  font-size: 0.9375rem;
  color: var(--neutral-700);
  line-height: 1.65;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.premium-case-study-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.premium-case-study-skill-tag {
  font-size: 0.6875rem;
  padding: 0.25rem 0.625rem;
  background: rgba(96,165,250,0.08);
  border: 1px solid rgba(96,165,250,0.15);
  border-radius: 100px;
  color: var(--primary-600);
  font-weight: 500;
}

.premium-case-study-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-600);
  transition: gap 0.2s ease;
}

.premium-case-study-card:hover .premium-case-study-cta {
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .premium-case-study-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .premium-case-study-visual {
    min-height: 220px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .premium-case-study-content {
    padding: 1.75rem 2rem;
  }
}

@media (max-width: 640px) {
  .premium-case-study-content {
    padding: 1.5rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   IMPROVED VIEW TOGGLE
   ══════════════════════════════════════════════════════════════ */

.premium-view-toggle {
  display: flex;
  gap: 0.25rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 0.25rem;
}

.premium-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.875rem;
  background: transparent;
  border: none;
  border-radius: 7px;
  color: var(--neutral-600);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.premium-view-btn.active {
  background: rgba(255,255,255,0.07);
  color: var(--neutral-900);
}

.premium-view-btn:hover:not(.active) {
  color: var(--neutral-800);
}

/* ══════════════════════════════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════════════════════════════ */

.premium-empty-state {
  grid-column: 1 / -1;
  padding: 5rem 2rem;
  text-align: center;
  color: var(--neutral-600);
}

.premium-empty-state svg {
  opacity: 0.2;
  margin-bottom: 1rem;
}

.premium-empty-state h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--neutral-700);
  margin-bottom: 0.5rem;
}

.premium-empty-state p {
  font-size: 0.875rem;
  color: var(--neutral-500);
}
/* Focused cleanup overrides for projects page */
.premium-main {
  background:
    radial-gradient(ellipse 60% 50% at 70% 20%, rgba(18,26,43,0.6), transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(200,164,77,0.03), transparent 60%),
    var(--obsidian);
  color: var(--ivory-stone);
}

.premium-hero,
.premium-featured,
.premium-projects,
.premium-case-study {
  background: transparent;
}

.premium-controls {
  padding: 1.1rem 0 0.95rem;
  background: rgba(11, 13, 18, 0.92);
  border-top: 1px solid rgba(200,164,77,0.06);
  border-bottom: 1px solid rgba(200,164,77,0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.premium-search-input,
.premium-filter,
.premium-skill-filter,
.premium-view-btn {
  min-height: 44px;
  font-family: inherit;
}

.premium-search-input {
  background: rgba(18, 26, 43, 0.88);
  border: 1px solid rgba(200,164,77,0.12);
  color: var(--ivory-stone);
}

.premium-search-input::placeholder,
.premium-results-count,
.premium-filter-label {
  color: var(--steel-slate);
}

.premium-filter,
.premium-skill-filter,
.premium-view-btn {
  background: rgba(18, 26, 43, 0.88);
  border: 1px solid rgba(200,164,77,0.1);
  color: var(--steel-slate);
  box-shadow: none;
}

.premium-filter:hover,
.premium-skill-filter:hover,
.premium-view-btn:hover {
  background: rgba(18, 26, 43, 0.96);
  border-color: rgba(200,164,77,0.25);
  color: var(--ivory-stone);
}

.premium-filter.active,
.premium-view-btn.active {
  color: var(--ivory-stone);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.premium-skill-filter.active {
  background: rgba(91,127,255,0.12);
  border-color: rgba(91,127,255,0.35);
  color: var(--cynosure-blue);
}

.premium-filter[data-filter="all"].active {
  background: rgba(91,127,255,0.15);
  border-color: rgba(91,127,255,0.35);
}

.premium-filter[data-filter="work"].active {
  background: rgba(16,185,129,0.12);
  border-color: rgba(52,211,153,0.35);
}

.premium-filter[data-filter="startup"].active {
  background: rgba(249,115,22,0.12);
  border-color: rgba(251,146,60,0.35);
}

.premium-filter[data-filter="university"].active {
  background: rgba(59,130,246,0.12);
  border-color: rgba(96,165,250,0.35);
}

.premium-filter[data-filter="personal"].active {
  background: rgba(139,92,246,0.12);
  border-color: rgba(167,139,250,0.35);
}

.premium-controls-bottom {
  margin-top: 1rem;
}

.premium-controls.scrolled .premium-filters-row,
.premium-controls.scrolled .premium-controls-bottom {
  opacity: 0.96;
}

.premium-view-toggle {
  display: inline-flex;
  padding: 0.25rem;
  background: rgba(18,26,43,0.9);
  border: 1px solid rgba(200,164,77,0.1);
  border-radius: 14px;
}

.premium-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--deep-navy);
  border: 1px solid rgba(200,164,77,0.08);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.premium-card-content {
  padding: 1.125rem 1.125rem 1.25rem;
  gap: 0.75rem;
}

.premium-card-title,
.premium-featured-title,
.premium-case-study-title,
.timeline-year-label,
.timeline-item-title {
  color: var(--ivory-stone);
}

.premium-card-description,
.premium-featured-card-content p,
.premium-case-study-desc,
.timeline-item-desc {
  color: var(--steel-slate);
}

.premium-card-meta,
.premium-card-year,
.premium-case-study-year {
  color: var(--steel-slate);
}

.premium-card-tag,
.timeline-item-skills span,
.premium-featured-card-tech span {
  background: rgba(91,127,255,0.08);
  border: 1px solid rgba(91,127,255,0.18);
  color: var(--cynosure-blue);
}

.premium-card-more {
  color: var(--steel-slate);
  font-size: 0.8125rem;
  font-weight: 600;
}

.premium-card-link {
  align-self: center;
  background: rgba(91,127,255,0.1);
  border: 1px solid var(--aurelian-gold);
  padding: 4px 8px;
  color: var(--aurelian-gold);
  border-radius: 8px;
  transition: border-radius 0.2s ease;
}

.premium-featured-card,
.timeline-item,
.premium-case-study-card {
  background: var(--deep-navy);
  border: 1px solid rgba(200,164,77,0.08);
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.premium-empty-state {
  border: 1px dashed rgba(200,164,77,0.2);
  border-radius: 18px;
  padding: 2rem;
  text-align: center;
  color: var(--steel-slate);
  background: rgba(18,26,43,0.5);
}

@media (max-width: 768px) {
  .premium-hero {
    padding: 2.75rem 0 1.5rem;
  }

  .premium-controls,
  .premium-controls.scrolled {
    top: auto;
    padding: 0.95rem 0 0.7rem;
  }

  .premium-controls.scrolled .premium-search {
    margin-bottom: 0.5rem;
  }

  .premium-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    justify-items: start;
    padding: 0;
  }

  .premium-stat-divider {
    display: none;
  }

  .premium-featured {
    padding-top: 1.25rem;
  }

  .premium-featured-grid {
    display: flex;
    overflow-x: auto;
    gap: 0.875rem;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
  }

  .premium-featured-card {
    min-width: 280px;
    scroll-snap-align: start;
  }

  .premium-card {
    border-radius: 18px;
  }

  .premium-card-image {
    aspect-ratio: 16 / 10;
  }

  .premium-filters::after {
    display: none;
  }

  .premium-filter,
  .premium-skill-filter {
    padding: 0.7rem 0.95rem;
    border-radius: 12px;
    font-size: 0.78rem;
  }

  .premium-controls {
    top: 60px;
  }

  .premium-projects {
    padding: 1.25rem 0 calc(1.5rem + 72px);
  }
}
