.insights { background: #f8f7f3; color: #151515; }

.insights__container { margin: 0 auto; max-width: 1220px; padding: clamp(52px, 5vw, 80px) var(--page-pad-x) clamp(40px, 4vw, 64px); }
.insights__heading { margin-bottom: clamp(20px, 2.4vw, 36px); }
.insights__eyebrow { font-family: var(--font-display); font-size: 14px; margin: 0 0 8px; }
.insights__heading h2 { font-family: var(--font-display); font-size: clamp(30px, 3vw, 48px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

.insights--reveal-ready .insights__heading,
.insights--reveal-ready .insights__card {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 720ms ease, transform 1040ms cubic-bezier(.22, 1, .36, 1);
}

.insights--reveal-ready.is-insights-revealed .insights__heading,
.insights--reveal-ready.is-insights-revealed .insights__card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.insights--reveal-ready.is-insights-revealed .insights__card:nth-child(1) {
  transition-delay: 220ms;
}

.insights--reveal-ready.is-insights-revealed .insights__card:nth-child(2) {
  transition-delay: 400ms;
}

.insights__cards { aspect-ratio: 2.35 / 1; display: flex; gap: 12px; min-height: 0; }
.insights__card { background: #181615; border-radius: 24px; color: #fff; contain: paint; cursor: pointer; flex: .665 1 0; isolation: isolate; min-width: 0; overflow: hidden; position: relative; transition: flex-grow 700ms cubic-bezier(.16, 1, .3, 1); will-change: flex-grow; }
.insights__card.is-active { flex-grow: 1.38; }
@media (min-width: 768px) {
  .insights__cards { aspect-ratio: 2.2 / 1; }
  .insights__card:not(.is-active) { flex-grow: .56; }
  .insights__card.insights__card--position:not(.is-active) { flex-grow: .52; }
  .insights__card .insights__compact-title { font-size: clamp(15px, 1.35vw, 23px); }
  .insights__card .insights__badge {
    top: clamp(6px, calc(1.4vw - 4px), 16px);
    left: clamp(12px, calc(2vw - 4px), 24px);
    font-size: clamp(9px, .9vw, 14px);
    padding: .6em 1em;
  }
}
.insights--reveal-ready:not(.is-insights-interactive) .insights__cards { pointer-events: none; }
.insights__card::after { background: rgba(10, 10, 12, .16); content: ""; inset: 0; opacity: 1; pointer-events: none; position: absolute; transition: opacity 350ms ease; z-index: 1; }
.insights__card.is-active::after { opacity: 0; }
.insights__image { border-radius: inherit; display: block; height: 100%; inset: 0; object-fit: cover; position: absolute; transition: object-position 700ms cubic-bezier(.16, 1, .3, 1); width: 100%; }
.insights__card--position .insights__image { object-position: 50% 70%; }
.insights__card--environment .insights__image { object-position: 50% 65%; }
.insights__card--position:not(.is-active) { flex-grow: .6; }
.insights__card--position:not(.is-active) .insights__image { object-position: 0% 70%; }
.insights__card--environment:not(.is-active) .insights__image { object-position: 72% 65%; }
.insights__card:focus-visible { outline: 3px solid #a88455; outline-offset: 4px; }
.insights__badge { background: rgba(0, 0, 0, 0.20); border-radius: 999px; color: #fff; font-size: clamp(11px, 1vw, 16px); left: clamp(16px, 2vw, 28px); padding: .7em 1.2em; position: absolute; top: clamp(16px, 2vw, 28px); z-index: 2; }
.insights__compact-title { bottom: clamp(18px, 2.2vw, 34px); color: #fff; font-size: clamp(17px, 1.55vw, 26px); font-weight: 400; left: clamp(18px, 2vw, 30px); line-height: 1.08; max-width: 85%; opacity: 0; position: absolute; text-shadow: 0 2px 16px rgba(0,0,0,.42); transform: translateY(10px); transition: opacity 280ms ease, transform 500ms cubic-bezier(.16,1,.3,1); z-index: 2; }
.insights__card:not(.is-active) .insights__compact-title { opacity: 1; transform: translateY(0); }
.insights__wide-data { bottom: clamp(18px, 2vw, 30px); color: #fff; left: clamp(20px, 2.2vw, 34px); opacity: 0; position: absolute; right: clamp(20px, 2.2vw, 34px); transform: translateY(16px); transition: opacity 280ms ease, transform 500ms cubic-bezier(.16,1,.3,1); z-index: 2; }
.insights__card.is-active .insights__wide-data { opacity: 1; transform: translateY(0); transition-delay: 120ms; }
.insights__wide-data > :not(.insights__environment-metrics) { opacity: 0; transform: translateY(14px); transition: opacity 280ms ease, transform 500ms cubic-bezier(.16,1,.3,1); }
.insights__card.is-active .insights__wide-data > :not(.insights__environment-metrics) { opacity: 1; transform: translateY(0); }
.insights__card.is-active .insights__wide-data > p { transition-delay: 760ms; }
.insights__card.is-active .insights__wide-data > .insights__range { transition-delay: 960ms; }
.insights__card.is-active .insights__wide-data--position > p { transition-delay: 900ms; }
.insights__card.is-active .insights__wide-data--position > .insights__range { transition-delay: 1120ms; }
.insights__card.is-active .insights__wide-data--environment > p { transition-delay: 1080ms; }
.insights__wide-data p { font-size: clamp(9px, .72vw, 12px); line-height: 1.25; margin: 14px auto 0; max-width: 60ch; text-align: center; text-shadow: 0 1px 8px rgba(0,0,0,.52); }
.insights__position-stats { display: grid; gap: clamp(32px, 6vw, 96px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 84%; }
.insights__position-stat { align-items: center; -webkit-backdrop-filter: blur(7.35px); backdrop-filter: blur(7.35px); background: rgb(76 79 79 / 21%); border: .613px solid rgba(255,255,255,.6); border-radius: 14px; column-gap: 8px; display: grid; grid-template-columns: auto auto 1fr; opacity: 0; padding: 13px 12px; position: relative; transform: translateY(14px); transition: opacity 500ms ease, transform 780ms cubic-bezier(.16,1,.3,1); }.insights__card.is-active .insights__position-stat { opacity: 1; transform: translateY(0); }.insights__card.is-active .insights__position-stat:nth-child(1) { transition-delay: 180ms; }.insights__card.is-active .insights__position-stat:nth-child(2) { transition-delay: 320ms; }
.insights__position-stat:nth-child(1) { left: clamp(-32px, -2vw, -16px); }
.insights__position-stat:nth-child(2) { left: clamp(16px, 2vw, 32px); }
.insights__position-stat > strong { color: #ffbd42; font-size: clamp(22px, 1.8vw, 30px); font-weight: 500; line-height: 1; }.insights__position-stat:nth-child(2) > strong { color: #3fed98; }
.insights__position-stat > small { font-size: clamp(8px, .6vw, 10px); grid-column: 1 / span 2; margin-top: 3px; }.insights__score { border-radius: 99px; font-size: clamp(6px, .48vw, 8px); margin-left: 5px; padding: 3px 5px; white-space: nowrap; }.insights__score--fair { background: rgba(195,134,31,.24); color: #ffbd42; }.insights__score--great { background: rgba(36,161,93,.26); color: #3fed98; }
.insights__bars { align-items: center; display: grid; font-size: clamp(7px,.55vw,9px); gap: 3px 5px; grid-column: 3; grid-row: 1 / span 2; grid-template-columns: auto auto auto; }.insights__bars span { color: rgba(255,255,255,.58); }.insights__bar { border-radius: 3px; height: clamp(8px,.8vw,14px); width: clamp(38px, 3.5vw, 56px); }.insights__bar--yellow { background: #ffe996; }.insights__bar--blue { background: #77c8f4; width: clamp(18px, 1.5vw, 24px); }.insights__bars b { font-weight: 400; }
.insights__position-stat:nth-child(2) .insights__bar--yellow { width: clamp(18px, 1.5vw, 24px); }
.insights__position-stat:nth-child(2) .insights__bar--blue { width: clamp(38px, 3.5vw, 56px); }
.insights__bar-row { align-items: center; display: flex; gap: 5px; }
.insights__bar-row > span { flex: 0 0 3.6em; }
.insights__bar-row > i { flex-shrink: 0; }
.insights__bar-row > b { white-space: nowrap; }
.insights__bars { display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) {
  .insights__position-stat { aspect-ratio: 347 / 94; box-sizing: border-box; container-type: inline-size; display: block; padding: 0; }
  .insights__position-stat > strong { position: absolute; left: 6.1%; top: 12%; font-size: 11.2cqw; }
  .insights__position-stat > .insights__score { position: absolute; left: 20%; top: 31%; margin: 0; font-size: 3.1cqw; padding: .8cqw 2cqw; }
  .insights__position-stat > small { position: absolute; left: 6.1%; top: 66%; margin: 0; font-size: 4.35cqw; white-space: nowrap; }
  .insights__position-stat .insights__bars { position: absolute; left: 45.5%; top: 26%; font-size: 3.73cqw; gap: 4cqw; }
  .insights__position-stat .insights__bar-row { gap: 1.86cqw; }
  .insights__position-stat .insights__bar { height: 6.2cqw; width: 23.8cqw; }
  .insights__position-stat .insights__bar--blue,
  .insights__position-stat:nth-child(2) .insights__bar--yellow { width: 10.8cqw; }
  .insights__position-stat:nth-child(2) .insights__bar--blue { width: 22cqw; }
}
.insights__range { display: block; font-size: clamp(9px,.7vw,12px); margin-top: 9px; text-align: center; }.insights__range b, .insights__range strong { border-radius: 99px; font-weight: 400; padding: 3px 7px; }.insights__range b { background: rgba(195,134,31,.3); color: #ffbd42; }.insights__range strong { background: rgba(36,161,93,.3); color: #3fed98; }
.insights__environment-metrics { display: grid; gap: clamp(8px,.9vw,12px); grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; max-width: 72%; }.insights__environment-metric { align-items: center; background: rgba(17, 17, 19, 0.19); border: 1px solid rgba(255, 255, 255, 0.20); border-radius: 14px; display: flex; flex-direction: column; opacity: 0; padding: clamp(9px,1vw,14px) 6px; transform: translateY(16px) scale(.98); transition: opacity 500ms ease, transform 780ms cubic-bezier(.16,1,.3,1); }.insights__card.is-active .insights__environment-metric { opacity: 1; transform: translateY(0) scale(1); }.insights__card.is-active .insights__environment-metric:nth-child(1) { transition-delay: 160ms; }.insights__card.is-active .insights__environment-metric:nth-child(2) { transition-delay: 280ms; }.insights__card.is-active .insights__environment-metric:nth-child(3) { transition-delay: 400ms; }.insights__card.is-active .insights__environment-metric:nth-child(4) { transition-delay: 520ms; }.insights__metric-icon { display: block; height: clamp(20px,1.9vw,32px); margin-bottom: 4px; object-fit: contain; width: auto; }.insights__environment-metric strong { font-size: clamp(17px,1.6vw,27px); font-weight: 500; line-height: 1; }.insights__environment-metric small { color: rgba(255,255,255,.66); font-size: clamp(10px,.9vw,14px); margin-top: 4px; }
.insights__controls { display: flex; gap: 8px; justify-content: flex-end; margin-top: 22px; }
.insights__controls button { background: transparent; border: 0; height: 34px; padding: 0; width: 34px; }
.insights__controls button img { display: block; height: 100%; width: 100%; }

/* Keep the expanded-card details in the same quick rhythm as the card resize. */
.insights__card.is-active .insights__wide-data > p { transition-delay: 340ms; }
.insights__card.is-active .insights__wide-data > .insights__range { transition-delay: 440ms; }
.insights__card.is-active .insights__wide-data--position > p { transition-delay: 460ms; }
.insights__card.is-active .insights__wide-data--position > .insights__range { transition-delay: 560ms; }
.insights__card.is-active .insights__wide-data--environment > p { transition-delay: 520ms; }
.insights__position-stat,
.insights__environment-metric { transition-duration: 280ms, 500ms; }

@media (max-width: 767px) {
  .insights__container { padding-bottom: 24px; padding-top: 28px; }
  .insights__cards { aspect-ratio: auto; display: grid; gap: 24px; margin-inline: calc(var(--page-pad-x) * -1); }
  .insights__card { aspect-ratio: 1.45; border-radius: 16px; flex: none; width: 100%; }
  .insights__card picture { display: block; }
  .insights__card::after { opacity: 0; }
  .insights__badge,
  .insights__compact-title,
  .insights__wide-data { display: none; }
  .insights__wide-data,
  .insights__card.is-active .insights__wide-data,
  .insights__wide-data > :not(.insights__environment-metrics),
  .insights__card.is-active .insights__wide-data > :not(.insights__environment-metrics),
  .insights__position-stat,
  .insights__card.is-active .insights__position-stat,
  .insights__environment-metric,
  .insights__card.is-active .insights__environment-metric { opacity: 1; transform: none; }
  .insights__controls { display: none; }
  .insights__position-stats { gap: 8px; max-width: 92%; }
  .insights__position-stat { border-radius: 12px; column-gap: 4px; grid-template-columns: auto auto minmax(0, 1fr); left: 0; padding: 8px 7px; }
  .insights__position-stat > strong { font-size: 24px; }
  .insights__position-stat > small { font-size: 8px; margin-top: 3px; }
  .insights__score { font-size: 6px; margin-left: 4px; padding: 2px 4px; }
  .insights__bars { font-size: 6px; gap: 2px 3px; }
  .insights__bar { height: 8px; width: 28px; }
  .insights__bar--blue { width: 12px; }
  .insights__position-stat:nth-child(2) .insights__bar--yellow { width: 12px; }
  .insights__position-stat:nth-child(2) .insights__bar--blue { width: 28px; }
  .insights__wide-data p { font-size: 8px; margin-top: 8px; }
  .insights__range { font-size: 7px; margin-top: 5px; }
  .insights__range b, .insights__range strong { padding: 2px 4px; }
  .insights__environment-metrics { gap: 4px; max-width: 90%; }
  .insights__environment-metric { border-radius: 10px; padding: 6px 3px; }
  .insights__metric-icon { height: 18px; }
  .insights__environment-metric strong { font-size: 17px; }
  .insights__environment-metric small { font-size: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .insights--reveal-ready .insights__heading,
  .insights--reveal-ready .insights__card,
  .insights__card,
  .insights__wide-data,
  .insights__wide-data > *,
  .insights__environment-metric,
  .insights__compact-title {
    transition: none;
  }
}
