.works-hero {
  position: relative;
  padding-top: 6rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .works-hero { padding-top: 8rem; padding-bottom: 4rem; }
}

@media (min-width: 1024px) {
  .works-hero { padding-top: 10rem; padding-bottom: 5rem; }
}

.works-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.works-hero-bg .orb-1 {
  top: 25%;
  left: 25%;
  width: 300px;
  height: 300px;
}

@media (min-width: 640px) {
  .works-hero-bg .orb-1 { width: 400px; height: 400px; }
}

@media (min-width: 1024px) {
  .works-hero-bg .orb-1 { width: 500px; height: 500px; }
}

.works-hero-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .works-hero-grid { gap: 2rem; margin-bottom: 4rem; }
}

@media (min-width: 1024px) {
  .works-hero-grid { grid-template-columns: 2fr 1fr; gap: 3rem; margin-bottom: 5rem; }
}

.works-hero-title {
  font-size: clamp(2.5rem, 8vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--text);
}

.works-hero-desc {
  display: flex;
  align-items: flex-end;
}

.works-hero-desc p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .works-hero-desc p { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .works-hero-desc p { font-size: 1.125rem; }
}

.works-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .works-filters { gap: 0.75rem; }
}

@media (min-width: 1024px) {
  .works-filters { gap: 1rem; }
}

.filter-btn {
  padding: 0.5rem 1rem;
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--text-muted);
  background: var(--border);
}

@media (min-width: 640px) {
  .filter-btn { padding: 0.625rem 1.25rem; font-size: 0.75rem; letter-spacing: 0.2em; }
}

@media (min-width: 1024px) {
  .filter-btn { padding: 0.75rem 1.5rem; }
}

.filter-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 15%, transparent);
}

.filter-btn.active {
  color: black;
  background: var(--primary);
}

.works-content {
  padding-bottom: 4rem;
}

@media (min-width: 640px) {
  .works-content { padding-bottom: 6rem; }
}

@media (min-width: 1024px) {
  .works-content { padding-bottom: 8rem; }
}

.featured-project {
  position: relative;
  height: 50vh;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .featured-project { height: 60vh; border-radius: 1.5rem; margin-bottom: 5rem; }
}

@media (min-width: 1024px) {
  .featured-project { height: 70vh; margin-bottom: 8rem; }
}

.featured-project-image {
  position: absolute;
  inset: 0;
}

.featured-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.featured-project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.featured-project:hover .featured-project-image img {
  transform: scale(1.05);
}

.featured-project:hover .featured-project-image video {
  transform: scale(1.05);
}

.featured-project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg), rgba(10,10,10,0.5), transparent);
}

.featured-project::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 77, 0, 0.1);
  mix-blend-mode: multiply;
  opacity: 0;
  transition: opacity 0.5s;
}

.featured-project:hover::after {
  opacity: 1;
}

.featured-project-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .featured-project-content { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .featured-project-content { padding: 4rem; }
}

.featured-project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.featured-label {
  color: var(--accent);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .featured-label { font-size: 0.75rem; letter-spacing: 0.3em; }
}

.featured-view {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .featured-view { width: 64px; height: 64px; }
}

@media (min-width: 1024px) {
  .featured-view { width: 80px; height: 80px; }
}

.featured-view:hover {
  transform: scale(1.1);
  background: var(--primary);
  border-color: var(--primary);
}

.featured-title {
  font-size: clamp(2rem, 8vw, 6rem);
  line-height: 0.9;
  color: var(--text);
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .featured-title { margin-bottom: 1.5rem; }
}

.featured-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 28rem;
}

@media (min-width: 640px) {
  .featured-desc { font-size: 1rem; }
}

@media (min-width: 1024px) {
  .featured-desc { font-size: 1.125rem; }
}

.projects-list {
  display: flex;
  flex-direction: column;
}

.project-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .project-row {
    display: grid;
    grid-template-columns: auto 1fr 150px auto auto auto;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;
  }
}

@media (min-width: 1024px) {
  .project-row {
    grid-template-columns: auto 1fr 200px auto auto auto;
    gap: 2rem;
    padding: 3rem 0;
  }
}

.project-row:hover {
  transform: translateX(10px);
}

.project-row.hidden {
  display: none;
}

.project-num {
  color: color-mix(in srgb, var(--text) 20%, transparent);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.project-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .project-info { display: block; }
}

.project-name {
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: var(--text);
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .project-name { font-size: 1.5rem; }
}

@media (min-width: 1024px) {
  .project-name { font-size: 1.875rem; }
}

.project-row:hover .project-name {
  color: var(--primary);
}

.project-image {
  position: relative;
  height: 160px;
  border-radius: 0.75rem;
  overflow: hidden;
  order: -1;
}

@media (min-width: 640px) {
  .project-image { height: 100px; order: 0; }
}

@media (min-width: 1024px) {
  .project-image { height: 150px; }
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s;
}

.project-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.6s;
}

.project-media {
  display: block;
  width: 100%;
  height: 100%;
}

.project-media video {
  display: block;
}

.project-row:hover .project-image img {
  transform: scale(1.1);
}

.project-row:hover .project-image video {
  transform: scale(1.1);
}

.project-image-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-row:hover .project-image-overlay {
  opacity: 0.7;
}

.project-meta {
  display: block;
}

@media (min-width: 640px) {
  .project-meta { display: none; }
}

.project-excerpt {
  color: var(--text-muted);
  font-size: 0.75rem;
  line-clamp: 2;
  margin-bottom: 0.5rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  color: var(--text-muted);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  background: var(--border);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.project-year {
  display: none;
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 0.875rem;
}

@media (min-width: 640px) {
  .project-year { display: block; }
}

.project-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

@media (min-width: 640px) {
  .project-arrow { 
    width: 48px; 
    height: 48px; 
    position: static;
    transform: none;
  }
}

@media (min-width: 1024px) {
  .project-arrow { width: 56px; height: 56px; }
}

.project-arrow svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: all 0.3s;
}

@media (min-width: 640px) {
  .project-arrow svg { width: 20px; height: 20px; }
}

.project-row:hover .project-arrow {
  background: var(--color, var(--primary));
  border-color: var(--color, var(--primary));
}

.project-row:hover .project-arrow svg {
  color: black;
  transform: rotate(45deg);
}

.works-testimonials {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .works-testimonials { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .works-testimonials { padding: 8rem 0; }
}

.works-stats {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

@media (min-width: 640px) {
  .works-stats { padding: 6rem 0; }
}

@media (min-width: 1024px) {
  .works-stats { padding: 8rem 0; }
}

.works-stats .stats-circle-1 {
  width: 500px;
  height: 500px;
}

.cta-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.cta-text {
  text-align: center;
}

@media (min-width: 1024px) {
  .cta-text { text-align: left; }
}

.cta-text .cta-title {
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .cta-text .cta-title { margin-bottom: 2rem; }
}

.cta-text .cta-desc {
  margin: 0 0 2rem;
  max-width: none;
}

@media (min-width: 640px) {
  .cta-text .cta-desc { margin-bottom: 2.5rem; }
}

@media (min-width: 1024px) {
  .cta-text .cta-desc { margin-bottom: 3rem; max-width: 28rem; }
}

.cta-text .cta-buttons {
  justify-content: center;
}

@media (min-width: 1024px) {
  .cta-text .cta-buttons { justify-content: flex-start; }
}

.cta-visual {
  display: none;
  justify-content: center;
  align-items: center;
}

@media (min-width: 1024px) {
  .cta-visual { display: flex; }
}

.orbit-container-small {
  position: relative;
  width: 256px;
  height: 256px;
}

.orbit-container-small .orbit-1 {
  inset: 0;
}

.orbit-container-small .orbit-2 {
  inset: 2rem;
}

.orbit-logo-small {
  font-family: 'Instrument Serif', serif;
  font-size: 3rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  animation: pulse 3s ease-in-out infinite;
}
