/*
 * Why partner with World Steel (WhyWorldSteel module): the six pillars
 * (wy_pillars) and the concerns about an overseas fabricator (wy_concerns).
 * Every other section uses the Landing and MultiStorey block styles.
 * Logical properties only (RTL for he/ar); spacing from the --space tokens;
 * card titles take the main-menu lettering through the shared selector list
 * in landing.css. Mobile rules (VICTOR): button labels never wrap, chip
 * strips stay on one row and swipe. Motion is skipped with reduced motion.
 */

/* Section headings follow the site-wide --fs-h2 token (Admin → Appearance → Typography, #110). */

/* ---------- Pillars ---------- */
.wy-pl-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
.wy-pl-index { display: none; }
.wy-pl-panels { display: grid; gap: clamp(28px, 4vw, 56px); }

.wy-pillar { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--white); border: 1px solid var(--steel-200); box-shadow: 0 18px 40px rgba(10, 26, 47, .06); scroll-margin-block-start: calc(var(--header-h) + 72px); }
.wy-pillar-media { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-900); }
.wy-pillar-media img { display: block; inline-size: 100%; block-size: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.wy-pillar-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(6, 17, 31, 0) 45%, rgba(6, 17, 31, .72) 100%); pointer-events: none; }
.wy-pillar-big { position: absolute; z-index: 1; inset-block-end: 6px; inset-inline-start: 18px; font: 700 clamp(72px, 9vw, 120px)/1 var(--f-display); color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .85); letter-spacing: 2px; }
.wy-pillar-body { padding: clamp(22px, 3.2vw, 40px); display: flex; flex-direction: column; }
.wy-pillar-body > * + * { margin-block-start: var(--space-3); }
.wy-pillar-k { display: flex; align-items: center; gap: var(--space-2); font: 500 13px/1.2 var(--f-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--red); }
.wy-pillar-ico { display: inline-grid; place-items: center; inline-size: 40px; block-size: 40px; flex: none; background: var(--red); color: var(--white); }
.wy-pillar-ico svg { inline-size: 22px; block-size: 22px; }
.lp .lp-sec .wy-pillar-body > h3 { font-size: var(--fs-card-title-lg); color: var(--navy-900); }
.wy-pillar-lead { font-size: 18px; line-height: 1.5; color: var(--navy-800); font-weight: 600; }
.wy-pillar-text { color: var(--ink-2); }
.wy-pillar-text > p + p { margin-block-start: var(--space-2); }
.lp .lp-sec .wy-proof-h { margin-block: var(--space-4) 0; font: 500 13px/1.2 var(--f-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--ink-2); }
.wy-proof { display: grid; gap: 10px; }
.lp .lp-sec .wy-proof-h + .wy-proof { margin-block-start: var(--space-2); }
.wy-proof li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.wy-proof li svg { inline-size: 18px; block-size: 18px; margin-block-start: 2px; color: var(--red); }
.wy-proof.is-dark li { color: var(--mist); }
.wy-proof.is-dark li svg { color: var(--gold); }
.wy-proof li.is-pending { outline: 2px dashed var(--gold); outline-offset: 3px; opacity: .8; }
.wy-pending-tag { font-style: normal; font-size: 12px; font-weight: 700; color: var(--navy-900); background: var(--gold); padding: 1px 6px; white-space: nowrap; }
.wy-pillar-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.lp .lp-sec .wy-pillar-body > .wy-pillar-cta { margin-block-start: var(--space-4); }
.wy-pillar-cta .btn { white-space: nowrap; }

@media (min-width: 720px) {
  .wy-pillar { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .wy-pillar-media { aspect-ratio: auto; min-block-size: 100%; }
  .wy-pillar:nth-child(even) .wy-pillar-media { order: 2; }
}
@media (min-width: 1100px) {
  .wy-pl-layout { grid-template-columns: 290px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
  .wy-pl-index { display: block; position: sticky; inset-block-start: calc(var(--header-h) + 72px); }
  .wy-pl-index ol { display: grid; border-inline-start: 1px solid var(--steel-200); }
  .wy-pl-index a { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 14px 16px; color: var(--ink-2); text-decoration: none; transition: color .25s, background .25s; }
  .wy-pl-index a::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: -1px; inline-size: 3px; background: var(--red); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
  .wy-pl-index a:hover { color: var(--navy-900); background: var(--steel-50); }
  .wy-pl-index a.is-active { color: var(--navy-900); background: var(--white); }
  .wy-pl-index a.is-active::before { transform: scaleY(1); }
  .wy-pl-n { font: 700 22px/1 var(--f-display); color: var(--steel-300); transition: color .25s; }
  .wy-pl-index a.is-active .wy-pl-n { color: var(--red); }
  .wy-pl-t { font-family: var(--f-card-title); font-weight: var(--fw-card-title); font-size: 15px; letter-spacing: var(--tracking-card-title); text-transform: var(--tt-card-title); line-height: 1.2; }
  .wy-pl-bar { grid-column: 2; block-size: 2px; background: var(--steel-100); overflow: hidden; }
  .wy-pl-bar i { display: block; block-size: 100%; inline-size: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
  [dir="rtl"] .wy-pl-bar i { transform-origin: right; }
}

/* Motion: panels slide in, the photo settles, proof points follow one by one. */
.wy-js .wy-pillar { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.wy-js .wy-pillar.is-in { opacity: 1; transform: none; }
.wy-js .wy-pillar .wy-pillar-media img { transform: scale(1.12); }
.wy-js .wy-pillar.is-in .wy-pillar-media img { transform: scale(1.02); }
.wy-js .wy-pillar .wy-pillar-big { opacity: 0; transform: translateY(24px); transition: opacity .8s ease .25s, transform .8s ease .25s; }
.wy-js .wy-pillar.is-in .wy-pillar-big { opacity: 1; transform: none; }
.wy-js .wy-pillar .wy-proof li { opacity: 0; transform: translateX(-12px); transition: opacity .45s ease, transform .45s ease; }
[dir="rtl"] .wy-js .wy-pillar .wy-proof li { transform: translateX(12px); }
.wy-js .wy-pillar.is-in .wy-proof li { opacity: 1; transform: none; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(2) { transition-delay: .08s; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(3) { transition-delay: .16s; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(4) { transition-delay: .24s; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(5) { transition-delay: .32s; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(6) { transition-delay: .4s; }
.wy-js .wy-pillar.is-in .wy-proof li:nth-child(n+7) { transition-delay: .48s; }

/* ---------- Concerns ---------- */
.wy-concerns { background: radial-gradient(120% 70% at 85% 0%, #13305A 0%, var(--navy-900) 55%, var(--navy-950) 100%); }
.wy-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block-end: 4px; }
.wy-chips::-webkit-scrollbar { display: none; }
.wy-chips li { flex: none; }
.wy-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--navy-700); color: var(--mist); text-decoration: none; white-space: nowrap; font: 500 14px/1 var(--f-display); letter-spacing: var(--tracking-card-title); text-transform: uppercase; transition: border-color .2s, color .2s, background .2s; }
.wy-chips a span { font-family: var(--f-mono); font-size: 12px; color: #FF8A8A; }
.wy-chips a:hover, .wy-chips a.is-active { border-color: var(--red); color: var(--white); background: rgba(165, 0, 0, .18); }
@media (min-width: 900px) { .wy-chips { flex-wrap: wrap; overflow: visible; } }

.wy-c-list { display: grid; gap: var(--space-4); counter-reset: none; }
.wy-c { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--navy-700); background: rgba(6, 17, 31, .55); scroll-margin-block-start: calc(var(--header-h) + 72px); }
.wy-c-worry, .wy-c-answer { padding: clamp(20px, 2.6vw, 32px); }
.wy-c-worry { border-block-end: 1px solid var(--navy-700); }
.wy-c-worry > * + *, .wy-c-answer > * + * { margin-block-start: var(--space-2); }
.wy-c-k { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1.2 var(--f-mono); letter-spacing: var(--tracking-label); text-transform: uppercase; color: #FF8A8A; }
.wy-c-k.is-answer { color: var(--gold); }
.wy-c-n { font: 700 26px/1 var(--f-display); color: var(--white); letter-spacing: 1px; }
.wy-c-ico, .wy-c-ok { display: inline-grid; place-items: center; inline-size: 34px; block-size: 34px; flex: none; border: 1px solid rgba(255, 138, 138, .45); color: #FF8A8A; }
.wy-c-ok { border-color: rgba(212, 161, 46, .5); color: var(--gold); }
.wy-c-ico svg, .wy-c-ok svg { inline-size: 18px; block-size: 18px; }
.lp .lp-sec .wy-c-worry > h3 { color: var(--white); }
.wy-c-worry-text { color: var(--mist-2); }
.wy-c-answer-text { color: var(--white); font-weight: 600; line-height: 1.5; }
.lp .lp-sec .wy-c-answer .wy-proof { margin-block-start: var(--space-3); }
.wy-c-more .textlink { color: var(--gold); }
.wy-c-link { display: none; }
.wy-c-note { color: var(--mist-2); font-size: 14px; }

@media (min-width: 900px) {
  .wy-c { grid-template-columns: minmax(0, 5fr) 72px minmax(0, 6fr); align-items: stretch; }
  .wy-c-worry { border-block-end: 0; }
  .wy-c-answer { background: rgba(19, 48, 90, .45); border-inline-start: 1px solid var(--navy-700); }
  .wy-c-link { display: grid; place-items: center; }
  .wy-c-link svg { inline-size: 64px; block-size: 24px; overflow: visible; }
  [dir="rtl"] .wy-c-link svg { transform: scaleX(-1); }
  .wy-c-line { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 70; stroke-dashoffset: 0; }
  .wy-c-head { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
}

/* Motion: the worry appears, the connector draws, then the answer lights up. */
.wy-js .wy-c .wy-c-worry, .wy-js .wy-c .wy-c-answer { opacity: 0; transition: opacity .6s ease, transform .6s ease; }
.wy-js .wy-c .wy-c-worry { transform: translateX(-16px); }
.wy-js .wy-c .wy-c-answer { transform: translateX(16px); transition-delay: .45s; }
[dir="rtl"] .wy-js .wy-c .wy-c-worry { transform: translateX(16px); }
[dir="rtl"] .wy-js .wy-c .wy-c-answer { transform: translateX(-16px); }
.wy-js .wy-c.is-in .wy-c-worry, .wy-js .wy-c.is-in .wy-c-answer { opacity: 1; transform: none; }
.wy-js .wy-c .wy-c-line { stroke-dashoffset: 70; transition: stroke-dashoffset .5s ease .2s; }
.wy-js .wy-c.is-in .wy-c-line { stroke-dashoffset: 0; }
.wy-js .wy-c .wy-c-head { opacity: 0; transition: opacity .3s ease .6s; }
.wy-js .wy-c.is-in .wy-c-head { opacity: 1; }
.wy-js .wy-c.is-in .wy-c-ok { animation: wy-ok .9s ease .7s 1 both; }
@keyframes wy-ok { 0% { box-shadow: 0 0 0 0 rgba(212, 161, 46, .6); } 100% { box-shadow: 0 0 0 14px rgba(212, 161, 46, 0); } }

@media (prefers-reduced-motion: reduce) {
  .wy-js .wy-pillar, .wy-js .wy-pillar *, .wy-js .wy-c, .wy-js .wy-c * { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; stroke-dashoffset: 0 !important; }
  .wy-pillar-media img { transition: none; }
}
