/* ============================================================
   Card grid polish — equal heights, tidy teasers, micro-motion.
   Applies to home + services / solutions / industries list pages.
   ============================================================ */

/* Equal-height cards across every row */
.smart-grid{align-items:stretch}
.smart-grid .smart-card{height:100%;display:flex;flex-direction:column}
.smart-grid .smart-card h3{margin-bottom:12px}
.smart-grid .smart-card p{flex-grow:0}
.smart-grid .smart-card .tag-row{margin-top:auto;padding-top:20px}
.smart-grid .smart-card .card-link{margin-top:18px}

/* Teasers read at the same length everywhere */
.smart-card p,.industry-card p,.dt-rel-card p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:break-word}
@media(min-width:761px){.smart-grid .smart-card h3{min-height:2.35em}}
.industry-card{height:100%}
.industry-grid{align-items:stretch}

/* Hover micro-interactions */
.smart-card .card-link i,.industry-card i{transition:transform .28s ease}
.smart-card:hover .card-link i{transform:translate(3px,-3px)}
.smart-card:hover .card-link span{color:var(--ink)}
.industry-card i{opacity:.55;transition:transform .28s ease,opacity .28s ease}
.industry-card:hover i{opacity:1;transform:translate(3px,-3px)}
.smart-card{position:relative}
.smart-card:after{content:"";position:absolute;left:0;top:0;width:100%;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .35s cubic-bezier(.2,.65,.2,1);border-radius:22px 22px 0 0}
.smart-card:hover:after{transform:scaleX(1)}
.smart-card-accent:after{display:none}

/* Tag chips: slightly quieter so teasers lead */
.smart-card .tag-row span{background:rgba(255,255,255,.5)}

@media(prefers-reduced-motion:reduce){
  .smart-card,.smart-card:after,.card-link i,.industry-card i{transition:none}
}

/* ============================================================
   Index cards — hairline grid, icon + serial, inverted hover.
   Used on home, services and solutions lists and detail "related".
   ============================================================ */
.ix-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:26px;overflow:hidden}
.ix-grid-related{grid-template-columns:repeat(4,minmax(0,1fr))}
.ix-card{position:relative;display:flex;flex-direction:column;min-height:330px;padding:30px 28px 26px;background:#fff;color:var(--ink);isolation:isolate;overflow:hidden;transition:color .35s ease;transition-delay:calc(var(--i,0) * 0ms)}
.ix-card:before{content:"";position:absolute;inset:0;background:var(--night);transform:translateY(101%);transition:transform .5s cubic-bezier(.76,0,.24,1);z-index:-1}
.ix-card:hover:before,.ix-card:focus-visible:before{transform:none}
.ix-card:hover,.ix-card:focus-visible{color:#fff;outline:none}
.ix-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:auto}
.ix-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--paper);color:var(--ink);transition:background .35s ease,color .35s ease,transform .5s cubic-bezier(.2,.65,.2,1)}
.ix-icon svg{width:26px;height:26px}
.ix-card:hover .ix-icon{background:var(--accent);color:#0b1608;transform:rotate(-6deg) scale(1.04)}
.ix-no{font-size:11px;font-weight:800;letter-spacing:.16em;color:#9ea39b;font-variant-numeric:tabular-nums;transition:color .35s ease}
.ix-card:hover .ix-no{color:rgba(255,255,255,.45)}
.ix-title{font-size:22px;line-height:1.14;letter-spacing:-.035em;margin:34px 0 12px;text-wrap:balance}
.ix-teaser{margin:0;font-size:14.5px;line-height:1.66;color:#656c78;transition:color .35s ease;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ix-card:hover .ix-teaser{color:rgba(255,255,255,.66)}
.ix-foot{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding-top:18px;border-top:1px solid var(--line);transition:border-color .35s ease}
.ix-card:hover .ix-foot{border-color:rgba(255,255,255,.14)}
.ix-tags{display:flex;flex-wrap:wrap;align-items:center;gap:2px 0;font-size:11.5px;font-weight:700;letter-spacing:.02em;color:#7a8089;line-height:1.5;transition:color .35s ease}
.ix-tags>span{white-space:nowrap}
.ix-tags i{font-style:normal;margin:0 7px;color:#b8bcb3}
.ix-card:hover .ix-tags{color:rgba(255,255,255,.6)}
.ix-arrow{flex-shrink:0;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;border:1px solid var(--line);color:var(--ink);transition:background .35s ease,color .35s ease,border-color .35s ease,transform .5s cubic-bezier(.2,.65,.2,1)}
.ix-card:hover .ix-arrow{background:var(--accent);border-color:var(--accent);color:#0b1608;transform:translateX(4px)}
/* Closing CTA tile */
.ix-cta{background:var(--accent);color:#0b1608;justify-content:flex-end}
.ix-cta:before{background:#0b1608}
.ix-cta .ix-cta-kicker{font-size:11px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:rgba(11,22,8,.55);margin-bottom:auto;transition:color .35s ease}
.ix-cta .ix-title{font-size:21px;margin-top:40px}
.ix-cta .ix-foot{border-color:rgba(11,22,8,.18)}
.ix-cta .ix-tags{color:rgba(11,22,8,.7)}
.ix-cta .ix-arrow{border-color:rgba(11,22,8,.3);color:#0b1608}
.ix-cta:hover{color:#fff}
.ix-cta:hover .ix-cta-kicker{color:rgba(255,255,255,.5)}
.ix-cta:hover .ix-arrow{background:var(--accent);border-color:var(--accent)}
/* Filler cells keep the hairline grid complete */
.ix-fill{display:none;background:var(--paper);background-image:radial-gradient(rgba(17,21,33,.14) 1px,transparent 1.2px);background-size:14px 14px;min-height:120px}
@media(min-width:1101px){.ix-fill-4{display:block}}
@media(max-width:1100px) and (min-width:641px){.ix-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ix-fill-2{display:block}}
@media(max-width:640px){.ix-grid{grid-template-columns:1fr;border-radius:20px}.ix-card{min-height:0;padding:24px 22px 22px}.ix-title{margin-top:26px;font-size:20px}}
.js .ix-card.reveal{transition-delay:calc(var(--i,0) * 45ms)}
.js .ix-card.reveal.in-view{transition-delay:0s}

/* ============================================================
   Sector list — editorial rows for industries.
   ============================================================ */
.sector-section{padding:120px 0;background:var(--paper-2)}
.sector-list{list-style:none;margin:0;padding:0;border-top:1px solid rgba(17,21,33,.18)}
.sector-row a{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr) minmax(0,1.4fr) 250px 56px;gap:28px;align-items:center;padding:30px 0;border-bottom:1px solid rgba(17,21,33,.14);color:var(--ink);isolation:isolate}
.sector-row a:before{content:"";position:absolute;left:-18px;top:0;bottom:0;width:3px;background:var(--accent);transform:scaleY(0);transform-origin:bottom;transition:transform .4s cubic-bezier(.2,.65,.2,1)}
.sector-row a:after{content:"";position:absolute;inset:0 -18px;background:#fff;border-radius:18px;opacity:0;z-index:-1;transition:opacity .35s ease}
.sector-row a:hover:before,.sector-row a:focus-visible:before{transform:none}
.sector-row a:hover:after,.sector-row a:focus-visible:after{opacity:1}
.sector-no{font-size:12px;font-weight:800;letter-spacing:.16em;color:#8e948c;font-variant-numeric:tabular-nums}
.sector-main{display:flex;align-items:center;gap:16px;min-width:0}
.sector-icon{flex-shrink:0;display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#fff;border:1px solid var(--line);color:var(--ink);transition:background .35s ease,color .35s ease,border-color .35s ease,transform .45s cubic-bezier(.2,.65,.2,1)}
.sector-row a:hover .sector-icon{background:var(--night);color:var(--accent);border-color:var(--night);transform:rotate(-6deg)}
.sector-main h3{margin:0;font-size:clamp(20px,1.8vw,25px);line-height:1.12;letter-spacing:-.035em;transition:transform .45s cubic-bezier(.2,.65,.2,1)}
.sector-row a:hover .sector-main h3{transform:translateX(6px)}
.sector-teaser{margin:0;font-size:15px;line-height:1.65;color:#5f6671}
.sector-tags{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.sector-tags span{font-size:11px;font-weight:700;color:#5c6370;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;white-space:nowrap}
.sector-arrow{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid var(--line);color:var(--ink);justify-self:end;transition:background .35s ease,color .35s ease,border-color .35s ease,transform .45s cubic-bezier(.2,.65,.2,1)}
.sector-row a:hover .sector-arrow{background:var(--accent);border-color:var(--accent);color:#0b1608;transform:translateX(4px)}
.js .sector-row.reveal{transition-delay:calc(var(--i,0) * 60ms)}
@media(max-width:1100px){.sector-row a{grid-template-columns:48px 1fr 48px;grid-template-areas:"no main arrow" "no teaser arrow" "no tags arrow";row-gap:12px;padding:26px 0}.sector-no{grid-area:no;align-self:start;padding-top:14px}.sector-main{grid-area:main}.sector-teaser{grid-area:teaser}.sector-tags{grid-area:tags;justify-content:flex-start;max-width:none}.sector-arrow{grid-area:arrow}.sector-section{padding:88px 0}}
@media(max-width:640px){.sector-row a{grid-template-columns:1fr 44px;grid-template-areas:"main arrow" "teaser teaser" "tags tags";gap:12px 14px;padding:22px 0}.sector-no{display:none}.sector-row a:before,.sector-row a:after{display:none}.sector-icon{width:40px;height:40px}.sector-section{padding:68px 0}}
@media(prefers-reduced-motion:reduce){.ix-card,.ix-card:before,.ix-icon,.ix-arrow,.sector-icon,.sector-main h3,.sector-arrow,.sector-row a:before{transition:none}}

/* ============================================================
   Case studies — home / country showcase + /case-studies index
   Light-base "preview stage" cards: screenshots are shown whole
   (contain) on a tinted stage instead of being cropped.
   Replaces the former .project-showcase-* / .case-study-index-* UI.
   ============================================================ */
.cs-showcase,.cs-index{position:relative;overflow:hidden;color:var(--ink,#111521)}
.cs-showcase{padding:clamp(76px,8.5vw,128px) 0;background:#fff}
.cs-showcase.is-muted{background:linear-gradient(180deg,#f8f6f0 0%,#f1eee6 100%)}
.cs-index{padding:clamp(72px,8vw,116px) 0 clamp(88px,10vw,140px);background:linear-gradient(180deg,#fff 0%,#f6f4ee 100%)}

.cs-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.6fr);gap:clamp(28px,7vw,96px);align-items:end;margin-bottom:clamp(32px,4.5vw,56px)}
.cs-head h2{max-width:840px;margin:.6rem 0 0;font-size:clamp(2.2rem,4.5vw,4.3rem);line-height:1;letter-spacing:-.048em}
.cs-head h2 em{font-family:Georgia,serif;font-style:italic;font-weight:400;color:#647158;letter-spacing:-.03em}
.cs-head-aside p{margin:0 0 20px;color:#5f6676;font-size:1rem;line-height:1.75}
.cs-pill-link{display:inline-flex;align-items:center;gap:12px;padding:6px 6px 6px 20px;border-radius:999px;background:#111521;color:#fff;text-decoration:none;font-size:.84rem;font-weight:800;transition:background .25s ease,transform .25s ease}
.cs-pill-link i{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent,#8cff5a);color:#0b1608;font-style:normal;font-size:1rem;transition:transform .25s ease}
.cs-pill-link:hover{background:#1c2335}.cs-pill-link:hover i{transform:translate(2px,-2px)}
.cs-stats{display:flex;flex-wrap:wrap;gap:10px}
.cs-stats span{display:inline-flex;align-items:center;gap:8px;padding:8px 13px;border:1px solid var(--line,rgba(17,21,33,.13));border-radius:999px;background:#fff;color:#626a79;font-size:.76rem;font-weight:700}
.cs-stats b{color:#111521;font-size:.9rem}

/* Preview stage */
.cs-stage{--pad:clamp(14px,2.4vw,30px);position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:radial-gradient(circle at 1px 1px,rgba(17,21,33,.085) 1px,transparent 0) 0 0/18px 18px,linear-gradient(145deg,#f3f4ec 0%,#e6eadd 100%);border-bottom:1px solid rgba(17,21,33,.08)}
.cs-shot{position:absolute;left:var(--pad);top:var(--pad);width:calc(100% - var(--pad)*2);height:calc(100% - var(--pad)*2);object-fit:contain;object-position:center;filter:drop-shadow(0 16px 24px rgba(17,21,33,.17)) drop-shadow(0 0 1px rgba(17,21,33,.35));transition:transform .5s cubic-bezier(.2,.65,.2,1)}
.cs-stage-empty{display:grid;place-items:center}.cs-stage-empty span{font:400 4rem/1 Georgia,serif;color:#647158;opacity:.55}

/* Shared card chrome */
.cs-feature,.cs-card{color:inherit;text-decoration:none;background:#fff;border:1px solid rgba(17,21,33,.1);box-shadow:0 14px 40px rgba(17,21,33,.06);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.cs-feature:hover,.cs-card:hover{transform:translateY(-4px);border-color:rgba(17,21,33,.2);box-shadow:0 26px 64px rgba(17,21,33,.12)}
.cs-feature:hover .cs-shot,.cs-card:hover .cs-shot{transform:scale(1.025)}
.cs-feature:focus-visible,.cs-card:focus-visible{outline:3px solid rgba(100,113,88,.55);outline-offset:4px}
.cs-meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:14px;color:#667082;font-size:.7rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.cs-meta small{margin-left:auto;font:inherit;color:#98713d;white-space:nowrap}
.cs-badge{padding:5px 10px;border-radius:999px;background:#111521;color:var(--accent,#8cff5a);letter-spacing:.08em}
.cs-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:16px}
.cs-tags span{padding:6px 10px;border-radius:999px;background:#f1f2ec;color:#4f5a49;font-size:.72rem;font-weight:750}
.cs-cta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:auto;padding-top:18px;color:#111521}
.cs-cta b{font-size:.84rem;font-weight:850}
.cs-cta i{display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border:1px solid rgba(17,21,33,.16);border-radius:50%;font-style:normal;font-size:1rem;transition:background .25s ease,border-color .25s ease,transform .3s cubic-bezier(.2,.65,.2,1)}
.cs-feature:hover .cs-cta i,.cs-card:hover .cs-cta i{background:var(--accent,#8cff5a);border-color:var(--accent,#8cff5a);color:#0b1608;transform:translate(3px,-3px)}

/* Featured (wide) card */
.cs-feature{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.7fr);overflow:hidden;margin-bottom:22px;border-radius:30px}
.cs-feature .cs-stage{aspect-ratio:auto;min-height:clamp(340px,38vw,500px);border-bottom:0;border-right:1px solid rgba(17,21,33,.08)}
.cs-feature-copy{display:flex;flex-direction:column;justify-content:center;padding:clamp(26px,3.6vw,52px)}
.cs-feature-copy h3{margin:0 0 14px;font-size:clamp(1.8rem,2.9vw,2.9rem);line-height:1.02;letter-spacing:-.04em}
.cs-feature-copy>p{margin:0;color:#5f6676;line-height:1.72;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.cs-feature-copy .cs-cta{margin-top:30px;padding-top:20px;border-top:1px solid rgba(17,21,33,.09)}

/* Grid cards */
.cs-grid{display:grid;gap:20px}
.cs-grid-1{grid-template-columns:minmax(0,1fr)}
.cs-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cs-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:24px}
.cs-card-body{display:flex;flex:1;flex-direction:column;padding:22px 24px 20px}
.cs-card h3{margin:0 0 10px;font-size:clamp(1.18rem,1.7vw,1.5rem);line-height:1.1;letter-spacing:-.028em}
.cs-card p{margin:0;color:#626a79;font-size:.92rem;line-height:1.65;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.cs-card .cs-cta{margin-top:auto;border-top:1px solid rgba(17,21,33,.08);padding-top:16px}
.cs-card .cs-tags{margin:16px 0 18px}

/* Index: 6-col grid → 3 across, balanced final row */
.cs-index-grid{grid-template-columns:repeat(6,minmax(0,1fr))}
.cs-index-grid .cs-card{grid-column:span 2}
.cs-index-grid.cs-rem-2 .cs-card:nth-last-child(-n+2){grid-column:span 3}
.cs-grid-1 .cs-card,.cs-index-grid.cs-rem-1 .cs-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr)}
.cs-grid-1 .cs-card .cs-stage,.cs-index-grid.cs-rem-1 .cs-card:last-child .cs-stage{aspect-ratio:auto;min-height:320px;border-bottom:0;border-right:1px solid rgba(17,21,33,.08)}
.cs-grid-1 .cs-card-body,.cs-index-grid.cs-rem-1 .cs-card:last-child .cs-card-body{justify-content:center;padding:clamp(24px,3vw,40px)}
.cs-grid-1 .cs-card .cs-cta,.cs-index-grid.cs-rem-1 .cs-card:last-child .cs-cta{margin-top:24px}

.cs-stack{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:clamp(34px,4vw,52px);padding-top:26px;border-top:1px solid rgba(17,21,33,.1)}
.cs-stack span{margin-right:8px;color:#667082;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.cs-stack em{font-style:normal;padding:7px 12px;border:1px solid rgba(17,21,33,.12);border-radius:999px;background:#fff;color:#3f4857;font-size:.76rem;font-weight:700}

.js .cs-card.reveal{transition-delay:calc(var(--i,0) * 70ms)}
.js .cs-card.reveal.in-view{transition-delay:0s}

@media(max-width:1020px){
  .cs-head{grid-template-columns:1fr;gap:20px}
  .cs-feature,.cs-grid-1 .cs-card,.cs-index-grid.cs-rem-1 .cs-card:last-child{grid-template-columns:1fr}
  .cs-feature .cs-stage,.cs-grid-1 .cs-card .cs-stage,.cs-index-grid.cs-rem-1 .cs-card:last-child .cs-stage{aspect-ratio:16/10;min-height:0;border-right:0;border-bottom:1px solid rgba(17,21,33,.08)}
  .cs-grid-3,.cs-grid-2,.cs-index-grid,.cs-index-grid.cs-rem-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-index-grid .cs-card,.cs-index-grid.cs-rem-2 .cs-card:nth-last-child(-n+2){grid-column:auto}
  .cs-grid-3 .cs-card:last-child:nth-child(odd),.cs-index-grid .cs-card:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:700px){
  .cs-showcase{padding:64px 0}.cs-index{padding:60px 0 84px}
  .cs-head h2{font-size:clamp(2.1rem,10.5vw,3.1rem)}
  .cs-grid-3,.cs-grid-2,.cs-index-grid,.cs-index-grid.cs-rem-2{grid-template-columns:1fr;gap:16px}
  .cs-feature{border-radius:22px;margin-bottom:16px}.cs-card{border-radius:20px}
  .cs-feature-copy{padding:22px 20px 20px}.cs-card-body{padding:20px 20px 18px}
  .cs-stage{--pad:12px}
  .cs-meta small{margin-left:0}
}
@media(prefers-reduced-motion:reduce){.cs-feature,.cs-card,.cs-shot,.cs-cta i,.cs-pill-link,.cs-pill-link i{transition:none!important}.cs-feature:hover,.cs-card:hover{transform:none}}

/* ============================================================
   Case-study DETAIL body (below the hero — hero styles untouched)
   Scoped to .csd-* so nothing else on the site is affected.
   ============================================================ */
.csd-head{margin-bottom:clamp(28px,4vw,48px)}
.csd-head h2{max-width:820px;margin:.6rem 0 0;font-size:clamp(2rem,3.9vw,3.5rem);line-height:1.02;letter-spacing:-.045em}
.csd-head h2 em,.csd-cta h2 em{font-family:Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-.03em;color:#647158}
.csd-head-split{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.6fr);gap:clamp(24px,6vw,84px);align-items:end}
.csd-head-split>p{margin:0;color:#5f6676;line-height:1.75}

/* At-a-glance facts card, overlapping the hero's bottom edge */
.csd-facts-wrap{--ov:clamp(34px,4vw,56px);position:relative;z-index:4;margin-top:calc(var(--ov)*-1);padding-bottom:clamp(36px,5vw,64px);background:linear-gradient(180deg,transparent 0,transparent var(--ov),#fff var(--ov))}
.csd-facts{overflow:hidden;border:1px solid rgba(17,21,33,.08);border-radius:26px;background:#fff;box-shadow:0 2px 0 rgba(17,21,33,.03),0 30px 70px -10px rgba(17,21,33,.22)}
.csd-facts-main{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1fr) minmax(0,1.7fr) minmax(0,.6fr);margin:0}
.csd-facts-main.csd-facts-n-1{grid-template-columns:1fr}
.csd-facts-main.csd-facts-n-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.csd-facts-main.csd-facts-n-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.csd-fact{min-width:0;padding:24px 30px 22px}
.csd-fact+.csd-fact{border-left:1px solid rgba(17,21,33,.07)}
.csd-fact dt{display:flex;align-items:center;gap:8px;margin:0 0 9px;color:#7a8190;font-size:.66rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.csd-fact dt:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--accent,#8cff5a);box-shadow:0 0 0 3px rgba(140,255,90,.22)}
.csd-fact dd{margin:0;color:#111521;font-size:1.04rem;font-weight:750;line-height:1.35;letter-spacing:-.012em;text-wrap:balance}
.csd-facts-stack{display:flex;align-items:center;gap:18px;padding:16px 30px;border-top:1px solid rgba(17,21,33,.07);background:linear-gradient(180deg,#faf9f5,#f6f4ee)}
.csd-facts-label{flex:0 0 auto;color:#7a8190;font-size:.66rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.csd-facts-stack ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.csd-facts-stack li{padding:6px 12px;border:1px solid rgba(17,21,33,.1);border-radius:999px;background:#fff;color:#3f4857;font-size:.76rem;font-weight:750;box-shadow:0 1px 2px rgba(17,21,33,.04)}

/* Overview */
.csd-overview{padding:clamp(40px,5vw,72px) 0 clamp(70px,8vw,116px);background:#fff}
.csd-overview-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(36px,6.5vw,96px);align-items:start}
.csd-overview-copy h2{margin:.6rem 0 26px;font-size:clamp(2rem,3.8vw,3.4rem);line-height:1.04;letter-spacing:-.045em;}
.csd-overview-copy p{margin:0 0 18px;color:#5f6676;font-size:1.04rem;line-height:1.82}
.csd-overview-copy p.csd-lead{color:#232a3a;font-size:1.2rem;line-height:1.7}
.csd-highlights{display:grid;gap:14px}
.csd-highlight{display:grid;grid-template-columns:48px minmax(0,1fr);gap:16px;padding:22px 24px;border:1px solid rgba(17,21,33,.09);border-radius:20px;background:#fff;box-shadow:0 10px 30px rgba(17,21,33,.045);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.csd-highlight:hover{transform:translateY(-3px);border-color:rgba(17,21,33,.18);box-shadow:0 20px 44px rgba(17,21,33,.09)}
.csd-highlight-no{font:italic 400 1.9rem/1 Georgia,serif;color:#647158}
.csd-highlight small{display:block;color:#98713d;font-size:.68rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.csd-highlight strong{display:block;margin:6px 0 7px;font-size:1.18rem;letter-spacing:-.02em}
.csd-highlight p{margin:0;color:#626a79;font-size:.93rem;line-height:1.65}

/* Challenge / Delivery */
.csd-story{padding:clamp(64px,7vw,104px) 0;background:linear-gradient(180deg,#f8f6f0 0%,#f1eee6 100%)}
.csd-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,26px)}
.csd-story-card{position:relative;overflow:hidden;padding:clamp(28px,4vw,54px);border-radius:28px}
.csd-story-challenge{background:#fff;border:1px solid rgba(17,21,33,.09);box-shadow:0 16px 44px rgba(17,21,33,.06)}
.csd-story-delivery{background:#111521;color:#fff;border:1px solid #111521}
.csd-story-delivery:before{content:"";position:absolute;right:-90px;top:-90px;width:300px;height:300px;border-radius:50%;background:radial-gradient(circle,rgba(140,255,90,.17),transparent 68%);pointer-events:none}
.csd-story-tag{display:inline-flex;align-items:center;gap:9px;padding:6px 13px 6px 7px;border-radius:999px;background:#f1f2ec;color:#4f5a49;font-size:.7rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.csd-story-tag b{display:grid;place-items:center;min-width:26px;height:26px;border-radius:50%;background:#111521;color:var(--accent,#8cff5a);font-size:.68rem;letter-spacing:0}
.csd-story-delivery .csd-story-tag{background:rgba(255,255,255,.09);color:rgba(255,255,255,.8)}
.csd-story-delivery .csd-story-tag b{background:var(--accent,#8cff5a);color:#0b1608}
.csd-story-card h2{position:relative;margin:22px 0 16px;font-size:clamp(1.7rem,2.8vw,2.55rem);line-height:1.06;letter-spacing:-.04em}
.csd-story-card p{position:relative;margin:0;color:#5f6676;font-size:1.02rem;line-height:1.85}
.csd-story-delivery h2{color:#fff}.csd-story-delivery p{color:rgba(255,255,255,.74)}

/* Outcomes */
.csd-outcomes{padding:clamp(64px,7vw,104px) 0;background:#fff}
.csd-outcome-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.csd-outcome{padding:26px 24px 28px;border-top:3px solid #111521;border-radius:0 0 18px 18px;background:#faf9f5;transition:transform .25s ease,box-shadow .25s ease,background .25s ease}
.csd-outcome:hover{transform:translateY(-3px);background:#fff;box-shadow:0 18px 40px rgba(17,21,33,.08)}
.csd-outcome span{display:block;font:italic 400 2.4rem/1 Georgia,serif;color:#647158}
.csd-outcome p{margin:20px 0 0;color:#2a3140;font-size:1rem;line-height:1.62}

/* Gallery */
.csd-gallery{position:relative;padding:clamp(64px,7vw,104px) 0;background:linear-gradient(180deg,#f6f4ee 0%,#efece3 100%)}
.csd-gallery-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,26px)}
.csd-shot{margin:0}
.csd-shot-open{position:relative;display:block;width:100%;padding:0;border:1px solid rgba(17,21,33,.1);border-radius:24px;overflow:hidden;cursor:zoom-in;color:inherit;text-align:left;background:radial-gradient(circle at 1px 1px,rgba(17,21,33,.085) 1px,transparent 0) 0 0/18px 18px,linear-gradient(145deg,#f7f8f2,#e8ecdf);box-shadow:0 14px 40px rgba(17,21,33,.07);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.csd-shot-open:hover{transform:translateY(-4px);border-color:rgba(17,21,33,.2);box-shadow:0 28px 64px rgba(17,21,33,.14)}
.csd-shot-open:focus-visible{outline:3px solid rgba(100,113,88,.55);outline-offset:4px}
.csd-shot-frame{--pad:clamp(14px,2.2vw,28px);position:relative;display:block;aspect-ratio:16/10}
.csd-gallery-grid.is-odd .csd-shot:last-child{grid-column:1/-1}
.csd-gallery-grid.is-odd .csd-shot:last-child .csd-shot-frame{aspect-ratio:16/7}
.csd-shot-frame img{position:absolute;left:var(--pad);top:var(--pad);width:calc(100% - var(--pad)*2);height:calc(100% - var(--pad)*2);object-fit:contain;filter:drop-shadow(0 16px 24px rgba(17,21,33,.17)) drop-shadow(0 0 1px rgba(17,21,33,.35));transition:transform .5s cubic-bezier(.2,.65,.2,1)}
.csd-shot-open:hover img{transform:scale(1.02)}
.csd-shot-count{position:absolute;left:16px;top:16px;padding:5px 10px;border-radius:999px;background:rgba(255,255,255,.88);backdrop-filter:blur(8px);color:#3f4857;font-size:.68rem;font-weight:800;letter-spacing:.08em}
.csd-shot-action{position:absolute;right:16px;bottom:16px;display:flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(17,21,33,.9);color:#fff;box-shadow:0 10px 24px rgba(7,16,27,.22);transition:transform .22s ease}
.csd-shot-action i{display:grid;place-items:center;width:20px;height:20px;font-style:normal;font-size:.8rem}.csd-shot-action b{font-size:.72rem;letter-spacing:.03em}
.csd-shot-open:hover .csd-shot-action{transform:translateY(-2px)}

/* Related capabilities */
.csd-related{padding:clamp(60px,6.5vw,96px) 0;background:#fff}
.csd-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.csd-related-card{position:relative;display:block;padding:20px 64px 20px 22px;border:1px solid rgba(17,21,33,.1);border-radius:18px;background:#fff;color:inherit;text-decoration:none;transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.csd-related-card span{display:block;color:#98713d;font-size:.66rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}
.csd-related-card strong{display:block;margin-top:6px;font-size:1rem;line-height:1.3}
.csd-related-card i{position:absolute;right:18px;top:50%;display:grid;place-items:center;width:36px;height:36px;margin-top:-18px;border:1px solid rgba(17,21,33,.15);border-radius:50%;font-style:normal;transition:background .25s ease,border-color .25s ease,transform .3s ease}
.csd-related-card:hover{transform:translateY(-3px);border-color:rgba(17,21,33,.2);box-shadow:0 18px 40px rgba(17,21,33,.09)}
.csd-related-card:hover i{background:var(--accent,#8cff5a);border-color:var(--accent,#8cff5a);transform:translate(2px,-2px)}

/* More case studies + closing CTA */
.csd-more{padding:clamp(60px,6.5vw,96px) 0;background:linear-gradient(180deg,#f8f6f0 0%,#f1eee6 100%)}
.csd-cta{padding:clamp(48px,6vw,88px) 0 clamp(70px,8vw,116px);background:#fff}
.csd-cta-panel{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:clamp(28px,5vw,64px);align-items:center;padding:clamp(30px,5vw,64px);border-radius:32px;background:#0b1019;color:#fff;box-shadow:0 30px 80px rgba(11,16,25,.25)}
.csd-cta-panel:before{content:"";position:absolute;left:-120px;bottom:-160px;width:460px;height:460px;border-radius:50%;background:radial-gradient(circle,rgba(140,255,90,.16),transparent 66%);pointer-events:none}
.csd-cta-panel>*{position:relative}
.csd-cta .eyebrow{color:rgba(255,255,255,.55)!important}
.csd-cta h2{max-width:17ch;margin:.6rem 0 14px;font-size:clamp(1.9rem,3.6vw,3.2rem);line-height:1.04;letter-spacing:-.045em;color:#fff}
.csd-cta h2 em{color:var(--accent,#8cff5a)}
.csd-cta p{max-width:520px;margin:0;color:rgba(255,255,255,.7);line-height:1.7}
.csd-cta-actions{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:240px}
.cs-pill-link.is-accent{justify-content:space-between;background:var(--accent,#8cff5a);color:#0b1608}
.cs-pill-link.is-accent i{background:#111521;color:var(--accent,#8cff5a)}
.cs-pill-link.is-accent:hover{background:#a3ff7c}
.csd-cta-ghost{display:block;padding:13px 22px;border:1px solid rgba(255,255,255,.25);border-radius:999px;color:#fff;text-align:center;text-decoration:none;font-size:.84rem;font-weight:800;transition:background .25s ease,border-color .25s ease}
.csd-cta-ghost:hover{background:rgba(255,255,255,.1);border-color:rgba(255,255,255,.45)}

.js .csd-highlight.reveal,.js .csd-outcome.reveal,.js .csd-shot.reveal,.js .csd-related-card.reveal,.js .csd-story-card.reveal{transition-delay:calc(var(--i,0) * 70ms)}
.js .csd-highlight.reveal.in-view,.js .csd-outcome.reveal.in-view,.js .csd-shot.reveal.in-view,.js .csd-related-card.reveal.in-view,.js .csd-story-card.reveal.in-view{transition-delay:0s}

@media(max-width:1020px){
  .csd-head-split,.csd-overview-grid,.csd-story-grid{grid-template-columns:1fr}
  .csd-overview-copy h2{max-width:none}
  .csd-outcome-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-facts-main,.csd-facts-main.csd-facts-n-3,.csd-facts-main.csd-facts-n-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-fact+.csd-fact{border-left:0}
  .csd-fact:nth-child(even){border-left:1px solid rgba(17,21,33,.07)}
  .csd-fact:nth-child(n+3){border-top:1px solid rgba(17,21,33,.07)}
  .csd-cta-panel{grid-template-columns:1fr}.csd-cta-actions{flex-direction:row;flex-wrap:wrap;min-width:0}.csd-cta-actions>*{flex:1 1 220px}
}
@media(max-width:700px){
  .csd-gallery-grid,.csd-related-grid,.csd-outcome-grid{grid-template-columns:1fr}
  .csd-story-card{border-radius:22px}.csd-cta-panel{border-radius:24px}
  .csd-facts{border-radius:20px}.csd-fact{padding:16px 18px}.csd-fact dd{font-size:.96rem}
  .csd-facts-stack{flex-direction:column;align-items:flex-start;gap:10px;padding:14px 18px}
  .csd-gallery-grid.is-odd .csd-shot:last-child .csd-shot-frame{aspect-ratio:16/10}
  .csd-shot-open{border-radius:18px}.csd-shot-frame{--pad:12px}
  .csd-head h2{font-size:clamp(1.9rem,9vw,2.6rem)}
}
@media(prefers-reduced-motion:reduce){.csd-highlight,.csd-outcome,.csd-shot-open,.csd-shot-frame img,.csd-shot-action,.csd-related-card,.csd-related-card i,.csd-cta-ghost{transition:none!important}.csd-highlight:hover,.csd-outcome:hover,.csd-shot-open:hover,.csd-related-card:hover{transform:none}}

/* ============================================================
   Home — team showcase (replaces .team-preview-* styling)
   ============================================================ */
.tm-showcase{padding:clamp(76px,8.5vw,128px) 0;background:linear-gradient(180deg,#f8f6f0 0%,#f1eee6 100%);color:var(--ink,#111521)}
.tm-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.tm-lead-layout{grid-template-columns:minmax(0,1.08fr) repeat(2,minmax(0,1fr));grid-auto-rows:auto}
.tm-lead-layout .tm-card.is-lead{grid-row:span 2}
.tm-card{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid rgba(17,21,33,.09);border-radius:24px;background:#fff;color:inherit;text-decoration:none;box-shadow:0 12px 34px rgba(17,21,33,.055);transition:transform .28s ease,box-shadow .28s ease,border-color .28s ease}
.tm-card:hover{transform:translateY(-4px);border-color:rgba(17,21,33,.2);box-shadow:0 26px 60px rgba(17,21,33,.12)}
.tm-card:focus-visible{outline:3px solid rgba(100,113,88,.55);outline-offset:4px}
.tm-photo{position:relative;aspect-ratio:5/4;overflow:hidden;background:linear-gradient(160deg,#f1f3ea 0%,#e2e7d8 100%)}
.tm-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 14%;transition:transform .6s cubic-bezier(.2,.65,.2,1)}
.tm-card:hover .tm-photo img{transform:scale(1.04)}
.tm-photo:after{content:"";position:absolute;inset:auto 0 0;height:34%;background:linear-gradient(180deg,transparent,rgba(17,21,33,.16));pointer-events:none}
.tm-initial{display:grid;place-items:center;width:100%;height:100%;font:italic 400 4.5rem/1 Georgia,serif;color:#647158}
.tm-dept{position:absolute;left:14px;top:14px;z-index:1;padding:6px 11px;border-radius:999px;background:rgba(255,255,255,.9);backdrop-filter:blur(8px);color:#3f4c36;font-size:.64rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;box-shadow:0 4px 14px rgba(17,21,33,.1)}
.tm-body{display:flex;flex:1;flex-direction:column;padding:18px 20px 16px}
.tm-body h3{margin:0 0 5px;font-size:1.2rem;line-height:1.1;letter-spacing:-.028em}
.tm-role{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#626a79;font-size:.84rem;font-weight:600;line-height:1.45}
.tm-bio{margin:14px 0 0;color:#5f6676;font-size:.95rem;line-height:1.7;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.tm-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:16px}
.tm-foot em{padding:5px 10px;border-radius:999px;background:#f1f2ec;color:#4f5a49;font-size:.7rem;font-style:normal;font-weight:800}
.tm-foot i{display:grid;place-items:center;flex:0 0 auto;width:34px;height:34px;border:1px solid rgba(17,21,33,.15);border-radius:50%;font-style:normal;transition:background .25s ease,border-color .25s ease,transform .3s ease}
.tm-card:hover .tm-foot i{background:var(--accent,#8cff5a);border-color:var(--accent,#8cff5a);transform:translate(2px,-2px)}
.tm-card.is-lead .tm-photo{flex:1;aspect-ratio:auto;min-height:340px}
.tm-card.is-lead .tm-body{padding:24px 28px 22px}
.tm-card.is-lead h3{font-size:clamp(1.6rem,2.4vw,2.2rem);letter-spacing:-.04em}
.tm-card.is-lead .tm-role{font-size:.92rem;-webkit-line-clamp:3}
.tm-notice{margin:22px 0 0;color:#6c737b;font-size:.84rem;line-height:1.6}
.js .tm-card.reveal{transition-delay:calc(var(--i,0) * 70ms)}
.js .tm-card.reveal.in-view{transition-delay:0s}
@media(max-width:1020px){
  .tm-lead-layout{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-lead-layout .tm-card.is-lead{grid-column:1/-1;grid-row:auto}
  .tm-card.is-lead .tm-photo{flex:none;aspect-ratio:16/10;min-height:0}
}
@media(max-width:600px){
  .tm-showcase{padding:64px 0}
  .tm-grid,.tm-lead-layout{grid-template-columns:1fr;gap:16px}
  .tm-card{border-radius:20px}.tm-card.is-lead .tm-body{padding:20px}
}
@media(prefers-reduced-motion:reduce){.tm-card,.tm-photo img,.tm-foot i{transition:none!important}.tm-card:hover{transform:none}}

/* ============================================================
   Case-study detail — dedicated "Project team" section
   (re-uses the .tm-card family from the home team block)
   ============================================================ */
.csd-team{padding:clamp(60px,6.5vw,100px) 0;background:#fff}
.csd-team-grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(250px,1fr))}
.csd-team-n-1{grid-template-columns:minmax(0,1fr)}
.csd-team-n-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.csd-team-n-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tm-card-detail .tm-photo{aspect-ratio:4/3}
.tm-card-detail .tm-bio{margin:12px 0 0;font-size:.9rem;line-height:1.65;-webkit-line-clamp:3}
.tm-skills{display:flex;flex-wrap:wrap;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.tm-skills li{padding:5px 10px;border-radius:999px;background:#f1f2ec;color:#4f5a49;font-size:.7rem;font-weight:750}
.tm-view{margin-left:auto;color:#111521;font-size:.78rem;font-weight:850}
.tm-card-detail .tm-foot{gap:10px}
.tm-card-detail.is-wide{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);border-radius:28px}
.tm-card-detail.is-wide .tm-photo{aspect-ratio:auto;min-height:340px}
.tm-card-detail.is-wide .tm-body{justify-content:center;padding:clamp(26px,3.6vw,48px)}
.tm-card-detail.is-wide h3{font-size:clamp(1.6rem,2.6vw,2.4rem);letter-spacing:-.04em}
.tm-card-detail.is-wide .tm-role{font-size:.95rem;-webkit-line-clamp:3}
.tm-card-detail.is-wide .tm-bio{font-size:1rem;line-height:1.75;-webkit-line-clamp:5}
.tm-card-detail.is-wide .tm-foot{margin-top:26px;padding-top:20px;border-top:1px solid rgba(17,21,33,.09)}
.tm-card:hover .tm-view{text-decoration:underline;text-underline-offset:3px}
/* section rhythm: gallery(paper) → team(white) → capabilities(paper) → more(white) → CTA(paper) */
.csd-related{background:linear-gradient(180deg,#f8f6f0 0%,#f1eee6 100%)}
.csd-more{background:#fff}
.csd-cta{background:linear-gradient(180deg,#f1eee6 0%,#f8f6f0 100%)}
@media(max-width:1020px){
  .csd-team-n-3,.csd-team-n-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-team-n-3 .tm-card:last-child:nth-child(odd){grid-column:1/-1}
  .tm-card-detail.is-wide{grid-template-columns:1fr}
  .tm-card-detail.is-wide .tm-photo{aspect-ratio:16/10;min-height:0}
}
@media(max-width:640px){.csd-team-grid,.csd-team-n-2,.csd-team-n-3{grid-template-columns:1fr}.tm-card-detail.is-wide{border-radius:22px}}

/* ============================================================
   Case-study detail — capabilities, grouped galleries, page nav
   (lives in cards.css because project_detail pages do not load detail.css)
   ============================================================ */
html:has(.csd-jump){scroll-behavior:smooth}
.csd-overview,.csd-story,.csd-outcomes,.csd-feature-groups,.csd-gallery-group{scroll-margin-top:64px}

/* in-page navigation */
.csd-jump{position:sticky;top:68px;z-index:40;background:rgba(255,255,255,.92);-webkit-backdrop-filter:saturate(1.4) blur(12px);backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid rgba(17,21,33,.08)}
.csd-jump ul{display:flex;gap:6px;margin:0;padding:10px 0;list-style:none;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.csd-jump ul::-webkit-scrollbar{display:none}
.csd-jump a{display:block;white-space:nowrap;padding:8px 14px;border-radius:999px;color:#3f4857;font-size:.8rem;font-weight:750;letter-spacing:-.005em;text-decoration:none;transition:background .2s ease,color .2s ease}
.csd-jump a:hover,.csd-jump a:focus-visible{background:#111521;color:#fff;outline:0}

/* outcomes: balanced grids for 6 / 8 items */
.csd-outcome-grid.csd-outcome-n-6,.csd-outcome-grid.csd-outcome-n-3,.csd-outcome-grid.csd-outcome-n-9{grid-template-columns:repeat(3,minmax(0,1fr))}
.csd-outcome-grid.csd-outcome-n-2{grid-template-columns:repeat(2,minmax(0,1fr))}

/* capability groups — 6-column grid so 2…8 cards always fill their rows */
.csd-feature-groups{padding:clamp(64px,8vw,112px) 0;background:linear-gradient(180deg,#f8f6f0 0%,#fff 100%)}
.csd-feature-group-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
.csd-feature-group{grid-column:span 2;position:relative;display:flex;gap:18px;padding:28px 26px;border:1px solid rgba(17,21,33,.09);border-radius:24px;background:#fff;box-shadow:0 14px 44px rgba(17,21,33,.06);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.csd-feature-group:hover{transform:translateY(-3px);border-color:rgba(17,21,33,.18);box-shadow:0 24px 54px rgba(17,21,33,.1)}
.csd-feature-group>div{min-width:0;flex:1}
.csd-feature-no{flex:0 0 auto;width:42px;height:42px;border-radius:14px;display:grid;place-items:center;background:#111521;color:var(--accent,#8cff5a);font-weight:800;font-size:12px;letter-spacing:.08em}
.csd-feature-group small{display:block;color:#98713d;font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:11px;margin-bottom:7px}
.csd-feature-group h3{margin:0 0 10px;font-size:clamp(1.1rem,1.5vw,1.4rem);line-height:1.18;letter-spacing:-.025em;color:#111521}
.csd-feature-group p{margin:0;color:#5f6676;font-size:.95rem;line-height:1.65}
.csd-feature-group ul,.csd-gallery-group-copy ul{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:9px}
.csd-feature-group li,.csd-gallery-group-copy li{position:relative;padding-left:20px;color:#3f4857;font-size:.93rem;line-height:1.5}
.csd-feature-group li:before,.csd-gallery-group-copy li:before{content:"";position:absolute;left:0;top:.62em;width:7px;height:7px;border-radius:50%;background:var(--accent,#8cff5a);box-shadow:0 0 0 3px rgba(140,255,90,.28)}
.csd-feature-group-n-1 .csd-feature-group,.csd-feature-group-n-7 .csd-feature-group:last-child,.csd-feature-group-n-10 .csd-feature-group:last-child{grid-column:1/-1}
.csd-feature-group-n-2 .csd-feature-group,.csd-feature-group-n-4 .csd-feature-group,.csd-feature-group-n-5 .csd-feature-group:nth-child(n+4),.csd-feature-group-n-8 .csd-feature-group:nth-child(n+7){grid-column:span 3}
/* a full-width closing card is shown dark with its points in two columns */
.csd-feature-group-n-7 .csd-feature-group:last-child,.csd-feature-group-n-10 .csd-feature-group:last-child{background:#111521;border-color:#111521}
.csd-feature-group-n-7 .csd-feature-group:last-child h3,.csd-feature-group-n-10 .csd-feature-group:last-child h3{color:#fff}
.csd-feature-group-n-7 .csd-feature-group:last-child p,.csd-feature-group-n-7 .csd-feature-group:last-child li,.csd-feature-group-n-10 .csd-feature-group:last-child p,.csd-feature-group-n-10 .csd-feature-group:last-child li{color:rgba(255,255,255,.76)}
.csd-feature-group-n-7 .csd-feature-group:last-child .csd-feature-no,.csd-feature-group-n-10 .csd-feature-group:last-child .csd-feature-no{background:var(--accent,#8cff5a);color:#0b1608}
.csd-feature-group-n-7 .csd-feature-group:last-child ul,.csd-feature-group-n-10 .csd-feature-group:last-child ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 32px}

/* grouped screenshot galleries */
.csd-gallery-group{padding:clamp(56px,6vw,92px) 0}
.csd-gallery-group.is-alt{background:#fff}
.csd-gallery-group-copy{max-width:610px}
.csd-gallery-group-copy p{margin:0;color:#5f6676;line-height:1.7}
.csd-gallery-group .csd-shot{display:flex;flex-direction:column}
.csd-gallery-group .csd-shot figcaption{padding:15px 4px 0;display:grid;gap:5px}
.csd-gallery-group .csd-shot figcaption strong{font-size:1rem;letter-spacing:-.015em;color:#111521}
.csd-gallery-group .csd-shot figcaption span{font-size:.9rem;line-height:1.55;color:#626a79}

@media (max-width:980px){
  .csd-feature-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-feature-group-grid .csd-feature-group{grid-column:auto!important}
  .csd-feature-group-grid .csd-feature-group:last-child:nth-child(odd){grid-column:1/-1!important}
  .csd-feature-group-grid .csd-feature-group ul{grid-template-columns:1fr!important}
  .csd-outcome-grid.csd-outcome-n-6,.csd-outcome-grid.csd-outcome-n-3,.csd-outcome-grid.csd-outcome-n-9{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:680px){
  .csd-feature-group-grid{grid-template-columns:1fr}
  .csd-feature-group-grid .csd-feature-group,.csd-feature-group-grid .csd-feature-group:last-child:nth-child(odd){grid-column:auto!important;padding:22px 20px}
  .csd-gallery-group-copy{max-width:none}
  .csd-jump a{padding:7px 12px}
  .csd-outcome-grid.csd-outcome-n-6,.csd-outcome-grid.csd-outcome-n-3,.csd-outcome-grid.csd-outcome-n-9,.csd-outcome-grid.csd-outcome-n-2{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){html:has(.csd-jump){scroll-behavior:auto}.csd-feature-group{transition:none}.csd-feature-group:hover{transform:none}}

/* Compact related case studies at the end of team profiles. */
.team-related-projects .project-gallery-section{padding:clamp(44px,5vw,68px) 0}
.team-related-projects .project-gallery-head{grid-template-columns:minmax(0,1fr) minmax(260px,.75fr);gap:clamp(20px,3vw,42px);align-items:end;margin-bottom:24px}
.team-related-projects .project-gallery-head h2{font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.02}
.team-related-projects .project-gallery-head>div:last-child p{font-size:.92rem;line-height:1.55;margin-bottom:10px}
.team-related-projects .project-gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.team-related-projects .project-card{border-radius:16px;box-shadow:0 8px 24px rgba(18,34,55,.055)}
.team-related-projects .project-card-media{aspect-ratio:16/8}
.team-related-projects .project-card-body{padding:16px 17px}
.team-related-projects .project-card-meta{font-size:.67rem;margin-bottom:10px}
.team-related-projects .project-card h3{font-size:clamp(1.1rem,1.5vw,1.35rem);line-height:1.15;margin-bottom:8px}
.team-related-projects .project-card p{font-size:.85rem;line-height:1.5;margin-bottom:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.team-related-projects .project-card-tags{gap:5px}
.team-related-projects .project-card-tags span{padding:5px 8px;font-size:.66rem}
.team-related-projects .project-card-link{margin-top:12px;padding-top:11px;font-size:.8rem}
@media(max-width:1100px){
  .team-related-projects .project-gallery-head{grid-template-columns:minmax(0,1fr) minmax(220px,.8fr)}
  .team-related-projects .project-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
}
@media(max-width:760px){
  .team-related-projects .project-gallery-section{padding:42px 0}
  .team-related-projects .project-gallery-head{grid-template-columns:1fr;gap:12px;margin-bottom:18px}
  .team-related-projects .project-gallery-head h2{font-size:clamp(1.7rem,7vw,2.3rem)}
  .team-related-projects .project-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .team-related-projects .project-card-body{padding:13px}
}
@media(max-width:560px){
  .team-related-projects .project-gallery-grid{grid-template-columns:minmax(0,1fr)}
  .team-related-projects .project-card{width:min(100%,520px);margin-inline:auto}
  .team-related-projects .project-card-media{aspect-ratio:16/7.5}
}

/* ============================================================
   Case-study detail — 2026 presentation refresh
   Cleaner reading hierarchy, section tabs and mobile-first polish.
   ============================================================ */
.case-study-hero .case-study-hero-copy{max-width:min(760px,72vw)}
.case-study-hero .case-study-hero-copy h1{max-width:13ch;font-size:clamp(2.9rem,6.2vw,5.75rem);line-height:.94;letter-spacing:-.052em;text-wrap:balance}
.case-study-hero .case-study-hero-copy>p{max-width:620px;font-size:clamp(1.04rem,1.45vw,1.25rem);line-height:1.68;text-wrap:pretty}

.csd-facts-wrap{padding-bottom:clamp(28px,4vw,50px)}
.csd-facts{border-radius:24px;box-shadow:0 28px 72px -24px rgba(17,21,33,.3)}
.csd-fact{padding:21px clamp(20px,2.4vw,30px) 20px}
.csd-fact dd{font-size:clamp(.96rem,1.1vw,1.08rem)}
.csd-facts-stack{padding:14px clamp(20px,2.4vw,30px)}

/* sticky project contents / tabs */
.csd-jump{top:68px;z-index:55;background:rgba(255,255,255,.94);border-top:1px solid rgba(17,21,33,.055);border-bottom:1px solid rgba(17,21,33,.08);box-shadow:0 8px 28px rgba(17,21,33,.045)}
.csd-jump-inner{position:relative;display:flex;align-items:center;gap:18px;min-height:58px}
.csd-jump-label{flex:0 0 auto;display:flex;align-items:center;gap:9px;color:#6c7481;font-size:.68rem;font-weight:850;letter-spacing:.105em;text-transform:uppercase;white-space:nowrap}
.csd-jump-label i{width:8px;height:8px;border-radius:50%;background:var(--accent,#8cff5a);box-shadow:0 0 0 4px rgba(140,255,90,.18)}
.csd-jump ul{flex:1;min-width:0;gap:4px;padding:8px 0;scroll-padding-inline:12px}
.csd-jump li{flex:0 0 auto}
.csd-jump a{position:relative;padding:9px 13px;border:1px solid transparent;border-radius:10px;color:#596171;font-size:.78rem;font-weight:780;transition:background .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
.csd-jump a:hover,.csd-jump a:focus-visible{background:#f4f5f1;color:#111521;border-color:rgba(17,21,33,.07);outline:0}
.csd-jump a.is-active,.csd-jump a[aria-current="location"]{background:#111521;color:#fff;border-color:#111521;box-shadow:0 5px 14px rgba(17,21,33,.16)}
.csd-jump-progress{position:absolute;left:0;right:0;bottom:-1px;height:2px;overflow:hidden;pointer-events:none}
.csd-jump-progress i{display:block;width:100%;height:100%;transform:scaleX(0);transform-origin:left center;background:var(--accent,#8cff5a);transition:transform .12s linear}

/* reading sections */
.csd-overview,.csd-story,.csd-outcomes,.csd-feature-groups,.csd-gallery-group{scroll-margin-top:76px}
.csd-overview{padding:clamp(54px,6.5vw,96px) 0 clamp(66px,8vw,112px)}
.csd-overview-grid{grid-template-columns:minmax(0,1.06fr) minmax(300px,.78fr);gap:clamp(36px,6vw,88px)}
.csd-overview-copy{max-width:760px}
.csd-overview-copy h2{max-width:14ch;margin:.55rem 0 22px;font-size:clamp(2rem,3.45vw,3.2rem);text-wrap:balance}
.csd-overview-copy p{max-width:68ch;font-size:1rem;line-height:1.78}
.csd-overview-copy p.csd-lead{font-size:clamp(1.08rem,1.35vw,1.2rem);line-height:1.72}
.csd-highlights{gap:12px;position:sticky;top:92px}
.csd-highlight{grid-template-columns:42px minmax(0,1fr);gap:14px;padding:19px 20px;border-radius:18px;box-shadow:0 9px 24px rgba(17,21,33,.04)}
.csd-highlight-no{font-size:1.6rem}
.csd-highlight strong{font-size:1.08rem}
.csd-highlight p{font-size:.89rem;line-height:1.58}

.csd-story{padding:clamp(58px,7vw,96px) 0;background:#f5f3ed}
.csd-story-grid{gap:18px}
.csd-story-card{min-height:100%;padding:clamp(26px,3.5vw,46px);border-radius:24px}
.csd-story-challenge{box-shadow:none}
.csd-story-card h2{max-width:15ch;margin:20px 0 14px;font-size:clamp(1.6rem,2.4vw,2.25rem);text-wrap:balance}
.csd-story-card p{font-size:.98rem;line-height:1.78}

.csd-outcomes{padding:clamp(60px,7vw,98px) 0}
.csd-head{margin-bottom:clamp(24px,3.4vw,40px)}
.csd-head h2{max-width:760px;font-size:clamp(1.95rem,3.35vw,3.15rem);line-height:1.04;text-wrap:balance}
.csd-head-split{grid-template-columns:minmax(0,1fr) minmax(280px,.55fr);gap:clamp(28px,5vw,72px);align-items:start}
.csd-head-split>p,.csd-gallery-group-copy p{font-size:.96rem;line-height:1.68}
.csd-outcome-grid{gap:12px}
.csd-outcome{position:relative;padding:24px 22px 25px;border:1px solid rgba(17,21,33,.075);border-top:3px solid #111521;border-radius:16px;background:#fafaf7}
.csd-outcome span{font-size:2rem}
.csd-outcome p{margin-top:17px;font-size:.94rem;line-height:1.58}

.csd-feature-groups{padding:clamp(60px,7vw,100px) 0;background:#f7f6f2}
.csd-feature-group-grid{gap:14px}
.csd-feature-group{gap:16px;padding:24px 22px;border-radius:20px;box-shadow:0 10px 30px rgba(17,21,33,.04)}
.csd-feature-no{width:38px;height:38px;border-radius:12px}
.csd-feature-group h3{font-size:clamp(1.08rem,1.35vw,1.28rem)}
.csd-feature-group p,.csd-feature-group li{font-size:.9rem;line-height:1.58}
.csd-feature-group ul{gap:7px;margin-top:13px}

/* gallery sections read like product walkthroughs instead of image dumps */
.csd-gallery-group{padding:clamp(58px,7vw,98px) 0;background:#fff}
.csd-gallery-group.is-alt{background:#f7f6f2}
.csd-gallery-group .csd-head{padding-bottom:26px;border-bottom:1px solid rgba(17,21,33,.08)}
.csd-gallery-group-copy{max-width:560px}
.csd-gallery-group-copy ul{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 22px;margin-top:14px}
.csd-gallery-group-copy li{font-size:.87rem;line-height:1.48}
.csd-gallery-grid{gap:clamp(14px,1.7vw,22px)}
.csd-shot-open{border-radius:20px;background:linear-gradient(145deg,#f5f6f3,#e9ece6);box-shadow:0 12px 34px rgba(17,21,33,.065)}
.csd-shot-frame{--pad:clamp(12px,1.8vw,22px)}
.csd-shot-bar{background:rgba(255,255,255,.76);backdrop-filter:blur(8px)}
.csd-gallery-group .csd-shot figcaption{grid-template-columns:32px minmax(0,1fr);gap:10px;padding:12px 3px 0}
.csd-shot-no{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:#111521;color:#fff;font-size:.65rem;font-weight:800;letter-spacing:.06em}
.csd-shot-text{display:grid;gap:3px;min-width:0}
.csd-gallery-group .csd-shot figcaption strong{font-size:.94rem}
.csd-gallery-group .csd-shot figcaption span{font-size:.84rem;line-height:1.48}

/* closing sections */
.csd-related,.csd-more{padding:clamp(54px,6vw,86px) 0}
.csd-related-grid{gap:12px}
.csd-related-card{padding:18px 58px 18px 20px;border-radius:16px}
.csd-cta{padding:clamp(46px,5vw,72px) 0 clamp(64px,7vw,100px)}
.csd-cta-panel{padding:clamp(28px,4.5vw,54px);border-radius:26px}

@media(max-width:1020px){
  .case-study-hero .case-study-hero-copy{max-width:760px}
  .csd-jump-inner{gap:12px}
  .csd-jump-label{display:none}
  .csd-overview-grid{grid-template-columns:1fr;gap:32px}
  .csd-highlights{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-highlight:last-child:nth-child(odd){grid-column:1/-1}
  .csd-gallery-group-copy ul{grid-template-columns:1fr}
}
@media(max-width:700px){
  .case-study-hero .case-study-hero-copy{max-width:none}
  .case-study-hero .case-study-hero-copy h1{max-width:none;font-size:clamp(2.45rem,12vw,3.65rem);line-height:.98;margin:17px 0 18px}
  .case-study-hero .case-study-hero-copy>p{font-size:1rem;line-height:1.62}
  .csd-facts-wrap{--ov:24px;padding-bottom:20px}
  .csd-facts{border-radius:16px;box-shadow:0 18px 44px -22px rgba(17,21,33,.38)}
  .csd-facts-main,.csd-facts-main.csd-facts-n-2,.csd-facts-main.csd-facts-n-3,.csd-facts-main.csd-facts-n-4{grid-template-columns:repeat(2,minmax(0,1fr))}
  .csd-fact{padding:14px 15px}
  .csd-fact dt{margin-bottom:6px;font-size:.6rem}
  .csd-fact dd{font-size:.88rem;line-height:1.3}
  .csd-facts-stack{padding:12px 15px}
  .csd-facts-stack li{padding:5px 9px;font-size:.7rem}
  .csd-jump-inner{min-height:50px}
  .csd-jump ul{width:calc(100vw - 32px);margin-right:-16px;padding:7px 16px 7px 0}
  .csd-jump a{padding:8px 11px;border-radius:9px;font-size:.73rem}
  .csd-overview,.csd-story,.csd-outcomes,.csd-feature-groups,.csd-gallery-group{scroll-margin-top:62px}
  .csd-overview{padding:44px 0 62px}
  .csd-overview-copy h2{margin-bottom:18px;font-size:clamp(1.85rem,8.5vw,2.55rem)}
  .csd-overview-copy p{font-size:.95rem;line-height:1.7}
  .csd-overview-copy p.csd-lead{font-size:1.04rem;line-height:1.62}
  .csd-highlights{grid-template-columns:1fr;gap:10px}
  .csd-highlight,.csd-highlight:last-child:nth-child(odd){grid-column:auto;padding:16px;border-radius:15px}
  .csd-story{padding:50px 0}
  .csd-story-grid{gap:12px}
  .csd-story-card{padding:23px 20px;border-radius:18px}
  .csd-story-card h2{font-size:1.65rem}
  .csd-story-card p{font-size:.94rem;line-height:1.68}
  .csd-outcomes,.csd-feature-groups,.csd-gallery-group{padding:52px 0}
  .csd-head{margin-bottom:24px}
  .csd-head h2{font-size:clamp(1.8rem,8.5vw,2.45rem)}
  .csd-head-split{gap:15px}
  .csd-outcome{padding:19px 18px 21px}
  .csd-outcome p{font-size:.91rem}
  .csd-feature-group-grid{gap:10px}
  .csd-feature-group-grid .csd-feature-group,.csd-feature-group-grid .csd-feature-group:last-child:nth-child(odd){padding:19px 17px;border-radius:16px;gap:13px}
  .csd-feature-no{width:34px;height:34px;border-radius:10px}
  .csd-feature-group h3{font-size:1.07rem}
  .csd-feature-group p,.csd-feature-group li{font-size:.88rem}
  .csd-gallery-group .csd-head{padding-bottom:20px}
  .csd-gallery-grid{gap:18px}
  .csd-shot-open{border-radius:16px}
  .csd-shot-action{right:10px;bottom:10px;padding:7px 9px}
  .csd-shot-count{left:10px;top:10px}
  .csd-gallery-group .csd-shot figcaption{padding-top:10px}
  .csd-related,.csd-more{padding:48px 0}
  .csd-cta{padding:42px 0 66px}
  .csd-cta-panel{padding:25px 20px;border-radius:20px}
}
@media(max-width:420px){
  .csd-facts-main,.csd-facts-main.csd-facts-n-2,.csd-facts-main.csd-facts-n-3,.csd-facts-main.csd-facts-n-4{grid-template-columns:1fr}
  .csd-fact:nth-child(even){border-left:0}
  .csd-fact:nth-child(n+2){border-top:1px solid rgba(17,21,33,.07)}
  .csd-fact{display:grid;grid-template-columns:minmax(86px,.42fr) minmax(0,1fr);gap:12px;align-items:center}
  .csd-fact dt{margin:0}
  .csd-fact dd{text-align:right}
}
@media(prefers-reduced-motion:reduce){.csd-jump-progress i{transition:none}.csd-jump a{transition:none}}

/* ============================================================
   Unified case-study cards — home, team profile and case-study index
   2026-10 presentation pass. One visual system for every project card.
   ============================================================ */
.cs-project-card{position:relative;background:#fff;border-color:rgba(17,21,33,.105);box-shadow:0 10px 34px rgba(17,21,33,.055);border-radius:22px;overflow:hidden;isolation:isolate}
.cs-project-card:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,var(--accent,#8cff5a),#c8d2bc);transform:scaleX(0);transform-origin:left;z-index:6;transition:transform .35s cubic-bezier(.2,.65,.2,1)}
.cs-project-card:hover:before,.cs-project-card:focus-visible:before{transform:scaleX(1)}
.cs-project-card:hover{transform:translateY(-5px);box-shadow:0 24px 64px rgba(17,21,33,.115)}
.cs-card-preview{position:relative;overflow:hidden;background:#eef1e8}
.cs-project-card .cs-stage{aspect-ratio:16/10;border-bottom:1px solid rgba(17,21,33,.075);background:radial-gradient(circle at 1px 1px,rgba(17,21,33,.07) 1px,transparent 0) 0 0/18px 18px,linear-gradient(145deg,#f3f5ee 0%,#e4e9dc 100%)}
.cs-project-card .cs-shot{filter:drop-shadow(0 16px 24px rgba(17,21,33,.15)) drop-shadow(0 0 1px rgba(17,21,33,.25))}
.cs-card-no{position:absolute;top:14px;left:14px;z-index:4;display:grid;place-items:center;min-width:38px;height:30px;padding:0 10px;border:1px solid rgba(255,255,255,.44);border-radius:999px;background:rgba(14,20,28,.76);color:#fff;font-size:.66rem;font-weight:850;letter-spacing:.13em;font-variant-numeric:tabular-nums;backdrop-filter:blur(10px);box-shadow:0 5px 18px rgba(0,0,0,.12)}
.cs-card-open{position:absolute;right:14px;bottom:14px;z-index:4;display:flex;align-items:center;gap:8px;padding:8px 11px 8px 13px;border-radius:999px;background:#111521;color:#fff;font-size:.68rem;font-weight:800;letter-spacing:.025em;box-shadow:0 8px 24px rgba(17,21,33,.22);opacity:0;transform:translateY(7px);transition:opacity .25s ease,transform .25s ease}
.cs-card-open i{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:var(--accent,#8cff5a);color:#0b1608;font-style:normal}
.cs-project-card:hover .cs-card-open,.cs-project-card:focus-visible .cs-card-open{opacity:1;transform:none}
.cs-project-card .cs-card-body{padding:22px 23px 20px}
.cs-project-card .cs-meta{margin-bottom:12px;gap:8px;font-size:.66rem;letter-spacing:.105em}
.cs-project-card .cs-meta span:first-child{position:relative;padding-left:12px}
.cs-project-card .cs-meta span:first-child:before{content:"";position:absolute;left:0;top:50%;width:5px;height:5px;border-radius:50%;background:#647158;transform:translateY(-50%)}
.cs-project-card h3{margin-bottom:10px;font-size:clamp(1.2rem,1.55vw,1.48rem);line-height:1.08;letter-spacing:-.032em;text-wrap:balance}
.cs-project-card p{color:#646c79;font-size:.9rem;line-height:1.62;-webkit-line-clamp:3}
.cs-project-card .cs-tags{gap:6px;margin:15px 0 17px}
.cs-project-card .cs-tags span{padding:5px 9px;border:1px solid rgba(17,21,33,.065);background:#f5f5f0;color:#596251;font-size:.68rem}
.cs-project-card .cs-cta{margin-top:auto;padding-top:14px;border-top:1px solid rgba(17,21,33,.08)}
.cs-project-card .cs-cta b{font-size:.8rem;letter-spacing:.005em}
.cs-project-card .cs-cta i{width:34px;height:34px;font-size:.92rem}

/* Related-project sections now use the same case-study card component. */
.cs-related-section .project-gallery-head{margin-bottom:30px}
.cs-related-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.cs-related-grid.cs-grid-1{grid-template-columns:minmax(0,1fr)}
.cs-related-grid.cs-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.cs-related-grid .cs-project-card{height:100%}

/* Team profile: same card design, deliberately a little denser. */
.team-related-projects .cs-related-section{padding:clamp(46px,5.5vw,72px) 0}
.team-related-projects .cs-related-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.team-related-projects .cs-project-card.is-compact .cs-stage{aspect-ratio:16/9}
.team-related-projects .cs-project-card.is-compact .cs-card-body{padding:17px 18px 16px}
.team-related-projects .cs-project-card.is-compact h3{font-size:clamp(1.08rem,1.35vw,1.28rem)}
.team-related-projects .cs-project-card.is-compact p{font-size:.83rem;line-height:1.52;-webkit-line-clamp:2}
.team-related-projects .cs-project-card.is-compact .cs-tags{margin:12px 0 14px}
.team-related-projects .cs-project-card.is-compact .cs-tags span{font-size:.64rem;padding:4px 7px}
.team-related-projects .cs-project-card.is-compact .cs-cta{padding-top:12px}
.team-related-projects .cs-project-card.is-compact .cs-card-no{top:10px;left:10px;min-width:34px;height:27px;font-size:.61rem}
.team-related-projects .cs-project-card.is-compact .cs-card-open{right:10px;bottom:10px}

/* Keep the feature card part of the same visual family. */
.cs-feature{border-color:rgba(17,21,33,.105);box-shadow:0 12px 40px rgba(17,21,33,.065)}
.cs-feature .cs-stage{background:radial-gradient(circle at 1px 1px,rgba(17,21,33,.07) 1px,transparent 0) 0 0/18px 18px,linear-gradient(145deg,#f3f5ee 0%,#e4e9dc 100%)}
.cs-feature-copy .cs-meta span:not(.cs-badge):first-of-type{color:#505a67}
.cs-feature-copy .cs-cta{border-top-color:rgba(17,21,33,.08)}

@media(hover:none){.cs-card-open{display:none}}
@media(max-width:1020px){
  .cs-related-grid,.team-related-projects .cs-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cs-related-grid.cs-grid-1{grid-template-columns:1fr}
}
@media(max-width:700px){
  .cs-project-card{border-radius:18px;box-shadow:0 8px 26px rgba(17,21,33,.055)}
  .cs-project-card:hover{transform:none}
  .cs-project-card .cs-stage,.team-related-projects .cs-project-card.is-compact .cs-stage{aspect-ratio:16/10}
  .cs-project-card .cs-card-body,.team-related-projects .cs-project-card.is-compact .cs-card-body{padding:18px 18px 16px}
  .cs-project-card h3,.team-related-projects .cs-project-card.is-compact h3{font-size:1.18rem}
  .cs-project-card p,.team-related-projects .cs-project-card.is-compact p{font-size:.88rem;line-height:1.55;-webkit-line-clamp:3}
  .cs-card-no{top:10px;left:10px}
  .cs-related-grid,.team-related-projects .cs-related-grid,.cs-related-grid.cs-grid-2{grid-template-columns:minmax(0,1fr);gap:14px}
  .cs-related-section .project-gallery-head{margin-bottom:20px}
  .team-related-projects .cs-related-section{padding:42px 0}
}
@media(prefers-reduced-motion:reduce){
  .cs-project-card,.cs-project-card:before,.cs-card-open{transition:none!important}
  .cs-project-card:hover{transform:none}
}

/* ============================================================
   Case-study cards — refinement pass
   Lighter hierarchy, shorter cards, restrained interaction states.
   ============================================================ */
.cs-feature,.cs-project-card{
  border-color:rgba(17,21,33,.095);
  box-shadow:0 10px 30px rgba(17,21,33,.052);
}
.cs-feature:hover,.cs-project-card:hover{
  transform:translateY(-3px);
  border-color:rgba(17,21,33,.15);
  box-shadow:0 18px 46px rgba(17,21,33,.09);
}
.cs-project-card:before{display:none}
.cs-feature:hover .cs-shot,.cs-project-card:hover .cs-shot{transform:scale(1.012)}

/* Browser-like framing for case-study screenshots. */
.cs-stage{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.cs-browser-shell{
  width:100%;
  height:100%;
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  background:linear-gradient(180deg,#222a36 0%,#171e28 100%);
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 22px 34px rgba(7,12,20,.22), 0 0 0 1px rgba(255,255,255,.03) inset;
}
.cs-browser-top,.cs-browser-bottom{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:34px;
  padding:8px 12px;
  background:linear-gradient(180deg,#3a4554 0%,#2c3542 100%);
}
.cs-browser-top{
  border-bottom:1px solid rgba(255,255,255,.15);
}
.cs-browser-bottom{
  justify-content:space-between;
  min-height:30px;
  border-top:1px solid rgba(255,255,255,.13);
  background:linear-gradient(180deg,#2c3542 0%,#242c37 100%);
}
.cs-browser-dots{
  display:inline-flex;
  align-items:center;
  gap:5px;
  flex:0 0 auto;
}
.cs-browser-dots i{
  width:8px;
  height:8px;
  border-radius:50%;
  background:rgba(255,255,255,.32);
}
.cs-browser-dots i:nth-child(1){background:#ff6f61}
.cs-browser-dots i:nth-child(2){background:#ffcc4d}
.cs-browser-dots i:nth-child(3){background:#30d158}
.cs-browser-tab{
  min-width:0;
  flex:1 1 auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  max-width:72%;
  padding:7px 11px;
  border-radius:10px 10px 0 0;
  background:linear-gradient(180deg,rgba(255,255,255,.14),rgba(255,255,255,.075));
  color:#f5f7fb;
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset;
}
.cs-browser-tab em{
  width:12px;
  height:12px;
  border-radius:4px;
  background:linear-gradient(135deg,rgba(92,216,255,.95),rgba(125,255,168,.95));
  box-shadow:0 0 0 1px rgba(255,255,255,.09) inset;
  flex:0 0 auto;
}
.cs-browser-tab strong{
  min-width:0;
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:.67rem;
  line-height:1.1;
  letter-spacing:.02em;
  font-weight:750;
}
.cs-browser-actions{
  display:inline-flex;
  align-items:center;
  justify-content:flex-end;
  gap:6px;
  flex:0 0 auto;
}
.cs-browser-actions b{
  display:block;
  width:16px;
  height:16px;
  border-radius:5px;
  background:rgba(255,255,255,.08);
  box-shadow:0 0 0 1px rgba(255,255,255,.05) inset;
}
.cs-browser-screen{
  min-height:0;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#111720;
}
.cs-browser-screen .cs-shot{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  border-radius:0;
}
.cs-stage-empty .cs-browser-screen{
  color:#f2f5fb;
  font-size:clamp(1.3rem,3vw,2rem);
  font-weight:800;
  letter-spacing:.02em;
}
.cs-browser-bottom small{
  font-size:.58rem;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.11em;
  color:rgba(247,250,255,.84);
  font-weight:720;
}

/* Featured project: balanced 58/42 split and a deliberately shorter footprint. */
.cs-feature{
  grid-template-columns:minmax(0,1.16fr) minmax(360px,.84fr);
  margin-bottom:18px;
  border-radius:24px;
}
.cs-feature .cs-stage{
  min-height:clamp(310px,31vw,420px);
  border-right-color:rgba(17,21,33,.07);
}
.cs-feature-copy{
  justify-content:center;
  padding:clamp(24px,3vw,40px);
}
.cs-feature-copy .cs-meta{margin-bottom:12px}
.cs-feature-copy h3{
  margin-bottom:12px;
  max-width:14ch;
  font-size:clamp(1.72rem,2.55vw,2.55rem);
  line-height:1.025;
  letter-spacing:-.038em;
}
.cs-feature-copy>p{
  max-width:47ch;
  font-size:.96rem;
  line-height:1.62;
  -webkit-line-clamp:3;
}
.cs-feature-copy .cs-tags{margin:16px 0 18px}
.cs-feature-copy .cs-cta{margin-top:0;padding-top:16px}

/* Cards: calmer media and tighter editorial rhythm. */
.cs-grid{gap:18px}
.cs-project-card{border-radius:19px}
.cs-project-card .cs-stage{
  aspect-ratio:16/9;
  background:linear-gradient(145deg,#eef1eb 0%,#e5e9e0 100%);
}
.cs-project-card .cs-shot{
  filter:drop-shadow(0 10px 18px rgba(6,12,20,.18)) drop-shadow(0 0 1px rgba(17,21,33,.2));
}
.cs-card-no{
  top:11px;left:11px;
  min-width:34px;height:27px;padding:0 9px;
  background:rgba(17,21,33,.72);
  font-size:.62rem;
  box-shadow:none;
}
.cs-card-open{display:none}
.cs-project-card .cs-card-body{padding:18px 20px 17px}
.cs-project-card .cs-meta{
  min-height:18px;
  margin-bottom:9px;
  gap:7px;
  font-size:.62rem;
  letter-spacing:.09em;
}
.cs-project-card .cs-meta span:first-child{padding-left:10px}
.cs-project-card .cs-meta span:first-child:before{width:4px;height:4px}
.cs-project-card h3{
  margin-bottom:8px;
  font-size:clamp(1.15rem,1.35vw,1.34rem);
  line-height:1.09;
  letter-spacing:-.026em;
}
.cs-project-card p{
  font-size:.85rem;
  line-height:1.55;
  -webkit-line-clamp:2;
}
.cs-project-card .cs-tags{gap:5px;margin:12px 0 14px}
.cs-project-card .cs-tags span{
  padding:4px 8px;
  border-color:rgba(17,21,33,.055);
  background:#f3f4ef;
  color:#596154;
  font-size:.64rem;
  font-weight:720;
}

/* CTA is one quiet action rather than a detached button. */
.cs-project-card .cs-cta,.cs-feature-copy .cs-cta{
  justify-content:flex-start;
  gap:8px;
  border-top-color:rgba(17,21,33,.075);
  color:#202735;
}
.cs-project-card .cs-cta{padding-top:12px}
.cs-project-card .cs-cta b,.cs-feature-copy .cs-cta b{font-size:.77rem;font-weight:820}
.cs-project-card .cs-cta i,.cs-feature-copy .cs-cta i{
  display:inline;
  width:auto;height:auto;
  border:0;border-radius:0;
  background:transparent!important;
  color:inherit!important;
  font-size:.88rem;
  line-height:1;
  transform:none;
  transition:transform .22s ease;
}
.cs-feature:hover .cs-cta i,.cs-project-card:hover .cs-cta i{transform:translate(2px,-2px)}

/* Team-profile cards keep the same language, only slightly denser. */
.team-related-projects .cs-related-grid{gap:15px}
.team-related-projects .cs-project-card.is-compact .cs-stage{aspect-ratio:16/9}
.team-related-projects .cs-project-card.is-compact .cs-card-body{padding:16px 17px 15px}
.team-related-projects .cs-project-card.is-compact h3{font-size:clamp(1.06rem,1.22vw,1.2rem)}
.team-related-projects .cs-project-card.is-compact p{font-size:.81rem;line-height:1.48;-webkit-line-clamp:2}
.team-related-projects .cs-project-card.is-compact .cs-tags{margin:10px 0 12px}
.team-related-projects .cs-project-card.is-compact .cs-cta{padding-top:11px}

/* Balanced single-card final rows should not become oversized feature-like cards. */
.cs-grid-1 .cs-project-card,.cs-index-grid.cs-rem-1 .cs-project-card:last-child{
  display:flex;
  grid-column:auto;
}
.cs-grid-1 .cs-project-card .cs-stage,.cs-index-grid.cs-rem-1 .cs-project-card:last-child .cs-stage{
  min-height:0;
  aspect-ratio:16/9;
  border-right:0;
  border-bottom:1px solid rgba(17,21,33,.075);
}
.cs-grid-1 .cs-project-card .cs-card-body,.cs-index-grid.cs-rem-1 .cs-project-card:last-child .cs-card-body{
  justify-content:flex-start;
  padding:18px 20px 17px;
}
.cs-grid-1 .cs-project-card .cs-cta,.cs-index-grid.cs-rem-1 .cs-project-card:last-child .cs-cta{margin-top:auto}

@media(max-width:1020px){
  .cs-feature{grid-template-columns:minmax(0,1.08fr) minmax(310px,.92fr)}
  .cs-feature .cs-stage{min-height:330px}
  .cs-feature-copy{padding:26px}
  .cs-feature-copy h3{font-size:clamp(1.6rem,3.2vw,2.15rem)}
}
@media(max-width:820px){
  .cs-feature{grid-template-columns:1fr;border-radius:20px}
  .cs-feature .cs-stage{aspect-ratio:16/9;min-height:0;border-right:0;border-bottom:1px solid rgba(17,21,33,.07)}
  .cs-feature-copy{padding:22px 22px 20px}
  .cs-feature-copy h3{max-width:none;font-size:clamp(1.45rem,5.2vw,1.9rem)}
  .cs-feature-copy>p{font-size:.9rem;line-height:1.55;-webkit-line-clamp:3}
  .cs-feature-copy .cs-tags{margin:13px 0 14px}
}
@media(max-width:700px){
  .cs-grid{gap:13px}
  .cs-project-card{border-radius:17px;box-shadow:0 7px 20px rgba(17,21,33,.045)}
  .cs-project-card .cs-stage,.team-related-projects .cs-project-card.is-compact .cs-stage{aspect-ratio:16/9}
  .cs-project-card .cs-card-body,.team-related-projects .cs-project-card.is-compact .cs-card-body{padding:16px 16px 15px}
  .cs-project-card .cs-meta{margin-bottom:8px;font-size:.6rem}
  .cs-project-card h3,.team-related-projects .cs-project-card.is-compact h3{font-size:1.13rem;line-height:1.1}
  .cs-project-card p,.team-related-projects .cs-project-card.is-compact p{font-size:.84rem;line-height:1.5;-webkit-line-clamp:2}
  .cs-project-card .cs-tags{margin:11px 0 12px}
  .cs-project-card .cs-tags span{font-size:.62rem;padding:4px 7px}
  .cs-project-card .cs-cta{padding-top:11px}
  .cs-feature{margin-bottom:14px}
  .cs-feature-copy{padding:19px 17px 17px}
  .cs-feature-copy .cs-meta{margin-bottom:9px;font-size:.62rem}
  .cs-feature-copy h3{margin-bottom:9px;font-size:1.45rem;line-height:1.04}
  .cs-feature-copy>p{font-size:.86rem;line-height:1.5;-webkit-line-clamp:3}
  .cs-feature-copy .cs-tags{gap:5px;margin:11px 0 12px}
  .cs-feature-copy .cs-tags span{padding:4px 7px;font-size:.62rem}
  .cs-feature-copy .cs-cta{padding-top:12px}
}

@media(max-width:700px){
  .cs-stage{padding:0}
  .cs-browser-shell{border-radius:14px}
  .cs-browser-top,.cs-browser-bottom{padding:7px 10px}
  .cs-browser-top{min-height:31px}
  .cs-browser-bottom{min-height:28px}
  .cs-browser-dots i{width:7px;height:7px}
  .cs-browser-tab{gap:7px;padding:6px 9px;max-width:68%}
  .cs-browser-tab em{width:10px;height:10px;border-radius:3px}
  .cs-browser-tab strong{font-size:.62rem}
  .cs-browser-actions b{width:14px;height:14px;border-radius:4px}
  .cs-browser-screen{padding:0}
  .cs-browser-screen .cs-shot{border-radius:0}
  .cs-browser-bottom small{font-size:.54rem;letter-spacing:.1em}
}

/* ============================================================
   Case-study browser frame — layout-aware corner treatment
   Image chrome joins cleanly to adjacent copy instead of creating
   a double-rounded seam between media and text.
   ============================================================ */

/* Standard cards place copy below the image: keep only the top corners rounded. */
.cs-project-card .cs-browser-shell{
  border-radius:16px 16px 0 0;
}

/* Featured cards place copy to the right on desktop: keep only the left corners rounded. */
.cs-feature .cs-browser-shell{
  border-radius:16px 0 0 16px;
}

/* Where the feature collapses to stacked media + copy, the join moves to the bottom edge. */
@media(max-width:820px){
  .cs-feature .cs-browser-shell{
    border-radius:16px 16px 0 0;
  }
}

/* Preserve the slightly tighter mobile radius while keeping the shared edge square. */
@media(max-width:700px){
  .cs-project-card .cs-browser-shell,
  .cs-feature .cs-browser-shell{
    border-radius:14px 14px 0 0;
  }
}

/* ============================================================
   Case-study browser chrome — polished integration pass
   Keeps the screenshot dominant while making the browser framing
   feel like part of the card rather than a second nested card.
   ============================================================ */
.cs-feature,.cs-project-card{
  overflow:hidden;
}
.cs-feature:focus-visible,.cs-project-card:focus-visible{
  outline:2px solid rgba(35,47,63,.72);
  outline-offset:3px;
}

/* Media sits directly on the card edge. */
.cs-feature .cs-stage,.cs-project-card .cs-stage{
  padding:0;
  overflow:hidden;
  background:#eef1ec;
}
.cs-browser-shell{
  border:0;
  box-shadow:none;
  background:#121923;
}

/* Compact neutral browser chrome: visible over every screenshot, not dominant. */
.cs-browser-top{
  min-height:36px;
  gap:9px;
  padding:7px 11px;
  background:linear-gradient(180deg,#3d4858 0%,#2a3442 100%);
  border-bottom:1px solid rgba(255,255,255,.10);
  box-shadow:0 1px 0 rgba(255,255,255,.055) inset;
}
.cs-browser-bottom{
  min-height:28px;
  gap:10px;
  padding:6px 12px;
  background:linear-gradient(180deg,#27313e 0%,#202936 100%);
  border-top:1px solid rgba(255,255,255,.095);
  box-shadow:0 -1px 0 rgba(0,0,0,.14) inset;
}
.cs-browser-dots{gap:5px}
.cs-browser-dots i{width:7px;height:7px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.cs-browser-tab{
  max-width:min(72%,470px);
  min-height:24px;
  padding:5px 10px;
  gap:7px;
  border:1px solid rgba(255,255,255,.075);
  border-bottom-color:rgba(255,255,255,.035);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.075));
  box-shadow:0 1px 0 rgba(255,255,255,.055) inset;
}
.cs-browser-tab em{
  width:10px;
  height:10px;
  border-radius:3px;
  background:linear-gradient(135deg,#74d6dc,#91e1b0);
}
.cs-browser-tab strong{
  font-size:.62rem;
  font-weight:720;
  letter-spacing:.01em;
  color:rgba(255,255,255,.94);
}
.cs-browser-actions{gap:5px;margin-left:auto}
.cs-browser-actions b{
  width:14px;
  height:14px;
  border-radius:4px;
  border:1px solid rgba(255,255,255,.07);
  background:rgba(255,255,255,.065);
  box-shadow:none;
}
.cs-browser-screen{
  padding:0;
  background:#101720;
  overflow:hidden;
}
.cs-browser-screen .cs-shot{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  border-radius:0;
  filter:none;
  transform:translateZ(0);
}
.cs-browser-bottom small{
  max-width:72%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:rgba(245,248,252,.82);
  font-size:.54rem;
  font-weight:760;
  letter-spacing:.105em;
}
.cs-browser-bottom small:last-child{max-width:none;color:rgba(245,248,252,.58)}

/* The browser chrome itself follows the card join exactly. */
.cs-feature .cs-browser-shell{
  border-radius:23px 0 0 23px;
}
.cs-project-card .cs-browser-shell{
  border-radius:18px 18px 0 0;
}

/* Give the featured media a slightly calmer proportion. */
.cs-feature{
  grid-template-columns:minmax(0,1.13fr) minmax(360px,.87fr);
}
.cs-feature .cs-stage{
  min-height:clamp(320px,29vw,400px);
}

/* Card number belongs to the browser utility area, not over the traffic lights. */
.cs-card-no{
  top:7px;
  right:8px;
  left:auto;
  z-index:7;
  min-width:30px;
  height:22px;
  padding:0 7px;
  border:1px solid rgba(255,255,255,.11);
  background:rgba(13,19,28,.74);
  color:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,.15);
  backdrop-filter:blur(8px);
  font-size:.56rem;
}
/* Avoid visual collision between the number and decorative browser actions. */
.cs-project-card .cs-browser-actions{padding-right:32px}

/* Lower cards: keep media strong but not taller than the information card beneath it. */
.cs-project-card .cs-stage,
.team-related-projects .cs-project-card.is-compact .cs-stage{
  aspect-ratio:16/8.65;
}

/* Desktop feature has copy at the right, so browser joins with a square right edge. */
@media(min-width:821px){
  .cs-feature .cs-stage{border-radius:23px 0 0 23px}
}

/* Stacked feature + all normal cards join vertically with square lower media corners. */
@media(max-width:820px){
  .cs-feature .cs-browser-shell{border-radius:19px 19px 0 0}
  .cs-feature .cs-stage{border-radius:19px 19px 0 0}
}

@media(max-width:700px){
  .cs-browser-top{min-height:32px;padding:6px 9px;gap:7px}
  .cs-browser-bottom{min-height:25px;padding:5px 9px}
  .cs-browser-dots{gap:4px}
  .cs-browser-dots i{width:6px;height:6px}
  .cs-browser-tab{min-height:21px;max-width:68%;padding:4px 8px;gap:6px;border-radius:7px}
  .cs-browser-tab em{width:9px;height:9px}
  .cs-browser-tab strong{font-size:.57rem}
  .cs-browser-actions b{width:12px;height:12px}
  .cs-browser-bottom small{font-size:.5rem}
  .cs-project-card .cs-browser-shell,.cs-feature .cs-browser-shell{border-radius:16px 16px 0 0}
  .cs-feature .cs-stage{border-radius:16px 16px 0 0}
  .cs-card-no{top:5px;right:6px;height:21px;min-width:28px;font-size:.53rem}
  .cs-project-card .cs-browser-actions{padding-right:29px}
  .cs-project-card .cs-stage,.team-related-projects .cs-project-card.is-compact .cs-stage{aspect-ratio:16/9}
}

/* ============================================================
   Case-study browser chrome — contrast + responsive refinement
   Clearer navigation on light/dark screenshots and safer small-screen cards.
   ============================================================ */
.cs-browser-top{
  background:linear-gradient(180deg,#253a55 0%,#18293d 100%);
  border-bottom:1px solid rgba(255,255,255,.16);
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset,0 4px 12px rgba(5,12,22,.16);
}
.cs-browser-bottom{
  background:linear-gradient(180deg,#1b2c41 0%,#132236 100%);
  border-top:1px solid rgba(255,255,255,.15);
  box-shadow:0 -1px 0 rgba(0,0,0,.16) inset;
}
.cs-browser-tab{
  border:1px solid rgba(255,255,255,.2);
  background:linear-gradient(180deg,#5d718b 0%,#43566f 100%);
  box-shadow:0 1px 0 rgba(255,255,255,.13) inset,0 2px 7px rgba(0,0,0,.14);
}
.cs-browser-tab strong{
  color:#fff;
  text-shadow:0 1px 1px rgba(0,0,0,.24);
}
.cs-browser-tab em{
  background:linear-gradient(135deg,#6fe8ff,#7dffb2);
  box-shadow:0 0 0 1px rgba(0,0,0,.14),0 0 0 2px rgba(255,255,255,.08);
}
.cs-browser-actions b{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.13);
  box-shadow:0 1px 0 rgba(255,255,255,.07) inset;
}
.cs-browser-bottom small{
  color:rgba(255,255,255,.92);
  text-shadow:0 1px 1px rgba(0,0,0,.2);
}
.cs-browser-bottom small:last-child{color:rgba(255,255,255,.7)}
.cs-browser-dots i{box-shadow:0 0 0 1px rgba(0,0,0,.22),0 1px 2px rgba(0,0,0,.18)}

/* Tablet: two-column cards remain readable and feature becomes less dominant. */
@media(max-width:1020px){
  .cs-grid,.cs-related-grid,.team-related-projects .cs-related-grid{gap:15px}
  .cs-feature{grid-template-columns:minmax(0,1.04fr) minmax(300px,.96fr)}
  .cs-feature .cs-stage{min-height:300px}
  .cs-feature-copy{padding:23px}
  .cs-feature-copy h3{font-size:clamp(1.48rem,3vw,1.95rem)}
  .cs-project-card .cs-card-body{padding:16px 17px 15px}
  .cs-project-card h3{font-size:clamp(1.08rem,1.8vw,1.23rem)}
  .cs-project-card p{font-size:.82rem;line-height:1.5}
  .cs-browser-tab{max-width:68%}
}

/* Stacked feature: media joins cleanly to copy and keeps a sensible height. */
@media(max-width:820px){
  .cs-feature{grid-template-columns:1fr}
  .cs-feature .cs-stage{aspect-ratio:16/8.9;min-height:0}
  .cs-feature-copy{padding:20px 20px 18px}
  .cs-feature-copy h3{font-size:clamp(1.35rem,4.5vw,1.72rem);line-height:1.06}
  .cs-feature-copy>p{font-size:.87rem;line-height:1.52}
}

/* Phones: one-column cards, compact chrome and no collisions in the header. */
@media(max-width:700px){
  .cs-grid,.cs-related-grid,.team-related-projects .cs-related-grid,
  .cs-related-grid.cs-grid-2{grid-template-columns:1fr;gap:13px}

  .cs-feature,.cs-project-card{width:100%;min-width:0}
  .cs-feature{border-radius:17px;margin-bottom:13px}
  .cs-project-card{border-radius:16px}

  .cs-feature .cs-stage,
  .cs-project-card .cs-stage,
  .team-related-projects .cs-project-card.is-compact .cs-stage{
    aspect-ratio:16/9;
    min-height:0;
  }

  .cs-browser-top{min-height:34px;padding:6px 8px;gap:6px}
  .cs-browser-bottom{min-height:25px;padding:5px 9px}
  .cs-browser-dots{gap:3px}
  .cs-browser-dots i{width:6px;height:6px}
  .cs-browser-tab{
    min-width:0;
    max-width:none;
    flex:1 1 auto;
    min-height:22px;
    padding:4px 7px;
    gap:5px;
    border-radius:6px;
  }
  .cs-browser-tab em{width:8px;height:8px;flex:0 0 8px}
  .cs-browser-tab strong{font-size:.56rem;letter-spacing:0}
  .cs-browser-actions{display:none}

  /* Number gets its own compact utility badge without stealing tab width. */
  .cs-card-no{
    top:6px;right:7px;
    min-width:25px;height:20px;padding:0 6px;
    font-size:.5rem;
    border-color:rgba(255,255,255,.18);
    background:rgba(8,17,30,.8);
  }
  .cs-project-card .cs-browser-tab{padding-right:36px}
  .cs-project-card .cs-browser-actions{padding-right:0}

  .cs-browser-bottom small{
    max-width:76%;
    font-size:.48rem;
    letter-spacing:.075em;
  }

  .cs-project-card .cs-card-body,
  .team-related-projects .cs-project-card.is-compact .cs-card-body{
    padding:15px 15px 14px;
  }
  .cs-project-card .cs-meta{min-height:0;margin-bottom:7px;gap:6px;font-size:.57rem;line-height:1.3}
  .cs-project-card h3,.team-related-projects .cs-project-card.is-compact h3{
    margin-bottom:7px;
    font-size:1.08rem;
    line-height:1.12;
  }
  .cs-project-card p,.team-related-projects .cs-project-card.is-compact p{
    font-size:.82rem;
    line-height:1.48;
    -webkit-line-clamp:2;
  }
  .cs-project-card .cs-tags{gap:4px;margin:10px 0 11px}
  .cs-project-card .cs-tags span{padding:4px 6px;font-size:.59rem}
  .cs-project-card .cs-cta{padding-top:10px}
  .cs-project-card .cs-cta b{font-size:.73rem}

  .cs-feature-copy{padding:17px 15px 15px}
  .cs-feature-copy .cs-meta{flex-wrap:wrap;gap:6px;margin-bottom:8px;font-size:.58rem}
  .cs-feature-copy h3{font-size:1.35rem;line-height:1.05;margin-bottom:8px}
  .cs-feature-copy>p{font-size:.83rem;line-height:1.48;-webkit-line-clamp:3}
  .cs-feature-copy .cs-tags{gap:4px;margin:10px 0 11px}
  .cs-feature-copy .cs-tags span{font-size:.59rem;padding:4px 6px}
  .cs-feature-copy .cs-cta{padding-top:10px}
}

/* Very small phones: simplify browser details further to protect the screenshot. */
@media(max-width:430px){
  .cs-browser-top{min-height:31px;padding:5px 7px}
  .cs-browser-bottom{min-height:23px;padding:4px 7px}
  .cs-browser-dots i{width:5px;height:5px}
  .cs-browser-tab{min-height:20px;padding:3px 6px}
  .cs-browser-tab em{width:7px;height:7px;flex-basis:7px}
  .cs-browser-tab strong{font-size:.52rem}
  .cs-card-no{top:5px;right:6px;height:19px;min-width:24px;font-size:.47rem}
  .cs-project-card .cs-browser-tab{padding-right:33px}
  .cs-browser-bottom small{font-size:.45rem;letter-spacing:.06em}
  .cs-browser-bottom small:last-child{display:none}

  .cs-project-card .cs-card-body,
  .team-related-projects .cs-project-card.is-compact .cs-card-body{padding:14px 13px 13px}
  .cs-project-card h3,.team-related-projects .cs-project-card.is-compact h3{font-size:1.02rem}
  .cs-project-card p,.team-related-projects .cs-project-card.is-compact p{font-size:.79rem}
  .cs-feature-copy{padding:15px 13px 14px}
  .cs-feature-copy h3{font-size:1.24rem}
}


/* ============================================================
   Case-study detail gallery — browser frame parity
   Matches the browser treatment used by case-study listing cards.
   ============================================================ */
.csd-gallery .csd-shot-open{
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  padding:0;
  border:1px solid rgba(205,214,226,.92);
  border-radius:18px;
  overflow:hidden;
  background:#101a29;
  box-shadow:0 14px 36px rgba(10,20,34,.12),0 0 0 1px rgba(255,255,255,.32) inset;
}
.csd-gallery .csd-shot-open:hover{
  transform:translateY(-3px);
  border-color:rgba(177,193,211,.98);
  box-shadow:0 24px 52px rgba(10,20,34,.17);
}
.csd-gallery .csd-shot-open:focus-visible{
  outline:3px solid rgba(78,136,202,.34);
  outline-offset:4px;
}
.csd-gallery .csd-shot-bar{
  position:relative;
  z-index:4;
  display:flex;
  align-items:center;
  gap:6px;
  min-width:0;
  min-height:34px;
  padding:7px 11px;
  border-bottom:1px solid rgba(255,255,255,.12);
  background:linear-gradient(180deg,#3d5069 0%,#26384f 100%);
  color:#fff;
  backdrop-filter:none;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset;
}
.csd-gallery .csd-shot-bar>i{
  display:block;
  width:7px;
  height:7px;
  flex:0 0 auto;
  border-radius:50%;
  background:#ff6d66;
  box-shadow:none;
}
.csd-gallery .csd-shot-bar>i:nth-child(2){background:#ffc94d}
.csd-gallery .csd-shot-bar>i:nth-child(3){background:#35d76f}
.csd-gallery .csd-shot-bar em{
  min-width:0;
  max-width:72%;
  margin-left:5px;
  padding:5px 10px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  border-radius:8px;
  background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.07));
  color:#f5f8fc;
  font-size:.66rem;
  font-style:normal;
  font-weight:760;
  line-height:1.15;
  letter-spacing:.015em;
  text-overflow:ellipsis;
  white-space:nowrap;
  box-shadow:0 1px 0 rgba(255,255,255,.08) inset;
}
.csd-gallery .csd-shot-bar em:empty{
  width:min(46%,180px);
  height:24px;
  padding:0;
}
.csd-gallery .csd-shot-frame{
  --pad:0;
  position:relative;
  display:block;
  min-height:0;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#0c1420;
}
.csd-gallery .csd-shot-frame img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transform:none;
}
.csd-gallery .csd-shot-open:hover .csd-shot-frame img{transform:scale(1.008)}
.csd-gallery .csd-shot-browser-foot{
  position:relative;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:29px;
  padding:7px 11px;
  border-top:1px solid rgba(255,255,255,.09);
  background:linear-gradient(180deg,#24364c 0%,#1a293b 100%);
  color:rgba(246,249,253,.82);
  box-shadow:0 -1px 0 rgba(255,255,255,.025) inset;
}
.csd-gallery .csd-shot-browser-foot small{
  min-width:0;
  overflow:hidden;
  color:inherit;
  font-size:.57rem;
  font-weight:800;
  line-height:1;
  letter-spacing:.105em;
  text-transform:uppercase;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.csd-gallery .csd-shot-count{
  left:auto;
  right:10px;
  top:43px;
  z-index:5;
  padding:5px 8px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(16,26,41,.80);
  color:#fff;
  box-shadow:0 5px 15px rgba(6,14,24,.20);
  backdrop-filter:blur(8px);
  font-size:.61rem;
}
.csd-gallery .csd-shot-action{
  right:11px;
  bottom:40px;
  z-index:5;
  padding:7px 10px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(18,31,48,.88);
  box-shadow:0 8px 20px rgba(6,14,24,.20);
}
.csd-gallery .csd-shot-action i{width:18px;height:18px;font-size:.72rem}
.csd-gallery .csd-shot-action b{font-size:.66rem}
.csd-gallery-grid.is-odd .csd-shot:last-child .csd-shot-frame{aspect-ratio:16/7}
.csd-gallery-group .csd-shot figcaption{padding-top:13px}

@media(max-width:1020px){
  .csd-gallery .csd-shot-open{border-radius:16px}
  .csd-gallery .csd-shot-bar{min-height:32px;padding:6px 10px}
  .csd-gallery .csd-shot-bar em{max-width:68%;font-size:.62rem}
  .csd-gallery .csd-shot-browser-foot{min-height:28px;padding:6px 10px}
  .csd-gallery .csd-shot-count{top:40px}
  .csd-gallery .csd-shot-action{bottom:38px}
}
@media(max-width:700px){
  .csd-gallery-grid,.csd-gallery-grid.is-bento{grid-template-columns:minmax(0,1fr)!important;gap:18px}
  .csd-gallery-grid .csd-shot,.csd-gallery-grid.is-bento .csd-shot{grid-column:auto!important;grid-row:auto!important}
  .csd-gallery .csd-shot-open{border-radius:15px}
  .csd-gallery .csd-shot-bar{min-height:31px;padding:6px 9px;gap:5px}
  .csd-gallery .csd-shot-bar>i{width:6px;height:6px}
  .csd-gallery .csd-shot-bar em{max-width:64%;margin-left:4px;padding:5px 8px;font-size:.59rem}
  .csd-gallery .csd-shot-frame,
  .csd-gallery-grid.is-odd .csd-shot:last-child .csd-shot-frame{aspect-ratio:16/10}
  .csd-gallery .csd-shot-browser-foot{min-height:27px;padding:6px 9px}
  .csd-gallery .csd-shot-browser-foot small{font-size:.53rem;letter-spacing:.09em}
  .csd-gallery .csd-shot-count{right:8px;top:38px;padding:4px 7px;font-size:.56rem}
  .csd-gallery .csd-shot-action{right:9px;bottom:36px;padding:6px 8px}
  .csd-gallery .csd-shot-action b{font-size:.61rem}
  .csd-gallery-group .csd-shot figcaption{padding-top:10px}
}
@media(max-width:430px){
  .csd-gallery .csd-shot-bar em{max-width:58%;font-size:.56rem}
  .csd-gallery .csd-shot-action b{display:none}
  .csd-gallery .csd-shot-action{width:30px;height:30px;padding:0;justify-content:center;border-radius:9px}
  .csd-gallery .csd-shot-action i{width:auto;height:auto}
  .csd-gallery .csd-shot-browser-foot small:first-child{max-width:65%}
}


/* ============================================================
   Browser footer navigation — typography refinement
   Clear, compact sentence-case labels across project + gallery cards.
   ============================================================ */
.cs-browser-bottom,
.csd-gallery .csd-shot-browser-foot{
  gap:10px;
}
.cs-browser-bottom small,
.csd-gallery .csd-shot-browser-foot small{
  display:inline-flex;
  align-items:center;
  min-width:0;
  margin:0;
  text-transform:none;
  letter-spacing:.018em;
  line-height:1.15;
  white-space:nowrap;
  text-overflow:ellipsis;
  overflow:hidden;
}
.cs-browser-bottom small:first-child,
.csd-gallery .csd-shot-browser-foot small:first-child{
  position:relative;
  padding-left:12px;
  color:rgba(255,255,255,.94);
  font-size:.62rem;
  font-weight:760;
}
.cs-browser-bottom small:first-child:before,
.csd-gallery .csd-shot-browser-foot small:first-child:before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#78e8ff;
  box-shadow:0 0 0 3px rgba(120,232,255,.10);
  transform:translateY(-50%);
}
.cs-browser-bottom small:last-child,
.csd-gallery .csd-shot-browser-foot small:last-child{
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:999px;
  background:rgba(255,255,255,.07);
  color:rgba(255,255,255,.72);
  font-size:.56rem;
  font-weight:700;
  letter-spacing:.025em;
}

/* Alt text is now the visible gallery browser title; give it room to read naturally. */
.csd-gallery .csd-shot-bar em{
  max-width:min(76%,460px);
  font-weight:720;
  letter-spacing:.005em;
}

@media(max-width:700px){
  .cs-browser-bottom small:first-child,
  .csd-gallery .csd-shot-browser-foot small:first-child{
    padding-left:10px;
    font-size:.56rem;
  }
  .cs-browser-bottom small:first-child:before,
  .csd-gallery .csd-shot-browser-foot small:first-child:before{
    width:4px;
    height:4px;
    box-shadow:0 0 0 2px rgba(120,232,255,.10);
  }
  .cs-browser-bottom small:last-child,
  .csd-gallery .csd-shot-browser-foot small:last-child{
    padding:3px 6px;
    font-size:.51rem;
  }
  .csd-gallery .csd-shot-bar em{max-width:70%}
}
@media(max-width:430px){
  .cs-browser-bottom small:first-child,
  .csd-gallery .csd-shot-browser-foot small:first-child{font-size:.53rem}
  .cs-browser-bottom small:last-child,
  .csd-gallery .csd-shot-browser-foot small:last-child{
    display:inline-flex;
    font-size:.49rem;
  }
  .csd-gallery .csd-shot-bar em{max-width:64%}
}

/* Case-study detail flow refinement: use the full heading column and surface screens earlier. */
.csd-overview-copy h2,.csd-head h2,.csd-story-card h2{max-width:none}
.csd-overview-copy h2{width:100%;text-wrap:pretty}
.csd-gallery-group,.csd-gallery{padding-top:clamp(38px,4.2vw,58px)}
.csd-overview + .csd-gallery-group,.csd-overview + .csd-gallery{margin-top:-1px}
@media(max-width:700px){
  .csd-overview-copy h2,.csd-head h2,.csd-story-card h2{max-width:none;width:100%}
  .csd-gallery-group,.csd-gallery{padding-top:38px}
}


/* ============================================================
   2026-10-12 — project/case-study responsive polish
   Keeps project-detail entities readable down to very small screens.
   ============================================================ */
@media(max-width:900px){
  .csd-head-split{grid-template-columns:minmax(0,1fr)!important;gap:16px!important}
  .csd-head-split>p,.csd-gallery-group-copy{max-width:none!important}
  .csd-overview-grid{grid-template-columns:minmax(0,1fr)!important;gap:28px!important}
  .csd-overview-copy,.csd-overview-copy p{max-width:none!important}
  .csd-highlights{position:static!important}
  .csd-outcome-grid,
  .csd-outcome-grid.csd-outcome-n-3,
  .csd-outcome-grid.csd-outcome-n-4,
  .csd-outcome-grid.csd-outcome-n-6,
  .csd-outcome-grid.csd-outcome-n-9,
  .csd-feature-group-grid,
  .csd-team-grid,
  .csd-team-n-2,
  .csd-team-n-3,
  .csd-related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .csd-team-n-3 .tm-card:last-child:nth-child(odd){grid-column:auto!important}
  .csd-gallery-grid,.csd-gallery-grid.is-bento{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .csd-gallery-grid.is-odd .csd-shot:last-child{grid-column:auto!important}
  .csd-gallery-grid.is-odd .csd-shot:last-child .csd-shot-frame{aspect-ratio:16/10!important}
}

@media(max-width:700px){
  .case-study-hero .case-study-hero-copy{max-width:none!important}
  .case-study-hero .case-study-hero-copy h1{max-width:none!important;font-size:clamp(2.15rem,11vw,3.15rem)!important;line-height:.98!important}
  .case-study-hero .case-study-hero-copy>p{font-size:.94rem!important;line-height:1.58!important}

  .csd-facts-wrap{margin-top:-18px!important;padding-bottom:18px!important}
  .csd-facts-main,
  .csd-facts-main.csd-facts-n-2,
  .csd-facts-main.csd-facts-n-3,
  .csd-facts-main.csd-facts-n-4{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .csd-fact{padding:13px 14px!important;border-left:0!important}
  .csd-fact+.csd-fact{border-top:1px solid rgba(17,21,33,.07)!important}
  .csd-facts-stack{display:block!important;padding:12px 14px!important}
  .csd-facts-label{display:block;margin-bottom:8px}

  .csd-jump-inner{min-width:0!important}
  .csd-jump ul{width:auto!important;min-width:0!important;margin-right:0!important;padding:7px 0!important;scroll-padding-inline:0!important}
  .csd-jump a{padding:7px 10px!important;font-size:.68rem!important}

  .csd-overview,.csd-story,.csd-outcomes,.csd-feature-groups,.csd-gallery-group,.csd-team,.csd-related,.csd-more{
    padding-top:clamp(44px,12vw,58px)!important;
    padding-bottom:clamp(44px,12vw,64px)!important;
  }
  .csd-overview-copy h2,.csd-head h2,.csd-story-card h2{
    width:100%!important;max-width:none!important;
    font-size:clamp(1.75rem,9vw,2.35rem)!important;
    line-height:1.04!important;
  }
  .csd-overview-copy p,.csd-story-card p,.csd-head-split>p{font-size:.91rem!important;line-height:1.65!important}

  .csd-highlights,
  .csd-story-grid,
  .csd-outcome-grid,
  .csd-outcome-grid.csd-outcome-n-3,
  .csd-outcome-grid.csd-outcome-n-4,
  .csd-outcome-grid.csd-outcome-n-6,
  .csd-outcome-grid.csd-outcome-n-9,
  .csd-feature-group-grid,
  .csd-team-grid,
  .csd-team-n-2,
  .csd-team-n-3,
  .csd-related-grid,
  .csd-gallery-grid,
  .csd-gallery-grid.is-bento,
  .cs-grid,
  .cs-related-grid,
  .team-related-projects .cs-related-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }

  .csd-highlight,.csd-story-card,.csd-outcome,.csd-feature-group,.tm-card-detail,.csd-related-card{min-width:0!important}
  .csd-highlight{grid-template-columns:34px minmax(0,1fr)!important;padding:15px!important}
  .csd-highlight-no{font-size:1.35rem!important}
  .csd-story-card{padding:20px 18px!important}
  .csd-outcome{padding:18px!important}
  .csd-outcome span{font-size:1.55rem!important}
  .csd-outcome p{margin-top:12px!important;font-size:.9rem!important}
  .csd-feature-group{grid-template-columns:34px minmax(0,1fr)!important;gap:12px!important;padding:18px 16px!important}
  .csd-feature-no{width:32px!important;height:32px!important}

  .tm-card-detail .tm-photo{aspect-ratio:16/10!important}
  .tm-card-detail .tm-body{padding:16px!important}
  .tm-card-detail .tm-bio{font-size:.84rem!important;line-height:1.55!important}
  .tm-skills{gap:5px!important;margin-top:10px!important}
  .tm-skills li{padding:4px 7px!important;font-size:.62rem!important}
  .tm-card-detail .tm-foot{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;padding-top:12px!important}
  .tm-card-detail .tm-foot em{max-width:100%;justify-self:start}
  .tm-view{margin-left:0!important;align-self:center}
  .tm-card-detail .tm-foot i{display:none!important}

  .csd-related-card{padding:15px 42px 15px 16px!important}
  .csd-related-card strong{font-size:.9rem!important;line-height:1.35!important}

  .csd-gallery .csd-shot-open{border-radius:16px!important}
  .csd-gallery .csd-shot-frame{aspect-ratio:16/10!important}
  .csd-gallery .csd-shot-bar{min-height:30px!important;padding:6px 8px!important}
  .csd-gallery .csd-shot-bar em{max-width:66%!important;font-size:.56rem!important}
  .csd-gallery .csd-shot-browser-foot{min-height:27px!important;padding:6px 8px!important}
  .csd-gallery .csd-shot-browser-foot small{font-size:.53rem!important}

  .cs-feature,.cs-project-card,.cs-card{min-width:0!important;width:100%!important}
}

@media(max-width:430px){
  .csd-jump a{padding:6px 8px!important;font-size:.63rem!important}
  .csd-overview-copy h2,.csd-head h2,.csd-story-card h2{font-size:clamp(1.6rem,9.5vw,2rem)!important}
  .csd-highlight{grid-template-columns:28px minmax(0,1fr)!important;gap:10px!important}
  .csd-highlight small,.csd-story-tag{font-size:.58rem!important}
  .csd-highlight strong{font-size:.96rem!important}
  .csd-highlight p{font-size:.83rem!important;line-height:1.52!important}
  .csd-feature-group h3{font-size:1rem!important}
  .csd-feature-group p,.csd-feature-group li{font-size:.82rem!important}
  .tm-card-detail .tm-photo{aspect-ratio:4/3!important}
  .tm-card-detail h3{font-size:1.05rem!important}
  .tm-role{font-size:.74rem!important}
  .csd-gallery .csd-shot-bar em{max-width:62%!important}
  .csd-gallery .csd-shot-browser-foot small:first-child{max-width:72%!important}
}

@media(max-width:320px){
  .csd-jump a{font-size:.6rem!important}
  .csd-fact{padding:11px 12px!important}
  .csd-fact dt{font-size:.54rem!important}
  .csd-fact dd{font-size:.8rem!important}
  .csd-highlight,.csd-feature-group{grid-template-columns:minmax(0,1fr)!important}
  .csd-highlight-no,.csd-feature-no{margin-bottom:2px}
  .tm-card-detail .tm-foot{grid-template-columns:1fr!important}
  .tm-view{justify-self:start}
  .csd-gallery .csd-shot-bar em{max-width:58%!important}
  .csd-gallery .csd-shot-browser-foot small:last-child{display:none!important}
}

/* Services / Solutions catalogue divider hardening.
   Keep one separator per column boundary without stacking borders on the
   existing hairline grid. Row separators continue to come from row-gap. */
@media(min-width:641px){
  .page-services .section-key-service-catalogue .ix-grid,
  .page-solutions .section-key-solution-catalogue .ix-grid{
    column-gap:0;
    row-gap:1px;
  }

  .page-services .section-key-service-catalogue .ix-card,
  .page-solutions .section-key-solution-catalogue .ix-card{
    position:relative;
  }
}

@media(min-width:1101px){
  .page-services .section-key-service-catalogue .ix-card:not(:nth-child(4n))::after,
  .page-solutions .section-key-solution-catalogue .ix-card:not(:nth-child(4n))::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:1px;
    background:var(--line);
    pointer-events:none;
    z-index:4;
  }
}

@media(max-width:1100px) and (min-width:641px){
  .page-services .section-key-service-catalogue .ix-card:nth-child(odd)::after,
  .page-solutions .section-key-solution-catalogue .ix-card:nth-child(odd)::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:1px;
    background:var(--line);
    pointer-events:none;
    z-index:4;
  }
}

/* ======================================================================
   2026-10-15 Featured/entity card responsive hardening
   Prevent media/copy collisions on tablet widths across home, countries,
   case-study index and any shared case-study showcase using .cs-feature.
   ====================================================================== */
.cs-feature,
.cs-feature > *,
.cs-feature-copy,
.cs-feature .cs-stage,
.cs-feature .cs-browser-shell{
  min-width:0;
  max-width:100%;
  box-sizing:border-box;
}

/* The wide media/copy split needs more room than a typical tablet provides.
   Stack earlier so the screenshot never sits underneath the text panel. */
@media (max-width:1100px){
  .cs-feature{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto;
    gap:0!important;
    width:100%;
    overflow:hidden;
  }
  .cs-feature .cs-stage{
    width:100%;
    min-height:0!important;
    height:auto!important;
    aspect-ratio:16/9!important;
    border-right:0!important;
    border-bottom:1px solid rgba(17,21,33,.08)!important;
    border-radius:23px 23px 0 0!important;
    overflow:hidden;
  }
  .cs-feature .cs-browser-shell{
    width:100%!important;
    height:100%!important;
    border-radius:22px 22px 0 0!important;
  }
  .cs-feature-copy{
    width:100%;
    padding:clamp(22px,3.5vw,32px)!important;
    justify-content:flex-start!important;
    overflow-wrap:anywhere;
  }
  .cs-feature-copy h3{
    max-width:none!important;
    margin-top:0;
  }
  .cs-feature-copy>p{
    max-width:68ch!important;
  }
  .cs-feature-copy .cs-meta{
    min-width:0;
  }

  /* A single/odd full-width entity card follows the same safe stacked model. */
  .cs-grid-1 .cs-project-card,
  .cs-index-grid.cs-rem-1 .cs-project-card:last-child,
  .cs-grid-3 .cs-project-card:last-child:nth-child(odd),
  .cs-index-grid .cs-project-card:last-child:nth-child(odd){
    min-width:0;
  }
}

@media (max-width:760px){
  .cs-feature{
    border-radius:18px!important;
  }
  .cs-feature .cs-stage{
    aspect-ratio:16/9!important;
    border-radius:17px 17px 0 0!important;
  }
  .cs-feature .cs-browser-shell{
    border-radius:16px 16px 0 0!important;
  }
  .cs-feature-copy{
    padding:19px 18px 18px!important;
  }
  .cs-feature-copy .cs-meta{
    gap:7px;
  }
  .cs-feature-copy .cs-meta small{
    margin-left:0;
  }
  .cs-feature-copy h3{
    font-size:clamp(1.4rem,6vw,1.8rem)!important;
    line-height:1.07!important;
  }
}
