/* Search sculpture responds to the visitor; the copy stays anchored. */
.home-hero .sculpture-art { transform-origin: 50% 55%; }
.hero-demo-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 21px; color: #365bc3; font-size: 13px; font-weight: 600; text-decoration: underline; text-decoration-color: #b9c8f7; text-underline-offset: 5px; }
.hero-demo-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.hero-demo-link:hover { text-decoration-color: currentColor; }
.hero-demo-link:focus-visible { outline: 3px solid #4268e8; outline-offset: 6px; border-radius: 3px; }
.home-hero ~ #demo { scroll-margin-top: 24px; }
body:has(.home-hero) .feature-tabs button { transition: background-color 180ms, border-color 180ms, color 180ms; }
body:has(.home-hero) #keyword-rows tr:hover { background: #f0f3ff; }
@media (prefers-reduced-motion: no-preference) {
  .home-hero .button { transition: transform 180ms cubic-bezier(.16,1,.3,1), background-color 180ms, box-shadow 180ms; }
  .home-hero .button:hover { transform: translateY(-2px); box-shadow: 0 8px 18px #34425c14; }
  .home-hero .button:active { transform: translateY(1px); box-shadow: none; }
  .hero-demo-link svg { transition: transform 180ms cubic-bezier(.16,1,.3,1); }
  .hero-demo-link:hover svg { transform: translateY(3px); }
  body:has(.home-hero) .feature-art-card > img { transition: transform 400ms cubic-bezier(.16,1,.3,1); }
  body:has(.home-hero) .feature-art-card:is(:hover,:focus-visible) > img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero .sculpture-art { transform: none !important; }
  body:has(.home-hero) .feature-tabs button { transition: none; }
}
@media (hover: none) { .home-hero .button:hover { transform: none; box-shadow: none; } }

/* Keep the desktop bento composition; make its three panels swipeable on phones. */
.bento-carousel-track { display: contents; }
.bento-carousel-controls { display: none; }
@media (max-width: 760px) {
  body:has(.home-hero) .bento-carousel-track {
    display: flex; gap: 16px; overflow-x: auto; margin: 0 -18px;
    padding: 4px 18px 14px; scroll-padding-inline: 18px;
    scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    scrollbar-width: none;
  }
  .bento-carousel-track::-webkit-scrollbar { display: none; }
  body:has(.home-hero) .bento-carousel-track .show-pair { display: contents; }
  body:has(.home-hero) .bento-carousel-track .show-feature {
    flex: 0 0 92%; min-width: 0; scroll-snap-align: start;
    scroll-snap-stop: always; padding: 25px 22px 0;
    display: flex; flex-direction: column;
  }
  .bento-carousel-track .show-copy { flex: 1; }
  body:has(.home-hero) .bento-carousel-track .show-copy p { min-height: 0; }
  body:has(.home-hero) .bento-carousel-track .show-art { flex: none; height: 325px; margin-top: 26px; padding: 0; }
  body:has(.home-hero) .bento-carousel-track .show-link { position: static; align-self: flex-start; margin-top: 15px; }
  .bento-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 6px; }
  .bento-carousel-controls button {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border: 1px solid var(--line);
    border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer;
  }
  .bento-carousel-controls button:hover:not(:disabled) { background: #eef1fa; }
  .bento-carousel-controls button:disabled { opacity: .35; cursor: default; }
  .bento-carousel-controls button:focus-visible { outline: 3px solid #4268e8; outline-offset: 3px; }
  .bento-carousel-controls svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.7; fill: none; }
  .bento-carousel-dots { display: flex; gap: 0; }
  .bento-carousel-dots button { border: 0; background: transparent; }
  .bento-carousel-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #657084; }
  .bento-carousel-dots button[aria-current="true"]::before { width: 22px; border-radius: 6px; background: #4268e8; }
  .bento-carousel-status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
