/* Hero — no photo */

.cwd-portfolio-detail-page .cwd-hero--case-study {
  position: relative;
  overflow: hidden;
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__media {
  background-image: none !important;
  background-color: #2a2638;
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__media::before {
  background: radial-gradient(ellipse 95% 85% at 0% 0%, rgba(70, 133, 204, 0.42) 0%, transparent 52%), radial-gradient(ellipse 80% 70% at 100% 15%, rgba(137, 49, 149, 0.32) 0%, transparent 48%), radial-gradient(ellipse 60% 50% at 72% 100%, rgba(110, 86, 172, 0.22) 0%, transparent 55%), linear-gradient( 118deg, #3d3856 0%, #342f4a 32%, #2e2a40 58%, #262234 100% ), linear-gradient(180deg, transparent 0%, transparent 78%, var(--cwd-home-bg) 100%) !important;
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__container {
  position: relative;
  z-index: 1;
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__row {
  min-height: clamp(480px, 78vh, 660px);
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__glass--wide {
  max-width: 46rem;
}

/* Frosted panel uses global cwd-home.css */

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__glass h1, .cwd-portfolio-detail-page .cwd-hero--case-study .cwd-portfolio-detail__title {
  max-width: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem) !important;
  line-height: 1.3 !important;
}

.cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__glass p.my-3:first-of-type {
  font-weight: 600;
}

.cwd-portfolio-detail-page .cwd-breadcrumb {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0;
}

.cwd-portfolio-detail-page .cwd-hero--split-light + .cwd-breadcrumb {
  padding-top: clamp(1rem, 2.5vw, 1.5rem);
}

.cwd-portfolio-detail-page .cwd-breadcrumb .breadcrumb {
  margin-bottom: 0;
  font-size: 0.875rem;
  --bs-breadcrumb-divider-color: rgba(44, 34, 69, 0.35);
}

.cwd-portfolio-detail-page .cwd-breadcrumb .breadcrumb-item a {
  color: var(--bs-primary);
  text-decoration: none;
  font-weight: 600;
}

.cwd-portfolio-detail-page .cwd-breadcrumb .breadcrumb-item.active {
  color: var(--cwd-home-muted);
}

/* Content surfaces */

.cwd-portfolio-detail-page .cwd-main > section.cwd-home-section {
  padding-top: 0;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.cwd-portfolio-detail-page .cwd-main > section.cwd-home-section .container {
  background: var(--cwd-home-surface);
  border: 1px solid var(--cwd-home-border);
  border-radius: var(--cwd-home-radius);
  box-shadow: var(--cwd-shadow-lg);
  padding: clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}

.cwd-portfolio-detail-page .cwd-main > section.cwd-home-section .container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--cwd-home-accent-vertical);
  border-radius: var(--cwd-home-radius) 0 0 var(--cwd-home-radius);
  pointer-events: none;
}

.cwd-portfolio-detail-page .cwd-features {
  background: transparent;
}

.cwd-portfolio-detail-page .cwd-main > section .row.mb-5 h2 {
  font-size: clamp(1.375rem, 2.8vw, 1.625rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cwd-home-text);
  margin-bottom: 0;
}

.cwd-portfolio-detail-page .cwd-main h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 0.75rem;
  border-radius: 2px;
  background: var(--cwd-home-accent);
}

.cwd-portfolio-detail-page .cwd-portfolio-detail__subtitle {
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cwd-home-text);
}

.cwd-portfolio-detail-page .cwd-portfolio-detail__subtitle::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--cwd-home-accent);
}

.cwd-portfolio-detail-page .cwd-main p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--cwd-home-muted);
}

/* Key features — equal-height grid, brand icon colors */

.cwd-portfolio-detail-page .cwd-features .cwd-features__grid {
  align-items: stretch;
}

.cwd-portfolio-detail-page .cwd-features .cwd-features__grid > .col {
  display: flex;
}

.cwd-portfolio-detail-page .cwd-features .col > .d-flex {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.25rem;
  width: 100%;
  flex: 1;
  min-height: 100%;
  padding: 1.5rem 1.5rem 1.35rem;
  background: #fff;
  border: 1px solid var(--cwd-home-border-neutral);
  border-radius: calc(var(--cwd-home-radius) - 8px);
  box-shadow: var(--cwd-shadow-sm);
  transition: border-color var(--cwd-transition), box-shadow var(--cwd-transition), transform var(--cwd-transition);
}

.cwd-portfolio-detail-page .cwd-features .col:hover > .d-flex {
  border-color: rgba(110, 86, 172, 0.14);
  box-shadow: var(--cwd-shadow-md);
  transform: translateY(-3px);
}

.cwd-portfolio-detail-page .cwd-features .bs-icon-sm.bs-icon-primary {
  flex-shrink: 0;
  width: 2.75rem !important;
  height: 2.75rem !important;
  min-width: 2.75rem;
  margin-bottom: 0 !important;
  font-size: 1.125rem !important;
  border-radius: 50% !important;
  color: #fff !important;
  box-shadow: none !important;
}

.cwd-portfolio-detail-page .cwd-features .col:nth-child(3n + 1) .bs-icon-primary {
  background: var(--bs-info) !important;
}

.cwd-portfolio-detail-page .cwd-features .col:nth-child(3n + 2) .bs-icon-primary {
  background: var(--bs-primary) !important;
}

.cwd-portfolio-detail-page .cwd-features .col:nth-child(3n + 3) .bs-icon-primary, .cwd-portfolio-detail-page .cwd-features .col:nth-child(3n) .bs-icon-primary {
  background: var(--bs-secondary) !important;
}

.cwd-portfolio-detail-page .cwd-features .px-3 {
  display: flex;
  flex-direction: column;
  padding-left: 0 !important;
  padding-right: 0 !important;
  flex: 1;
  min-width: 0;
  min-height: 100%;
}

.cwd-portfolio-detail-page .cwd-features .px-3 h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  color: var(--cwd-home-text);
  margin-bottom: 0.5rem;
}

.cwd-portfolio-detail-page .cwd-features .px-3 p {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--cwd-home-muted);
  margin-bottom: 0.65rem;
}

.cwd-portfolio-detail-page .cwd-features .px-3 a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-primary);
  text-decoration: none;
  margin-top: auto;
}

.cwd-portfolio-detail-page .cwd-features .px-3 a:hover {
  color: var(--bs-secondary);
}

.cwd-portfolio-detail-page .cwd-features .px-3 a .bi {
  font-size: 0.75em;
  vertical-align: 0.05em;
}

.cwd-portfolio-detail-page #visit-project a {
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--bs-primary);
}

.cwd-portfolio-detail-page .portfolio-gallery img {
  border-radius: calc(var(--cwd-home-radius) - 6px);
}

.cwd-portfolio-detail-page .cwd-footer {
  background: #fff;
}

.cwd-portfolio-detail-page .cwd-hero--editorial {
  background: transparent;
  padding-top: 0;
  padding-bottom: clamp(1.25rem, 3vw, 2rem);
}

.cwd-portfolio-detail-page .cwd-hero--editorial.cwd-home-section {
  padding-top: 0;
}

.cwd-portfolio-detail-page .cwd-hero--editorial .container {
  max-width: 52rem;
}

.cwd-portfolio-detail-page .cwd-hero--editorial h1, .cwd-portfolio-detail-page .cwd-hero--editorial .cwd-portfolio-detail__title {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.3;
  color: var(--cwd-home-text);
  margin-bottom: 1.25rem;
}

.cwd-portfolio-detail-page .cwd-hero--editorial p {
  color: var(--cwd-home-muted);
  margin-bottom: 1rem;
}

.cwd-portfolio-detail-page .cwd-hero--editorial p:last-child {
  margin-bottom: 0;
}

.cwd-portfolio-detail-page .cwd-hero--editorial p.my-3:first-of-type {
  font-weight: 600;
  color: var(--cwd-home-text);
}

.cwd-portfolio-detail-page .cwd-hero--split {
  position: relative;
  overflow: hidden;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__media {
  background-image: none !important;
  background-color: #2a2638;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__media::before {
  background: radial-gradient(ellipse 90% 80% at 8% 20%, rgba(70, 133, 204, 0.45) 0%, transparent 50%), radial-gradient(ellipse 70% 65% at 92% 30%, rgba(137, 49, 149, 0.34) 0%, transparent 48%), radial-gradient(ellipse 55% 45% at 55% 95%, rgba(233, 64, 129, 0.18) 0%, transparent 52%), linear-gradient(118deg, #3d3856 0%, #342f4a 38%, #2a2638 100%), linear-gradient(180deg, transparent 0%, transparent 82%, var(--cwd-home-bg) 100%) !important;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__container {
  position: relative;
  z-index: 1;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__row {
  min-height: clamp(400px, 52vh, 540px);
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__glass {
  max-width: none;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__glass h1, .cwd-portfolio-detail-page .cwd-hero--split .cwd-portfolio-detail__title {
  max-width: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
  line-height: 1.3 !important;
}

.cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__glass p.my-3:first-of-type {
  font-weight: 600;
}

.cwd-portfolio-detail-page .cwd-hero__brand-visual {
  height: clamp(280px, 38vh, 400px);
  border-radius: var(--cwd-home-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cwd-portfolio-detail-page .cwd-hero__brand-visual-inner {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 28% 32%, rgba(70, 133, 204, 0.72) 0%, transparent 42%), radial-gradient(circle at 72% 58%, rgba(137, 49, 149, 0.58) 0%, transparent 40%), radial-gradient(circle at 48% 88%, rgba(233, 64, 129, 0.38) 0%, transparent 38%), linear-gradient(145deg, #5a5478 0%, #443f5e 42%, #2e2a42 100%);
}

.cwd-portfolio-detail-page .cwd-hero__brand-visual-inner::before, .cwd-portfolio-detail-page .cwd-hero__brand-visual-inner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.cwd-portfolio-detail-page .cwd-hero__brand-visual-inner::before {
  width: 58%;
  height: 58%;
  top: 14%;
  left: 12%;
  background: rgba(255, 255, 255, 0.04);
}

.cwd-portfolio-detail-page .cwd-hero__brand-visual-inner::after {
  width: 42%;
  height: 42%;
  bottom: 12%;
  right: 10%;
  background: rgba(255, 255, 255, 0.06);
}

.cwd-portfolio-detail-page .cwd-hero--split-light {
  background: var(--cwd-home-bg);
  padding-bottom: clamp(1rem, 2.5vw, 1.5rem);
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__media {
  background: var(--cwd-home-bg) !important;
  position: relative;
  overflow: hidden;
}

/* Neutral band */

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__media::before {
  background: linear-gradient( 105deg, rgba(70, 133, 204, 0.04) 0%, transparent 38% ), linear-gradient( 180deg, var(--cwd-home-inset) 0%, var(--cwd-home-bg) 70% ) !important;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__media::after {
  display: block;
  height: 3px;
  background: var(--cwd-home-accent);
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__container {
  position: relative;
  z-index: 1;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__row {
  min-height: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0;
  align-items: center;
}

/* Wide frosted panel */

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass.cwd-hero__glass--wide {
  max-width: 100% !important;
  width: 100%;
  padding: clamp(2.5rem, 5vw, 3.5rem) clamp(2.25rem, 4.5vw, 3.5rem) !important;
  background: rgba(255, 255, 255, 0.22) !important;
  backdrop-filter: blur(32px) saturate(1.5) !important;
  -webkit-backdrop-filter: blur(32px) saturate(1.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: var(--cwd-radius-lg) !important;
  box-shadow: 0 20px 50px rgba(31, 38, 135, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
  isolation: isolate;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass--wide .cwd-hero__glass-inner {
  width: 100%;
  max-width: none;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass-accent {
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.cwd-portfolio-detail-page .cwd-hero__aside-mark {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: min(280px, 100%);
  padding: 0.5rem 0;
}

.cwd-portfolio-detail-page .cwd-hero__aside-bar {
  display: block;
  height: 6px;
  border-radius: var(--cwd-radius-pill);
  box-shadow: 0 2px 10px rgba(44, 34, 69, 0.1);
}

.cwd-portfolio-detail-page .cwd-hero__aside-bar--info {
  width: 100%;
  background: var(--bs-info);
}

.cwd-portfolio-detail-page .cwd-hero__aside-bar--primary {
  width: 78%;
  margin-left: auto;
  background: var(--bs-primary);
}

.cwd-portfolio-detail-page .cwd-hero__aside-bar--secondary {
  width: 62%;
  margin-left: auto;
  background: var(--bs-secondary);
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass h1, .cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass .cwd-portfolio-detail__title {
  max-width: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem) !important;
  line-height: 1.3 !important;
  color: var(--cwd-home-text) !important;
  text-shadow: none !important;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass h1::after {
  margin-top: 1rem !important;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass p {
  max-width: none;
  color: var(--cwd-home-muted) !important;
  text-shadow: none !important;
}

.cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass p.my-3:first-of-type {
  font-weight: 600;
  color: var(--cwd-home-text) !important;
}

/* Hero */

.cwd-portfolio-detail-page .cwd-hero-compare__notice {
  background: var(--cwd-home-surface);
  border: 1px solid var(--cwd-home-border);
  border-radius: var(--cwd-home-radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-top: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--cwd-shadow-md);
}

.cwd-portfolio-detail-page .cwd-hero-compare__notice p {
  margin-bottom: 0.5rem;
  color: var(--cwd-home-muted);
  font-size: 0.9375rem;
}

.cwd-portfolio-detail-page .cwd-hero-compare__notice p:last-child {
  margin-bottom: 0;
}

.cwd-portfolio-detail-page .cwd-hero-compare__block {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.cwd-portfolio-detail-page .cwd-hero-compare__label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bs-primary);
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  background: rgba(70, 133, 204, 0.1);
  border-radius: 999px;
}

.cwd-portfolio-detail-page .cwd-hero-compare__divider {
  border: 0;
  height: 1px;
  background: var(--cwd-home-border);
  margin: clamp(3rem, 6vw, 4.5rem) 0 0;
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero--case-study .cwd-hero__glass--wide {
    max-width: 100% !important;
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__row {
    min-height: auto;
    padding-top: clamp(2rem, 5vw, 3rem);
    padding-bottom: clamp(2rem, 5vw, 3rem);
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero--split .cwd-hero__glass {
    margin-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__row {
    min-height: auto;
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero--split-light .cwd-hero__glass--wide {
    padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem) !important;
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-hero__aside-mark--mobile {
    margin-top: 0.25rem;
    max-width: 16rem;
  }
}

@media (max-width: 767.98px) {
  .cwd-portfolio-detail-page .cwd-features .col > .d-flex {
    flex-direction: column;
    gap: 1rem;
  }
}

