/* ==========================================================================
   HOMEPAGE SPECIFIC STYLES (home.css)
   Coldwell Banker White Wings Hero Scroll Expansion & Stepped Architecture
   ========================================================================== */

:root {
  --cb-notch-w: 50%;
  --cb-notch-h: 260px;
  --cb-header-h: 150px;
}

/* Fluid responsive notch width maintained at ~50% across desktop viewports */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --cb-notch-w: max(50%, 620px);
    --cb-notch-h: 260px;
    --cb-header-h: 150px;
  }
}

@media (min-width: 1025px) {
  :root {
    --cb-notch-w: 50%;
    --cb-notch-h: 260px;
    --cb-header-h: 150px;
  }
}


/* 1. Hero Track & Stage: Clean static viewport banner */
.cb-hero-track {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #ffffff;
}

.cb-hero-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 650px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 2. Hero Search Area: Sits on white notch under the header */
.cb-hero__top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
  width: 100%;
  max-width: 1720px;
  padding: 7.25rem 2rem 0;
  z-index: 20;
  pointer-events: auto;
  will-change: opacity;
}

@media (max-width: 767px) {
  .cb-hero__top {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 75%;
    height: auto;
    min-height: 0;
    background-color: #ffffff;
    padding: 7.25rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .cb-search-form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 479px) {
  .cb-hero__top {
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    width: 75%;
    height: auto;
    min-height: 0;
    background-color: #ffffff;
    padding: 9rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .cb-search-form {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .cb-hero__top {
    background-color: transparent;
    padding: 11.5rem 3.5rem 0;
  }
}

@media (min-width: 1280px) {
  .cb-hero__top {
    padding: 11.5rem 4.5rem 0;
  }
}

.cb-hero__top .cb-search-bar {
  pointer-events: auto;
}

/* Flat Minimalist Search Bar */
.cb-search-bar {
  display: inline-flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  transform-origin: center center;
  will-change: transform, opacity;
}

@media (min-width: 768px) {
  .cb-search-bar {
    width: clamp(500px, calc(50vw - var(--cb-header-edge-offset-x, 3.5rem) - 36px), 820px);
  }
}

.cb-search-bar__body {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  width: 100%;
}

/* Mode Switcher Tabs */
.cb-search-tabs {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding-right: 1.25rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .cb-search-tabs {
    gap: 1.5rem;
    padding-right: 1.5rem;
  }
}

.cb-search-tab {
  background: none;
  border: none;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #64748b;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.35rem 0;
  position: relative;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.cb-search-tab:hover {
  color: #012169;
}

.cb-search-tab-old-hover {
  color: #27272a;
}

.cb-search-tab.is-active {
  color: #012169 !important;
  font-weight: 700 !important;
  color: #27272a;
  font-weight: 600;
}

/* Zero underline bar */
.cb-search-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #012169;
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
}

.cb-search-tab:hover::after {
  transform: scaleX(0.5);
  background-color: #94a3b8;
}

.cb-search-tab::after,
.cb-search-tab:hover::after,
.cb-search-tab.is-active::after {
  display: none !important;
  content: none !important;
}

.cb-search-tab-no-underline {
  display: block !important;
  transform: scaleX(1) !important;
  background-color: #012169 !important;
}

.cb-search-tab-deprecated {
  display: none;
}

/* Vertical Separator Divider */
.cb-search-divider {
  width: 1px;
  height: 38px;
  background-color: #d4d4d8;
  flex-shrink: 0;
}

/* Search Input Core */
.cb-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.85rem;
  min-width: 0;
  flex: 1;
}

.cb-search-icon {
  color: #9ca3af;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.cb-search-input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  min-width: 0;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: #27272a;
  text-transform: uppercase;
  font-weight: 400;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  margin: 0;
  line-height: normal;
}

.cb-search-input::-webkit-search-decoration,
.cb-search-input::-webkit-search-cancel-button,
.cb-search-input::-webkit-search-results-button,
.cb-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}

.cb-search-input::placeholder {
  color: #9ca3af;
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* Filter Equalizer Icon Button */
.cb-search-filter-btn {
  background: none;
  border: none;
  color: #64748b;
  padding: 0.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cb-search-filter-btn svg,
.cb-search-filter-btn img {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.cb-search-filter-btn:hover,
.cb-search-filter-btn.is-active {
  color: #18181b;
  transform: scale(1.08);
}

/* Submit Arrow Circle Button */
.cb-search-submit {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #012169;
  border: none;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin-left: 0.85rem;
  padding: 0;
  line-height: 1;
  box-sizing: border-box;
  transition: background-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.cb-search-submit svg,
.cb-search-submit img {
  width: 13px;
  height: 13px;
  display: block;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.cb-search-submit:hover {
  background-color: #001533;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 32, 74, 0.25);
}

.cb-search-submit:hover svg,
.cb-search-submit:hover img {
  transform: translateX(2px);
}

@media (max-width: 767px) {
  .cb-search-bar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    row-gap: 0.5rem;
    column-gap: 0.5rem;
    align-items: center;
    width: 100%;
  }

  .cb-search-bar__body {
    display: contents;
  }

  .cb-search-tabs {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    gap: 1.15rem;
    padding-right: 0;
  }

  .cb-search-divider {
    display: none;
  }

  .cb-search-input-wrap {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    height: 36px;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .cb-search-input {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
    font-size: 0.75rem;
  }

  .cb-search-filter-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
  }

  .cb-search-submit {
    grid-column: 2;
    grid-row: 2;
    position: static;
    margin: 0;
    align-self: center;
    flex-shrink: 0;
  }
}

@media (max-width: 479px) {
  .cb-search-bar {
    row-gap: 0.45rem;
    column-gap: 0.45rem;
  }

  .cb-search-tabs {
    gap: 0.85rem;
  }

  .cb-search-tab {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
  }

  .cb-search-input-wrap {
    height: 34px;
    padding: 0;
    gap: 0.35rem;
    display: flex;
    align-items: center;
  }

  .cb-search-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .cb-search-input {
    flex: 1 1 auto;
    min-width: 0;
    width: 0;
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }

  .cb-search-input::placeholder {
    letter-spacing: 0.03em;
    font-size: 0.68rem;
  }

  .cb-search-filter-btn {
    flex-shrink: 0;
    padding: 0.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cb-search-filter-btn svg,
  .cb-search-filter-btn img {
    width: 18px;
    height: 18px;
    display: block;
  }

  .cb-search-submit {
    width: 28px;
    height: 28px;
    position: static;
    margin: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cb-search-submit svg,
  .cb-search-submit img {
    width: 11px;
    height: 11px;
    display: block;
  }
}

/* ==========================================================================
   ADVANCED FILTER PANEL (cb-filter-panel)
   Expanded on click of equalizer filter button on the 50% white notch
   ========================================================================== */

.cb-search-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.cb-filter-panel {
  display: none;
  width: 100%;
  max-width: clamp(500px, calc(50vw - var(--cb-header-edge-offset-x, 3.5rem) - 36px), 820px);
  max-height: calc(100vh - 270px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2.6rem;
  padding-bottom: 2rem;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.cb-filter-panel::-webkit-scrollbar {
  width: 5px;
}

.cb-filter-panel::-webkit-scrollbar-track {
  background: transparent;
}

.cb-filter-panel::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
  border-radius: 4px;
}

.cb-filter-panel::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}

.cb-filter-panel.is-open {
  display: block;
}

@keyframes cbFilterFadeDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dividers */
.cb-filter-panel__divider-top {
  width: 100%;
  height: 1px;
  background-color: #71717a;
  margin-top: 1.5rem;
  margin-bottom: 0.85rem;
}

.cb-filter-panel__divider-bottom {
  width: 100%;
  height: 1px;
  background-color: #71717a;
  margin-top: 0.85rem;
  margin-bottom: 1.5rem;
}

/* Header */
.cb-filter-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.75rem 0;
}

.cb-filter-panel__title {
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #3f3f46;
  text-transform: uppercase;
}

.cb-filter-panel__actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.cb-filter-panel__action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cb-filter-panel__action-btn:hover {
  color: #18181b;
  transform: scale(1.08);
}

.cb-filter-panel__action-btn svg,
.cb-filter-panel__action-btn img {
  display: block;
  pointer-events: none;
}

#cbFilterClose svg,
#cbFilterClose img {
  width: 30px;
  height: 30px;
}

#cbFilterReset svg,
#cbFilterReset img {
  width: 22px;
  height: 22px;
}

/* Field Groups & Labels */
.cb-filter-group {
  margin: 1.75rem 0;
  width: 100%;
}

.cb-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.75rem 0;
  width: 100%;
}

@media (max-width: 639px) {
  .cb-filter-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cb-filter-col {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cb-filter-label {
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: block;
}

/* Inputs & Boxes - Unified 48px Height & Exact Two-Column Alignment */
.cb-filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  position: relative;
}

@media (max-width: 639px) {
  .cb-filter-price-row {
    gap: 0.95rem;
  }
}

.cb-filter-dash {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #71717a;
  font-size: 0.95rem;
  line-height: 1;
  pointer-events: none;
  z-index: 2;
  text-align: center;
}

.cb-filter-box {
  border: 1px solid #71717a;
  background-color: #ffffff;
  height: 60px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cb-filter-box:focus-within {
  border-color: var(--primary, #012169);
  box-shadow: 0 0 0 1px var(--primary, #012169);
}

.cb-filter-input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1e2229;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0;
}

.cb-filter-input:focus,
.cb-filter-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.cb-filter-input::placeholder {
  color: #a1a1aa;
}

/* Select Dropdown with vertical partition line */
.cb-filter-box.cb-filter-select-wrap {
  position: relative;
  padding: 0;
}

.cb-filter-select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1e2229;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0 44px 0 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.cb-filter-select:focus,
.cb-filter-select:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.cb-filter-select-arrow {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #71717a;
  color: #64748b;
  pointer-events: none;
  transition: border-color 0.2s ease;
}

.cb-filter-box.cb-filter-select-wrap:focus-within .cb-filter-select-arrow {
  border-left-color: var(--primary, #012169);
}

/* Segmented Control Buttons */
.cb-filter-segmented {
  display: flex;
  border: 1px solid #71717a;
  background-color: #ffffff;
  width: 100%;
  box-sizing: border-box;
  height: 48px;
}

.cb-filter-segment {
  flex: 1;
  height: 100%;
  border: none;
  border-right: 1px solid #71717a;
  background: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cb-filter-segment:last-child {
  border-right: none;
}

.cb-filter-segment.is-active {
  background-color: var(--primary, #012169) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px var(--primary, #012169);
}

.cb-filter-segment:focus-visible {
  outline: 2px solid var(--primary, #012169);
  outline-offset: -2px;
}

.cb-filter-segment-old-active {
  background-color: #f4f4f5;
  color: #18181b;
  font-weight: 600;
}

.cb-filter-segment:hover:not(.is-active) {
  background-color: #f1f5f9;
  color: #012169;
}

.cb-filter-segment-old-hover {
  background-color: #f8fafc;
  color: #18181b;
}

/* Footer & Done Button */
.cb-filter-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
  width: 100%;
}

@media (max-width: 639px) {
  .cb-filter-footer {
    justify-content: stretch;
  }
}

.cb-filter-done-btn {
  background-color: #404040;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 135px;
  height: 48px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

@media (max-width: 639px) {
  .cb-filter-done-btn {
    width: 100%;
  }
}

.cb-filter-done-btn:hover {
  background-color: #262626;
}

.cb-filter-panel .cb-recaptcha-notice {
  text-align: left;
  margin-top: 1.75rem;
  color: #94a3b8;
  font-size: 0.6875rem;
  line-height: 1.45;
}

/* ==========================================================================
   RESPONSIVE FILTER PANEL GEOMETRY (Compact Heights, Laptops & Mobile)
   Ensures the entire filter panel and DONE action remain 100% accessible
   and smoothly scrollable on small screens without bottom cropping.
   ========================================================================== */

@media (min-width: 768px) and (max-height: 900px) {
  .cb-filter-panel {
    max-height: calc(100vh - 270px);
    padding-bottom: 2rem;
  }

  .cb-filter-group {
    margin: 1.25rem 0;
  }

  .cb-filter-row {
    margin: 1.25rem 0;
    gap: 1rem;
  }

  .cb-filter-label {
    margin-bottom: 0.65rem;
  }

  .cb-filter-panel__header {
    padding: 1rem 0;
  }

  .cb-filter-panel__divider-top {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .cb-filter-panel__divider-bottom {
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .cb-filter-footer {
    margin-top: 1.15rem;
  }
}

@media (min-width: 768px) and (max-height: 720px) {
  .cb-filter-panel {
    max-height: calc(100vh - 260px);
    padding-bottom: 1.75rem;
  }

  .cb-filter-group {
    margin: 0.85rem 0;
  }

  .cb-filter-row {
    margin: 0.85rem 0;
    gap: 0.85rem;
  }

  .cb-filter-label {
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
  }

  .cb-filter-box {
    height: 42px;
  }

  .cb-filter-segmented {
    height: 40px;
  }

  .cb-filter-panel__header {
    padding: 0.65rem 0;
  }

  .cb-filter-footer {
    margin-top: 0.85rem;
  }

  .cb-filter-done-btn {
    height: 40px;
  }
}

@media (max-width: 767px) {
  .cb-hero-stage.has-filters-open .cb-hero__top {
    width: 88%;
  }

  .cb-filter-panel {
    max-width: 100%;
    max-height: calc(100vh - 220px);
    padding-bottom: 2.5rem;
  }

  .cb-filter-group {
    margin: 1rem 0;
  }

  .cb-filter-row {
    margin: 1rem 0;
    gap: 0.85rem;
  }

  .cb-filter-label {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
  }

  .cb-filter-panel__header {
    padding: 0.75rem 0;
  }

  .cb-filter-panel__divider-top {
    margin-top: 0.65rem;
    margin-bottom: 0.45rem;
  }

  .cb-filter-panel__divider-bottom {
    margin-top: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .cb-filter-box {
    height: 44px;
  }

  .cb-filter-segmented {
    height: 40px;
  }

  .cb-filter-footer {
    margin-top: 1rem;
  }

  .cb-filter-done-btn {
    height: 42px;
  }
}

@media (max-width: 479px) {
  .cb-hero-stage.has-filters-open .cb-hero__top {
    width: 92%;
    padding-top: 5.25rem;
  }

  .cb-filter-panel {
    max-height: calc(100vh - 130px);
    padding-bottom: 3rem;
  }

  .cb-filter-group {
    margin: 0.85rem 0;
  }

  .cb-filter-row {
    margin: 0.85rem 0;
    gap: 0.75rem;
  }

  .cb-filter-box {
    height: 42px;
    padding: 0 0.75rem;
  }

  .cb-filter-input {
    font-size: 0.75rem;
  }

  .cb-filter-select {
    font-size: 0.75rem;
  }

  .cb-filter-segment {
    font-size: 0.7rem;
  }

  .cb-filter-segmented {
    height: 38px;
  }
}

/* 4. Hero Photography Canvas with Stepped Cutout (GSAP ScrollTrigger Scrubbing) */
.cb-hero__image-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background-color: #ffffff;
  clip-path: polygon(0px var(--cb-notch-h, 220px),
      var(--cb-notch-w, 50%) var(--cb-notch-h, 220px),
      var(--cb-notch-w, 50%) var(--cb-header-h, 150px),
      100% var(--cb-header-h, 150px),
      100% 100%,
      0% 100%);
  -webkit-clip-path: polygon(0px var(--cb-notch-h, 220px),
      var(--cb-notch-w, 50%) var(--cb-notch-h, 220px),
      var(--cb-notch-w, 50%) var(--cb-header-h, 150px),
      100% var(--cb-header-h, 150px),
      100% 100%,
      0% 100%);
}

@media (max-width: 767px) {
  .cb-hero__image-layer {
    clip-path: polygon(0px var(--cb-notch-h, 215px),
        75% var(--cb-notch-h, 215px),
        75% var(--cb-header-h, 90px),
        100% var(--cb-header-h, 90px),
        100% 100%,
        0% 100%);
  }

  .cb-hero__image {
    object-position: 85% 12%;
  }
}

@media (max-width: 479px) {
  .cb-hero__image-layer {
    clip-path: polygon(0px var(--cb-notch-h, 195px),
        75% var(--cb-notch-h, 195px),
        75% var(--cb-header-h, 80px),
        100% var(--cb-header-h, 80px),
        100% 100%,
        0% 100%);
  }

  .cb-hero__image {
    object-position: 85% 8%;
  }
}

.cb-hero-stage.has-filters-open .cb-hero__image-layer {
  clip-path: polygon(0px 100%,
      var(--cb-notch-w, 50%) 100%,
      var(--cb-notch-w, 50%) var(--cb-header-h, 150px),
      100% var(--cb-header-h, 150px),
      100% 100%,
      0% 100%);
}

/* Full-height pristine white left division when filters are open */
.cb-hero-stage.has-filters-open::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cb-notch-w, 50%);
  height: 100%;
  background-color: #ffffff;
  z-index: 2;
  pointer-events: none;
}

/* Luxury blue shade overlay on right side when filters are open (positioned below the header) */
.cb-hero-stage.has-filters-open::after {
  content: '';
  position: absolute;
  top: var(--cb-header-h, 150px);
  right: 0;
  width: calc(100% - var(--cb-notch-w, 50%));
  height: calc(100% - var(--cb-header-h, 150px));
  background-color: rgba(67, 101, 180, 0.18);
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
  transition: opacity 0.35s ease;
  animation: cbBlueShadeFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Smooth exit transition for overlays when closing filters */
.cb-hero-stage.is-filters-closing::after,
.cb-hero-stage.is-filters-closing::before {
  opacity: 0 !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Maintain full navbar visibility and navy contrast when filter panel is open */
body:has(.has-filters-open) .cb-header {
  background-color: #ffffff !important;
  pointer-events: auto !important;
}

body:has(.has-filters-open) .cb-hamburger__overlay {
  display: none !important;
}

body:has(.has-filters-open) .cb-hamburger__line {
  background-color: var(--primary, #012169) !important;
}

@keyframes cbBlueShadeFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (max-width: 767px) {
  .cb-hero-stage.has-filters-open {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .cb-hero-stage.has-filters-open .cb-hero__top {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    padding-bottom: 3.5rem;
    transform: none;
    left: 0;
  }

  .cb-hero-stage.has-filters-open::before {
    width: 100%;
    min-height: 100%;
    height: 100%;
  }

  .cb-hero-stage.has-filters-open::after {
    display: none;
  }

  .cb-hero-stage.has-filters-open .cb-hero__image-layer {
    display: none;
  }
}

.cb-hero-stage.has-filters-open .cb-hero__content {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cb-hero__content {
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cb-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 30%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  transform-origin: center center;
}

/* 5. High-Impact Headline */
.cb-hero__content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 3rem 2rem 3.5rem;
}

@media (max-width: 767px) {
  .cb-hero__content {
    padding: 2.5rem 1.5rem 3.5rem;
  }
}

@media (max-width: 479px) {
  .cb-hero__content {
    padding: 2rem 1rem 3rem;
  }

  .cb-hero__headline {
    font-size: 1.65rem;
    line-height: 1.18;
  }
}

@media (min-width: 768px) {
  .cb-hero__content {
    padding: 3.5rem 3.5rem 4.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-hero__content {
    padding: 4rem 4.5rem 8.5rem;
  }
}

.cb-hero__headline {
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 1.85rem;
  line-height: 1.16;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (min-width: 640px) {
  .cb-hero__headline {
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.18;
  }
}

@media (min-width: 1024px) {
  .cb-hero__headline {
    font-size: 1.7rem;
  }
}

@media (min-width: 1440px) {
  .cb-hero__headline {
    font-size: 2.15rem;
  }
}

.cb-hero__line-mask {
  display: block;
  overflow: hidden;
}

.cb-hero__line {
  display: block;
  will-change: transform, opacity;
}

/* ==========================================================================
   SECTION 2: STRATEGIC PILLARS & DUAL AUTHORITY STORY
   Royal Blue Canvas (#00226D)
   ========================================================================== */
.cb-authority-section {
  position: relative;
  z-index: 25;
  background-color: #00226D;
  color: #ffffff;
  padding: 5rem 0 6.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .cb-authority-section {
    padding: 7rem 0 3.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
  }
}

.cb-authority-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .cb-authority-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 640px) {
  .cb-authority-container {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .cb-authority-container {
    padding: 0 3.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-authority-container {
    padding: 0 4.5rem;
  }
}

/* 4 Feature Pillars Grid */
.cb-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media (max-width: 639px) {
  .cb-pillars-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 0.5rem;
  }

  .cb-pillars-grid::-webkit-scrollbar {
    display: none;
  }

  .cb-pillar-item {
    flex: 0 0 auto;
    width: 220px;
    scroll-snap-align: start;
  }

  .cb-pillar-title {
    font-size: 0.925rem;
    line-height: 1.35;
    letter-spacing: 0.02em;
    white-space: normal;
  }

  .cb-pillar-line-track {
    margin-top: 1.25rem;
  }
}

@media (min-width: 640px) {
  .cb-pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem 2rem;
  }

  .cb-pillar-title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .cb-pillars-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.8rem;
    margin-bottom: 3.5rem;
  }

  .cb-pillar-title {
    font-size: 1.25rem;
  }
}

.cb-pillar-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: transparent;
  border: none;
  padding: 0;
  text-align: left;
  outline: none;
  cursor: pointer;
}

.cb-pillar-title {
  font-family: var(--font-brand);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #a8a8a8;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.25s ease, font-weight 0.2s ease;
}

@media (min-width: 640px) {
  .cb-pillar-title {
    font-size: 1.125rem;
  }
}

@media (min-width: 1024px) {
  .cb-pillar-title {
    font-size: 1.25rem;
  }
}

@media (min-width: 1440px) {
  .cb-pillar-title {
    font-size: 1.35rem;
    line-height: 1.3;
  }
}

.cb-pillar-item:hover .cb-pillar-title {
  color: #cbd5e1;
}

.cb-pillar-item.is-active .cb-pillar-title {
  color: #ffffff;
  font-weight: 600;
}

/* Loading Line Track & Fill */
.cb-pillar-line-track {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: rgba(255, 255, 255, 0.4);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.cb-pillar-line-fill {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background-color: #ffffff;
  will-change: transform;
}

.cb-pillar-item.is-active .cb-pillar-line-track {
  height: 2px;
  opacity: 1;
}

/* Dual Authority Story Grid */
.cb-authority-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .cb-authority-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1440px) {
  .cb-authority-grid {
    gap: 1.8rem;
  }
}

/* Left Column: Architectural Photo */
.cb-authority-media {
  position: relative;
  width: 100%;
  min-height: 380px;
  height: 100%;
  overflow: hidden;
  background-color: #001a4d;
}

@media (min-width: 768px) {
  .cb-authority-media {
    min-height: 500px;
  }
}

@media (min-width: 1024px) {
  .cb-authority-media {
    min-height: 580px;
  }
}

.cb-authority-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-authority-media:hover .cb-authority-image {
  transform: scale(1.025);
}

/* Right Column: Stepped Midnight Navy Card */
.cb-authority-card {
  position: relative;
  width: 100%;
  min-height: 520px;
  background-color: #00122e;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  will-change: transform, opacity;

  /* Stepped polygon cutout */
  clip-path: polygon(0% 14%,
      31% 14%,
      31% 0%,
      100% 0%,
      100% 100%,
      0% 100%);
}

@media (max-width: 479px) {
  .cb-authority-card {
    min-height: 480px;
    padding: 1.15rem 1rem;
  }
}

@media (min-width: 768px) {
  .cb-authority-card {
    min-height: 560px;
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .cb-authority-card {
    min-height: 580px;
    padding: 1.75rem;
  }
}

/* Top Heading in Card */
.cb-authority-card__top {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

.cb-authority-heading {
  font-family: var(--font-brand);
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
  text-align: right;
}

@media (max-width: 479px) {
  .cb-authority-heading {
    font-size: 1.25rem;
  }
}

@media (min-width: 640px) {
  .cb-authority-heading {
    font-size: 1.75rem;
  }
}

@media (min-width: 1024px) {
  .cb-authority-heading {
    font-size: 2.1rem;
    line-height: 1.12;
  }
}

@media (min-width: 1440px) {
  .cb-authority-heading {
    font-size: 2.25rem;
    line-height: 1.12;
  }
}

/* Bottom Paragraph in Card */
.cb-authority-card__bottom {
  width: 100%;
  margin-top: 3rem;
}

.cb-authority-desc {
  font-family: var(--font-brand);
  font-size: 0.91rem;
  line-height: 1.6;
  font-weight: 300;
  color: #a8a8a8;
  margin: 0;
  max-width: 480px;
}

@media (min-width: 768px) {
  .cb-authority-desc {
    font-size: 0.91rem;
    line-height: 1.62;
    max-width: 500px;
  }
}

@media (min-width: 1280px) {
  .cb-authority-desc {
    font-size: 0.91rem;
    line-height: 1.62;
    max-width: 500px;
  }
}

/* ==========================================================================
   SECTION 3: FEATURED DEVELOPMENT SHOWCASE (Views 3 Lifestyle & Card)
   Unified single section designed for subsequent GSAP scroll choreography
   ========================================================================== */
/* Safety guard: Ensure GSAP pin-spacers carry section dark tones, never white void */
.pin-spacer:has(> .cb-authority-section),
.pin-spacer:has(> #cbAuthoritySection) {
  background-color: #00226D !important;
}

.pin-spacer:has(> .cb-development-section),
.pin-spacer:has(> #cbDevelopmentSection) {
  background-color: #030a18 !important;
}

.cb-development-section {
  position: relative;
  width: 100%;
  background-color: #030a18;
  overflow: hidden;
}

.cb-development-stage {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

@media (min-width: 1024px) {
  .cb-development-stage {
    min-height: 100vh;
  }
}

/* Full-Width Background Lifestyle Visual Layer */
.cb-development-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.cb-development-image,
.cb-development-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Background Dimming Scrim & Shadow Overlay (Activated as Card Scrolls In) */
.cb-development-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(3, 10, 24, 0.50) 0%, rgba(3, 10, 24, 0.50) 100%);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  will-change: opacity;
}

@media (max-width: 767px) {

  .cb-development-image,
  .cb-development-video {
    object-fit: cover;
    object-position: center 36%;
  }
}

/* Stepped Architectural Narrative Card Overlay Wrap */
.cb-development-card-wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 6rem 1rem 2.5rem 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  will-change: transform;
}

@media (max-width: 479px) {
  .cb-development-card-wrap {
    padding: 4.5rem 1rem 2rem 1rem;
  }
}

@media (min-width: 480px) {
  .cb-development-card-wrap {
    padding: 6rem 1.5rem 2.5rem 1.5rem;
  }
}

@media (min-width: 768px) {
  .cb-development-card-wrap {
    padding: 7rem 3.5rem 3rem 3.5rem;
  }
}

@media (min-width: 1024px) {
  .cb-development-card-wrap {
    padding: 8rem 3.5rem 3.5rem 3.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-development-card-wrap {
    padding: 8rem 4.5rem 3.5rem 4.5rem;
  }
}

/* The Stepped White Card */
.cb-development-card {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  will-change: transform, opacity;
  /* Signature stepped architectural notch cutout matching desktop */
  -webkit-clip-path: polygon(0% 0%, 69% 0%, 69% 14%, 100% 14%, 100% 100%, 0% 100%);
  clip-path: polygon(0% 0%, 69% 0%, 69% 14%, 100% 14%, 100% 100%, 0% 100%);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cb-development-card {
    -webkit-clip-path: polygon(0% 0%, 55% 0%, 55% 14%, 100% 14%, 100% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 55% 0%, 55% 14%, 100% 14%, 100% 100%, 0% 100%);
  }
}

@media (min-width: 1024px) {
  .cb-development-card {
    grid-template-columns: 48% 52%;
    align-items: stretch;
    min-height: 610px;
    -webkit-clip-path: none;
    clip-path: none;
  }
}

@media (min-width: 1440px) {
  .cb-development-card {
    grid-template-columns: 48% 52%;
    min-height: 680px;
  }
}

/* Left Elevated Stepped Tab: DEVELOPMENTS */
.cb-development-card__left {
  background-color: #ffffff;
  padding: 2.5rem 2rem 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

@media (max-width: 479px) {
  .cb-development-card__left {
    padding: 1.75rem 1.25rem 1.25rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cb-development-card__left {
    padding: 3rem 1.5rem 3rem 2rem;
  }
}

@media (min-width: 1440px) {
  .cb-development-card__left {
    padding: 3rem 2rem 3rem 2.5rem;
  }
}

.cb-development-heading {
  font-family: var(--font-brand);
  font-size: 1.85rem;
  font-weight: 700;
  color: #012169;
  white-space: nowrap;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}

@media (max-width: 479px) {
  .cb-development-heading {
    font-size: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.15;
  }
}

@media (min-width: 768px) {
  .cb-development-heading {
    font-size: 2.15rem;
    font-size: 1.75rem;
    line-height: 1.15;
  }
}

@media (min-width: 1024px) {
  .cb-development-heading {
    font-size: clamp(1.8rem, 2.8vw, 2.45rem);
    font-size: 2.1rem;
    line-height: 1.12;
  }
}

@media (min-width: 1440px) {
  .cb-development-heading {
    font-size: clamp(2rem, 3.2vw, 3.4rem);
    font-size: 2.25rem;
    line-height: 1.12;
  }
}

/* Right Lower Stepped Narrative Body */
.cb-development-card__right {
  background-color: #ffffff;
  padding: 1.2rem 1.25rem 1.2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 479px) {
  .cb-development-card__right {
    padding: 1.25rem 1.25rem 1.5rem 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cb-development-card__right {
    margin-top: 85px;
    /* Deep architectural step drop */
    padding: 1.5rem 2rem 1.5rem 3rem;
  }
}

@media (min-width: 1440px) {
  .cb-development-card__right {
    margin-top: 85px;
    padding: 1.75rem 1.75rem 1.75rem 0rem;
  }
}

.cb-development-card__top {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .cb-development-card__top {
    justify-content: flex-end;
  }
}

.cb-development-eyebrow {
  font-family: var(--font-brand);
  font-size: 1.2rem;
  font-weight: 500;
  color: #8896a6;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 1440px) {
  .cb-development-eyebrow {
    font-size: 1.2rem;
    letter-spacing: 0.09em;
  }
}

.cb-development-desc {
  font-family: var(--font-brand);
  font-size: 1.5rem;
  line-height: 1.34;
  font-weight: 400;
  color: #1e293b;
  letter-spacing: -0.015em;
  margin: auto 0 1rem 0;
  max-width: 480px;
}

@media (max-width: 479px) {
  .cb-development-desc {
    font-size: 1.15rem;
    line-height: 1.4;
  }
}

@media (min-width: 768px) {
  .cb-development-desc {
    font-size: 1.7rem;
    line-height: 1.34;
    max-width: 470px;
  }
}

@media (min-width: 1024px) {
  .cb-development-desc {
    font-size: 1.7rem;
    line-height: 1.32;
    max-width: 480px;
  }
}

@media (min-width: 1440px) {
  .cb-development-desc {
    font-size: 2rem;
    line-height: 1.3;
    max-width: 600px;
  }
}

.cb-development-actions {
  display: flex;
  justify-content: flex-start;
}

.cb-development-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  background-color: #363d48;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  border: none;
  border-radius: 0;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

@media (min-width: 1440px) {
  .cb-development-btn {
    padding: 0.95rem 2.25rem;
    font-size: 0.75rem;
  }
}

.cb-development-btn:hover {
  background-color: #1e242d;
}

/* ==========================================================================
   SECTION 4: WHERE WE CAN TAKE YOU (Services & Portfolio Quadrant)
   ========================================================================== */
.cb-take-you-section {
  background-color: #0a1730;
  color: #ffffff;
  padding: 5.5rem 0 4.5rem;
  width: 100%;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .cb-take-you-section {
    padding: 7rem 0 6rem;
  }
}

.cb-take-you-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .cb-take-you-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .cb-take-you-container {
    padding: 0 3.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-take-you-container {
    padding: 0 4.5rem;
  }
}

/* Section Header */
.cb-take-you__header {
  margin-bottom: 4.5rem;
}

@media (min-width: 1024px) {
  .cb-take-you__header {
    margin-bottom: 6rem;
  }
}

.cb-take-you__title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a8a8a8;
  text-transform: uppercase;
  margin: 0 0 1.75rem 0;
}

@media (max-width: 479px) {
  .cb-take-you__title {
    font-size: 1.15rem;
  }
}

@media (min-width: 768px) {
  .cb-take-you__title {
    font-size: 1.4rem;
  }
}

/* 4 Strategic Descriptions Grid with Loading Tracks */
.cb-take-you__desc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (max-width: 639px) {
  .cb-take-you__desc-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
    box-sizing: border-box;
  }

  .cb-take-you__desc-grid::-webkit-scrollbar {
    display: none;
  }

  .cb-take-you__desc-col {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }

  .cb-take-you__desc {
    font-size: 0.85rem;
    line-height: 1.45;
    max-width: 280px;
  }
}

@media (min-width: 640px) {
  .cb-take-you__desc-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }
}

@media (min-width: 1024px) {
  .cb-take-you__desc-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
  }
}

.cb-take-you__desc-col {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: none;
  padding: 0;
  outline: none;
  cursor: pointer;
}

/* Single Continuous Full-Width Divider Line Track */
.cb-take-you__line-track {
  display: flex;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
  margin: 0 0 2rem 0;
  padding: 0;
  border: none;
  position: relative;
  overflow: hidden;
}

.cb-take-you__segment {
  flex: 1;
  height: 100%;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: none;
}

.cb-take-you__fill {
  display: block;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

@media (max-width: 639px) {
  .cb-take-you__line-track {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
    gap: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 0 1.5rem 0;
    padding-left: calc(50% - 148px);
    padding-right: calc(50% - 148px);
    box-sizing: border-box;
  }

  .cb-take-you__line-track::-webkit-scrollbar {
    display: none;
  }

  .cb-take-you__segment {
    flex: 0 0 296px;
    width: 296px;
    height: 1px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: center;
    cursor: pointer;
    background: transparent;
  }
}

.cb-take-you__desc {
  font-family: var(--font-brand);
  font-size: 0.875rem;
  line-height: 1.55;
  font-weight: 300;
  color: #a8a8a8;
  margin: 0;
  max-width: 320px;
  transition: color 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1280px) {
  .cb-take-you__desc {
    font-size: 0.9375rem;
    line-height: 1.58;
  }
}

.cb-take-you__desc-col.is-active .cb-take-you__desc,
.cb-take-you__desc-col:hover .cb-take-you__desc {
  color: #ffffff;
  opacity: 1;
}

/* 4 Interactive Category Cards Grid */
.cb-take-you__cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (max-width: 639px) {
  .cb-take-you__cards-grid {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 1.5rem;
    padding-left: calc(50% - 140px);
    padding-right: calc(50% - 140px);
    box-sizing: border-box;
  }

  .cb-take-you__cards-grid::-webkit-scrollbar {
    display: none;
  }

  .cb-take-you__card {
    flex: 0 0 280px;
    width: 280px;
    scroll-snap-align: center;
  }

  .cb-take-you__label-wrap {
    margin-bottom: 0.75rem;
  }
}

@media (min-width: 640px) {
  .cb-take-you__cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.7rem;
  }
}

@media (min-width: 1024px) {
  .cb-take-you__cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1440px) {
  .cb-take-you__cards-grid {
    gap: 1.5rem;
  }
}

.cb-take-you__card--static {
  cursor: default !important;
}

.cb-take-you__card--static .cb-take-you__plus-btn {
  display: none !important;
}

.cb-take-you__card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  position: relative;
  color: inherit;
  cursor: pointer;
}

.cb-take-you__label-wrap {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin-bottom: 1.25rem;
}

.cb-take-you__label {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  transition: color 0.3s ease, opacity 0.3s ease;
}

@media (min-width: 1024px) {
  .cb-take-you__label {
    font-size: 1.25rem;
  }
}

.cb-take-you__card.is-active .cb-take-you__label,
.cb-take-you__card:hover .cb-take-you__label {
  color: #ffffff;
  opacity: 1;
}

.cb-take-you__media-wrap {
  position: relative;
  width: 100%;
}

.cb-take-you__media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #020b18;
  clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 100% 100%, 0 100%);
  transition: clip-path 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dynamic Active Card Highlight: Stepped Notch on active card or hover */
.cb-take-you__card.is-active .cb-take-you__media,
.cb-take-you__card:hover .cb-take-you__media {
  clip-path: polygon(0 0, 71.5% 0, 71.5% 14.5%, 100% 14.5%, 100% 100%, 0 100%);
}

.cb-take-you__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.cb-take-you__card.is-active .cb-take-you__img,
.cb-take-you__card:hover .cb-take-you__img {
  opacity: 1;
}

.cb-take-you__card:hover .cb-take-you__img {
  transform: scale(1.04);
}

/* Floating Plus Indicator Button inside top-right blank notch space of Active Card or hover */
.cb-take-you__plus-btn {
  position: absolute;
  top: 3%;
  right: 3%;
  transform: translate(50%, -50%) scale(0.6) rotate(-45deg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #ffffff;
  color: #0a1730;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

@media (min-width: 1280px) {
  .cb-take-you__plus-btn {
    width: 22px;
    height: 22px;
  }
}

.cb-take-you__card.is-active .cb-take-you__plus-btn,
.cb-take-you__card:hover .cb-take-you__plus-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translate(50%, -50%) scale(1) rotate(0deg);
}

.cb-take-you__card:hover .cb-take-you__plus-btn {
  transform: translate(50%, -50%) scale(1.1) rotate(90deg);
}

.cb-take-you__plus-btn svg,
.cb-take-you__plus-btn img {
  width: 13px;
  height: 13px;
  display: block;
}

/* ==========================================================================
   PART 2: WHY BUYERS AND INVESTORS CHOOSE WHITE WINGS
   ========================================================================== */
.cb-choose-us {
  margin-top: 3.5rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .cb-choose-us {
    margin-top: 8.5rem;
  }
}

.cb-choose-us__title {
  font-family: var(--font-brand);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a8a8a8;
  text-transform: uppercase;
  margin: 0 0 2.5rem 0;
}

@media (min-width: 768px) {
  .cb-choose-us__title {
    font-size: 1.4rem;
  }
}

.cb-choose-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 1024px) {
  .cb-choose-us__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .cb-choose-us__media {
    grid-column: span 2;
  }

  .cb-choose-us__list {
    grid-column: span 2;
  }
}

.cb-choose-us__media {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #020b18;
}

.cb-choose-us__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 9;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 1024px) {
  .cb-choose-us__img {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

.cb-choose-us__media:hover .cb-choose-us__img {
  transform: scale(1.03);
}

.cb-choose-us__list {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

.cb-choose-us__top-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
}

.cb-choose-us__item {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.cb-choose-us__line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.25);
  transform-origin: right center;
  transform: scaleX(0);
  will-change: transform;
}

@media (min-width: 768px) {
  .cb-choose-us__item {
    padding: 1.75rem 0;
  }
}

@media (min-width: 1024px) {
  .cb-choose-us__item {
    padding: 1.85rem 0;
  }
}

@media (min-width: 1280px) {
  .cb-choose-us__item {
    padding: 2.1rem 0;
  }
}

.cb-choose-us__item:hover {
  padding-left: 0.75rem;
}

.cb-choose-us__item-text {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.035em;
  color: #ffffff;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.35;
  transition: color 0.3s ease;
  will-change: transform, opacity;
}

@media (min-width: 768px) {
  .cb-choose-us__item-text {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .cb-choose-us__item-text {
    font-size: 1.2rem;
    letter-spacing: 0.04em;
  }
}

/* ==========================================================================
   SECTION 5: LET'S TALK PROPERTY (Stepped White Advisory Banner)
   ========================================================================== */
.cb-talk-section {
  background-color: #0a1730;
  width: 100%;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.cb-talk-stage {
  background-color: #ffffff;
  width: 100%;
  color: #1e242d;
  position: relative;
  -webkit-clip-path: polygon(0 0, 70% 0, 70% 4.5rem, 100% 4.5rem, 100% 100%, 0 100%);
  clip-path: polygon(0 0, 70% 0, 70% 4.5rem, 100% 4.5rem, 100% 100%, 0 100%);
}

@media (min-width: 480px) {
  .cb-talk-stage {
    -webkit-clip-path: polygon(0 0, 60% 0, 60% 4.5rem, 100% 4.5rem, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 60% 0, 60% 4.5rem, 100% 4.5rem, 100% 100%, 0 100%);
  }
}

.cb-talk-stage {
  @media (max-width: 0px) {}

  will-change: transform;
}

@media (min-width: 768px) {
  .cb-talk-stage {
    -webkit-clip-path: polygon(0 0, 50% 0, 50% 4.75rem, 100% 4.75rem, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 50% 0, 50% 4.75rem, 100% 4.75rem, 100% 100%, 0 100%);
  }
}

@media (min-width: 1024px) {
  .cb-talk-stage {
    -webkit-clip-path: polygon(0 0, 50% 0, 50% 5.25rem, 100% 5.25rem, 100% 100%, 0 100%);
    clip-path: polygon(0 0, 50% 0, 50% 5.25rem, 100% 5.25rem, 100% 100%, 0 100%);
  }
}

.cb-talk-container {
  width: 100%;
  max-width: 1720px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 480px) {
  .cb-talk-container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 768px) {
  .cb-talk-container {
    padding: 0 3.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-talk-container {
    padding: 0 4.5rem;
  }
}

/* Stepped Top Shelf Tab */
.cb-talk-tab {
  height: 4.5rem;
  display: flex;
  align-items: center;
}

@media (min-width: 768px) {
  .cb-talk-tab {
    height: 4.75rem;
  }
}

@media (min-width: 1024px) {
  .cb-talk-tab {
    height: 5.25rem;
  }
}

.cb-talk-eyebrow {
  white-space: nowrap;
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #a8a8a8;
  text-transform: uppercase;
  display: inline-block;
}

@media (min-width: 768px) {
  .cb-talk-eyebrow {
    white-space: nowrap;
    font-size: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .cb-talk-eyebrow {
    white-space: nowrap;
    font-size: 1.35rem;
  }
}

/* Main Body Content */
.cb-talk-body {
  padding: 2.5rem 0 2.5rem;
}

@media (max-width: 479px) {
  .cb-talk-body {
    padding: 2rem 0;
  }
}

@media (min-width: 768px) {
  .cb-talk-body {
    padding: 2.5rem 0 2.5rem;
  }
}

@media (min-width: 1024px) {
  .cb-talk-body {
    padding: 3.5rem 0 3.5rem;
  }
}

@media (min-width: 1440px) {
  .cb-talk-body {
    padding: 4.5rem 0 3.5rem;
  }
}

.cb-talk-row {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (min-width: 1024px) {
  .cb-talk-row {
    flex-direction: row;
    align-items: flex-start;
    /* justify-content: space-between; */
    justify-content: flex-end;
    gap: 3.5rem;
  }
}

@media (min-width: 1280px) {
  .cb-talk-row {
    gap: 3.5rem;
  }
}

.cb-talk-statement {
  font-family: var(--font-brand);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.5;
  color: #4a4a4a;
  margin: 0;
  max-width: 820px;
}

@media (max-width: 479px) {
  .cb-talk-statement {
    font-size: 1.15rem;
    line-height: 1.45;
  }
}

@media (min-width: 768px) {
  .cb-talk-statement {
    font-size: 1.55rem;
    line-height: 1.52;
  }
}

@media (min-width: 1280px) {
  .cb-talk-statement {
    font-size: 1.75rem;
    line-height: 1.2;
    max-width: 860px;
  }
}

@media (min-width: 1440px) {
  .cb-talk-statement {
    font-size: 1.9rem;
    max-width: 960px;
  }
}

.cb-talk-cta {
  flex-shrink: 0;
}

.cb-talk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #4a4a4a;
  color: #ffffff;
  font-family: var(--font-brand);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.15rem 2.25rem;
  white-space: nowrap;
  border: none;
  border-radius: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 479px) {
  .cb-talk-btn {
    padding: 0.95rem 1.75rem;
    font-size: 0.75rem;
  }
}

.cb-talk-btn:hover {
  background-color: #0a1730;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 23, 48, 0.2);
}

/* ==========================================================================
   GLOBAL MOBILE HORIZONTAL OVERFLOW GUARD
   Prevents accidental viewport horizontal scrolling on small mobile screens
   ========================================================================== */
.cb-hero-stage,
.cb-authority-section,
.cb-development-section,
.cb-take-you-section,
.cb-talk-section {
  overflow-x: hidden;
  max-width: 100%;
}

/* ==========================================================================
   HOMEPAGE FIXED LUXURY HEADER ARCHITECTURE
   Navbar remains permanently fixed at top (0,0) with transparent background
   and compact luxury padding.
   At scrollY = 0: sits cleanly over the white top cutout of the hero stage
   with blue logo and blue hamburger.
   On scroll: the white hero stage & search notch scroll smoothly up.
   When the white part ends (scrollY > 190px): the blue logo and hamburger
   smoothly transition to pure white over the dark photography.
   ========================================================================== */
.cb-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  background-color: transparent !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none;
}

.cb-header__inner {
  pointer-events: auto;
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
  transition: padding 0.35s ease;
}

@media (max-width: 767px) {
  .cb-header__inner {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* ==========================================================================
   PER-PIXEL DYNAMIC SPLIT-TONE CONTRAST
   Base layer is authentic Navy Blue (#00226D / #012169) on white background.
   Overlay layer is Pure White (#ffffff) clipped with inset(var(--cb-cut) 0 0 0).
   As the dark photo crosses each element on scroll, the white overlay reveals
   per-pixel exactly below the photo line. The portion over white is Navy,
   and the portion over photo is Pure White, with ZERO cutoff or invisible text!
   ========================================================================== */
.cb-header__logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cb-header__logo-img--navy,
.cb-header.is-scrolled .cb-header__logo-img--navy {
  display: block !important;
  filter: none !important;
}

.cb-header__logo-overlay {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  pointer-events: none;
  clip-path: inset(var(--cb-logo-cut, 100%) 0 var(--cb-logo-cut-bottom, 0%) 0);
  -webkit-clip-path: inset(var(--cb-logo-cut, 100%) 0 var(--cb-logo-cut-bottom, 0%) 0);
  will-change: clip-path;
}

.cb-header__logo-overlay .cb-header__logo-img--white,
.cb-header.is-scrolled .cb-header__logo-overlay .cb-header__logo-img--white {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  filter: brightness(0) invert(1) !important;
}

.cb-hamburger {
  position: relative;
}

.cb-hamburger>.cb-hamburger__line,
.cb-header.is-scrolled .cb-hamburger>.cb-hamburger__line {
  background-color: var(--primary, #012169) !important;
  transition: width 0.25s ease, transform 0.25s ease;
}

.cb-hamburger__overlay {
  position: absolute;
  inset: 0;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 6px 0 6px 6px;
  pointer-events: none;
  clip-path: inset(var(--cb-burger-cut, 100%) 0 var(--cb-burger-cut-bottom, 0%) 0);
  -webkit-clip-path: inset(var(--cb-burger-cut, 100%) 0 var(--cb-burger-cut-bottom, 0%) 0);
  will-change: clip-path;
}

.cb-hamburger__overlay .cb-hamburger__line {
  background-color: #ffffff !important;
}

/* ==========================================================================
   FILTER CONTACT FIELDS & TOAST NOTIFICATION
   ========================================================================== */
.cb-filter-required {
  color: var(--accent, #3668F5);
  font-weight: 700;
  margin-left: 2px;
}

.cb-filter-box.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}

/* Step 2 Contact Header & Controls */
.cb-filter-contact-header {
  margin: 0.5rem 0 1.25rem 0;
}

.cb-filter-contact-title {
  font-family: var(--font-brand);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary, #012169);
  text-transform: uppercase;
  margin: 0 0 0.35rem 0;
}

.cb-filter-contact-note {
  font-size: 0.8125rem;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

.cb-filter-col--full {
  grid-column: 1 / -1;
}

.cb-filter-footer--dual {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cb-filter-back-btn {
  background: transparent;
  border: none;
  font-family: var(--font-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  padding: 0.6rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cb-filter-back-btn:hover {
  color: var(--primary, #012169);
  transform: translateX(-3px);
}


