/* v111 portfolio refinements – narrative continuity, clearer IA section, calmer case-study captures */

/* Home story continuation panels */
html.has-js .story-next-panel,
html.has-js:not(.gn93-reading) .story-next-panel{
  width:min(var(--sober-width),calc(100% - 2*var(--sober-gutter)));
  margin:0 auto 28px;
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px 24px;
  align-items:center;
  padding:20px 24px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:22px;
  background:color-mix(in srgb,var(--story-end-bg,#173b2a) 82%, white 18%);
  box-shadow:0 18px 42px rgba(10,28,46,.12);
}
.story-next-copy{min-width:0}
.story-next-copy span{display:block;font:700 10px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.11em;text-transform:uppercase;color:var(--story-end-muted,#d7e2ea);margin-bottom:7px}
.story-next-copy strong{display:block;font:400 clamp(26px,2.2vw,36px)/1.05 Georgia,'Times New Roman',serif;letter-spacing:-.04em;color:var(--story-end-ink,#fff)}
.story-next-copy p{margin:9px 0 0;color:var(--story-end-muted,#d7e2ea);font:400 14px/1.55 var(--sans,Arial,sans-serif);max-width:42ch}
.story-next-panel .sober-case-link{justify-self:end;white-space:nowrap;box-shadow:0 10px 26px rgba(0,0,0,.12)}
.story-next-panel--mh{--story-end-bg:#8e3a2f;--story-end-ink:#fff7f4;--story-end-muted:#f0d7cf;border-color:#d8b7ae;background:linear-gradient(135deg,#a94a3d 0%,#8d3a2f 100%)}
.story-next-panel--mh .sober-case-link{background:#fff;color:#8c392f}
.story-next-panel--mh .sober-case-link:hover{background:#fef4ef}
@media(max-width:760px){
  html.has-js .story-next-panel,
  html.has-js:not(.gn93-reading) .story-next-panel{grid-template-columns:1fr;padding:18px 18px 20px;border-radius:18px}
  .story-next-panel .sober-case-link{justify-self:start}
  .story-next-copy strong{font-size:29px}
  .story-next-copy p{font-size:13px}
}

/* Simplified IA section */
.ai-practice-section{padding:74px 0 68px;background:linear-gradient(180deg,#fff 0,#f6f8fc 100%)}
.ai-practice-intro{display:grid;grid-template-columns:minmax(0,.7fr) minmax(300px,.75fr);gap:30px;align-items:end;margin-bottom:30px}
.ai-practice-intro .eyebrow{grid-column:1/-1;margin-bottom:-10px}
.ai-practice-intro h2{margin:0}
.ai-practice-intro>p:last-child{margin:0;color:#556884;max-width:48ch}
.aif-simple-grid,.aif-simple-grid *,.aif-simple-grid *::before,.aif-simple-grid *::after{box-sizing:border-box}
.aif-simple-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.aif-simple-card{display:flex;flex-direction:column;min-width:0;padding:26px;border:1px solid #dbe3ef;border-radius:22px;background:#fff;box-shadow:0 14px 35px rgba(32,53,88,.05)}
.aif-simple-top .aif-step{display:block;color:#315fb2;font:750 10px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.11em;margin-bottom:15px}
.aif-simple-card h3{margin:0 0 14px;color:#1d3152;font:400 clamp(29px,2.5vw,39px)/1.04 Georgia,'Times New Roman',serif;letter-spacing:-.04em;max-width:14ch}
.aif-simple-card p{margin:0;color:#51627d;font:400 14px/1.65 var(--sans,Arial,sans-serif)}
.aif-simple-facts{display:grid;gap:12px;margin:22px 0 20px;padding:16px 0;border-top:1px solid #e5ebf4;border-bottom:1px solid #e5ebf4}
.aif-simple-facts>div{display:grid;gap:4px}
.aif-simple-facts dt{font:750 9px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;color:#6d7f9d}
.aif-simple-facts dd{margin:0;color:#314764;font:400 13px/1.55 var(--sans,Arial,sans-serif)}
.aif-simple-roles{margin-top:auto;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.aif-simple-roles>div{padding:12px 14px;border-radius:14px;background:#f7f9fc;border:1px solid #e3eaf4}
.aif-simple-roles span{display:block;margin-bottom:6px;color:#6c7e99;font:750 9px/1.35 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase}
.aif-simple-roles strong{display:block;color:#24405f;font:600 12px/1.45 var(--sans,Arial,sans-serif)}
.aif-simple-note{max-width:72ch;margin:18px 0 0;color:#5b6d87;font:400 12px/1.55 var(--sans,Arial,sans-serif)}
@media(max-width:1100px){
  .aif-simple-grid{grid-template-columns:1fr}
  .aif-simple-card{padding:24px}
  .aif-simple-card h3{max-width:none}
}
@media(max-width:680px){
  .ai-practice-section{padding:56px 0}
  .ai-practice-intro{display:block;margin-bottom:24px}
  .ai-practice-intro .eyebrow{margin-bottom:12px}
  .ai-practice-intro h2{margin-bottom:16px}
  .aif-simple-card{padding:20px;border-radius:18px}
  .aif-simple-card h3{font-size:31px}
  .aif-simple-facts{margin:18px 0 16px;padding:14px 0}
  .aif-simple-roles{grid-template-columns:1fr;gap:10px}
}

/* Case-study screenshot polish for Malakoff Humanis */
.mh2-shot figcaption small{display:none}
.mh2-shot img{border-radius:20px;box-shadow:0 18px 38px rgba(19,32,56,.08)}
.mh2-shot figcaption{justify-content:flex-start}
