/*
 * Homepage band "Why partner with World Steel" (WhyWorldSteel module,
 * order 25 under the hero and the certification strip). Six numbered pillar
 * tiles and a concerns bar. home.js adds .hm-js to the page and .is-in to a
 * band in view; the tiles draw in one by one only then, never with reduced
 * motion. Logical properties only (RTL for he/ar); button labels never wrap.
 */
.hm-why { background: var(--white); position: relative; overflow: hidden; }
.hm-why::before { content: ""; position: absolute; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%); transform-origin: left; }
[dir="rtl"] .hm-why::before { transform-origin: right; background: linear-gradient(270deg, var(--red) 0%, var(--gold) 100%); }

.hm-why-grid { margin: var(--space-5) 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--steel-200); border: 1px solid var(--steel-200); }
.hm-why-grid li { display: flex; background: var(--white); }
.hm-why-tile { position: relative; flex: 1 1 auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "ico title n" "ico text arrow"; gap: 4px 16px; align-items: start; padding: 20px 20px 22px; color: inherit; text-decoration: none; transition: background .3s ease; isolation: isolate; }
.hm-why-tile::after { content: ""; position: absolute; inset-block-end: 0; inset-inline-start: 0; inline-size: 100%; block-size: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
[dir="rtl"] .hm-why-tile::after { transform-origin: right; }
.hm-why-tile:hover, .hm-why-tile:focus-visible { background: var(--steel-50); }
.hm-why-tile:hover::after, .hm-why-tile:focus-visible::after { transform: scaleX(1); }
.hm-why-ico { grid-area: ico; display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; background: var(--navy-900); color: var(--white); transition: background .3s ease; }
.hm-why-tile:hover .hm-why-ico { background: var(--red); }
.hm-why-ico svg { inline-size: 22px; block-size: 22px; }
.hm-why-tile b { grid-area: title; align-self: center; font-family: var(--f-card-title); font-weight: var(--fw-card-title); font-size: var(--fs-card-title); letter-spacing: var(--tracking-card-title); text-transform: var(--tt-card-title); line-height: 1.15; color: var(--navy-900); }
.hm-why-text { grid-area: text; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.hm-why-n { grid-area: n; font: 700 30px/1 var(--f-display); color: transparent; -webkit-text-stroke: 1px var(--steel-300); transition: color .3s ease, -webkit-text-stroke-color .3s ease; }
.hm-why-tile:hover .hm-why-n { color: var(--red); -webkit-text-stroke-color: var(--red); }
.hm-why-arrow { grid-area: arrow; align-self: end; justify-self: end; color: var(--red); font-size: 18px; transition: transform .3s ease; }
[dir="rtl"] .hm-why-arrow { transform: scaleX(-1); }
.hm-why-tile:hover .hm-why-arrow { transform: translateX(4px); }
[dir="rtl"] .hm-why-tile:hover .hm-why-arrow { transform: scaleX(-1) translateX(4px); }

.hm-why-concerns { margin-block-start: var(--space-4); display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px 16px; align-items: center; padding: 18px 20px; background: var(--navy-900); color: var(--mist); }
.hm-why-concerns p { margin: 0; line-height: 1.5; }
.hm-why-concerns-ico { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; border: 1px solid rgba(212, 161, 46, .55); color: var(--gold); }
.hm-why-concerns-ico svg { inline-size: 20px; block-size: 20px; }
.hm-why-concerns .btn { grid-column: 1 / -1; justify-self: start; white-space: nowrap; background: var(--red); border-color: var(--red); color: var(--white); }

@media (min-width: 640px) {
  .hm-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .hm-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hm-why-tile { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ico n" "title title" "text text" "arrow arrow"; gap: 14px 12px; padding: 28px 28px 26px; }
  .hm-why-tile b { margin-block-start: 6px; }
  .hm-why-n { font-size: 44px; }
  .hm-why-concerns { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .hm-why-concerns .btn { grid-column: auto; }
}

/* Motion: the top seam draws, then the tiles rise one by one. */
.hm-js .hm-why::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .7, .2, 1); }
.hm-js .hm-why.is-in::before { transform: scaleX(1); }
.hm-js .hm-why .hm-why-grid li { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; transition-delay: calc(.25s + var(--i, 0) * .09s); }
.hm-js .hm-why.is-in .hm-why-grid li { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hm-why::before, .hm-why-grid li, .hm-why-tile, .hm-why-tile::after, .hm-why-arrow { transition: none !important; }
  .hm-js .hm-why .hm-why-grid li { opacity: 1; transform: none; }
  .hm-js .hm-why::before { transform: none; }
}
