/* casestudy.css · Expert Solution case study page (rebuilt 27 Oct 2569)
   Screening room + unlock cards (the Win funnel / highticket-funnel-clone pattern) in Expert Solution's
   forest + brass palette, then the proof wall. Loaded after styles.css. */

/* ---------- screening band (dark forest) ---------- */
.screening{background:var(--forest-deep); color:#F5F1E6; position:relative}
@supports (overflow:clip){ .screening{overflow:clip} }   /* hidden would stop the video sticking */
.screening::before{content:""; position:absolute; inset:0 0 auto; height:520px; pointer-events:none;
  background:radial-gradient(60% 70% at 20% 0%, rgba(230,201,143,.13), transparent 70%)}
.screening .gl-top{position:relative}
.screening .gl-lockup{color:#F5F1E6}
.screening .gl-lockup small{color:var(--brass-soft)}
.watch{position:relative; display:grid; grid-template-columns:minmax(0,1fr); grid-template-areas:"copy" "main" "side";
  max-width:var(--maxw-wide); padding-top:26px; padding-bottom:64px}
.watch-copy{grid-area:copy; text-align:center; max-width:760px; margin:0 auto; padding-bottom:26px}
.watch-copy .kick{display:inline-flex; align-items:center; gap:8px; margin:0 0 14px; padding:6px 14px; border-radius:999px;
  border:1px solid rgba(230,201,143,.4); color:var(--brass-soft); font-size:var(--text-sm); font-weight:600}
.watch-copy .kick::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--brass-soft)}
.watch-copy h1{margin:0; color:#F5F1E6; font-weight:700; font-size:clamp(1.6rem,1.15rem + 2vw,2.5rem); line-height:1.32;
  padding-block:.08em; text-wrap:balance}
.watch-copy .sub{margin:14px auto 0; max-width:62ch; color:var(--muted-on-dark); font-size:var(--text-base); line-height:1.75}
.watch-main{grid-area:main; min-width:0}
.watch-main .video-wrap{border-radius:var(--r-sm); border:1px solid rgba(230,201,143,.28); background:#0b2a22;
  box-shadow:0 30px 70px -30px rgba(0,0,0,.6)}
.watch-main .video-wrap .voomly-embed{border-radius:0 !important}
.watch-bar{display:grid; justify-items:center; gap:12px; margin-top:16px}
.unlock-toast{display:flex; align-items:center; gap:10px; max-width:100%; padding:10px 18px; border-radius:999px; cursor:pointer;
  border:1px solid rgba(230,201,143,.45); background:rgba(255,255,255,.06); color:#F5F1E6; font:inherit; font-size:var(--text-sm)}
.unlock-toast[hidden],.watch-cta[hidden]{display:none}
.unlock-toast.pop{animation:fade .45s var(--ease-out) both}
.unlock-toast:hover{border-color:var(--brass-soft)}
.ut-dot{flex:0 0 auto; width:8px; height:8px; border-radius:50%; background:var(--brass-soft)}
.ut-text{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.ut-text b{font-weight:600; color:var(--brass-soft)}
.ut-go{flex:0 0 auto; font-weight:600; color:var(--brass-soft)}
.watch-cta{display:flex; flex-direction:column; align-items:center; gap:8px; animation:fade .5s var(--ease-out) both}
.watch-cta .cta-note,.ucard .cta-note{color:var(--muted-on-dark); text-align:center}
.screening .btn{background:var(--brass-soft); border-color:var(--brass-soft); color:var(--ink)}
.screening .btn:hover{background:#F0D9A8; border-color:#F0D9A8}

/* ---------- unlock cards ---------- */
.watch-side{grid-area:side; min-width:0; padding-top:30px}
.unlock-progress{display:flex; align-items:center; gap:14px; margin-bottom:16px}
.u-badge{flex:0 0 auto; display:grid; place-items:center; width:44px; height:44px; border-radius:50%;
  border:1px solid rgba(230,201,143,.4); color:var(--brass-soft)}
.u-badge svg,.uc-badge svg{width:20px; height:20px}
.u-prog-body{flex:1; min-width:0}
.unlock-progress p{margin:0 0 8px; font-weight:600; font-size:var(--text-sm); color:#F5F1E6}
.u-seg{display:flex; gap:5px}
.u-seg i{flex:1; height:4px; border-radius:2px; background:rgba(245,241,230,.16); transition:background .4s}
.u-seg i.on{background:var(--brass-soft)}
.ucards{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.ucard{border:1px solid rgba(245,241,230,.14); border-radius:var(--r-sm); background:rgba(255,255,255,.05); overflow:hidden}
.uc-h{margin:0; font:inherit}
.uc-head{display:flex; align-items:center; gap:14px; width:100%; padding:14px 18px; border:0; background:none; color:inherit;
  font:inherit; text-align:left}
button.uc-head{cursor:pointer}
button.uc-head:hover{background:rgba(255,255,255,.04)}
button.uc-head:focus-visible{outline:2px solid var(--brass-soft); outline-offset:-2px}
.uc-badge{flex:0 0 auto; display:grid; place-items:center; width:42px; height:42px; border-radius:50%;
  background:rgba(230,201,143,.14); color:var(--brass-soft)}
.uc-titles{flex:1; min-width:0; display:flex; flex-direction:column}
.uc-n{display:flex; align-items:center; gap:10px; font-size:.8rem; font-weight:600; color:var(--brass-soft); letter-spacing:.02em}
.uc-new{font-style:normal; padding:1px 10px; border-radius:999px; font-size:.72rem; color:var(--ink); background:var(--brass-soft)}
.uc-title{margin-top:2px; font-weight:700; font-size:1.06rem; line-height:1.55; color:#F5F1E6; overflow-wrap:anywhere}
.uc-hint{margin-top:2px; font-size:.84rem; color:var(--muted-on-dark)}
.chev{flex:0 0 auto; width:9px; height:9px; margin:0 4px 4px 0; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor;
  transform:rotate(45deg); color:var(--muted-on-dark); transition:transform .25s var(--ease-out)}
.uc-head[aria-expanded="true"] .chev{transform:rotate(-135deg); margin:4px 4px 0 0}
.uc-body{padding:2px 22px 22px 74px; animation:fade .35s var(--ease-out) both; color:#E9E3D6}
.uc-body > p{margin:0 0 .8em; font-size:1.02rem; line-height:1.85}
.uc-body strong{color:#fff; font-weight:600}
.uc-list{margin:4px 0 0; padding:0; list-style:none; display:grid; gap:8px}
.uc-list li{position:relative; padding-left:26px; line-height:1.7}
.uc-list li::before{content:""; position:absolute; left:2px; top:.62em; width:12px; height:1.5px; background:var(--brass-soft)}
.uc-seek{display:inline-flex; align-items:center; gap:6px; margin:0 0 12px; padding:6px 14px; border-radius:999px; cursor:pointer;
  border:1px solid rgba(245,241,230,.22); background:none; color:#F5F1E6; font:inherit; font-size:.85rem}
.uc-seek svg{width:11px; height:11px; color:var(--brass-soft)}
.uc-seek:hover{border-color:var(--brass-soft)}
.ucard.is-expanded{border-color:rgba(230,201,143,.5); background:rgba(255,255,255,.07)}
.ucard.is-locked{background:rgba(255,255,255,.02); border-style:dashed}
.ucard.is-locked .uc-badge{background:none; border:1px solid rgba(245,241,230,.16); color:rgba(245,241,230,.45)}
.ucard.is-locked .uc-title{color:rgba(245,241,230,.55); font-weight:500; font-size:1rem}
.ucard.is-locked .uc-n{color:rgba(245,241,230,.5)}
.ucard.is-locked mark.hl{background:none; color:inherit}
.ucard.just-opened{animation:cardOpen 1.4s var(--ease-out) both}
@keyframes cardOpen{0%{opacity:.4; transform:translateY(8px); box-shadow:0 0 0 0 rgba(230,201,143,.5)}
  40%{opacity:1; transform:none; box-shadow:0 0 0 6px rgba(230,201,143,.25)} 100%{box-shadow:none}}
.screening mark.hl{color:var(--brass-soft); background:none; padding:0}
.ucard .cta-row{display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin-top:20px}
.ucard .cta-row .cta-note{text-align:left}
.mini-cases{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:14px 0 4px}
.mini-case{display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:rgba(255,255,255,.06);
  border:1px solid rgba(245,241,230,.1); min-width:0}
.mini-case img{flex:0 0 auto; width:40px; height:40px; border-radius:50%; object-fit:cover; object-position:50% 25%}
.mini-case span{min-width:0; display:flex; flex-direction:column; line-height:1.45}
.mini-case b{font-size:.92rem; color:#F5F1E6}
.mini-case small{font-size:.8rem; color:var(--muted-on-dark)}
.mini-more{display:inline-block; margin-top:10px; color:var(--brass-soft); font-weight:600; border-bottom:1px solid rgba(230,201,143,.4)}

/* ---------- proof wall ---------- */
.kicker{display:block; margin:0 0 10px; font-size:var(--text-sm); font-weight:700; letter-spacing:.02em; color:var(--brass-ink)}
.sec-head{max-width:720px; margin:0 auto 34px; text-align:center}
.sec-head .section-title mark.hl,.earn-sec mark.hl{background:linear-gradient(transparent 62%, var(--brass-tint) 62%, var(--brass-tint) 92%, transparent 92%); color:inherit; padding:0 .04em}
.sec-head .lead{margin-top:10px}

.spotlight{display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); gap:0; border-radius:var(--r); overflow:hidden;
  background:var(--forest-deep); color:#F5F1E6; margin-bottom:22px}
.spot-people{display:grid; grid-template-columns:1fr 1fr; gap:2px; background:var(--forest-deep)}
.spot-people figure{margin:0; position:relative; min-height:300px}
.spot-people img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover}
.spot-people figcaption{position:absolute; left:0; right:0; bottom:0; padding:30px 14px 12px; line-height:1.4;
  background:linear-gradient(transparent, rgba(10,30,24,.88))}
.spot-people figcaption b{display:block; font-size:1rem}
.spot-people figcaption small{font-size:.8rem; color:var(--muted-on-dark)}
.spot-copy{padding:clamp(24px,3.4vw,40px); display:flex; flex-direction:column; justify-content:center; gap:10px}
.spot-label{align-self:flex-start; padding:4px 12px; border-radius:999px; background:rgba(230,201,143,.16); color:var(--brass-soft);
  font-size:var(--text-xs); font-weight:700; letter-spacing:.06em; text-transform:uppercase}
.spot-copy h3{margin:0; font-size:var(--text-2xl); line-height:1.35; font-weight:700; text-wrap:balance}
.spot-copy h3 mark.hl{color:var(--brass-soft); background:none}
.spot-copy p{margin:0; color:#E3DCCD; line-height:1.8}
.spot-copy strong{color:var(--brass-soft)}

.case-grid{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px}
.case{margin:0; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column}
.case-ph{position:relative; aspect-ratio:16/10; background:var(--bg-alt)}
.case-ph img{width:100%; height:100%; object-fit:cover; display:block}
.case-ph .case-av{position:absolute; right:16px; bottom:-26px; width:58px; height:58px; border-radius:50%; object-fit:cover; object-position:50% 22%;
  border:3px solid var(--surface); background:var(--bg-alt)}
.case-body{padding:20px 20px 22px; display:flex; flex-direction:column; gap:4px; flex:1}
.case.has-av .case-body{padding-top:36px}
.case-metric{font-size:1.6rem; font-weight:800; color:var(--accent); line-height:1.2; letter-spacing:-.01em; font-variant-numeric:tabular-nums}
.case-body h3{margin:4px 0 0; font-size:1.1rem; line-height:1.45}
.case-role{margin:0; font-size:var(--text-sm); color:var(--muted); line-height:1.6}
.case-result{margin:8px 0 0; padding-top:10px; border-top:1px solid var(--hairline-2); font-size:1rem; line-height:1.7; color:var(--ink); font-weight:500}

.proof-duo{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin-top:18px; align-items:stretch}
.more-list{list-style:none; margin:0; padding:0; display:grid; gap:12px; align-content:start}
.more-list li{display:flex; align-items:center; gap:14px; padding:16px 18px; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r)}
.more-list img{flex:0 0 auto; width:64px; height:64px; border-radius:50%; object-fit:cover}
.more-list b{display:block; font-size:1.02rem; line-height:1.45}
.more-list small{display:block; color:var(--muted); font-size:var(--text-sm); line-height:1.55}
.more-list span.r{display:block; margin-top:2px; font-size:.95rem; color:var(--ink)}
.testi{margin:0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:0; background:var(--surface); border:1px solid var(--hairline);
  border-radius:var(--r); overflow:hidden}
.testi-shot{display:block; padding:0; border:0; background:#fff; cursor:zoom-in; border-right:1px solid var(--hairline)}
.testi-shot img{width:100%; height:100%; max-height:420px; object-fit:cover; object-position:50% 0}
.testi figcaption{padding:22px 20px; display:flex; flex-direction:column; justify-content:center; gap:10px}
.testi blockquote{margin:0; font-size:1.2rem; font-weight:700; line-height:1.55; color:var(--ink)}
.testi blockquote::before{content:"“"; display:block; font-size:2.4rem; line-height:.8; color:var(--brass)}
.testi cite{font-style:normal; font-weight:600; font-size:.95rem}
.testi small{color:var(--muted); font-size:var(--text-sm)}
.fine{margin:22px auto 0; max-width:70ch; text-align:center; font-size:var(--text-sm); color:var(--muted); line-height:1.7}

/* Earn: before → steps → after */
.earn-story{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.8fr) minmax(0,1fr); gap:18px; align-items:start}
.es-tag{margin:0 0 10px; font-weight:700; font-size:var(--text-sm); color:var(--brass-ink)}
.es-pics{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px}
.es-pics figure{margin:0; border-radius:var(--r-sm); overflow:hidden; background:var(--surface); position:relative; display:flex; flex-direction:column}
.es-pics figure:last-child:nth-child(even){grid-column:1 / -1}
.es-pics figure:first-child{grid-column:1 / -1}
.es-pics img{width:100%; aspect-ratio:4/3; object-fit:cover; display:block}
.es-pics figure:first-child img{aspect-ratio:16/10}
.es-pics figcaption{padding:8px 10px; font-size:.82rem; line-height:1.5; color:var(--muted); background:var(--surface)}
.es-steps{list-style:none; margin:30px 0 0; padding:0; display:grid; gap:0}
.es-steps li{position:relative; display:flex; gap:12px; align-items:flex-start; padding:0 0 22px; line-height:1.6; font-size:.98rem}
.es-steps li span{flex:0 0 auto; display:grid; place-items:center; width:30px; height:30px; border-radius:50%; background:var(--accent); color:#fff; font-weight:700; font-size:.88rem}
.es-steps li:not(:last-child)::after{content:""; position:absolute; left:14.5px; top:32px; bottom:2px; width:1.5px; background:var(--brass)}
.es-steps li:last-child span{background:var(--brass); color:var(--ink)}

/* students (screenshots) */
.student-grid{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px}
.student{margin:0; background:var(--surface); border:1px solid var(--hairline); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column}
.student button{display:block; padding:0; border:0; background:#fff; cursor:zoom-in}
.student img{width:100%; aspect-ratio:3/4; object-fit:cover; object-position:50% 0}
.student figcaption{padding:14px 16px 16px; font-size:.92rem; line-height:1.6; color:var(--muted)}
.student figcaption b{display:block; color:var(--ink); font-size:1rem}

/* press */
.press-logos{list-style:none; margin:0 0 22px; padding:0; display:grid; grid-template-columns:repeat(9,minmax(0,1fr)); gap:10px}
.press-logos li.dark,.press-list img.dark{background:#141414}
.press-logos li{display:grid; place-items:center; height:64px; padding:8px; border-radius:var(--r-sm); background:#fff; border:1px solid var(--hairline)}
.press-logos img{max-height:42px; width:auto; max-width:100%; object-fit:contain}
.press-list{list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px}
.press-list a{display:grid; grid-template-columns:52px minmax(0,1fr); gap:4px 12px; align-items:start; height:100%; padding:14px; border-radius:var(--r-sm);
  border:1px solid var(--hairline); background:var(--surface)}
.press-list a:hover{border-color:var(--accent)}
.press-list img{grid-row:span 3; width:52px; height:40px; object-fit:contain; background:#fff; border-radius:6px}
.press-list .pd{font-size:.78rem; font-weight:700; letter-spacing:.03em; color:var(--brass-ink)}
.press-list b{font-size:.95rem; line-height:1.5; font-weight:600}
.press-list small{font-size:.8rem; color:var(--muted); line-height:1.5}

/* ---------- desktop: video sticks on the left, cards on the right ---------- */
@media(min-width:1000px){
  .watch{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); grid-template-rows:auto 1fr; grid-template-areas:"main copy" "main side";
    column-gap:44px; align-items:start; padding-top:34px; padding-bottom:88px}
  .watch-copy{text-align:left; margin:0; padding-bottom:6px}
  .watch-copy h1{font-size:clamp(1.55rem,2.1vw,2.05rem)}
  .watch-copy .sub{margin-left:0; font-size:.98rem}
  .watch-main{grid-row:1 / span 2; align-self:stretch}
  .watch-stick{position:sticky; top:20px}
  .watch-side{padding-top:22px}
  .uc-body{padding-left:22px}
}
@media(max-width:980px){
  .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .student-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .press-logos{grid-template-columns:repeat(5,minmax(0,1fr))}
  .press-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  .earn-story{grid-template-columns:1fr 1fr}
  .es-steps{grid-column:1 / -1; grid-row:2; margin:6px 0 0; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px}
  .es-steps li{flex-direction:column; padding:0}
  .es-steps li:not(:last-child)::after{left:36px; right:-12px; top:14.5px; bottom:auto; width:auto; height:1.5px}
}
@media(max-width:820px){
  .spotlight{grid-template-columns:1fr}
  .spot-people figure{min-height:250px}
  .proof-duo{grid-template-columns:1fr}
}
@media(max-width:620px){
  .watch{padding-top:14px; padding-bottom:48px}
  .watch-copy{padding-bottom:20px}
  .watch-copy .sub{font-size:.98rem}
  .uc-head{padding:12px 14px; gap:12px}
  .uc-badge{width:38px; height:38px}
  .uc-title{font-size:1rem}
  .uc-body{padding:2px 16px 18px}
  .mini-cases{grid-template-columns:1fr}
  .watch-cta{justify-self:stretch}
  .watch-cta .btn,.ucard .cta-row .btn{width:100%}
  .ucard .cta-row{align-items:stretch}
  .unlock-toast{width:100%; border-radius:14px}
  .case-grid{grid-template-columns:1fr}
  .student-grid{gap:10px}
  .student figcaption{padding:10px 12px 12px; font-size:.85rem}
  .press-logos{grid-template-columns:repeat(3,minmax(0,1fr))}
  .press-list{grid-template-columns:1fr}
  .testi{grid-template-columns:1fr}
  .testi-shot{border-right:0; border-bottom:1px solid var(--hairline)}
  .testi-shot img{max-height:360px}
  .earn-story{grid-template-columns:1fr}
  .es-steps{grid-row:auto; grid-template-columns:1fr; gap:0; margin:4px 0 8px}
  .es-steps li{flex-direction:row; padding:0 0 18px}
  .es-steps li:not(:last-child)::after{left:14.5px; right:auto; top:32px; bottom:2px; width:1.5px; height:auto}
}
@media(prefers-reduced-motion:reduce){
  .ucard.just-opened,.uc-body,.unlock-toast.pop,.watch-cta{animation:none}
}
