/*
 * Australia structural steel page (Australia module). Builds on the theme
 * (.band, .wrap, .btn, .eyebrow), landing.css (.lp-*), ms.css and lw.css
 * (chips). Logical properties only (RTL for he/ar). Mobile rules (VICTOR):
 * button labels never wrap; chip and tab strips stay on one row and swipe
 * sideways; the header fits one row.
 */

.au-sec .btn { white-space: nowrap; }

/* ---- Requirements matrix ---- */
.au-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-2); }
.au-legend li { display: flex; gap: 8px; align-items: center; }
.au-status { display: inline-flex; align-items: center; min-block-size: 24px; padding: 0 9px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; border: 1px solid currentColor; }
.au-status.is-certified { background: var(--red); border-color: var(--red); color: var(--white); }
.au-status.is-project { color: var(--navy-900); background: var(--white); }
.au-status.is-request { color: var(--ink-2); background: var(--steel-50); border-style: dashed; }
.au-tabs .lp-tablist [role="tab"] .ico { inline-size: 18px; block-size: 18px; }
.au-panel-body { display: flex; flex-direction: column; gap: 20px; }
.au-panel-intro { max-inline-size: 86ch; }
.au-panel-intro h3 { font-size: 22px; line-height: 1.3; margin-block-end: 8px; }
.au-panel-intro p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.au-matrix { border: 1px solid var(--steel-200); border-block-start: 3px solid var(--red); background: var(--white); }
.au-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1.9fr) 128px; gap: 16px; padding: 14px 18px; border-block-start: 1px solid var(--steel-200); align-items: start; font-size: 14.5px; line-height: 1.55; }
.au-row:nth-child(even) { background: var(--steel-50); }
.au-row-head { border-block-start: 0; background: var(--navy-900) !important; color: var(--white); font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1.2px; text-transform: uppercase; padding-block: 12px; }
.au-req b { font-weight: 600; color: var(--ink); }
.au-ref { font-family: var(--f-mono); font-size: 13px; color: var(--navy-900); }
.au-resp { color: var(--ink-2); }
.au-records { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; padding: 14px 18px; background: var(--steel-50); border-inline-start: 4px solid var(--red); }
.au-records-label { font-family: var(--f-mono); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--red); }
.au-records ul { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; }
.au-records li { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.au-records .ico { inline-size: 16px; block-size: 16px; color: var(--red); }

/* ---- Shipping simulation ---- */
.au-sim { display: flex; flex-direction: column; gap: 22px; }
.au-sim-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 28px; align-items: end; }
.au-ctl { display: flex; flex-direction: column; gap: 8px; min-inline-size: 0; }
.au-ctl-label { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mist); }
.au-route .lw-chip { background: transparent; color: var(--white); border-color: var(--navy-600); }
.au-route .lw-chip:hover { border-color: var(--white); }
.au-route .lw-chip[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.au-sim-stage { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 0; border: 1px solid var(--navy-700); background: var(--navy-950, #06111F); }
.au-map { position: relative; margin: 0; min-inline-size: 0; }
.au-map svg { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 1.05 / 1; max-block-size: 620px; }
.au-land path { fill: #18304D; stroke: #0A1A30; stroke-width: .25; }
.au-line { fill: none; stroke: #5B7594; stroke-width: 1.2; stroke-dasharray: 2 2.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: .6; transition: opacity .2s, stroke .2s; }
.au-line.is-on { stroke: #E3B341; stroke-width: 2.4; stroke-dasharray: none; opacity: 1; }
.au-origin circle { fill: var(--red); }
.au-origin .au-pulse { fill: none; stroke: var(--red); stroke-width: .6; transform-origin: center; animation: au-pulse 2.4s ease-out infinite; }
@keyframes au-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
.au-port { cursor: pointer; }
.au-port circle { fill: var(--white); stroke: var(--navy-900); stroke-width: .5; }
.au-port.is-on circle { fill: #E3B341; }
.au-label { font-family: var(--f-body, sans-serif); font-size: 3.4px; font-weight: 600; fill: var(--mist); paint-order: stroke; stroke: #06111F; stroke-width: .7px; }
.au-port.is-on .au-label { fill: var(--white); }
.au-label-origin { fill: var(--white); }
.au-ship circle { fill: var(--red); stroke: var(--white); stroke-width: .5; }
.au-ship path { fill: var(--white); }
.au-route:not(.is-live) .au-ship { display: none; }
.au-map-cap { margin: 0; padding: 8px 14px 12px; font: 500 11px/1.4 var(--f-mono); letter-spacing: 1.2px; text-transform: uppercase; color: var(--mist-2, var(--mist)); }
.au-readout { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.6vw, 30px); background: var(--navy-800); border-inline-start: 1px solid var(--navy-700); color: var(--white); }
.au-ro-kicker { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: #FF8A8A; }
.au-ro-port { font-family: var(--f-display); font-size: clamp(26px, 3vw, 34px); line-height: 1.1; text-transform: uppercase; }
.au-ro-port small { font-family: var(--f-mono); font-size: 13px; color: var(--mist); letter-spacing: 1px; }
.au-ro-state { color: var(--mist); font-size: 14.5px; }
.au-ro-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 0; }
.au-ro-figs div { padding: 12px 14px; background: var(--navy-900); border-block-start: 2px solid var(--red); }
.au-ro-figs dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--mist); }
.au-ro-figs dd { margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--f-display); font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; }
.au-ro-figs small { font-family: var(--f-body, sans-serif); font-size: 13px; color: var(--mist); }
.au-ro-progress { block-size: 4px; background: var(--navy-700); overflow: hidden; }
.au-ro-progress span { display: block; block-size: 100%; inline-size: 0; background: #E3B341; }
.au-ro-day { font-family: var(--f-mono); font-size: 12.5px; color: var(--mist); }
.au-play { align-self: flex-start; }
.au-ro-note { font-size: 13.5px; line-height: 1.55; color: var(--mist); }
.au-ro-note:empty { display: none; }
.au-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; border: 1px solid var(--navy-700); }
.au-stages li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-inline-end: 1px solid var(--navy-700); }
.au-stages li:last-child { border-inline-end: 0; }
.au-stages b { font-size: 15px; color: var(--white); }
.au-stages span:not(.au-stage-no) { font-size: 13.5px; line-height: 1.5; color: var(--mist); }
.au-stage-no { font-family: var(--f-mono); font-size: 12px; color: #FF8A8A; }
.au-table-wrap { border: 1px solid var(--navy-700); }
.au-table-wrap summary { cursor: pointer; padding: 12px 16px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--white); }
.au-table-scroll { overflow-x: auto; }
.au-table { inline-size: 100%; border-collapse: collapse; font-size: 14px; color: var(--mist); }
.au-table th, .au-table td { padding: 10px 16px; border-block-start: 1px solid var(--navy-700); text-align: start; white-space: nowrap; }
.au-table thead th { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--white); }
.au-table tbody th { color: var(--white); font-weight: 600; }
.au-table small { font-family: var(--f-mono); color: var(--mist); }

/* ---- Featured project ---- */
.au-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: start; padding: clamp(18px, 2.4vw, 28px); background: var(--white); border: 1px solid var(--steel-200); border-block-start: 3px solid var(--red); }
.au-feature-hero { margin: 0; }
.au-feature-hero img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.au-feature-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.au-feature-gallery img { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.au-feature-body { display: flex; flex-direction: column; gap: 12px; }
.au-feature-body .ms-tag { align-self: flex-start; margin: 0; }
.au-feature .au-feature-title, .lp-sec .au-feature-title { font-family: var(--f-display); font-size: clamp(26px, 3vw, 36px); line-height: 1.1; text-transform: uppercase; }
.au-feature-loc { display: flex; gap: 8px; align-items: center; color: var(--ink-2); font-size: 15px; }
.au-feature-loc .ico { inline-size: 18px; block-size: 18px; color: var(--red); }
.au-facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 4px 0; border-block-start: 1px solid var(--steel-200); }
.au-facts div { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 12px; padding: 9px 0; border-block-end: 1px solid var(--steel-200); font-size: 14.5px; line-height: 1.5; }
.au-facts dt { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-2); padding-block-start: 2px; }
.au-facts dd { margin: 0; color: var(--ink); }
.au-std-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.au-std-chips li { padding: 4px 10px; background: var(--navy-900); color: var(--white); font-family: var(--f-mono); font-size: 12.5px; }
.au-feature-body .ms-aside-title { margin: 8px 0 0; }
.au-feature-ctas { margin-block-start: 8px; }
.au-others-title { margin: clamp(28px, 4vw, 40px) 0 14px; font-size: 19px; }
.au-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.au-others a { display: flex; flex-direction: column; block-size: 100%; background: var(--white); border: 1px solid var(--steel-200); color: inherit; text-decoration: none; }
.au-others a:hover { border-color: var(--navy-900); }
.au-others img, .au-others-ph { display: block; inline-size: 100%; block-size: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--steel-100); }
.au-others-body { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.au-others-body small { font-family: var(--f-mono); color: var(--ink-2); }

@media (max-width: 1100px) {
  .au-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr) 118px; }
}
@media (max-width: 900px) {
  .au-sim-controls { grid-template-columns: minmax(0, 1fr); }
  .au-sim-stage { grid-template-columns: minmax(0, 1fr); }
  .au-readout { border-inline-start: 0; border-block-start: 1px solid var(--navy-700); }
  .au-feature { grid-template-columns: minmax(0, 1fr); }
  .au-route .lw-chips, .au-tabs .lp-tablist { margin-inline: calc(-1 * var(--gutter, 16px)); padding-inline: var(--gutter, 16px); }
}
@media (max-width: 760px) {
  .au-row-head { display: none; }
  .au-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 16px; }
  .au-row > [role="cell"]::before { content: attr(data-label); display: block; margin-block-end: 2px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--ink-2); }
  .au-row > .au-req::before { display: none; }
  .au-row > .au-req b { font-size: 16px; }
  .au-stages { grid-template-columns: minmax(0, 1fr); }
  .au-stages li { border-inline-end: 0; border-block-end: 1px solid var(--navy-700); flex-direction: row; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
  .au-stages li:last-child { border-block-end: 0; }
  .au-stages span:not(.au-stage-no) { flex-basis: 100%; }
  .au-map svg { aspect-ratio: 1 / 1; }
  .au-label { font-size: 5px; stroke-width: .9px; }
  .au-facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ---- Motion (au.js adds .au-motion only without prefers-reduced-motion) ---- */
.au-motion .au-rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--au-i, 0) * 90ms); }
.au-motion .au-rv.is-in { opacity: 1; transform: none; }
.au-motion .lp-hero-media img { animation: au-zoom 16s ease-out both; }
.au-motion .lp-hero-copy > * { animation: au-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.au-motion .lp-hero-copy > :nth-child(2) { animation-delay: .1s; }
.au-motion .lp-hero-copy > :nth-child(3) { animation-delay: .2s; }
.au-motion .lp-hero-copy > :nth-child(4) { animation-delay: .3s; }
.au-motion .lp-hero-copy > :nth-child(5) { animation-delay: .4s; }
.au-motion .lp-hero-copy > :nth-child(n + 6) { animation-delay: .5s; }
.au-motion .ms-card, .au-motion .ms-link, .au-motion .ms-stage, .au-motion .ms-cert, .au-motion .au-others > * { transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.au-motion .ms-card:hover, .au-motion .ms-link:hover, .au-motion .ms-stage:hover, .au-motion .ms-cert:hover, .au-motion .au-others > :hover { transform: translateY(-5px); box-shadow: 0 18px 36px -18px rgba(10, 25, 48, .45); }
.au-motion .ms-card:hover .lp-card-ico svg, .au-motion .ms-link:hover .lp-card-ico svg { animation: au-pop .45s ease; }
.au-motion .ms-stage.is-in .ms-no { animation: au-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; animation-delay: calc(var(--au-i, 0) * 90ms + .25s); }
.au-motion #as5131 .ms-card { position: relative; overflow: hidden; }
.au-motion #as5131 .ms-card::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: -60%; inline-size: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent); transform: skewX(-18deg); pointer-events: none; opacity: 0; }
.au-motion #as5131.au-shine .ms-card::after { animation: au-sweep 1.6s ease-in-out both; animation-delay: calc(var(--au-i, 0) * 180ms + .4s); }
.au-motion #as5131 .ms-card .lp-card-ico { box-shadow: 0 0 0 0 rgba(165, 0, 0, .55); }
.au-motion #as5131.au-shine .ms-card .lp-card-ico { animation: au-ring 2.4s ease-out 1s 2; }
.au-progress { position: fixed; inset-block-start: 0; inset-inline: 0; block-size: 3px; background: #A50000; transform: scaleX(0); transform-origin: 0 50%; z-index: 1000; pointer-events: none; }
[dir="rtl"] .au-progress { transform-origin: 100% 50%; }
@keyframes au-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes au-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes au-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes au-sweep { 0% { opacity: 0; inset-inline-start: -60%; } 20% { opacity: 1; } 100% { opacity: 0; inset-inline-start: 120%; } }
@keyframes au-ring { 0% { box-shadow: 0 0 0 0 rgba(165, 0, 0, .55); } 100% { box-shadow: 0 0 0 16px rgba(165, 0, 0, 0); } }

/* ---- Closing band: dedicated Australian website + map (au_site) ---- */
.au-site-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.au-site-hl { margin-block: 0 24px; padding-inline-start: 16px; border-inline-start: 3px solid #A50000; font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; line-height: 1.35; color: #fff; }
.au-site-map { margin: 0; }
.au-site-map svg { display: block; inline-size: 100%; block-size: auto; overflow: visible; direction: ltr; }
.au-site-land { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .55); stroke-width: .6; stroke-linejoin: round; }
.au-site-dot { fill: #A50000; stroke: #fff; stroke-width: .4; }
.au-site-ring { fill: none; stroke: #A50000; stroke-width: .5; opacity: .8; }
.au-site-label { font-size: 4.2px; fill: rgba(255, 255, 255, .85); font-weight: 600; letter-spacing: .02em; }
.au-motion .au-site-land { stroke-dasharray: 1; stroke-dashoffset: 1; }
.au-motion .au-site.is-in .au-site-land { animation: au-draw 2.6s ease-out forwards, au-fill 1.2s ease-out 1.8s both; }
.au-motion .au-site-port { opacity: 0; }
.au-motion .au-site.is-in .au-site-port { animation: au-fade .5s ease-out both; animation-delay: calc(var(--au-i, 0) * 160ms + 1.6s); }
.au-motion .au-site.is-in .au-site-ring { transform-box: fill-box; transform-origin: center; animation: au-ping 2.4s ease-out infinite; animation-delay: calc(var(--au-i, 0) * 300ms + 2.2s); }
@keyframes au-draw { to { stroke-dashoffset: 0; } }
@keyframes au-fill { from { fill: rgba(255, 255, 255, 0); } to { fill: rgba(255, 255, 255, .06); } }
@keyframes au-fade { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; } }
@keyframes au-ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 860px) {
  .au-site-in { grid-template-columns: minmax(0, 1fr); }
  .au-site-map { max-inline-size: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .au-origin .au-pulse { animation: none; opacity: 0; }
  .au-motion .au-rv { opacity: 1; transform: none; transition: none; }
  .au-motion *, .au-motion *::after { animation: none !important; }
  .au-progress { display: none; }
}
