/* Geometry refinements retain the existing colours and hero artwork. */
html, body { overflow-x: clip; }
main > section:not(.final-hero) {
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}
.product-grid:not(.deck-track) { grid-auto-rows: 1fr; gap: 24px; }
.product-grid:not(.deck-track) > .product { height: 100%; }
.product-grid:not(.deck-track) .product-img { aspect-ratio: 16 / 10; }
.product-grid:not(.deck-track) .product-img > img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-grid .product-img { position: relative; }
.product-grid .product-img > span { inset: auto 16px 16px auto; }
.steps:not(.deck-track), .evidence-grid { grid-auto-rows: 1fr; gap: 24px; }
.evidence-grid > a { display: flex; flex-direction: column; padding: 24px; }
.evidence-grid h3 { margin-block: 16px; }
.evidence-grid p { margin-top: 0; margin-bottom: 0; }
.steps:not(.deck-track) > div { padding-top: 24px; }
.steps:not(.deck-track) h3 { margin-block: 16px; }
main > section:not(.final-hero) p { text-wrap: pretty; }
.deck-copy { display: flex; flex-direction: column; justify-content: center; }
.deck-controls { margin-top: 32px; gap: 16px; }
.deck-controls button { min-width: 44px; min-height: 44px; }
.product, .button, .textlink, .round, .deck-controls button {
  transition-property: transform, opacity;
}
.button > span, .product-img > span {
  display: inline-block;
  transition: transform 180ms ease-out;
}
.button:hover > span, .product:hover .product-img > span {
  transform: translate(2px, -2px);
}
.mobile.open { animation: menu-enter 180ms ease-out; }
@keyframes menu-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (min-width: 769px) {
  .evidence-grid h3 { min-height: 2.8em; }
}
@media (max-width: 768px) {
  .steps:not(.deck-track), .evidence-grid { grid-template-columns: minmax(0,1fr); }
  .product-grid:not(.deck-track) { grid-template-columns: minmax(0,1fr); }
  .footlinks a, .bottom a, .reading a, .paper-links a {
    display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  }
  .menu, .round { min-width: 44px; min-height: 44px; }
  .deck-track .deck-copy { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile.open { animation: none; }
  .button > span, .product-img > span { transition: none; transform: none; }
}
.product-card-title { font-size: var(--h3); line-height: 1.35; }
.deck-track .deck-copy .product-card-title {
  font-size: clamp(26px, 3vw, 40px); margin: 12px 0 18px;
}
.deck-track > .deck-card:not(.deck-leaving):not(.deck-preview) { min-height: inherit; }
