/* Shared layout for the rebuilt case studies. Portfolio foundations remain unchanged. */
.cs{--accent:#191717;--line:#d3d9e4;--panel:var(--work-surface);--cs-stage:#191717;--cs-stage-screen:#292728;--cs-risk:#a8432a}
.underdawgs{--cs-stage:#261536;--cs-stage-screen:#362349}
.neurofleet{--cs-stage:#484AB8;--cs-stage-screen:#5861D8}
.cs .top-progress,.cs .chapter-strip a[aria-current='location']::before{background:var(--ink)}

/* Hero: headline, one line, one screen, then the facts a reader looks for first. */
.cs .hero-intro{padding-top:32px;text-align:left}
.cs .hero-intro .eyebrow{font-size:14px;margin-bottom:20px}
.cs .case-hero h1{font-size:clamp(40px,5vw,72px);font-weight:500;line-height:1.1}
.cs .hero-summary{margin:24px 0 0;max-width:640px;font-size:clamp(17px,1.5vw,20px)}
.cs .project-facts{grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;padding:32px 0;border-bottom:1px solid var(--line)}
.cs .project-facts dt{font-size:13px;margin-bottom:4px}
.cs .project-facts dd{font-size:16px}
.cs .cs-glance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;padding-top:32px}
.cs .cs-glance h2{margin-bottom:10px;color:var(--muted);font-size:13px;font-weight:500;line-height:1.4;letter-spacing:.04em}
.cs .cs-glance p{font-size:17px;line-height:1.5}
.cs .cs-glance strong{font-weight:600}

/* Sections share one rhythm: small label, one headline, at most a sentence or two. */
.cs .case-story{margin-top:clamp(72px,8vw,120px)}
.cs .cs-section{margin-top:clamp(88px,10vw,144px);scroll-margin-top:32px}
.cs .case-story__content>.cs-section:first-child{margin-top:0}
.cs .cs-head{max-width:760px;margin-bottom:40px}
.cs .cs-label{margin-bottom:12px;color:var(--muted);font-size:13px;font-weight:500;line-height:1.4;letter-spacing:.04em}
.cs .cs-head h2{font-size:clamp(28px,3vw,40px);line-height:1.18}
.cs .cs-lede{margin-top:16px;max-width:640px;color:var(--muted);font-size:17px;line-height:1.6}
.cs h3{font-size:18px;font-weight:500;line-height:1.35;letter-spacing:-.015em}

/* Screens: original image when supplied, otherwise a quiet wireframe. */
.cs .cs-screen{min-width:0}
.cs .cs-slot{width:100%;aspect-ratio:var(--asset-ratio,16/9);min-height:0;padding:0;overflow:hidden;background:var(--panel);border-radius:14px;color:#3f4757}
.cs .cs-wire{position:absolute;inset:0;width:100%;height:100%}
.cs .cs-slot__tag{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:4px 10px;border-radius:999px;background:#ffffffd9;color:#4b5362;font-size:11px;line-height:1.5;text-align:left}
.cs .cs-slot.has-asset>svg,.cs .cs-slot.has-asset>span{visibility:hidden}
.cs .cs-screen figcaption{margin-top:12px;color:var(--muted);font-size:14px;line-height:1.5}
.cs .cs-screen figcaption b{color:var(--ink);font-weight:500}
.cs .cs-stage{padding:clamp(12px,3vw,48px);background:var(--cs-stage);border-radius:var(--work-panel-radius)}
.cs .cs-stage .cs-slot{background:var(--cs-stage-screen);color:#e8e9ee}
.cs .cs-stage--hero{margin-top:48px}
.sentinel [data-asset='MOST_SEARCHED_PROMPTS']>img,.sentinel [data-asset='CHAT_HISTORY_PANEL']>img{inset:16px;width:calc(100% - 32px);height:calc(100% - 32px)}
.sentinel [data-asset='QUERY_LOADING_RESPONSE']{aspect-ratio:21/5}
.sentinel [data-asset='QUERY_LOADING_RESPONSE'] .cs-wire{display:none}
.sentinel [data-asset='QUERY_LOADING_RESPONSE'] .cs-slot__tag{display:none}
.sentinel :is(.cs-strip-first,.cs-strip-second,.cs-strip-third){position:absolute;top:10%;width:29.5238%;height:75.5556%;overflow:hidden;border-radius:clamp(6px,1vw,18px);background:var(--panel)}
.sentinel .cs-strip-first{left:4.2857%}
.sentinel .cs-strip-second{left:35.2381%}
.sentinel .cs-strip-third{left:66.1905%}
.sentinel :is(.cs-strip-first,.cs-strip-second,.cs-strip-third) img{width:100%;height:100%;object-fit:contain;object-position:center top}
.sentinel :is(.cs-strip-first,.cs-strip-second,.cs-strip-third):focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.cs .cs-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.underdawgs .cs-priority-map__frame{display:block;width:100%;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:var(--panel)}
.underdawgs .cs-priority-map__frame img{display:block;width:100%;height:100%;object-fit:contain}
.underdawgs .cs-priority-map__frame:focus-visible{outline:2px solid #191717;outline-offset:3px}
.underdawgs .cs-flow-link{display:block;min-width:0;cursor:zoom-in}
.underdawgs .cs-flow-link:focus-visible{outline:2px solid #191717;outline-offset:3px;border-radius:14px}
.cs .cs-trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:20px}
.sentinel .cs-trio{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Problem */
.cs .cs-compare{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.cs .cs-compare__col{display:flex;flex-direction:column;align-items:center;min-width:0;padding:24px;background:var(--panel);border-radius:18px}
.cs .cs-compare__col .cs-label{align-self:flex-start;margin-bottom:20px}
.cs .cs-compare__col--after{background:#fff}
.cs .cs-compare figcaption{grid-column:1/-1;color:var(--muted);font-size:13px}
.cs .cs-node{position:relative;padding:10px 16px;border:1px solid #c5ccd9;border-radius:10px;background:#fff;font-size:14px;line-height:1.35;text-align:center}
.cs .cs-node--muted{border-style:dashed;background:transparent;color:var(--muted)}
.cs .cs-node--mid,.cs .cs-node--strong{margin-top:28px}
.cs .cs-node--mid::before,.cs .cs-node--strong::before{content:'';position:absolute;left:50%;bottom:100%;width:1px;height:28px;background:#9aa3b3}
.cs .cs-node--strong{border-color:#191717;background:#191717;color:#fff}
.cs .cs-fan{position:relative;flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;padding-block:28px;background:linear-gradient(#9aa3b3,#9aa3b3) center top/1px 14px no-repeat,linear-gradient(#9aa3b3,#9aa3b3) center bottom/1px 14px no-repeat}
.cs .cs-fan::before,.cs .cs-fan::after{content:'';position:absolute;left:16.66%;right:16.66%;height:14px;border:1px solid #9aa3b3;border-bottom:0}
.cs .cs-fan::before{top:14px}
.cs .cs-fan::after{bottom:14px;transform:scaleY(-1)}
.cs .cs-fan span{position:relative;display:grid;place-items:center;min-width:0;padding:10px 6px;border:1px solid #c5ccd9;border-radius:10px;background:#fff;color:var(--muted);font-size:13px;line-height:1.3;text-align:center}
.cs .cs-jobs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;margin:48px 0 0;padding:0;list-style:none}
.cs .cs-jobs p{margin-top:6px;color:var(--muted);font-size:15px;line-height:1.5}
.cs .cs-challenge{margin-top:56px;padding-top:32px;border-top:1px solid var(--line);font-size:clamp(22px,2.2vw,30px);line-height:1.35;letter-spacing:-.025em}
.cs .cs-challenge>span{display:block;margin-bottom:12px;color:var(--muted);font-size:13px;font-weight:500;letter-spacing:.04em}
.cs .cs-challenge em{display:block;font-style:normal;font-size:1.08em}

/* Users */
.cs .cs-table{width:100%;border-collapse:collapse;font-size:15px;line-height:1.5;text-align:left}
.cs .cs-table thead th{padding:0 24px 12px 0;color:var(--muted);font-size:13px;font-weight:500}
.cs .cs-table tbody th,.cs .cs-table td{padding:18px 24px 18px 0;border-top:1px solid var(--line);vertical-align:top}
.cs .cs-table tbody th{width:24%;font-weight:500}
.cs .cs-table td{width:38%;color:var(--muted)}
.cs .cs-table td:last-child{color:var(--ink)}
.cs .cs-research{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:48px;align-items:center;margin-top:48px}
.sentinel .cs-query-gallery{min-width:0;margin:0}
.sentinel .cs-query-gallery__frame{position:relative;aspect-ratio:4/3;overflow:hidden;border-radius:14px;background:var(--panel)}
.sentinel .cs-query-gallery__image{position:absolute;inset:0 0 50px;display:flex;align-items:center;justify-content:center;padding:12px}
.sentinel .cs-query-gallery__image[hidden]{display:none}
.sentinel .cs-query-gallery img{display:block;width:100%;height:100%;object-fit:contain;border-radius:8px}
.sentinel .cs-query-gallery__controls{position:absolute;inset:auto 0 0;display:flex;align-items:center;justify-content:center;gap:6px;height:50px;padding:6px;background:var(--panel)}
.sentinel .cs-query-gallery__controls button{padding:6px 10px;border:0;border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.sentinel .cs-query-gallery__controls button[aria-pressed='true']{background:#fff}
.sentinel .cs-query-gallery :is(a,button):focus-visible{outline:2px solid var(--ink);outline-offset:2px}
.sentinel .cs-query-gallery figcaption{margin-top:8px;color:var(--muted);font-size:13px;line-height:1.4}
.cs .cs-research h3+ul{margin-top:12px}
.cs .cs-research ul+h3{margin-top:32px}
.cs .cs-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.cs .cs-tags li{padding:5px 12px;border-radius:999px;background:var(--panel);font-size:14px;line-height:1.4}
.cs .cs-list{margin:0;padding:0;list-style:none;color:var(--muted);font-size:15px;line-height:1.5}
.cs .cs-list li{position:relative;padding-left:16px}
.cs .cs-list li+li{margin-top:6px}
.cs .cs-list li::before{content:'';position:absolute;left:0;top:.68em;width:6px;height:1px;background:currentColor}

/* Approach */
.cs .cs-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto auto;gap:0 20px}
.cs .cs-option{display:grid;grid-template-rows:subgrid;grid-row:span 3;row-gap:20px;padding:24px;background:var(--panel);border-radius:18px}
.cs .cs-option dl{display:grid;gap:16px;align-content:start}
.cs .cs-option dt{color:var(--muted);font-size:13px}
.cs .cs-option dd{margin-top:2px;font-size:15px;line-height:1.45}
.cs .cs-verdict{align-self:end;padding-top:14px;border-top:1px solid #c5ccd9;color:var(--muted);font-size:14px}
.cs .cs-option--selected{background:#191717;color:#f4f5f8}
.cs .cs-option--selected dt{color:#a9abb2}
.cs .cs-option--selected .cs-verdict{border-color:#4c4a4b;color:#fff;font-weight:500}
.cs .sa-direction-sketch{
  aspect-ratio:296 / 142;
  border-radius:10px;
  background:#c5beb7 center / contain no-repeat;
}
.cs .sa-direction-sketch--dashboard{
  background-image:url('/assets/sentinel-ai/sentinel-ideation-dashboard.png');
}
.cs .sa-direction-sketch--filters{
  background-image:url('/assets/sentinel-ai/sentinel-ideation-filters.png');
}
.cs .sa-direction-sketch--chat{
  background-image:url('/assets/sentinel-ai/sentinel-ideation-chatbot.png');
}
.cs .sa-directions .cs-option dd{font-size:16px;line-height:1.55}
.cs .sa-directions .cs-verdict{line-height:1.5}
@media(min-width:981px){
  .cs .sa-directions{grid-template-rows:repeat(4,auto)}
  .cs .sa-directions .cs-option{grid-row:span 4}
}
@media(max-width:980px){
  .cs .cs-options.sa-directions{grid-template-columns:minmax(0,1fr);grid-template-rows:none;row-gap:12px}
  .cs .sa-directions .cs-option{display:block;grid-row:auto}
  .cs .sa-directions .sa-direction-sketch{max-width:420px;margin-bottom:16px}
  .cs .sa-directions .cs-option dl,.cs .sa-directions .cs-verdict{margin-top:16px}
}
.cs .cs-flow{margin-top:48px}
.cs .cs-flow figcaption{margin-bottom:24px;font-size:18px;font-weight:500;letter-spacing:-.015em}
.cs .cs-flow ol{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;padding:0;list-style:none}
.cs .cs-flow li{position:relative;min-width:0;padding:22px 16px 0 0;border-top:1px solid #9aa3b3}
.cs .cs-flow li::before{content:'';position:absolute;top:-5px;left:0;width:9px;height:9px;border-radius:50%;background:#9aa3b3}
.cs .cs-flow b{display:block;font-size:15px;font-weight:500}
.cs .cs-flow span{display:block;margin-top:2px;color:var(--muted);font-size:14px;line-height:1.45}
.cs .cs-flow .cs-flow__human::before{background:#191717}
.cs .cs-flow--flush{margin-top:0}
.cs .cs-flow--steps{margin:0 0 32px}
.cs .cs-flow--steps ol{grid-template-columns:repeat(4,minmax(0,1fr))}

/* Key decisions */
.cs .cs-decision{padding-top:32px;border-top:1px solid var(--line)}
.cs .cs-decision+.cs-decision{margin-top:72px}
.cs .cs-decision__text{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:48px;margin-bottom:32px}
.cs .cs-decision__title{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px}
.cs .cs-number{padding-top:6px;color:var(--muted);font-size:13px}
.cs .cs-decision h3{font-size:clamp(20px,1.9vw,24px);line-height:1.25;letter-spacing:-.025em}
.cs .cs-decision__body>p:first-child{font-size:16px;line-height:1.55}
.cs .cs-note{margin-top:12px;color:var(--muted);font-size:14px;line-height:1.5}
.cs .cs-note b{display:inline-block;margin-right:8px;color:var(--ink);font-weight:500}

/* Outcome */
.cs .cs-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.cs .cs-metrics li{display:flex;flex-direction:column;align-items:flex-start;padding:24px;background:var(--panel);border-radius:18px}
.cs .cs-metrics strong{font-size:clamp(28px,3.2vw,44px);font-weight:500;line-height:1.1;letter-spacing:-.04em}
.cs .cs-metrics span{margin-top:10px;color:var(--muted);font-size:15px;line-height:1.4}
.cs .cs-closing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;margin-top:48px}
.cs .cs-closing h3{margin-bottom:10px}
.cs .cs-closing>div>p{color:var(--muted);font-size:15px;line-height:1.55}
.cs .case-footer{padding-top:clamp(88px,10vw,144px)}

/* Mobile products: phones, panels and supporting comparisons. */
.cs .cs-phones{display:flex;justify-content:center;align-items:flex-start;gap:clamp(12px,3vw,40px)}
.cs .cs-phones>.cs-screen{flex:0 1 250px}
.cs .cs-phone .cs-slot{aspect-ratio:9/19.5;border-radius:clamp(14px,2vw,28px);background:#f8f9fd;box-shadow:0 0 0 1px #c5ccd9}
.cs .cs-stage .cs-phone .cs-slot{background:var(--cs-stage-screen);color:#e8e9ee;box-shadow:0 0 0 1px #ffffff2e}
.underdawgs .cs-stage--hero .cs-phone .cs-slot.has-asset{background:transparent;box-shadow:none}
.underdawgs .cs-stage--hero .cs-phone .cs-slot.has-asset>img{object-fit:fill;background:transparent}
.neurofleet .cs-stage--hero [data-asset='heroHome'].has-asset,.neurofleet .cs-stage--hero [data-asset='heroPerformance'].has-asset{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-stage--hero [data-asset='heroHome'].has-asset>img,.neurofleet .cs-stage--hero [data-asset='heroPerformance'].has-asset>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='homeLight'],.neurofleet .cs-decision [data-asset='upcomingRide']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='homeLight']>img,.neurofleet .cs-decision [data-asset='upcomingRide']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-stage--hero .cs-phones>.cs-screen{flex:0 1 320px}
.cs .cs-phone .cs-slot__tag{left:50%;bottom:10px;transform:translateX(-50%);white-space:nowrap}
.cs .cs-phone figcaption{text-align:center}
.cs .cs-stage .cs-phone figcaption{color:#f1eef8}
.cs .cs-panel{padding:clamp(20px,4vw,56px);background:var(--panel);border-radius:18px}
.cs .cs-panel .cs-slot{background:#f8f9fd}
.cs .cs-panel--split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:clamp(20px,4vw,48px);align-items:center}
.cs .cs-before-after{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:48px}
.cs .cs-before-after>figure{display:flex;flex-direction:column;min-width:0;padding:24px;background:var(--panel);border-radius:18px}
.cs .cs-before-after>figure:last-child{background:#fff}
.cs .cs-before-after .cs-label{margin-bottom:4px}
.cs .cs-before-after .cs-screen{width:min(62%,240px);margin:auto;padding-block:24px}
.cs .cs-before-after .cs-doc{width:min(78%,390px)}
.cs .cs-before-after>figure>figcaption{color:var(--muted);font-size:15px;line-height:1.5}
.cs .cs-doc .cs-slot{background:#f8f9fd;box-shadow:0 0 0 1px #c5ccd9;border-radius:6px}
.underdawgs .cs-before-after .cs-doc{width:min(100%,620px)}
.underdawgs .cs-before-after .cs-doc .cs-slot{aspect-ratio:3/2;padding:12px;background:#fff;border-radius:12px}
.underdawgs .cs-before-after [data-asset='newExperience'].has-asset{background:transparent;box-shadow:none}
.underdawgs .cs-before-after [data-asset='newExperience'].has-asset>img{object-fit:fill;background:transparent}
.underdawgs [data-asset='matchTimeline'].has-asset,.underdawgs [data-asset='matchPerformance'].has-asset{background:transparent;box-shadow:none}
.underdawgs [data-asset='matchTimeline'].has-asset>img,.underdawgs [data-asset='matchPerformance'].has-asset>img{object-fit:fill;background:transparent}
.underdawgs [data-asset='metricsOverview'].has-asset,.underdawgs [data-asset='metricDetails'].has-asset,.underdawgs [data-asset='metricAnnotations'].has-asset{background:transparent;box-shadow:none}
.underdawgs [data-asset='metricsOverview'].has-asset>img,.underdawgs [data-asset='metricDetails'].has-asset>img,.underdawgs [data-asset='metricAnnotations'].has-asset>img{object-fit:fill;background:transparent}
.underdawgs [data-asset='growthOverview'].has-asset,.underdawgs [data-asset='trainingDrills'].has-asset{background:transparent;box-shadow:none}
.underdawgs [data-asset='growthOverview'].has-asset>img,.underdawgs [data-asset='trainingDrills'].has-asset>img{object-fit:fill;background:transparent}
.underdawgs .cs-journey-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(12px,3vw,48px);padding:clamp(20px,4vw,56px);border-radius:14px;background:#f8f9fd}
.underdawgs .cs-journey-gallery>.cs-screen{position:relative}
.underdawgs .cs-journey-gallery>.cs-screen:not(:last-child)::after{content:'→';position:absolute;top:50%;left:calc(100% + clamp(6px,1.5vw,24px));transform:translate(-50%,-50%);color:#7d879a;font-size:clamp(16px,2vw,24px);line-height:1;pointer-events:none}
.underdawgs .cs-journey-gallery .cs-slot{aspect-ratio:9/19.5;background:#e9ebf1}
.underdawgs .cs-journey-gallery .cs-slot.has-asset{background:transparent;box-shadow:none}
.underdawgs .cs-journey-gallery .cs-slot.has-asset>img{object-fit:fill;background:transparent}
@media(max-width:680px){
  .underdawgs .cs-pair--priority-map{grid-template-columns:1fr}
  .underdawgs .cs-journey-gallery{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;row-gap:44px}
  .underdawgs .cs-journey-gallery>.cs-screen:not(:last-child)::after{left:calc(100% + 14px)}
  .underdawgs .cs-journey-gallery>.cs-screen:nth-child(2)::after{content:'↙';top:calc(100% + 22px);left:-14px}
}
.underdawgs .cs-report-pages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;gap:12px;width:100%;height:100%}
.underdawgs .cs-report-pages img{position:static;width:100%;height:100%;object-fit:contain;background:#fff;border-radius:4px}
.cs .cs-doc .cs-slot__tag{left:50%;bottom:10px;transform:translateX(-50%);white-space:nowrap}
.cs .cs-callout{margin-top:48px;padding:24px;border-left:2px solid #191717;background:#fff;border-radius:0 12px 12px 0}
.cs .cs-callout h3{margin-bottom:6px}
.cs .cs-callout p{max-width:760px;color:var(--muted);font-size:15px;line-height:1.55}
.cs .cs-risk{display:block;margin-top:8px;color:var(--cs-risk);font-size:13px;font-style:normal;line-height:1.4}
.cs .cs-flow li.cs-flow__failed::before{background:var(--cs-risk)}
.cs .cs-field{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:48px;align-items:center;margin-bottom:48px}
.cs .cs-field strong{display:block;font-size:clamp(44px,5vw,72px);font-weight:500;line-height:1;letter-spacing:-.04em}
.cs .cs-field p{margin-top:12px;font-size:17px;line-height:1.45}
.cs .cs-field .cs-list{margin-top:20px}
.underdawgs [data-asset='fieldResearch']{aspect-ratio:16/9;padding:0;background:transparent;border-radius:0;box-shadow:none}
.underdawgs .cs-field-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%;height:100%}
.underdawgs .cs-field-photos img{position:static;width:100%;height:100%;object-fit:cover;background:transparent;border-radius:32px}
.cs .cs-scope{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:20px}
.cs .cs-scope>div{padding:24px;border-radius:18px;background:var(--panel)}
.cs .cs-scope>.cs-scope__core{background:#191717;color:#f4f5f8}
.cs .cs-scope h3{margin-bottom:16px}
.cs .cs-scope ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;list-style:none}
.cs .cs-scope b{display:block;font-size:15px;font-weight:500}
.cs .cs-scope ol span{display:block;margin-top:4px;color:#a9abb2;font-size:14px;line-height:1.45}
.cs .cs-ia{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:48px;margin:48px 0 0;padding:0;list-style:none}
.cs .cs-ia>li{padding-top:16px;border-top:1px solid #9aa3b3}
.cs .cs-ia .cs-list{margin-top:10px}
.cs .cs-ia-note{margin:24px 0 32px;max-width:760px;color:var(--muted);font-size:15px;line-height:1.55}
.cs .cs-section>.cs-panel{margin-top:20px}
.cs .cs-section>.cs-head+.cs-panel{margin-top:0}

@media(max-width:1200px){
  .cs .chapter-strip{margin-inline:calc(var(--page-gutter) * -1);padding-inline:var(--page-gutter);gap:20px;scrollbar-width:none}
  .cs .chapter-strip>span{display:none}
  .cs .case-story__content>.cs-section:first-child{margin-top:40px}
  .cs .cs-section{scroll-margin-top:80px}
}
@media(max-width:850px){
  .cs .cs-decision__text{grid-template-columns:1fr;gap:12px}
  .cs .cs-glance,.cs .cs-jobs{gap:24px}
  .cs .cs-research{gap:32px}
}
@media(max-width:680px){
  .cs .project-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:24px 0}
  .cs .project-facts dd{font-size:15px}
  .cs .cs-glance{grid-template-columns:1fr;padding-top:24px}
  .cs .cs-stage--hero{margin-top:32px}
  .cs .cs-slot{border-radius:10px}
  .cs .cs-stage{border-radius:18px}
  .cs .cs-slot__tag{left:8px;bottom:8px;max-width:calc(100% - 16px);padding:2px 8px;font-size:10px}
  .cs .cs-compare,.cs .cs-jobs,.cs .cs-research,.cs .cs-options,.cs .cs-metrics,.cs .cs-closing{grid-template-columns:1fr}
  .cs .cs-compare__col{padding:20px 16px}
  .cs .cs-jobs{margin-top:32px}
  .cs .cs-challenge{margin-top:40px}
  .cs .cs-table,.cs .cs-table tbody,.cs .cs-table tr,.cs .cs-table tbody th,.cs .cs-table td{display:block;width:auto}
  .cs .cs-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .cs .cs-table tr{padding:16px 0;border-top:1px solid var(--line)}
  .cs .cs-table tbody th,.cs .cs-table td{padding:0;border:0}
  .cs .cs-table td{margin-top:8px}
  .cs .cs-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px}
  .cs .cs-table td:first-of-type{color:var(--ink)}
  .cs .cs-research{margin-top:32px}
  .cs .cs-options{grid-template-rows:none;row-gap:12px}
  .cs .cs-option{display:block;grid-row:auto}
  .cs .cs-option dl{margin-top:16px}
  .cs .cs-verdict{margin-top:16px}
  .cs .cs-flow{margin-top:40px}
  .cs .cs-flow ol,.cs .cs-flow--steps ol{grid-template-columns:1fr}
  .cs .cs-flow li{padding:0 0 20px 24px;border-top:0;border-left:1px solid #9aa3b3}
  .cs .cs-flow li:last-child{padding-bottom:0;border-left-color:transparent}
  .cs .cs-flow li::before{top:6px;left:-5px}
  .cs .cs-pair{gap:12px}
  .cs .cs-trio{grid-template-columns:1fr;gap:16px}
  .sentinel .cs-trio{grid-template-columns:1fr}
  .cs .cs-decision+.cs-decision{margin-top:56px}
  .cs .cs-decision__text{margin-bottom:20px}
  .cs .cs-closing{gap:32px;margin-top:40px}
  .cs .cs-phones{gap:8px}
  .cs .cs-phone figcaption{margin-top:8px;font-size:12px}
  .cs .cs-phone .cs-slot__tag{bottom:6px;padding:1px 6px;font-size:9px}
  .cs .cs-panel--split,.cs .cs-before-after,.cs .cs-field,.cs .cs-scope,.cs .cs-scope ol,.cs .cs-ia{grid-template-columns:1fr}
  .underdawgs .cs-before-after .cs-doc .cs-slot{aspect-ratio:auto}
  .underdawgs .cs-report-pages{grid-template-columns:1fr;height:auto}
  .underdawgs .cs-report-pages img{height:auto}
  .cs .cs-panel--split{gap:20px}
  .cs .cs-before-after{margin-top:32px}
  .cs .cs-before-after .cs-screen{width:min(70%,220px)}
  .cs .cs-before-after .cs-doc{width:min(86%,300px)}
  .underdawgs .cs-before-after .cs-doc{width:100%}
  .cs .cs-field{gap:24px;margin-bottom:32px}
  .underdawgs [data-asset='fieldResearch']{aspect-ratio:auto}
  .underdawgs .cs-field-photos{grid-template-columns:1fr;height:auto}
  .underdawgs .cs-field-photos img{height:auto}
  .cs .cs-ia{gap:24px;margin-top:32px}
  .cs .cs-callout{margin-top:32px;padding:20px}
  .cs .cs-section>.cs-panel{margin-top:12px}
}

/* Side-by-side decisions: pinned text beside staggered phones. Neurofleet only for now. */
@media(min-width:851px){
  .neurofleet .cs-decision{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);gap:clamp(32px,4vw,64px);align-items:start}
  .neurofleet .cs-decision__text{position:sticky;top:32px;display:block;margin-bottom:0}
  .neurofleet .cs-decision__body{margin-top:16px}
  .neurofleet .cs-decision+.cs-decision{margin-top:56px}
  .neurofleet .cs-decision .cs-phones{padding-bottom:64px}
  .neurofleet .cs-decision .cs-phones>.cs-screen:nth-child(2){translate:0 32px}
  .neurofleet .cs-decision .cs-phones>.cs-screen:nth-child(3){translate:0 64px}
}
@media(min-width:851px) and (max-width:1200px){
  .neurofleet .cs-decision__text{top:72px}
}
.neurofleet .cs-decision .cs-panel{padding:0;background:none}
@media(max-width:850px){
  .neurofleet .cs-decision .cs-phones{padding-bottom:32px}
  .neurofleet .cs-decision .cs-phones>.cs-screen:nth-child(2){translate:0 16px}
  .neurofleet .cs-decision .cs-phones>.cs-screen:nth-child(3){translate:0 32px}
}
@media(max-width:680px){
  .underdawgs .cs-panel--metrics .cs-phones{flex-wrap:wrap;gap:20px 8px}
  .underdawgs .cs-panel--metrics .cs-phones>.cs-screen{flex:0 1 calc(50% - 4px)}
}

.neurofleet .cs-fieldwork-screens{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:minmax(0,1fr);gap:clamp(8px,1.5vw,18px);padding:clamp(8px,1.5vw,18px);align-items:center;justify-items:center}
.neurofleet .cs-fieldwork-screens>img{position:static;inset:auto;display:block;width:100%;height:100%;min-height:0;object-fit:contain;background:transparent;border-radius:16px}
.neurofleet .cs-decision .cs-phones--pair{padding-bottom:0}
.neurofleet .cs-decision .cs-phones--pair>.cs-screen{flex:0 1 300px}
.neurofleet .cs-decision .cs-phones--pair>.cs-screen:nth-child(2){translate:none}
.neurofleet .cs-decision [data-asset='safetyParameters']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='safetyParameters']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='generalParameters']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='generalParameters']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='scoreDetail']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='scoreDetail']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='rideHistory']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='rideHistory']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='sortTrips']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='sortTrips']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='tripDetails']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='tripDetails']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='v1Route']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='v1Route']>img{object-fit:fill;background:transparent;border-radius:24px}
.neurofleet .cs-decision [data-asset='v1Time']{background:transparent;box-shadow:none;border-radius:24px}
.neurofleet .cs-decision [data-asset='v1Time']>img{object-fit:fill;background:transparent;border-radius:24px}

/* A single draggable comparison, scoped to Neurofleet decision four. */
.neurofleet .nf-compare{width:min(100%,340px);margin:0 auto}
.neurofleet .nf-compare__labels{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px;font-size:14px}
.neurofleet .nf-compare__stage{position:relative;aspect-ratio:9/20;overflow:hidden;border-radius:24px;cursor:ew-resize;touch-action:pan-y;user-select:none}
.neurofleet .nf-compare__stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}
.neurofleet .nf-compare__before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.neurofleet .nf-compare__divider{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:white;transform:translateX(-50%);pointer-events:none;box-shadow:0 0 5px #0004}
.neurofleet .nf-compare__divider>span{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:#191919;font-size:26px;box-shadow:0 2px 12px #0003;white-space:pre}
.neurofleet .nf-compare__hint{display:block;margin:16px 0 8px;text-align:center;font-size:14px;color:#616574}
.neurofleet .nf-compare__range{display:block;width:100%;height:32px;margin:0;accent-color:#5049b9;cursor:ew-resize}
.neurofleet .nf-compare__range:focus-visible{outline:2px solid #5049b9;outline-offset:4px;border-radius:8px}
.neurofleet .nf-compare:has(input:focus-visible) .nf-compare__stage{outline:2px solid #5049b9;outline-offset:4px}

.neurofleet .nf-final-video{display:flex;justify-content:center;align-items:center;margin-top:clamp(24px,4vw,56px)}
.neurofleet .nf-final-video video{display:block;width:min(100%,420px,33.75vh);height:auto;border-radius:24px;background:#252031;box-shadow:0 16px 42px #14162418}
