/* v114 - IA clarity, project header breathing room, and tighter parcours balance */

/* 1) Give project lead-ins more breathing room so logos do not feel stuck to the top edge. */
body.sober-home .project-brief{
  padding-block:44px 12px;
}
body.sober-home .project-brief-logo{
  display:block;
}
@media(max-width:800px){
  body.sober-home .project-brief{padding-block:28px 6px;}
}

/* 2) Tighten the parcours section so the two columns feel related. */
body.sober-home #parcours .about-grid{
  grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
  gap:clamp(30px,4.4vw,68px);
  align-items:start;
}
body.sober-home #parcours .experience li{grid-template-columns:82px 1fr;gap:18px;}
body.sober-home #parcours .experience h3{margin-bottom:16px;}
@media(max-width:1080px){
  body.sober-home #parcours .about-grid{gap:42px;}
}
@media(max-width:800px){
  body.sober-home #parcours .about-grid{grid-template-columns:1fr;gap:34px;}
  body.sober-home #parcours .experience li{grid-template-columns:86px 1fr;gap:16px;}
}

/* 3) IA section: calmer labels, richer visual cues, clearer role split. */
.sober-home #ia .aiv12-intro{margin-bottom:30px;align-items:end;}
.sober-home #ia .aiv12-intro > p:last-child{
  max-width:22ch;
  font-weight:600;
  color:#44597b;
  font-size:clamp(18px,1.55vw,24px);
  line-height:1.28;
}
.sober-home #ia .aiv12-grid,
.sober-home #ia .aiv12-grid * ,
.sober-home #ia .aiv12-grid *::before,
.sober-home #ia .aiv12-grid *::after{box-sizing:border-box;}
.sober-home #ia .aiv12-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.sober-home #ia .aiv12-card{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:0;
  padding:clamp(22px,2.4vw,30px);
  border:1px solid #dbe4f1;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#fbfcff 100%);
  box-shadow:0 16px 40px rgba(30,51,88,.06);
  overflow:hidden;
}
.sober-home #ia .aiv12-card::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:5px;
  background:linear-gradient(90deg,rgba(49,83,237,.12),rgba(49,83,237,0));
}
.sober-home #ia .aiv12-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.sober-home #ia .aiv12-step{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0;
  color:#315fb2;
  font:750 10px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.sober-home #ia .aiv12-icon{
  width:52px;
  height:52px;
  border-radius:16px;
  background:#f3f7ff;
  border:1px solid #d8e3f3;
  color:#315bb0;
  display:grid;
  place-items:center;
  transition:transform .28s ease, box-shadow .28s ease;
}
.sober-home #ia .aiv13-icon-svg{
  display:block;
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.sober-home #ia .aiv12-card h3{
  margin:0 0 10px;
  color:#1b3152;
  font:400 clamp(31px,3vw,42px)/1.02 Georgia,'Times New Roman',serif;
  letter-spacing:-.045em;
}
.sober-home #ia .aiv12-desc{
  margin:0;
  max-width:32ch;
  color:#566885;
  font:400 14px/1.62 var(--sans,Arial,sans-serif);
}
.sober-home #ia .aiv14-flow{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:stretch;
  gap:10px;
  margin:20px 0 18px;
}
.sober-home #ia .aiv14-flow-item,
.sober-home #ia .aiv14-flow-arrow{
  min-width:0;
  border:1px solid #dde6f3;
  border-radius:15px;
  background:#f8fbff;
}
.sober-home #ia .aiv14-flow-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
}
.sober-home #ia .aiv14-flow-arrow{
  display:grid;
  place-items:center;
  width:46px;
  color:#6f88ba;
  background:linear-gradient(180deg,#f6f9ff,#eef4ff);
}
.sober-home #ia .aiv14-flow-arrow svg{width:18px;height:18px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.sober-home #ia .aiv14-mini-icon{
  width:28px;
  height:28px;
  flex:none;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#edf3ff;
  color:#4269c9;
}
.sober-home #ia .aiv14-mini-icon svg,
.sober-home #ia .aiv14-role-label svg{
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}
.sober-home #ia .aiv14-flow-copy{min-width:0;display:grid;gap:2px;}
.sober-home #ia .aiv14-flow-copy small{
  color:#6f83a1;
  font:750 9px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.sober-home #ia .aiv14-flow-copy strong{
  color:#274261;
  font:650 12px/1.4 var(--sans,Arial,sans-serif);
}
.sober-home #ia .aiv12-roles{
  margin-top:auto;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding-top:16px;
  border-top:1px solid #e4ebf4;
}
.sober-home #ia .aiv12-roles > div{
  min-width:0;
  padding:12px 13px;
  border-radius:15px;
  background:#f7f9fd;
  border:1px solid #e1e9f4;
}
.sober-home #ia .aiv14-role-label{
  display:inline-flex;
  align-items:center;
  gap:7px;
  margin-bottom:7px;
  color:#657b9d;
  font:750 9px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.11em;
  text-transform:uppercase;
}
.sober-home #ia .aiv12-roles > div:last-child .aiv14-role-label{color:#217257;}
.sober-home #ia .aiv12-roles strong{
  display:block;
  color:#26415f;
  font:600 12px/1.45 var(--sans,Arial,sans-serif);
}
.sober-home #ia .aiv14-note{
  margin:16px 0 0;
  color:#61728d;
  font:400 12px/1.55 var(--sans,Arial,sans-serif);
}
@media(min-width:701px) and (max-width:1080px){
  .sober-home #ia .aiv12-grid{grid-template-columns:1fr;}
  .sober-home #ia .aiv12-card{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1fr);column-gap:24px;}
  .sober-home #ia .aiv12-top,
  .sober-home #ia .aiv12-card h3,
  .sober-home #ia .aiv12-desc{grid-column:1;}
  .sober-home #ia .aiv14-flow{grid-column:2;grid-row:1/4;align-self:center;margin:0;}
  .sober-home #ia .aiv12-roles,
  .sober-home #ia .aiv14-note{grid-column:1/-1;}
}
@media(max-width:700px){
  .sober-home #ia .aiv12-intro{display:block;margin-bottom:24px;}
  .sober-home #ia .aiv12-intro .eyebrow{margin-bottom:12px;}
  .sober-home #ia .aiv12-intro h2{margin-bottom:12px;}
  .sober-home #ia .aiv12-intro > p:last-child{max-width:30ch;font-size:16px;}
  .sober-home #ia .aiv12-grid{grid-template-columns:1fr;gap:14px;}
  .sober-home #ia .aiv12-card{padding:20px;border-radius:20px;}
  .sober-home #ia .aiv12-card h3{font-size:36px;}
  .sober-home #ia .aiv12-step{font-size:9px;}
  .sober-home #ia .aiv12-icon{width:48px;height:48px;border-radius:15px;}
  .sober-home #ia .aiv14-flow{grid-template-columns:1fr;gap:8px;margin:17px 0 15px;}
  .sober-home #ia .aiv14-flow-arrow{width:auto;min-height:38px;}
  .sober-home #ia .aiv12-roles{grid-template-columns:1fr;gap:8px;}
}

/* 4) Gentle motion, only when useful. */
@media(prefers-reduced-motion:no-preference){
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card{
    opacity:0;
    transform:translate3d(0,18px,0);
    transition:opacity .52s ease, transform .52s cubic-bezier(.2,.7,.2,1), box-shadow .26s ease;
  }
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card.is-revealed{opacity:1;transform:none;}
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card:nth-child(2){transition-delay:.05s;}
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card:nth-child(3){transition-delay:.1s;}
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card:hover{
    transform:translate3d(0,-3px,0);
    box-shadow:0 20px 44px rgba(30,51,88,.09);
  }
  html.has-js:not(.motion-reduced) .sober-home #ia .aiv12-card:hover .aiv12-icon{
    transform:translate3d(0,-2px,0);
    box-shadow:0 10px 20px rgba(49,91,176,.12);
  }
}
@media(prefers-reduced-motion:reduce){
  .sober-home #ia .aiv12-card{opacity:1 !important;transform:none !important;transition:none !important;}
}
