.hero > div:first-child { container-type: inline-size; min-width: 0; }
.hero h1 { font-size: clamp(2rem, 13cqi, 4.55rem); }

.evidence {
  --gap: clamp(.5rem, .85vw, .8rem);
  min-width: 0;
  padding: clamp(.8rem, 1.8vw, 1.55rem);
  border: 1px solid #344365;
  border-radius: clamp(1.15rem, 2.1vw, 1.9rem);
  background: linear-gradient(135deg, #1b2341 35%, #263854);
  color: #f8f9ff;
  box-shadow: 0 18px 40px #191e3a21;
}

.case-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(.6rem, 1.35vw, 1.25rem);
}
.case-panel { min-width: 0; }
.case-panel h2 {
  display: flex;
  align-items: center;
  gap: .48em;
  margin-bottom: .75rem;
  padding: .2rem 0 .65rem;
  border-bottom: 1px solid #506184;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  letter-spacing: 0;
  line-height: 1.35;
}
.case-panel h2::before {
  content: "";
  width: .22rem;
  height: 1em;
  flex: 0 0 auto;
  border-radius: 100px;
  background: #98adff;
}
.case-panel:nth-child(2) h2::before { background: #9cdeca; }
.case-group { display: grid; gap: var(--gap); padding-bottom: var(--gap); }
.case-tile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(.7rem, 1.5vw, 1.25rem);
  border: 1px solid #53678e;
  border-radius: clamp(.64rem, 1.2vw, 1rem);
  background: #354873;
}
.case-panel:first-child .case-tile { min-height: clamp(7.4rem, 10vw, 9rem); }
.case-tile h3 { font-size: clamp(.88rem, 1.15vw, 1.04rem); font-weight: 710; line-height: 1.4; }
.case-value {
  margin: .24rem 0 .13rem;
  font-size: clamp(1.45rem, 3vw, 2.7rem);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -.05em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.case-value small { margin-left: .18em; font-size: .43em; letter-spacing: 0; }
.case-metric { color: #dee7ff; font-size: .86rem; line-height: 1.45; }
.case-tile--feature { border-color: #8294d6; background: linear-gradient(135deg, #495eba, #344986); }
.case-tile--paper { border-color: #e5d4aa; background: #f1e6ce; color: #372c17; }
.case-tile--paper .case-metric { color: #5e5035; }
.case-tile--plum { border-color: #827398; background: #504368; }
.case-panel:nth-child(2) .case-tile {
  min-height: clamp(7.7rem, 10.5vw, 9.5rem);
  border-color: #587b78;
  background: #254844;
}
.case-panel:nth-child(2) .case-tile:nth-child(3n + 1) {
  border-color: #b7d8ca;
  background: #d9ece1;
  color: #173b33;
}
.case-panel:nth-child(2) .case-tile h3 { font-size: clamp(1.04rem, 1.65vw, 1.44rem); }
.case-panel:nth-child(2) .case-tile p {
  margin-top: .42rem;
  font-size: clamp(.84rem, .98vw, .95rem);
  line-height: 1.57;
}

.evidence[data-motion] .case-window {
  height: clamp(20rem, 31vw, 26rem);
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 0%, #000 92%, transparent);
}
.evidence[data-motion] .case-track { animation: case-scroll 69s linear infinite; }
.evidence[data-motion] .case-panel:nth-child(2) .case-track {
  animation-duration: 82s;
  animation-direction: reverse;
}
@keyframes case-scroll { to { transform: translateY(-50%); } }
.evidence[data-paused] .case-track { animation-play-state: paused; }
@media (hover: hover) {
  .evidence[data-motion] .case-window:hover .case-track { animation-play-state: paused; }
}
.motion-control:not([hidden]) {
  display: flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  margin: .4rem 0 0 auto;
  padding: .25rem .8rem;
  border: 1px solid #7b8ca9;
  border-radius: 100vw;
  background: #1c2a43;
  color: #eff3ff;
  font: inherit;
  font-size: .84rem;
  cursor: pointer;
}
.motion-control:hover { background: #344767; }
.motion-icon { width: .52rem; height: .64rem; border-inline: 2px solid currentColor; }
.evidence[data-paused] .motion-icon {
  width: 0;
  height: 0;
  border: .33rem solid transparent;
  border-right: 0;
  border-left: .5rem solid currentColor;
}
@media (max-width: 540px) {
  .case-panel h2 { gap: .28em; }
  .case-tile { padding: .72rem .58rem; }
}
