/* =============================================================================
   GELOT INTERNATIONAL — INTERACTION LAYER  (loads last, additive only)
   -----------------------------------------------------------------------------
   This file never restates layout. It adds motion, focus states and state
   feedback on top of the "Industrial Editorial" system. Squared geometry and
   hard offset shadows are enforced here so no later rule can round a corner.

   01 TEXT       02 PRESS      03 FOCUS      04 STATES     05 MOTION
   06 SAFE AREA
   ========================================================================== */

/* ---------------------------------------------------------- 01  TEXT ---- */
body {
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}
.sec-head h2,
.split-copy h2,
.hero-copy h1 { text-wrap: balance; }
.cat-body p,
.prod-short,
.wf-step p,
.buyer-list li p,
.info-card p { text-wrap: pretty; }
/* Mono metadata never wraps mid-token — index numerals stay on one line. */
.wf-n, .b-idx, .fc-k, .trust-l, .f-item dt, .p-num { white-space: nowrap; }

/* --------------------------------------------------------- 02  PRESS ---- */
/* A printed metal stamp travelling across filled buttons on hover. */
.btn { position: relative; overflow: hidden; }
.btn > span, .btn { z-index: 0; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, .14);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.btn:hover::before { transform: scaleX(1); }
.btn-red:hover::before { background: rgba(0, 0, 0, .16); }
.btn-ghost::before { background: rgba(20, 22, 15, .07); }
.btn:active { box-shadow: none; }
.cat-card:active, .prod-item:active, .wf-step:active { transform: translateY(1px); }

/* --------------------------------------------------------- 03  FOCUS ---- */
/* Keyboard focus uses the signal red as a 3px offset ring with no radius. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
summary { cursor: pointer; }
summary::-webkit-details-marker { display: none; }

/* -------------------------------------------------------- 04  STATES ---- */
.faq[open] > summary { color: var(--red-solid); }
.faq[open] .faq-x { transform: rotate(180deg); }
.faq-x { transition: transform .28s var(--ease); }
.mega-in > a:focus-visible { outline-offset: -3px; }

/* --------------------------------------------------------- 05  MOTION ---- */
@keyframes gFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gTick { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.trust-item::before { animation: gTick .6s var(--ease-out) both; }
.trust-item:nth-child(2)::before { animation-delay: .08s; }
.trust-item:nth-child(3)::before { animation-delay: .16s; }
.trust-item:nth-child(4)::before { animation-delay: .24s; }

/* -------------------------------------------------------- 08 SAFE AREA ---- */
@supports (padding: max(0px)) {
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .btn:hover { transform: none; }
}
