.project-page {
  background: #FFF;
}
.project-hero {
  position: relative;
  height: 560px;
  color: #FFF;
  background: #0F2D2B;
}
.project-hero-bg,
.project-hero-overlay {
  position: absolute;
  inset: 0;
}
.project-hero-bg {
  background: url("../../images/cases-hero.png") center bottom / cover no-repeat;
}
.project-hero-overlay {
  /* background: rgba(0, 0, 0, 0.2);
   backdrop-filter: blur(5.8px); */
}
.project-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  height: 100%;
  padding-bottom: 120px;
}
.project-hero-copy {
  width: min(960px, 100%);
}
.project-hero-copy h1 {
  font-size: calc(clamp(34px, 2.5vw, 48px) * var(--hz-font-scale));
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0;
}
.project-hero-copy p {
  font-size: calc(20px * var(--hz-font-scale));
  line-height: 32px;
  margin: 20px 0 0;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.7);
}
.project-list-section {
  padding: 86px 0;
  background: #FFF;
}
.project-toolbar {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 64px;
  gap: 32px;
}
.project-filter-group {
  display: flex;
  overflow-x: auto;
  align-items: center;
  gap: 16px;
  scrollbar-width: none;
}
.project-filter-group::-webkit-scrollbar {
  display: none;
}
.project-filter-group button {
  font-size: calc(16px * var(--hz-font-scale));
  line-height: 1.5;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 25px;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  white-space: nowrap;
  color: #666;
  border: 1px solid #EEE;
  border-radius: 99px;
  background: #FFF;
}
.project-filter-group button.active,
.project-filter-group button:hover {
  color: #FFF;
  border-color: #25C948;
  background: #25C948;
  box-shadow: 0 4px 14px rgba(17, 142, 3, 0.2);
}
.project-tools {
  position: relative;
  z-index: 45;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 16px;
}
.project-filter-select {
  position: relative;
  z-index: 60;
}
.project-search,
.project-sort {
  height: 47px;
  border: 1px solid #AAA;
  border-radius: 10px;
  background: #FFF;
}
.project-search {
  display: flex;
  align-items: center;
  width: 300px;
  margin: 0;
  padding: 0 20px 0 16px;
  gap: 10px;
}
.project-search img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.project-search input {
  font-size: calc(16px * var(--hz-font-scale));
  line-height: 1.5;
  width: 100%;
  min-width: 0;
  color: #333;
  border: 0;
  outline: 0;
  background: transparent;
}
.project-search input::placeholder {
  color: rgba(26, 26, 26, 0.5);
}
.project-sort {
  font-size: calc(16px * var(--hz-font-scale));
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  padding: 0 18px;
  white-space: nowrap;
  color: #777;
  gap: 10px;
}
.project-sort img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.project-sort img:last-child {
  flex-basis: 16px;
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}
.project-sort[aria-expanded="true"] img:last-child {
  transform: rotate(180deg);
}
.project-sort-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: 190px;
  padding: 8px;
  pointer-events: auto;
  border: 1px solid rgba(17, 142, 3, 0.16);
  border-radius: 8px;
  background: #FFF;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}
.project-sort-menu[hidden] {
  display: none;
}
.project-sort-menu button {
  font-size: calc(15px * var(--hz-font-scale));
  line-height: 1.4;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  transition: color 0.2s ease, background 0.2s ease;
  text-align: left;
  color: #333;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.project-sort-menu button.active,
.project-sort-menu button:hover,
.project-sort-menu button:focus-visible {
  color: #118E03;
  background: rgba(17, 142, 3, 0.08);
}
.project-case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 72px;
}

@media (min-width: 1200px) {
  .project-list-section > .hz-container {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

.project-case-card {
  overflow: hidden;
  min-width: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  border-radius: 24px;
  background: #FFF;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}
.project-case-card.is-hidden {
  display: none;
}
.project-case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}
.project-case-image {
  overflow: hidden;
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 24px;
  background: #99A1AF;
}
.project-case-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.42s ease;
}
.project-case-card:hover .project-case-image img {
  transform: scale(1.045);
}
.project-case-body {
  /* min-height: 338px; */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px 36px;
  gap: 40px;
}
.project-case-heading {
  display: grid;
  gap: 16px;
}
.project-case-location {
  font-size: calc(16px * var(--hz-font-scale));
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  color: #118E03;
  gap: 9px;
}
.project-case-location img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.project-case-heading h2 {
  font-size: calc(24px * var(--hz-font-scale));
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0;
  color: #333;
}
.project-case-meta {
  display: grid;
  gap: 16px;
}
.project-case-meta span {
  font-size: calc(16px * var(--hz-font-scale));
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  color: #333;
  gap: 16px;
}
.project-case-meta img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
.project-case-link,
.project-more {
  font-size: calc(18px * var(--hz-font-scale));
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  color: #118E03;
  border: 1px solid #118E03;
  border-radius: 99px;
  background: #FFF;
  gap: 16px;
}
.project-case-link {
  width: 100%;
}
.project-case-link img,
.project-more img {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
}
.project-case-link:hover,
.project-more:hover {
  transform: translateY(-2px);
  color: #FFF;
  background: #118E03;
  box-shadow: 0 10px 24px rgba(17, 142, 3, 0.18);
}
.project-case-link:hover img,
.project-more:hover img {
  filter: brightness(0) invert(1);
}
.project-more-wrap {
  margin-top: 64px;
  text-align: center;
}
.project-more {
  font-weight: 500;
  width: min(402px, 100%);
  cursor: pointer;
}
.project-detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #FFF;
  background: #0F2D2B;
}
.project-detail-hero-bg {
  position: absolute;
  background: linear-gradient(90deg, rgba(5, 24, 22, 0.82), rgba(5, 24, 22, 0.24)),
  url("../../images/case_detail.jpg") center bottom / cover no-repeat;
  inset: 0;
}
.project-detail-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding-bottom: 88px;
}
.project-detail-hero-copy {
  width: min(980px, 100%);
}
.project-detail-back,
.project-detail-hero-copy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
}
.project-detail-back {
  min-height: 38px;
  margin-bottom: 28px;
  padding: 7px 18px;
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}
.project-detail-back:hover {
  color: #FFF;
  border-color: rgba(255, 255, 255, 0.78);
}
.project-detail-hero-copy span {
  font-size: calc(15px * var(--hz-font-scale));
  min-height: 34px;
  padding: 5px 16px;
  color: #D7FFD8;
  background: rgba(37, 201, 72, 0.18);
}
.project-detail-hero-copy h1 {
  font-size: calc(clamp(34px, 3vw, 52px) * var(--hz-font-scale));
  font-weight: 600;
  line-height: 1.35;
  max-width: 1080px;
  margin: 22px 0 0;
  letter-spacing: 0;
}
.project-detail-hero-copy p {
  font-size: calc(19px * var(--hz-font-scale));
  line-height: 1.8;
  max-width: 860px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.78);
}
.project-detail-section {
  padding: 78px 0 92px;
  background: #FFF;
}
.project-detail-layout {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.project-detail-gallery {
  width: 100%;
  margin: 0;
}
.project-detail-gallery-main {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #F4F6F5;
  aspect-ratio: 3 / 2;
}
.project-detail-gallery-main .swiper-wrapper {
  height: 100%;
  align-items: stretch;
}
.project-detail-gallery-slide {
  position: relative;
  overflow: hidden;
  height: 100%;
  margin: 0;
  background: #F4F6F5;
  aspect-ratio: auto;
}
.project-detail-gallery .project-detail-gallery-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover;
  object-position: center;
}
.project-detail-gallery-nav {
  position: absolute;
  z-index: 3;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(-50%);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(17, 142, 3, 0.82);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.project-detail-gallery-nav:hover,
.project-detail-gallery-nav:focus-visible {
  background: #118E03;
  transform: translateY(-50%) scale(1.05);
}
.project-detail-gallery-nav span {
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  height: 38px;
}
.project-detail-gallery-prev {
  left: 20px;
}
.project-detail-gallery-next {
  right: 20px;
}
.project-detail-gallery-nav.swiper-button-disabled {
  cursor: default;
  opacity: 0.35;
}
.project-detail-gallery-pagination.swiper-pagination {
  font-size: calc(14px * var(--hz-font-scale));
  line-height: 28px;
  right: 16px;
  bottom: 16px;
  left: auto;
  width: auto;
  min-width: 58px;
  height: 28px;
  padding: 0 12px;
  color: #FFF;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(6px);
}
.project-detail-gallery-thumbs {
  display: flex;
  overflow-x: auto;
  justify-content: center;
  margin-top: 16px;
  padding: 2px 0 4px;
  scrollbar-width: thin;
  gap: 12px;
}
.project-detail-gallery-thumb {
  overflow: hidden;
  flex: 0 0 112px;
  width: 112px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.62;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #F4F6F5;
  aspect-ratio: 3 / 2;
}
.project-detail-gallery-thumb:hover,
.project-detail-gallery-thumb:focus-visible {
  opacity: 0.9;
  transform: translateY(-2px);
}
.project-detail-gallery-thumb.is-active {
  opacity: 1;
  border-color: #118E03;
}
.project-detail-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.project-detail-gallery.is-single .project-detail-gallery-nav,
.project-detail-gallery.is-single .project-detail-gallery-pagination,
.project-detail-gallery.is-single .project-detail-gallery-thumbs {
  display: none;
}
.project-detail-meta-grid {
  display: grid;
  overflow: hidden;
  margin-top: 32px;
  border: 1px solid #E9EFE9;
  border-radius: 8px;
  background: #FFF;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-detail-meta-grid div {
  min-width: 0;
  padding: 24px;
  border-right: 1px solid #E9EFE9;
  border-bottom: 1px solid #E9EFE9;
}
.project-detail-meta-grid div:nth-child(3n),
.project-detail-meta-grid div:last-child {
  border-right: 0;
}
.project-detail-meta-grid div:nth-last-child(-n + 2) {
  border-bottom: 0;
}
.project-detail-meta-grid span {
  font-size: calc(15px * var(--hz-font-scale));
  line-height: 1.5;
  display: block;
  color: #777;
}
.project-detail-meta-grid strong {
  font-size: calc(18px * var(--hz-font-scale));
  font-weight: 600;
  line-height: 1.5;
  display: block;
  margin-top: 10px;
  color: #1F2F2D;
  overflow-wrap: break-word;
}
.project-detail-content {
  font-size: calc(18px * var(--hz-font-scale));
  line-height: 2;
  margin-top: 42px;
  color: #333;
}
.project-detail-content p {
  margin: 0 0 22px;
}
.project-detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 1399.98px) {
  .project-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .project-filter-group,
  .project-tools {
    width: 100%;
  }
  .project-tools {
    justify-content: flex-end;
  }
  .project-case-grid {
    gap: 42px 28px;
  }
}
@media (max-width: 1199.98px) {
  .project-hero {
    height: 500px;
  }
  .project-hero-inner {
    padding-bottom: 88px;
  }
  .project-list-section {
    padding: 72px 0;
  }
  .project-case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 991.98px) {
  .project-hero-copy p {
    font-size: calc(18px * var(--hz-font-scale));
    line-height: 1.6;
  }
  .project-tools {
    align-items: stretch;
    flex-direction: column;
  }
  .project-search,
  .project-sort {
    width: 100%;
  }
  .project-detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .project-detail-meta-grid div,
  .project-detail-meta-grid div:nth-last-child(-n + 3),
  .project-detail-meta-grid div:nth-child(3n) {
    border-right: 1px solid #E9EFE9;
    border-bottom: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:nth-child(2n),
  .project-detail-meta-grid div:last-child {
    border-right: 0;
  }
  .project-detail-meta-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}
@media (max-width: 767.98px) {
  .project-hero {
    height: 460px;
  }
  .project-hero-bg {
    background-position: center bottom;
  }
  .project-hero-inner {
    padding-bottom: 64px;
  }
  .project-hero-copy p {
    font-size: calc(16px * var(--hz-font-scale));
    margin-top: 14px;
  }
  .project-list-section {
    padding: 56px 0;
  }
  .project-toolbar {
    margin-bottom: 36px;
    gap: 24px;
  }
  .project-filter-group {
    gap: 10px;
  }
  .project-filter-group button {
    min-height: 38px;
    padding: 7px 18px;
  }
  .project-case-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .project-case-card,
  .project-case-image {
    border-radius: 16px;
  }
  .project-case-body {
    min-height: 0;
    padding: 24px 18px;
    gap: 24px;
  }
  .project-case-heading h2 {
    font-size: calc(22px * var(--hz-font-scale));
  }
  .project-case-location,
  .project-case-meta span {
    font-size: calc(15px * var(--hz-font-scale));
  }
  .project-case-meta span {
    white-space: normal;
    gap: 10px;
  }
  .project-case-link,
  .project-more {
    font-size: calc(16px * var(--hz-font-scale));
    height: 48px;
  }
  .project-more-wrap {
    margin-top: 36px;
  }
  .project-detail-hero,
  .project-detail-hero-inner {
    min-height: 460px;
  }
  .project-detail-hero-inner {
    padding-bottom: 58px;
  }
  .project-detail-hero-copy h1 {
    font-size: calc(30px * var(--hz-font-scale));
  }
  .project-detail-hero-copy p {
    font-size: calc(16px * var(--hz-font-scale));
  }
  .project-detail-section {
    padding: 52px 0 68px;
  }
  .project-detail-gallery-main {
    border-radius: 6px;
  }
  .project-detail-gallery-nav {
    width: 40px;
    height: 40px;
  }
  .project-detail-gallery-nav span {
    font-size: 29px;
    height: 33px;
  }
  .project-detail-gallery-prev {
    left: 12px;
  }
  .project-detail-gallery-next {
    right: 12px;
  }
  .project-detail-gallery-pagination.swiper-pagination {
    right: 10px;
    bottom: 10px;
  }
  .project-detail-gallery-thumbs {
    display: none;
  }
  .project-detail-meta-grid {
    margin-top: 24px;
    grid-template-columns: 1fr;
  }
  .project-detail-meta-grid div,
  .project-detail-meta-grid div:nth-child(2),
  .project-detail-meta-grid div:nth-last-child(-n + 3),
  .project-detail-meta-grid div:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:last-child {
    border-bottom: 0;
  }
  .project-detail-content {
    font-size: calc(16px * var(--hz-font-scale));
    line-height: 1.85;
    margin-top: 28px;
  }
}
@media (min-width: 1200px) and (max-width: 1599.98px) and (max-height: 960px) {
  .project-hero,
  .project-detail-hero,
  .project-detail-hero-inner {
    height: 460px;
    min-height: 460px;
  }
  .project-hero-inner,
  .project-detail-hero-inner {
    padding-bottom: 76px;
  }
  .project-hero-copy h1,
  .project-detail-hero-copy h1 {
    font-size: calc(38px * var(--hz-font-scale));
    line-height: 1.3;
  }
  .project-hero-copy p,
  .project-detail-hero-copy p {
    font-size: calc(16px * var(--hz-font-scale));
    line-height: 1.6;
    margin-top: 14px;
  }
  .project-list-section,
  .project-detail-section {
    padding: 60px 0 68px;
  }
  .project-toolbar {
    margin-bottom: 42px;
    gap: 24px;
  }
  .project-filter-group {
    gap: 12px;
  }
  .project-filter-group button {
    font-size: calc(14px * var(--hz-font-scale));
    min-height: 38px;
    padding: 7px 18px;
  }
  .project-search,
  .project-sort {
    height: 42px;
  }
  .project-search {
    width: 250px;
  }
  .project-sort {
    font-size: calc(14px * var(--hz-font-scale));
    width: 128px;
  }
  .project-case-grid {
    gap: 30px 24px;
  }
  .project-case-body {
    /* min-height: 190px; */
    padding: 24px;
  }
  .project-case-heading h2 {
    font-size: calc(24px * var(--hz-font-scale));
  }
  .project-case-location,
  .project-case-meta span {
    font-size: calc(16px * var(--hz-font-scale));
  }
  .project-case-link,
  .project-more {
    font-size: calc(18px * var(--hz-font-scale));
    height: 44px;
  }
  .project-more-wrap {
    margin-top: 40px;
  }
  .project-detail-meta-grid div {
    padding: 24px 18px;
  }
  .project-detail-meta-grid strong {
    font-size: calc(18px * var(--hz-font-scale));
  }
  .project-detail-content {
    font-size: calc(16px * var(--hz-font-scale));
    line-height: 1.85;
    margin-top: 32px;
  }
}

@media (min-width: 1200px) {
  .project-detail-meta-grid {
    overflow: visible;
    border: 0;
    background: transparent;
  }
  .project-detail-meta-grid div {
    border-right: 1px solid #E9EFE9;
    border-bottom: 1px solid #E9EFE9;
    background: #FFF;
  }
  .project-detail-meta-grid div:nth-child(-n + 3) {
    border-top: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:nth-child(3n + 1) {
    border-left: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:nth-child(3n),
  .project-detail-meta-grid div:last-child {
    border-right: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #E9EFE9;
  }
  .project-detail-meta-grid div:first-child {
    border-top-left-radius: 8px;
  }
  .project-detail-meta-grid div:nth-child(3) {
    border-top-right-radius: 8px;
  }
  .project-detail-meta-grid div:nth-child(6),
  .project-detail-meta-grid div:last-child {
    border-bottom-right-radius: 8px;
  }
  .project-detail-meta-grid div:nth-last-child(2) {
    border-bottom-left-radius: 8px;
  }
}
