/* =============================================================
   PSCAD: authorised agent page (UAE, Oman, Qatar, Kuwait, Bahrain)
   A PSCAD workspace runs a fault in the hero; applications, products,
   coverage map and the buying steps follow, closing on paper.
   Screens (workspace, application views, map) stay dark in every palette.
   ============================================================= */
.ps-page { --ps-scr: #061015; --ps-g: #5dd2a6; --ps-a: #e9a566; --ps-b: #8ec5ff; --ps-r: #ff7a6b; --ps-wire: #7d8a97; --ps-lbl: #9aa7b4; }
.ps-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(30px, 3.8vw, 54px); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; max-width: 15em; }
.ps-h2 em { font-style: normal; color: var(--copper-hi); }
.ps-head { text-align: center; }
.ps-head .section-label { justify-content: center; }
.ps-head .ps-h2 { margin: 0 auto; }
.ps-lede { margin: 18px auto 0; max-width: 34em; font-size: 17px; line-height: 1.55; color: var(--text-mute); text-align: center; }
[data-tone="paper"] .ps-lede { color: var(--tp-mute); }
.ps-sec { padding: clamp(72px, 9vw, 128px) 0; position: relative; }

/* ---------- Hero ---------- */
.ps-hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(70% 70% at 85% 30%, rgba(201,123,61,0.09), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(93,210,166,0.06), transparent 60%), var(--ink);
  border-bottom: 1px solid var(--line); }
.ps-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px; -webkit-mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 80% at 70% 40%, #000 30%, transparent 80%); }
html[data-theme="light"] .ps-hero::before { background-image: linear-gradient(rgba(11,17,24,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,17,24,0.05) 1px, transparent 1px); }
.ps-hg { margin-top: clamp(30px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.ps-hc h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
.ps-hc h1 em { font-style: normal; color: var(--copper-hi); }
.ps-sub { margin-top: 22px; max-width: 30em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--text-mute); }
.ps-sub strong { color: var(--text); font-weight: 500; }
.ps-btns { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.ps-btns .btn-ghost { color: var(--text); border-color: var(--line-2); }
.ps-btns .btn-ghost:hover { color: var(--on-copper); }
.ps-listed { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; padding: 9px 14px 9px 10px; border: 1px solid var(--line-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mute); text-decoration: none; transition: border-color .3s, color .3s; }
html[dir="rtl"] .ps-listed { padding: 9px 10px 9px 14px; letter-spacing: 0; font-family: var(--font-sans); font-size: 13.5px; }
.ps-listed:hover { border-color: var(--copper); color: var(--text); }
.ps-listed .seal { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: rgba(93,210,166,0.12); color: var(--signal); }
.ps-listed .seal svg { width: 15px; height: 15px; }
.ps-listed i { font-style: normal; color: var(--copper-hi); }

/* the workspace (a screen: dark in every palette) */
.ps-ws { margin: 0; background: linear-gradient(180deg, #121b26, #0c131b); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 10px 12px 12px;
  box-shadow: 0 50px 110px -50px rgba(0,0,0,0.95), inset 0 1px 0 rgba(255,255,255,0.05); color: #e8e5df; }
html[data-theme="light"] .ps-ws { box-shadow: 0 40px 90px -46px rgba(11,17,24,0.55); border-color: rgba(11,17,24,0.25); }
.ws-bar { display: flex; align-items: center; gap: 10px; padding: 2px 4px 10px; font-family: var(--font-mono); font-size: 11px; color: var(--ps-lbl); }
.ws-dots { display: inline-flex; gap: 5px; margin-inline-end: 4px; }
.ws-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.ws-tab { padding: 4px 9px; border: 1px solid transparent; border-radius: 6px; white-space: nowrap; direction: ltr; }
.ws-tab.is-on { color: #e8e5df; border-color: rgba(233,165,102,0.45); background: rgba(233,165,102,0.08); }
.ws-run { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ws-run i { width: 7px; height: 7px; border-radius: 50%; background: #3d4a57; }
.ps-ws.is-running .ws-run i { background: var(--ps-g); box-shadow: 0 0 8px var(--ps-g); animation: wsBlink 1s ease infinite; }
.ps-ws.is-done .ws-run i { background: var(--ps-g); }
.ws-run b { font-weight: 400; color: #e8e5df; }
.ws-t { min-width: 7.5ch; text-align: end; color: var(--ps-a); direction: ltr; }
@keyframes wsBlink { 50% { opacity: 0.35; } }
.ws-body { background: radial-gradient(90% 90% at 50% 40%, #0a1a1d, var(--ps-scr)); border-radius: 10px; box-shadow: inset 0 0 40px rgba(0,0,0,0.7), inset 0 0 0 1px rgba(93,210,166,0.12); overflow: hidden; }
.ws-sch, .ws-plot { display: block; width: 100%; height: auto; }
.ws-sch { border-bottom: 1px solid rgba(93,210,166,0.12); }
.ws-sch .w { fill: none; stroke: var(--ps-wire); stroke-width: 1.4; }
.ws-sch .k { fill: none; stroke: var(--ps-a); stroke-width: 1.5; stroke-linejoin: round; }
.ws-sch .kf { fill: #0b1720; stroke: var(--ps-a); stroke-width: 1.5; }
.ws-sch .bus { stroke: #e8e5df; stroke-width: 4; stroke-linecap: round; }
.ws-sch .lbl { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ps-lbl); letter-spacing: 0.02em; }
.ws-sch .lbl.hi { fill: #e8e5df; }
.ws-sch .probe { fill: none; stroke: var(--ps-g); stroke-width: 1.2; }
.ws-sch .probe-t { font-family: var(--font-mono); font-size: 9px; fill: var(--ps-g); }
.ws-sch .flow { fill: var(--ps-g); opacity: 0; transition: opacity .25s; }
.ps-ws.is-running .ws-sch .flow { opacity: 0.9; }
.ps-ws.is-running.is-fault .ws-sch .flow { opacity: 0.18; }
.ws-sch .fault { opacity: 0.32; transition: opacity .15s; }
.ws-sch .fault path { fill: var(--ps-r); }
.ps-ws.is-fault .ws-sch .fault { opacity: 1; filter: drop-shadow(0 0 6px rgba(255,122,107,0.9)); }
.ws-sch .fault-t { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ps-r); }
.ws-plot .gr { fill: none; stroke: rgba(93,210,166,0.1); stroke-width: 1; }
.ws-plot .ax { fill: none; stroke: rgba(93,210,166,0.28); stroke-width: 1; }
.ws-plot .zone { fill: rgba(255,122,107,0.1); opacity: 0; transition: opacity .3s; }
.ws-plot .zone.on { opacity: 1; }
.ws-plot .tr { fill: none; stroke-width: 1.5; stroke-linejoin: round; }
.ws-plot .a { stroke: var(--ps-a); } .ws-plot .g { stroke: var(--ps-g); } .ws-plot .b { stroke: var(--ps-b); }
.ws-plot .pl { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ps-lbl); }
.ws-plot .lg { font-family: var(--font-mono); font-size: 9.5px; stroke: none; }
.ws-plot .lg.a { fill: var(--ps-a); } .ws-plot .lg.g { fill: var(--ps-g); } .ws-plot .lg.b { fill: var(--ps-b); }
.ws-plot .zl { font-family: var(--font-mono); font-size: 9px; fill: var(--ps-r); opacity: 0; transition: opacity .3s; }
.ws-plot .zone.on + .zl { opacity: 0.9; }
.ws-plot .cur { stroke: rgba(232,229,223,0.55); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ws-ctl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.ws-b { font: inherit; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--ps-lbl); background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 9px 8px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
html[dir="rtl"] .ws-b { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.ws-b:hover { color: #e8e5df; border-color: rgba(93,210,166,0.4); }
.ws-b.is-on { color: var(--ps-g); border-color: rgba(93,210,166,0.5); background: rgba(93,210,166,0.07); }
.ws-b:focus-visible { outline: 2px solid var(--ps-g); outline-offset: 2px; }
.ws-cap { margin-top: 10px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(232,229,223,0.55); text-align: center; }
html[dir="rtl"] .ws-cap { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }

/* the simulated run, now the opener of Applications */
.ps-run { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.ps-run .ps-h2 { max-width: 11em; }
.ps-run .ps-lede { margin: 18px 0 0; text-align: start; max-width: 28em; }
.ps-run + .ps-tabs { margin-top: clamp(64px, 8vw, 110px); }
/* hero with the real PSCAD screen: the text centred above a large screenshot that settles flat as you scroll */
.ps-hero.no-shot .ps-hg { grid-template-columns: minmax(0, 1fr); }
.ps-hero.no-shot .ps-hc { max-width: 760px; }
.ps-hero.has-shot .ps-hg { display: block; margin-top: clamp(14px, 2vw, 28px); }
.ps-hero.has-shot .ps-hc { max-width: 1080px; margin: 0 auto; text-align: center; }
.ps-hero.has-shot .ps-listed { margin: 0 0 clamp(18px, 2.2vw, 26px); padding: 10px 18px 10px 11px; font-size: 13px; }
html[dir="rtl"] .ps-hero.has-shot .ps-listed { padding: 10px 11px 10px 18px; font-size: 14.5px; }
.ps-hero.has-shot .ps-listed .seal { width: 30px; height: 30px; }
.ps-hero.has-shot .ps-hc h1 { font-size: clamp(38px, 4.8vw, 68px); max-width: none; margin-inline: auto; }
.ps-hero.has-shot .ps-sub { margin: 18px auto 0; max-width: 46em; }
.ps-hero.has-shot .ps-btns { margin-top: 28px; }
.ps-hero.has-shot .ps-btns { justify-content: center; }
.ps-shot { position: relative; margin: clamp(40px, 5vw, 64px) auto 0; max-width: 1200px; perspective: 2200px; }
.ps-shot::before { content: ''; position: absolute; inset: 6% 4% -2%; z-index: -1; border-radius: 40px; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 40%, rgba(201,123,61,0.32), transparent 70%), radial-gradient(50% 50% at 20% 80%, rgba(93,210,166,0.14), transparent 70%); filter: blur(30px); }
/* the walkthrough film: poster and play button first; it settles flat as it scrolls and stays flat once playing */
.film { position: relative; border-radius: 12px; transform-origin: 50% 0; transform: rotateX(var(--tilt, 0deg)) scale(var(--sc, 1)); will-change: transform; }
.film.is-live { transform: none; will-change: auto; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 1920 / 1150; border-radius: 12px; border: 1px solid rgba(255,255,255,0.16); background: #0b1118;
  box-shadow: 0 60px 120px -50px rgba(0,0,0,0.95), 0 24px 48px -30px rgba(0,0,0,0.75); }
html[data-theme="light"] .film video { border-color: rgba(11,17,24,0.2); box-shadow: 0 60px 120px -55px rgba(11,17,24,0.6), 0 20px 40px -30px rgba(11,17,24,0.35); }
.film video:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 6px; }
.film-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 12px; cursor: pointer;
  background: radial-gradient(60% 70% at 50% 50%, rgba(11,17,24,0.5), rgba(11,17,24,0.08) 70%); color: #f2eee6; font: inherit; }
.film-play .fp { display: inline-flex; align-items: center; gap: 16px; padding: 12px 34px 12px 12px; border-radius: 999px; background: rgba(11,17,24,0.84);
  border: 1px solid rgba(255,255,255,0.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8); transition: transform .35s var(--ease), background .35s; }
html[dir="rtl"] .film-play .fp { padding: 12px 12px 12px 34px; }
.film-play:hover .fp, .film-play:focus-visible .fp { transform: scale(1.04); background: rgba(11,17,24,0.94); }
.film-play:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 6px; }
.fp-ic { flex: none; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: var(--copper); color: #fff; animation: fpPulse 2.6s ease-out infinite; }
.fp-ic svg { width: 26px; height: 26px; margin-left: 4px; }
.fp-t { display: grid; gap: 3px; text-align: start; }
.fp-t b { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.fp-t i { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232,229,223,0.72); }
html[dir="rtl"] .fp-t i { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.film.is-live .film-play { display: none; }
@keyframes fpPulse { 0% { box-shadow: 0 0 0 0 rgba(201,123,61,0.55); } 70%, 100% { box-shadow: 0 0 0 18px rgba(201,123,61,0); } }
html.rm .fp-ic { animation: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .fp-ic { animation: none; }
@media (max-width: 600px) {
  .film-play .fp { gap: 12px; padding: 8px 18px 8px 8px; }
  html[dir="rtl"] .film-play .fp { padding: 8px 8px 8px 18px; }
  .fp-ic { width: 46px; height: 46px; } .fp-ic svg { width: 20px; height: 20px; }
  .fp-t b { font-size: 16px; }
}

/* ---------- Credentials strip ---------- */
.ps-cred { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.ps-cg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ps-cc { padding: 26px clamp(14px, 2vw, 28px); display: grid; gap: 4px; border-inline-start: 1px solid var(--line); }
.ps-cc:first-child { border-inline-start: 0; padding-inline-start: 0; }
.ps-cc b { font-family: var(--font-display); font-weight: 500; font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; color: var(--text); }
.ps-cc span { font-size: 14px; color: var(--text-mute); line-height: 1.45; }

/* ---------- What we provide (paper) ---------- */
.ps-svc-g { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ps-svc-c { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 26px 22px 22px; border: 1px solid var(--tp-line); border-radius: 16px; background: var(--tp-card);
  color: var(--tp-ink); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.ps-svc-c:hover { transform: translateY(-4px); border-color: var(--tp-acc); box-shadow: 0 30px 60px -40px var(--tp-lift); }
.ps-svc-c .ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: rgba(154,82,28,0.1); color: var(--tp-acc); }
.ps-svc-c .ic svg { width: 24px; height: 24px; }
.ps-svc-c h3 { font-family: var(--font-display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; color: var(--tp-ink); }
.ps-svc-c p { font-size: 15px; line-height: 1.55; color: var(--tp-mute); flex: 1; }
.ps-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-tags span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.05em; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--tp-line); color: var(--tp-dim); }
html[dir="rtl"] .ps-tags span { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.ps-svc-c a.go { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--tp-acc); text-decoration: none; }
.ps-svc-c a.go::after { content: ''; position: absolute; inset: 0; border-radius: 16px; }
.ps-svc-c a.go i { font-style: normal; transition: transform .3s var(--ease); }
.ps-svc-c:hover a.go i { transform: translateX(4px); }
html[dir="rtl"] .ps-svc-c:hover a.go i { transform: translateX(-4px) scaleX(-1); }
html[dir="rtl"] .ps-svc-c a.go i { transform: scaleX(-1); }
.ps-also { margin-top: 26px; text-align: center; font-size: 15.5px; color: var(--tp-mute); }
.ps-also a { color: var(--tp-acc); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Applications ---------- */
.ps-apps { background: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-tabs { margin: clamp(36px, 4.5vw, 56px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 980px; }
.ps-tab { font: inherit; font-size: 14.5px; color: var(--text-mute); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 16px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.ps-tab:hover { color: var(--text); border-color: var(--copper); }
.ps-tab[aria-selected="true"] { color: var(--on-copper); background: var(--copper); border-color: var(--copper); }
.ps-tab:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.ps-panel { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ps-panel[hidden] { display: none; }
.ps-view { margin: 0; background: linear-gradient(180deg, #121b26, #0c131b); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 10px; }
html[data-theme="light"] .ps-view { border-color: rgba(11,17,24,0.25); box-shadow: 0 30px 70px -44px rgba(11,17,24,0.5); }
.ps-view svg { display: block; width: 100%; height: auto; border-radius: 10px; background: radial-gradient(90% 90% at 50% 40%, #0a1a1d, var(--ps-scr)); box-shadow: inset 0 0 0 1px rgba(93,210,166,0.12); }
.mv-gr { fill: none; stroke: rgba(93,210,166,0.09); stroke-width: 1; }
.mv-ax { fill: none; stroke: rgba(93,210,166,0.3); stroke-width: 1; }
.mv-l { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ps-lbl); }
.mv-l.hi { fill: #e8e5df; }
.mv-l.ok { fill: var(--ps-g); }
.mv-k { fill: none; stroke: var(--ps-a); stroke-width: 1.5; stroke-linejoin: round; }
.mv-w { fill: none; stroke: var(--ps-wire); stroke-width: 1.3; }
.mv-t { fill: none; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.mv-t.g { stroke: var(--ps-g); } .mv-t.a { stroke: var(--ps-a); } .mv-t.b { stroke: var(--ps-b); } .mv-t.r { stroke: var(--ps-r); }
.mv-t.f { opacity: 0.5; stroke-width: 1.2; }
.mv-d { fill: none; stroke: var(--ps-a); stroke-width: 1.2; stroke-dasharray: 5 4; opacity: 0.85; }
/* the views draw themselves once the script runs; without it they simply show */
.ps-apps.js .ps-panel:not(.is-on) .mv-t { stroke-dashoffset: 1; }
.ps-apps.js .ps-panel.is-on .mv-t { animation: mvDraw 1.8s var(--ease) both; }
.ps-apps.js .ps-panel.is-on .mv-t.l2 { animation-delay: .25s; }
.ps-apps.js .ps-panel.is-on .mv-t.l3 { animation-delay: .5s; }
@keyframes mvDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.mv-dot { fill: var(--ps-g); }
.mv-zone { fill: rgba(255,122,107,0.08); }
.mv-box { fill: #0b1720; stroke: var(--ps-a); stroke-width: 1.4; }
.mv-mk { stroke: rgba(255,122,107,0.7); stroke-width: 1; stroke-dasharray: 3 3; }
.mv-l.r { fill: var(--ps-r); } .mv-l.a { fill: var(--ps-a); } .mv-l.b { fill: var(--ps-b); }
.mv-pill { fill: rgba(93,210,166,0.1); stroke: rgba(93,210,166,0.5); stroke-width: 1; }
.ps-info h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.02em; }
.ps-info .lead { margin-top: 10px; font-size: 17px; line-height: 1.5; color: var(--text-mute); max-width: 30em; }
.ps-k { margin-top: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper-hi); }
html[dir="rtl"] .ps-k { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.ps-studies { list-style: none; margin-top: 12px; display: grid; gap: 0; }
.ps-studies li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--text); }
.ps-studies li:last-child { border-bottom: 1px solid var(--line); }
.ps-studies li::before { content: ''; width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--copper-hi); transform: rotate(45deg); }
.ps-in { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-in span { font-family: var(--font-mono); font-size: 11.5px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(93,210,166,0.35); color: var(--signal); background: rgba(93,210,166,0.06); }
html[dir="rtl"] .ps-in span { font-family: var(--font-sans); font-size: 13px; }

/* ---------- Products (paper) ---------- */
.ps-prod-g { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ps-pc { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px; border: 1px solid var(--tp-line); border-radius: 16px; background: var(--tp-card); color: var(--tp-ink); }
.ps-pc.main { grid-column: span 2; grid-row: span 2; padding: 30px 28px; background: linear-gradient(160deg, #121b26, #0b1118); border-color: rgba(11,17,24,0.4); color: #e8e5df; }
.ps-pc .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-pc .gl { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(154,82,28,0.1); color: var(--tp-acc); }
.ps-pc.main .gl { background: rgba(233,165,102,0.12); color: var(--ps-a); width: 48px; height: 48px; }
.ps-pc .gl svg { width: 22px; height: 22px; }
.ps-pc .badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--tp-line); color: var(--tp-acc); }
.ps-pc.main .badge { border-color: rgba(93,210,166,0.45); color: var(--ps-g); }
.ps-pc h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; color: var(--tp-ink); }
.ps-pc.main h3 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -0.03em; color: #e8e5df; }
.ps-pc p { font-size: 15px; line-height: 1.55; color: var(--tp-mute); }
.ps-pc.main p { font-size: 17px; color: rgba(232,229,223,0.75); max-width: 30em; }
.ps-pc a.x { margin-top: auto; font-size: 14.5px; font-weight: 500; color: var(--tp-acc); text-decoration: none; display: inline-flex; gap: 8px; }
.ps-pc a.x:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-pc.main a.x { color: var(--ps-a); }
.ps-pc.main .ps-v5k { margin-top: 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ps-a); }
html[dir="rtl"] .ps-pc.main .ps-v5k { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.ps-v5 { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ps-v5 span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; font-family: var(--font-mono); font-size: 12px; color: #e8e5df; background: rgba(255,255,255,0.02); direction: ltr; }
html[dir="rtl"] .ps-v5 span { justify-content: flex-end; }
.ps-v5 span::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--ps-g); box-shadow: 0 0 6px var(--ps-g); }
/* product visuals: a small drawing per product, in the page palette; the lines draw in as the card appears */
.ps-pc .pv { position: relative; height: 112px; margin-bottom: 8px; border: 1px solid var(--tp-line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(var(--tp-grid) 1px, transparent 1px) 0 0 / 100% 16px, linear-gradient(90deg, var(--tp-grid) 1px, transparent 1px) 0 0 / 16px 100%, rgba(154,82,28,0.035); }
.ps-pc .pv svg { position: absolute; inset: 6px 8px; width: calc(100% - 16px); height: calc(100% - 12px); overflow: visible; direction: ltr; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ps-pc .top h3 { margin: 0; }
.pv .l { stroke: var(--tp-acc); stroke-width: 1.8; }
.pv .f { stroke: var(--tp-ink); stroke-width: 1.4; opacity: 0.22; }
.pv .f circle { fill: none; }
.pv .fr { stroke: var(--tp-acc); stroke-width: 1.2; stroke-dasharray: 4 4; opacity: 0.6; }
.pv .ax { stroke: var(--tp-ink); stroke-width: 1; opacity: 0.14; }
.pv text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; fill: var(--tp-mute); stroke: none; }
.pv .dots circle, .pv .dotk { fill: var(--tp-ok); stroke: none; }
.pv .cur { stroke: var(--tp-ink); stroke-dasharray: 3 3; opacity: 0.35; }
.pv .chip rect { fill: var(--tp-card); stroke: var(--tp-line); }
.pv .chip text { text-anchor: middle; font-size: 11px; fill: var(--tp-ink); }
.pv .flow { stroke: var(--tp-acc); stroke-width: 1.6; stroke-dasharray: 5 5; animation: pvflow 1.4s linear infinite; }
.pv .tgt rect { fill: rgba(154,82,28,0.1); stroke: var(--tp-acc); stroke-width: 1.4; }
.pv .tgt text { text-anchor: middle; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; fill: var(--tp-acc); }
.pv .tgt path { stroke: var(--tp-acc); stroke-width: 1.4; }
.pv .cond path { stroke: var(--tp-ink); stroke-width: 1.4; opacity: 0.6; }
.pv-face { color: var(--tp-ok); }
.pv .cor ellipse { stroke: var(--tp-ok); stroke-width: 1.1; stroke-dasharray: 2 4; opacity: 0.6; }
.pv .cor .glow { transform-box: fill-box; transform-origin: center; animation: pvglow 2.8s ease-in-out infinite; }
.pv .wo { stroke: var(--tp-ink); stroke-width: 1.4; stroke-dasharray: 4 3; opacity: 0.35; }
.pv .bolt { fill: #b4441c; stroke: none; }
.pv-dfs .xm { fill: #b4441c; stroke: none; }
.pv-dfs .uc { stroke: var(--tp-ink); stroke-width: 1; stroke-dasharray: 3 4; opacity: 0.3; }
.pv-dfs .ny { stroke: var(--tp-ok); stroke-width: 1.8; }
.pv-dfs .m1 { stroke: #b4441c; stroke-width: 2; }
@keyframes pvflow { to { stroke-dashoffset: -20; } }
@keyframes pvglow { 50% { opacity: 0.4; transform: scale(0.8); } }
.ps-pc .pv .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.33, 0, .2, 1) calc(0.35s + var(--d, 0s)); }
.ps-pc.in .pv .dr { stroke-dashoffset: 0; }
.ps-pc .pv .dots circle { opacity: 0; transition: opacity 0.35s ease calc(0.7s + var(--i) * 35ms); }
.ps-pc.in .pv .dots circle { opacity: 1; }
/* the main card: text beside the visual, which shows Parallel Multiple Run */
.ps-pc.main .mh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.ps-pc.main .mt { display: flex; flex-direction: column; gap: 10px; }
.ps-pc.main .pv { height: auto; aspect-ratio: 320 / 150; margin: 0; border-color: rgba(255,255,255,0.1);
  background: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 100% 16px, linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px) 0 0 / 16px 100%, rgba(255,255,255,0.02); }
.pv-main .ax { stroke: #e8e5df; opacity: 0.16; }
.pv-main .run { stroke: #e9a566; stroke-width: 1.5; opacity: 0.5; }
.pv-main .run:nth-of-type(2) { opacity: 0.4; } .pv-main .run:nth-of-type(3) { opacity: 0.34; } .pv-main .run:nth-of-type(4) { opacity: 0.28; } .pv-main .run:nth-of-type(5) { opacity: 0.22; }
.pv-main .best { stroke: #5dd2a6; stroke-width: 2.4; }
.pv-main .bestk { fill: #5dd2a6; stroke: none; opacity: 0; transition: opacity 0.4s ease 2.4s; }
.ps-pc.in .pv-main .bestk { opacity: 1; }
.pv-main text { fill: rgba(232,229,223,0.6); }
@media (max-width: 1100px) { .ps-pc.main .mh { grid-template-columns: minmax(0, 1fr); } .ps-pc.main .pv { max-width: 520px; } }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .ps-pc .pv .dr { stroke-dashoffset: 0; transition: none; }
html.rm .ps-pc .pv .dots circle, html.rm .pv-main .bestk { opacity: 1; transition: none; }
html.rm .pv .flow, html.rm .pv .cor .glow { animation: none; }
html.rm .ps-pc .pv .dr { stroke-dashoffset: 0; transition: none; }
html.rm .ps-pc .pv .dots circle, html.rm .pv-main .bestk { opacity: 1; transition: none; }
html.rm .pv .flow, html.rm .pv .cor .glow { animation: none; }
.ps-prod-cta { margin-top: 30px; text-align: center; }

/* ---------- Coverage map ---------- */
.ps-cov { background: var(--ink); border-top: 1px solid var(--line); }
.ps-cred + .ps-cov { border-top: 0; }
.ps-close > .ps-sec:first-child { border-top: 1px solid var(--tp-line); }
.ps-cov-g { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3.5vw, 48px); align-items: start; }
.ps-map { margin: 0; background: linear-gradient(180deg, #121b26, #0c131b); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 10px; position: relative; }
html[data-theme="light"] .ps-map { border-color: rgba(11,17,24,0.25); box-shadow: 0 30px 70px -44px rgba(11,17,24,0.5); }
.ps-map svg { display: block; width: 100%; height: auto; border-radius: 12px; background: #081017; }
.m-land { fill: #121c26; stroke: #23303d; stroke-width: 0.6; }
.m-c { stroke-width: 0.9; transition: fill .3s, stroke .3s, opacity .3s; cursor: pointer; }
.m-ours { fill: rgba(233,165,102,0.26); stroke: #e9a566; }
.m-sa { fill: rgba(93,210,166,0.15); stroke: rgba(93,210,166,0.8); }
.m-c:hover, .m-c.is-on, .m-c.is-hl { fill: rgba(233,165,102,0.55); }
.m-sa:hover, .m-sa.is-on, .m-sa.is-hl { fill: rgba(93,210,166,0.28); }
.ps-map.has-pick .m-c:not(.is-on) { opacity: 0.55; }
.m-cap { fill: #e8e5df; }
.m-cap.sa { fill: #7fe0bb; }
.m-sea { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.34em; font-style: italic; fill: rgba(142,197,255,0.62); pointer-events: none; }
html[dir="rtl"] .m-sea { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; font-style: normal; }
.m-ring { fill: none; stroke: #e9a566; stroke-width: 1; }
.m-lbl { font-family: var(--font-mono); font-size: 10px; fill: #c9d2da; letter-spacing: 0.04em; pointer-events: none; }
html[dir="rtl"] .m-lbl { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 0; }
.m-lbl.big { font-size: 11px; fill: #e8e5df; }
.m-lbl.sa { fill: #7fe0bb; }
.m-lead { stroke: rgba(233,229,223,0.4); stroke-width: 0.8; fill: none; }
.m-office circle.dot { fill: var(--ps-g); }
.m-office circle.pulse { fill: none; stroke: var(--ps-g); stroke-width: 1.2; transform-origin: center; transform-box: fill-box; animation: mPulse 2.4s ease-out infinite; }
.m-office text { font-family: var(--font-mono); font-size: 10px; fill: var(--ps-g); letter-spacing: 0.06em; }
html[dir="rtl"] .m-office text { font-family: var(--font-sans); font-size: 11.5px; letter-spacing: 0; }
.ps-map.is-offscreen .m-office circle.pulse { animation-play-state: paused; }
@keyframes mPulse { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(3.2); opacity: 0; } }
.ps-map figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(232,229,223,0.6); }
html[dir="rtl"] .ps-map figcaption { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }
.ps-map figcaption span { display: inline-flex; align-items: center; gap: 7px; }
.ps-map figcaption i { width: 12px; height: 9px; border-radius: 2px; }
.ps-map figcaption i.o { background: rgba(233,165,102,0.45); border: 1px solid #e9a566; }
.ps-map figcaption i.s { background: rgba(93,210,166,0.22); border: 1px solid rgba(93,210,166,0.8); }
.ps-map figcaption i.d { width: 9px; height: 9px; border-radius: 50%; background: var(--ps-g); }
.ps-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.ps-pick { font: inherit; font-size: 14px; color: var(--text-mute); background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: color .3s, border-color .3s, background .3s; }
.ps-pick:hover { color: var(--text); border-color: var(--copper); }
.ps-pick[aria-pressed="true"] { color: var(--on-copper); background: var(--copper); border-color: var(--copper); }
.ps-pick.sa[aria-pressed="true"] { color: #0b1118; background: var(--ps-g); border-color: var(--ps-g); }
.ps-pick:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.ps-card { margin-top: 18px; border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; background: var(--ink-2); }
.ps-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.ps-card .note { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--text-mute); min-height: 2.9em; }
.ps-rows { list-style: none; margin-top: 14px; }
.ps-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--text); }
.ps-rows li b { font-weight: 500; display: inline-flex; align-items: center; gap: 7px; color: var(--signal); }
.ps-rows li b.via, .ps-rows li a.via { color: var(--copper-hi); }
.ps-rows li a.via { font-weight: 500; display: inline-flex; align-items: center; gap: 7px; text-decoration: underline; text-underline-offset: 3px; }
.ps-rows li a.via::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ps-rows li b::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ps-mail { margin-top: 16px; display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 500; color: var(--copper-hi); text-decoration: none; }
.ps-mail svg { width: 18px; height: 18px; flex: none; }
.ps-mail:hover span { text-decoration: underline; text-underline-offset: 3px; }
.ps-eu { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; border: 1px solid var(--line-2); border-radius: 16px; padding: 18px; }
.ps-eu .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: rgba(142,197,255,0.1); color: var(--ps-b); }
html[data-theme="light"] .ps-eu .ic { color: #2c6aa6; background: rgba(44,106,166,0.1); }
.ps-eu .ic svg { width: 22px; height: 22px; }
.ps-eu h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; }
.ps-eu h3 span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--text-dim); margin-inline-start: 8px; text-transform: uppercase; }
html[dir="rtl"] .ps-eu h3 span { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.ps-eu p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--text-mute); }
.ps-out { display: inline-flex; gap: 8px; margin-top: 16px; font-size: 14.5px; color: var(--text-mute); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.ps-out:hover { color: var(--text); border-color: var(--copper); }
.ps-out i { font-style: normal; color: var(--copper-hi); }

/* ---------- Steps (paper) ---------- */
.ps-steps { list-style: none; margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; counter-reset: st; }
/* the line runs from the first circle to the last: 3 of 4 columns plus 3 gaps of 16px, less a quarter of them */
.ps-steps::before { content: ''; position: absolute; top: 23px; inset-inline-start: 24px; width: calc(75% + 12px); height: 2px; background: var(--tp-line); }
.ps-steps::after { content: ''; position: absolute; top: 23px; inset-inline-start: 24px; width: calc(75% + 12px); height: 2px; background: linear-gradient(90deg, var(--copper), var(--copper-hi)); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .2s; }
html[dir="rtl"] .ps-steps::after { transform-origin: right; background: linear-gradient(270deg, var(--copper), var(--copper-hi)); }
.ps-steps.in::after { transform: scaleX(1); }
.ps-steps li { position: relative; display: grid; gap: 10px; align-content: start; }
.ps-steps .n { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--tp-bg); border: 2px solid var(--copper); color: var(--tp-acc); position: relative; z-index: 1;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500; }
.ps-steps h3 { font-family: var(--font-display); font-weight: 500; font-size: 19px; color: var(--tp-ink); margin-top: 6px; }
.ps-steps p { font-size: 15px; line-height: 1.55; color: var(--tp-mute); max-width: 22em; }

/* ---------- FAQ (paper) ---------- */
.ps-faq { margin: clamp(36px, 4.5vw, 56px) auto 0; max-width: 860px; }
.ps-faq details { border-top: 1px solid var(--tp-line); }
.ps-faq details:last-child { border-bottom: 1px solid var(--tp-line); }
.ps-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 2px; font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.6vw, 20px); color: var(--tp-ink); }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary i { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--tp-line); position: relative; transition: transform .3s var(--ease), border-color .3s; }
.ps-faq summary i::before, .ps-faq summary i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--tp-acc); transform: translate(-50%, -50%); }
.ps-faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s var(--ease); }
.ps-faq details[open] summary i { border-color: var(--tp-acc); }
.ps-faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.ps-faq summary:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.ps-faq .a { padding: 0 2px 22px; font-size: 16px; line-height: 1.6; color: var(--tp-mute); max-width: 44em; }
.ps-faq .a a { color: var(--tp-acc); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Close ---------- */
.ps-faq-s { padding-top: 0; }
.ps-close .cta-c { background: transparent; border-top: 1px solid var(--tp-line); padding: clamp(70px, 8vw, 110px) 0; }
.ps-tm { padding: 0 0 clamp(36px, 5vw, 56px); text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--tp-dim); }

/* ---------- Section bar: slides in under the site header after the hero ---------- */
.ps-lnav { position: fixed; top: 78px; inset-inline: 0; z-index: 79; border-bottom: 1px solid var(--line);
  background: rgba(11,17,24,0.94); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  transform: translateY(-100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
html[data-theme="light"] .ps-lnav { background: rgba(245,247,250,0.95); }
.ps-lnav.is-on { transform: none; visibility: visible; transition: transform .35s var(--ease); }
.ps-lnav-in { display: flex; align-items: center; gap: 20px; height: 54px; }
.ps-lnav-t { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.ps-lnav-t span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal); }
html[dir="rtl"] .ps-lnav-t span { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.ps-lnav ul { list-style: none; display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; }
html[dir="rtl"] .ps-lnav ul { margin: 0 auto 0 0; }
.ps-lnav ul a { display: block; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--text-mute); text-decoration: none; transition: color .25s, background .25s; }
.ps-lnav ul a:hover, .ps-lnav ul a[aria-current="true"] { color: var(--text); background: rgba(255,255,255,0.07); }
html[data-theme="light"] .ps-lnav ul a:hover, html[data-theme="light"] .ps-lnav ul a[aria-current="true"] { background: rgba(11,17,24,0.07); }
.ps-lnav-cta { padding: 9px 16px; border-radius: 999px; background: var(--copper); color: var(--on-copper); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .25s; }
.ps-lnav-cta:hover { background: var(--copper-hi); }
.ps-lnav a:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 2px; }
.ps-page main [id] { scroll-margin-top: 146px; }
@media (max-width: 900px) { .ps-lnav ul { display: none; } .ps-lnav-cta { margin-inline-start: auto; } }
@media (max-width: 640px) { .ps-lnav { top: 64px; } .ps-lnav-in { height: 50px; } .ps-page main [id] { scroll-margin-top: 126px; } }
html.rm .ps-lnav { transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .ps-lnav { transition: none; }

/* ---------- Quote builder (closing section, on paper) ---------- */
.ps-quote .ps-lede { color: var(--tp-mute); }
.ps-qb { margin: clamp(32px, 4vw, 48px) auto 0; max-width: 1080px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; text-align: start; }
.qb-opts { display: grid; gap: 24px; padding: clamp(20px, 2.4vw, 30px); border: 1px solid var(--tp-line); border-radius: 18px; background: var(--tp-card); }
.qb-f { border: 0; margin: 0; padding: 0; min-width: 0; }
.qb-f legend { padding: 0; margin-bottom: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-acc); }
html[dir="rtl"] .qb-f legend { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.qb-row { display: flex; flex-wrap: wrap; gap: 8px; }
.qb-c { position: relative; display: inline-flex; }
.qb-c input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qb-c span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--tp-line); border-radius: 999px; font-size: 14.5px; color: var(--tp-ink);
  transition: background .25s, border-color .25s, color .25s; pointer-events: none; }
.qb-c:hover span { border-color: var(--tp-acc); }
.qb-c input:checked + span { background: var(--copper); border-color: var(--copper); color: var(--on-copper); }
.qb-c input:focus-visible + span { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.qb-x span::before { content: '+'; font-family: var(--font-mono); font-size: 13px; line-height: 1; opacity: 0.7; }
.qb-x input:checked + span::before { content: '✓'; opacity: 1; }
.qb-step { display: inline-flex; align-items: center; border: 1px solid var(--tp-line); border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.4); }
.qb-step button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--tp-ink); font: 400 20px/1 var(--font-sans); cursor: pointer; transition: background .2s; }
.qb-step button:hover { background: rgba(154,82,28,0.1); }
.qb-step button:focus-visible, .qb-step input:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: -2px; }
.qb-step input { width: 58px; height: 44px; border: 0; background: transparent; text-align: center; color: var(--tp-ink); font: 500 19px/1 var(--font-display); -moz-appearance: textfield; appearance: textfield; }
.qb-step input::-webkit-outer-spin-button, .qb-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qb-sum { position: sticky; top: 150px; align-self: start; padding: clamp(22px, 2.4vw, 30px); border-radius: 18px; background: linear-gradient(160deg, #121b26, #0b1118); color: #e8e5df;
  box-shadow: 0 30px 70px -45px rgba(11,17,24,0.6); }
.qb-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ps-a); }
html[dir="rtl"] .qb-k { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; text-transform: none; }
.qb-list { list-style: none; margin: 16px 0 24px; padding: 0; display: grid; gap: 11px; }
.qb-list li { display: flex; align-items: baseline; gap: 10px; font-size: 15.5px; line-height: 1.45; }
.qb-list li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--ps-g); transform: translateY(-2px); }
.qb-list li:first-child { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.qb-sum .btn { width: 100%; justify-content: center; }
.qb-mail { display: inline-block; margin-top: 14px; font-size: 14px; color: rgba(232,229,223,0.78); text-decoration: underline; text-underline-offset: 3px; }
.qb-mail:hover { color: #fff; }
@media (max-width: 900px) { .ps-qb { grid-template-columns: minmax(0, 1fr); } .qb-sum { position: static; } }

/* ---------- Narrow screens ---------- */
@media (max-width: 1080px) {
  .ps-hg, .ps-cov-g, .ps-run { grid-template-columns: minmax(0, 1fr); }
  .ps-ws { max-width: 680px; }
  .ps-svc-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-prod-g { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-pc.main { grid-row: auto; }
  .ps-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ps-cg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ps-cc:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
  .ps-cc:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ps-steps { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ps-steps::before { top: 24px; bottom: 24px; inset-inline-start: 23px; width: 2px; height: auto; }
  .ps-steps::after { display: none; }
  .ps-steps li { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; }
  .ps-steps li .n { grid-row: span 2; }
  .ps-steps h3 { margin-top: 10px; }
}
@media (max-width: 600px) {
  .ps-svc-g, .ps-prod-g { grid-template-columns: minmax(0, 1fr); }
  .ps-pc.main { grid-column: auto; padding: 24px 20px; }
  .ps-v5 { grid-template-columns: minmax(0, 1fr); }
  .ws-ctl { gap: 6px; }
  .ws-b { font-size: 10px; letter-spacing: 0; padding: 8px 4px; line-height: 1.3; }
  html[dir="rtl"] .ws-b { font-size: 12px; }
  .ws-tab:not(.is-on) { display: none; }
  .ps-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .ps-tabs::-webkit-scrollbar { display: none; }
  .ps-tab { flex: none; }
}

/* calm motion */
html.rm .ps-ws.is-running .ws-run i, html.rm .m-office circle.pulse { animation: none; }
html.rm .mv-t { animation: none !important; stroke-dashoffset: 0; }
html.rm .mv-dot, html.rm .ws-sch .flow { display: none; }
html.rm .ps-steps::after { transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .mv-t { animation: none !important; stroke-dashoffset: 0; }
html.rm .m-office circle.pulse, html.rm .ps-ws.is-running .ws-run i { animation: none; }
html.rm .mv-dot, html.rm .ws-sch .flow { display: none; }
html.rm .ps-steps::after { transition: none; }

/* MHI product logos: Velon stays the lead brand, PSCAD shows as the product */
.ps-logo { display: block; width: auto; max-width: 100%; }
.ps-listed .seal.lg, .ps-hero.has-shot .ps-listed .seal.lg { display: block; width: auto; height: auto; border-radius: 0; background: none; }
.ps-listed .seal.lg .ps-logo { height: 24px; }
.ps-hero.has-shot .ps-listed .seal.lg .ps-logo { height: 26px; }
.ps-pc.main .mlg { display: block; }
.ps-pc.main .mlg .ps-logo { height: 44px; }
.ps-pc .lg { display: flex; align-items: center; justify-content: center; height: 76px; padding: 10px 18px; margin-bottom: 4px; border-radius: 12px; background: #ffffff; border: 1px solid var(--tp-line); }
.ps-pc .lg .ps-logo { height: 54px; }

/* =============================================================
   Round two: more to look at and more to try
   the family strip, "Why EMT" scope, service drawings, the flagship
   card with its version 5 buttons, the family explorer, FAQ topics
   ============================================================= */
/* ---------- the PSCAD family strip (hero) ---------- */
.ps-fam { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.ps-hero.has-shot .ps-fam { justify-content: center; }
.fam-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
html[dir="rtl"] .fam-k { font-family: var(--font-sans); font-size: 13.5px; letter-spacing: 0; }
.fam-r { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.fam-l { height: 46px; min-width: 96px; padding: 9px 16px; display: grid; place-items: center; border-radius: 11px; background: #ffffff; border: 1px solid rgba(11,17,24,0.1); text-decoration: none;
  transition: transform .3s var(--ease), box-shadow .3s; }
.fam-l:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--copper), 0 16px 30px -18px rgba(0,0,0,0.7); }
.fam-l:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; }
.fam-l .ps-logo { height: 28px; }
.fam-pscad .ps-logo, .fam-main .ps-logo { height: 28px; }
.fam-w { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; color: #0b1636; direction: ltr; }

/* ---------- credentials: an icon each ---------- */
.ps-cc { grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: start; }
.ps-cc .cc-ic { grid-row: span 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(201,123,61,0.12); color: var(--copper-hi); }
.ps-cc .cc-ic svg { width: 22px; height: 22px; }

/* ---------- Why EMT: the scope ---------- */
.ps-emt { background: var(--ink); border-bottom: 1px solid var(--line); }
.ps-emt-g { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ps-emt-c .ps-h2 { max-width: 11em; }
.ps-emt-p { margin-top: 18px; max-width: 30em; font-size: 17px; line-height: 1.55; color: var(--text-mute); }
.ps-emt-see { list-style: none; margin-top: 12px; display: grid; }
.ps-emt-see li { border-top: 1px solid var(--line); }
.ps-emt-see .see-z { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 8px; border-radius: 8px; cursor: pointer; transition: background .25s; }
.ps-emt-see .see-z:hover { background: rgba(93,210,166,0.06); }
.ps-emt-see .see-z:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.ps-emt-see .see-z[aria-pressed="true"] { background: rgba(93,210,166,0.12); box-shadow: inset 3px 0 0 var(--signal); }
html[dir="rtl"] .ps-emt-see .see-z[aria-pressed="true"] { box-shadow: inset -3px 0 0 var(--signal); }
.ps-k .see-hint { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; opacity: 0.75; }
.ps-emt-see li:last-child { border-bottom: 1px solid var(--line); }
.ps-emt-see li i { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; transition: background .3s, border-color .3s, transform .3s var(--ease); }
.ps-emt-see li i::after { content: ''; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.ps-emt-see li b { font-weight: 500; font-size: 16px; color: var(--text-dim); transition: color .3s; }
.ps-emt-see li span { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); white-space: nowrap; }
html[dir="rtl"] .ps-emt-see li span { font-family: var(--font-sans); font-size: 12.5px; }
.ps-emt-see li.is-on i { background: var(--signal); border-color: var(--signal); transform: scale(1.08); }
.ps-emt-see li.is-on i::after { opacity: 1; }
.ps-emt-see li.is-on b { color: var(--text); }
.ps-emt-n { margin-top: 16px; max-width: 34em; font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.ps-scope { margin: 0; padding: 12px; border-radius: 18px; background: linear-gradient(180deg, #121b26, #0c131b); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.85); }
html[data-theme="light"] .ps-scope { border-color: rgba(11,17,24,0.25); box-shadow: 0 30px 70px -44px rgba(11,17,24,0.5); }
.sc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 4px 6px 12px; font-family: var(--font-mono); font-size: 11.5px; color: #9aa7b4; }
html[dir="rtl"] .sc-bar { font-family: var(--font-sans); font-size: 13px; }
.sc-mode { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(93,210,166,0.5); color: #5dd2a6; background: rgba(93,210,166,0.08); transition: color .3s, border-color .3s, background .3s; }
.ps-scope.is-rms .sc-mode { border-color: rgba(233,165,102,0.6); color: #e9a566; background: rgba(233,165,102,0.08); }
.sc-r b { margin-inline-start: 6px; font-weight: 500; color: #e8e5df; font-family: var(--font-mono); font-size: 12.5px; }
.sc-mode + .sc-r { margin-inline-start: auto; }
.sc-screen { position: relative; border-radius: 12px; overflow: hidden; background: radial-gradient(90% 90% at 50% 40%, #0a1a1d, #061015); box-shadow: inset 0 0 0 1px rgba(93,210,166,0.12); }
.sc-svg { display: block; width: 100%; height: auto; direction: ltr; }
.sc-grid path { fill: none; stroke: rgba(93,210,166,0.09); stroke-width: 1; }
.sc-ax { fill: none; stroke: rgba(93,210,166,0.3); stroke-width: 1; }
.sc-l { font-family: var(--font-mono); font-size: 10.5px; fill: #9aa7b4; }
.sc-l.r { fill: #ff7a6b; } .sc-l.hi { fill: #e8e5df; font-size: 11.5px; }
html[dir="rtl"] .sc-l.r { font-family: var(--font-sans); font-size: 12.5px; }
.sc-zone { fill: rgba(255,122,107,0.07); }
.sc-band { fill: rgba(233,165,102,0.07); stroke: none; transition: opacity .3s; }
.sc-env { fill: none; stroke: #e9a566; stroke-width: 1.5; stroke-dasharray: 6 5; stroke-linejoin: round; transition: stroke-width .3s; }
.sc-env.lo { opacity: 0.4; }
.ps-scope.is-rms .sc-env { stroke-width: 2.6; stroke-dasharray: none; }
.ps-scope.is-rms .sc-env.lo { opacity: 0.55; stroke-width: 1.6; }
.sc-w { fill: none; stroke: #5dd2a6; stroke-width: 1.5; stroke-linejoin: round; }
.sc-pk circle { fill: #061015; stroke: #ff7a6b; stroke-width: 1.8; } .sc-pk path { fill: none; stroke: #ff7a6b; stroke-width: 1; }
.sc-key { position: absolute; top: 9px; right: 12px; display: flex; gap: 14px; font-family: var(--font-mono); font-size: 10.5px; color: #9aa7b4; direction: ltr; }
html[dir="rtl"] .sc-key { font-family: var(--font-sans); font-size: 12px; direction: rtl; }
.sc-key span::before { content: ''; display: inline-block; width: 18px; margin-inline-end: 6px; vertical-align: middle; border-top: 2px solid #5dd2a6; }
.sc-key .k-e::before { border-top: 2px dashed #e9a566; }
.sc-ctl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 6px 4px; }
.sc-b { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); color: #c9d2db; cursor: pointer; transition: color .25s, border-color .25s, background .25s; }
.sc-b:hover { border-color: rgba(255,255,255,0.4); color: #fff; }
.sc-b:focus-visible, .sc-range:focus-visible { outline: 2px solid #e9a566; outline-offset: 3px; }
.sc-b[data-set="0"].is-on { border-color: #e9a566; color: #e9a566; background: rgba(233,165,102,0.08); }
.sc-b[data-set="1000"].is-on { border-color: #5dd2a6; color: #5dd2a6; background: rgba(93,210,166,0.08); }
.sc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.sc-range:active { cursor: grabbing; }
.sc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e9a566, #5dd2a6); }
html[dir="rtl"] .sc-range::-webkit-slider-runnable-track { background: linear-gradient(270deg, #e9a566, #5dd2a6); }
.sc-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, #e9a566, #5dd2a6); }
html[dir="rtl"] .sc-range::-moz-range-track { background: linear-gradient(270deg, #e9a566, #5dd2a6); }
.sc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #f5f7fa; border: 3px solid #0c131b; box-shadow: 0 0 0 2px #e9a566, 0 6px 14px rgba(0,0,0,0.5); }
.sc-range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #f5f7fa; border: 3px solid #0c131b; box-shadow: 0 0 0 2px #e9a566, 0 6px 14px rgba(0,0,0,0.5); }
.ps-scope figcaption { padding: 10px 6px 2px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: #7d8a97; }
html[dir="rtl"] .ps-scope figcaption { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }

/* ---------- services: a drawing in each card ---------- */
.ps-svc-c .pv, .px-vis.pv { position: relative; border: 1px solid var(--tp-line); border-radius: 12px; overflow: hidden;
  background: linear-gradient(var(--tp-grid) 1px, transparent 1px) 0 0 / 100% 16px, linear-gradient(90deg, var(--tp-grid) 1px, transparent 1px) 0 0 / 16px 100%, rgba(154,82,28,0.035); }
.ps-svc-c .pv { height: 110px; margin-bottom: 4px; }
.ps-svc-c .pv svg, .px-vis.pv svg { position: absolute; inset: 6px 8px; width: calc(100% - 16px); height: calc(100% - 12px); overflow: visible; direction: ltr; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ps-svc-c h3 { display: flex; align-items: center; gap: 10px; }
.ps-svc-c h3 .ic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
.ps-svc-c h3 .ic svg { width: 17px; height: 17px; }
.ps-svc-c .pv .dr, .px-panel .pv .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.33, 0, .2, 1) calc(0.3s + var(--d, 0s)); }
.ps-svc-c.in .pv .dr, .px-panel.is-on .pv .dr { stroke-dashoffset: 0; }
.ps-svc-c .pv .dots circle, .px-panel .pv .dots circle { opacity: 0; transition: opacity 0.35s ease calc(0.6s + var(--i) * 35ms); }
.ps-svc-c.in .pv .dots circle, .px-panel.is-on .pv .dots circle { opacity: 1; }
.pv .nd { fill: var(--tp-bg); stroke: var(--tp-acc); stroke-width: 1.8; }
.pv .nd.on { fill: var(--tp-acc); }
.pv text.hi { fill: var(--tp-ink); font-weight: 600; font-size: 12px; }
.pv .loop { stroke-dasharray: 3 4; }
.pv .hh { stroke-width: 2.8; } .pv .mh { stroke-width: 1.8; }
.pv .hh, .pv .mh { transform-box: view-box; transform-origin: 64px 50px; transition: transform .8s var(--ease); }
.pv-cap { position: absolute; top: 7px; right: 12px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .pv-cap { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }
.pv-cap b { font-family: var(--font-mono); font-weight: 600; color: var(--tp-ink); margin-inline-start: 4px; }
.ps-dots { display: none; }

/* ---------- products: the flagship, then the rest of the family ---------- */
.ps-prod2 { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 18px; }
.ps-pc.main.ps-flag { grid-column: auto; grid-row: auto; }
.ps-flag .mh { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 6px; }
.ps-flag .mv { display: grid; gap: 20px; align-content: start; }
.fl-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.ps-pc.main .fl-act a.x { margin-top: 0; }
.ps-v5 .v5-b { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; font-family: var(--font-mono); font-size: 12px; text-align: start; color: #e8e5df; background: rgba(255,255,255,0.02); direction: ltr; cursor: pointer;
  transition: border-color .25s, background .25s, transform .25s var(--ease); }
html[dir="rtl"] .ps-v5 .v5-b { justify-content: flex-end; }
.ps-v5 .v5-b::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: rgba(232,229,223,0.35); transition: background .25s, box-shadow .25s; }
.ps-v5 .v5-b:hover { border-color: rgba(93,210,166,0.5); transform: translateY(-1px); }
.ps-v5 .v5-b:focus-visible { outline: 2px solid var(--ps-a); outline-offset: 2px; }
.ps-v5 .v5-b[aria-pressed="true"] { border-color: var(--ps-g); background: rgba(93,210,166,0.1); }
.ps-v5 .v5-b[aria-pressed="true"]::before { background: var(--ps-g); box-shadow: 0 0 7px var(--ps-g); }
.ps-pc.main .v5-say { margin-top: 12px; min-height: 4.4em; max-width: none; padding: 12px 14px; font-size: 15.5px; line-height: 1.5; color: rgba(232,229,223,0.9); border-inline-start: 2px solid var(--ps-g); background: rgba(93,210,166,0.06); border-radius: 0 10px 10px 0; }
html[dir="rtl"] .ps-pc.main .v5-say { border-radius: 10px 0 0 10px; }
.v5-say span[hidden] { display: none; }
.ps-px { padding: clamp(16px, 2.2vw, 28px); border: 1px solid var(--tp-line); border-radius: 18px; background: var(--tp-card); color: var(--tp-ink); }
.px-k { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--tp-acc); }
html[dir="rtl"] .px-k { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; }
.px-tabs { margin-top: 14px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.px-tab { font: inherit; text-align: start; display: grid; gap: 10px; align-content: start; padding: 10px; border-radius: 14px; border: 1px solid var(--tp-line); background: transparent; color: var(--tp-ink); cursor: pointer;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease), background .25s; }
.px-tab:hover { border-color: var(--tp-acc); transform: translateY(-2px); }
.px-tab:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.px-tab[aria-selected="true"] { border-color: var(--tp-acc); background: rgba(255,255,255,0.7); box-shadow: 0 0 0 1px var(--tp-acc), 0 22px 40px -28px var(--tp-lift); }
.px-lg { height: 60px; padding: 9px 12px; display: grid; place-items: center; border-radius: 9px; background: #ffffff; border: 1px solid rgba(11,17,24,0.08); }
.px-lg .ps-logo { height: 40px; object-fit: contain; }
.px-lg .fam-w { font-size: 22px; }
.px-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(154,82,28,0.1); color: #9a521c; }
.px-ic svg { width: 22px; height: 22px; }
.px-n { display: grid; gap: 3px; padding: 0 2px 2px; font-family: var(--font-display); font-weight: 500; font-size: 15.5px; letter-spacing: -0.01em; }
.px-n i { font-style: normal; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .px-n i { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.px-panel { margin-top: 20px; padding: clamp(4px, 1vw, 12px) clamp(2px, 0.8vw, 10px) 4px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(22px, 3.5vw, 52px); align-items: center; }
.px-panel[hidden] { display: none; }
.px-panel:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 4px; border-radius: 12px; }
.px-txt { display: grid; gap: 12px; justify-items: start; animation: pxIn .45s var(--ease) both; }
@keyframes pxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.px-txt .badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--tp-line); color: var(--tp-acc); }
html[dir="rtl"] .px-txt .badge { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.px-txt h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -0.02em; color: var(--tp-ink); }
.px-txt p { max-width: 32em; font-size: 16.5px; line-height: 1.55; color: var(--tp-mute); }
.px-pts { list-style: none; width: 100%; display: grid; }
.px-pts li { display: flex; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--tp-line); font-size: 15.5px; line-height: 1.45; color: var(--tp-ink); }
.px-pts li:last-child { border-bottom: 1px solid var(--tp-line); }
.px-pts li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--tp-acc); transform: translateY(-1px) rotate(45deg); }
.px-act { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.px-act a.x, .px-rev { font-size: 14.5px; font-weight: 500; color: var(--tp-acc); text-decoration: none; }
.px-act a.x:hover, .px-rev:hover { text-decoration: underline; text-underline-offset: 3px; }
.px-rev[hidden] { display: none; }
.px-add { cursor: pointer; }
.px-add[aria-pressed="true"] { background: var(--tp-ok); border-color: var(--tp-ok); color: #ffffff; }
.px-add[aria-pressed="true"]:hover { background: var(--tp-ok); border-color: var(--tp-ok); filter: brightness(1.08); }
.px-vis.pv { aspect-ratio: 300 / 150; }
.q-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin-inline-start: 8px; border-radius: 999px; background: var(--on-copper); color: #ffd7ad; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.q-n[hidden] { display: none; }

/* ---------- FAQ topics ---------- */
.fq-chips { margin: clamp(28px, 3.5vw, 44px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fq-b { font: inherit; font-size: 14.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--tp-line); background: transparent; color: var(--tp-ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.fq-b:hover { border-color: var(--tp-acc); }
.fq-b:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.fq-b[aria-pressed="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: var(--tp-bg); }
.fq-chips + .ps-faq { margin-top: 22px; border-bottom: 1px solid var(--tp-line); }
.fq-chips + .ps-faq details:last-child { border-bottom: 0; }
.ps-faq details[hidden] { display: none; }

@media (max-width: 1080px) {
  .ps-emt-g { grid-template-columns: minmax(0, 1fr); }
  .ps-scope { max-width: 760px; }
  .ps-flag .mh { grid-template-columns: minmax(0, 1fr); }
  .ps-flag .mv .pv { max-width: 560px; }
}
@media (max-width: 900px) {
  .px-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(-1 * clamp(16px, 2.2vw, 28px)); padding: 4px clamp(16px, 2.2vw, 28px) 8px; scrollbar-width: none; }
  .px-tabs::-webkit-scrollbar { display: none; }
  .px-tab { flex: 0 0 148px; scroll-snap-align: center; }
  .px-panel { grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
  .px-vis.pv { order: -1; }
}
@media (max-width: 600px) {
  .ps-fam { gap: 10px; }
  .fam-l { height: 40px; min-width: 0; padding: 8px 12px; } .fam-l .ps-logo { height: 23px; } .fam-w { font-size: 16px; }
  .ps-emt-see .see-z { grid-template-columns: 20px minmax(0, 1fr); } .ps-emt-see .see-z span { grid-column: 2; margin-top: -8px; }
  .sc-ctl { grid-template-columns: 1fr 1fr; } .sc-range { grid-column: 1 / -1; grid-row: 1; }
  .sc-mode + .sc-r { margin-inline-start: 0; }
  .sc-key { position: static; padding: 8px 10px 0; justify-content: center; }
  /* services swipe sideways; the dots show where you are */
  .ps-svc-g { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .ps-svc-g::-webkit-scrollbar { display: none; }
  .ps-svc-c { flex: 0 0 84%; scroll-snap-align: center; }
  .ps-svc-c.reveal { opacity: 1; transform: none; }
  .ps-dots { display: flex; justify-content: center; gap: 7px; margin-top: 8px; }
  .ps-dots i { width: 7px; height: 7px; border-radius: 4px; background: var(--tp-line); transition: width .3s var(--ease), background .3s; }
  .ps-dots i.is-on { width: 22px; background: var(--tp-acc); }
}
html.rm .ps-svc-c .pv .dr, html.rm .px-panel .pv .dr { stroke-dashoffset: 0; transition: none; }
html.rm .ps-svc-c .pv .dots circle, html.rm .px-panel .pv .dots circle { opacity: 1; transition: none; }
html.rm .px-txt { animation: none; } html.rm .pv .hh, html.rm .pv .mh { transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .ps-svc-c .pv .dr, html.rm .px-panel .pv .dr { stroke-dashoffset: 0; transition: none; }
html.rm .ps-svc-c .pv .dots circle, html.rm .px-panel .pv .dots circle { opacity: 1; transition: none; }
html.rm .px-txt { animation: none; }
html.rm .pv .hh, html.rm .pv .mh { transition: none; }

/* screenshots in the family explorer, and their large view */
.px-shot { margin: 0; }
.px-zoom { display: block; width: 100%; padding: 0; border: 1px solid var(--tp-line); border-radius: 12px; overflow: hidden; background: #fff; cursor: zoom-in; box-shadow: 0 30px 60px -40px var(--tp-lift); transition: transform .3s var(--ease), box-shadow .3s; }
.px-zoom:hover { transform: translateY(-3px); box-shadow: 0 40px 70px -40px var(--tp-lift); }
.px-zoom:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 3px; }
.px-zoom img { display: block; width: 100%; height: auto; }
.px-shot figcaption { margin-top: 10px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .px-shot figcaption { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }
.px-dlg { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 92vh; overflow: visible; }
.px-dlg::backdrop { background: rgba(5,8,12,0.88); }
.px-dlg img { display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto; border-radius: 10px; background: #fff; }
.px-dlg-x { position: absolute; top: -14px; inset-inline-end: -8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: #0b1118; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
#prod-main, .ps-px, #emt { scroll-margin-top: 150px; }
@media (max-width: 900px) { .px-shot { order: -1; } }
.ps-scope.is-rms .sc-env.lo, .ps-scope.is-rms .sc-band { opacity: 0 !important; }
.ps-prod2 { grid-template-columns: minmax(0, 1fr); }
.ps-px, .ps-flag { min-width: 0; }
.px-panel > * { min-width: 0; }

/* =============================================================
   Round three: the family first, large networks and many cores,
   editions and packages, a quote builder that matches how MHI sells
   ============================================================= */
/* Why EMT and the applications read as one chapter */
.ps-emt + .ps-apps { border-top: 0; padding-top: clamp(28px, 3.5vw, 48px); }

/* ---------- At any scale: large networks, many cores ---------- */
.ps-scale { position: relative; margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.ps-scale::before { content: ''; position: absolute; top: 0; inset-inline: var(--gutter); height: 1px; background: var(--line); }
.sl-h { font-family: var(--font-display); font-weight: 500; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; max-width: 12em; margin-top: 14px; }
.sl-h em { font-style: normal; color: var(--copper-hi); }
.sl-p { margin-top: 16px; max-width: 32em; font-size: 17px; line-height: 1.55; color: var(--text-mute); }
.sl-ways { list-style: none; margin-top: 22px; display: grid; }
.sl-ways li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.sl-ways li:last-child { border-bottom: 1px solid var(--line); }
.sl-ways .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(93,210,166,0.1); color: var(--signal); }
.sl-ways .ic svg { width: 22px; height: 22px; }
.sl-ways b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 0.02em; color: var(--text); }
html[dir="rtl"] .sl-ways b { text-align: right; }
.sl-ways span { display: block; margin-top: 4px; font-size: 15.5px; line-height: 1.5; color: var(--text-mute); }
.sl-ways em { display: inline-block; margin-top: 8px; font-style: normal; font-family: var(--font-mono); font-size: 11.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid rgba(201,123,61,0.5); color: var(--copper-hi); background: rgba(201,123,61,0.07); }
html[dir="rtl"] .sl-ways em { font-family: var(--font-sans); font-size: 12.5px; }
.sl-src { display: inline-block; margin-top: 18px; font-size: 14.5px; font-weight: 500; color: var(--copper-hi); text-decoration: none; }
.sl-src:hover { text-decoration: underline; text-underline-offset: 3px; }
.ps-study { margin: 0; padding: 14px; border-radius: 18px; background: linear-gradient(180deg, #121b26, #0c131b); border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 40px 90px -50px rgba(0,0,0,0.85); color: #e8e5df; }
html[data-theme="light"] .ps-study { border-color: rgba(11,17,24,0.25); box-shadow: 0 30px 70px -44px rgba(11,17,24,0.5); }
.st-bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding: 2px 4px 12px; }
.st-bar b { font-family: var(--font-display); font-weight: 500; font-size: 17px; color: #e8e5df; }
.st-bar span { font-family: var(--font-mono); font-size: 11px; color: #9aa7b4; }
html[dir="rtl"] .st-bar span { font-family: var(--font-sans); font-size: 12.5px; }
.st-grid { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; padding: 12px; border-radius: 12px; background: radial-gradient(90% 90% at 50% 40%, #0a1a1d, #061015); box-shadow: inset 0 0 0 1px rgba(93,210,166,0.12); direction: ltr; }
.st-grid i { aspect-ratio: 1; border-radius: 2px; background: rgba(255,255,255,0.08); transition: background-color .3s; }
.st-grid i.r { background: #e9a566; box-shadow: 0 0 6px rgba(233,165,102,0.8); transition: none; }
.st-grid i.d { background: rgba(93,210,166,0.62); }
.st-bars { display: grid; gap: 9px; padding: 14px 4px 2px; }
.st-row { display: grid; grid-template-columns: minmax(150px, 0.9fr) minmax(0, 2fr) minmax(92px, auto); align-items: center; gap: 12px; }
.st-k { font-size: 13.5px; color: #9aa7b4; }
.st-tr { height: 10px; border-radius: 5px; background: rgba(255,255,255,0.06); overflow: hidden; }
.st-tr i { display: block; height: 100%; border-radius: 5px; background: #7d8a97; }
.st-row.par .st-tr i { background: linear-gradient(90deg, #5dd2a6, #8ef0c9); }
html[dir="rtl"] .st-row.par .st-tr i { background: linear-gradient(270deg, #5dd2a6, #8ef0c9); }
.st-row b { font-family: var(--font-mono); font-weight: 500; font-size: 13px; color: #e8e5df; text-align: end; white-space: nowrap; }
html[dir="rtl"] .st-row b { font-family: var(--font-sans); font-size: 13.5px; }
.st-row.par b, .st-row.par .st-k { color: #5dd2a6; }
.st-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 4px 2px; }
.st-lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #9aa7b4; }
html[dir="rtl"] .st-lab { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; }
.st-ns { display: flex; flex-wrap: wrap; gap: 6px; }
.st-n { font-family: var(--font-mono); font-size: 13px; min-width: 46px; padding: 8px 10px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.03); color: #c9d2db; cursor: pointer; display: inline-grid; justify-items: center; line-height: 1.15;
  transition: color .25s, border-color .25s, background .25s, transform .25s var(--ease); }
.st-n i { font-style: normal; font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #7d8a97; margin-top: 2px; }
html[dir="rtl"] .st-n i { font-family: var(--font-sans); font-size: 10.5px; letter-spacing: 0; }
.st-n:hover { border-color: rgba(255,255,255,0.4); color: #fff; transform: translateY(-1px); }
.st-n[aria-pressed="true"] { border-color: #5dd2a6; color: #5dd2a6; background: rgba(93,210,166,0.1); }
.st-n[aria-pressed="true"] i { color: #5dd2a6; }
.st-n:focus-visible, .st-run:focus-visible { outline: 2px solid #e9a566; outline-offset: 2px; }
.st-run { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px; border: 1px solid rgba(233,165,102,0.6); background: rgba(233,165,102,0.08); color: #e9a566; font: inherit; font-size: 14px; cursor: pointer; transition: background .25s, opacity .25s; }
.st-run svg { width: 13px; height: 13px; }
html[dir="rtl"] .st-run svg { transform: scaleX(-1); }
.st-run:hover { background: rgba(233,165,102,0.16); }
.ps-study.is-run .st-run { opacity: 0.55; }
.st-cl { margin: 12px 4px 0; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; color: #c9d2db; background: rgba(142,197,255,0.07); border: 1px solid rgba(142,197,255,0.25); }
.st-cl[hidden] { display: none; }
.ps-study figcaption { padding: 12px 6px 2px; text-align: center; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; line-height: 1.5; color: #7d8a97; }
html[dir="rtl"] .ps-study figcaption { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }

/* ---------- Editions and packages (products, paper) ---------- */
.ps-ed { padding: clamp(16px, 2.2vw, 28px); border: 1px solid var(--tp-line); border-radius: 18px; background: var(--tp-card); color: var(--tp-ink); }
.ed-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; }
.ed-p { font-size: 15px; line-height: 1.5; color: var(--tp-mute); }
.ed-g { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.ed-c { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: 14px; border: 1px solid var(--tp-line); background: rgba(255,255,255,0.5); }
.ed-c.ed-pro { background: #ffffff; border-color: rgba(154,82,28,0.55); box-shadow: 0 26px 50px -38px var(--tp-lift); }
.ed-c h3 { font-family: var(--font-display); font-weight: 500; font-size: 24px; letter-spacing: -0.02em; color: var(--tp-ink); }
.ed-who { margin-top: -6px; font-size: 14.5px; line-height: 1.45; color: var(--tp-mute); }
.ed-m span { display: block; margin-bottom: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .ed-m span { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.ed-m i { position: relative; display: block; height: 8px; border-radius: 4px; background: rgba(11,17,24,0.07); overflow: hidden; }
.ed-m i::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); border-radius: 4px; background: linear-gradient(90deg, #c97b3d, #e9a566); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) .3s; }
html[dir="rtl"] .ed-m i::after { transform-origin: right; background: linear-gradient(270deg, #c97b3d, #e9a566); }
.ps-ed.in .ed-m i::after { transform: none; }
.ed-s { margin: 0; display: grid; }
.ed-s div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--tp-line); font-size: 14.5px; }
.ed-s dt { color: var(--tp-mute); }
.ed-s dd { margin: 0; font-family: var(--font-mono); font-weight: 600; font-size: 14px; color: var(--tp-ink); white-space: nowrap; }
html[dir="rtl"] .ed-s dd { font-family: var(--font-sans); font-size: 14.5px; }
.ed-pk { list-style: none; display: grid; gap: 6px; }
.ed-pk li { display: flex; align-items: baseline; gap: 10px; padding: 8px 11px; border-radius: 10px; background: rgba(154,82,28,0.07); font-size: 14px; }
.ed-pk b { min-width: 5.6em; font-weight: 600; color: var(--tp-acc); }
.ed-n { font-size: 14px; line-height: 1.45; color: var(--tp-mute); }
.ed-act { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.ed-b { padding: 12px 16px; gap: 8px; font-size: 11px; letter-spacing: 0.14em; }
.ed-act .btn-ghost { color: var(--tp-ink); border-color: var(--tp-line); }
.ed-act .btn-ghost:hover { border-color: var(--tp-acc); color: var(--tp-acc); background: transparent; }

/* ---------- explorer: the Initializer is included; Enhanced already has PRSIM and Enerplot ---------- */
.px-inc { display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 999px; background: rgba(15,110,78,0.1); color: var(--tp-ok); font-weight: 500; font-size: 15px; }
.px-inc i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tp-ok); color: #ffffff; font-style: normal; font-size: 12px; }
.px-add.is-inc, .px-add.is-inc:hover { background: transparent; color: var(--tp-ok); border-color: var(--tp-ok); cursor: default; filter: none; }

/* ---------- quote builder: package, simulations at once, PRSIM source ---------- */
.qb-c[hidden], .qb-prsim[hidden] { display: none; }
.qb-p span { display: grid; gap: 1px; padding: 9px 16px; border-radius: 14px; text-align: start; }
.qb-p span b { font-weight: 600; font-size: 14.5px; }
.qb-p span i { font-style: normal; font-size: 12px; opacity: 0.78; }
.qb-n span { min-width: 52px; justify-content: center; }
.qb-n span i { font-style: normal; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; }
html[dir="rtl"] .qb-n span i { font-family: var(--font-sans); font-size: 11px; letter-spacing: 0; text-transform: none; }
.qb-inc { display: none; font-style: normal; font-size: 11.5px; opacity: 0.85; }
.qb-x.is-inc .qb-inc { display: inline; }
.qb-x.is-inc input { cursor: not-allowed; }
.qb-x.is-inc span::before { content: '✓'; opacity: 1; }
.qb-list li.qb-sub { margin-top: -6px; font-size: 13.5px; color: rgba(232,229,223,0.7); }
.qb-list li.qb-sub::before { visibility: hidden; }

@media (max-width: 1080px) { .ps-scale { grid-template-columns: minmax(0, 1fr); } .ps-study { max-width: 760px; } }
@media (max-width: 900px) { .ed-g { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) {
  .st-grid { gap: 2px; padding: 8px; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .st-row .st-tr { grid-column: 1 / -1; grid-row: 2; }
  .st-run { margin-inline-start: 0; }
  .st-n { min-width: 40px; padding: 7px 8px; font-size: 12.5px; }
}
html.rm .ed-m i::after { transform: none; transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .ed-m i::after { transform: none; transition: none; }
@media (max-width: 600px) {
  .st-ctl { display: grid; grid-template-columns: minmax(0, 1fr); }
  .st-ns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .st-n { min-width: 0; }
  .st-run { justify-self: start; }
}

/* FAQ: the first six, then the rest on request */
.fq-more { display: block; margin: 20px auto 0; font: inherit; font-size: 15px; padding: 11px 20px; border-radius: 999px; border: 1px solid var(--tp-line); background: transparent; color: var(--tp-ink); cursor: pointer; transition: border-color .25s, color .25s; }
.fq-more:hover { border-color: var(--tp-acc); color: var(--tp-acc); }
.fq-more:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.fq-more[hidden] { display: none; }
/* phones: the editions and the ways to use more cores swipe sideways, like the services */
@media (max-width: 600px) {
  .ed-g { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: -16px; padding: 4px 16px 10px; scrollbar-width: none; }
  .ed-g::-webkit-scrollbar { display: none; }
  .ed-c { flex: 0 0 86%; scroll-snap-align: center; }
  .sl-ways { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
  .sl-ways::-webkit-scrollbar { display: none; }
  .sl-ways li, .sl-ways li:last-child { flex: 0 0 84%; scroll-snap-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
  .sl-ways + .ps-dots i { background: var(--line-2); }
  .sl-ways + .ps-dots i.is-on { background: var(--copper-hi); }
}

/* =============================================================
   Round four: the product visuals respond
   ============================================================= */
/* ---------- the PSCAD v5.1 card: one drawing per version 5 feature; tap it for the next ---------- */
.v5-pv { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v5-pv:focus-visible { outline: 2px solid var(--ps-a); outline-offset: 3px; }
.ps-pc .v5-pv svg.v5v { opacity: 0; transition: opacity .45s ease; }
.ps-pc .v5-pv svg.v5v.on { opacity: 1; }
.v5-next { position: absolute; top: 8px; right: 10px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); background: rgba(11,17,24,0.7);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; color: rgba(232,229,223,0.6); pointer-events: none; transition: color .25s, border-color .25s; }
html[dir="rtl"] .v5-next { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; }
.v5-next i { font-style: normal; }
.v5-pv:hover .v5-next, .v5-pv:focus-visible .v5-next { color: #e9a566; border-color: rgba(233,165,102,0.5); }
.ps-flag .pv .dr { transition: none; stroke-dashoffset: 1; }
.ps-flag.in .v5v.on .dr { animation: v5draw 1.6s cubic-bezier(.33, 0, .2, 1) both; animation-delay: calc(.15s + var(--d, 0s)); }
@keyframes v5draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes v5flow { to { stroke-dashoffset: -20; } }
@keyframes v5pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes v5grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes v5tick { to { transform: rotate(360deg); } }
.v5v .t { font-family: var(--font-mono); font-size: 9.5px; fill: rgba(232,229,223,0.62); stroke: none; }
html[dir="rtl"] .v5v .t { font-family: var(--font-sans); font-size: 10.5px; }
.v5v .t.hi { fill: #e8e5df; font-weight: 600; }
.v5v .t.a, .v5v .nd.a { fill: #e9a566; } .v5v .t.g, .v5v .nd.g { fill: #5dd2a6; } .v5v .t.b, .v5v .nd.b { fill: #8ec5ff; }
.v5v .nd { stroke: none; }
.v5v .rg { stroke-width: 1; }
.v5v .rg.a { fill: rgba(233,165,102,0.07); stroke: rgba(233,165,102,0.35); }
.v5v .rg.g { fill: rgba(93,210,166,0.07); stroke: rgba(93,210,166,0.35); }
.v5v .rg.b { fill: rgba(142,197,255,0.07); stroke: rgba(142,197,255,0.35); }
.v5v .w { fill: none; stroke: rgba(232,229,223,0.32); stroke-width: 1.2; }
.v5v .ifc { fill: none; stroke: #e8e5df; stroke-width: 1.8; stroke-dasharray: 3 4; }
.v5v .box { fill: rgba(255,255,255,0.03); stroke: rgba(232,229,223,0.18); stroke-width: 1; }
.v5v .code { font-family: var(--font-mono); font-size: 8.6px; fill: #cfe9de; stroke: none; }
.v5v .ax2 { fill: none; stroke: rgba(232,229,223,0.18); stroke-width: 1; }
.v5v path.g { fill: none; stroke: #5dd2a6; stroke-width: 1.8; }
.v5v .chip rect { fill: rgba(255,255,255,0.04); stroke: rgba(232,229,223,0.3); stroke-width: 1; }
.v5v .chip text, .v5v .tgt text, .v5v .lap text { font-family: var(--font-mono); font-size: 9.5px; fill: #e8e5df; stroke: none; }
.v5v .fl { fill: none; stroke: #e9a566; stroke-width: 1.6; stroke-dasharray: 5 5; }
.v5v .fl.rev { stroke: #5dd2a6; }
.v5v .tgt rect { fill: rgba(233,165,102,0.1); stroke: #e9a566; stroke-width: 1.4; }
.v5v .tgt path { fill: none; stroke: #e9a566; stroke-width: 1.4; }
.v5v .tgt text { fill: #e9a566; font-weight: 600; letter-spacing: 0.08em; }
.v5v .tile .ic rect, .v5v .tile .ic circle, .v5v .tile .ic path { fill: none; stroke: #8ec5ff; stroke-width: 1.4; }
.v5v .ic-t { font-family: var(--font-mono); font-size: 8px; fill: #8ec5ff; stroke: none; }
.v5v .trk { fill: rgba(255,255,255,0.06); }
.v5v .gr { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
.v5v .gr.a { fill: #e9a566; } .v5v .gr.g { fill: #5dd2a6; }
.v5v .gpu rect { fill: rgba(142,197,255,0.08); stroke: #8ec5ff; stroke-width: 1.2; }
.v5v .gpu path { fill: none; stroke: #8ec5ff; stroke-width: 1.2; }
.v5v .gpu text { fill: #8ec5ff; font-weight: 600; }
.v5v .lap rect, .v5v .lap path { fill: rgba(255,255,255,0.03); stroke: rgba(232,229,223,0.45); stroke-width: 1.2; }
.v5v .pc rect, .v5v .pc path { fill: rgba(255,255,255,0.03); stroke: rgba(232,229,223,0.35); stroke-width: 1.1; }
.v5v rect.case { fill: #5dd2a6; stroke: none; }
.v5v .ah { fill: none; stroke-width: 1.6; } .v5v .ah.a { stroke: #e9a566; } .v5v .ah.g { stroke: #5dd2a6; }
.v5v .clk circle { fill: none; stroke: rgba(232,229,223,0.45); stroke-width: 1.2; }
.v5v .clk .hand { fill: none; stroke: #e9a566; stroke-width: 1.6; transform-box: view-box; transform-origin: 160px 114px; }
.v5v .pop { opacity: 0; }
.v5v.on .pop { animation: v5pop .5s var(--ease) both; animation-delay: var(--d, 0s); }
.v5v.on .gr { animation: v5grow var(--t, 1s) linear .3s both; }
.v5v.on .fl, .v5v.on .ifc { animation: v5flow 1.1s linear infinite; }
.v5v.on .fl.rev, .v5v.on .ifc.rev { animation-direction: reverse; }
.v5v.on .clk .hand { animation: v5tick 2.4s steps(8) infinite; }
/* what version 5.1 adds leads the card, in its own row; the version 5 essentials follow */
.v5-sel { display: flex; flex-direction: column; }
.ps-pc.main .v5-sel .v5k2 { margin-top: 16px; color: rgba(232,229,223,0.55); }
.ps-v5.v5-new .v5-b { border-color: rgba(233,165,102,0.4); line-height: 1.3; }
.ps-v5.v5-new .v5-b::before { background: #e9a566; box-shadow: 0 0 6px rgba(233,165,102,0.55); }
.ps-v5.v5-new .v5-b[aria-pressed="true"] { border-color: var(--ps-g); }
.ps-v5.v5-new .v5-b[aria-pressed="true"]::before { background: var(--ps-g); box-shadow: 0 0 7px var(--ps-g); }
.v5v .wv { fill: none; stroke-width: 1.5; }
.v5v .wv.a { stroke: #e9a566; } .v5v .wv.b { stroke: #8ec5ff; }
.ps-flag.in .v5v.on .wv.dr { animation-timing-function: linear; }
.v5v .mx { fill: rgba(255,255,255,0.04); stroke: rgba(232,229,223,0.14); stroke-width: 0.8; }
.v5v .mx.on { fill: rgba(142,197,255,0.5); stroke: #8ec5ff; }
.v5v rect.core { fill: #8ec5ff; stroke: none; }
.v5v .tog rect { fill: rgba(93,210,166,0.22); stroke: #5dd2a6; stroke-width: 1.1; }
.v5v .tog circle { fill: #5dd2a6; stroke: none; }
.v5v .cc rect { stroke-width: 1.2; }
.v5v .cc.a rect { fill: rgba(233,165,102,0.1); stroke: #e9a566; } .v5v .cc.g rect { fill: rgba(93,210,166,0.1); stroke: #5dd2a6; } .v5v .cc.b rect { fill: rgba(142,197,255,0.1); stroke: #8ec5ff; }
.v5v .cc text { font-family: var(--font-mono); font-size: 9px; font-weight: 600; stroke: none; }
.v5v .cc.a text { fill: #e9a566; } .v5v .cc.g text { fill: #5dd2a6; } .v5v .cc.b text { fill: #8ec5ff; }

/* ---------- screenshots: zoom into the parts that matter ---------- */
.px-view { position: relative; }
.px-zoom img { transition: transform .8s var(--ease), transform-origin .8s var(--ease); }
.px-spots { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.px-spot { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tp-line); background: transparent; color: var(--tp-ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.px-spot:hover { border-color: var(--tp-acc); }
.px-spot:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.px-spot[aria-pressed="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: var(--tp-bg); }
.px-shot figcaption { min-height: 2.8em; }
.px-shot.is-zoomed figcaption { font-family: var(--font-sans); font-size: 14.5px; letter-spacing: 0; text-transform: none; line-height: 1.45; color: var(--tp-ink); }
/* DFScan: the figures from our CIGRE paper, one at a time in a fixed frame (no jump between figures) */
.px-gal .px-zoom { aspect-ratio: 2 / 1; display: flex; align-items: center; justify-content: center; }
.px-gal .px-zoom img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s var(--ease); }
.px-gal.is-swap .px-zoom img { opacity: 0; }
.px-gal figcaption { font-family: var(--font-sans); font-size: 14.5px; letter-spacing: 0; text-transform: none; line-height: 1.45; color: var(--tp-ink); min-height: 4.4em; }
.px-gal .px-d { display: block; }
.px-gal .px-src { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .px-gal .px-src { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
html.rm .px-gal .px-zoom img { transition: none; }

/* ---------- editions: how big is your network? ---------- */
.ed-fit { margin-top: 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 16px; border-radius: 12px; background: rgba(154,82,28,0.06); border: 1px solid rgba(154,82,28,0.2); }
.ed-fit[hidden] { display: none; }
.ed-fit label { font-weight: 600; font-size: 15px; color: var(--tp-ink); }
.ed-out { font-size: 14.5px; color: var(--tp-mute); white-space: nowrap; }
.ed-out b { font-family: var(--font-mono); font-weight: 600; color: var(--tp-ink); }
.ed-range { -webkit-appearance: none; appearance: none; width: 100%; height: 30px; margin: 0; background: transparent; cursor: grab; touch-action: pan-y; }
.ed-range:active { cursor: grabbing; }
.ed-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(201,123,61,0.25), #c97b3d); }
html[dir="rtl"] .ed-range::-webkit-slider-runnable-track { background: linear-gradient(270deg, rgba(201,123,61,0.25), #c97b3d); }
.ed-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(201,123,61,0.25), #c97b3d); }
.ed-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #ffffff; border: 2px solid #c97b3d; box-shadow: 0 4px 10px rgba(11,17,24,0.25); }
.ed-range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #ffffff; border: 2px solid #c97b3d; }
.ed-range:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 3px; }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ed-fb { padding: 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
html[dir="rtl"] .ed-fb { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
.ed-fb[hidden] { display: none; }
.ed-c.fits .ed-fb { color: var(--tp-ok); background: rgba(15,110,78,0.1); border: 1px solid rgba(15,110,78,0.35); }
.ed-c.over .ed-fb { color: #a2361f; background: rgba(184,64,47,0.07); border: 1px solid rgba(184,64,47,0.3); }
.ed-c { transition: opacity .3s, box-shadow .3s, border-color .3s; }
.ed-c.over { opacity: 0.66; }
.ed-c.fits:not(.ed-pro) { border-color: rgba(15,110,78,0.45); }
.ed-m i { overflow: visible; }
.ed-m .mk { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-inline-start: -1px; border-radius: 1px; background: var(--tp-ink); transition: inset-inline-start .15s linear; }
.ed-m .mk::before { content: ''; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: inherit; }
.ed-m .mk[hidden] { display: none; }
.ed-c.over .ed-m .mk { background: #b8402f; }
@media (max-width: 600px) {
  .ed-fit { grid-template-columns: minmax(0, 1fr) auto; }
  .ed-fit label { grid-column: 1; }
  .ed-out { grid-column: 2; grid-row: 1; }
  .ed-range { grid-column: 1 / -1; }
  .px-spot { font-size: 12.5px; padding: 6px 10px; }
}
html.rm .v5v .pop, html.rm .v5v .gr { animation: none !important; opacity: 1; transform: none; }
html.rm .ps-flag .pv .dr { animation: none !important; stroke-dashoffset: 0; }
html.rm .v5v .fl, html.rm .v5v .ifc, html.rm .v5v .clk .hand { animation: none !important; }
html.rm .px-zoom img { transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .v5v .pop, html.rm .v5v .gr { animation: none !important; opacity: 1; transform: none; }
html.rm .ps-flag .pv .dr { animation: none !important; stroke-dashoffset: 0; }
html.rm .v5v .fl, html.rm .v5v .ifc, html.rm .v5v .clk .hand { animation: none !important; }
html.rm .px-zoom img { transition: none; }

/* one column (tablets and phones): the drawing sits just above the feature buttons, so a tap shows its result on screen;
   the description follows the buttons, so its changing length never moves them */
@media (max-width: 1100px) {
  .ps-pc.main.ps-flag .mh { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
  .ps-pc.main.ps-flag .mt, .ps-pc.main.ps-flag .mv { display: contents; }
  .ps-flag .v5-pv { order: 1; margin-top: 4px; }
  .ps-flag .v5-sel { order: 2; }
  .ps-flag .ps-v5 { margin-top: 4px; }
  .ps-flag .v5-say { order: 3; }
  .ps-pc.main.ps-flag .v5-say { margin-top: 2px; }
  .ps-flag .fl-act { order: 4; margin-top: 12px; }
}
@media (max-width: 600px) {
  .ps-flag .ps-v5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .ps-flag .ps-v5 .v5-b { gap: 8px; padding: 8px 10px; font-size: 11px; line-height: 1.3; }
  html[dir="rtl"] .ps-flag .ps-v5 .v5-b { text-align: right; }
  .v5-next { top: 5px; right: 6px; width: 26px; height: 26px; padding: 0; display: grid; place-items: center; font-size: 13px; }
  html[dir="rtl"] .v5-next { font-size: 13px; }
  .v5-nt { display: none; }
}

/* =============================================================
   Round five: learn from MHI (videos from pscad.com), one player for the page
   ============================================================= */
.lr-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lr-chips { margin: clamp(26px, 3.2vw, 40px) auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.lr-t { font: inherit; font-size: 14.5px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px 8px 15px; border-radius: 999px; border: 1px solid var(--tp-line); background: transparent; color: var(--tp-ink); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
html[dir="rtl"] .lr-t { padding: 8px 15px 8px 10px; }
.lr-t i { font-style: normal; font-family: var(--font-mono); font-size: 11px; min-width: 22px; padding: 2px 6px; border-radius: 999px; background: rgba(11,17,24,0.07); color: var(--tp-mute); text-align: center; }
.lr-t:hover { border-color: var(--tp-acc); }
.lr-t:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.lr-t[aria-pressed="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: var(--tp-bg); }
.lr-t[aria-pressed="true"] i { background: rgba(255,255,255,0.18); color: inherit; }

.lr-g { margin-top: 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; gap: 16px; }
.lr-c { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 16px; overflow: hidden; background: var(--tp-card); border: 1px solid var(--tp-line); color: var(--tp-ink); text-decoration: none;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.lr-c[hidden] { display: none; }
.lr-c:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -22px rgba(11,22,54,0.55); border-color: rgba(11,22,54,0.35); }
.lr-c:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 3px; }
.lr-c.lead { grid-column: span 2; grid-row: span 2; }
.lr-po { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; color: #f1c76b;
  background: linear-gradient(rgba(142,197,255,0.07) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, rgba(142,197,255,0.07) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(120% 100% at 15% 0%, #17336e 0%, #0b1636 55%, #070d22 100%); }
.lr-c.lead .lr-po { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
.lr-w { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .95;
  filter: drop-shadow(0 0 5px currentColor); transition: transform .9s var(--ease); }
.lr-w .ax { stroke: rgba(232,229,223,0.28); stroke-width: 1; }
.lr-c:hover .lr-w { transform: translateX(-14px); }
html[dir="rtl"] .lr-c:hover .lr-w { transform: translateX(14px); }
/* each video's own icon, on the topic's colour; the waveform sits behind it, quieter */
.lr-ic { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; z-index: 1;
  background: rgba(8,13,30,0.74); border: 1px solid color-mix(in srgb, currentColor 42%, transparent); box-shadow: 0 0 30px -8px color-mix(in srgb, currentColor 70%, transparent), inset 0 0 18px -10px currentColor; }
.lr-ic svg { width: 32px; height: 32px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lr-c.lead .lr-ic { width: 104px; height: 104px; border-radius: 28px; inset-inline-end: 30px; }
.lr-c.lead .lr-ic svg { width: 54px; height: 54px; stroke-width: 1.4; }
.lr-c .lr-w { opacity: 0.6; }
.lr-c:hover .lr-ic { border-color: currentColor; }
.w-start { color: #f1c76b; } .w-v5 { color: #8ec5ff; } .w-hpc { color: #5dd2a6; } .w-ren { color: #b4e07a; }
.w-hvdc { color: #b7a3ff; } .w-ov { color: #ff9a7a; } .w-tools { color: #7fe0e6; } .w-lic { color: #e9a566; }
.lr-k { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(7,13,34,0.62); border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: #e8e5df; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[dir="rtl"] .lr-k { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
.lr-pl { position: absolute; inset-inline-start: 14px; bottom: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.lr-pl svg { width: 18px; height: 18px; }
.lr-c:hover .lr-pl, .lr-c:focus-visible .lr-pl { background: #e9a566; border-color: #e9a566; color: #0b1118; transform: scale(1.06); }
.lr-c.lead .lr-pl { width: 64px; height: 64px; inset-inline-start: 22px; bottom: 22px; }
.lr-c.lead .lr-pl svg { width: 26px; height: 26px; }
.lr-b { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.lr-b b { font-weight: 600; font-size: 15.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-b i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tp-dim); }
html[dir="rtl"] .lr-b i { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
.lr-c.lead .lr-b { padding: 18px 22px 20px; }
.lr-c.lead .lr-b b { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; letter-spacing: -0.01em; }
.lr-c.is-in { animation: lrIn .5s var(--ease) both; }
@keyframes lrIn { from { opacity: 0; transform: translateY(10px); } }
.lr-note { margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--tp-dim); }
.lr-deep { margin-top: clamp(36px, 4vw, 56px); }
.lr-deep .px-k { text-align: center; }
.lr-dg { margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lr-d { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 18px; border-radius: 14px; border: 1px solid var(--tp-line); background: var(--tp-card);
  color: var(--tp-ink); text-decoration: none; transition: border-color .25s, transform .3s var(--ease); }
.lr-d:hover { border-color: var(--tp-acc); transform: translateY(-2px); }
.lr-d:focus-visible { outline: 2px solid var(--tp-acc); outline-offset: 2px; }
.lr-di { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(154,82,28,0.1); color: var(--tp-acc); }
.lr-di svg { width: 20px; height: 20px; }
.lr-d b { display: block; font-weight: 600; font-size: 15px; }
.lr-d span span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--tp-mute); }
.lr-d > i { font-style: normal; color: var(--tp-acc); }

/* watch links: the v5.1 card, the applications and the FAQ */
.ps-yt, .v5-w { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.yt-ic { width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #e9a566; color: #0b1118; transition: transform .25s var(--ease); }
.yt-ic svg { width: 11px; height: 11px; }
.ps-yt:hover .yt-ic, .v5-w:hover .yt-ic { transform: scale(1.12); }
.v5-say .v5-w { margin-top: 10px; display: flex; width: fit-content; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #e9a566; }
html[dir="rtl"] .v5-say .v5-w { font-family: var(--font-sans); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.v5-w:hover { color: #f3c08f; }
.ps-mhi { margin-top: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ps-mhi .ps-yt { font-size: 14.5px; line-height: 1.35; color: #e8e5df; }
.ps-mhi .ps-yt:hover { color: #e9a566; }
.ps-ex { font-size: 13.5px; color: var(--copper-hi); text-decoration: none; }
.ps-ex:hover { text-decoration: underline; }
.ps-faq .a .ps-yt { margin-top: 10px; display: flex; width: fit-content; color: var(--tp-acc); font-weight: 500; }
.ps-faq .a .ps-yt:hover { text-decoration: underline; }

/* the player */
.yt-dlg { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(1100px, 94vw); max-width: none; max-height: 96vh; padding: 0; border: 0; border-radius: 16px; background: #0b1118; color: #e8e5df; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.yt-dlg::backdrop { background: rgba(5,8,12,0.86); }
.yt-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 18px 14px; }
.yt-m { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #e9a566; }
html[dir="rtl"] .yt-m { font-family: var(--font-sans); font-size: 12.5px; letter-spacing: 0; text-transform: none; }
.yt-top h3 { margin-top: 4px; font-size: clamp(17px, 1.6vw, 21px); font-weight: 500; line-height: 1.3; color: #fff; }
.yt-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: transparent; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.yt-x:hover { background: rgba(255,255,255,0.1); }
.yt-x:focus-visible { outline: 2px solid #e9a566; outline-offset: 2px; }
.yt-f { position: relative; aspect-ratio: 16 / 9; max-height: calc(96vh - 150px); margin: 0 auto; background: #000; }
.yt-f iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-ft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 12px 18px 14px; font-size: 12.5px; color: rgba(232,229,223,0.65); }
.yt-ln { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.yt-ln a { color: #e9a566; text-decoration: none; font-size: 13.5px; }
.yt-ln a:hover { text-decoration: underline; }

@media (max-width: 1080px) { .lr-g { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lr-dg { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lr-g { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lr-c.lead { grid-row: auto; } .lr-c.lead .lr-po { flex: none; aspect-ratio: 16 / 9; min-height: 0; } }
@media (max-width: 600px) {
  .lr-chips { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 0 20px 6px; scrollbar-width: none; }
  .lr-chips::-webkit-scrollbar { display: none; }
  .lr-t { flex: none; }
  .lr-g { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 0 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .lr-g::-webkit-scrollbar { display: none; }
  .lr-c { scroll-snap-align: start; }
  .lr-c:hover { transform: none; }
  .lr-c.lead { grid-column: auto; grid-row: auto; }
  .lr-c.lead .lr-b { padding: 14px 16px 16px; }
  .lr-c.lead .lr-b b { font-size: 15.5px; line-height: 1.35; letter-spacing: 0; }
  .lr-c.lead .lr-pl { width: 44px; height: 44px; inset-inline-start: 14px; bottom: 14px; }
  .lr-c.lead .lr-pl svg { width: 18px; height: 18px; }
  .lr-dg { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lr-d { position: relative; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; }
  .lr-d span span { display: none; }
  .lr-d b { font-size: 14px; line-height: 1.3; }
  .lr-d > i { position: absolute; top: 12px; inset-inline-end: 12px; }
  .yt-dlg { width: 100vw; max-height: 100dvh; border-radius: 0; }
  .yt-top { padding: 12px 14px 10px; }
  .yt-ft { padding: 10px 14px 12px; }
}
html.rm .lr-c.is-in { animation: none; } html.rm .lr-w, html.rm .lr-c { transition: none; }
/* reduced motion follows the site's own switch (footer), so the demos stay live everywhere else */
html.rm .lr-c.is-in { animation: none; }
html.rm .lr-w, html.rm .lr-c { transition: none; }
html.rm .lr-c:hover .lr-w { transform: none; }

/* =============================================================
   Round six: the hero keeps the PSCAD logo on its own; the line under the title links to the pscad.com listing
   ============================================================= */
.ps-mark { display: flex; justify-content: center; margin: 0 0 clamp(18px, 2.2vw, 26px); }
.ps-mark .ps-logo { display: block; width: auto; height: clamp(34px, 3.2vw, 42px); }
.ps-sub .ps-auth { color: var(--copper-hi); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: rgba(233,165,102,0.5); text-decoration-color: color-mix(in srgb, currentColor 50%, transparent); transition: color .2s, text-decoration-color .2s; }
.ps-sub .ps-auth:hover { text-decoration-color: currentColor; }
.ps-sub .ps-auth:focus-visible { outline: 2px solid var(--copper-hi); outline-offset: 3px; border-radius: 4px; }
.ps-sub .ps-auth .ar { display: inline-block; margin-inline-start: 4px; font-size: 0.78em; text-decoration: none; vertical-align: 0.06em; }
