.projects-section {
  position: relative;
  padding: clamp(112px, 11vw, 178px) clamp(18px, 4.4vw, 70px)
    clamp(120px, 12vw, 190px);
  color: #f4f3ef;
  background:
    radial-gradient(circle at 82% 2%, rgba(252, 199, 81, 0.055), transparent 27%),
    #020302;
}

.projects-shell {
  width: min(100%, 1600px);
  margin: 0 auto;
}

.projects-heading {
  margin-bottom: clamp(70px, 8vw, 126px);
}

.projects-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(30px, 4vw, 58px);
  color: #a09f99;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.projects-kicker span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fcc751;
  box-shadow: 0 0 13px rgba(252, 199, 81, 0.55);
}

.projects-heading-row {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.35fr);
  gap: clamp(42px, 8vw, 130px);
}

.projects-heading h2 {
  margin: 0;
  max-width: 950px;
  color: #f4f3ef;
  font-size: clamp(74px, 10vw, 166px);
  font-weight: 300;
  letter-spacing: -0.085em;
  line-height: 0.82;
}

.projects-heading h2 span {
  display: block;
  color: #fcc751;
}

.projects-heading-row > p {
  max-width: 350px;
  margin: 0 0 0.4em;
  color: #a6a59f;
  font-size: clamp(13px, 1.05vw, 16px);
  line-height: 1.72;
}

.projects-toolbar {
  position: relative;
  z-index: 30;
  margin-bottom: 18px;
  padding: 12px 0 15px;
  border-bottom: 1px solid rgba(244, 243, 239, 0.12);
  background: #020302;
}

.projects-toolbar-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.projects-tabs {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.2vw, 52px);
}

.projects-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 45px;
  padding: 0 0 12px;
  border: 0;
  color: #777873;
  background: transparent;
  font: inherit;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: 500;
  cursor: pointer;
  transition: color 220ms ease;
}

.projects-tab::after {
  position: absolute;
  right: 0;
  bottom: -16px;
  left: 0;
  height: 2px;
  background: #fcc751;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition:
    opacity 260ms ease,
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.projects-tab:hover {
  color: #d1d0ca;
}

.projects-tab.is-active {
  color: #f4f3ef;
}

.projects-tab.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.projects-tab span {
  color: #656660;
  font-size: 9px;
  font-weight: 600;
}

.projects-filter-toggle {
  display: none;
}

.projects-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -45px;
  margin-left: min(47%, 720px);
  gap: 7px;
}

.project-filter {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(244, 243, 239, 0.11);
  border-radius: 999px;
  color: #83847f;
  background: rgba(244, 243, 239, 0.025);
  font: inherit;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.045em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.project-filter:hover {
  border-color: rgba(252, 199, 81, 0.4);
  color: #e2dfd4;
}

.project-filter.is-active {
  border-color: #fcc751;
  color: #151207;
  background: #fcc751;
}

.projects-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 clamp(24px, 2.7vw, 42px);
  color: #6f706b;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.projects-status p {
  margin: 0;
}

.projects-status span {
  color: #9a9a94;
}

.projects-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 8px;
  grid-auto-flow: row dense;
  align-items: start;
  gap: clamp(12px, 1.25vw, 20px);
  transition: opacity 180ms ease;
}

.projects-gallery.is-updating {
  opacity: 0.35;
}

.project-item {
  min-width: 0;
  animation: project-reveal 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: min(calc(var(--project-order) * 22ms), 220ms);
}

.project-item.is-wide {
  grid-column: span 2;
}

@keyframes project-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-artwork {
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: clamp(10px, 0.9vw, 15px);
  background: #151515;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.project-artwork::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), transparent 24%);
  content: "";
  pointer-events: none;
}

.project-artwork img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.006);
  transition:
    filter 500ms ease,
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.project-item:hover .project-artwork img {
  filter: saturate(1.08) brightness(1.04);
  transform: scale(1.035);
}

.project-item-copy {
  padding: 13px 2px 4px;
}

.project-item h3 {
  overflow: hidden;
  margin: 0;
  color: #e9e7e0;
  font-size: clamp(13px, 1.12vw, 17px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 7px 0 0;
  padding: 0;
  color: #777873;
  font-size: clamp(8px, 0.62vw, 10px);
  font-weight: 600;
  letter-spacing: 0.065em;
  list-style: none;
  text-transform: uppercase;
}

.project-tags li:not(:last-child)::after {
  margin-left: 10px;
  color: #444540;
  content: "·";
}

.projects-empty {
  grid-column: 1 / -1;
  padding: 90px 20px;
  border: 1px solid rgba(244, 243, 239, 0.09);
  border-radius: 14px;
  color: #858680;
  text-align: center;
}

.projects-more {
  display: flex;
  justify-content: center;
  padding-top: clamp(58px, 7vw, 108px);
}

.projects-more button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 210px;
  min-height: 52px;
  padding: 0 18px 0 22px;
  border: 1px solid rgba(252, 199, 81, 0.55);
  border-radius: 999px;
  color: #e9e5da;
  background: rgba(252, 199, 81, 0.035);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.projects-more button:hover {
  border-color: #fcc751;
  color: #0d0b05;
  background: #fcc751;
  transform: translateY(-2px);
}

.projects-more button[hidden] {
  display: none;
}

.projects-more i {
  color: #797a74;
  font-size: 8px;
  font-style: normal;
}

.projects-more button:hover i {
  color: rgba(13, 11, 5, 0.6);
}


@media (min-width: 1700px) {
  .projects-gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
