/* Home page-specific styles live here. Shared layout styles are in base.css. */

.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4 {
  font-size: var(--home-heading-size);
}

.home-page main {
  gap: var(--home-section-gap);
}

.home-page main > section {
  margin: 0;
}

.home-page .panel,
.home-page .popular-section,
.home-page .application-section,
.home-page .blog-section,
.home-page .blog-collection,
.home-page .project-section,
.home-page .subcat-panel,
.home-page .testimonials-section,
.home-page .achievement.highlight-panel {
  margin-block: 0;
}

.home-page .achievement.highlight-panel {
  margin-left: auto;
  margin-right: auto;
}

.home-page .home-hero-banner {
  margin-bottom: 0;
  height: clamp(520px, 80vh, 820px);
  border-radius: 32px;
  box-shadow: 0 40px 90px rgba(8, 15, 30, 0.25);
  overflow: hidden;
  position: relative;
}

.home-page .home-hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent-3) 35%, transparent), transparent 55%),
    radial-gradient(circle at 70% 10%, color-mix(in srgb, var(--accent-3) 28%, transparent), transparent 55%),
    linear-gradient(140deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.65));
  z-index: 1;
  pointer-events: none;
}

.home-page .home-hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 30%, transparent), transparent 60%);
  z-index: 1;
  pointer-events: none;
}

.home-page .home-hero-banner img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
  transform: scale(1.04);
}

.home-page .home-banner-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(28px, 5vw, 64px);
  gap: 16px;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.18) 60%, rgba(15, 23, 42, 0) 100%);
  color: #f8fafc;
}

.home-page .home-banner-overlay h1,
.home-page .home-banner-overlay h2 {
  font-size: var(--ds-type-home-hero-h1, clamp(2.6rem, 5vw, 4.4rem));
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: "Space Grotesk", "Sora", sans-serif;
  max-width: min(620px, 95%);
  line-height: 1.08;
}

.home-page .home-banner-overlay p {
  font-size: var(--ds-type-home-hero-p, clamp(1rem, 1.8vw, 1.3rem));
  max-width: min(560px, 92%);
  color: rgba(226, 232, 240, 0.92);
}

.home-page .home-banner-overlay .btn {
  border-radius: 999px;
  padding: 14px 28px;
  font-weight: 700;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: var(--btn-primary-border);
  box-shadow: var(--btn-primary-shadow);
}

.home-page {
  --home-panel-pad: clamp(20px, 2vw, 26px);
  --home-strip-pad-y: 8px;
  --home-strip-pad-x: var(--home-panel-pad);
  --home-strip-min-height: 48px;
  --home-heading-size: clamp(1.55rem, 2.2vw, 2.1rem);
  --home-heading-weight: 800;
  --home-heading-letter: 0.02em;
  --home-heading-transform: none;
  --home-heading-font: "Sora", sans-serif;
  --home-strip-bg: var(--btn-primary-bg);
  --home-strip-border: color-mix(in srgb, var(--accent) 55%, #ffffff);
  --home-strip-line: rgba(255, 255, 255, 0.28);
  --home-strip-text: var(--btn-primary-text);
  --home-strip-shadow: var(--btn-primary-shadow);
  --home-strip-hover-shadow: var(--btn-primary-hover-shadow);
}

.home-page .panel,
.home-page .popular-wrap {
  border-radius: 32px;
  overflow: auto;
  background: var(--surface);
  border: var(--section-border);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
}

.home-page .panel {
  padding: var(--home-panel-pad);
}

.home-page .panel.highlight-panel {
  background: var(--surface);
}

.home-page .panel:hover {
  transform: none;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
}

.home-page .application-section {
  background: transparent;
  border: var(--section-border);
  box-shadow: none;
  padding: 0;
}

.home-page .panel > .panel-title-row,
.home-page .panel > .achieve-heading,
.home-page .panel > .operations-heading,
.home-page .panel > .blog-heading {
  margin: calc(var(--home-panel-pad) * -1) calc(var(--home-panel-pad) * -1) 20px;
  padding: var(--home-strip-pad-y) calc(var(--home-strip-pad-x) + 6px);
  background: var(--home-strip-bg);
  border: 1px solid var(--home-strip-border);
  min-height: var(--home-strip-min-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.home-page .panel > .panel-title-row h3,
.home-page .panel > .achieve-heading h3,
.home-page .panel > .operations-heading h3,
.home-page .panel > .blog-heading h3,
.home-page .popular-banner h3,
.home-page .application-card.achievement-card .achieve-heading h3 {
  color: var(--home-strip-text) !important;
  text-align: left !important;
  font-family: var(--home-heading-font) !important;
  font-size: var(--home-heading-size) !important;
  font-weight: var(--home-heading-weight) !important;
  letter-spacing: var(--home-heading-letter) !important;
  text-transform: var(--home-heading-transform) !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.home-page .panel > .panel-title-row p,
.home-page .panel > .achieve-heading p,
.home-page .panel > .operations-heading p,
.home-page .panel > .blog-heading p {
  display: none;
}

.home-page .panel > .panel-title-row h3::before,
.home-page .panel > .panel-title-row h3::after,
.home-page .panel > .achieve-heading h3::before,
.home-page .panel > .achieve-heading h3::after,
.home-page .panel > .operations-heading h3::before,
.home-page .panel > .operations-heading h3::after,
.home-page .panel > .blog-heading h3::before,
.home-page .panel > .blog-heading h3::after {
  display: none;
}

.home-page .subcat-card .subcat-bg {
  background: none;
}

.home-page .subcat-card .subcat-bg img {
  opacity: 1;
  filter: none;
  mix-blend-mode: normal;
}

.home-page .subcat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 60px;
  background: linear-gradient(180deg, rgba(7, 12, 24, 0.45), rgba(7, 12, 24, 0));
  z-index: 0;
  pointer-events: none;
}

.home-page .subcat-card .subcat-body {
  z-index: 1;
}

.home-page .subcat-name {
  display: inline-flex;
  align-self: flex-start;
  width: max-content;
  max-width: 92%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  color: #0b1224;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .sale-section .subcat-overlay,
.home-page .rent-section .subcat-overlay {
  top: 64%;
  left: 50%;
  right: auto;
  transform: translate(-50%, -50%);
  width: min(55%, 160px);
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.home-page .sale-section .count-pill,
.home-page .rent-section .count-pill {
  width: 100%;
  text-align: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 70%, transparent),
    color-mix(in srgb, var(--accent-2) 70%, transparent)
  );
  color: var(--btn-primary-text);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}

.home-page .sale-section .subcat-counts,
.home-page .rent-section .subcat-counts {
  display: none;
}

.home-page .panel.locality-box {
  padding: var(--home-panel-pad);
}

.home-page .panel.locality-box .panel-title-row.center {
  margin: calc(var(--home-panel-pad) * -1) calc(var(--home-panel-pad) * -1) 20px;
  padding: var(--home-strip-pad-y) var(--home-strip-pad-x);
}

.home-page .locality-card {
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.home-page .loc-overlay {
  justify-content: flex-end;
  gap: 6px;
  padding: 26px 16px 22px;
  background: linear-gradient(
    180deg,
    rgba(7, 12, 24, 0) 18%,
    rgba(7, 12, 24, 0.45) 58%,
    rgba(7, 12, 24, 0.82) 100%
  );
}

.home-page .loc-title {
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.home-page .loc-counts {
  gap: 16px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .loc-counts span strong {
  font-size: 1.15rem;
  margin-top: 6px;
}

.home-page .subcat-panel,
.home-page .subcat-panel.sale-section,
.home-page .subcat-panel.rent-section,
.home-page .subcat-panel.sale-rent-section {
  background: var(--surface);
  border: var(--section-border);
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.15);
  padding: var(--home-panel-pad);
  align-items: stretch;
  text-align: left;
}

.home-page .sale-rent-section {
  overflow: hidden;
}

.home-page .sale-rent-section > .panel-title-row {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  gap: 6px;
  align-self: stretch;
  width: calc(100% + (var(--home-panel-pad) * 2));
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  margin: calc(var(--home-panel-pad) * -1) calc(var(--home-panel-pad) * -1) 20px;
  padding: var(--home-strip-pad-y) calc(var(--home-strip-pad-x) + 6px);
  background: var(--home-strip-bg);
  border: 1px solid var(--home-strip-border);
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.home-page .sale-rent-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-page .sale-rent-title h3 {
  width: auto;
  max-width: 100%;
  pointer-events: none;
}

.home-page .sale-rent-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.home-page .sale-rent-layout {
  display: grid;
  grid-template-columns: minmax(160px, 200px) 1fr;
  gap: 18px;
  align-items: stretch;
}

.home-page .sale-rent-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: var(--sale-rent-body-height, auto);
  min-height: var(--sale-rent-body-height, auto);
}

.home-page .sale-rent-body {
  height: var(--sale-rent-body-height, auto);
  overflow: hidden;
}

.home-page .sale-rent-toggle {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface-2) 40%, #ffffff));
  border-radius: 18px;
  padding: 14px 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease, transform 0.15s ease;
  pointer-events: auto;
  width: 100%;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  min-height: 140px;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.home-page .sale-rent-toggle.is-active {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 22%, transparent),
    color-mix(in srgb, var(--accent-2) 22%, transparent)
  );
  border-color: color-mix(in srgb, var(--accent-2) 35%, transparent);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
}

.home-page .sale-rent-toggle:hover {
  transform: translateY(-2px);
}

.home-page .sale-rent-label {
  font-size: 1.05rem;
}

.home-page .sale-rent-count {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 700;
}

.home-page .sale-rent-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-page .subcat-grid {
  grid-auto-rows: minmax(var(--subcat-card-min-height, 220px), auto);
  gap: var(--subcat-grid-gap, 12px);
  align-content: start;
}

.home-page .subcat-card {
  min-height: var(--subcat-card-min-height, 220px);
}

.home-page .subcat-card .subcat-body {
  padding: var(--subcat-card-padding, 14px);
}

.home-page .subcat-name {
  font-size: var(--subcat-name-font, 1.05rem);
}

.home-page .sale-section .count-pill,
.home-page .rent-section .count-pill {
  font-size: var(--subcat-pill-font, 0.78rem);
  padding: var(--subcat-pill-pad-y, 8px) var(--subcat-pill-pad-x, 16px);
}

.home-page .sale-rent-panel[hidden] {
  display: none !important;
}

.home-page .subcat-tabs {
  position: relative;
  z-index: 1;
}

.home-page .subcat-header {
  position: relative;
  z-index: 1;
}

.home-page .subcat-tab {
  pointer-events: auto;
}

@media (max-width: 720px) {
  .home-page .sale-rent-section > .panel-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .home-page .sale-rent-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .home-page .sale-rent-layout {
    grid-template-columns: 1fr;
  }
  .home-page .sale-rent-side {
    flex-direction: row;
    height: auto;
    min-height: 0;
  }
  .home-page .sale-rent-toggle {
    flex: 1;
    min-height: 64px;
    border-radius: 999px;
    padding: 10px 12px;
  }
}

.home-page .popular-banner {
  min-height: var(--home-strip-min-height);
  padding: var(--home-strip-pad-y) calc(var(--home-strip-pad-x) + 6px);
  background: var(--home-strip-bg);
  border: 1px solid var(--home-strip-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}

.home-page .popular-body {
  padding: 16px var(--home-panel-pad) 24px;
}

.home-page .popular-card {
  min-height: 0;
  padding: clamp(14px, 1.5vw, 18px);
  gap: 8px;
}

.home-page .popular-card__logo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: 220px;
  border-radius: 20px;
  padding: clamp(10px, 1.2vw, 14px);
}

.home-page .popular-name {
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-page .popular-count {
  font-size: 0.85rem;
}

.home-page .operations-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(251, 252, 255, 0.98), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 30px 65px rgba(15, 23, 42, 0.1);
}

.home-page .operations-section::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -10%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-2) 18%, transparent), transparent 60%);
  opacity: 0.8;
  pointer-events: none;
}

.home-page .operations-section::after {
  content: "";
  position: absolute;
  inset: auto -15% -35% auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent-3) 20%, transparent), transparent 62%);
  opacity: 0.7;
  pointer-events: none;
}

.home-page .operations-track {
  counter-reset: op-step;
  --circle-size: 112px;
  --dot-size: 10px;
  gap: clamp(14px, 2.2vw, 28px);
  padding: 18px 10px 6px;
}

.home-page .operations-track::before {
  height: 0;
  background: transparent;
}

.home-page .operation-step {
  counter-increment: op-step;
  animation: opRise 0.65s ease both;
}

.home-page .operation-step:nth-child(1) { animation-delay: 0.05s; }
.home-page .operation-step:nth-child(2) { animation-delay: 0.12s; }
.home-page .operation-step:nth-child(3) { animation-delay: 0.19s; }
.home-page .operation-step:nth-child(4) { animation-delay: 0.26s; }
.home-page .operation-step:nth-child(5) { animation-delay: 0.33s; }

.home-page .operation-circle {
  background: #ffffff;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, #ffffff);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .operation-circle::before {
  display: none;
}

.home-page .operation-circle::after {
  display: none;
}

.home-page .operation-step:hover .operation-circle {
  transform: translateY(-4px);
  box-shadow: 0 28px 55px rgba(15, 23, 42, 0.18);
}

.home-page .operation-icon {
  width: 46px;
  height: 46px;
  stroke: color-mix(in srgb, var(--ink) 80%, #000000);
  stroke-width: 1.7;
}

.home-page .operation-icon .accent {
  stroke: var(--accent);
  fill: none;
}

.home-page .operation-dot {
  width: var(--dot-size);
  height: var(--dot-size);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.14);
}

.home-page .operation-label {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  color: color-mix(in srgb, var(--ink) 85%, #000000);
}

@keyframes opRise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-page .application-grid {
  grid-template-columns: 1fr;
}

.home-page .application-card.achievement-card {
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
}

.home-page .application-card.achievement-card .achieve-heading {
  margin: 0;
  min-height: var(--home-strip-min-height);
  padding: var(--home-strip-pad-y) calc(var(--home-strip-pad-x) + 6px);
  background: var(--home-strip-bg);
  border: 1px solid var(--home-strip-border);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  align-items: flex-start;
}

.home-page .application-card.achievement-card .achieve-heading p {
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.85);
}

.home-page .application-card.achievement-card .achieve-heading h3::before,
.home-page .application-card.achievement-card .achieve-heading h3::after {
  display: none;
}

.home-page .achieve-heading h3 span {
  color: inherit;
}

.home-page .application-card.achievement-card .achieve-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding: 20px var(--home-panel-pad) 24px;
}

.home-page .application-card.achievement-card .achieve-card {
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

@media (max-width: 900px) {
  .home-page .application-card.achievement-card .achieve-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .home-page .application-card.achievement-card .achieve-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .home-page .home-hero-banner {
    height: clamp(560px, 130vw, 820px);
    border-radius: 26px;
  }

  .home-page .home-banner-overlay {
    justify-content: flex-end;
    padding: 28px 22px 120px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.1) 0%, rgba(15, 23, 42, 0.75) 70%, rgba(15, 23, 42, 0.95) 100%);
  }

  .home-page .popular-body {
    padding: 12px var(--home-panel-pad) 16px;
  }

  .home-page .popular-grid.top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .home-page .popular-card {
    min-height: 140px;
    padding: 12px;
    border-radius: 16px;
    gap: 6px;
  }

  .home-page .popular-card__logo {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    padding: 10px;
  }

  .home-page .popular-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .home-page .popular-name {
    font-size: 0.85rem;
  }

  .home-page .popular-count {
    font-size: 0.75rem;
  }

  .home-page .operation-circle {
    border-radius: 50%;
    overflow: hidden;
  }

  .home-page .operation-circle::before {
    border-radius: 50%;
  }

}

.home-page .residential-section .project-grid > .project-card:nth-child(n + 5),
.home-page .commercial-section .project-grid > .project-card:nth-child(n + 5) {
  display: none;
}

@media (max-width: 900px) {
  .home-page .residential-section .project-grid > .project-card:nth-child(n + 3),
  .home-page .commercial-section .project-grid > .project-card:nth-child(n + 3) {
    display: none;
  }
}

.home-page .project-section .proj-title {
  font-size: 1.08rem;
  line-height: 1.35;
}

.home-page {
  --filter-card-bg: rgba(255, 255, 255, 0.94);
  --filter-card-border: rgba(15, 23, 42, 0.12);
  --filter-card-shadow: 0 18px 45px rgba(15, 23, 42, 0.2);
  --filter-tab-bg: color-mix(in srgb, var(--text) 12%, transparent);
}

.home-universal-filter {
  position: absolute;
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(860px, calc(100% - 32px));
  padding: 14px 16px 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.22);
  z-index: 3;
  max-height: calc(100% - 32px);
  overflow: visible;
  backdrop-filter: blur(14px);
}

.home-universal-filter .filter-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  border-radius: 16px;
  background: var(--filter-tab-bg);
  justify-content: center;
}

.home-universal-filter .filter-tab {
  border-radius: 12px;
  padding: 6px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-3);
  background: linear-gradient(transparent, transparent) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--accent-2) 35%, transparent), color-mix(in srgb, var(--accent) 35%, transparent)) border-box;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.home-universal-filter .filter-tab.is-active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
  transform: translateY(-1px);
}

.home-universal-filter .filter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-universal-filter .filter-details {
  display: none;
}

.home-universal-filter.filters-open .filter-details {
  display: block;
  margin-top: 10px;
}

.home-universal-filter .filter-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 10px;
  align-items: end;
  justify-content: center;
}

.home-universal-filter .filter-row.utility-row {
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: end;
}

.home-universal-filter .filter-row.utility-row .filter-toggle-field {
  justify-self: start;
}

.home-universal-filter .filter-row.utility-row .action-field {
  justify-self: end;
}

.home-universal-filter .filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  font-weight: 700;
  color: var(--ink-3);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.home-universal-filter .filter-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-universal-filter .filter-toggle-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.home-universal-filter .filter-toggle-caret {
  transition: transform 0.2s ease;
}

.home-universal-filter.filters-open .filter-toggle-caret {
  transform: rotate(180deg);
}

.home-universal-filter .filter-row.extra-row {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-auto-flow: dense;
}

.home-universal-filter[data-mode="projects"] [data-field="budget"],
.home-universal-filter[data-mode="projects"] [data-field="status"] {
  display: none;
}

.home-universal-filter[data-mode="projects"] .filter-row.main-row {
  grid-template-columns: minmax(150px, 180px) minmax(150px, 180px);
}

.home-universal-filter[data-mode="projects"] .filter-submit {
  min-width: 90px;
  padding: 8px 12px;
}

.home-universal-filter.filters-open[data-mode="sell"] .filter-details {
  display: grid;
  grid-template-columns: minmax(130px, 170px) minmax(130px, 170px) minmax(180px, 1fr) minmax(180px, 1fr) minmax(170px, 200px);
  gap: 10px;
  align-items: end;
}

.home-universal-filter[data-mode="sell"] .filter-row.main-row,
.home-universal-filter[data-mode="sell"] .filter-row.extra-row {
  display: contents;
}

.home-universal-filter[data-mode="sell"] .filter-submit {
  min-width: 90px;
  padding: 8px 12px;
}

@media (max-width: 1200px) {
  .home-universal-filter.filters-open[data-mode="sell"] .filter-details {
    display: block;
  }

  .home-universal-filter[data-mode="sell"] .filter-row.main-row {
    display: grid;
    grid-template-columns: minmax(120px, 150px) minmax(120px, 150px) minmax(150px, 1fr);
    align-items: end;
  }

  .home-universal-filter[data-mode="sell"] .filter-row.extra-row {
    display: grid;
  }
}

.home-universal-filter .filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  position: relative;
}

.home-universal-filter .filter-field.is-hidden {
  display: none;
}

.home-universal-filter .filter-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.home-universal-filter .filter-field select,
.home-universal-filter .filter-field input {
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 8px 10px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}

.home-universal-filter .filter-field select:focus,
.home-universal-filter .filter-field input:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 25%, transparent);
}

.home-universal-filter .dual-input {
  display: flex;
  gap: 6px;
}

.home-universal-filter .action-field {
  align-self: end;
}

.home-universal-filter .filter-submit {
  width: auto;
  min-width: 110px;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.95rem;
}

.home-universal-filter .search-field {
  position: relative;
}

.home-universal-filter .search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  display: none;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
  z-index: 4;
}

.home-universal-filter .search-suggestions.is-open {
  display: flex;
}

.home-universal-filter .search-suggestion {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
}

.home-universal-filter .search-suggestion:hover,
.home-universal-filter .search-suggestion:focus {
  background: color-mix(in srgb, var(--accent-2) 10%, transparent);
  outline: none;
}

.home-universal-filter .suggestion-meta {
  font-size: 0.72rem;
  color: var(--text-muted-1);
  font-weight: 500;
}

.home-universal-filter .budget-field {
  position: relative;
}

.home-universal-filter .budget-toggle {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  background: linear-gradient(#fff, #fff) padding-box,
    linear-gradient(135deg, var(--accent), var(--accent-2)) border-box;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  width: 100%;
}

.home-universal-filter .budget-field.is-open .budget-toggle {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-2) 22%, transparent);
}

.home-universal-filter .budget-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.2);
  padding: 10px;
  display: none;
  z-index: 4;
}

.home-universal-filter .budget-field.is-open .budget-panel {
  display: block;
}

.home-universal-filter .budget-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.home-universal-filter .budget-range {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.home-universal-filter .budget-range input[type="range"] {
  width: 100%;
}

@media (max-width: 900px) {
  .home-universal-filter {
    width: min(720px, calc(100% - 24px));
    padding: 12px;
  }

  .home-universal-filter .filter-tabs {
    grid-template-columns: repeat(2, minmax(100px, 135px));
  }

  .home-universal-filter .filter-row {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .home-universal-filter .filter-row.extra-row {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }

  .home-universal-filter .action-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .home-universal-filter {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: 12px;
    transform: none;
    max-height: calc(100% - 20px);
    overflow-y: auto;
  }

  .home-universal-filter .filter-row {
    grid-template-columns: 1fr;
  }

  .home-universal-filter .filter-tabs {
    grid-template-columns: repeat(4, minmax(70px, 1fr));
    gap: 4px;
    padding: 3px;
  }

  .home-universal-filter .filter-tab {
    font-size: 0.82rem;
    padding: 5px 6px;
  }

  .home-universal-filter .filter-row.utility-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "search search"
      "toggle action";
  }

  .home-universal-filter .filter-row.utility-row .filter-toggle-field {
    grid-area: toggle;
    justify-self: start;
  }

  .home-universal-filter .filter-row.utility-row .search-field {
    grid-area: search;
  }

  .home-universal-filter .filter-row.utility-row .action-field {
    grid-area: action;
    justify-self: end;
  }

  .home-universal-filter[data-mode="builder"] .filter-details .filter-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-universal-filter .budget-panel {
    position: static;
    box-shadow: none;
    margin-top: 8px;
  }
}

@media (max-width: 520px) {
  .home-universal-filter .filter-tabs {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .home-universal-filter .filter-row.utility-row {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "toggle"
      "action";
  }

  .home-universal-filter .filter-row.utility-row .filter-toggle-field,
  .home-universal-filter .filter-row.utility-row .action-field {
    justify-self: stretch;
  }

  .home-universal-filter .filter-submit {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .home-universal-filter .filter-tab {
    font-size: 0.78rem;
    padding: 5px 6px;
  }
}

.home-page .blog-section .blog-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(18px, 2vw, 28px);
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: 36px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent) 10%, #ffffff));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  box-shadow: 0 26px 55px rgba(15, 23, 42, 0.14);
  position: relative;
  overflow: hidden;
  align-items: stretch;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .blog-section .blog-card::before {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--accent) 28%, transparent),
    color-mix(in srgb, var(--accent-2) 10%, transparent)
  );
  opacity: 0.7;
  pointer-events: none;
}

.home-page .blog-section .blog-media {
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.16);
}

.home-page .blog-section .blog-copy {
  position: relative;
  z-index: 1;
  gap: 16px;
}

.home-page .blog-section .blog-copy .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--accent);
  background: transparent;
  padding: 0;
}


.home-page .blog-section .blog-copy h3 {
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  color: var(--ink-strong);
}

.home-page .blog-section .blog-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted-7);
}

.home-page .blog-section .blog-actions .btn.primary {
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--accent) 20%, transparent);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
}

.home-page .blog-section .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 64px rgba(15, 23, 42, 0.18);
}

.home-page .blog-collection .blog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.home-page .blog-collection .blog-card {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), color-mix(in srgb, var(--accent) 8%, #ffffff));
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-page .blog-collection .blog-card::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.home-page .blog-collection .blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
}

.home-page .blog-collection .blog-card-image {
  height: 210px;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 12%, transparent);
}

.home-page .blog-collection .blog-card-body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-page .blog-collection .blog-card-body .eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  padding: 0;
}

.home-page .blog-collection .blog-card-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}

.home-page .blog-collection .blog-card-body p {
  flex-grow: 1;
}

.home-page .blog-collection .blog-card-body .btn.primary {
  align-self: flex-start;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--btn-ghost-bg);
  color: var(--btn-ghost-text);
  border: var(--btn-ghost-border);
  box-shadow: var(--btn-ghost-shadow);
}

.home-page .btn.primary,
.home-page .btn.ghost,
.home-page .btn.card-cta {
  background: var(--home-strip-bg);
  color: var(--home-strip-text);
  border: 1px solid var(--home-strip-border);
  box-shadow: var(--home-strip-shadow);
}

.home-page .btn.primary:hover,
.home-page .btn.ghost:hover,
.home-page .btn.card-cta:hover {
  box-shadow: var(--home-strip-hover-shadow);
}

@media (max-width: 900px) {
  .home-page .blog-section .blog-card {
    grid-template-columns: 1fr;
  }

  .home-page .blog-section .blog-copy h3 {
    letter-spacing: 0.08em;
  }

  .home-page .blog-section .blog-copy .eyebrow::after {
    width: 80px;
  }

  .home-page .blog-collection .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .home-page .blog-collection .blog-card:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1100px) {
  .home-page .blog-collection .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .home-page .why-card h4 {
    font-size: 1.02rem;
    line-height: 1.35;
  }
}
