/* public/css/pg-case.css — every case study (templates/pages/case-study.eta). Loads after site.css.
   The template keeps older class names that src/helpers/case-study.test.ts checks; styles.css still paints
   them, so each rule here is scoped under .un .cs-page and sets the new look in full. */
.un .cs-page section{position:relative;padding:var(--s8) 0;margin:0;border:0;background:none}
.un .cs-page .arch-line-h{border-top:1px solid var(--line)}
.un .cs-page .arch-line-h::before,.un .cs-page .arch-line-h::after{display:none}
.un .cs-page .type-label{font-family:var(--mono);font-size:12px;letter-spacing:.04em;text-transform:uppercase;font-weight:500;color:var(--slate);margin:0}

/* hero */
.un .cs-page>section:first-child{padding:var(--s8) 0 var(--s6)}
.un .cs-hero{max-width:980px}
.un .cs-breadcrumb ol{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-bottom:var(--s5)}
.un .cs-breadcrumb ol::before{content:"";width:14px;height:10px;background:repeating-linear-gradient(90deg,var(--slate) 0 2px,transparent 2px 4px)}
.un .cs-breadcrumb li+li::before{content:"/";margin-right:10px;color:var(--haze)}
.un .cs-breadcrumb a{color:var(--slate);transition:color .2s}.un .cs-breadcrumb a:hover{color:var(--ink)}
.un .cs-breadcrumb li[aria-current]{color:var(--ink)}
.un .cs-page h1.type-hero{font-family:var(--sans);font-size:clamp(36px,4.6vw,66px);line-height:1.03;letter-spacing:-.04em;font-weight:500;color:var(--ink);text-wrap:balance;margin:0}
.un .cs-page .cs-lead{margin-top:var(--s5);max-width:640px;font-size:clamp(17px,1.35vw,19px);line-height:1.5;color:var(--ink-2)}
.un .cs-page .cs-lead a,.un .cs-page .cs-facts a,.un .cs-page .numbered-list-desc a,.un .cs-page .cs-rows a,.un .cs-page .pricing-faq-answer a{color:var(--cobalt);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}

/* results window */
.un .cs-page>section:nth-child(2){border-top:0;padding-top:0}
.un .cs-res{box-shadow:0 30px 60px -30px rgba(11,29,51,.4)}
.un .cs-res .bar{height:46px}.un .cs-res .bar b{font-family:var(--sans);font-size:14.5px}.un .cs-res .bar .qs{margin-left:auto}
.un .cs-live{flex:none;width:8px;height:8px;border-radius:50%;background:var(--mint)}
.un .cs-page .cs-sg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0;padding:0}
.un .cs-page .cs-sg>div{position:relative;padding:28px 28px 34px;border-right:1px solid var(--line)}
.un .cs-page .cs-sg>div:last-child{border-right:0}
.un .cs-page .cs-sg>div::after{content:"";position:absolute;left:28px;right:28px;bottom:16px;height:6px;background:var(--spec);-webkit-mask:repeating-linear-gradient(90deg,#000 0 3px,transparent 3px 5px);mask:repeating-linear-gradient(90deg,#000 0 3px,transparent 3px 5px);opacity:.9}
.un .cs-page .cs-sg .type-mono-number{display:block;font-family:var(--sans);font-size:clamp(48px,5vw,76px);line-height:1;font-weight:500;letter-spacing:-.05em;color:var(--ink);font-variant-numeric:tabular-nums}
.un .cs-page .cs-sl{margin-top:10px;font-size:15px;line-height:1.4;color:var(--ink-2);max-width:260px}

/* quote bands */
.un .cs-page .section-inverted{background:linear-gradient(180deg,var(--deep),#0A2238);color:#fff;padding:var(--s9) 0}
.un .cs-page .testimonial{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--s7);padding:0;margin:0;border:0;background:none}
.un .cs-page .testimonial-company{color:#8FA8BF}
.un .cs-page .testimonial-body{margin:0}
.un .cs-page .pull-quote,.un .cs-page .testimonial-quote{margin:0;padding:0 0 0 var(--s5);border-left:2px solid var(--lime);font-family:var(--sans);font-style:normal;font-size:clamp(21px,2.1vw,30px);line-height:1.35;letter-spacing:-.022em;font-weight:400;color:#fff;quotes:none}
.un .cs-page .pull-quote::first-letter{text-transform:uppercase}
.un .cs-page .cs-q-short .pull-quote{font-size:clamp(26px,3.3vw,46px);line-height:1.14;letter-spacing:-.034em;font-weight:500;text-wrap:balance;max-width:20ch}
.un .cs-page .pull-quote::before,.un .cs-page .pull-quote::after{content:none}
.un .cs-page .testimonial-author-row{display:flex;align-items:center;gap:14px;margin-top:var(--s6)!important;padding-left:var(--s5)}
.un .cs-page .testimonial-avatar{width:40px;height:40px;border-radius:50%;object-fit:cover;border:0}
.un .cs-page .testimonial-initials{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--deep-line);color:#fff;font-size:13px;font-weight:600}
.un .cs-page .testimonial-author{margin:0;font-family:var(--sans);font-size:14.5px;font-style:normal;color:#C9D8E6;letter-spacing:0;text-transform:none}
.un .cs-page .cs-quote-context{color:#8FA8BF}
.un .cs-page .testimonial-logo{margin-left:auto;height:20px;width:auto;filter:brightness(0) invert(1);opacity:.85}
.un .cs-page .cs-q2{background:#fff!important;border-top:1px solid var(--line)}
.un .cs-page .cs-q2 .testimonial-company{color:var(--slate)}
.un .cs-page .cs-q2 .pull-quote{color:var(--ink);border-color:var(--cobalt)}
.un .cs-page .cs-q2 .testimonial-author{color:var(--ink-2)}
.un .cs-page .cs-q2 .testimonial-initials{background:var(--ink)}
.un .cs-page .cs-q2 .testimonial-logo{filter:none;opacity:1}

/* label-left sections */
.un .cs-page .section-header{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,9fr);gap:var(--s7);margin:0;padding:0}
.un .cs-page .section-header-label{padding-top:10px}
.un .cs-page .section-header-label .type-label{display:flex;align-items:center;gap:10px}
.un .cs-page .section-header-label .type-label::before{content:"";width:14px;height:10px;background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px)}
.un .cs-page h2.type-section{font-family:var(--sans);font-size:clamp(28px,2.8vw,40px);line-height:1.1;letter-spacing:-.032em;font-weight:500;color:var(--ink);margin:0;text-wrap:balance}
.un .cs-page .cs-section-body{margin-top:var(--s6)}
.un .cs-page .cs-section-desc{margin-top:var(--s3);font-size:16px;color:var(--slate)}
.un .cs-page #key-facts{background:#fff}

/* key facts, as a record */
.un .cs-page .cs-facts{margin:var(--s6) 0 0;border:1px solid var(--line);border-radius:var(--r3);overflow:hidden;background:#fff;box-shadow:0 18px 40px -30px rgba(11,29,51,.35)}
.un .cs-page .cs-facts>div{display:grid;grid-template-columns:200px minmax(0,1fr);gap:var(--s5);padding:14px 22px;border-bottom:1px solid var(--line)}
.un .cs-page .cs-facts>div:last-child{border-bottom:0}
.un .cs-page .cs-facts>div:nth-child(odd){background:linear-gradient(90deg,var(--paper),#fff)}
.un .cs-page .cs-facts dt{font-family:var(--mono);font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:var(--slate);padding-top:3px}
.un .cs-page .cs-facts dd{margin:0;font-size:15.5px;line-height:1.55;color:var(--ink)}

/* overview: the numbered list */
.un .cs-page .numbered-list{border-top:1px solid var(--ink)}
.un .cs-page .numbered-list-item{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;padding:22px 0;margin:0;border:0;border-bottom:1px solid var(--line)}
.un .cs-page .numbered-list-item .type-mono-number{font-family:var(--mono);font-size:12px;letter-spacing:.04em;color:var(--slate);padding-top:6px}
.un .cs-page .numbered-list-title{font-family:var(--sans);font-size:20px;font-weight:500;letter-spacing:-.018em;color:var(--ink);margin:0}
.un .cs-page .numbered-list-desc{margin-top:8px;font-size:16px;line-height:1.6;color:var(--ink-2)}

/* the timeline: a dated rail */
.un .cs-page .cs-rows{margin-left:0;border-left:2px solid var(--line)}
.un .cs-page .cs-rows>li{position:relative;display:grid;grid-template-columns:130px minmax(0,1fr);gap:var(--s5);padding:12px 0 12px 24px;border:0;margin:0}
.un .cs-page .cs-rows>li::before{content:"";position:absolute;left:-6px;top:19px;width:10px;height:10px;border-radius:3px;background:#fff;box-shadow:inset 0 0 0 2px var(--cobalt)}
.un .cs-page .cs-row-key{font-family:var(--mono);font-size:12.5px;letter-spacing:.02em;color:var(--slate);padding-top:3px;margin:0}
.un .cs-page .cs-rows p{margin:0;font-size:16px;line-height:1.55;color:var(--ink)}
.un .cs-page .cs-row-marker{display:inline-block;margin-top:8px!important;padding:3px 8px;border-radius:4px;background:var(--lime);font-family:var(--mono);font-size:11px!important;letter-spacing:.04em;text-transform:uppercase;color:var(--ink)!important}
.un .cs-page .cs-rows>li:has(.cs-row-marker)::before{background:var(--lime);box-shadow:inset 0 0 0 2px var(--ink)}
.un .cs-page .cs-turn{border-left:0;border-top:1px solid var(--ink)}
.un .cs-page .cs-turn>li{padding:16px 0;border-bottom:1px solid var(--line)}
.un .cs-page .cs-turn>li::before{display:none}
.un .cs-page .cs-turn .cs-row-key{color:var(--cobalt);font-weight:500}

/* hood and FAQ: the site's disclosure rows */
.un .cs-page .pricing-faq{border-top:1px solid var(--ink);margin-top:var(--s6)}
.un .cs-page .pricing-faq-item{border:0;border-bottom:1px solid var(--line);padding:0;margin:0;background:none}
.un .cs-page .pricing-faq-question{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--s5);padding:20px 0;list-style:none;cursor:pointer}
.un .cs-page .pricing-faq-question::-webkit-details-marker{display:none}
.un .cs-page .pricing-faq-question::after{content:"+";flex:none;font-size:20px;line-height:1;color:var(--slate);transition:transform .3s var(--ease)}
.un .cs-page details[open]>.pricing-faq-question::after{transform:rotate(45deg)}
.un .cs-page .pricing-faq-question h3{margin:0;font-family:var(--sans);font-size:18px;font-weight:500;letter-spacing:-.016em;line-height:1.35;color:var(--ink)}
.un .cs-page .pricing-faq-question:hover h3{color:var(--cobalt)}
.un .cs-page .pricing-faq-answer{margin:0;padding:0 var(--s7) 22px 0;font-size:16px;line-height:1.6;color:var(--ink-2);max-width:760px}
.un .cs-page .cs-hood-list{display:grid;gap:8px}
.un .cs-page .cs-hood-list li{position:relative;padding-left:18px;font-size:15px}
.un .cs-page .cs-hood-list li::before{content:"";position:absolute;left:0;top:10px;width:8px;height:2px;background:var(--cobalt)}
.un .cs-page .cs-hood-list code{font-family:var(--mono);font-size:13px;background:var(--paper);padding:1px 5px;border-radius:4px;overflow-wrap:anywhere}

/* more stories: one strip, a column for each story. The slats over a column are its part of the
   spectrum ribbon (--p, set in templates/partials/case-study-cards.eta); they rise on hover. */
.un .cs-page .cs-more{background:#fff}
.un .cs-more-head{display:flex;justify-content:space-between;align-items:flex-end;gap:var(--s5)}
.un .cs-more-head .type-label{display:flex;align-items:center;gap:10px;margin-bottom:var(--s4)}
.un .cs-more-head .type-label::before{content:"";width:14px;height:10px;background:repeating-linear-gradient(90deg,currentColor 0 2px,transparent 2px 4px)}
.un .cs-more-head a.lk{flex:none;padding-bottom:6px}
.un .cs-page .case-study-grid{display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr));gap:0;margin-top:var(--s6);background:none;box-shadow:none;border-bottom:1px solid var(--line)}
.un .case-study-card{position:relative;grid-column:auto!important;display:flex;flex-direction:column;gap:0;padding:38px 26px 26px 0;border:0;border-radius:0;background:none;color:var(--ink)}
.un .case-study-card+.case-study-card{padding-left:26px;border-left:1px solid var(--line)}
.un .case-study-card::before{content:"";position:absolute;left:0;right:0;top:0;height:8px;background:var(--spec) var(--p,0%) 0/calc(var(--n,4)*100%) 100% no-repeat;-webkit-mask:repeating-linear-gradient(90deg,#000 0 3px,transparent 3px 6px);mask:repeating-linear-gradient(90deg,#000 0 3px,transparent 3px 6px);transform-origin:top;transition:transform .35s var(--ease)}
.un .case-study-card:hover::before,.un .case-study-card:focus-visible::before{transform:scaleY(2.25)}
.un .case-study-card:hover h3{color:var(--cobalt)}
.un .case-study-card:focus-visible{outline:2px solid var(--cobalt);outline-offset:-2px}
.un .cs-card-logo{height:28px;display:flex;align-items:center;margin-bottom:var(--s6)}
.un .case-study-card .case-study-logo{height:24px;width:auto;max-width:100%;object-fit:contain;object-position:left center;filter:brightness(0);opacity:.88}
.un .case-study-card:hover .case-study-logo{filter:brightness(0);opacity:1}
.un .case-study-card h3{margin:0;font-family:var(--sans);font-size:clamp(20px,1.6vw,23px);font-weight:500;line-height:1.2;letter-spacing:-.024em;color:var(--ink);text-wrap:balance;transition:color .2s}
.un .case-study-description{margin:var(--s3) 0 0;font-size:14.5px;line-height:1.5;color:var(--slate);text-wrap:pretty}
.un p.case-study-tag{margin:var(--s3) 0 0;font-family:var(--mono);font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:var(--cobalt);background:none;border:0;padding:0}
.un .case-study-link{display:inline-flex;gap:6px;margin-top:auto;padding-top:var(--s6);font-size:14.5px;font-weight:500;color:var(--cobalt);text-decoration:none!important}
.un .case-study-link b{font-weight:400;transition:transform .25s var(--ease)}
.un .case-study-card:hover .case-study-link b{transform:translateX(4px)}

/* closing band: the button the template must keep as .btn-primary */
.un .cs-page .cs-end{padding:var(--s8) 0 108px;background:linear-gradient(180deg,var(--paper),#fff);border-top:1px solid var(--line)}
.un .cs-page a.btn-primary{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 20px;border:0;border-radius:var(--r2);background:var(--ink);color:#fff;font-size:15.5px;font-weight:500;letter-spacing:-.01em;white-space:nowrap;transition:background .25s var(--ease)}
.un .cs-page a.btn-primary:hover{background:var(--cobalt)}

@media (max-width:1100px){.un .cs-page .section-header,.un .cs-page .testimonial{grid-template-columns:1fr;gap:var(--s4)}.un .cs-page .case-study-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.un .case-study-card:nth-child(odd){padding-left:0;border-left:0}.un .case-study-card:nth-child(n+3){border-top:1px solid var(--line)}}
@media (max-width:900px){.un .cs-page section{padding:var(--s7) 0}.un .cs-page .section-inverted{padding:var(--s8) 0}.un .cs-page .cs-end{padding-bottom:96px}}
@media (max-width:700px){.un .cs-page .cs-sg{grid-template-columns:1fr}.un .cs-page .cs-sg>div{border-right:0;border-bottom:1px solid var(--line);padding:20px 18px 30px}.un .cs-page .cs-sg>div::after{left:18px;right:18px}.un .cs-page .cs-facts>div{grid-template-columns:1fr;gap:4px;padding:12px 16px}.un .cs-page .cs-rows>li{grid-template-columns:1fr;gap:2px;padding-left:18px}.un .cs-page .case-study-grid{grid-template-columns:1fr}.un .case-study-card,.un .case-study-card+.case-study-card{padding:32px 0 24px;border-left:0}.un .case-study-card+.case-study-card{border-top:1px solid var(--line)}.un .cs-card-logo{margin-bottom:var(--s5)}.un .cs-more-head{flex-direction:column;align-items:flex-start;gap:var(--s4)}.un .cs-more-head a.lk{padding-bottom:0}.un .cs-page .testimonial-author-row{flex-wrap:wrap}.un .cs-page .testimonial-logo{margin-left:0}.un .cs-page .numbered-list-item{grid-template-columns:36px minmax(0,1fr)}.un .cs-page .pricing-faq-answer{padding-right:0}}

/* ---------- Level layout (site.css): the head runs across the page (H1 left, lead right); the results window
   stands on the level ribbon; the quote band gets the deep deck's slat floor; labels stick like a rail. ---------- */
.un .cs-page section{padding:clamp(56px,7.4vw,104px) 0}
.un .cs-page>section:first-child{padding:clamp(48px,5.4vw,80px) 0 var(--s7)}
.un .cs-hero{max-width:none;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);justify-content:space-between;gap:0 var(--s8);align-items:end}
.un .cs-breadcrumb{grid-column:1/-1}
.un .cs-page h1.type-hero{font-size:clamp(36px,4.3vw,60px)}
.un .cs-page .cs-lead{margin-top:0;padding-bottom:6px;max-width:none;text-wrap:pretty}
.un .cs-page>section:nth-child(2){padding-top:0;padding-bottom:calc(var(--s8) + 58px);overflow:hidden}
.un .cs-page>section:nth-child(2)>canvas{position:absolute;left:0;bottom:var(--s8);width:100%;height:220px;z-index:0;pointer-events:none}
.un .cs-page>section:nth-child(2)>.wrap{position:relative;z-index:1}
.un .cs-res{box-shadow:0 36px 70px -30px rgba(11,29,51,.5)}
.un .cs-page .section-inverted{padding:clamp(72px,8vw,112px) 0}
.un .cs-page .section-inverted::after{content:"";position:absolute;left:0;right:0;bottom:0;height:10px;background:linear-gradient(90deg,#1456E8 0%,#19B8E0 34%,#2FD6A0 66%,#C6F03C 100%);-webkit-mask:repeating-linear-gradient(90deg,#000 0 4px,transparent 4px 7px);mask:repeating-linear-gradient(90deg,#000 0 4px,transparent 4px 7px)}
.un .cs-page .section-header-label{position:sticky;top:104px;align-self:start}
.un .cs-page #overview,.un .cs-page #asked-delivered,.un .cs-page #faq{background:var(--paper)}
@media (max-width:1100px){
  .un .cs-hero{grid-template-columns:minmax(0,1fr)}
  .un .cs-page .cs-lead{margin-top:var(--s5);max-width:640px;padding-bottom:0}
  .un .cs-page .section-header-label{position:static}
}
@media (max-width:900px){.un .cs-page>section:nth-child(2){padding-bottom:calc(var(--s7) + 52px)}.un .cs-page>section:nth-child(2)>canvas{bottom:var(--s7);height:200px}}
