/* ===========================================================
   ASME Integrated Solutions — portfolio.css
   Case Studies: /projects and /case-studies/<slug> only (loaded after styles.css).
   Built on the site tokens in styles.css :root — restyle here, never per page.
   Grids use minmax(0,1fr) throughout: a bare 1fr lets long labels widen a track.
   =========================================================== */

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.pf-ic{width:18px;height:18px;flex:none}
:root{--pf-top:72px;--pf-r:6px;--pf-hair:rgba(20,25,30,.10)}
/* styles.css resets ul only — every ordered list here is a layout, not a numbered list */
main.cs ol,[data-portfolio] ol{list-style:none;padding-left:0}

/* ================================================================
   /projects — hero stats rail (inside the shared .dhero)
   ================================================================ */
.pf-stats{display:grid;grid-template-columns:repeat(4,auto);justify-content:start;max-width:680px;margin-top:36px;
  border-top:1px solid rgba(255,255,255,.14)}
.pf-stats div{padding:18px 28px 0 0}
.pf-stats div + div{padding-left:28px;border-left:1px solid rgba(255,255,255,.14)}
.pf-stats b{display:block;white-space:nowrap;font-family:var(--font-head);font-weight:700;font-size:clamp(1.5rem,2.6vw,2.1rem);
  color:#fff;line-height:1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.pf-stats span{display:block;margin-top:8px;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:#93a0ab}
@media(max-width:640px){
  .pf-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf-stats div:nth-child(3){padding-left:0;border-left:0}
  .pf-stats div:nth-child(n+3){margin-top:14px}
}

/* ================================================================
   Delivery record — map + timeline
   ================================================================ */
.pf-record{padding:88px 0;background:#fff}
.pf-rec{display:grid;grid-template-columns:minmax(0,1fr);gap:64px}
.pf-rec__map{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:56px;align-items:center}
.pf-map{max-width:640px}
.pf-map__svg{width:100%;height:auto;display:block;overflow:visible}
.pf-map__land{fill:var(--bg-soft);stroke:#c9d3cd;stroke-width:2;stroke-linejoin:round}
.pf-map__dots{fill:url(#pfdots);stroke:none}
#pfdots circle{fill:#d5ddd8}
.pf-map__nile{fill:none;stroke:#9fc6d8;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}
.pf-map__canal{fill:none;stroke:#9fc6d8;stroke-width:2.5;stroke-dasharray:6 5}
.pf-map__sea{font-family:var(--font-head);font-size:19px;letter-spacing:.35em;fill:#a7b3bc}
.pf-map__pt{cursor:pointer;outline:none}
.pf-map__halo{fill:rgba(141,198,63,.16);transition:fill .25s}
.pf-map__dot{fill:var(--green-2);stroke:#fff;stroke-width:3;transition:fill .25s,stroke-width .25s}
.pf-map__n{font-family:var(--font-head);font-weight:700;font-size:18px;fill:#fff;text-anchor:middle;pointer-events:none}
.pf-map__pt:hover .pf-map__dot,.pf-map__pt.is-hover .pf-map__dot,.pf-map__pt:focus-visible .pf-map__dot,
.pf-map__pt.is-on .pf-map__dot{fill:var(--ink);stroke-width:4}
.pf-map__pt.is-on .pf-map__halo,.pf-map__pt.is-hover .pf-map__halo{fill:rgba(141,198,63,.32)}
.pf-regs__h{font-family:var(--font-head);font-weight:600;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--green-dark);margin-bottom:12px}
.pf-regs ul{border-top:1px solid var(--line)}
.pf-reg{border-bottom:1px solid var(--line)}
.pf-reg__b{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) 16px;gap:10px;align-items:center;
  padding:10px 2px;text-align:left;font-size:.86rem;color:var(--charcoal)}
.pf-reg__b b{font-family:var(--font-head);font-weight:700;font-size:1.05rem;color:var(--green-dark);font-variant-numeric:tabular-nums}
.pf-reg__b svg{width:15px;height:15px;color:var(--muted);transition:transform .25s var(--ease)}
.pf-reg.is-hover .pf-reg__b,.pf-reg__b:hover{color:var(--ink)}
.pf-reg.is-on .pf-reg__b svg{transform:rotate(90deg);color:var(--green-dark)}
.pf-reg__ps{display:none;padding:0 0 12px 44px}
.pf-reg.is-on .pf-reg__ps{display:block}
.pf-reg__ps a{display:flex;gap:8px;padding:4px 0;font-size:.82rem;line-height:1.4;color:var(--slate)}
.pf-reg__ps a:hover{color:var(--green-dark)}
.pf-reg__ps i{font-style:normal;font-family:var(--font-head);font-weight:600;color:var(--green-2);flex:none;width:30px}
.pf-regs__note{margin-top:14px;font-size:.76rem;line-height:1.55;color:var(--muted)}

.pf-tl{border-top:1px solid var(--line)}
.pf-tl__axis,.pf-tl__row{display:grid;grid-template-columns:minmax(0,20rem) minmax(0,1fr);gap:18px;align-items:center}
.pf-tl__axis{position:sticky;top:var(--pf-top);background:#fff;z-index:1;padding:8px 0 6px;border-bottom:1px solid var(--line)}
.pf-tl__years{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));font-family:var(--font-head);font-size:.66rem;
  color:var(--muted);letter-spacing:.02em}
.pf-tl__years span{border-left:1px solid var(--line);padding-left:3px;line-height:1}
.pf-tl__lane{padding:10px 0 6px;border-bottom:1px solid var(--line)}
.pf-tl__sec{display:flex;gap:8px;align-items:baseline;font-family:var(--font-head);font-weight:600;font-size:.72rem;
  letter-spacing:.08em;text-transform:uppercase;color:var(--ink);margin-bottom:4px}
.pf-tl__sec b{color:var(--green-2)}
.pf-tl__sec:hover{color:var(--green-dark)}
.pf-tl__row{padding:3px 0;border-radius:4px}
.pf-tl__lab{display:flex;gap:8px;min-width:0;font-size:.8rem;color:var(--slate);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pf-tl__lab i{font-style:normal;font-family:var(--font-head);font-weight:600;font-size:.72rem;color:var(--muted);flex:none;width:30px}
.pf-tl__track{position:relative;height:16px;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100%/17 - 1px),var(--line) calc(100%/17 - 1px),var(--line) calc(100%/17))}
.pf-tl__bar{position:absolute;top:3px;bottom:3px;min-width:8px;background:var(--green-2);border-radius:2px;transition:background .2s}
.pf-tl__bar em{position:absolute;right:calc(100% + 6px);top:50%;transform:translateY(-50%);font-style:normal;
  font-family:var(--font-head);font-size:.66rem;font-weight:600;color:var(--green-dark);white-space:nowrap;opacity:0;transition:opacity .2s}
.pf-tl__row:hover .pf-tl__bar,.pf-tl__row:focus-visible .pf-tl__bar{background:var(--ink)}
.pf-tl__row:hover .pf-tl__bar em,.pf-tl__row:focus-visible .pf-tl__bar em{opacity:1}
.pf-tl__row:hover .pf-tl__lab{color:var(--ink)}

@media(max-width:900px){
  .pf-rec__map{grid-template-columns:minmax(0,1fr);gap:28px}
  .pf-tl__axis,.pf-tl__row{grid-template-columns:minmax(0,14rem) minmax(0,1fr)}
}
@media(max-width:640px){
  .pf-record{padding:64px 0}
  .pf-tl__axis,.pf-tl__row{grid-template-columns:minmax(0,1fr)}
  .pf-tl__axis .pf-tl__lab{display:none}
  .pf-tl__row{gap:4px;padding:6px 0}
  .pf-tl__lab{white-space:normal}
}

/* ================================================================
   Sector plates — the portfolio's filter
   ================================================================ */
.pf-index{padding:88px 0 96px;background:var(--bg-soft)}
.pf-index .head{margin-bottom:34px}
.pf-plates{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:0;background:#fff;
  border:1px solid var(--line);border-radius:var(--pf-r);overflow:hidden}
.pf-plate{position:relative;display:flex;flex-direction:column;gap:6px;min-width:0;text-align:left;
  padding:20px 18px 18px;border-left:1px solid var(--line);background:#fff;color:var(--charcoal);
  transition:background .25s var(--ease),color .25s var(--ease)}
.pf-plate:first-child{border-left:0}
.pf-plate::after{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--green);transform:scaleX(0);
  transform-origin:left;transition:transform .3s var(--ease)}
.pf-plate:hover{background:var(--green-soft)}
.pf-plate:hover::after,.pf-plate.is-on::after{transform:none}
.pf-plate.is-on{background:var(--ink);color:#cfd6dd}
.pf-plate__no{font-family:var(--font-head);font-weight:700;font-size:1.9rem;line-height:1;letter-spacing:-.02em;
  color:transparent;-webkit-text-stroke:1.2px var(--green-2)}
.pf-plate.is-on .pf-plate__no{-webkit-text-stroke-color:var(--green)}
.pf-plate__name{font-family:var(--font-head);font-weight:600;font-size:.9rem;line-height:1.3;color:var(--ink);margin-top:6px}
.pf-plate.is-on .pf-plate__name{color:#fff}
.pf-plate__desc{font-size:.78rem;line-height:1.45;color:var(--slate)}
.pf-plate.is-on .pf-plate__desc{color:#9aa6b1}
.pf-plate__meta{margin-top:auto;padding-top:10px;font-size:.74rem;color:var(--muted)}
.pf-plate__meta em{font-style:normal;font-family:var(--font-head);font-weight:700;font-size:.95rem;color:var(--green-dark)}
.pf-plate.is-on .pf-plate__meta em{color:var(--green)}
.pf-plate__ic{position:absolute;top:18px;right:16px;color:var(--green-2);opacity:.75}
.pf-plate__ic svg{width:22px;height:22px}
.pf-plate:focus-visible{outline:2px solid var(--green);outline-offset:-2px}
.pf-live{margin:16px 0 0;font-size:.8rem;color:var(--muted)}
@media(max-width:1150px){
  .pf-plates{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pf-plate:nth-child(3n+1){border-left:0}
  .pf-plate:nth-child(n+4){border-top:1px solid var(--line)}
}
@media(max-width:640px){
  .pf-index{padding:64px 0 72px}
  .pf-plates{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf-plate{padding:16px 14px}
  .pf-plate:nth-child(3n+1){border-left:1px solid var(--line)}
  .pf-plate:nth-child(odd){border-left:0}
  .pf-plate:nth-child(n+3){border-top:1px solid var(--line)}
  .pf-plate__ic{display:none}
  .pf-plate__no{font-size:1.5rem}
}

/* ================================================================
   Sector groups + editorial grid
   ================================================================ */
.pf-groups{margin-top:56px}
.pf-group + .pf-group{margin-top:84px}
.pf-group.is-off{display:none}
.pf-gh{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px 28px;align-items:start;
  padding-bottom:22px;margin-bottom:26px;border-bottom:1px solid var(--pf-hair)}
.pf-gh__no{font-family:var(--font-head);font-weight:700;font-size:clamp(3rem,6vw,4.6rem);line-height:.82;letter-spacing:-.04em;
  color:transparent;-webkit-text-stroke:1.5px var(--green-2)}
.pf-gh__k{font-family:var(--font-head);font-weight:600;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--green-dark)}
.pf-gh h3{font-size:clamp(1.4rem,2.4vw,1.9rem);margin:6px 0 8px;letter-spacing:-.01em}
.pf-gh p{color:var(--slate);max-width:62ch;font-size:.96rem;line-height:1.65}
.pf-gh__meta{display:flex;gap:28px;text-align:right}
.pf-gh__meta dt{font-family:var(--font-head);font-weight:700;font-size:1.5rem;color:var(--ink);line-height:1;font-variant-numeric:tabular-nums}
.pf-gh__meta dd{font-size:.72rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-top:6px}
.pf-gh__sys{grid-column:2 / -1;display:flex;flex-wrap:wrap;gap:6px 14px}
.pf-gh__sys li{font-size:.78rem;color:var(--slate);display:flex;align-items:center;gap:7px}
.pf-gh__sys li::before{content:"";width:5px;height:5px;background:var(--green);border-radius:50%}
@media(max-width:780px){
  .pf-gh{grid-template-columns:minmax(0,1fr)}
  .pf-gh__no{font-size:2.6rem}
  .pf-gh__meta{text-align:left}
  .pf-gh__sys{grid-column:1}
}

.pf-grid{display:grid;gap:24px}
.pf-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.pf-grid--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.pfc--feature + .pf-grid{margin-top:24px}
.pfc--half .pfc__media{aspect-ratio:16/9}
@media(max-width:1024px){ .pf-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:680px){ .pf-grid--3,.pf-grid--2{grid-template-columns:minmax(0,1fr)} }

/* ---------- the project card ---------- */
.pfc{position:relative;display:flex;flex-direction:column;min-width:0;background:#fff;border:1px solid var(--line);
  border-radius:var(--pf-r);overflow:hidden;transition:box-shadow .3s var(--ease),transform .3s var(--ease),border-color .3s}
.pfc:hover{box-shadow:0 18px 44px rgba(20,25,30,.10);transform:translateY(-3px);border-color:transparent}
.pfc__media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:#0e1317}
.pfc__media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--ease)}
.pfc:hover .pfc__media img{transform:scale(1.045)}
.pfc__no{position:absolute;left:14px;top:14px;z-index:2;font-family:var(--font-head);font-weight:700;font-size:.72rem;
  letter-spacing:.08em;color:#fff;background:rgba(16,21,26,.72);padding:5px 9px;border-radius:3px}
.pfc__tag{position:absolute;right:14px;top:14px;z-index:2;font-family:var(--font-head);font-weight:600;font-size:.66rem;
  letter-spacing:.06em;text-transform:uppercase;color:var(--ink);background:var(--green);padding:5px 9px;border-radius:3px}
.pfc__rep{position:absolute;left:14px;bottom:12px;z-index:2;font-size:.66rem;letter-spacing:.04em;color:#fff;
  background:rgba(16,21,26,.62);padding:4px 8px;border-radius:3px;pointer-events:none}
/* spec plate: fallback when a project has no imagery at all, the card leads with its key quantity */
.pfc__media--spec{background:
  linear-gradient(rgba(141,198,63,.07) 1px,transparent 1px) 0 0/24px 24px,
  linear-gradient(90deg,rgba(141,198,63,.07) 1px,transparent 1px) 0 0/24px 24px,
  linear-gradient(135deg,#141b21,#0e1317 70%)}
.pfc__spec{position:absolute;left:20px;right:70px;bottom:20px;color:#fff}
.pfc__spec b{display:block;font-family:var(--font-head);font-weight:700;font-size:clamp(2rem,3.4vw,2.7rem);line-height:1;
  letter-spacing:-.02em;color:var(--green);font-variant-numeric:tabular-nums}
.pfc__spec i{display:block;margin-top:8px;font-style:normal;font-size:.8rem;letter-spacing:.06em;text-transform:uppercase;color:#a9b5bf}
.pfc__specic{position:absolute;right:20px;bottom:20px;width:44px;height:44px;display:grid;place-items:center;
  border:1px solid rgba(141,198,63,.35);border-radius:50%;color:var(--green)}
.pfc__specic svg{width:22px;height:22px}
.pfc__body{display:flex;flex-direction:column;flex:1;padding:20px 22px 22px}
.pfc__meta{display:flex;align-items:center;gap:7px;font-size:.78rem;color:var(--muted);min-width:0}
.pfc__meta svg{width:15px;height:15px;color:var(--green-2)}
.pfc__meta span:first-of-type{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.pfc__yr{margin-left:auto;flex:none;font-family:var(--font-head);font-weight:600;color:var(--slate)}
.pfc__t{font-size:1.08rem;line-height:1.3;margin:10px 0 0}
.pfc__t a:hover{color:var(--green-dark)}
.pfc__sum{margin-top:10px;color:var(--slate);font-size:.95rem;line-height:1.6}
.pfc__kpi{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:16px 0 0;border-top:1px solid var(--line)}
.pfc__kpi div{padding:12px 12px 0 0}
.pfc__kpi div + div{padding-left:14px;border-left:1px solid var(--line)}
.pfc__kpi dt{font-family:var(--font-head);font-weight:700;font-size:1.32rem;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.pfc__kpi dd{margin-top:6px;font-size:.74rem;line-height:1.35;color:var(--slate)}
.pfc__sys{display:flex;flex-wrap:wrap;gap:6px;margin-top:16px}
.pfc__sys li{font-size:.72rem;line-height:1;padding:6px 9px;border:1px solid var(--line);border-radius:3px;color:var(--slate)}
.pfc__cta{display:inline-flex;align-items:center;gap:8px;margin-top:auto;padding-top:18px;font-family:var(--font-head);
  font-weight:600;font-size:.82rem;color:var(--green-dark)}
.pfc__cta svg{width:17px;height:17px;transition:transform .3s var(--ease)}
.pfc:hover .pfc__cta svg{transform:translateX(4px)}
/* the whole card is the link target, without nesting interactive elements */
.pfc__t a::after{content:"";position:absolute;inset:0;z-index:1}
.pfc__cta{position:relative;z-index:2}

/* feature card — the flagship that opens a sector, photo and copy side by side */
.pfc--feature{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}
.pfc--feature .pfc__media{aspect-ratio:auto;min-height:380px}
.pfc--feature .pfc__body{padding:30px 34px 32px}
.pfc--feature .pfc__t{font-size:clamp(1.3rem,2vw,1.6rem)}
.pfc--feature .pfc__kpi dt{font-size:1.7rem}
.pfc--feature .pfc__spec b{font-size:clamp(2.6rem,5vw,3.8rem)}
@media(max-width:900px){
  .pfc--feature{grid-template-columns:minmax(0,1fr)}
  .pfc--feature .pfc__media{min-height:0;aspect-ratio:16/10}
  .pfc--feature .pfc__body{padding:22px}
}

/* ================================================================
   CASE STUDY PAGE
   ================================================================ */
.cs-hero .dhero__in{padding-bottom:96px}
.cs-hero h1{max-width:18ch}
.cs-hero__loc{display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px;margin-top:16px;color:#dbe3ea;
  font-family:var(--font-head);font-weight:500;font-size:.9rem}
.cs-hero__loc > svg{width:18px;height:18px;color:var(--green);margin-right:-10px}
.cs-hero__yr{display:inline-flex;align-items:center;gap:8px;color:#b9c4ce}
.cs-hero__yr svg{width:17px;height:17px;color:var(--green)}
.cs-hero__pf{font-family:var(--font-head);font-weight:600;font-size:.66rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--ink);background:var(--green);padding:5px 9px;border-radius:3px}
.cs-hero__note{position:absolute;right:20px;bottom:68px;z-index:2;font-size:.7rem;letter-spacing:.04em;color:#c9d2da;
  background:rgba(16,21,26,.62);padding:5px 10px;border-radius:3px}
.cs-hero .dhero__lead{max-width:52ch;font-size:1.08rem;color:#d4dce3}

/* facts strip: the five meta cards of the client-approved Aug 2026 layout, refined into one bar */
.cs-facts-wrap{position:relative;z-index:4}
/* isometric heroes on tablets/phones: the drawing follows the text, unveiled */
@media(max-width:1024px){
  .cs-hero--iso{display:flex;flex-direction:column}
  .cs-hero--iso::before{display:none}
  .cs-hero--iso .dhero__in{order:1;padding-bottom:8px}
  .cs-hero--iso .dhero__fig{order:2;position:relative;inset:auto;width:100%;aspect-ratio:16 / 10;margin-bottom:64px}
  .cs-hero--iso .dhero__fig::after{display:none}
  .cs-hero--iso .cs-hero__note{bottom:76px}
}
.cs-facts{display:grid;grid-template-columns:repeat(var(--fc,5),minmax(0,1fr));margin-top:-52px;background:#fff;
  border:1px solid var(--line);border-top:3px solid var(--green);border-radius:var(--pf-r);box-shadow:0 22px 50px rgba(20,25,30,.12)}
.cs-facts--4{--fc:4}
.cs-facts--3{--fc:3}
.cs-facts div{padding:20px 20px 22px;min-width:0}
.cs-facts div + div{border-left:1px solid var(--line)}
.cs-facts dt{font-family:var(--font-head);font-weight:600;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--green-dark)}
.cs-facts dd{margin-top:7px;font-size:.88rem;line-height:1.45;color:var(--ink);overflow-wrap:break-word}
@media(max-width:1024px){
  .cs-hero__note{bottom:46px}
  .cs-facts{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:-32px}
  .cs-facts div + div{border-left:0}
  .cs-facts div:nth-child(even){border-left:1px solid var(--line)}
  .cs-facts div:nth-child(n+3){border-top:1px solid var(--line)}
  .cs-facts div:last-child:nth-child(odd){grid-column:1 / -1}
}
@media(max-width:520px){
  .cs-facts{grid-template-columns:minmax(0,1fr)}
  .cs-facts div:nth-child(even){border-left:0}
  .cs-facts div + div{border-top:1px solid var(--line)}
}

/* sticky in-page navigation */
.cs-nav{position:sticky;top:var(--pf-top);z-index:30;margin-top:34px;background:rgba(255,255,255,.97);
  border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.cs-nav ul{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none}
.cs-nav ul::-webkit-scrollbar{display:none}
.cs-nav a{display:block;white-space:nowrap;padding:14px 14px;font-family:var(--font-head);font-weight:500;font-size:.8rem;
  color:var(--slate);border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
.cs-nav a:hover{color:var(--ink)}
.cs-nav a.is-on{color:var(--green-dark);border-bottom-color:var(--green)}

/* sections */
.cs-sec{padding:84px 0;scroll-margin-top:calc(var(--pf-top) + 60px)}
.cs-sec--soft{background:var(--bg-soft)}
.cs-sec--dark{background:var(--bg-dark);color:#c3ccd5}
.cs-h{margin-bottom:34px}
.cs-h__no{display:inline-block;margin-right:12px;padding-right:12px;border-right:1px solid var(--line);font-family:var(--font-head);
  font-weight:700;font-size:.78rem;color:var(--green-2);letter-spacing:.06em;line-height:1}
.cs-sec--dark .cs-h__no{border-right-color:rgba(255,255,255,.18)}
.cs-h__k{font-family:var(--font-head);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--green-dark)}
.cs-h h2{font-size:clamp(1.6rem,3vw,2.3rem);margin-top:10px;letter-spacing:-.015em}
.cs-sec--dark .cs-h h2{color:#fff}
.cs-sec--dark .cs-h__k{color:var(--green)}
.cs-stand{font-family:var(--font-head);font-weight:500;font-size:clamp(1.08rem,1.6vw,1.25rem);line-height:1.6;color:var(--ink);max-width:62ch}
.cs-stand--w{max-width:78ch;margin-bottom:38px}
.cs-sec--dark .cs-stand{color:#e6ecf1}
.cs-p{margin-top:16px;color:var(--slate);line-height:1.8;max-width:66ch}
.cs-note{margin-top:18px;font-size:.8rem;color:var(--muted)}
.cs-sec--dark .cs-note{color:#8a97a3}
.cs-sub{font-family:var(--font-head);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-dark);margin-bottom:14px}
.cs-sec--dark .cs-sub{color:var(--green)}

/* key metrics */
.cs-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line)}
.cs-metric{padding:26px 22px 26px 0;border-bottom:1px solid var(--line);min-width:0}
.cs-metric:not(:nth-child(4n+1)){padding-left:22px;border-left:1px solid var(--line)}
.cs-metric dt{font-family:var(--font-head);font-weight:700;font-size:clamp(1.9rem,3.4vw,2.7rem);line-height:1;
  letter-spacing:-.02em;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-metric:nth-child(-n+4) dt{color:var(--green-dark)}
.cs-metric dd{margin-top:10px;font-size:.84rem;line-height:1.45;color:var(--slate)}
@media(max-width:900px){
  .cs-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-metric:not(:nth-child(4n+1)){padding-left:0;border-left:0}
  .cs-metric:nth-child(even){padding-left:20px;border-left:1px solid var(--line)}
  .cs-metric dt{font-size:clamp(1.5rem,6.5vw,2rem)}
}

/* overview + project file */
.cs-ov{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:64px;align-items:start}
.cs-file{background:#fff;border:1px solid var(--line);border-radius:var(--pf-r);padding:26px 26px 10px;
  position:sticky;top:calc(var(--pf-top) + 70px)}
.cs-file__h{font-family:var(--font-head);font-weight:600;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--green-dark);padding-bottom:12px;border-bottom:2px solid var(--green)}
.cs-file div{padding:12px 0;border-bottom:1px solid var(--line)}
.cs-file div:last-child{border-bottom:0}
.cs-file dt{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cs-file dd{margin-top:4px;font-size:.9rem;line-height:1.5;color:var(--ink)}
@media(max-width:1024px){ .cs-ov{grid-template-columns:minmax(0,1fr);gap:40px} .cs-file{position:static} }

/* challenge */
.cs-ch{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:56px;align-items:start}
.cs-ch__lead{font-size:1.04rem;line-height:1.8;color:#c9d2da}
.cs-ch__list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border-top:1px solid rgba(255,255,255,.12)}
.cs-ch__list li{display:flex;gap:14px;padding:16px 18px 16px 0;border-bottom:1px solid rgba(255,255,255,.12);min-width:0}
.cs-ch__list li:nth-child(even){padding-left:18px;border-left:1px solid rgba(255,255,255,.12)}
.cs-ch__list b{font-family:var(--font-head);font-weight:600;font-size:.78rem;color:var(--green);padding-top:2px;flex:none}
.cs-ch__list span{font-size:.92rem;line-height:1.55;color:#e3e9ee}
@media(max-width:1024px){ .cs-ch{grid-template-columns:minmax(0,1fr);gap:28px} }
@media(max-width:600px){
  .cs-ch__list{grid-template-columns:minmax(0,1fr)}
  .cs-ch__list li:nth-child(even){padding-left:0;border-left:0}
}

/* ================================================================
   Diagram blocks
   ================================================================ */
.dg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.dg-grid--extra{margin-top:28px}
/* equipment & products: the catalogue's manufacturer photos, white plates on the soft section */
.cs-pr{margin-top:56px}
.cs-pr__h{display:flex;align-items:baseline;gap:14px;margin-bottom:18px}
.cs-pr__h .cs-sub{margin:0}
.cs-pr__n{font-size:.8rem;color:var(--muted)}
/* groups flow side by side: a three-item system sits next to the next one instead of
   leaving a row of white space; a long system wraps inside its own block */
.cs-pr__gs{display:flex;flex-wrap:wrap;gap:28px 40px}
.cs-pr__grp{max-width:100%}
.cs-pr__grp[hidden]{display:none}
.cs-pr__g{display:flex;flex-wrap:wrap;gap:12px}
.cs-pr__g li{display:flex;flex-direction:column;width:142px;min-width:0;background:#fff;border:1px solid var(--line);
  border-radius:var(--pf-r);padding:14px 12px 13px}
.cs-pr__gh{display:flex;align-items:baseline;gap:10px;margin:0 0 12px;font-family:var(--font-head);font-weight:600;
  font-size:.92rem;color:var(--ink)}
.cs-pr__gh b{font-size:.72rem;letter-spacing:.08em;color:var(--green-2)}
.cs-pr__gh span{font-family:var(--font-body,inherit);font-weight:400;font-size:.78rem;color:var(--muted)}
.cs-pr__im{display:flex;align-items:center;justify-content:center;height:92px}
.cs-pr__im img{display:block;width:auto;height:auto;max-width:100%;max-height:92px}
.cs-pr__l{margin-top:10px;font-size:.78rem;line-height:1.35;color:var(--slate);text-align:center}
.cs-pr__more{margin-top:18px}
@media(max-width:560px){ .cs-pr__grp{flex:1 1 100%} .cs-pr__g li{width:calc(50% - 6px)} }
.dg{margin:0;min-width:0;background:#fff;border:1px solid var(--line);border-radius:var(--pf-r);padding:26px 26px 24px}
.dg--full{grid-column:1 / -1}
.dg__t{font-family:var(--font-head);font-weight:600;font-size:.95rem;color:var(--ink);margin-bottom:18px;
  padding-bottom:12px;border-bottom:1px solid var(--line)}
.dg-note{margin-top:14px;font-size:.78rem;line-height:1.55;color:var(--muted)}
.dg-total{font-family:var(--font-head);font-weight:600;font-size:.8rem;color:var(--green-dark);margin:-6px 0 14px}
@media(max-width:860px){ .dg-grid{grid-template-columns:minmax(0,1fr)} .dg{padding:20px 18px} }

/* flow — a connected chain */
.dg-flow{display:grid;grid-template-columns:repeat(var(--fn,6),minmax(0,1fr))}
.dg-flow--3{--fn:3}.dg-flow--4{--fn:4}.dg-flow--5{--fn:5}.dg-flow--6{--fn:6}
.dg-flow li{position:relative;padding:16px 14px 0 0;min-width:0}
.dg-flow li::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:var(--green-2)}
.dg-flow li::after{content:"";position:absolute;left:-1px;top:-5px;width:12px;height:12px;border-radius:50%;background:#fff;border:2px solid var(--green-2)}
.dg-flow li:last-child::before{right:auto;width:12px}
.dg-flow b{display:block;font-family:var(--font-head);font-weight:700;font-size:1.5rem;line-height:1.05;color:var(--ink);
  font-variant-numeric:tabular-nums;margin-top:6px}
.dg-flow span{display:block;margin-top:6px;font-family:var(--font-head);font-weight:600;font-size:.84rem;line-height:1.3;color:var(--charcoal)}
.dg-flow i{display:block;margin-top:4px;font-style:normal;font-size:.76rem;line-height:1.4;color:var(--muted)}
@media(max-width:860px){
  .dg-flow{grid-template-columns:minmax(0,1fr)}
  .dg-flow li{padding:0 0 18px 28px}
  .dg-flow li::before{left:5px;right:auto;top:6px;bottom:0;width:2px;height:auto}
  .dg-flow li:last-child::before{display:none}
  .dg-flow li::after{left:0;top:2px}
  .dg-flow b{margin-top:0}
}

/* layers */
.dg-layers{display:grid;grid-template-columns:repeat(var(--ln,3),minmax(0,1fr));gap:16px}
.dg-layers--2{--ln:2}.dg-layers--3{--ln:3}.dg-layers--4{--ln:4}
.dg-layer{position:relative;padding:20px 18px 18px;border:1px solid var(--line);border-left:3px solid var(--green);border-radius:4px;background:var(--bg-soft)}
.dg-layer__code{font-family:var(--font-head);font-weight:700;font-size:.72rem;letter-spacing:.1em;color:var(--green-dark)}
.dg-layer h4{font-size:1rem;margin:6px 0 8px}
.dg-layer p{font-size:.86rem;line-height:1.6;color:var(--slate)}
.dg-layer b{display:block;margin-top:12px;font-family:var(--font-head);font-weight:600;font-size:.8rem;color:var(--ink)}
@media(max-width:900px){ .dg-layers{grid-template-columns:minmax(0,1fr)} }

/* bars */
.dg-bars li{display:grid;grid-template-columns:minmax(0,11rem) minmax(0,1fr) 4.5rem;gap:12px;align-items:center;padding:6px 0}
.dg-bars__l{font-size:.82rem;color:var(--charcoal);line-height:1.35}
.dg-bars__t{height:10px;background:var(--bg-soft);border-radius:2px;overflow:hidden}
.dg-bars__t span{display:block;height:100%;background:var(--green-2);border-radius:2px}
.dg-bars li:first-child .dg-bars__t span{background:var(--green-dark)}
.dg-bars b{font-family:var(--font-head);font-weight:600;font-size:.86rem;text-align:right;color:var(--ink);font-variant-numeric:tabular-nums}
@media(max-width:480px){ .dg-bars li{grid-template-columns:minmax(0,1fr) 4rem} .dg-bars__t{grid-column:1 / -1;grid-row:2} }

/* mix — one proportional bar */
.dg-mix{display:flex;height:22px;border-radius:3px;overflow:hidden;gap:2px}
.dg-mix__s{display:block;min-width:4px}
.dg-mix__s--0{background:var(--green-dark)}
.dg-mix__s--1{background:var(--green-2)}
.dg-mix__s--2{background:var(--green-light)}
.dg-mix__s--3{background:#3a454f}
.dg-mix__leg{margin-top:14px}
.dg-mix__leg li{display:grid;grid-template-columns:12px minmax(0,1fr) auto 3.4rem;gap:10px;align-items:center;padding:6px 0;
  border-bottom:1px solid var(--line);font-size:.84rem;color:var(--charcoal)}
.dg-mix__leg li:last-child{border-bottom:0}
.dg-mix__k{width:12px;height:12px;border-radius:2px}
.dg-mix__leg b{font-family:var(--font-head);font-weight:600;font-variant-numeric:tabular-nums}
.dg-mix__leg i{font-style:normal;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}

/* equation */
.dg-eq{display:flex;flex-wrap:wrap;align-items:stretch;gap:12px}
.dg-eq__t{flex:1 1 150px;min-width:0;padding:16px 16px;border:1px solid var(--line);border-radius:4px;background:var(--bg-soft)}
.dg-eq__t b{display:block;font-family:var(--font-head);font-weight:700;font-size:1.45rem;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
.dg-eq__t i{display:block;margin-top:6px;font-style:normal;font-size:.8rem;line-height:1.45;color:var(--slate)}
.dg-eq__t--r{background:var(--ink);border-color:var(--ink);flex-basis:220px}
.dg-eq__t--r b{color:var(--green);font-size:1.8rem}
.dg-eq__t--r i{color:#b8c3cc}
.dg-eq__op{align-self:center;font-family:var(--font-head);font-weight:600;font-size:1.3rem;color:var(--green-2)}
@media(max-width:600px){ .dg-eq__t{flex-basis:100%} .dg-eq__op{width:100%;text-align:center;line-height:1} }

/* table */
.dg-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
.dg-table:focus-visible{outline:2px solid var(--green);outline-offset:2px}
.dg-table table{width:100%;border-collapse:collapse;font-size:.84rem;min-width:520px}
.dg-table th,.dg-table td{padding:10px 12px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line)}
.dg-table thead th{font-family:var(--font-head);font-weight:600;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;
  color:var(--green-dark);border-bottom:2px solid var(--green);white-space:nowrap}
.dg-table tbody th{font-weight:600;color:var(--ink)}
.dg-table td{color:var(--slate);font-variant-numeric:tabular-nums}
.dg-table tfoot td{font-family:var(--font-head);font-weight:600;color:var(--ink);border-bottom:0;background:var(--bg-soft)}
.dg-dot{color:var(--green-2);font-size:1rem}

/* chips — labelled figures */
.dg-chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
.dg-chips li{background:#fff;padding:16px 16px 14px;min-width:0}
.dg-chips b{display:block;font-family:var(--font-head);font-weight:700;font-size:1.35rem;line-height:1.1;color:var(--ink);font-variant-numeric:tabular-nums}
.dg-chips span{display:block;margin-top:6px;font-size:.78rem;line-height:1.4;color:var(--slate)}

/* ducts — cross-sections */
.dg-ducts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.dg-duct{display:flex;gap:16px;align-items:flex-start;min-width:0}
.dg-duct svg{width:96px;height:96px;flex:none}
.dg-duct__main{fill:#f6c9a3;stroke:#e07a2d;stroke-width:2}
.dg-duct__in{fill:#fff7f0;stroke:#e9a36b;stroke-width:1;stroke-dasharray:2 2}
.dg-duct__sub{fill:#fff;stroke:var(--green-2);stroke-width:1.6}
.dg-duct__rope{fill:var(--ink)}
.dg-duct h4{font-size:.92rem;line-height:1.3}
.dg-duct p{margin-top:4px;font-size:.78rem;line-height:1.45;color:var(--slate)}
.dg-duct b{display:block;margin-top:8px;font-family:var(--font-head);font-weight:700;font-size:1.2rem;color:var(--ink)}
.dg-duct i{display:block;font-style:normal;font-size:.76rem;color:var(--green-dark)}
@media(max-width:900px){ .dg-ducts{grid-template-columns:minmax(0,1fr)} }

/* route */
.dg-route{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);align-items:center}
.dg-route:not(.has-branch){grid-template-columns:minmax(0,1fr)}
.dg-route ol{display:flex;justify-content:space-between;position:relative}
.dg-route__trunk::before{content:"";position:absolute;left:12px;right:0;top:11px;height:3px;background:var(--green-2)}
.dg-route:not(.has-branch) .dg-route__trunk::before{right:12px}
.dg-route li{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;flex:1;min-width:0}
.dg-route li:first-child{align-items:flex-start;text-align:left}
.dg-route:not(.has-branch) li:last-child{align-items:flex-end;text-align:right}
.dg-route li span{width:24px;height:24px;border-radius:50%;background:#fff;border:3px solid var(--green-2);position:relative;z-index:1;flex:none}
.dg-route li b{margin-top:10px;font-family:var(--font-head);font-weight:600;font-size:.82rem;line-height:1.35;color:var(--ink)}
.dg-route__branch{flex-direction:column;gap:30px;padding-left:28px;border-left:3px solid var(--green-2);margin-left:-3px}
.dg-route__branch li,.dg-route__branch li:first-child{flex-direction:row;gap:12px;align-items:center;text-align:left}
.dg-route__branch li::before{content:"";position:absolute;left:-28px;top:11px;width:28px;height:3px;background:var(--green-2)}
.dg-route__branch li b{margin-top:0}
.dg-total--route{margin:18px 0 0}
@media(max-width:700px){
  .dg-route{grid-template-columns:minmax(0,1fr);gap:24px}
  .dg-route__trunk{flex-direction:column;gap:22px}
  .dg-route__trunk::before{left:10px;right:auto;top:0;bottom:0;width:3px;height:auto}
  .dg-route li,.dg-route li:first-child,.dg-route:not(.has-branch) li:last-child{flex-direction:row;gap:12px;align-items:center;text-align:left}
  .dg-route li b{margin-top:0}
  .dg-route__branch{margin-left:10px}
}

/* cable cross-section */
.dg-cable{display:flex;gap:22px;align-items:center}
.dg-cable svg{width:130px;height:130px;flex:none}
.dg-cable__r--0{fill:#2b333b}
.dg-cable__r--1{fill:#8a949f}
.dg-cable__r--2{fill:#c7d0d6}
.dg-cable__r--3{fill:#e9eef1}
.dg-cable__core{fill:#fff;stroke:var(--green-2);stroke-width:1}
.dg-cable__f{fill:var(--green-2)}
.dg-cable ol{font-size:.82rem;color:var(--charcoal)}
.dg-cable li{display:flex;gap:10px;align-items:center;padding:4px 0}
.dg-cable__k{width:12px;height:12px;border-radius:50%;flex:none;border:1px solid rgba(0,0,0,.12)}
span.dg-cable__r--0{background:#2b333b}span.dg-cable__r--1{background:#8a949f}span.dg-cable__r--2{background:#c7d0d6}
span.dg-cable__r--3{background:#e9eef1}span.dg-cable__core{background:#fff;border-color:var(--green-2)}
@media(max-width:480px){ .dg-cable{flex-direction:column;align-items:flex-start} }

/* ================================================================
   Systems & technical scope
   ================================================================ */
.cs-sys{display:grid;gap:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
.cs-sys--1{grid-template-columns:minmax(0,1fr)}
.cs-sys--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-sy{background:#fff;border:1px solid var(--line);border-radius:var(--pf-r);padding:22px 22px 18px;min-width:0}
.cs-sy header{display:flex;gap:14px;align-items:flex-start}
.cs-sy__ic{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:4px;background:var(--green-soft);color:var(--green-dark)}
.cs-sy__ic svg{width:22px;height:22px}
.cs-sy__k{display:block;font-family:var(--font-head);font-weight:600;font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.cs-sy h3{font-size:1.02rem;line-height:1.3;margin-top:3px}
.cs-sy__fig{margin:14px 0 10px;font-family:var(--font-head);font-weight:600;font-size:.9rem;color:var(--green-dark)}
.cs-sy__t{width:100%;border-collapse:collapse;font-size:.84rem}
.cs-sy__t td,.cs-sy__t th{padding:8px 0;border-top:1px solid var(--line);vertical-align:top;text-align:left}
.cs-sy__t td{width:5.6rem;padding-right:12px;font-family:var(--font-head);font-weight:700;color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.cs-sy__t th{font-weight:400;color:var(--slate);line-height:1.45}
.cs-sy__ok svg{width:16px;height:16px;color:var(--green-2)}
.cs-sy__note{margin-top:10px;font-size:.78rem;line-height:1.5;color:var(--muted)}
.cs-sys--1 .cs-sy__t td{width:7.5rem}
@media(max-width:1024px){ .cs-sys{grid-template-columns:repeat(2,minmax(0,1fr))} .cs-sys--1{grid-template-columns:minmax(0,1fr)} }
@media(max-width:680px){ .cs-sys,.cs-sys--2{grid-template-columns:minmax(0,1fr)} .cs-sy__t td{width:auto;white-space:normal} }

/* ================================================================
   Engineering & execution
   ================================================================ */
.cs-steps{display:grid;grid-template-columns:repeat(var(--sn,6),minmax(0,1fr));gap:0;margin-bottom:46px}
.cs-steps--4{--sn:4}.cs-steps--5{--sn:5}.cs-steps--6{--sn:6}.cs-steps--7{--sn:7}
.cs-steps li{position:relative;padding:22px 16px 0 0;border-top:2px solid var(--line);min-width:0}
.cs-steps li::before{content:"";position:absolute;left:0;top:-2px;height:2px;width:42px;background:var(--green-2)}
.cs-steps__n{font-family:var(--font-head);font-weight:700;font-size:.8rem;color:var(--green-2)}
.cs-steps h3{font-size:.98rem;margin:8px 0 6px;line-height:1.3}
.cs-steps p{font-size:.83rem;line-height:1.55;color:var(--slate)}
@media(max-width:1024px){ .cs-steps{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:26px} }
@media(max-width:600px){ .cs-steps{grid-template-columns:minmax(0,1fr)} }
.cs-svc{margin-bottom:44px}
.cs-svc ul{display:flex;flex-wrap:wrap;gap:8px}
.cs-svc li{font-size:.8rem;padding:7px 11px;border:1px solid var(--line);border-radius:3px;color:var(--charcoal);background:#fff}
.cs-tests__g{display:grid;grid-template-columns:repeat(var(--tg,3),minmax(0,1fr));gap:28px}
.cs-tests__g--1{--tg:1}.cs-tests__g--2{--tg:2}.cs-tests__g--3{--tg:3}.cs-tests__g--4{--tg:4}
.cs-tests__g--1 ul{columns:2;column-gap:32px}
.cs-tests h3{font-size:.92rem;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--line)}
.cs-tests li{display:flex;gap:9px;padding:5px 0;font-size:.84rem;line-height:1.45;color:var(--slate);break-inside:avoid}
.cs-tests li svg{width:15px;height:15px;flex:none;margin-top:3px;color:var(--green-2)}
@media(max-width:1024px){ .cs-tests__g{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:640px){ .cs-tests__g{grid-template-columns:minmax(0,1fr)} .cs-tests__g--1 ul{columns:1} }

/* ================================================================
   Results & value
   ================================================================ */
.cs-res{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:48px}
.cs-res--3{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,.85fr)}
.cs-res__val li{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:.96rem;line-height:1.55;color:#e6ecf1}
.cs-res__val li svg{width:18px;height:18px;flex:none;margin-top:3px;color:var(--green)}
.cs-res__ver ol{counter-reset:v}
.cs-res__ver li{counter-increment:v;position:relative;padding:10px 0 10px 34px;border-bottom:1px solid rgba(255,255,255,.1);
  font-size:.88rem;line-height:1.5;color:#cfd7de}
.cs-res__ver li::before{content:counter(v,decimal-leading-zero);position:absolute;left:0;top:10px;font-family:var(--font-head);
  font-weight:600;font-size:.74rem;color:var(--green)}
.cs-res__pt dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.1)}
.cs-res--3 .cs-res__pt dl{grid-template-columns:minmax(0,1fr)}
.cs-res__pt div{background:var(--bg-dark);padding:14px 16px;min-width:0}
.cs-res__pt dt{font-family:var(--font-head);font-weight:600;font-size:.96rem;color:#fff}
.cs-res__pt dd{margin-top:3px;font-size:.76rem;line-height:1.4;color:#8f9ca8}
@media(max-width:1024px){ .cs-res,.cs-res--3{grid-template-columns:minmax(0,1fr);gap:36px} .cs-res--3 .cs-res__pt dl{grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:480px){ .cs-res__pt dl,.cs-res--3 .cs-res__pt dl{grid-template-columns:minmax(0,1fr)} }

/* ================================================================
   Gallery — editorial grid + lightbox
   ================================================================ */
/* editorial grid on 12 columns: a lead image with two beside it, then rows of thirds/halves */
.cs-gal{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:210px;gap:12px}
.cs-gi{position:relative;margin:0;min-width:0;grid-column:span 4}
.cs-gi.g-lg{grid-column:span 8;grid-row:span 2}
.cs-gi.g-half{grid-column:span 6}
.cs-gi.g-full{grid-column:span 12}
.cs-gal--1 .cs-gi{grid-row:span 2}
.cs-gal--1 .cs-gi__b img{object-position:50% 22%}
.cs-credit a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.cs-gi__b{display:block;width:100%;height:100%;padding:0;overflow:hidden;border-radius:4px;background:#0e1317;cursor:zoom-in;position:relative}
.cs-gi__b img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s var(--ease)}
.cs-gi__b:hover img{transform:scale(1.04)}
.cs-gi__b:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.cs-gi__x{position:absolute;right:10px;top:10px;width:34px;height:34px;display:grid;place-items:center;border-radius:3px;
  background:rgba(16,21,26,.62);color:#fff;opacity:0;transition:opacity .25s}
.cs-gi__x svg{width:17px;height:17px}
.cs-gi__b:hover .cs-gi__x,.cs-gi__b:focus-visible .cs-gi__x{opacity:1}
.cs-gi figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 12px 10px;font-size:.76rem;line-height:1.35;color:#fff;
  background:linear-gradient(0deg,rgba(10,14,18,.78),rgba(10,14,18,0));border-radius:0 0 4px 4px;pointer-events:none}
@media(max-width:900px){
  .cs-gal{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:160px}
  .cs-gi,.cs-gi.g-half{grid-column:span 1}
  .cs-gi.g-lg,.cs-gi.g-full{grid-column:span 2}
}

.lb{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;color:#fff}
.lb::backdrop{background:rgba(8,11,14,.92)}
.lb[open]{display:grid;place-items:center}
.lb__f{margin:0;max-width:min(1400px,92vw);display:flex;flex-direction:column;align-items:center}
.lb__f img{max-width:100%;max-height:80vh;width:auto;height:auto;object-fit:contain;border-radius:3px}
.lb__f figcaption{display:flex;gap:18px;justify-content:space-between;width:100%;margin-top:12px;font-size:.86rem;color:#cdd5dc}
.lb__n{font-family:var(--font-head);color:#8d99a4;flex:none}
.lb__x,.lb__p,.lb__nx{position:fixed;width:48px;height:48px;display:grid;place-items:center;border-radius:50%;color:#fff;
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);transition:background .2s}
.lb__x:hover,.lb__p:hover,.lb__nx:hover{background:rgba(141,198,63,.3)}
.lb__x svg,.lb__p svg,.lb__nx svg{width:22px;height:22px}
.lb__x{right:20px;top:20px}
.lb__p{left:20px;top:50%;transform:translateY(-50%)}
.lb__nx{right:20px;top:50%;transform:translateY(-50%)}
html.lb-open{overflow:hidden}
@media(max-width:640px){ .lb__p,.lb__nx{top:auto;bottom:18px;transform:none} .lb__p{left:calc(50% - 58px)} .lb__nx{right:calc(50% - 58px)} }

/* ================================================================
   Related + prev/next
   ================================================================ */
.cs-pn{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:18px;align-items:center;margin-top:42px;
  padding-top:26px;border-top:1px solid var(--pf-hair)}
.cs-pn__a{display:flex;gap:12px;align-items:center;min-width:0;color:var(--ink)}
.cs-pn__a svg{width:20px;height:20px;flex:none;color:var(--green-2);transition:transform .3s var(--ease)}
.cs-pn__a:hover svg{transform:translateX(-4px)}
.cs-pn__a--n{justify-content:flex-end;text-align:right}
.cs-pn__a--n:hover svg{transform:translateX(4px)}
.cs-pn__a span{min-width:0;font-family:var(--font-head);font-weight:600;font-size:.92rem;line-height:1.35}
.cs-pn__a i{display:block;font-style:normal;font-weight:500;font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:3px}
.cs-pn__all svg{width:18px;height:18px}
@media(max-width:760px){
  .cs-pn{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .cs-pn__all{grid-column:1 / -1;grid-row:1;justify-self:center}
}

/* ---------- mobile spacing ---------- */
@media(max-width:640px){
  .cs-sec{padding:60px 0}
  .cs-hero .dhero__in{padding-bottom:72px}
  .cs-nav{margin-top:24px}
  .cs-hero__note{right:12px;bottom:46px}
}
@media(prefers-reduced-motion:reduce){
  .pfc,.pfc__media img,.cs-gi__b img,.pf-plate::after{transition:none}
}
