/* GoASRS — case studies group (list + 13 case pages) */

/* hero */
.cs-ind{color:rgba(255,255,255,.82);margin-bottom:18px}
.cs-hero h1{max-width:17em}
.phero.nophoto{background:var(--navy)}
.phero.nophoto:before{content:"";position:absolute;inset:0;background:
  radial-gradient(60% 80% at 85% 20%,rgba(242,106,27,.18),transparent 60%),
  repeating-linear-gradient(90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 120px)}

/* metric strip: 2–5 tiles */
.cs-stats.n2 .wrap{grid-template-columns:repeat(2,1fr)}
.cs-stats.n3 .wrap{grid-template-columns:repeat(3,1fr)}
.cs-stats.n5 .wrap{grid-template-columns:repeat(5,1fr)}
.cs-stats .stat .n{font-size:clamp(34px,3.4vw,58px)}
.cs-stats .stat .n em{font-size:.62em}

/* about */
.cs-logo{margin-top:8px;width:auto;max-width:180px;filter:grayscale(1);opacity:.75}
.lead-p+.lead-p{margin-top:16px}
.cs-fig{margin-top:40px;aspect-ratio:16/9;position:relative}
.cs-fig figcaption,.cs-gal figcaption{position:absolute;left:0;right:0;bottom:0;padding:14px 18px;color:#fff;font-size:13.5px;line-height:1.4;background:linear-gradient(0deg,rgba(9,17,33,.82),transparent)}
.cs-cap{margin-top:24px;color:var(--muted)}

/* challenges: numbered rows, two columns */
.cs-chal{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:0 32px}
.cs-chal li{display:grid;grid-template-columns:48px 1fr;gap:12px;padding:24px 0;border-top:1px solid var(--rule);align-items:start}
.cs-chal li .mono{color:var(--accent);padding-top:4px}
.cs-chal li p{font-size:17px;line-height:1.5}

/* solution components (dark cards on navy) */
.cs-comp{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cs-cc{border-radius:16px;padding:28px 28px 30px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.12);display:flex;flex-direction:column;gap:10px;transition:background .3s,border-color .3s}
.cs-cc:hover{background:rgba(255,255,255,.08);border-color:rgba(242,106,27,.5)}
.cs-cc .mono{color:var(--accent)}
.cs-cc h3{font-size:24px;line-height:1.12}
.cs-cc p{color:rgba(255,255,255,.74);font-size:15.5px}
.cs-comp .cs-cc:only-child,.cs-comp .cs-cc:last-child:nth-child(odd){grid-column:1/-1}
.cs-after{margin-top:32px;font-size:18px;line-height:1.55;color:rgba(255,255,255,.86);max-width:820px}
.cs-extra{margin-top:40px;padding-top:28px;border-top:1px solid rgba(255,255,255,.16)}
.cs-extra .mono{color:var(--accent);display:block;margin-bottom:12px}
.cs-extra p{color:rgba(255,255,255,.78);max-width:820px}

/* gallery: first photo wide, the rest in pairs */
.cs-vid{margin-bottom:16px}
.cs-gal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cs-gal figure{position:relative;aspect-ratio:4/3}
.cs-gal figure:first-child{grid-column:1/-1;aspect-ratio:16/8}
.cs-gal.g2 figure:first-child{grid-column:auto;aspect-ratio:4/3}
.cs-gal figure:last-child:nth-child(even){grid-column:1/-1;aspect-ratio:16/8}
.cs-gal.g2 figure:last-child{grid-column:auto;aspect-ratio:4/3}
.cs-gal.g1 figure:first-child{aspect-ratio:16/9}
.cs-gal img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.cs-gal figure:hover img{transform:scale(1.04)}

/* results */
.cs-rbig{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.cs-rb{background:#fff;border-radius:16px;padding:28px 28px 26px;display:flex;flex-direction:column;gap:12px}
.cs-rb b{font-size:clamp(48px,4.4vw,76px);line-height:.9;color:var(--accent);letter-spacing:-.045em}
.cs-rb p{font-size:15.5px;line-height:1.45}
.cs-rbig .cs-rb:last-child:nth-child(odd){grid-column:1/-1}
.cs-ticks{margin-top:32px;background:#fff;border-radius:16px;padding:28px 30px}
.cs-rbig+.cs-ticks{margin-top:16px}
.cs-ticks li{padding:4px 0;font-size:16px;line-height:1.5}
.cs-ticks b{font-weight:600}
.cs-impact{margin-top:48px}
.cs-impact>.mono{display:block;color:var(--accent);margin-bottom:14px}

/* deep dive essay */
.cs-prose{max-width:820px}
.cs-prose h3{display:flex;gap:16px;align-items:baseline;padding-top:28px;border-top:1px solid var(--rule);font-size:30px;margin:48px 0 18px}
.cs-prose h3:first-child{margin-top:0}
.cs-prose h3 .mono{color:var(--accent);flex:none}
.cs-prose p{font-size:17px;line-height:1.7}

/* related */
.cs-links{list-style:none;display:grid;gap:0;margin-top:22px}
.cs-links li a{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:13px 0;border-bottom:1px solid var(--rule);font-weight:500;font-size:15.5px}
.cs-links li a:hover{color:var(--accent)}
.cs-links svg.i{width:16px;height:16px;flex:none}
.cs-rel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;align-content:start}

/* case card additions (.scase) */
.cs-card{display:flex;flex-direction:column}
.cs-card .ph{border-radius:16px}
.cs-card .big{border-top-right-radius:14px}
.cs-card .big b{font-size:42px}
.cs-card .ph.noimg{background:var(--navy);display:flex!important;align-items:flex-start;padding:22px}
.cs-card .ph.noimg:before{content:"";position:absolute;inset:0;background:radial-gradient(70% 90% at 90% 10%,rgba(242,106,27,.22),transparent 60%),repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0 1px,transparent 1px 80px)}
.noimg-t{position:relative;color:rgba(255,255,255,.6)}
.cs-kick{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:22px;min-height:28px}
.cs-kick img{width:auto;max-width:110px;filter:grayscale(1);opacity:.6}
.cs-card h3{margin-top:8px}
.cs-card h3 a:hover{color:var(--accent)}
.cs-card .tlink{margin-top:18px;align-self:flex-start}
.cs-card ul{margin-top:auto}

/* list page */
.cs-filter{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.cs-filter button{font:inherit;font-size:14px;font-weight:500;cursor:pointer;display:inline-flex;gap:8px;align-items:center;padding:9px 15px;border-radius:999px;border:1px solid var(--rule);background:#fff;color:var(--ink);transition:background .2s,color .2s,border-color .2s}
.cs-filter button .mono{font-size:11px;color:var(--muted)}
.cs-filter button:hover{border-color:var(--ink)}
.cs-filter button.on{background:var(--navy);border-color:var(--navy);color:#fff}
.cs-filter button.on .mono{color:var(--accent)}
.cs-feat .ph{border-radius:16px 0 0 16px;overflow:hidden}
.cs-feat{border-radius:16px}
.cs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:56px 32px}
.cs-grid [hidden],.cs-feat[hidden]{display:none}
.cs-empty{color:var(--muted)}
.cs-logos{grid-column:5/span 8;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:28px 48px}
.cs-logos a{display:flex;align-items:center;height:64px}
.cs-logos img{width:auto;max-width:170px;filter:grayscale(1) contrast(1.1);opacity:.6;transition:filter .3s,opacity .3s}
.cs-logos a:hover img{filter:none;opacity:1}
.cs-word{font-size:30px;letter-spacing:.06em;color:rgba(14,27,51,.55)}
.cs-word:hover{color:var(--ink)}

@media (max-width:1400px){.cs-rel{grid-template-columns:repeat(2,minmax(0,1fr))}.cs-rel .scase:nth-child(3){display:none}}
@media (max-width:1100px){
 .cs-stats.n5 .wrap,.cs-stats.n3 .wrap{grid-template-columns:1fr 1fr}
 .cs-logos{grid-column:1/-1;justify-content:flex-start}
 .cs-feat .ph{border-radius:16px 16px 0 0}
}
@media (max-width:720px){
 .cs-chal,.cs-comp,.cs-rbig,.cs-gal,.cs-grid,.cs-rel{grid-template-columns:minmax(0,1fr)}
 .cs-rel .scase:nth-child(3){display:flex}
 .cs-gal figure,.cs-gal figure:first-child,.cs-gal figure:last-child:nth-child(even){grid-column:auto;aspect-ratio:4/3}
 .cs-stats .stat .n{font-size:30px}
 .cs-stats.n5 .stat:last-child{grid-column:1/-1}
 .cs-cc{padding:22px}
 .cs-prose h3{font-size:24px}
 .cs-ticks{padding:22px 20px}
 .cs-logos{gap:16px 32px}.cs-logos a{height:48px}
 .cs-grid{gap:44px}
}
