/* Approved Corteva reading treatment, 2026-09-24; generalised to every case the same day
   (Claude): --case-c/--case-t carry each case's own card colour, set per page by build.py.
   Static markup in case-reading.html; no lab switches or DOM rearrangement.
   Shared tokens, navigation, cursor, footer and transitions remain site-owned. */
.case-reader .casehero{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;gap:0;min-height:clamp(280px,42vh,480px);padding:0;background:var(--case-c,var(--c-case1));color:var(--case-t,var(--t-case1))}
/* Image-only full bleed. Every copy-bearing full-width block uses --pad below. */
.case-reader .reading-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 40%;z-index:-2}
.case-reader .casebody.panel.flush{padding:0;background:var(--c-read);color:var(--t-read)}
.case-reader .casebody .prose{max-width:none;width:100%;margin:0}
.case-reader .reading-opening,.case-reader .reading-chapter,.case-reader .prose .learned{padding:72px var(--pad);margin:0;border:0;background:var(--c-read);color:var(--t-read)}
.case-reader .reading-opening{padding-top:72px;padding-bottom:clamp(120px,15vw,220px)}
.case-reader .reading-opening .top{font-family:var(--mono);font-size:var(--label-size);letter-spacing:var(--label-tracking);margin:0 0 32px;opacity:.65;display:flex;justify-content:space-between}
.case-reader .reading-opening h1{font-family:var(--serif);font-size:clamp(40px,5.8vw,88px);line-height:1.08;font-weight:400;letter-spacing:-.025em;margin:0 0 64px;color:var(--t-read)}
.case-reader .title-phrase{display:block}
.case-reader .prose .reading-opening .case-opening{font-family:var(--sans);font-size:clamp(22px,1.85vw,28px);font-weight:400;line-height:1.55;max-width:38ch;margin:0;letter-spacing:-.018em;color:inherit}
.case-reader .reading-chapter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px clamp(40px,6vw,96px)}
.case-reader .reading-chapter .csec,.case-reader .prose .learned .lbl{grid-column:1/-1;margin:0 0 8px;padding:0;border:0;opacity:1;max-width:24ch;font-family:var(--serif);font-size:clamp(36px,3.5vw,54px);font-weight:400;line-height:1.12;letter-spacing:-.02em;text-transform:none;color:inherit}
.case-reader .reading-copy{grid-column:1;min-width:0;max-width:640px}
.case-reader .reading-copy p,.case-reader .reading-copy p.lead,.case-reader .prose .learned p{max-width:640px;margin:0 0 1.35em;font-family:var(--sans);font-size:18px;font-weight:400;line-height:1.65;letter-spacing:-.012em;color:inherit}
.case-reader .reading-copy strong{font-weight:650;color:var(--case-c,var(--c-case1))}
.case-reader .reading-copy p:last-child{margin-bottom:0}
.case-reader .prose .learned .lbl{display:block;margin-bottom:28px}
.case-reader .prose .learned p{margin-bottom:0}
.case-reader [data-composition=spread]{padding-top:0;padding-bottom:clamp(112px,12vw,180px)}
.case-reader .reading-chapter[data-composition=spread] .csec{margin-bottom:40px;max-width:16ch;font-size:clamp(40px,4vw,60px)}
.case-reader [data-composition=panorama]{padding-top:clamp(80px,10vw,150px)}
.case-reader .reading-chapter[data-composition=panorama] .csec{margin-bottom:48px;max-width:16ch;font-size:clamp(40px,4vw,60px)}
.case-reader [data-composition=closing]{background:var(--case-c,var(--c-case1));color:var(--case-t,var(--t-case1))}
.case-reader [data-composition=closing] strong{color:inherit}
@media(max-width:850px){
 .case-reader .reading-art{top:76px;height:calc(100% - 76px)}
 .case-reader .reading-opening,.case-reader .reading-chapter,.case-reader .prose .learned{padding:48px var(--pad)}
 .case-reader .reading-opening{padding-bottom:112px}
 .case-reader .reading-opening h1{font-size:clamp(32px,6.6vw,56px);margin-bottom:40px}
 .case-reader .reading-chapter{grid-template-columns:1fr;gap:28px}
 .case-reader .reading-chapter .csec,.case-reader .prose .learned .lbl{font-size:36px}
 .case-reader .reading-copy p,.case-reader .reading-copy p.lead,.case-reader .prose .learned p{font-size:17px}
 .case-reader [data-composition=spread]{padding-top:0;padding-bottom:88px}
 .case-reader [data-composition=panorama]{padding-top:56px}
 .case-reader .reading-chapter[data-composition=spread] .csec,.case-reader .reading-chapter[data-composition=panorama] .csec{font-size:40px;margin-bottom:24px}
}
/* A case with no hero yet opens straight on the title. */
.case-reader .casebody:first-child .reading-opening{padding-top:clamp(96px,11vw,160px)}

/* ===== Story layout (POR-75, 2026-10-05) ===== */
.case-story .b-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);height:calc(100vh - 42px);min-height:620px;background:var(--c-read);color:var(--t-read)}
.case-story .b-left{display:flex;flex-direction:column;padding:clamp(56px,9vh,104px) clamp(32px,4vw,64px) clamp(40px,6vh,64px) var(--pad)}
.case-story .b-meta{font:500 11px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.6;margin:0 0 clamp(24px,4vh,44px)}
.case-story .b-title{font:400 clamp(56px,6.6vw,108px)/.95 var(--serif);letter-spacing:-.025em;margin:0 0 clamp(28px,5vh,56px)}
.case-story .b-frame{font:400 clamp(18px,1.4vw,21px)/1.55 var(--sans);letter-spacing:-.01em;max-width:34ch;margin:0}
.case-story .b-stats{margin-top:auto;padding-top:20px;border-top:1px solid rgba(16,43,85,.18);display:grid;grid-template-columns:auto auto;justify-content:start;gap:12px clamp(32px,4vw,64px);align-items:end}
.case-story .b-stats b{display:block;font:400 clamp(36px,3.4vw,52px)/1 var(--serif);color:var(--case-c)}
.case-story .b-stats span{display:block;font-size:14px;opacity:.75;max-width:24ch}
.case-story .b-role{grid-column:1/-1}.case-story .b-role span{display:inline;font-size:13px;opacity:.7;max-width:none}.case-story .b-role span+span:before{content:" · "}
.case-story .b-right{position:relative;overflow:hidden}.case-story .b-right img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:68% 50%}
.case-story .b-right.field{background:var(--case-c)}
.case-story .fl{--pt:clamp(96px,14vh,160px);--colw:0px;position:relative;padding:var(--pt) var(--pad) 160px;background:var(--c-read);color:var(--t-read)}
.case-story .fl-switch{position:sticky;top:40px;height:84px;z-index:5;margin:0 calc(-1 * var(--pad)) 24px;background:var(--c-read);box-shadow:0 14px 14px -14px rgba(16,43,85,.18)}
.case-story .fl-switch button{position:absolute;top:50%;transform:translateY(-50%);font:500 11px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:inherit;background:var(--c-read);border:0;padding:8px 10px;cursor:pointer;opacity:.5;transition:opacity .3s}
.case-story .fl-switch button:hover,.case-story .fl-switch button.lit{opacity:1}
.case-story .fl-switch button[aria-pressed=true]{text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:1px}
.case-story .fl-switch button[aria-pressed=true]:after{content:" · locked";opacity:.55;display:inline-block;margin-left:2px;text-decoration:none}
.case-story .fl-switch .sk{right:calc(100% - var(--colw) + 10px)}.case-story .fl-switch .rd{left:calc(var(--colw) + 10px)}
.case-story .fl-spine{position:absolute;top:calc(var(--pt) + 84px);bottom:120px;left:var(--colw);width:1px;background:rgba(16,43,85,.2);transition:background .4s}
.case-story .fl-ch{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);gap:0 clamp(40px,6vw,120px)}
.case-story .fl-ch+.fl-ch{margin-top:clamp(88px,12vh,140px)}
.case-story .fl-ch+.fl-ch .fl-text:before{content:"";display:block;width:44px;height:2px;background:var(--case-c);margin:0 0 2.2em;opacity:.8}
.case-story .fl-after .fl-text:before{display:none}
.case-story .fl-note{position:sticky;top:30vh;align-self:start;padding-bottom:40px;opacity:.4;transition:opacity .45s ease}
.case-story .fl-note.on{opacity:1}.case-story .fl-note.on .fl-h{color:var(--case-c)}
.case-story .fl-n{font:500 11px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.65;margin:0 0 12px}
.case-story .fl-h{font:400 clamp(22px,1.8vw,27px)/1.18 var(--serif);letter-spacing:-.012em;margin:0;max-width:19ch;transition:color .45s ease,margin .35s ease}
.case-story .fl-t{font:500 16px/1.55 var(--sans);max-width:34ch;opacity:0;max-height:0;overflow:hidden;transition:opacity .35s ease,max-height .45s ease}
.case-story .fl-t ol{margin:6px 0 0;padding-left:1.1em}.case-story .fl-t li{margin:0 0 2px}
.case-story .fl-text{transition:opacity .4s ease}
.case-story .fl-text p{font:400 19px/1.75 var(--sans);letter-spacing:-.01em;margin:0 0 1.35em;max-width:62ch}
.case-story .fl-text .lbl{display:block;font:500 11px/1.4 var(--mono);letter-spacing:.1em;text-transform:uppercase;opacity:.6;margin:0 0 10px}
.case-story .fl-text .credits p,.case-story .fl-text .reflect p,.case-story .fl-text p.ref{font-size:16px;opacity:.8}
.case-story .fl-band-img{margin:clamp(72px,10vh,120px) 0;position:relative;z-index:2}.case-story .fl-band-img img{width:100%;aspect-ratio:21/9;object-fit:cover;display:block}
html.fl-scan.case-story .fl-t{opacity:1;max-height:260px}html.fl-scan.case-story .fl-h{margin:0 0 12px}
html.fl-scan.case-story .fl-note{opacity:1}html.fl-scan.case-story .fl-text{opacity:.28}
html.fl-scan.case-story .fl-spine{background:var(--case-c)}
html.fl-scan.case-story .fl{background-image:linear-gradient(to right,rgba(16,43,85,.045) var(--colw),transparent var(--colw));background-repeat:no-repeat;background-position:0 100%;background-size:100% calc(100% - var(--pt) - 84px)}
@media(prefers-reduced-motion:reduce){.case-story .fl-note,.case-story .fl-h,.case-story .fl-t,.case-story .fl-text{transition:none}}
@media(max-width:900px){
  .case-story .b-hero{grid-template-columns:1fr;height:auto}.case-story .b-right{height:62vw;order:-1}.case-story .b-right.field{height:24vw}
  .case-story .b-stats{margin-top:40px}
  .case-story .fl-ch{grid-template-columns:1fr}.case-story .fl-note{position:static;padding:8px 0 20px;opacity:1}
  .case-story .fl-spine{display:none}
  .case-story .fl-switch .sk{right:auto;left:var(--pad)}.case-story .fl-switch .rd{left:auto;right:var(--pad)}
  html.fl-scan.case-story .fl-text{display:none}html.fl-scan.case-story .fl{background-image:none}
}

/* ---- Legibility pass (Peter approved, 2026-10-05; POR-80) ----
   Labels people need to read: at least 12px (13px for depth-2 section labels) and at
   least 4.5:1 contrast. Measured before and after in work/legibility-lab-2026-10-05. */
.case-story .b-meta{opacity:.72!important;font-size:12px!important}
.case-story .fl-switch button{font-size:12px!important}
.case-story .fl-switch button:not(.lit):not(:hover):not(:focus-visible){opacity:.72!important}
@media(min-width:901px){.case-story .fl-note{opacity:.7}.case-story .fl-note.on{opacity:1}html.fl-scan.case-story .fl-note{opacity:1}}
.case-story .fl-n{opacity:1!important;font-size:12px!important}
.case-story .fl-text .lbl{opacity:.72!important;font-size:12px!important}

/* Hero fact rail (Peter, 2026-10-05): role, scope, team and industry, as on the depth-2 card,
   under the title and framing after generous space (moved up from below the stats). */
.case-story dl.b-role{margin:48px 0 0;padding-top:20px;max-width:34em;border-top:1px solid rgba(16,43,85,.18);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px clamp(24px,3vw,48px)}
.case-story dl.b-role div{display:grid;gap:3px;align-content:start}
.case-story dl.b-role dt{font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.72}
.case-story dl.b-role dd{margin:0;font-size:14px;line-height:1.4;max-width:30ch}

/* Skim path made visible (UXfolio 2026 report 4.2: long or dense is flagged by 44%).
   Larger, fully legible switch labels with the time each path costs. */
.case-story .fl-switch button{padding:10px 12px}
.case-story .fl-switch .fl-min{opacity:.7;letter-spacing:.06em}
@media(max-width:900px){
  /* Phone pass 2026-10-06: the two labels overlapped at 390px. Lay them out as a row,
     and drop the read times where they don't fit. */
  .case-story .fl-switch{display:flex;justify-content:space-between;align-items:center;padding:0 var(--pad)}
  .case-story .fl-switch button{position:static;transform:none;padding:10px 0}
}
@media(max-width:520px){.case-story .fl-switch .fl-min{display:none}}
@media(max-width:900px){
  /* Phone (Peter, 2026-10-06): "locked" sat on the underline. Set it on its own line below,
     out of the flow so the underline stays on the label only. */
  .case-story .fl-switch button,.case-story .fl-switch .sk,.case-story .fl-switch .rd{position:relative;left:auto;right:auto}
  .case-story .fl-switch button[aria-pressed=true]:after{content:"locked";position:absolute;top:100%;left:0;margin:2px 0 0;font-size:10px;letter-spacing:.1em;opacity:.6}
  .case-story .fl-switch .rd[aria-pressed=true]:after{left:auto;right:0}
}
@media(max-width:900px){.case-story .fl-switch{align-items:flex-start;padding-top:14px}}
@media(max-width:900px){
  /* Phone (Peter, 2026-10-06): no "locked" (there's no hover-and-lock on a phone, you're simply
     skimming or reading), both options centred as one pair, and nothing reflows when the active one
     changes. The underline alone marks which is on. */
  .case-story .fl-switch{justify-content:center;align-items:center;gap:clamp(20px,7vw,40px);padding:0 var(--pad)}
  .case-story .fl-switch button{white-space:nowrap}
  .case-story .fl-switch button[aria-pressed=true]:after,.case-story .fl-switch .rd[aria-pressed=true]:after{content:none!important}
}
@media(max-width:900px){
  /* Phone (Peter, 2026-10-06): the labels hung below the bar (a desktop top:50% offset) and the bar
     tucked under the 58px masthead. Sit the bar below the masthead and centre the labels in it. */
  .case-story .fl-switch{top:58px;height:60px}
  .case-story .fl-switch button,.case-story .fl-switch .sk,.case-story .fl-switch .rd{top:auto;transform:none}
}
