/* Case as proof (work/*, later apps/*). Loaded after g22.css.
   1. hero--c   the artifact sits in the hero: right of the title on desktop, under the title on the phone
   2. cp-notes  two or three short notes on what the artifact shows
   3. cp-steps  the process as an axis: number, word, one sentence
   4. cp-grow   bars that grow on entry (Content Studio test counts)
   Colours come from the section tokens (--moss, --ink2, --line) that v4.css and g22.css already switch per mode. */

/* ---------- 1. hero with the artifact ---------- */
.hero--c .hero__grid{
  grid-template-columns:minmax(0,1fr) minmax(0,560px);
  grid-template-areas:"tx fig" "side fig";
  column-gap:4vw;row-gap:0;align-items:start;
}
.hero--c .hero__grid>div:first-child{grid-area:tx;align-self:end}
.hero--c .hero__side{grid-area:side;justify-self:start;max-width:460px;padding-top:clamp(24px,2.4vw,40px)}
.hero--c .hero__fig{grid-area:fig;align-self:center;margin:0;width:100%}
.hero--c .hero__obj{margin:0;aspect-ratio:4/3;width:100%;border-radius:16px}
.hero--c .hero__fig figcaption{margin-top:12px}
.hero--c{padding-bottom:var(--sp)}

@media (max-width:767px){
  .hero--c .hero__grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"tx" "fig" "side";row-gap:24px}
  .hero--c .hero__grid>div:first-child{align-self:start}
  .hero--c .hero__side{padding-top:0;max-width:none}
  .hero--c .hero__obj{border-radius:12px}
  .hero--c{padding-bottom:64px}
}

/* ---------- 2. notes on the artifact ---------- */
.cp-feat{align-items:start}
.cp-feat .feat__tx .p{margin-top:18px}
.cp-notes{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:34em}
.cp-notes li{
  padding:18px 22px;border-radius:14px;
  font:500 clamp(17px,1.35vw,20px)/1.4 var(--sans);color:var(--paper);
  background:rgba(244,244,237,.06);box-shadow:0 0 0 1px rgba(221,225,210,.16);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
html[data-mode="light"] .cp-notes li{color:var(--ink);background:rgba(255,255,255,.72);box-shadow:0 0 0 1px rgba(17,17,18,.12),0 18px 40px -22px rgba(17,17,18,.28)}
@media (max-width:767px){
  .cp-notes{gap:10px}
  html body .cp-notes li{font-size:18px!important;line-height:1.4!important;padding:16px 18px}
}

/* ---------- 3. process axis ---------- */
.nums .cp-h{max-width:1240px;margin:0 auto 3vw;font-size:clamp(34px,4vw,60px);line-height:.95;color:var(--ink)}
html[data-mode="dark"] .nums .cp-h{color:#F4F4ED}
.cp-steps{--cp-dot:var(--moss);counter-reset:cp;display:block;position:relative;max-width:1240px;margin:0 auto;padding:0}
.cp-steps::before{content:"";position:absolute;left:5px;top:48px;bottom:48px;width:1px;background:var(--cp-line,var(--line))}
.cp-steps>div,.cp-steps>div:first-child{
  counter-increment:cp;position:relative;border:0;
  display:grid;grid-template-columns:44px minmax(0,230px) minmax(0,1fr);column-gap:20px;align-items:baseline;
  padding:26px 0 26px 36px;
  background:radial-gradient(circle,var(--cp-dot) 0 5.5px,transparent 6px) 0 43px/11px 11px no-repeat;
}
.cp-steps>div::before{content:counter(cp,decimal-leading-zero);font:700 14px/1 var(--sans);letter-spacing:.06em;font-variant-numeric:tabular-nums;color:var(--moss)}
html body .nums .cp-steps dt.cp-w{
  font:700 clamp(30px,3.2vw,46px)/1 var(--sans)!important;letter-spacing:-.03em!important;white-space:normal;color:var(--ink);
}
html body .nums .cp-steps dd{margin:0;max-width:34em;font:400 clamp(17px,1.4vw,20px)/1.4 var(--sans)!important;color:var(--ink2)}
html[data-mode="dark"] body .nums .cp-steps dt.cp-w{color:#F4F4ED}
html[data-mode="dark"] body .nums .cp-steps dd{color:#D3D7C7}
html[data-mode="dark"] .cp-steps{--cp-line:rgba(221,225,210,.3)}
html[data-mode="light"] .cp-steps{--cp-line:rgba(17,17,18,.28)}
.nums .cp-last{max-width:1240px;margin:2.4vw auto 0;padding-left:36px}

@media (max-width:767px){
  .nums .cp-h{font-size:28px!important;line-height:1.05!important;margin-bottom:24px}
  .cp-steps::before{top:32px;bottom:32px}
  html body .nums .cp-steps>div,html body .nums .cp-steps>div:first-child{grid-template-columns:minmax(0,1fr);row-gap:8px;padding:22px 0 22px 32px;background-position:0 28px}
  .cp-steps>div::before{font-size:12px}
  html body .nums .cp-steps dt.cp-w:not(.ui *){font-size:28px!important;line-height:1.05!important}
  html body .nums .cp-steps dd:not(.ui *){font-size:18px!important;line-height:1.4!important}
  .nums .cp-last{padding-left:32px;margin-top:20px}
}

/* ---------- 4. bars that grow ---------- */
.cp-gr{grid-column:1/-1;margin:0;padding-top:clamp(8px,2vw,24px)}
.cp-grow{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,2.4vw,36px);align-items:end;max-width:1240px;margin:0 auto}
.cp-grow>div{display:flex;flex-direction:column;justify-content:flex-end;min-width:0}
.cp-grow>div::before{
  content:"";display:block;height:calc(var(--r) * var(--cp-max,150px));margin-bottom:14px;border-radius:6px;
  background:var(--cp-bar,rgba(17,17,18,.2));transform-origin:50% 100%;
}
.cp-grow>div:last-child::before{background:var(--moss)}
.cp-grow dt{font:700 clamp(20px,2.4vw,34px)/1 var(--sans);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--ink)}
.cp-grow dd{margin:6px 0 0;font:600 12px/1.3 var(--sans);letter-spacing:.055em;text-transform:uppercase;color:var(--ink2)}
.cp-gr figcaption{margin-top:18px;max-width:1240px;margin-left:auto;margin-right:auto}
html[data-mode="dark"] .cp-grow{--cp-bar:rgba(221,225,210,.26)}
html[data-mode="dark"] .cp-grow dt{color:#F4F4ED}
html[data-mode="dark"] .cp-grow dd{color:#D3D7C7}
html.mo .cp-grow:not(.in)>div::before{scale:1 0}
html.mo .cp-grow.in>div::before{animation:cp-rise 1.1s var(--m-out,cubic-bezier(.2,.7,.1,1)) backwards;animation-delay:calc(var(--i,0) * .12s)}
@keyframes cp-rise{from{scale:1 0}}
@media (max-width:767px){
  .cp-grow{--cp-max:96px;gap:10px}
  html body .cp-grow dt{font-size:18px!important}
}
@media (prefers-reduced-motion:reduce){
  html.mo .cp-grow:not(.in)>div::before{scale:1 1}
  html.mo .cp-grow.in>div::before{animation:none}
}

/* ---------- 5. plain number row (AdsAI): figure and label readable in the dark mode ---------- */
html[data-mode="dark"] body .nums .mtr:not(.cp-steps) dt{color:#F4F4ED}
html[data-mode="dark"] body .nums .mtr:not(.cp-steps) dd{color:#D3D7C7}

/* ---------- 6. Content Studio: a 16:10 app screen, whole in the first screen on desktop ---------- */
@media (min-width:768px){
  .hero--c.hero--wide .hero__grid{grid-template-columns:minmax(0,1fr) minmax(0,740px)}
  .hero--c.hero--wide .hero__obj{aspect-ratio:1200/750}
}
