/* Case craft system. These are the final layout rules for all twelve pages.
   Real UI pixels belong to the evidence, not the typography scale below. */
.talent-case {
  --case-canvas-width:1280px;
  --opening-height:clamp(640px,calc(100svh - 104px),800px);
  --case-title:clamp(26px,2.35cqw,32px);
  --case-subhead:18px;
  --case-body:15px;
  --case-caption:12px;
  --case-compact:14px;
  --case-leading:1.7;
  --case-space-1:8px;
  --case-space-2:16px;
  --case-space-3:24px;
  --case-space-4:32px;
  --case-radius:8px;
}
#main.story-pages { --case-gutter:clamp(32px,4vw,56px); gap:16px; }
#main > .story-page {
  --spread-rule:var(--case-rule);
  padding-inline:var(--case-gutter);
  font-size:var(--case-body); line-height:var(--case-leading);
}
#main > .story-page:not(.cover) {
  display:grid; padding-block:28px;
  grid-template-rows:auto minmax(0,1fr); gap:24px;
}
#main > .story-page .page-masthead {
  min-width:0; padding-bottom:16px; border-bottom:1px solid var(--spread-rule);
  font-family:var(--body); font-size:13px; font-style:normal; line-height:20px; letter-spacing:0;
}
#main > .story-page .page-masthead::after { display:none; }
#main > .story-page .page-masthead > span:first-child { color:var(--case-muted); font-weight:500; letter-spacing:.1em; }
#main > .story-page .page-masthead > span:last-child { color:var(--case-muted); font-size:12px; font-weight:400; letter-spacing:0; font-variant-numeric:tabular-nums; }
#main > .story-page .page-number { color:var(--case-muted); font:400 12px/20px var(--body); letter-spacing:0; font-variant-numeric:tabular-nums; white-space:nowrap; }
/* Color follows meaning: neutral framing, blue actions, pink issues, violet Agent. */
#main :is(.design-takeaway,.page-takeaway,.context-design-focus) strong { color:var(--case-action); }
#main :is(.n-figure,.evidence-image) figcaption > span { color:var(--case-muted); }
#main .n-eyebrow { color:var(--accent); }
#main #agent :is(.n-eyebrow,.n-bridge > span:last-child) { color:var(--case-agent); }
#project .case-tag { color:var(--case-muted); }
#project .case-tag::before { background:var(--case-agent); }
#project .cover-heading .cover-subtitle { color:var(--case-muted); font-size:var(--case-caption); }
#problem .context-after .context-panel-heading h3 { color:var(--accent); }
#problem .context-after .context-step-index { color:var(--case-muted); }
#problem .context-before .context-panel-heading > span,
#problem .context-before .context-step-index { color:var(--case-muted); }
#problem .context-after .context-panel-heading > span { color:var(--accent); }
#problem .context-outcome strong { color:var(--case-result); }
#structure .structure-problem .structure-label { color:var(--case-issue); }
#structure .structure-revised h3 > span { color:var(--case-action); }
#redesign .redesign-tab-phase { color:var(--case-muted); font-size:var(--case-caption); line-height:20px; }
#redesign .redesign-tab-number { color:var(--case-muted); }
#main #research .research-stage-head h3 > span { color:var(--case-muted); }
#main #research .n-research-reasoning .research-stage-head :is(h3,h3 > span) { color:var(--case-issue); }
#main #research .research-interpretation .n-eyebrow { color:var(--case-action); }
#main #implementation .delivery-shot-tag { color:var(--case-issue); }
#main #implementation .delivery-shot + .delivery-shot .delivery-shot-tag { color:var(--case-action); }
#reflection .collaboration-flow-current :is(h3,.collaboration-step) { color:var(--case-action); }
#main :is(.n-heading,.structure-heading,.context-heading,.redesign-heading) h2 {
  margin:0; font:600 var(--case-title)/1.4 var(--body); letter-spacing:0; text-wrap:pretty;
}
#main :is(.n-heading,.structure-heading,.context-heading) { display:grid; grid-template-columns:1fr; gap:8px; }
#main :is(.n-heading,.structure-heading,.context-heading) > p,
#main .redesign-heading p {
  margin:0; max-width:76em; font-size:var(--case-body); line-height:var(--case-leading); color:var(--case-muted);
}
#main :is(.page-content,.n-content) { min-width:0; min-height:0; gap:24px; }
#main :is(.design-story,.talent-delivery-page) .n-content { grid-template-rows:auto minmax(0,1fr) auto; align-content:stretch; }
#main :is(.n-eyebrow,.structure-label) { margin:0 0 8px; font:500 12px/20px var(--body); letter-spacing:.03em; }
#main :is(.n-decisions,.n-delivery-path) h3 { margin:0 0 8px; font-size:var(--case-subhead); line-height:28px; }
#main :is(.n-decisions,.n-delivery-path) p { margin:0; color:var(--case-copy); font-size:var(--case-body); line-height:var(--case-leading); }
#main .n-decisions { gap:24px; }
#main .n-decisions li { grid-template-columns:24px minmax(0,1fr); gap:12px; }
#main .n-decisions li > span { padding-top:0; font-size:12px; line-height:28px; }
#main .n-figure { min-width:0; gap:8px; }
#main .n-figure > button { justify-content:center; }
#main .n-figure img { width:auto; max-width:100%; height:auto; object-fit:contain; object-position:center; }
#main :is(.n-figure,.evidence-image,.delivery-shot) figcaption { color:var(--case-muted); font-size:12px; line-height:20px; }
#main :is(.n-source,.design-takeaway,.page-takeaway,.context-design-focus) {
  margin:0; padding-top:16px; border-top:1px solid var(--spread-rule);
  color:var(--case-muted); font-size:13px; line-height:22px;
}
#main :is(.design-takeaway,.context-design-focus) { gap:4px 12px; }
#main .design-takeaway { display:flex; flex-wrap:wrap; align-items:baseline; }
#main .design-takeaway strong { flex:none; font-size:inherit; font-weight:500; line-height:inherit; }
#main .case-page-footer { display:grid; gap:8px; padding-top:16px; border-top:1px solid var(--spread-rule); }
#main .case-page-footer .design-takeaway { padding:0; border:0; }
#main .case-footer-note { margin:0; color:var(--case-muted); font-size:12px; line-height:20px; }
#main .n-source { font-size:12px; line-height:20px; }
#main .n-link { min-height:36px; padding:4px 0; font-size:13px; line-height:24px; }
#main :is(a,button,summary,input,select,[tabindex]):focus-visible { outline:2px solid var(--case-result); outline-offset:4px; }
#main :is(.n-condition-layout,.task-stages,.validation-body,.talent-spread-body,.structure-comparison) {
  min-height:0; min-width:0; overflow:visible; overscroll-behavior:auto;
}
.talent-spread-body { display:grid; align-content:start; gap:24px; padding:0; }
.talent-case-supplement { min-width:0; border-block:1px solid var(--spread-rule); }
.talent-case-supplement > summary,
#main .n-prototype-details summary {
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  min-height:40px; padding:8px 0; color:var(--case-copy); font-size:13px; line-height:24px; cursor:pointer; list-style:none;
}
.talent-case-supplement > summary::-webkit-details-marker { display:none; }
.talent-case-supplement > summary > span { flex:none; color:var(--accent); font-size:20px; line-height:24px; }
.talent-case-supplement[open] > summary > span { transform:rotate(45deg); }
.delivery-demo-content { padding:16px 0; }
.delivery-demo-content p { color:var(--case-copy); font-size:14px; line-height:1.7; }
/* 01–03: a quiet cover, aligned task comparison, then an image-led index. */
#project .cover-description { font-size:15px; line-height:1.8; }
#project .case-tag { font-size:12px; letter-spacing:.03em; white-space:normal; }
#project .cover-tags { gap:12px; margin-top:24px; }
#project .cover-tags li { font-size:13px; padding:8px 12px; }
#problem .context-comparison { grid-template-columns:minmax(0,1fr) 48px minmax(0,1fr); align-self:start; }
#problem .context-panel { padding:24px; border-radius:8px; }
/* Keep the cover's dark card language; concentrate emphasis at the top and in type. */
#problem .context-before {
  background:transparent;
  border-color:color-mix(in srgb,var(--case-rule) 65%,var(--case-background));
}
#problem .context-after {
  --accent:var(--palette-lavender); --context-rule:#41445a;
  background:#181923; border-color:var(--context-rule);
  border-top:2px solid var(--palette-lavender);
}
#problem .context-after .context-steps > li + li { border-color:var(--context-rule); }
#problem .context-panel-heading > span { font-size:12px; line-height:20px; margin-bottom:8px; }
#problem .context-panel-heading h3 { font-size:20px; line-height:28px; }
#problem .context-steps { margin:16px 0 0; grid-template-rows:repeat(3,minmax(0,1fr)); }
#problem .context-steps > li { grid-template-columns:28px minmax(0,1fr); gap:0 12px; padding:12px 0; align-content:center; }
#problem .context-steps > li:last-child { padding-bottom:4px; }
#problem .context-step-index { font-family:var(--body); font-size:12px; line-height:26px; white-space:nowrap; }
#problem .context-steps h4 { font-size:17px; line-height:26px; }
#problem .context-before .context-steps h4 strong { color:var(--case-issue); font-weight:600; }
#problem .context-after .context-steps h4 { display:flex; align-items:center; gap:8px; }
#problem .context-owner {
  flex:none; color:var(--accent); font:inherit; font-weight:600;
}
#problem :is(.context-steps p,.context-panel-note,.context-outcome p) { font-size:14px; line-height:24px; }
#problem .context-steps p { margin-top:4px; }
#problem .context-friction { display:none; }
#problem .context-panel-note,#problem .context-outcome { padding-top:16px; min-height:48px; }
#problem .context-outcome { grid-template-columns:auto 1fr; gap:16px; }
#problem .context-outcome strong { font-size:32px; line-height:40px; }
#problem .context-heading-tag { font-size:12px; line-height:20px; }
#redesign .redesign-heading { gap:16px; }
#redesign .redesign-heading-copy { display:grid; gap:8px; }
#redesign .redesign-workbench { padding:16px; gap:24px; border-color:var(--spread-rule); border-radius:8px; }
#redesign .redesign-navigation { gap:16px; padding-right:16px; }
#redesign .redesign-tabs { gap:8px; grid-template-rows:repeat(5,minmax(0,1fr)); }
#redesign .redesign-tabs > button { min-height:56px; padding:12px 16px; border-radius:8px; }
#redesign .redesign-tab-label { gap:4px; font-size:16px; line-height:24px; }
#redesign .redesign-tab-number { font-size:12px; line-height:16px; }
#redesign .redesign-navigation .redesign-drag-hint { margin:0; padding-top:8px; font-size:12px; line-height:20px; }
#redesign .redesign-comparison-header { padding-bottom:8px; }
#redesign .redesign-takeaway { min-width:0; padding-top:16px; font-size:13px; line-height:22px; }
#redesign #redesign-takeaway { min-width:0; overflow-wrap:anywhere; }
/* 04–05: preserve the approved chronology and the research card's 16px gutter. */
#structure .structure-comparison { grid-template-columns:minmax(0,1fr) minmax(0,1.16fr); gap:32px; grid-template-rows:minmax(0,1fr); }
#structure .structure-reasoning { gap:16px; padding:0; }
#structure .structure-problem,#structure .structure-change { display:flex; flex-direction:column; justify-content:flex-start; padding:24px; border-radius:8px; }
#structure .structure-reasoning .structure-label { margin-bottom:12px; }
#structure .structure-problem h3 { font-size:18px; line-height:28px; }
#structure .structure-reasoning p { margin-top:8px; font-size:15px; line-height:24px; }
#structure .structure-change h4 { font-size:16px; line-height:24px; }
#structure .structure-change li p { margin-top:8px; }
#structure .structure-change ol { gap:24px; }
#structure .structure-evidence { min-height:0; grid-template-rows:minmax(0,1fr); align-content:stretch; padding:24px; gap:16px; grid-template-columns:minmax(0,1fr); border-color:var(--spread-rule); border-radius:8px; }
#structure .structure-evidence-stage { display:grid; width:100%; min-width:0; min-height:0; grid-template-columns:minmax(0,1.844fr) 24px minmax(0,1fr); gap:20px; }
#structure .structure-version { min-height:0; grid-template-rows:44px minmax(0,1fr); gap:16px; }
#structure .structure-version h3 { font-size:12px; line-height:20px; }
#structure .structure-version .evidence-image { height:auto; min-height:0; grid-template-rows:minmax(0,1fr); gap:0; }
#structure .structure-version :is(.image-area,.image-area button) { min-height:0; height:100%; }
#structure .structure-version .image-area img { position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:top left; }
@media(min-width:901px) {
  #structure .structure-reasoning { grid-template-rows:minmax(min-content,.42fr) minmax(min-content,.58fr); }
  #structure .structure-evidence { container-type:size; }
  /* Constrain the whole comparison to the rendered image widths, keeping the arrow centered in the gutter. */
  #structure .structure-evidence-stage { width:min(100%,calc((100cqh - 60px) * 1.2215 + 64px)); justify-self:center; }
  #structure .structure-transition { padding-block:60px 0; }
}
#main #research .research-stage-head h3 { display:flex; align-items:center; gap:8px; font-size:var(--case-subhead); line-height:28px; }
#main #research .research-stage-head h3 > span { flex:none; margin-right:0; line-height:20px; }
#main #research :is(.n-tall,.research-record) figcaption { font-size:12px; line-height:20px; }
#main #research .research-interpretation h3 { font-size:15px; line-height:24px; }
/* 06: one faithful sidebar crop; numbered callouts point to the actual controls. */
#decisions .n-condition-layout { grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr); gap:24px; align-items:stretch; }
#decisions .n-condition-shots { display:grid; grid-template-rows:auto minmax(0,1fr); min-height:0; gap:12px; padding:16px; border:1px solid var(--spread-rule); border-radius:var(--case-radius); background:var(--case-surface); }
#decisions .condition-shot-heading { margin:0; font-size:var(--case-subhead); font-weight:600; line-height:28px; }
#decisions .condition-sidebar { display:grid; grid-template-rows:minmax(0,1fr) auto; min-height:0; }
#main #decisions .condition-sidebar > button { position:relative; width:auto; max-width:100%; height:100%; min-height:0; margin-inline:auto; aspect-ratio:742 / 1274; }
#main #decisions .condition-sidebar img { width:100%; height:100%; max-height:none; object-fit:contain; }
#decisions .condition-callout { --callout-outset:20px; position:absolute; display:grid; place-items:center; width:max(20px,9.16%); aspect-ratio:1; border:1px solid var(--accent); border-radius:50%; background:var(--case-surface); color:var(--case-ink); font:500 12px/1 var(--body); transform:translate(-50%,-50%); }
#decisions .condition-callout::after { content:""; position:absolute; left:100%; top:50%; width:var(--callout-outset); height:1px; background:var(--accent); transform:translateY(-50%); }
#decisions .condition-callout-filter { left:calc(4.99% - var(--callout-outset)); top:12.64%; }
#decisions .condition-callout-requirements { left:calc(4.99% - var(--callout-outset)); top:36.89%; }
#decisions .condition-callout-count { left:calc(95.01% + var(--callout-outset)); top:12.64%; }
#decisions .condition-callout-count::after { left:auto; right:100%; }
#decisions .condition-sidebar figcaption { justify-content:center; text-align:center; font-size:var(--case-caption); color:var(--case-muted); }
#decisions .condition-response { display:grid; grid-template-rows:minmax(0,1fr) auto; gap:16px; min-width:0; }
#main #decisions .n-decisions { grid-template-rows:repeat(3,minmax(0,1fr)); gap:12px; }
#main #decisions .n-decisions li { grid-template-columns:24px minmax(0,1fr); gap:12px; align-items:start; align-content:center; padding:12px 16px; border:1px solid var(--spread-rule); border-radius:var(--case-radius); background:transparent; }
#main #decisions .n-decisions li > span { display:grid; place-items:center; width:24px; height:24px; margin-top:2px; padding:0; border:1px solid var(--accent); border-radius:50%; color:var(--case-ink); font:500 12px/1 var(--body); }
#main #decisions .n-decisions h3 { margin-bottom:4px; }
#main #decisions .n-decisions p { color:var(--case-copy); }
#decisions .n-judgment { margin:0; padding:12px 16px; border:1px solid var(--spread-rule); border-radius:var(--case-radius); background:var(--case-surface); }
#main #decisions .n-judgment .n-eyebrow { display:block; margin-bottom:4px; }
#decisions .n-judgment p { color:var(--case-copy); font-size:14px; line-height:24px; }
/* 07: complete dialogs lead; compact notes explain the three interaction changes. */
#search-feedback .communication-body { margin-top:16px; display:grid; grid-template-columns:minmax(0,2.4fr) minmax(0,1fr); gap:32px; align-items:start; align-content:center; min-height:0; min-width:0; }
#search-feedback .communication-evidence { min-width:0; }
#search-feedback .communication-comparison { display:grid; grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr); align-items:start; gap:8px; min-width:0; }
#main #search-feedback .communication-version { display:flex; flex-direction:column; gap:12px; min-width:0; margin:0; padding:12px; border:1px solid var(--spread-rule); border-radius:16px; background:var(--case-surface); }
#search-feedback .communication-version-label { align-self:flex-start; padding:4px 10px; border-radius:3px; font:600 12px/20px var(--body); letter-spacing:.05em; }
#search-feedback .communication-version-note { margin:0; color:var(--case-muted); font-size:13px; line-height:22px; }
#main #search-feedback .communication-version > button { flex:none; min-height:0; width:100%; height:auto; padding:0; border:0; border-radius:12px; overflow:hidden; background:none; align-items:flex-start; }
#main #search-feedback .communication-version img { display:block; width:100%; height:auto; max-height:none; }
#search-feedback .communication-transition { align-self:center; display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--case-agent); border-radius:50%; color:var(--case-agent); }
#search-feedback .communication-transition svg { width:20px; height:20px; }
#search-feedback .communication-reasoning { min-width:0; }
#search-feedback .communication-decisions { display:grid; gap:20px; margin:0; padding:0; list-style:none; }
#search-feedback .communication-decisions li { display:grid; grid-template-columns:24px minmax(0,1fr); column-gap:12px; row-gap:8px; }
#search-feedback .communication-decisions li + li { padding-top:20px; border-top:1px solid var(--spread-rule); }
#search-feedback .communication-decisions li > div { display:contents; }
#search-feedback .communication-decisions li p { grid-column:2; }
#search-feedback .communication-decisions li > span { color:var(--case-agent); font-size:16px; font-weight:600; line-height:28px; }
#search-feedback .communication-decisions h3 { margin:0; color:var(--case-ink); font-size:18px; line-height:28px; }
#search-feedback .communication-decisions p { margin:0; color:var(--case-copy); font-size:15px; line-height:24px; }
#search-feedback .communication-footer { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:start; gap:16px 24px; padding-top:16px; border-top:1px solid var(--spread-rule); min-width:0; }
#main #search-feedback .communication-footer > .design-takeaway { padding-top:0; border-top:0; }
#search-feedback .communication-support { border:0; }
#search-feedback .communication-support > summary { min-height:24px; padding:0; font-size:12px; line-height:22px; }
#search-feedback .communication-footer:has(details[open]) { grid-template-columns:1fr; }
#search-feedback .communication-support-content { display:grid; gap:16px; max-width:760px; padding-block:16px; }
#search-feedback .communication-support-content > .n-figure { max-width:520px; }
#search-feedback .communication-support-content > p { margin:0; color:var(--case-copy); font-size:14px; line-height:24px; }
#main #search-feedback .communication-support-content img { width:100%; height:auto; max-height:none; }
#search-feedback .communication-support .n-evidence-links { gap:8px 24px; }
/* 08: pair overall scores with anonymized interviews from the same test round. */
#evidence .validation-body { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:24px; align-content:stretch; }
#evidence :is(.validation-result,.validation-feedback) { display:grid; min-width:0; min-height:0; gap:16px; padding:20px; border:1px solid var(--spread-rule); border-radius:var(--case-radius); background:var(--case-surface); }
#evidence .validation-result { grid-template-rows:auto minmax(0,1fr) auto; }
#evidence .validation-result-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; }
#evidence :is(.validation-result-head,.validation-feedback) h3 { margin:0; color:var(--case-ink); font-size:18px; line-height:28px; }
#evidence .validation-result-head p { display:flex; align-items:baseline; gap:8px; margin:0; white-space:nowrap; }
#evidence .validation-result-head strong { color:var(--case-result); font-size:28px; font-weight:500; line-height:36px; font-variant-numeric:tabular-nums; }
#evidence .validation-result-head p > span { color:var(--case-muted); font-size:12px; }
#evidence .validation-chart { display:grid; grid-template-rows:minmax(0,1fr); min-height:0; }
#main #evidence .validation-chart > button { height:100%; min-height:0; background:#181923; border-radius:4px; overflow:hidden; }
#main #evidence .validation-chart img { width:100%; height:100%; max-height:none; object-fit:contain; }
#evidence .validation-scope { margin:0; color:var(--case-muted); font-size:12px; line-height:20px; }
#evidence .validation-feedback { grid-template-rows:auto minmax(0,1fr) auto; gap:16px; }
#evidence .validation-feedback .n-eyebrow { display:block; margin-bottom:4px; }
#evidence .validation-quotes { display:grid; align-content:center; gap:16px; min-height:0; overflow:auto; overscroll-behavior:auto; }
#evidence .validation-quote { margin:0; padding:0; }
#evidence .validation-quote + .validation-quote { margin-left:24px; margin-right:48px; }
#evidence .validation-quote figcaption { display:flex; flex-wrap:wrap; gap:4px 12px; font-size:12px; line-height:20px; color:var(--case-muted); }
#evidence .validation-quote figcaption > span:first-child { color:var(--case-action); }
#evidence .validation-quote blockquote { display:flex; flex-direction:column; align-items:flex-start; gap:8px; margin:8px 0 0; color:var(--case-ink); font-size:15px; line-height:24px; }
#evidence .validation-bubble { display:flex; align-items:center; gap:8px; width:fit-content; max-width:100%; }
#evidence .validation-bubble-emoji { flex:none; width:32px; font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; font-size:28px; line-height:36px; text-align:center; }
#evidence .validation-quote blockquote p { width:fit-content; max-width:100%; margin:0; padding:8px 12px; border-radius:18px 18px 18px 4px; background:#282c3a; }
#evidence .validation-bubble + .validation-bubble { align-self:flex-end; }
#evidence .validation-quote + .validation-quote figcaption { justify-content:flex-end; }
#evidence .validation-quote + .validation-quote figcaption > span:first-child { color:var(--case-agent); }
#evidence .validation-quote + .validation-quote blockquote { align-items:flex-end; }
#evidence .validation-quote + .validation-quote blockquote p { border-radius:18px 18px 4px 18px; background:#302939; }
#evidence .validation-feedback-source { display:flex; align-items:center; min-height:28px; margin:0; color:var(--case-muted); font-size:12px; line-height:20px; }
#evidence .validation-chart img { border-radius:4px; }
/* 09: exploration and runnable prototype form one spread. */
#agent .talent-spread-body { grid-template-rows:minmax(0,1fr) auto; align-content:stretch; gap:24px; }
#agent .n-prototype-layout { grid-template-columns:minmax(0,1.85fr) minmax(0,1fr); gap:32px; min-height:0; align-items:center; }
#agent .n-prototype-visual { align-self:center; display:grid; grid-template-rows:auto auto; min-height:0; gap:16px; padding:16px; border:1px solid var(--spread-rule); border-radius:8px; }
#agent #prototype { scroll-margin-top:110px; }
#agent .prototype-flow { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:0; color:var(--case-copy); font-size:13px; line-height:22px; }
#agent .prototype-flow i { color:var(--accent); font-style:normal; }
#agent .prototype-video { display:grid; min-height:0; grid-template-rows:auto auto; gap:12px; }
#agent .prototype-media-stage { min-width:0; min-height:0; }
#agent .prototype-player { position:relative; width:100%; aspect-ratio:320 / 217; min-height:0; overflow:hidden; border-radius:4px; background:#050608; }
#agent .prototype-player video { display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
#agent .prototype-video-play { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); display:grid; place-items:center; width:72px; height:72px; padding:0 0 0 4px; border:1px solid #ffffff70; border-radius:50%; background:#101318d9; color:white; box-shadow:0 4px 24px #0005; cursor:pointer; transition:background .18s,border-color .18s; }
#agent .prototype-video-play:hover { background:#101318; border-color:white; }
#agent .prototype-video-play[hidden] { display:none; }
#agent .prototype-video figcaption { display:flex; justify-content:space-between; gap:16px; }
#agent .prototype-video-status { color:var(--case-muted); }
#agent .prototype-notes { display:flex; flex-direction:column; gap:16px; min-width:0; padding-left:24px; border-left:1px solid var(--spread-rule); }
#main #agent .prototype-notes > .n-eyebrow { margin:0; color:var(--case-muted); }
#agent .prototype-notes > .n-decisions { align-content:center; gap:16px; }
#agent .n-prototype-layout .n-decisions li { padding:0; border:0; }
#agent .n-prototype-layout .n-decisions h3 { margin:0 0 8px; font-size:18px; line-height:28px; }
#agent .n-prototype-layout .n-decisions p { font-size:15px; line-height:24px; }
#agent .n-prototype-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; border:0; }
#agent .n-prototype-details > details { min-width:0; border-block:1px solid var(--spread-rule); }
#agent .n-prototype-details summary { font-size:12px; line-height:20px; min-height:44px; }
#agent .prototype-footer-meta { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:4px 24px; color:var(--case-muted); font-size:12px; line-height:20px; }
#agent .prototype-footer-meta > a { color:var(--case-copy); text-decoration:none; }
#agent .prototype-footer-meta > a:hover { color:var(--case-action); }
#agent .prototype-footer-meta > a > span { color:var(--case-action); }
#main .n-bridge { gap:16px; padding:12px 0; border-color:var(--spread-rule); }
#main .n-bridge > span:first-child { font-size:12px; }
#main .n-bridge strong { font-size:15px; line-height:24px; }
#main .n-bridge > span:last-child { font-size:20px; }
/* 10: shared crop dimensions keep table headers, avatars and rows at the same scale. */
.delivery-evidence-pair { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; min-width:0; align-items:start; }
.delivery-shot { display:grid; gap:8px; min-width:0; margin:0; align-content:start; }
.delivery-shot-tag { color:var(--case-muted); font-size:12px; line-height:20px; }
.delivery-shot > button { display:flex; justify-content:center; width:100%; min-width:0; padding:0; border:1px solid var(--spread-rule); border-radius:4px; overflow:hidden; background:white; cursor:zoom-in; }
.delivery-shot > button > img { display:block; width:100%; height:100%; object-fit:contain; }
#implementation .talent-spread-body { grid-template-rows:minmax(0,1fr) auto; align-content:stretch; gap:16px; }
#implementation .delivery-evidence-pair { min-height:0; align-items:stretch; }
#implementation .delivery-shot { min-height:0; grid-template-rows:auto minmax(0,1fr); }
#implementation .delivery-shot > button { height:auto; min-height:0; aspect-ratio:1069 / 652; align-items:flex-start; justify-content:flex-start; border:0; border-radius:4px; overflow:hidden; background:white; }
#implementation .delivery-shot > button > img { width:100%; max-width:100%; height:auto; object-fit:contain; object-position:left top; }
#implementation .delivery-handoff { display:grid; gap:12px; min-width:0; align-content:start; }
#implementation .delivery-decision-note { margin:0; display:flex; align-items:baseline; gap:16px; color:var(--case-copy); font-size:15px; line-height:24px; }
#implementation .delivery-decision-note .n-eyebrow { flex:none; margin:0; padding:0; font-size:inherit; line-height:inherit; letter-spacing:0; }
#implementation .delivery-commit { display:block; width:100%; min-width:0; margin:0; overflow:hidden; border-radius:4px; background:white; }
#implementation .delivery-commit img { display:block; width:auto; max-width:100%; max-height:56px; height:auto; border-radius:4px; background:white; }
/* 11: one featured example, with two quieter deliveries available on demand. */
#reason .talent-spread-body { grid-template-rows:minmax(0,1fr); align-content:stretch; }
#reason .n-followups { grid-template-columns:minmax(0,1.7fr) minmax(0,1fr); grid-template-rows:repeat(2,minmax(0,1fr)); gap:24px 32px; min-height:0; }
#reason .n-followups > article { display:grid; grid-template-columns:1fr; grid-template-rows:auto auto; gap:12px; min-height:0; align-content:center; padding:0; border:0; }
#reason .n-followups > .delivery-featured { grid-row:1 / 3; grid-template-rows:auto minmax(0,1fr); align-content:stretch; padding-right:32px; border-right:1px solid var(--spread-rule); }
#reason .n-followups > article > header { padding:0; border:0; }
#reason .n-followups > .delivery-continuation { padding-top:24px; border-top:1px solid var(--spread-rule); }
#reason .n-followups h3 { margin:0; font-size:18px; line-height:28px; }
#reason .n-followups header > p { margin-top:8px; color:var(--case-copy); font-size:15px; line-height:24px; }
#reason .n-followups .n-eyebrow { color:var(--case-muted); font-size:12px; line-height:20px; }
#main #reason .delivery-featured .n-eyebrow { color:var(--case-action); }
#reason .delivery-featured h3 { font-size:20px; }
#reason .delivery-evidence-pair { grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) auto; gap:12px; min-height:0; height:100%; align-items:stretch; }
#reason .delivery-shot { min-height:0; height:100%; grid-template-rows:minmax(0,1fr) auto; gap:6px; align-content:stretch; }
#reason .delivery-shot > button { min-height:0; height:100%; align-items:center; background:var(--case-surface); }
#reason .delivery-shot > button > img { min-height:0; }
#reason .delivery-shot figcaption { display:flex; align-items:center; justify-content:space-between; gap:8px; }
#reason .delivery-shot figcaption > span { color:var(--case-muted); }
#reason .delivery-more { min-width:0; }
#reason .delivery-more > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:36px; color:var(--case-action); font-size:13px; line-height:22px; cursor:pointer; list-style:none; }
#reason .delivery-more > summary::-webkit-details-marker { display:none; }
#reason .delivery-more[open] > summary > span { transform:rotate(45deg); }
#reason .delivery-more > .delivery-shot { margin-top:12px; height:auto; grid-template-rows:auto auto; }
#reason .delivery-more .delivery-shot > button { height:auto; }
#reason .delivery-more .delivery-shot img { height:auto; }
#main #reason:has(details[open]) .n-followups { grid-template-rows:auto auto; align-items:start; }
#main #reason:has(details[open]) .delivery-featured { align-self:start; grid-template-rows:auto auto; }
#main #reason:has(details[open]) .delivery-evidence-pair { height:auto; grid-template-rows:auto auto; }
#main #reason:has(details[open]) .delivery-shot > button { height:auto; }
#main #reason:has(details[open]) .delivery-shot img { height:auto; }
.delivery-shot-placeholder {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px;
  min-height:140px; padding:16px; border:1px dashed var(--case-accent-rule); border-radius:8px;
  background:var(--case-surface); text-align:center;
}
.delivery-shot-placeholder strong { color:var(--case-ink); font-size:15px; line-height:24px; font-weight:500; }
.delivery-shot-placeholder p { margin:0; color:var(--case-muted); font-size:12px; line-height:20px; }
#reason .delivery-evidence-pair .delivery-shot-placeholder { padding:12px 8px; }
#reason .delivery-evidence-pair .delivery-shot-placeholder strong { font-size:14px; }
#reason .delivery-evidence-pair .delivery-shot-tag { font-size:12px; }
#reason .n-causal-strip { padding:12px 16px; font-size:13px; line-height:24px; border-radius:4px; }
/* 12: two horizontal process lanes, then merge evidence and delivery outcome. */
#reflection .talent-spread-body { width:100%; max-width:1160px; justify-self:center; grid-template-rows:auto auto; align-content:start; gap:40px; }
#reflection .collaboration-flows { display:grid; grid-template-columns:1fr; grid-auto-rows:1fr; gap:24px; min-height:0; }
#reflection .collaboration-flow { display:grid; grid-template-columns:minmax(168px,.75fr) minmax(0,3fr); align-items:center; gap:24px; min-width:0; padding:0; border:0; background:none; }
#reflection .collaboration-flow header { min-width:0; padding:0; border:0; }
#reflection .collaboration-flow h3 { margin:0; font-size:var(--case-subhead); line-height:28px; font-weight:600; }
#reflection .collaboration-flow ol { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-self:stretch; gap:40px; margin:0; padding:0; list-style:none; }
#reflection .collaboration-flow li { position:relative; display:flex; justify-content:center; align-items:center; gap:12px; min-width:0; min-height:52px; padding:10px 12px; border:1px solid var(--spread-rule); border-radius:6px; background:var(--case-surface); }
#reflection .collaboration-flow li + li::before { content:"→"; position:absolute; right:calc(100% + 10px); top:50%; width:20px; transform:translateY(-50%); color:var(--case-muted); font-size:24px; line-height:24px; text-align:center; }
#reflection .collaboration-flow-current li { background:var(--case-highlight); border-color:var(--case-accent-rule); }
#reflection .collaboration-flow-current li + li::before { color:var(--case-result); }
#reflection .collaboration-step { flex:none; color:var(--case-muted); font:12px/20px "SFMono-Regular",Menlo,monospace; }
#reflection .collaboration-flow strong { display:block; color:var(--case-ink); font-size:var(--case-compact); line-height:24px; font-weight:500; text-wrap:balance; }
#reflection .collaboration-notes { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
#reflection .collaboration-value,#reflection .collaboration-scope { margin:0; padding:0; border:0; font-size:14px; line-height:24px; color:var(--case-copy); }
#reflection .collaboration-value { display:block; }
#reflection .collaboration-value > span,#reflection .collaboration-scope > strong { display:block; margin-bottom:4px; color:var(--accent); font-size:12px; line-height:20px; font-weight:500; }
#reflection .collaboration-value > strong { font-weight:400; }
#reflection .collaboration-process-detail { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:24px; }
#reflection .collaboration-process-detail h4 { margin:0 0 8px; font-size:15px; line-height:24px; }
#reflection .collaboration-process-detail p { margin:0; color:var(--case-copy); font-size:14px; line-height:24px; }
#reflection .collaboration-footer { display:flex; justify-content:space-between; align-items:start; gap:24px; }
#reflection .collaboration-footer > p { max-width:72em; margin:0; }
#reflection .n-closing { flex:none; padding:0; border:0; }
#reflection .n-closing .n-link { padding:0; min-height:24px; font-size:12px; }
/* Full detail panels use normal document flow, never a second scroll viewport. */
#main > .story-page:has(details[open]) { height:auto; min-height:var(--opening-height); }
#main > .story-page:has(details[open]) :is(.n-content,.talent-spread-body) { grid-template-rows:auto; }
#main > .story-page:has(details[open]) .n-prototype-visual img { height:auto; max-height:360px; }
#main > .story-page:not(#implementation):not(#reason):has(details[open]) .delivery-shot > button { height:260px; }
#main .n-status-comparison { gap:24px; }
#main .n-status-comparison .candidate-example { padding:20px; border-radius:8px; }
#main .candidate-example > p { font-size:14px; }
@media screen and (min-width:901px) {
  html:has(.talent-case.is-paged) { scroll-padding-top:0; }
  .talent-case.is-paged { --opening-height:calc(100svh - 72px); }
  .talent-case.is-paged #main.story-pages { margin-block:0; }
  .talent-case.is-paged #main > .story-page { scroll-margin-top:72px; }
  .talent-case.is-paged #main :is(.reveal-scroll,.redesign-agent-preview,.validation-quotes) { overscroll-behavior-y:auto; }
  /* Keep all twelve canvases and the navigation on the same desktop guides. */
  #main.story-pages {
    width:min(var(--case-canvas-width),calc(100% - 48px));
    margin-inline:auto;
  }
  .talent-case .story-header {
    height:72px;
    padding-inline:max(24px,calc((100% - var(--case-canvas-width)) / 2));
  }
  .talent-case .deck-chapters a[aria-current]::after {
    width:24px; height:1px; left:50%; right:auto; bottom:0;
    transform:translateX(-50%); background:var(--case-ink);
  }
  #project .cover-motion {
    width:100%; max-width:560px;
    height:100%; max-height:500px;
    justify-self:center; margin-inline:0;
  }
  #main > .story-page { height:var(--opening-height); min-height:var(--opening-height); scroll-margin-top:88px; }
  #main > .story-page:not(.cover) { min-height:0; }
  #main #redesign .page-content { grid-template-rows:auto minmax(0,1fr) auto; gap:16px; padding-bottom:0; }
  /* Keep the comparison readable when browser width outgrows its height. */
  #reflection .talent-spread-body { align-content:center; }
  #implementation .n-content { grid-template-rows:auto auto auto; align-content:start; }
  #implementation .talent-spread-body { grid-template-rows:auto auto; }
  /* Size the whole video column to the shared spread, keeping its image edge to edge. */
  #agent .n-prototype-layout { display:flex; container-type:size; }
  #agent .n-prototype-visual {
    flex:none;
    width:min(58%,calc((100cqh - 104px) * 320 / 217 + 34px));
  }
  #agent .prototype-flow { gap:8px; font-size:12px; line-height:22px; }
  #agent .prototype-notes {
    flex:1; align-self:stretch; display:grid;
    grid-template-rows:22px minmax(0,1fr); align-content:stretch; gap:20px;
    padding-block:16px;
  }
  #agent .prototype-notes > .n-decisions {
    grid-template-rows:repeat(3,minmax(min-content,1fr)); gap:0; align-content:stretch;
  }
  #agent .prototype-notes .n-decisions li { align-content:center; padding-block:20px; }
  #agent .prototype-notes .n-decisions li:first-child { padding-top:0; }
  #agent .prototype-notes .n-decisions li:last-child { padding-bottom:0; }
  #agent .prototype-notes .n-decisions li + li { border-top:1px solid var(--spread-rule); }
  #agent .prototype-notes .n-decisions p { max-width:32em; }
  #agent:has(details[open]) .n-prototype-layout { container-type:normal; }
  #agent:has(details[open]) .n-prototype-visual { width:min(58%,540px); }
  #redesign .redesign-comparison { grid-template-columns:minmax(0,1fr); }
  #main #problem .page-content { grid-template-rows:auto minmax(0,1fr) auto; gap:24px; }
  #main #structure .page-content { grid-template-rows:auto minmax(0,1fr) auto; gap:24px; }
  #main #research .n-research-layout { gap:16px; }
}
@media screen and (min-width:901px) and (max-height:780px) {
  #main > .story-page:not(.cover) { padding-block:24px; gap:20px; }
  #main :is(.page-content,.n-content) { gap:20px; }
  #main #problem .page-content,#main #structure .page-content { gap:20px; }
  #structure .structure-problem,#structure .structure-change { padding:24px 20px; }
  #structure .structure-reasoning { gap:12px; }
  #structure .structure-reasoning p { font-size:var(--case-body); line-height:24px; }
  #structure .structure-change ol { gap:20px; }

  #decisions .condition-response { gap:12px; }
  #main #decisions .n-decisions { gap:8px; }
  #main #decisions .n-decisions li { padding:10px 16px; }
  #agent .talent-spread-body { gap:16px; }
  #agent .prototype-notes { gap:16px; }
  #agent .prototype-notes > .n-decisions { gap:0; }
  #agent .prototype-notes .n-decisions li { padding-block:12px; }
  #agent .n-prototype-layout .n-decisions h3 { font-size:var(--case-subhead); line-height:28px; }
  #agent .n-prototype-layout .n-decisions p { font-size:var(--case-body); line-height:24px; }
  #reflection .collaboration-flows { gap:24px; }
  #reflection .collaboration-flow ol { gap:32px; }
  #reflection .collaboration-flow li { gap:8px; padding:8px; }
  #reflection .collaboration-flow li + li::before { right:calc(100% + 6px); }
  #reflection .talent-spread-body { gap:32px; }
}
@media(max-width:1100px) and (min-width:901px) {
  #main.story-pages { --case-gutter:40px; }
  #search-feedback .communication-decisions { gap:16px; }
  #search-feedback .communication-decisions li + li { padding-top:16px; }
  #redesign .redesign-workbench { gap:16px; }
  #redesign .redesign-heading { align-items:start; }
  #redesign .redesign-comparison-actions { gap:12px; }
  #reason .n-followups { gap:16px; }
  #reason .n-followups h3 { font-size:var(--case-subhead); }
  #reason .delivery-evidence-pair { grid-template-columns:1fr; }
  #reason .delivery-evidence-pair .delivery-shot-placeholder { min-height:100px; padding:12px; }
  #reason .delivery-evidence-pair .delivery-shot-placeholder p { display:none; }
}
@media(max-width:900px) {
  #main.story-pages { --case-gutter:28px; }
  #main > .story-page,#main > .story-page:not(.cover) { height:auto; min-height:0; grid-template-rows:auto auto; padding-block:28px; gap:24px; }
  #main :is(.design-story,.talent-delivery-page) .n-content { grid-template-rows:auto auto auto; }
  #main #problem .page-content,#main #structure .page-content { grid-template-rows:auto auto auto; }
  #main :is(.n-heading,.structure-heading,.context-heading,.redesign-heading) h2 { font-size:26px; }
  #problem .context-comparison { grid-template-columns:minmax(0,1fr) 32px minmax(0,1fr); }
  #problem .context-panel { padding:20px; }
  #problem .context-steps { grid-template-rows:repeat(3,minmax(88px,auto)); }
  #problem .context-outcome { display:flex; flex-wrap:wrap; gap:8px; }
  #redesign .redesign-workbench { min-height:0; }
  #redesign .redesign-navigation { min-height:0; height:auto; }
  #redesign .redesign-tabs { flex:none; grid-template-rows:auto; }
  #structure .structure-comparison { grid-template-columns:1fr; }
  #structure .structure-reasoning { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  #structure .structure-problem,#structure .structure-change { justify-content:flex-start; }
  #structure .structure-evidence { min-height:360px; }
  #structure .structure-version .evidence-image { height:320px; }
  #decisions .n-condition-layout,#evidence .validation-body,#agent .n-prototype-layout { grid-template-columns:1fr; gap:24px; }
  #decisions .n-condition-shots { grid-template-rows:auto auto; }
  #decisions .condition-sidebar { grid-template-rows:auto auto; }
  #main #decisions .condition-sidebar > button { width:min(100%,280px); height:auto; }
  #main #decisions .condition-sidebar img { width:100%; height:auto; }
  #decisions .condition-response { display:grid; }
  #main #decisions .n-decisions { grid-template-rows:none; gap:12px; }
  #main #decisions .n-decisions li { padding:16px; }
  #search-feedback .communication-body { grid-template-columns:1fr; gap:32px; }
  #evidence .validation-chart { grid-template-rows:auto; }
  #main #evidence .validation-chart img { height:auto; }
  #evidence .validation-feedback { grid-template-rows:auto auto auto; }
  #evidence .validation-quotes { overflow:visible; }
  #agent .talent-spread-body { grid-template-rows:auto auto; }
  #agent .n-prototype-visual { grid-template-rows:auto auto; }
  #agent .prototype-video { grid-template-rows:auto auto; }
  #agent .prototype-media-stage { aspect-ratio:320 / 217; }
  #agent .prototype-notes { padding:0; border:0; }
  #agent .prototype-notes > .n-decisions { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
  #agent .n-prototype-layout .n-decisions h3 { font-size:var(--case-subhead); }
  #implementation .talent-spread-body,#reason .talent-spread-body,#reflection .talent-spread-body { grid-template-rows:auto; }
  #implementation .delivery-shot > button { height:auto; }
  #reason .n-followups { grid-template-columns:1fr; grid-template-rows:auto; gap:32px; }
  #reason .n-followups > article { grid-row:auto; grid-template-rows:auto auto; align-content:start; }
  #reason .n-followups > .delivery-featured { grid-row:auto; padding-right:0; border-right:0; }
  #reason .n-followups > .delivery-continuation { padding-top:0; border-top:0; }
  #reason .delivery-shot-placeholder { min-height:180px; }
  #reflection .collaboration-flow { grid-template-columns:1fr; gap:12px; }
  #reflection .collaboration-footer { flex-direction:column; gap:8px; }
}
@media(max-width:620px) {
  #main.story-pages { --case-gutter:22px; gap:12px; }
  #main > .story-page:not(.cover) { padding-block:24px; }
  #main :is(.n-heading,.structure-heading,.context-heading,.redesign-heading) h2 { font-size:24px; line-height:1.45; }
  #main :is(.n-heading,.structure-heading,.context-heading) > p { font-size:15px; }
  #project .cover-heading :is(.cover-project,h1) { font-size:34px; }
  #project .cover-heading .cover-subtitle { font-size:var(--case-caption); letter-spacing:.08em; }
  #project .cover-tags { flex-wrap:wrap; gap:8px; }
  #project .cover-tags li { padding-inline:8px; }
  #problem .context-comparison { grid-template-columns:1fr; gap:16px; }
  #problem .context-panel { padding:20px; }
  #problem .context-transition { height:32px; transform:none; }
  #problem .context-transition svg { transform:rotate(90deg); }
  #problem .context-outcome { flex-wrap:nowrap; }
  #redesign .redesign-heading { display:grid; }
  #redesign .redesign-workbench { padding:12px; gap:16px; }
  #redesign .redesign-navigation { padding:0; }
  #redesign .redesign-tabs { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(3,auto); }
  #redesign #redesign-delivery { grid-column:1/-1; }
  #redesign .redesign-tabs > button { min-height:64px; padding:10px 12px; }
  #redesign .redesign-tab-label { font-size:14px; line-height:22px; }
  #redesign .redesign-tab-number { font-size:12px; }
  #redesign .redesign-takeaway { display:grid; grid-template-columns:1fr; gap:4px; padding-left:0; }
  #redesign #redesign-takeaway { margin:0; }
  #structure .structure-reasoning { grid-template-columns:1fr; }
  #structure .structure-evidence { grid-template-columns:1fr; padding:16px; }
  #structure .structure-evidence-stage { grid-template-columns:1fr; gap:18px; }
  #structure .structure-transition { height:24px; }
  #structure .structure-transition svg { transform:rotate(90deg); }
  #structure .structure-version .evidence-image { height:340px; }
  #decisions .condition-callout { --callout-outset:12px; }
  #search-feedback .communication-comparison { grid-template-columns:1fr; gap:16px; }
  #search-feedback .communication-transition { justify-self:center; transform:rotate(90deg); }
  #search-feedback .communication-footer { grid-template-columns:1fr; gap:12px; }
  #search-feedback .communication-decisions { gap:16px; }
  #evidence :is(.validation-result,.validation-feedback) { padding:16px; }
  #evidence .validation-result-head strong { font-size:26px; }
  #agent .prototype-notes > .n-decisions,#agent .n-prototype-details { grid-template-columns:1fr; gap:0; }
  #agent .n-prototype-layout .n-decisions li { padding-block:12px; }
  #agent .n-prototype-visual { padding:12px; }
  #main .n-bridge { grid-template-columns:1fr 20px; gap:4px 12px; }
  #main .n-bridge > span:first-child { grid-column:1; }
  #main .n-bridge strong { grid-column:1; }
  #main .n-bridge > span:last-child { grid-row:1/3; grid-column:2; }
  #implementation .delivery-evidence-pair { grid-template-columns:1fr; gap:24px; }
  #implementation .delivery-decision-note { flex-direction:column; gap:4px; }
  #reflection .collaboration-flows,#reflection .collaboration-notes { grid-template-columns:1fr; gap:20px; }
  #reflection .collaboration-process-detail { grid-template-columns:1fr; }
  #reflection .collaboration-flow ol { grid-template-columns:1fr; gap:28px; }
  #reflection .collaboration-flow li { align-items:flex-start; justify-content:flex-start; padding:12px 16px; }
  #reflection .collaboration-flow li + li::before { content:"↓"; right:auto; left:50%; top:-26px; transform:translateX(-50%); }
  #reflection .talent-spread-body { gap:32px; }
  #main .n-reflection-layout,#main .n-status-comparison,#main .n-delivery-path { grid-template-columns:1fr; }
  #main .n-reflection-layout { gap:24px; }
  #main .n-link,#main .talent-case-supplement > summary { min-height:44px; }
  #main .n-figure figcaption { flex-wrap:wrap; gap:4px 12px; }
}
@media print {
  #main > .story-page { height:auto; min-height:194mm; }
  #main .talent-case-supplement[open] { break-inside:auto; }
}

@media (max-width:900px) {
  #reason .delivery-evidence-pair { height:auto; grid-template-rows:repeat(2,auto); gap:16px; }
  #reason .delivery-shot { height:auto; grid-template-rows:auto auto; }
  #reason .delivery-shot > button { height:auto; }
  #reason .delivery-shot > button > img { height:auto; }
}

/* Shared closing row: a single rule, a single line, and a fixed bottom inset. */
#main > .story-page:not(.cover) { padding-bottom:28px; }
#main .case-summary {
  display:flex; align-items:baseline; flex-wrap:nowrap; gap:12px;
  min-width:0; height:39px; margin:0; padding:16px 0 0;
  border:0; border-top:1px solid var(--spread-rule);
  color:var(--case-muted); font:400 13px/22px var(--body);
  letter-spacing:0; text-align:left; transform:none;
}
#main .case-summary::before { display:none; }
#main .case-summary > strong {
  flex:none; margin:0; color:var(--case-action);
  font:500 13px/22px var(--body); transform:none; white-space:nowrap;
}
#main .case-summary > span { min-width:0; margin:0; transform:none; white-space:nowrap; }
#main #problem .case-summary > span,#main #structure .case-summary > span,#main #decisions .case-summary > span,#main #search-feedback .case-summary > span { white-space:normal; }
#main #redesign-takeaway { transform:none; overflow-wrap:normal; }
#main .case-evidence-note { margin:8px 0 16px; color:var(--case-muted); font-size:12px; line-height:20px; }
#main #reason .n-heading > .case-evidence-note { margin:0; font-size:12px; line-height:20px; }
@media screen and (min-width:901px) {
  /* Every desktop spread shares one canvas, including comparison tab states. */
  #main > .story-page:not(.cover) { height:var(--opening-height); min-height:var(--opening-height); }
  #main > .story-page:not(.cover) > :is(.page-content,.n-content) {
    grid-template-rows:auto minmax(0,1fr) 39px; align-content:stretch;
  }
  #search-feedback .communication-body { margin-top:8px; grid-template-rows:minmax(0,1fr); align-content:stretch; }
  #search-feedback .communication-evidence { height:auto; min-height:0; }
  #search-feedback .communication-comparison { height:auto; align-items:start; }
  #main #search-feedback .communication-version { min-height:0; }
  #search-feedback .communication-version-note { min-height:0; }
  #main #search-feedback .communication-version > button { flex:none; height:auto; align-items:flex-start; }
  #main #search-feedback .communication-version img { height:auto; object-fit:contain; object-position:center top; }
  #search-feedback .communication-reasoning { align-self:start; padding-top:12px; }
  #redesign .redesign-heading { margin-bottom:0; }
  #redesign .redesign-workbench { grid-template-rows:minmax(0,1fr); }
  #redesign .redesign-tabs > button { height:auto; }
  #redesign :is(.redesign-reveal,.redesign-agent-preview) { min-height:0; }
  /* Keep the evidence on the text guides; shorter screens continue in document flow. */
  #main > #implementation { height:auto; min-height:var(--opening-height); }
  #implementation .talent-spread-body { grid-template-rows:auto auto; align-content:start; }
  #implementation .delivery-evidence-pair { width:100%; align-items:start; }
  #implementation .delivery-shot { grid-template-rows:auto auto; }
  #implementation .delivery-shot > button { height:auto; }
  #implementation .delivery-shot > button > img { height:auto; }

}
@media (max-width:900px) {
  #main > .story-page:not(.cover) > :is(.page-content,.n-content) { grid-template-rows:auto auto 39px; }
  #main #problem > .page-content,#main #structure > .page-content,#main #decisions > .n-content,#main #search-feedback > .n-content { grid-template-rows:auto auto auto; }
  #main #problem .case-summary,#main #structure .case-summary,#main #decisions .case-summary,#main #search-feedback .case-summary { height:auto; min-height:39px; }
}
@media (max-width:360px) {
  #main .case-summary { gap:8px; font-size:12px; }
  #main .case-summary > strong { font-size:12px; }
}

/* Alternate quiet full-width chapter backgrounds; content stays in the shared canvas. */
@media screen {
  #main.story-pages { gap:0; }
  #main > .story-page {
    --chapter-background:var(--case-background);
    position:relative; isolation:isolate; background:var(--chapter-background);
  }
  #main > .story-page:nth-child(even) {
    --chapter-background:color-mix(in srgb,var(--case-surface) 65%,var(--case-background));
  }
  #main > .story-page::before {
    content:""; position:absolute; inset:0; z-index:-1;
    background:var(--chapter-background); pointer-events:none;
    /* Paint beyond the canvas without changing page width or clipping its content. */
    box-shadow:0 0 0 100vmax var(--chapter-background); clip-path:inset(0 -100vmax);
  }
}

/* Supplementary evidence lives outside the slide canvas in a native modal. */
.case-detail-dialog {
  width:min(1040px,calc(100vw - 40px)); max-height:calc(100svh - 64px);
  margin:auto; padding:24px; border:1px solid var(--case-rule); border-radius:8px;
  background:var(--case-background); color:var(--case-ink); overscroll-behavior:contain;
  font:400 15px/1.7 var(--body);
}
.case-detail-dialog::backdrop { background:#000b; backdrop-filter:blur(6px); }
.case-detail-head { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-bottom:16px; margin-bottom:20px; border-bottom:1px solid var(--case-rule); }
.case-detail-head h2 { margin:0; font:600 18px/28px var(--body); }
.case-detail-head button { flex:none; min-height:40px; padding:8px 12px; border:1px solid var(--case-rule); border-radius:4px; background:var(--case-surface); color:var(--case-ink); cursor:pointer; }
.case-detail-body :is(figure,p) { margin:0; }
.case-detail-body :is(.n-detail-grid,.n-code-records,.n-reflection-layout,.collaboration-process-detail) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; margin-block:16px; }
.case-detail-body :is(.n-figure,.delivery-shot) { display:grid; gap:8px; min-width:0; }
.case-detail-body :is(.n-figure,.delivery-shot) > button { display:block; width:100%; padding:0; border:0; background:var(--case-surface); cursor:zoom-in; }
.case-detail-body img { display:block; width:100%; height:auto; max-height:60svh; object-fit:contain; }
.case-detail-body :is(figcaption,small,.case-evidence-note) { color:var(--case-muted); font-size:12px; line-height:20px; }
.case-detail-body h3 { font-size:18px; line-height:28px; }
.case-detail-body :is(h3,h4) { margin:8px 0; }
.case-detail-body article { min-width:0; }
.case-detail-body :is(button,a):focus-visible { outline:2px solid var(--case-action); outline-offset:4px; }
@media(max-width:620px) {
  .case-detail-dialog { width:calc(100vw - 24px); padding:16px; }
  .case-detail-head { gap:12px; }
  .case-detail-body :is(.n-detail-grid,.n-code-records,.n-reflection-layout,.collaboration-process-detail) { grid-template-columns:1fr; }
}

/* The overview connects the prototype to evidenced code delivery. */
#redesign .redesign-delivery-label { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px 16px; min-height:34px; padding-bottom:4px; font:600 12px/20px var(--body); }
#redesign .redesign-delivery-label > span { padding:4px 10px; border-radius:3px; color:var(--palette-periwinkle); background:var(--case-surface); box-shadow:inset 0 0 0 1px var(--comparison-rule); }
#redesign .redesign-delivery-label small { color:var(--case-muted); font:400 12px/20px var(--body); }
#redesign .redesign-delivery-preview { display:grid; min-width:0; min-height:0; grid-template-rows:minmax(0,1fr) auto auto; gap:12px; }
#redesign .redesign-delivery-pair { display:grid; min-width:0; min-height:0; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
#redesign .redesign-delivery-pair figure { display:grid; grid-template-rows:auto minmax(0,1fr); gap:8px; min-width:0; min-height:0; margin:0; }
#redesign .redesign-delivery-shot { display:block; width:100%; min-height:0; padding:0; overflow:hidden; border:0; border-radius:4px; background:var(--case-background); cursor:zoom-in; }
#redesign .redesign-delivery-shot img { display:block; width:100%; height:100%; object-fit:contain; }
@media (min-width:901px) and (min-height:761px) {
  #redesign .redesign-delivery-shot img { object-fit:cover; object-position:left top; }
}
#redesign .redesign-delivery-copy h3 { margin:0 0 4px; color:var(--case-ink); font:500 16px/24px var(--body); }
#redesign .redesign-delivery-copy p { margin:0; color:var(--case-copy); font:400 13px/22px var(--body); }
#redesign .redesign-delivery-links { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; }
#redesign .redesign-delivery-links :is(a,button) { display:inline-flex; align-items:center; min-height:32px; padding:0; border:0; background:none; color:var(--case-action); font:500 12px/20px var(--body); text-decoration:none; cursor:pointer; }
#redesign .redesign-delivery-links :is(a,button):hover { text-decoration:underline; text-underline-offset:4px; }
#redesign :is(.redesign-delivery-shot,.redesign-delivery-links a,.redesign-delivery-links button):focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
@media (min-width:901px) and (max-height:760px) {
  #redesign .redesign-navigation { overflow:auto; scrollbar-width:thin; scrollbar-color:var(--accent) var(--case-surface); }
  #redesign .redesign-tabs > button { min-height:58px; padding:6px 12px; }
  #redesign .redesign-tab-label { gap:0; font-size:14px; line-height:22px; }
}
@media (max-width:900px) {
  #redesign .redesign-delivery-preview { grid-template-rows:auto auto auto; }
  #redesign .redesign-delivery-shot { aspect-ratio:1069/652; }
  #redesign .redesign-delivery-links :is(a,button) { min-height:44px; }
}

@media (max-width:620px) {
  #redesign .redesign-delivery-pair { grid-template-columns:1fr; gap:20px; }
}

/* Keep all four interview excerpts visible on shorter desktop canvases. */
@media screen and (min-width:901px) and (max-height:760px) {
  #evidence .validation-feedback { gap:12px; }
  #evidence .validation-quotes { gap:10px; }
  #evidence .validation-quote blockquote { gap:6px; margin-top:6px; font-size:14px; line-height:22px; }
  #evidence .validation-quote blockquote p { padding-block:6px; }
  #evidence .validation-bubble-emoji { font-size:26px; line-height:32px; }
}

@media (max-width:620px) {
  #evidence .validation-quote + .validation-quote { margin-right:0; }
}

/* The final chapters reuse the earlier spreads: evidence left, explanation right. */
#reason .talent-spread-body,#reflection .talent-spread-body {
  display:grid; grid-template-columns:minmax(0,2.4fr) minmax(0,1fr);
  grid-template-rows:minmax(0,1fr); gap:32px; align-content:stretch;
  align-items:stretch; width:100%; max-width:none; justify-self:stretch;
}
/* 11 mirrors the prototype spread: one visible record, three linked examples. */
#reason .talent-spread-body { grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
#reason .delivery-evidence-column { display:grid; align-self:stretch; min-width:0; min-height:0; }
#reason .delivery-record-evidence { display:grid; grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr) auto; gap:16px; min-width:0; min-height:0; padding:16px; border:1px solid var(--spread-rule); border-radius:8px; background:var(--case-surface); }
#reason .delivery-record-evidence > h3 { margin:0; color:var(--case-copy); font-size:14px; line-height:24px; font-weight:500; }
#reason .delivery-record-shot { display:grid; grid-template-rows:minmax(0,1fr) auto; gap:8px; min-width:0; min-height:0; margin:0; }
#reason .delivery-record-shot > button { display:grid; align-content:start; width:100%; min-height:0; padding:0; border:0; border-radius:4px; overflow:hidden; background:white; cursor:zoom-in; }
#main #reason .delivery-record-shot img { display:block; width:100%; max-width:100%; height:auto; border-radius:0; }
#reason .delivery-record-shot figcaption { display:flex; justify-content:space-between; gap:12px; }
#reason .delivery-records { min-width:0; border:0; }
#reason .delivery-records > summary { min-height:28px; padding:0; gap:12px; color:var(--case-action); font-size:12px; line-height:20px; }
#reason .delivery-explanations { display:grid; grid-template-columns:1fr; grid-template-rows:repeat(3,minmax(0,1fr)); gap:0; align-items:stretch; padding-left:24px; border-left:1px solid var(--spread-rule); }
#reason .delivery-explanations > article { display:grid; grid-template-rows:auto auto; gap:8px; align-content:center; padding:16px 0; border:0; }
#reason .delivery-explanations > article:first-child { grid-row:auto; padding:0 0 16px; border:0; }
#reason .delivery-explanations > article + article { border-top:1px solid var(--spread-rule); }
#reason .delivery-explanations h3,#reason .delivery-featured h3 { font-size:16px; line-height:26px; }
#reason .delivery-explanations header > p { margin:8px 0 0; font-size:14px; line-height:22px; }
#reason .delivery-explanations .delivery-more > summary { min-height:28px; font-size:12px; line-height:20px; }
#reason :is(.delivery-records,.delivery-more) > summary:hover { text-decoration:underline; text-underline-offset:4px; }
#reason .n-code-records { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-block:16px; }
#reason .n-code-records article { padding:20px; border-radius:8px; }
#reason .n-code-records :is(p,small) { font-size:14px; line-height:24px; }
#reflection .collaboration-flows { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:minmax(0,1fr); gap:24px; }
#reflection .collaboration-flow { display:grid; grid-template-columns:1fr; grid-template-rows:auto minmax(0,1fr); align-items:stretch; gap:24px; padding:24px; border:1px solid var(--spread-rule); border-radius:16px; background:var(--case-surface); }
#reflection .collaboration-flow h3 { color:var(--case-issue); font-size:15px; line-height:24px; }
#reflection .collaboration-flow-current h3 { color:var(--case-action); }
#reflection .collaboration-flow ol { position:relative; grid-template-columns:1fr; grid-template-rows:minmax(0,1fr) minmax(0,1fr) auto; gap:0; align-self:stretch; }
#reflection .collaboration-flow ol::before { content:""; position:absolute; left:14px; top:26px; bottom:26px; width:1px; background:var(--spread-rule); }
#reflection .collaboration-flow li { align-items:flex-start; justify-content:flex-start; gap:16px; padding:12px 0; border:0; border-radius:0; min-height:0; background:none; }
#reflection .collaboration-flow li + li::before { display:none; }
#reflection .collaboration-step { display:grid; place-items:center; position:relative; z-index:1; width:28px; height:28px; border:1px solid var(--spread-rule); border-radius:50%; background:var(--case-surface); color:var(--case-muted); font:500 12px/20px var(--body); }
#reflection .collaboration-flow-current .collaboration-step { color:var(--case-action); border-color:var(--case-accent-rule); }
#reflection .collaboration-flow li > div { min-width:0; }
#reflection .collaboration-flow strong { display:block; font-size:18px; line-height:30px; text-wrap:pretty; }
#reflection .collaboration-artifact { display:block; width:min(100%,220px); height:56px; margin-top:12px; object-fit:contain; object-position:left; }
#reflection .collaboration-explanation { display:grid; grid-template-rows:auto auto; align-content:start; gap:24px; padding-top:24px; min-width:0; min-height:0; }
#reflection .collaboration-responsibilities { display:grid; grid-template-columns:1fr; grid-template-rows:auto auto auto; gap:0; align-content:start; padding:0; border:0; }
#reflection .collaboration-responsibilities > section { align-self:start; padding-bottom:24px; }
#reflection .collaboration-responsibilities > section + section { padding-top:24px; border-top:1px solid var(--spread-rule); }
#reflection .collaboration-responsibilities h3 { margin:0 0 8px; font-size:16px; line-height:26px; }
#reflection .collaboration-responsibilities p { margin:0; color:var(--case-copy); font-size:14px; line-height:22px; }
#reflection .collaboration-responsibilities .collaboration-boundary { padding-top:24px; border-top:1px solid var(--spread-rule); color:var(--case-muted); font-size:13px; line-height:22px; }
#reflection .collaboration-boundary strong { display:block; margin-bottom:8px; color:var(--case-action); font-weight:500; }
#reflection .collaboration-context { border:0; }
#reflection .collaboration-context > summary { padding:0; min-height:28px; font-size:12px; line-height:20px; color:var(--case-action); }
#reflection .collaboration-context > .n-reflection-layout { margin-top:24px; }
#main #reflection .case-summary > span,#main #reason .case-summary > span { white-space:normal; }
@media screen and (min-width:901px) {
  #main > #reason,#main > #reflection { height:var(--opening-height); min-height:var(--opening-height); }
  #main > #reason > .n-content,#main > #reflection > .n-content { grid-template-rows:auto minmax(0,1fr) 39px; align-content:stretch; }
}
@media screen and (min-width:901px) and (max-height:760px) {
  #reason .delivery-record-evidence { padding:12px; gap:12px; }
  #reason .delivery-explanations > article { padding-block:12px; gap:4px; }
  #reason .delivery-explanations header > p { font-size:14px; line-height:22px; margin-top:4px; }
  #reflection .collaboration-flow { padding:20px; gap:16px; }
  #reflection .collaboration-flow strong { font-size:16px; line-height:26px; }
  #reflection .collaboration-artifact { height:48px; margin-top:8px; }
  #reflection .collaboration-explanation { gap:16px; padding-top:16px; }
  #reflection .collaboration-responsibilities > section { padding-bottom:16px; }
  #reflection .collaboration-responsibilities > section + section,#reflection .collaboration-responsibilities .collaboration-boundary { padding-top:16px; }
  #reflection .collaboration-responsibilities p { font-size:14px; line-height:22px; }
}
@media(max-width:900px) {
  #reason .talent-spread-body,#reflection .talent-spread-body { grid-template-columns:1fr; grid-template-rows:auto auto; gap:32px; }
  #reason .delivery-record-evidence { grid-template-rows:auto auto auto; }
  #main #reason .delivery-record-shot img { height:auto; max-height:none; }
  #reason .delivery-explanations { grid-template-rows:auto; padding-left:0; border-left:0; }
  #reason .delivery-explanations > article { align-content:start; padding-block:20px; }
  #reflection .collaboration-flow { min-height:360px; }
  #reflection .collaboration-explanation { padding-top:0; }
  #reflection .collaboration-responsibilities { grid-template-columns:1fr 1fr; grid-template-rows:auto auto; gap:24px; }
  #reflection .collaboration-responsibilities > section { align-self:start; padding:0; }
  #reflection .collaboration-responsibilities > section + section { padding:0; border:0; }
  #reflection .collaboration-boundary { grid-column:1 / -1; }
}
@media(max-width:620px) {
  #reason .n-code-records,#reflection .collaboration-responsibilities { grid-template-columns:1fr; }
  #reflection .collaboration-flows { gap:12px; }
  #reflection .collaboration-flow { gap:16px; padding:16px 12px; min-height:340px; border-radius:12px; }
  #reflection .collaboration-flow h3 { font-size:13px; line-height:22px; }
  #reflection .collaboration-flow li { gap:8px; }
  #reflection .collaboration-flow strong { font-size:14px; line-height:24px; }
  #reflection .collaboration-step { width:24px; height:24px; }
  #reflection .collaboration-flow ol::before { left:12px; }
  #reflection .collaboration-responsibilities > section + section { padding-top:20px; border-top:1px solid var(--spread-rule); }
  #main #reflection .case-summary,#main #reason .case-summary { height:auto; min-height:39px; }
}
