/**
 * Investment Portfolio Tracker case study — page-specific styles
 * Scoped under .page-case-study-fashion where practical
 */

/* Hero eyebrow — homepage-style hero uses img + gradient; label only on this case study */
.page-case-study-fashion .hero .hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-de-france);
  margin-bottom: 12px;
}

.page-case-study-fashion .hero .btn-primary-3d {
  margin-top: 10px;
}

/*
 * Fintech / investment hero — overrides `assets/css/index/deferred/hero.css` (via index-deferred.min.css),
 * which loads *after* critical CSS and resets `.hero-overlay` to the homepage wash.
 * Scoped with .hero-case-study-fintech so other case study pages are unaffected.
 */
.hero.hero-case-study-fashion.hero-case-study-fintech {
  background-color: var(--seasalt);
}

/* Full-bleed artwork at z-index 0; gradient-only overlay at 1; copy in .hero-grid at 2 */
.hero.hero-case-study-fashion.hero-case-study-fintech .hero-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero.hero-case-study-fashion.hero-case-study-fintech .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  --hero-investment-fade-start: clamp(22rem, 42vw, 38rem);

  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff var(--hero-investment-fade-start),
    rgba(238, 240, 242, 0.95) var(--hero-investment-fade-start),
    rgba(238, 240, 242, 0.72) calc(var(--hero-investment-fade-start) + 10%),
    rgba(238, 240, 242, 0.28) calc(var(--hero-investment-fade-start) + 22%),
    rgba(238, 240, 242, 0) 100%
  );
}

@media (width <= 800px) {
  .hero.hero-case-study-fashion.hero-case-study-fintech .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(7, 14, 24, 0.06) 0%,
      rgba(7, 14, 24, 0.45) 45%,
      rgba(7, 14, 24, 0.9) 100%
    );
  }

  .hero.hero-case-study-fashion.hero-case-study-fintech .hero-title,
  .hero.hero-case-study-fashion.hero-case-study-fintech .hero-subtitle {
    color: #f8fafc;
    text-shadow:
      0 1px 2px rgba(7, 14, 24, 0.35),
      0 2px 24px rgba(7, 14, 24, 0.45);
  }

  .hero.hero-case-study-fashion.hero-case-study-fintech .hero-eyebrow {
    color: rgba(186, 224, 255, 0.95);
    text-shadow: 0 1px 2px rgba(7, 14, 24, 0.4);
  }

  .hero.hero-case-study-fashion.hero-case-study-fintech .about-description {
    color: rgba(248, 250, 252, 0.92);
    text-shadow: 0 1px 2px rgba(7, 14, 24, 0.35);
  }

  .page-case-study-fashion .hero .btn-primary-3d:focus-visible {
    outline-color: #fff;
    outline-offset: 3px;
  }
}

/* Scroll-triggered fade-in (JS adds html.js-reveal-ready; hero excluded from .reveal-on-scroll) */
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal-ready.page-case-study-fashion .reveal-on-scroll:not(.is-revealed) {
    opacity: 0;
    transform: translateY(14px);
  }

  html.js-reveal-ready.page-case-study-fashion .reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0);
    transition:
      opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.page-case-study-fashion .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Focus rings — align with site tokens (base/accessibility.css); dark CTA band uses light outline */
.page-case-study-fashion main .btn-primary-3d:focus-visible {
  outline: 3px solid var(--blue-de-france);
  outline-offset: 3px;
}

.page-case-study-fashion main .btn-primary-3d:focus:not(:focus-visible) {
  outline: none;
}

.page-case-study-fashion .industries-cta .btn-primary-3d:focus-visible {
  outline-color: #fff;
  outline-offset: 3px;
}

.page-case-study-fashion .industries-cta .btn-primary-3d:focus:not(:focus-visible) {
  outline: none;
}

.page-case-study-fashion main a:focus-visible {
  outline: 3px solid var(--blue-de-france);
  outline-offset: 2px;
}

/* Typographic scale — match homepage .section-label (page-home); override index-deferred centered .section-title */
.page-case-study-fashion .cs-section .section-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--outer-space, #6b7280);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: left;
}

.page-case-study-fashion .cs-section h2.section-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--eerie-black);
  text-align: left;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}

.page-case-study-fashion .cs-impact-copy h2.section-title {
  margin-bottom: 18px;
}

.page-case-study-fashion .cs-impact-copy {
  max-width: none;
  min-width: 0;
}

.cs-impact-title-line {
  display: block;
}

.cs-impact-title-line + .cs-impact-title-line {
  margin-top: 0.08em;
}

.page-case-study-fashion .cs-section .section-intro,
.page-case-study-fashion .cs-prose .section-intro {
  text-align: left;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  font-size: 1.0625rem;
  line-height: 1.75;
}

.page-case-study-fashion .cs-section .section-intro {
  margin-bottom: 18px;
}

.page-case-study-fashion .cs-closing-narrative .section-intro:last-child {
  margin-bottom: 0;
}

.page-case-study-fashion h3.cs-components-heading.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--eerie-black);
  text-align: left;
  margin-top: 32px;
  margin-bottom: 6px;
}

.page-case-study-fashion .cs-components-block {
  margin-top: 4px;
}

.page-case-study-fashion .cs-components-lede {
  margin: 0 0 22px;
  max-width: 48rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--davys-grey);
  text-align: left;
}

/* Subheading inside overview / combined intro block */
.page-case-study-fashion h3.cs-overview-subheading {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--eerie-black);
  text-align: left;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Content sections */
.cs-section {
  padding: 72px 0;
}

.cs-section.alt-bg {
  background: linear-gradient(to bottom, var(--ghost-white) 0%, #f3f3f2 100%);
}

.cs-prose {
  max-width: 760px;
}

.cs-section .section-title {
  margin-bottom: 16px;
}

.cs-section .section-intro,
.cs-prose p {
  color: var(--davys-grey);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 16px;
}

.cs-prose ul {
  margin: 12px 0 0 1.25rem;
  color: var(--davys-grey);
  line-height: 1.7;
}

.cs-prose li {
  margin-bottom: 8px;
}

.cs-prose-spaced {
  margin-top: 20px;
}

/* Mid-page flow diagram — branded inline SVG, scroll on narrow viewports */
.page-case-study-fashion .cs-flow-visual-section .section-title {
  margin-bottom: 18px;
}

.case-study-flow-diagram {
  margin: 8px 0 0;
  padding: 0;
}

.case-study-flow-diagram__frame {
  overflow: auto visible;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 6px;
  margin: 0 -2px;
}

.case-study-flow-diagram__frame svg {
  width: 100%;
  min-width: 680px;
  max-width: 100%;
  height: auto;
  display: block;
}

@media (width >= 720px) {
  .case-study-flow-diagram__frame svg {
    min-width: 0;
  }
}

.case-study-flow-diagram__caption {
  margin: 16px 0 0;
  padding-top: 0;
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--davys-grey);
  text-align: center;
}

/* Arrowheads are plain polygons (not marker-end) so they can appear exactly when each drawn stroke ends */
.page-case-study-fashion .cs-flow-arrowhead {
  opacity: 0;
  transition: opacity 80ms ease;
}

.page-case-study-fashion .cs-flow-arrowhead.is-visible,
.page-case-study-fashion
  .case-study-flow-diagram.cs-flow-motion-done
  .cs-flow-arrowhead {
  opacity: 1;
}

/* Experience flow — CodePen-style stroke "draw" + staggered steps (JS); idle polish after complete */
@media (prefers-reduced-motion: reduce) {
  .page-case-study-fashion .cs-flow-diagram-svg .cs-flow-signal-dot,
  .page-case-study-fashion .cs-flow-diagram-svg .cs-flow-ai-panel {
    animation: none !important;
  }
}

@keyframes cs-flow-ai-breathe {
  0%,
  100% {
    stroke-opacity: 0.75;
  }

  50% {
    stroke-opacity: 1;
  }
}

@keyframes cs-flow-signal-pulse {
  0%,
  100% {
    transform: scale(1);
    fill-opacity: 0.32;
  }

  50% {
    transform: scale(1.12);
    fill-opacity: 0.52;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html.js-reveal-ready.page-case-study-fashion
    .cs-flow-visual-section.is-revealed
    .case-study-flow-diagram:not(.cs-flow-connectors-ready)
    .cs-flow-connector {
    opacity: 0;
  }

  html.js-reveal-ready.page-case-study-fashion
    .cs-flow-visual-section.is-revealed
    .case-study-flow-diagram:not(.cs-flow-motion-done)
    .cs-flow-step:not(.cs-flow-step--in) {
    opacity: 0;
    transform: scale(0.92);
    transform-origin: center center;
  }

  html.js-reveal-ready.page-case-study-fashion
    .cs-flow-visual-section.is-revealed
    .case-study-flow-diagram:not(.cs-flow-motion-done)
    .cs-flow-step--in {
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 0.45s ease,
      transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  /* After JS sequence: subtle continuous motion (same spirit as the pen’s living diagram) */
  .case-study-flow-diagram.cs-flow-motion-done .cs-flow-step--2 .cs-flow-signal-dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: cs-flow-signal-pulse 2.2s ease-in-out infinite;
  }

  .case-study-flow-diagram.cs-flow-motion-done
    .cs-flow-step--2
    .cs-flow-signal-dot:nth-child(4) {
    animation-delay: 0.18s;
  }

  .case-study-flow-diagram.cs-flow-motion-done
    .cs-flow-step--2
    .cs-flow-signal-dot:nth-child(5) {
    animation-delay: 0.36s;
  }

  .case-study-flow-diagram.cs-flow-motion-done .cs-flow-ai-panel {
    animation: cs-flow-ai-breathe 3.2s ease-in-out infinite;
    animation-delay: 0.4s;
  }
}

/* Core components — 2×2 grid: top row ~⅔–⅓, bottom row equal halves */
.components-grid--bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}

@media (width >= 720px) {
  .components-grid--bento {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px 16px;
    align-items: stretch;
  }

  /* Row 1: AI wide left (4/6), Platform narrow right (2/6) */
  .components-grid--bento > .case-study-detail-card:nth-child(1) {
    grid-column: 1 / span 4;
    grid-row: 1;
  }

  .components-grid--bento > .case-study-detail-card:nth-child(2) {
    grid-column: 5 / span 2;
    grid-row: 1;
  }

  /* Row 2: CRO + UX equal width (3/6 each) */
  .components-grid--bento > .case-study-detail-card:nth-child(3) {
    grid-column: 1 / span 3;
    grid-row: 2;
  }

  .components-grid--bento > .case-study-detail-card:nth-child(4) {
    grid-column: 4 / span 3;
    grid-row: 2;
  }

  .case-study-detail-card--featured {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px 28px;
    align-items: start;
  }

  .case-study-detail-card--featured .case-study-card__meta,
  .case-study-detail-card--featured .case-study-card__title {
    grid-column: 1 / -1;
  }

  .case-study-detail-card--featured .case-study-card__title {
    margin-bottom: 0;
  }

  .case-study-detail-card--featured .case-study-card__list {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 36px;
    margin-top: 6px;
  }

  .case-study-detail-card--featured .case-study-card__list li {
    margin-bottom: 8px;
  }
}

.case-study-detail-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--platinum);
  border-radius: 14px;
  padding: 22px 22px 24px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .page-case-study-fashion .case-study-detail-card:hover {
    transform: translateY(-3px);
    box-shadow:
      0 4px 12px rgba(0, 0, 0, 0.07),
      0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 133, 216, 0.22);
  }
}

.case-study-detail-card--featured {
  background: linear-gradient(
    165deg,
    rgba(13, 133, 216, 0.11) 0%,
    rgba(255, 255, 255, 0.97) 38%,
    var(--white) 100%
  );
  border-color: rgba(13, 133, 216, 0.28);
  box-shadow:
    0 4px 28px rgba(13, 133, 216, 0.1),
    0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 24px 26px 28px;
}

.case-study-detail-card--featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--blue-de-france) 0%,
    #38bdf8 55%,
    rgba(56, 189, 248, 0.35) 100%
  );
  border-radius: 14px 14px 0 0;
}

.case-study-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.case-study-card__glyph {
  display: flex;
  color: var(--blue-de-france);
  flex-shrink: 0;
}

.case-study-detail-card[data-component='platform'] .case-study-card__glyph {
  color: #2563eb;
}

.case-study-detail-card[data-component='ux'] .case-study-card__glyph {
  color: #7c3aed;
}

.case-study-detail-card[data-component='cro'] .case-study-card__glyph {
  color: #0d9488;
}

.case-study-card__tag {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--outer-space, #6b7280);
  background: var(--seasalt, #eef0f2);
}

.case-study-detail-card--featured .case-study-card__tag {
  color: var(--blue-de-france);
  background: rgba(13, 133, 216, 0.12);
}

.case-study-detail-card[data-component='platform'] .case-study-card__tag {
  color: var(--eerie-black);
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.28);
}

.case-study-detail-card[data-component='ux'] .case-study-card__tag {
  color: var(--eerie-black);
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.28);
}

.case-study-detail-card[data-component='cro'] .case-study-card__tag {
  color: var(--eerie-black);
  background: rgba(13, 148, 136, 0.14);
  border: 1px solid rgba(13, 148, 136, 0.32);
}

.case-study-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--eerie-black);
  margin: 0 0 14px;
  line-height: 1.35;
}

.case-study-detail-card--featured .case-study-card__title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  letter-spacing: -0.02em;
}

.case-study-card__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--davys-grey);
  font-size: 0.95rem;
  line-height: 1.68;
  list-style-type: disc;
}

.case-study-card__list li {
  margin-bottom: 8px;
  padding-left: 0.15rem;
}

.case-study-card__list li::marker {
  color: rgba(13, 133, 216, 0.55);
}

.case-study-detail-card[data-component='recommendations']
  .case-study-card__list
  li::marker {
  color: rgba(13, 133, 216, 0.72);
}

.case-study-detail-card[data-component='platform'] .case-study-card__list li::marker {
  color: rgba(37, 99, 235, 0.65);
}

.case-study-detail-card[data-component='ux'] .case-study-card__list li::marker {
  color: rgba(124, 58, 237, 0.65);
}

.case-study-detail-card[data-component='cro'] .case-study-card__list li::marker {
  color: rgba(13, 148, 136, 0.65);
}

.cs-stack-used {
  margin-top: 22px;
  padding: 20px 22px;
  background: linear-gradient(
    135deg,
    rgba(13, 133, 216, 0.06) 0%,
    rgba(250, 250, 255, 0.92) 100%
  );
  border: 1px solid rgba(13, 133, 216, 0.18);
  border-radius: 14px;
}

.cs-stack-used__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--eerie-black);
  letter-spacing: -0.015em;
}

.cs-stack-used .tech-pills {
  margin-top: 0;
}

/* Phased delivery — process timeline */
.phase-strip {
  list-style: none;
  position: relative;
  margin: 36px 0 0;
  padding: 0 0 0 44px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.phase-strip::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 20px;
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    #3f7c58 0%,
    var(--blue-de-france) 62%,
    #2697e8 100%
  );
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.phase-step {
  --phase-accent: var(--blue-de-france);

  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  min-height: 72px;
}

.phase-step::before {
  content: '';
  position: absolute;
  top: 10px;
  left: -34px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ghost-white);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(13, 133, 216, 0.14);
}

.phase-step__num {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--phase-accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--phase-accent) 30%, transparent);
}

.phase-step__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--eerie-black);
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.phase-step__desc {
  margin: 0;
  color: var(--davys-grey);
  font-size: 0.96rem;
  line-height: 1.65;
}

.phase-step:nth-child(2) {
  --phase-accent: #2563eb;
}

.phase-step:nth-child(3) {
  --phase-accent: #7c3aed;
}

.phase-step:nth-child(4) {
  --phase-accent: #0d9488;
}

@media (width >= 960px) {
  .phase-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    gap: 0;
    margin: 56px auto 0;
    padding: 96px 0 0;
    max-width: 900px;
  }

  .phase-strip::before {
    inset: 36px 0 auto;
    width: auto;
    height: 34px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3f7c58 0%, #28758c 45%, #2697e8 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.28),
      0 14px 24px rgba(13, 133, 216, 0.12);
  }

  .phase-step {
    z-index: 2;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 9px;
    min-height: 0;
    padding: 0 14px;
    transform: translateY(0);
  }

  .phase-step::before {
    display: none;
  }

  .phase-step::after {
    content: '';
    position: absolute;
    top: -48px;
    left: 50%;
    z-index: 3;
    width: 9px;
    height: 9px;
    border-right: 3px solid rgba(255, 255, 255, 0.92);
    border-bottom: 3px solid rgba(255, 255, 255, 0.92);
    transform: translateX(-50%) rotate(45deg);
  }

  .phase-step__num {
    position: absolute;
    top: -108px;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 44px;
    margin: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--phase-accent) 30%, transparent);
  }

  .phase-step__title {
    max-width: 11rem;
    font-size: 1.02rem;
    line-height: 1.12;
    margin: 0;
  }

  .phase-step__desc {
    max-width: 12.5rem;
    font-size: 0.92rem;
    line-height: 1.55;
  }
}

/* Results */
.results-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin: 28px 0 20px;
  align-items: stretch;
}

@media (width >= 600px) {
  .results-highlight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (width >= 960px) {
  .results-highlight {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.results-stat {
  min-width: 0;
  background: linear-gradient(
    135deg,
    rgba(13, 133, 216, 0.1) 0%,
    rgba(13, 133, 216, 0.04) 100%
  );
  border: 1px solid rgba(13, 133, 216, 0.25);
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
}

.results-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-de-france);
  line-height: 1.2;
  margin-bottom: 8px;
}

.results-stat--signal strong {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.results-stat__arrow {
  font-weight: 800;
}

.results-stat span {
  font-size: 0.92rem;
  color: var(--davys-grey);
  line-height: 1.45;
  display: block;
}

.results-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.results-badge {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--ghost-white);
  color: var(--davys-grey);
  border: 1px dashed rgba(13, 133, 216, 0.45);
}

.results-quote {
  margin: 0 0 28px;
  padding: 22px 22px 20px 24px;
  border-left: 4px solid var(--blue-de-france);
  background: linear-gradient(
    135deg,
    rgba(13, 133, 216, 0.06) 0%,
    rgba(250, 250, 255, 0.9) 100%
  );
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.results-quote blockquote {
  margin: 0;
  padding: 0;
}

.results-quote blockquote p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--eerie-black);
  font-style: italic;
}

.results-quote__cite {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  font-style: normal;
  color: var(--outer-space, #6b7280);
}

.results-list {
  margin: 0 0 0 1.25rem;
  color: var(--davys-grey);
  line-height: 1.7;
}

.results-list li {
  margin-bottom: 8px;
}

/* Impact & outcome — title + narrative (left), live-site preview (right) */
.cs-impact-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.cs-impact-copy {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.cs-site-preview {
  margin: 0;
}

.cs-site-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(218, 221, 216, 0.95);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.07),
    0 16px 42px rgba(0, 0, 0, 0.08);
}

.cs-site-preview figcaption {
  margin-top: 12px;
  text-align: center;
}

.cs-site-preview a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-de-france);
  font-weight: 700;
  text-decoration: none;
}

.cs-site-preview a::after {
  content: '->';
  font-size: 0.9em;
  line-height: 1;
}

.cs-site-preview a:hover,
.cs-site-preview a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (width >= 900px) {
  .cs-impact-lead {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 40px 42px;
    align-items: start;
  }
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tech-pills-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tech-pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  background: var(--seasalt);
  color: var(--eerie-black);
  border-radius: 6px;
  border: 1px solid var(--platinum);
}

@media (width <= 768px) {
  .cs-section {
    padding: 56px 0;
  }
}

/* Investment portfolio — five core component cards (same grid as marketplace case study) */
.components-grid--marketplace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}

@media (width >= 720px) {
  .components-grid--marketplace {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (width >= 960px) {
  .components-grid--marketplace {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;
  }

  .components-grid--marketplace > .case-study-detail-card:nth-child(1) {
    grid-column: 1 / span 3;
    grid-row: 1;
  }

  .components-grid--marketplace > .case-study-detail-card:nth-child(2) {
    grid-column: 4 / span 3;
    grid-row: 1;
  }

  .components-grid--marketplace > .case-study-detail-card:nth-child(3) {
    grid-column: 1 / span 2;
    grid-row: 2;
  }

  .components-grid--marketplace > .case-study-detail-card:nth-child(4) {
    grid-column: 3 / span 2;
    grid-row: 2;
  }

  .components-grid--marketplace > .case-study-detail-card:nth-child(5) {
    grid-column: 5 / span 2;
    grid-row: 2;
  }
}
