:root {
  --work-ink: #11140f;
  --work-paper: #fbfaf4;
  --work-soft: #f1eee6;
  --work-lime: #d6e02c;
  --work-muted: rgba(17, 20, 15, 0.64);
  --work-line: rgba(17, 20, 15, 0.1);
}

body.work-page {
  margin: 0;
  overflow-x: hidden;
  background: var(--work-soft);
  color: var(--work-ink);
  font-family: "Inter", system-ui, sans-serif;
}

.work-wrap {
  width: min(calc(100% - 40px), 1320px);
  margin: 0 auto;
}

.work-intro {
  position: relative;
  padding: 148px 0 58px;
  background:
    radial-gradient(circle at 78% 18%, rgba(214, 224, 44, 0.22), transparent 32%),
    linear-gradient(180deg, #fbfaf4, #f1eee6);
  overflow: hidden;
}

.work-intro::after {
  content: "";
  position: absolute;
  right: -180px;
  top: 110px;
  width: min(42vw, 560px);
  height: min(42vw, 560px);
  border-radius: 50%;
  opacity: 0.14;
  background:
    radial-gradient(circle, rgba(214, 224, 44, 0.75), transparent 62%),
    repeating-linear-gradient(135deg, rgba(17, 20, 15, 0.18) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.work-crumb {
  position: relative;
  z-index: 1;
  margin: 0 0 46px;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 8px;
  color: rgba(17, 20, 15, 0.46);
  font-size: 0.82rem;
  font-weight: 800;
}

.work-crumb a {
  color: rgba(17, 20, 15, 0.64);
  text-decoration: none;
}

.work-crumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: rgba(17, 20, 15, 0.24);
}

.work-intro__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.48fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
}

.work-kicker {
  margin: 0 0 14px;
  color: #9aa311;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.work-intro h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.35rem, 9vw, 8.4rem);
  line-height: 0.86;
  letter-spacing: 0;
  font-weight: 900;
}

.work-intro__lead {
  margin: 0;
  color: var(--work-muted);
  font-size: clamp(1.03rem, 1.45vw, 1.2rem);
  line-height: 1.72;
}

.work-bar {
  position: sticky;
  top: 92px;
  z-index: 20;
  padding: 14px 0;
  background: rgba(241, 238, 230, 0.82);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(17, 20, 15, 0.06);
  border-bottom: 1px solid rgba(17, 20, 15, 0.06);
}

.work-filter {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.work-filter::-webkit-scrollbar {
  display: none;
}

.work-filter button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(17, 20, 15, 0.1);
  border-radius: 999px;
  background: #fff;
  color: rgba(17, 20, 15, 0.68);
  padding: 0 16px;
  cursor: pointer;
  font: 900 0.85rem/1 "Inter", system-ui, sans-serif;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.work-filter button:hover,
.work-filter button.is-active {
  background: var(--work-ink);
  color: #fff;
  transform: translateY(-1px);
}

.work-gallery {
  padding: 64px 0 116px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 468px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(17, 20, 15, 0.1);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(214, 224, 44, 0.72);
  box-shadow: 0 28px 70px rgba(15, 17, 16, 0.13);
}

.project-card.is-hidden {
  display: none;
}

.project-card__media {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #11140f;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover .project-card__media img {
  transform: scale(1.08);
  filter: saturate(1.05) contrast(1.04);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.project-card__meta span {
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(214, 224, 44, 0.22);
  color: #7d8610;
  font-size: 0.72rem;
  font-weight: 900;
}

.project-card h2 {
  margin: 0;
  font-size: 1.36rem;
  line-height: 1.1;
  font-weight: 900;
}

.project-card p {
  margin: 11px 0 0;
  color: rgba(17, 20, 15, 0.62);
  line-height: 1.58;
  font-size: 0.94rem;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
  color: var(--work-ink);
  font-weight: 900;
}

.work-note {
  margin-top: 42px;
  padding: 24px;
  border-radius: 8px;
  background: #11140f;
  color: #fff;
}

.work-note p {
  max-width: 900px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.project-detail {
  padding: 148px 0 110px;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(310px, 0.48fr);
  gap: clamp(32px, 7vw, 86px);
  align-items: start;
}

.project-detail h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.88;
  font-weight: 900;
}

.project-detail__lead {
  margin: 24px 0 0;
  max-width: 820px;
  color: var(--work-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.project-detail__panel {
  position: sticky;
  top: 116px;
  padding: 22px;
  border: 1px solid var(--work-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 17, 16, 0.06);
}

.project-detail__panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 18px;
}

.project-detail__panel dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.project-detail__panel dt {
  color: rgba(17, 20, 15, 0.48);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-detail__panel dd {
  margin: 4px 0 0;
  font-weight: 850;
  line-height: 1.45;
}

.project-detail__sections {
  display: grid;
  gap: 18px;
  margin-top: 42px;
}

.project-block {
  padding: 26px;
  border: 1px solid var(--work-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.project-block h2 {
  margin: 0 0 10px;
  font-size: 1.42rem;
  font-weight: 900;
}

.project-block p {
  margin: 0;
  color: rgba(17, 20, 15, 0.66);
  line-height: 1.72;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.work-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--work-ink);
  color: #fff !important;
  text-decoration: none;
  font-weight: 900;
}

.work-btn--lime {
  background: var(--work-lime);
  color: var(--work-ink) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

@media (max-width: 1080px) {
  .work-intro__grid,
  .project-detail__grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-detail__panel {
    position: relative;
    top: auto;
  }
}

@media (max-width: 700px) {
  .work-wrap {
    width: min(calc(100% - 28px), 1320px);
  }

  .work-intro,
  .project-detail {
    padding-top: 122px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-bar {
    top: 78px;
  }
}
