.works-page {
  background: #fbfcfa;
}

.works-hero {
  position: relative;
  min-height: 680px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: calc(var(--header-height) + 76px) 0 92px;
  color: #fff;
}

.works-hero-media,
.works-hero-shade {
  position: absolute;
  inset: 0;
}

.works-hero-media {
  z-index: -3;
  background: var(--green-900);
}

.works-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(1.5) scaleY(1.025);
  transform-origin: left center;
}

.works-hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 28, 20, 0.56) 0%, rgba(12, 47, 32, 0.34) 48%, rgba(12, 47, 32, 0.08) 100%),
    linear-gradient(180deg, rgba(8, 26, 19, 0.06), rgba(8, 26, 19, 0.38));
}

.works-hero-inner {
  position: relative;
}

.works-hero-inner::before {
  position: absolute;
  top: 8px;
  left: -28px;
  width: 3px;
  height: 190px;
  content: "";
  background: linear-gradient(180deg, var(--gold), rgba(217, 179, 90, 0));
}

.works-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.25);
}

.works-hero-message {
  margin: 28px 0 0;
  font-size: clamp(1.45rem, 2.7vw, 2.4rem);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.works-hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.03rem;
  line-height: 2;
}

.works-hero .button {
  margin-top: 34px;
}

.works-anchor-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 24;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(21, 47, 34, 0.08);
  backdrop-filter: blur(12px);
}

.works-anchor-inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}

.works-anchor-inner::-webkit-scrollbar {
  display: none;
}

.works-anchor-inner a {
  flex: 1 0 auto;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--green-900);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.works-anchor-inner a:hover,
.works-anchor-inner a:focus-visible {
  color: #fff;
  background: var(--green-800);
  border-color: var(--green-800);
}

.works-intro {
  padding: 104px 0;
  background:
    radial-gradient(circle at 90% 12%, rgba(120, 184, 87, 0.14), transparent 30%),
    #fff;
}

.works-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  gap: 70px;
  align-items: start;
}

.works-intro-heading h2,
.works-section-heading h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 3.6vw, 3.25rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.works-process-heading h2,
.works-contact h2 {
  margin: 0;
  color: var(--green-900);
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.works-intro-copy {
  padding: 4px 0 4px 32px;
  border-left: 1px solid rgba(40, 112, 73, 0.3);
}

.works-intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 2.05;
}

.works-intro-copy p + p {
  margin-top: 20px;
}

.works-featured,
.works-categories {
  padding: 104px 0;
}

.works-featured {
  background: var(--mist);
}

.works-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.6fr);
  gap: 62px;
  align-items: end;
  margin-bottom: 46px;
}

.works-section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.works-section-heading-centered {
  display: block;
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.works-section-heading-centered > p {
  margin-top: 18px;
}

.works-photo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  grid-template-rows: repeat(2, minmax(230px, 1fr));
  gap: 18px;
}

.works-photo {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--green-900);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.works-photo-main {
  grid-row: span 2;
}

.works-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 52%, rgba(7, 29, 20, 0.78));
  pointer-events: none;
}

.works-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.works-photo:hover img {
  transform: scale(1.035);
}

.works-photo figcaption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  z-index: 2;
  color: #fff;
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.45;
}

.works-photo figcaption span {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.works-categories {
  background: #fff;
}

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

.works-card {
  display: grid;
  min-height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(21, 47, 34, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.works-card:hover,
.works-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(61, 154, 98, 0.46);
  box-shadow: var(--shadow);
}

.works-card-media {
  position: relative;
  display: grid;
  min-height: 236px;
  place-items: center;
  overflow: hidden;
  background: #e8eee9;
}

.works-card-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 58%, rgba(8, 35, 24, 0.48));
  pointer-events: none;
}

.works-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.works-card:hover .works-card-media img,
.works-card:focus-visible .works-card-media img {
  transform: scale(1.04);
}

.works-card-media-contain {
  background:
    linear-gradient(135deg, rgba(20, 60, 45, 0.92), rgba(40, 112, 73, 0.78)),
    url("../img/services-tree-bg.png") center / cover no-repeat;
}

.works-card-media-framed {
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(20, 60, 45, 0.92), rgba(40, 112, 73, 0.78)),
    url("../img/services-tree-bg.png") center / cover no-repeat;
}

.works-card-media-framed img {
  width: 100%;
  height: auto;
  max-height: 188px;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(7, 29, 20, 0.3);
}

.works-card-media-contain img {
  width: auto;
  max-width: 78%;
  height: auto;
  max-height: 78%;
  object-fit: contain;
  border: 8px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 30px rgba(7, 29, 20, 0.3);
}

.works-card-number {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.94);
  font-family: Arial, sans-serif;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1;
}

.works-card-body {
  display: grid;
  align-content: start;
  padding: 26px;
}

.works-card-en {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works-card-body > strong {
  margin-top: 5px;
  color: var(--green-900);
  font-size: 1.38rem;
  line-height: 1.4;
}

.works-card-text {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.works-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 17px;
  color: var(--green-800);
  font-size: 0.9rem;
  font-weight: 900;
  border-top: 1px solid var(--line);
}

.works-card-link span {
  font-size: 1.16rem;
}

.works-related-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 30px;
  padding: 30px 34px;
  color: #fff;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(13, 55, 39, 0.78) 0%, rgba(25, 91, 58, 0.42) 58%, rgba(25, 91, 58, 0.14) 100%),
    url("../img/facility-management-generated.jpg") center 54% / cover no-repeat;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.works-related-link:hover,
.works-related-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.works-related-link > span:first-child {
  display: grid;
  gap: 5px;
}

.works-related-link small {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works-related-link strong {
  font-size: 1.55rem;
  line-height: 1.35;
}

.works-related-link > span:first-child > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.works-related-link-action {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  color: var(--green-900);
  font-weight: 900;
  background: #fff;
  border-radius: 5px;
}

.works-process {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(12, 49, 35, 0.97), rgba(31, 86, 63, 0.92)),
    url("../img/works-gallery-6.jpg") center / cover no-repeat;
}

.works-process::after {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 420px;
  height: 420px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.02);
}

.works-process-heading {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.works-process-heading h2 {
  color: #fff;
}

.works-process-heading > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.works-process-list {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 48px 0 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.works-process-list li {
  min-height: 240px;
  background: rgba(10, 42, 29, 0.76);
  backdrop-filter: blur(6px);
}

.works-process-list a {
  display: block;
  min-height: 100%;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition: background-color 180ms ease;
}

.works-process-list a:hover,
.works-process-list a:focus-visible {
  background: rgba(120, 184, 87, 0.15);
}

.works-process-list a > span {
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
}

.works-process-list strong {
  display: block;
  margin-top: 26px;
  font-size: 1.32rem;
}

.works-process-list p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  line-height: 1.8;
}

.works-process-list em {
  display: block;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 800;
}

.works-contact {
  padding: 88px 0;
  background:
    linear-gradient(90deg, rgba(235, 245, 237, 0.98), rgba(245, 249, 245, 0.94)),
    url("../img/services-tree-bg.png") center / cover no-repeat;
}

.works-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.works-contact h2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

.works-contact-inner > div > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
}

.works-contact .button-light {
  flex: 0 0 auto;
  min-width: 230px;
  color: #fff;
  background: var(--green-800);
}

.works-contact .button-light:hover,
.works-contact .button-light:focus-visible {
  background: var(--green-700);
}

@media (max-width: 1060px) {
  .works-intro-grid {
    gap: 54px;
  }

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

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

@media (max-width: 760px) {
  .works-hero {
    min-height: 650px;
    padding: calc(var(--header-height) + 54px) 0 70px;
  }

  .works-hero-media img {
    object-position: 58% center;
    transform: scale(1.025);
    transform-origin: center;
  }

  .works-hero-inner::before {
    display: none;
  }

  .works-hero h1 {
    font-size: 3.35rem;
  }

  .works-hero-message {
    margin-top: 22px;
    font-size: 1.55rem;
  }

  .works-hero-lead {
    font-size: 0.96rem;
    line-height: 1.85;
  }

  .works-anchor-inner {
    width: min(100% - 28px, 1120px);
  }

  .works-intro,
  .works-featured,
  .works-categories,
  .works-process {
    padding: 72px 0;
  }

  .works-intro-grid,
  .works-section-heading {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .works-intro-copy {
    padding: 0;
    border-left: 0;
  }

  .works-photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .works-photo,
  .works-photo-main {
    min-height: 260px;
    grid-row: auto;
  }

  .works-card-grid {
    grid-template-columns: 1fr;
  }

  .works-card {
    grid-template-columns: minmax(138px, 0.42fr) minmax(0, 0.58fr);
  }

  .works-card-media {
    min-height: 100%;
  }

  .works-card-media-contain img {
    max-width: 84%;
    max-height: 70%;
    border-width: 5px;
  }

  .works-card-media-framed {
    padding: 15px;
  }

  .works-card-media-framed img {
    max-height: none;
    border-width: 5px;
  }

  .works-card-number {
    right: 12px;
    bottom: 12px;
    font-size: 1.55rem;
  }

  .works-card-body {
    padding: 22px;
  }

  .works-card-body > strong {
    font-size: 1.2rem;
  }

  .works-card-text {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  .works-process-list {
    grid-template-columns: 1fr;
  }

  .works-related-link {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    padding: 26px;
  }

  .works-related-link-action {
    justify-content: space-between;
  }

  .works-process-list li {
    min-height: 0;
  }

  .works-contact {
    padding: 70px 0;
  }

  .works-contact-inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .works-card {
    display: block;
  }

  .works-card-media {
    min-height: 220px;
  }

  .works-card-media-contain img {
    max-width: 72%;
    max-height: 72%;
  }

  .works-card-media-framed img {
    height: 170px;
  }

  .works-photo {
    min-height: 230px;
  }
}

@media (max-width: 430px) {
  .works-hero h1 {
    font-size: 2.85rem;
  }

  .works-hero-message {
    font-size: 1.34rem;
  }

  .works-intro-heading h2,
  .works-section-heading h2,
  .works-process-heading h2,
  .works-contact h2 {
    font-size: 1.9rem;
  }

  .works-card-body {
    padding: 20px;
  }
}
