/* PowerLoad project pages. Layers on top of pl.css + pl-product.css. */

/* ══ INDEX HERO: globe sits in the stage ══════════════════════ */
  .stage.pj-stage { padding: 128px 0 0; }
  .pj-stage .stage-grid { grid-template-columns: 1.02fr 0.98fr; gap: 48px; }
  .pj-hero-eyes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }
  .pj-hero-eyes span { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-pill);
    padding: 7px 13px; }
  .pj-hero-fig { margin: 0; position: relative; border-radius: var(--radius-large); overflow: hidden;
    background: var(--ink); box-shadow: 0 34px 76px rgba(0,0,0,.55); }
  .pj-hero-fig img { width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; display: block; }
  .pj-hero-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 20px 17px;
    font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.86); background: linear-gradient(to top, rgba(5,5,5,.9) 0%, transparent 100%); }

/* ══ THE GLOBE ═══════════════════════════════════════════════ */
  .pjglobe { position: relative; width: 100%; max-width: 560px; margin: 0 auto; }
  .pjglobe svg { width: 100%; height: auto; display: block; overflow: visible; }
  .pj-grid { fill: none; stroke: #fff; stroke-opacity: .07; stroke-width: 1; }
  .pj-land { fill: none; stroke: #E8E2DA; stroke-opacity: .40; stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
  .pj-route { fill: none; stroke: var(--accent); stroke-opacity: .42; stroke-width: 1.3; stroke-linecap: round;
    stroke-dasharray: 3 7; animation: pjflow 1.6s linear infinite; }
  .pj-route.is-active { stroke-opacity: .95; stroke-width: 1.9; filter: drop-shadow(0 0 5px rgba(240,96,31,.7)); }
  @keyframes pjflow { to { stroke-dashoffset: -10; } }

  .pj-pin .pj-halo { fill: var(--accent); opacity: .14; animation: pjbreathe 3.4s ease-in-out infinite; }
  .pj-pin .pj-ping { fill: none; stroke: #FFA24A; stroke-width: 1.4; animation: pjping 2.6s ease-out infinite; }
  .pj-pin .pj-dot  { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(240,96,31,.9)); }
  .pj-pin .pj-core { fill: #fff; opacity: .92; }
  .pj-pin.is-active .pj-halo { opacity: .32; }
  .pj-pin.is-active .pj-dot { r: 6.4; }
  .pj-pin.is-active .pj-ping { stroke-width: 1.9; animation-duration: 1.9s; }
  .pj-pin.just-picked .pj-halo { animation: pjpop .7s ease-out; }
  /* the factory reads differently from a deployment: a ring, not a filled pin */
  .pj-pin.is-hq .pj-dot { fill: none; stroke: #fff; stroke-width: 1.6; r: 5.4; filter: none; }
  .pj-pin.is-hq .pj-core { fill: #fff; opacity: 1; }
  .pj-pin.is-hq .pj-ping { display: none; }
  .pj-pin.is-hq .pj-halo { fill: #fff; opacity: .09; }
  /* SVG CSS transforms scale about the viewBox origin unless the box is the element's own fill */
  .pj-pin .pj-ping, .pj-pin .pj-halo { transform-box: fill-box; transform-origin: center; }
  @keyframes pjbreathe { 0%,100% { opacity: .12; } 50% { opacity: .27; } }
  @keyframes pjping { 0% { transform: scale(.55); opacity: .9; } 70%,100% { transform: scale(2.6); opacity: 0; } }
  @keyframes pjpop { 0% { transform: scale(.4); opacity: .75; } 100% { transform: scale(1); opacity: .32; } }

  .pj-label { position: absolute; transform: translate(-50%, -240%); white-space: nowrap; pointer-events: none;
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff;
    background: rgba(10,10,12,.86); border: 1px solid rgba(240,96,31,.5); border-radius: var(--radius-pill);
    padding: 6px 13px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 18px rgba(240,96,31,.28); opacity: 0;
    transition: opacity .3s ease, left .12s linear, top .12s linear; }

/* ══ THE PROJECT RAIL beside the globe ═══════════════════════ */
  .pj-map { background: var(--ink); color: var(--paper); padding: 96px 0 104px; position: relative; overflow: hidden; }
  .pj-map::before { content: ""; position: absolute; left: -14%; top: -34%; width: 60%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,96,31,.16) 0%, transparent 68%); filter: blur(30px); pointer-events: none; }
  .pj-map > .container { position: relative; z-index: 1; max-width: 1280px; }
  .pj-map .sec-head h2 { color: var(--paper); }
  .pj-map .sec-head .eyebrow { color: rgba(255,255,255,.55); }
  .pj-map .sec-head .lede { color: rgba(255,255,255,.62); }

  .pj-wrap { display: grid; grid-template-columns: 1.06fr .94fr; gap: 56px; align-items: center; }
  .pjlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
  .pjcard { position: relative; overflow: hidden; display: grid; grid-template-columns: 44px 1fr auto;
    align-items: center; gap: 16px; padding: 16px 20px; border-radius: var(--radius-card);
    background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.10);
    transition: border-color .25s ease, background .25s ease, transform .25s ease; }
  .pjcard:hover, .pjcard:focus-visible { border-color: rgba(240,96,31,.45); transform: translateX(4px); outline: none; }
  .pjcard.is-active { border-color: rgba(240,96,31,.62); background: rgba(240,96,31,.08); }
  .pjcard.is-active::before { content: ""; position: absolute; inset: -40% -10%; z-index: 0;
    background: radial-gradient(50% 60% at 12% 50%, rgba(240,96,31,.26), transparent 70%);
    animation: pjsweep 4.5s ease-in-out infinite; }
  @keyframes pjsweep { 0%,100% { opacity: .55; transform: translateX(-6%); } 50% { opacity: 1; transform: translateX(6%); } }
  .pjcard > * { position: relative; z-index: 1; }
  .pjcard .n { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: rgba(255,255,255,.34); }
  .pjcard.is-active .n { color: var(--accent); }
  .pjcard .c { min-width: 0; }
  .pjcard .region { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
  .pjcard h3 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; color: var(--paper); }
  .pjcard .kind { display: block; margin-top: 5px; font-size: 13px; color: rgba(255,255,255,.6); }
  .pjcard .go { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
    border-radius: 50%; border: 1px solid rgba(255,255,255,.16); color: rgba(255,255,255,.7); flex: none;
    transition: background .22s ease, color .22s ease, border-color .22s ease, transform .22s ease; }
  .pjcard .go svg { width: 14px; height: 14px; }
  .pjcard:hover .go { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateX(2px); }
  .pj-hint { margin-top: 20px; font-size: 13px; color: rgba(255,255,255,.45); }

/* ══ THE FIVE CHAPTERS ═══════════════════════════════════════ */
  .chap { padding: 104px 0; position: relative; }
  .chap:nth-of-type(odd) { background: var(--paper); }
  .chap:nth-of-type(even) { background: var(--off-white); }
  .chap-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 72px; align-items: center;
    max-width: 1220px; margin: 0 auto; }
  .chap.rev .chap-media { order: 2; }
  .chap-media { position: relative; border-radius: var(--radius-large); overflow: hidden; background: var(--ink);
    box-shadow: 0 30px 70px rgba(11,11,15,.16); }
  .chap-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5;
    transition: transform 800ms cubic-bezier(.2,.8,.2,1); }
  .chap-media:hover img { transform: scale(1.04); }
  /* both ends darkened: the index number and the place label have to read on any frame */
  .chap-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(5,5,5,.62) 0%, transparent 34%),
                linear-gradient(to bottom, rgba(5,5,5,.55) 0%, transparent 22%); }
  .chap-num { position: absolute; left: 22px; top: 20px; z-index: 2; font-size: 13px; font-weight: 700;
    letter-spacing: .18em; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
  .chap-num i { font-style: normal; color: var(--accent); }
  .chap-place { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2; color: #fff;
    display: flex; align-items: center; gap: 9px; font-size: 11px; font-weight: 700;
    letter-spacing: .16em; text-transform: uppercase; }
  .chap-place svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
  .chap-body .eyebrow { display: block; margin-bottom: 14px; }
  .chap-body h2 { font-size: clamp(30px, 3.4vw, 46px); }
  .chap-body h2 em { font-style: normal; color: var(--accent); }
  .chap-body > p { margin-top: 18px; color: var(--grey-text); font-size: 16px; line-height: 1.7; max-width: 48ch; }
  .chap-figs { display: flex; gap: 34px; flex-wrap: wrap; margin: 30px 0 26px;
    padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .chap-figs div b { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600;
    letter-spacing: -.03em; line-height: 1; color: var(--ink); }
  .chap-figs div span { display: block; margin-top: 8px; font-size: 10.5px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: var(--grey-text); }
  .chap-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
  .chap-tags span { font-size: 11.5px; font-weight: 600; color: var(--ink); background: rgba(11,11,15,.045);
    border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 7px 13px; }

/* ══ DETAIL PAGE: the dossier panel in the hero ══════════════ */
  /* the case-study hero runs a headline next to a data panel, so it needs a
     smaller h1 than the product pages, which give the headline a full half */
  .pj-case h1 { font-size: clamp(34px, 4.1vw, 58px); line-height: 1.0; }
  .pj-case .stage-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
  .pj-case .stage-lede { max-width: 44ch; margin: 22px 0 30px; }

  .dossier { border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-large);
    background: rgba(255,255,255,.035); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    padding: 8px 28px 26px; }
  .dossier h2 { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: rgba(255,255,255,.5); padding: 20px 0 6px; }
  .dossier dl { margin: 0; display: grid; grid-template-columns: 1fr; }
  .dossier dt { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255,255,255,.45); padding-top: 18px; }
  .dossier dd { margin: 5px 0 0; font-size: 16px; font-weight: 500; color: var(--paper); letter-spacing: -.01em;
    padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .dossier dd:last-of-type { border-bottom: 0; padding-bottom: 4px; }
  .dossier .conf { margin-top: 18px; font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.42); }

/* ══ DETAIL PAGE: kit on site ════════════════════════════════ */
  .kit { background: var(--off-white); padding: 104px 0; }
  .kit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center; gap: 20px; max-width: 1180px; margin: 0 auto; }
  .kitcard { position: relative; display: flex; flex-direction: column; border-radius: 22px; overflow: hidden;
    background: var(--ink); color: var(--paper); min-height: 420px;
    transition: transform 300ms cubic-bezier(.2,.8,.2,1), box-shadow 300ms ease; }
  .kitcard:hover { transform: translateY(-6px); box-shadow: 0 34px 70px rgba(11,11,15,.24); }
  .kitcard-glow { position: absolute; left: 50%; top: 16%; width: 300px; height: 300px; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(240,96,31,.28) 0%, transparent 68%);
    filter: blur(24px); pointer-events: none; }
  .kitcard-media { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; padding: 24px; }
  .kitcard-media img { max-height: 180px; width: auto; position: relative; z-index: 1;
    filter: drop-shadow(0 24px 32px rgba(0,0,0,.7)); }
  .kitcard-body { padding: 0 26px 28px; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; flex: 1; }
  .kitcard .qty { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
  .kitcard h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; color: var(--paper); }
  .kitcard p { font-size: 13.5px; line-height: 1.6; color: rgba(255,255,255,.62); margin-top: 4px; }
  .kitcard .rate { margin-top: auto; padding-top: 16px; font-size: 12px; font-weight: 700;
    letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }

/* ══ DETAIL PAGE: the test programme ═════════════════════════ */
  .prog { background: var(--paper); padding: 104px 0; }
  .prog-list { max-width: 900px; margin: 0 auto; counter-reset: step; }
  .pstep { display: grid; grid-template-columns: 62px 1fr; gap: 26px; padding: 28px 0;
    border-top: 1px solid var(--border); }
  .pstep:last-child { border-bottom: 1px solid var(--border); }
  .pstep .num { counter-increment: step; font-size: 12px; font-weight: 700; letter-spacing: .14em;
    color: var(--accent); padding-top: 5px; }
  .pstep .num::before { content: "0" counter(step); }
  .pstep h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
  .pstep p { margin-top: 10px; color: var(--grey-text); font-size: 15px; line-height: 1.7; max-width: 60ch; }

/* ══ DETAIL PAGE: gallery ════════════════════════════════════ */
  .gal { background: var(--ink); color: var(--paper); padding: 100px 0; position: relative; overflow: hidden; }
  .gal::before { content: ""; position: absolute; right: -6%; top: -24%; width: 46%; aspect-ratio: 1; border-radius: 50%;
    background: radial-gradient(circle, rgba(240,96,31,.16) 0%, transparent 68%); filter: blur(28px); pointer-events: none; }
  .gal > .container { position: relative; z-index: 1; }
  .gal .sec-head h2 { color: var(--paper); }
  .gal .sec-head .eyebrow { color: rgba(255,255,255,.55); }
  .gal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1240px; margin: 0 auto; }
  .gal-item { position: relative; border-radius: 16px; overflow: hidden; background: #0B0B0F;
    transition: transform 320ms cubic-bezier(.2,.8,.2,1); }
  .gal-item:hover { transform: translateY(-5px); }
  .gal-item img { width: 100%; height: 100%; object-fit: cover; }
  .gal-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 14px 13px;
    background: linear-gradient(to top, rgba(5,5,5,.88) 0%, transparent 100%);
    font-size: 11px; font-weight: 600; letter-spacing: .03em; color: rgba(255,255,255,.86); }
  .gal-item.w3 { grid-column: span 3; } .gal-item.w2 { grid-column: span 2; }
  .gal-item.w3 img { aspect-ratio: 3/2; } .gal-item.w2 img { aspect-ratio: 3/4; }
  .gal-note { max-width: 66ch; margin: 30px auto 0; text-align: center; font-size: 12.5px;
    line-height: 1.6; color: rgba(255,255,255,.45); }

/* ══ RELATED PROJECTS ════════════════════════════════════════ */
  .rel { background: var(--off-white); padding: 100px 0; }
  .rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1240px; margin: 0 auto; }
  .relcard { display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--border);
    border-radius: 18px; overflow: hidden;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease; }
  .relcard:hover { transform: translateY(-4px); box-shadow: 0 24px 54px rgba(11,11,15,.12); border-color: rgba(11,11,15,.16); }
  .relcard-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); }
  .relcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
  .relcard:hover .relcard-media img { transform: scale(1.05); }
  .relcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
  .relcard .region { font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
  .relcard h3 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
  .relcard p { font-size: 13px; line-height: 1.55; color: var(--grey-text); }
  .relcard .go { margin-top: auto; padding-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent);
    display: inline-flex; align-items: center; gap: 6px; }
  .relcard .go svg { width: 12px; height: 12px; transition: transform 220ms ease; }
  .relcard:hover .go svg { transform: translateX(3px); }

/* ══ COMMISSIONING CONVERGENCE ═══════════════════════════════
   The deck's "everything feeds one hub" animation, rebuilt with the
   commissioning services as the prongs instead of the site systems.
   Ported from components/flow.css. */
  .conv { background: var(--ink); color: var(--paper); padding: 104px 0; position: relative; overflow: hidden; }
  .conv::before { content: ""; position: absolute; left: 50%; top: 18%; width: 70%; aspect-ratio: 1; transform: translateX(-50%);
    border-radius: 50%; background: radial-gradient(circle, rgba(240,96,31,.14) 0%, transparent 66%);
    filter: blur(40px); pointer-events: none; }
  .conv > .container { position: relative; z-index: 1; }
  .conv .sec-head h2 { color: var(--paper); }
  .conv .sec-head .eyebrow { color: rgba(255,255,255,.55); }
  .conv .sec-head .lede { color: rgba(255,255,255,.62); }

  .flow { width: 100%; max-width: 1120px; margin: 4px auto 56px; }
  .flow svg { width: 100%; height: auto; display: block; overflow: visible; font-family: var(--font); }
  .flow .fl-pill { fill: rgba(255,255,255,.045); stroke: rgba(255,255,255,.13); stroke-width: 1; }
  .flow .fl-dot { fill: var(--accent); }
  .flow .fl-t { fill: #fff; font-size: 23px; font-weight: 600; letter-spacing: -.4px; }
  .flow .fl-s { fill: rgba(255,255,255,.5); font-size: 15px; font-weight: 500; }
  .flow .fl-conn { fill: none; stroke: rgba(240,96,31,.3); stroke-width: 1.5; }
  .flow .fl-hubdisc { fill: #0a0a0d; }
  .flow .fl-hubring { fill: none; stroke: var(--accent); stroke-width: 2; filter: drop-shadow(0 0 12px rgba(240,96,31,.6)); }
  .flow .fl-hubglow { fill: url(#fl-glow); animation: flhub 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .flow .fl-out { fill: rgba(240,96,31,.10); stroke: rgba(240,96,31,.55); stroke-width: 1.5; }
  .flow .fl-ot { fill: #fff; font-size: 25px; font-weight: 700; letter-spacing: -.5px; }
  .flow .fl-os { fill: rgba(255,255,255,.55); font-size: 15px; font-weight: 500; }
  .flow .fl-pulse { fill: #FFA24A; filter: drop-shadow(0 0 5px rgba(255,162,74,.9)); opacity: 0; }
  .flow .fl-p0 { offset-path: path('M370 62 C500 62 512 282 566 282');   animation: flpulse 3s linear infinite 0s; }
  .flow .fl-p1 { offset-path: path('M370 172 C500 172 512 282 566 282'); animation: flpulse 3s linear infinite .5s; }
  .flow .fl-p2 { offset-path: path('M370 282 C500 282 512 282 566 282'); animation: flpulse 3s linear infinite 1s; }
  .flow .fl-p3 { offset-path: path('M370 392 C500 392 512 282 566 282'); animation: flpulse 3s linear infinite 1.5s; }
  .flow .fl-p4 { offset-path: path('M370 502 C500 502 512 282 566 282'); animation: flpulse 3s linear infinite 2s; }
  .flow .fl-pout { offset-path: path('M690 282 L756 282'); animation: flpulse 2.4s linear infinite .6s; }
  @keyframes flhub { 0%,100% { opacity: .8; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
  @keyframes flpulse { 0% { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 86% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }


/* ══ SOURCED SCOPE LIST + PROVENANCE LINE ════════════════════
   The scope list is PowerLoad's own project record, verbatim. The .src line
   under any block says where its wording came from, so nothing on these pages
   reads as a claim we invented. */
  .scope-list { list-style: none; margin: 24px 0 20px; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px;
    background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .scope-list li { background: var(--paper); padding: 13px 16px; font-size: 13.5px; font-weight: 500;
    letter-spacing: -.005em; display: flex; align-items: center; gap: 10px; }
  .scope-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); flex: none; }
  /* an odd-numbered record would otherwise leave a dead cell at the end */
  .scope-list li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .show.rev .scope-list li { background: var(--off-white); }
  .src { margin-top: 6px; font-size: 12px; line-height: 1.55; color: var(--grey-text); font-style: italic; }

  /* a record with three figures should not sit in a four-column grid */
  .pj-case .stage-stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ══ SHARED SMALL BITS ═══════════════════════════════════════ */
  .pj-conf { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--grey-text);
    border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 15px; }
  .pj-conf svg { width: 13px; height: 13px; color: var(--accent); flex: none; }
  .chap-go { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600;
    color: var(--ink); border-bottom: 1.5px solid var(--accent); padding-bottom: 4px; }
  .chap-go svg { width: 14px; height: 14px; color: var(--accent); transition: transform 220ms ease; }
  .chap-go:hover svg { transform: translateX(4px); }

  @media (prefers-reduced-motion: reduce) {
    .pj-route, .pj-pin .pj-halo, .pj-pin .pj-ping, .pjcard.is-active::before { animation: none; }
    .flow .fl-pulse { animation: none !important; opacity: 0; }
    .flow .fl-hubglow { animation: none !important; }
  }

/* ---- responsive overrides MUST stay last in this file ------- */
  @media (max-width: 1080px) {
    .pj-wrap { grid-template-columns: 1fr; gap: 34px; }
    .pjglobe { max-width: 420px; }
    .gal-grid { grid-template-columns: repeat(4, 1fr); }
    .gal-item.w3 { grid-column: span 2; } .gal-item.w2 { grid-column: span 2; }
    .gal-item.w3 img, .gal-item.w2 img { aspect-ratio: 4/3; }
    .rel-grid { grid-template-columns: repeat(2, 1fr); max-width: 660px; }
    .kit-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 420px)); }
    .pj-stage .stage-grid { grid-template-columns: 1fr; gap: 30px; }
  }
  @media (max-width: 860px) {
    .chap { padding: 70px 0; }
    .chap-grid, .chap.rev .chap-grid { grid-template-columns: 1fr; gap: 32px; }
    .chap.rev .chap-media { order: 0; }
    .chap-media img { aspect-ratio: 3/2; }
    .srow { grid-template-columns: 1fr; gap: 8px; }
    .srow .val { text-align: left; }
    .srow .bar { height: 30px; }
    .dossier { padding: 4px 20px 20px; }
    .scope-list { grid-template-columns: 1fr; }
  }
  @media (max-width: 620px) {
    .gal-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .gal-item.w3, .gal-item.w2 { grid-column: span 1; }
    .rel-grid { grid-template-columns: 1fr; max-width: 360px; }
    .pjcard { grid-template-columns: 32px 1fr auto; gap: 12px; padding: 14px 16px; }
  }

/* Five related projects on the Sweden page: one row on desktop. */
.rel-grid.five { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .rel-grid.five { grid-template-columns: repeat(2, 1fr); max-width: 660px; } }
@media (max-width: 620px) { .rel-grid.five { grid-template-columns: 1fr; max-width: 360px; } }
