/*
 * Weathering steel page (WeatheringSteel module): the patina and exposure
 * guide (wx_patina). Every other section uses the industrial plants block
 * styles (ip.css). Logical properties only (RTL for he/ar). Mobile rules
 * (VICTOR): button labels never wrap, chip and step rows stay on one line
 * and swipe, everything fits a 360px screen.
 *
 * Swatch colours are drawn, not photographed: they show the direction of
 * change of the surface, not a colour any project will match.
 */
.wx-patina { --wx-bare: #6F7A86; --wx-early: #B0562A; --wx-developing: #8E4320; --wx-stable: #5C2E17; }
.wx-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 16px; align-items: start; }
.wx-card { min-inline-size: 0; padding: clamp(18px, 2.4vw, 28px); background: var(--steel-50); border: 1px solid var(--steel-200); border-block-start: 4px solid var(--red); }
.wx-sub { margin: 0 0 16px; font-family: var(--f-display); font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--ink); }

/* Stages */
.wx-steps { display: flex; gap: 8px; margin: 0 0 16px; overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.wx-step { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 10px 14px; background: var(--white); border: 1px solid var(--steel-200); color: var(--ink); font: 600 14px/1.2 var(--f-body); white-space: nowrap; cursor: pointer; }
.wx-step-n { font-family: var(--f-mono); font-size: 12px; color: var(--red); }
.wx-step[aria-selected="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.wx-step[aria-selected="true"] .wx-step-n { color: #FF8A8A; }
.wx-step:focus-visible, .wx-chip:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.wx-stage-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.wx-stage { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
.wx-stage h4 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; color: var(--ink); }
.wx-stage p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.wx-swatch { position: relative; aspect-ratio: 4 / 3; border: 1px solid rgba(0, 0, 0, .15); overflow: hidden; }
.wx-swatch::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, .14) 0 12%, transparent 13%), radial-gradient(circle at 70% 60%, rgba(0, 0, 0, .18) 0 10%, transparent 11%), radial-gradient(circle at 45% 80%, rgba(0, 0, 0, .12) 0 14%, transparent 15%), repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px); }
.wx-swatch.is-bare { background: linear-gradient(135deg, #8C96A1, var(--wx-bare) 60%, #59636E); }
.wx-swatch.is-early { background: linear-gradient(135deg, #C9733E, var(--wx-early) 55%, #8A6A55); }
.wx-swatch.is-developing { background: linear-gradient(135deg, #A9562B, var(--wx-developing) 55%, #6B3519); }
.wx-swatch.is-stable { background: linear-gradient(135deg, #774026, var(--wx-stable) 55%, #3F1E0F); }
.wx-swatch-tag { position: absolute; inset-block-end: 8px; inset-inline-start: 8px; padding: 2px 8px; background: rgba(10, 26, 48, .8); color: var(--white); font: 600 12px/1.6 var(--f-mono); }
.wx-patina.is-live .wx-stage-list { display: block; }
.wx-patina.is-live .wx-stage { grid-template-columns: minmax(0, 1fr); }
.wx-patina.is-live .wx-stage[hidden] { display: none; }
.wx-patina.is-live .wx-swatch { aspect-ratio: 16 / 7; transition: background .4s ease; }

/* Exposure guide */
.wx-env-intro { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.wx-chips { display: flex; gap: 8px; margin: 0 0 14px; overflow-x: auto; padding-block-end: 4px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.wx-chip { display: inline-flex; flex: none; align-items: center; gap: 8px; padding: 9px 12px; background: var(--white); border: 1px solid var(--steel-200); color: var(--ink); font: 600 14px/1.2 var(--f-body); white-space: nowrap; cursor: pointer; }
.wx-chip i, .wx-legend i { display: inline-block; flex: none; inline-size: 10px; block-size: 10px; border-radius: 50%; background: #1E7B4C; }
.wx-chip.is-review i, .wx-legend .is-review i { background: #B7791F; }
.wx-chip.is-avoid i, .wx-legend .is-avoid i { background: var(--red); }
.wx-chip[aria-pressed="true"] { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }
.wx-verdicts { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.wx-verdict { padding: 14px 16px; background: var(--white); border: 1px solid var(--steel-200); border-inline-start: 4px solid #1E7B4C; }
.wx-verdict.is-review { border-inline-start-color: #B7791F; }
.wx-verdict.is-avoid { border-inline-start-color: var(--red); }
.wx-verdict b { display: block; margin-block: 8px 4px; font-size: 16px; color: var(--ink); }
.wx-verdict p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.wx-patina.is-live .wx-verdict[hidden] { display: none; }
.wx-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; background: #E5F3EC; color: #145536; font: 600 12px/1.5 var(--f-mono); letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; }
.wx-badge .ico { inline-size: 14px; block-size: 14px; }
.is-review .wx-badge { background: #FBF0DC; color: #7A4F0E; }
.is-avoid .wx-badge { background: #F8E3E3; color: var(--red-700); }
.wx-legend { display: grid; gap: 6px; margin: 16px 0 0; }
.wx-legend div { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.wx-legend dt { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); }
.wx-legend dd { margin: 0; }

.wx-note { display: flex; gap: 10px; align-items: flex-start; margin-block: clamp(20px, 3vw, 28px) 0; max-inline-size: 100ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.wx-note .ico { flex: none; inline-size: 20px; block-size: 20px; color: var(--red); }
.wx-patina .btn { white-space: nowrap; }

/* Strips: one row that swipes on phones and tablets (VICTOR's mobile rule);
   from 900px they sit in a half-width panel, so they wrap instead of
   clipping. */
.wx-steps, .wx-chips { scroll-padding-inline: 16px; }
@media (min-width: 900px) {
  .wx-steps, .wx-chips { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 899px) {
  .wx-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 559px) {
  .wx-stage { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .wx-patina .lp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .wx-patina .lp-actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .wx-patina.is-live .wx-swatch { transition: none; }
}

/* ==========================================================================
   Motion (VICTOR 2026-11-14: "vivid, impressive effects"). wx.js adds
   .wx-fx to the page root only on this page and only when the visitor has
   not asked for reduced motion; without it everything is static and fully
   visible. Effects:
   - hero: slow zoom of the photo and a rust-coloured light sweep;
   - patina: one live swatch whose colours blend from stage to stage
     (registered custom properties), rust blooms that grow, a progress bar
     on the stage buttons while the stages play once through;
   - exposure guide: verdicts slide in, status dots pulse;
   - every section: content rises into view, cards one after another;
   - factory figures count up; process steps light up in sequence.
   ========================================================================== */
@property --wx-c1 { syntax: '<color>'; inherits: true; initial-value: #8C96A1; }
@property --wx-c2 { syntax: '<color>'; inherits: true; initial-value: #6F7A86; }
@property --wx-c3 { syntax: '<color>'; inherits: true; initial-value: #59636E; }

/* Hero */
.wx-fx .lp-hero-media { overflow: hidden; }
.wx-fx .lp-hero-media img { animation: wx-zoom 18s ease-out both; transform-origin: 60% 50%; }
.wx-fx .lp-hero-media::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 30%, rgba(176, 86, 42, .38) 46%, rgba(255, 170, 110, .22) 52%, transparent 66%); background-size: 250% 100%; mix-blend-mode: soft-light; animation: wx-sweep 7s ease-in-out 1s infinite; }
.wx-fx .lp-hero-copy > * { animation: wx-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.wx-fx .lp-hero-copy > *:nth-child(2) { animation-delay: .08s; }
.wx-fx .lp-hero-copy > *:nth-child(3) { animation-delay: .16s; }
.wx-fx .lp-hero-copy > *:nth-child(4) { animation-delay: .24s; }
.wx-fx .lp-hero-copy > *:nth-child(5) { animation-delay: .32s; }
.wx-fx .lp-hero-copy > *:nth-child(n+6) { animation-delay: .4s; }
@keyframes wx-zoom { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes wx-sweep { 0% { background-position: 120% 0; } 60%, 100% { background-position: -40% 0; } }
@keyframes wx-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* Live patina swatch */
.wx-live { display: none; }
.wx-fx .wx-live { position: relative; display: block; margin: 0 0 16px; aspect-ratio: 16 / 7; overflow: hidden; border: 1px solid rgba(0, 0, 0, .15); background: linear-gradient(135deg, var(--wx-c1), var(--wx-c2) 55%, var(--wx-c3)); transition: --wx-c1 1.4s ease, --wx-c2 1.4s ease, --wx-c3 1.4s ease; box-shadow: inset 0 0 60px rgba(0, 0, 0, .25); }
.wx-live[data-tone="bare"] { --wx-c1: #8C96A1; --wx-c2: #6F7A86; --wx-c3: #59636E; }
.wx-live[data-tone="early"] { --wx-c1: #D27A40; --wx-c2: #B0562A; --wx-c3: #8A6A55; }
.wx-live[data-tone="developing"] { --wx-c1: #A9562B; --wx-c2: #8E4320; --wx-c3: #6B3519; }
.wx-live[data-tone="stable"] { --wx-c1: #774026; --wx-c2: #5C2E17; --wx-c3: #3F1E0F; }
.wx-live::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 7px); }
.wx-live::after { content: ""; position: absolute; inset: -20%; background: linear-gradient(100deg, transparent 40%, rgba(255, 255, 255, .16) 50%, transparent 60%); animation: wx-glint 5s ease-in-out infinite; }
.wx-bloom { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(140, 58, 20, .75) 0, rgba(176, 86, 42, .45) 45%, transparent 70%); transform: scale(0); opacity: 0; transition: transform 1.6s cubic-bezier(.2, .7, .2, 1), opacity 1.6s ease; }
.wx-live[data-tone="early"] .wx-bloom { transform: scale(.55); opacity: .8; }
.wx-live[data-tone="developing"] .wx-bloom { transform: scale(1); opacity: .9; }
.wx-live[data-tone="stable"] .wx-bloom { transform: scale(1.5); opacity: .35; }
.wx-live-tag { position: absolute; inset-block-end: 12px; inset-inline-start: 12px; z-index: 1; padding: 4px 10px; background: rgba(10, 26, 48, .82); color: var(--white); font: 600 12.5px/1.5 var(--f-mono); letter-spacing: .8px; text-transform: uppercase; white-space: nowrap; }
.wx-fx .wx-stage .wx-swatch { display: none; }
.wx-fx .wx-stage:not([hidden]) .wx-stage-copy { animation: wx-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wx-glint { 0%, 55% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }

/* Step progress while the stages play */
.wx-step { position: relative; overflow: hidden; }
.wx-step::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: 0; inline-size: 0; block-size: 3px; background: var(--red); }
.wx-fx .wx-patina.is-playing .wx-step[aria-selected="true"]::after { animation: wx-fill var(--wx-dwell, 3s) linear both; }
@keyframes wx-fill { to { inline-size: 100%; } }

/* Exposure guide */
.wx-fx .wx-verdict:not([hidden]) { animation: wx-slide .5s cubic-bezier(.2, .7, .2, 1) both; }
.wx-fx .wx-chip[aria-pressed="true"] i { animation: wx-pulse 1.6s ease-out infinite; }
@keyframes wx-slide { from { opacity: 0; transform: translateX(calc(24px * var(--wx-dir, 1))); } to { opacity: 1; transform: none; } }
@keyframes wx-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); } 100% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } }
[dir="rtl"] .wx-fx { --wx-dir: -1; }

/* Scroll reveal */
.wx-fx [data-wx-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--wx-i, 0) * 80ms); }
.wx-fx [data-wx-reveal].is-in { opacity: 1; transform: none; }
.wx-fx .ip-photo[data-wx-reveal], .wx-fx .lp-photo[data-wx-reveal] { transform: scale(.94); transition: opacity 1s ease, transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.wx-fx .ip-photo[data-wx-reveal].is-in, .wx-fx .lp-photo[data-wx-reveal].is-in { transform: none; }

/* Process steps light up in sequence */
.wx-fx .ip-stage.is-in .ip-no, .wx-fx .ip-process li.is-in .ip-no { animation: wx-glow 1s ease both; animation-delay: calc(var(--wx-i, 0) * 80ms + .2s); }
@keyframes wx-glow { 0% { background-color: transparent; } 40% { background-color: var(--red); color: var(--white); } 100% { } }

@media (prefers-reduced-motion: reduce) {
  .wx-fx *, .wx-fx *::before, .wx-fx *::after { animation: none !important; transition: none !important; }
  .wx-fx [data-wx-reveal] { opacity: 1; transform: none; clip-path: none; }
}
