/* Motion uses transform and opacity; content remains available without JavaScript. */
.hero-story h1 { animation: none; }
.hero-story h1 > .hero-line { display: block; overflow: hidden; color: #fff; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-line > span { display: block; }
.hero-story h1 > .accent-line { color: var(--acid); }
.motion-toggle { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 11px; margin: -9px -9px 0 0; border: 1px solid #ffffff60; border-radius: 30px; background: #16374070; color: #fff; font-size: 10px; letter-spacing: 0; backdrop-filter: blur(10px); }
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover { background: #163740b0; }
.motion-toggle:focus-visible { outline: 2px solid var(--acid); outline-offset: 4px; }
.trust-window { margin-top: 28px; }
.trust-group { display: grid; grid-template-columns: repeat(8, 1fr); align-items: center; }
.trust-item { display: flex; align-items: center; justify-content: center; height: 68px; padding: 0 23px; border-right: 1px solid #dce3d4; }
.trust-item img { max-width: 135px; max-height: 52px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.trust-item:nth-child(2) img { max-width: 83px; }
.trust-item:nth-child(4) img { max-width: 58px; }
.trust-item:nth-child(5) img { max-width: 100px; }
.trust-item .credential-wordmark { font-size: 25px; letter-spacing: -.055em; }
.trust-item:focus-visible { outline: 2px solid #4c6142; outline-offset: -3px; border-radius: 8px; }
.trust-copy { display: none; }
.credential-card { transition: background .3s; }
.credential-card:hover { background: #f1f6e8; }
.button > span { transition: transform .35s cubic-bezier(.2,.75,.25,1); }
.button:hover > span { transform: translate(3px,-3px); }
@media (prefers-reduced-motion: no-preference) {
  .hero-line > span { animation: line-rise 1.1s cubic-bezier(.16,1,.3,1) both; }
  .hero-line:nth-child(2) > span { animation-delay: .12s; }
  .hero-line:nth-child(3) > span { animation-delay: .24s; }
  .hero-story .hero-description { animation-delay: .32s; }
  .hero-story .actions { animation-delay: .42s; }
  .motion-enabled .cargo-image { animation: ocean-drift 22s ease-in-out infinite alternate; }
  .motion-enabled .origin-chip { animation: origin-float 6s ease-in-out infinite; }
  .motion-enabled .tiny-cross { animation: compass-turn 24s linear infinite; }
  .motion-enabled .trust-window { overflow: hidden; mask-image: linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent); }
  .motion-enabled .trust-track { display: flex; width: max-content; animation: credential-drift 48s linear infinite; }
  .motion-enabled .trust-group { display: flex; flex-shrink: 0; }
  .motion-enabled .trust-item { width: 180px; flex-shrink: 0; }
  .motion-enabled .trust-window:hover .trust-track { animation-play-state: paused; }
  /* Reset the original group into view when tabbing, so every focused logo stays visible. */
  .motion-enabled .trust-window:focus-within { overflow: auto; mask-image: none; }
  .motion-enabled .trust-window:focus-within .trust-track { animation: none; }
  .reveal-pending { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--reveal-delay,0ms), transform .8s cubic-bezier(.16,1,.3,1) var(--reveal-delay,0ms); }
  .reveal-pending.is-revealed, .reveal-pending:focus-within { opacity: 1; transform: none; }
  .motion-paused .cargo-image, .motion-paused .origin-chip, .motion-paused .tiny-cross, .motion-paused .trust-track,
  .motion-offscreen .cargo-image, .motion-offscreen .origin-chip, .motion-offscreen .tiny-cross,
  .trust-offscreen .trust-track, .page-hidden .cargo-image, .page-hidden .origin-chip, .page-hidden .tiny-cross, .page-hidden .trust-track { animation-play-state: paused; }
  .motion-paused .hero-line > span, .motion-paused .hero-description, .motion-paused .hero-story .actions, .motion-paused .hero-visual { animation: none; }
  .motion-paused .reveal-pending { opacity: 1; transform: none; transition: none; }
}
@keyframes line-rise { from { transform: translateY(110%); } to { transform: translateY(0); } }
@keyframes ocean-drift { from { transform: scale(1.025) translateX(-.5%); } to { transform: scale(1.13) translateX(.5%); } }
@keyframes origin-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes compass-turn { to { transform: rotate(360deg); } }
@keyframes credential-drift { to { transform: translateX(-50%); } }
@media (max-width: 1000px) { .trust-group { grid-template-columns: repeat(3,1fr); gap: 18px 0; } }
@media (max-width: 650px) {
  .motion-toggle { font-size: 9px; padding: 4px 9px; min-height: 30px; }
  .trust-item { padding: 0 17px; height: 58px; }
  .trust-item img { max-height: 44px; }
  .trust-item .credential-wordmark { font-size: 20px; }
  .motion-enabled .trust-item { width: 146px; }
  .motion-enabled .trust-track { animation-duration: 42s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .hero-visual:hover .cargo-image, .collection-card:hover > img, .button:hover, .button:hover > span { transform: none; }
}
