/* Brand-manual presentation: the original case content and behavior remain intact. */
.talent-case {
  --canvas: #e7e7e2;
  --ink: #171815;
  --secondary: #60625c;
  --line: #d7d9d0;
  --blue: #24291b;
  --blue-light: #f1f5e5;
  --accent: #d4ef6b;
  --paper: #f6f6f2;
}
.story-header { background: var(--canvas); border-bottom: 1px solid #cccec4; }
.story-wordmark { font-size: 17px; }
.story-wordmark span { font-size: 12px; }
.home-link { border-color: #c1c4b8; border-radius: 0; background: transparent; }
/* Match the homepage notebook navigation, independently of the case accent. */
.home-link:hover, .home-link:active { background: #f5cd4a; color: #1c1c1a; border-color: #1c1c1a; }
.home-link:active { background: #eee6d4; }
.home-link:focus-visible { outline-color: #2747c7; }
.deck-chapters a { position: relative; color: var(--secondary); }
.deck-chapters a[aria-current] { color: var(--ink); }
.deck-chapters a[aria-current]::after { content: ''; position: absolute; height: 3px; background: var(--ink); bottom: 3px; left: 0; right: 0; }
.deck-controls button { border-radius: 0; border-color: #c1c4b8; background: transparent; }
.deck-controls button:hover:not(:disabled) { background: var(--ink); }
.story-pages { gap: 28px; }
.story-page { border-radius: 0; }
.page-masthead { font-size: 11px; letter-spacing: .025em; position: relative; }
.page-masthead::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; margin-inline: 8px; }
.page-masthead>span:last-child { order: 2; }
.page-masthead b { color: var(--secondary); font: 10px/1.4 var(--display); letter-spacing: .08em; }
.page-footer { color: var(--secondary); }
.page-footer>span:last-child { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink); }
.page-footer i { color: var(--secondary); }
.page-title { display: grid; grid-template-columns: 1.22fr 1fr; gap: 40px; align-items: start; }
.page-title h2 { font-weight: 500; font-size: clamp(28px, 2.55cqw, 36px); line-height: 1.42; letter-spacing: -.04em; max-width: 23em; }
.page-title>p { margin-top: 2px; font-size: 16px; line-height: 1.8; max-width: 36em; }
.page-takeaway { border-color: var(--line); color: var(--secondary); }
.section-label { color: var(--ink); font-size: 13px; font-weight: 500; }
.notes li { gap: 16px; }
.note-number { width: 28px; height: 28px; border-radius: 0; background: var(--accent); color: var(--ink); font-size: 12px; margin-top: 2px; }
.notes h3 { font-weight: 500; }
.evidence-image figcaption { color: var(--secondary); }
.evidence-image figcaption>span { color: var(--ink); }
.text-action { color: var(--ink); text-decoration: underline; text-decoration-color: #a0a68b; text-underline-offset: 5px; }
.text-action:hover { text-decoration-color: var(--ink); }
.decision { border-radius: 0; background: var(--paper); border-top: 1px solid var(--ink); }
.decision b { color: var(--ink); }
/* Working pages: align evidence and annotations rather than stacking cards. */
.journey-map { gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.journey-row { border-radius: 0; background: white; padding-block: 28px; }
.journey-row.revised { background: var(--blue-light); border-top: 1px solid var(--line); }
.journey-row.revised>span { color: var(--ink); }
.journey-row i { color: #7d8274; }
.responsibility { border-top: 1px solid var(--line); padding-top: 24px; }
.form-shot, .research-ui, .condition-details, .progress-shot { border-radius: 0; background: var(--paper); border: 1px solid var(--line); }
/* Early design: reasoning beside a single before/after evidence panel. */
.story-page.structure { height:auto; min-height:660px; padding-top:32px; grid-template-rows:20px auto 18px; gap:24px; }
.structure .page-content { grid-template-rows:auto auto auto; gap:24px; }
.structure-heading h2 { font:600 clamp(27px,2.7cqw,36px)/1.4 var(--display); letter-spacing:-.035em; margin:0; }
.structure-heading h2 span { color:var(--accent); }
.structure-heading>p { margin-top:12px; font-size:14px; line-height:1.8; color:var(--secondary); }
.structure .structure-comparison { grid-template-columns:minmax(0,1.2fr) minmax(0,1.5fr); grid-template-rows:auto; gap:32px; align-items:stretch; }
.structure-reasoning { display:flex; flex-direction:column; gap:24px; min-width:0; padding-block:10px; }
.structure-label { display:block; font:500 11px/1.6 "SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.12em; margin-bottom:8px; color:var(--accent); }
.structure-problem .structure-label { color:#ca8f8f; }
.structure-problem h3 { font-size:19px; font-weight:600; line-height:1.5; }
.structure-reasoning p { font-size:13px; color:#aeb8c6; line-height:1.85; margin-top:8px; }
.structure-change { border-top:1px solid var(--line); padding-top:20px; }
.structure-change ol { list-style:none; padding:0; margin:0; display:grid; gap:22px; counter-reset:adjustment; }
.structure-change li { position:relative; padding-left:30px; counter-increment:adjustment; }
.structure-change li::before { content:counter(adjustment,decimal-leading-zero); position:absolute; left:0; top:2px; color:var(--accent); font:500 13px/1.7 "SFMono-Regular",Menlo,Consolas,monospace; }
.structure-change h4 { font-size:16px; font-weight:600; line-height:1.6; margin:0; }
.structure-change li p { margin-top:5px; }
.structure-next { display:flex; align-items:center; gap:10px; margin-top:auto; min-height:36px; font-size:12px; line-height:1.7; color:#aeb8c6; }
.structure-next>span:first-child { color:var(--accent); white-space:nowrap; }
.structure-next:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
.structure :is(a,button):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.structure-evidence { display:grid; grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); gap:8px; min-width:0; padding:24px; border:1px solid #30363f; border-radius:10px; background:#ffffff02; }
.structure-version { display:grid; grid-template-rows:auto minmax(0,1fr); gap:18px; min-width:0; }
.structure-version h3 { color:#aeb8c6; font-size:13px; font-weight:600; line-height:1.6; text-align:center; }
.structure-revised h3 { color:var(--accent); }
.structure-version .evidence-image { height:340px; padding:0; border:0; background:none; gap:12px; }
.structure-version .image-area button { cursor:zoom-in; }
.structure-version .image-area img { object-position:center; }
.structure-version figcaption { font-size:11px; text-align:center; color:var(--secondary); }
.structure-version figcaption>span { color:var(--secondary); }
.structure-transition { display:flex; align-items:center; justify-content:center; color:var(--accent); }
.structure-transition svg { width:36px; height:36px; }
.structure .page-takeaway { margin:0; padding-top:14px; font-size:12px; line-height:1.8; border-top:1px solid var(--line); color:var(--secondary); }
.structure .page-takeaway strong { color:var(--ink); font-weight:500; margin-right:.4em; }
.structure .page-footer { justify-content:flex-end; }
@media(min-width:1500px) { .structure-version .evidence-image { height:380px; } }
@media(max-width:1100px) and (min-width:901px) {
  .structure .structure-comparison { grid-template-columns:minmax(0,1.1fr) minmax(0,1.35fr); gap:24px; }
  .structure-evidence { padding:20px 16px; grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr); gap:4px; }
  .structure-version h3 { font-size:12px; }
  .structure-transition svg { width:28px; }
}
@media(max-width:900px) {
  .story-page.structure { min-height:0; padding-top:28px; gap:22px; }
  .structure .structure-comparison { grid-template-columns:1fr; gap:24px; }
  .structure-reasoning { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:0; }
  .structure-change { border-top:0; border-left:1px solid var(--line); padding:0 0 0 24px; }
  .structure-next { grid-column:1/-1; margin-top:0; }
}
@media(max-width:560px) {
  .structure-heading h2 { font-size:27px; }
  .structure-heading>p { font-size:13px; }
  .structure-reasoning { display:flex; gap:20px; }
  .structure-change { border-left:0; border-top:1px solid var(--line); padding:18px 0 0; }
  .structure-evidence { grid-template-columns:1fr; gap:18px; padding:20px; }
  .structure-version h3 { font-size:14px; }
  .structure-version .evidence-image { height:340px; }
  .structure-transition { height:28px; }
  .structure-transition svg { width:28px; height:28px; transform:rotate(90deg); }
}
.mapping-row { border-color: var(--line); }
.mapping-row i, .field-callout b { color: var(--ink); }
.field-callout { border-color: #9aa184; }
.field-callout::before { background: #171815; }
.conditions .condition-details { background: var(--paper); }
.chat-before { border-radius: 0; background: var(--paper); border: 1px solid var(--line); }
.chat-after .evidence-image { border-radius: 0; background: white; border: 1px solid var(--line); }
.detail-label span { color: var(--secondary); }
.validation-grid { gap: 0; border-block: 1px solid var(--ink); }
.validation-grid article { border-radius: 0; background: transparent; padding: 28px; }
.validation-grid article:first-child { background: var(--paper); border-right: 1px solid var(--line); }
.validation-grid h3 { font-size: 28px; font-weight: 500; }
.validation-record { border-top: 0; }
/* A second dark spread marks the shift to conversational interaction. */
.evolution { --ink: #fafbf5; --secondary: #bec2b6; --line: #414438; background: #171815; color: var(--ink); }
.evolution .section-label { color: var(--accent); }
.evolution-old, .evolution-new { border-radius: 0; background: transparent; padding: 24px; border: 1px solid var(--line); }
.evolution-new { border-color: #626b4a; }
.evolution-new .evidence-image { background: #fff; padding: 14px; }
.evolution-new .evidence-image figcaption, .evolution-new .evidence-image figcaption>span { color: #60625c; }
.evolution-old .evidence-image figcaption { color: var(--secondary); }
.small-condition .image-area { background: #fff; }
.prototype-stage { background: var(--paper); border-radius: 0; border: 1px solid var(--line); }
.play-demo { background: #171815; color: #fafbf5; border-radius: 0; }
.play-demo span { color: #d4ef6b; }
.play-demo:hover { background: #343b25; }
.evidence-step .evidence-image { background: var(--paper); border-radius: 0; border: 1px solid var(--line); }
.reading-caption h3, .evidence-step>b { color: var(--ink); }
.state-example { border-radius: 0; background: transparent; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); padding: 22px 0; }
.state-example .section-label { display: flex; align-items: center; gap: 10px; }
.state-example .section-label::before { content: ''; width: 8px; height: 8px; background: var(--ink); }
.state-example:nth-child(2) .section-label::before { background: #7e8767; }
.state-example .evidence-image { padding: 12px; background: var(--paper); }
.candidate-example, .reason-example { background: var(--paper); border-radius: 0; border-top: 1px solid var(--ink); }
.candidate-example.after, .reason-example.after { background: var(--blue-light); }
.match-tag { border-radius: 2px; }
.reason-trigger small { color: #445725; }
.reason-popover { border-radius: 0; background: #171815; }
.summary-demo { background: var(--paper); border-radius: 0; border: 1px solid var(--line); }
.summary-counts { border-radius: 0; }
.summary-toolbar input, .summary-row input { accent-color: #303b1a; }
.learning-note { border-radius: 0; border: 1px solid var(--line); background: var(--paper); }
.learning-note .boundary { border-color: var(--line); }
.timeout-flow i { color: #7d8274; }
.video-dialog { border-radius: 0; }
.video-dialog-head button { border-radius: 0; }
@media (max-width:1200px) {
  .page-title { gap: 28px; grid-template-columns: 1.15fr 1fr; }
  .page-title h2 { font-size: 29px; }
}
@media (max-height:780px) and (min-width:901px) {
  .page-title h2 { font-size: 28px; }
  .page-title>p { line-height: 1.65; }
  .journey-row { padding-block: 20px; }
  .responsibility { padding-top: 18px; }
  .validation-grid article { padding: 20px; }
  .validation-grid h3 { font-size: 24px; }
}
@media (max-width:900px) {
  .page-title { grid-template-columns: 1fr; gap: 12px; }
  .page-title>p { margin-top: 0; }
  .page-masthead::after { display: none; }
  .evolution-old, .evolution-new { padding: 18px; }
}
@media (max-width:560px) {
  .page-title h2 { font-size: 26px; }
  .page-title>p { font-size: 15px; line-height: 1.75; }
  .story-pages { gap: 20px; }
  .journey-row { padding: 18px; }
  .responsibility { padding-top: 16px; }
  .validation-grid article { padding: 20px 16px; }
  .validation-grid article:first-child { border-right: 0; border-bottom: 1px solid var(--line); }
  .validation-grid h3 { font-size: 23px; }
  .state-example { padding: 16px 0; }
  .note-number { width: 26px; height: 26px; }
}
@media (max-width:350px) {
  .page-title h2 { font-size: 25px; }
}

/* Shared dark page foundation across the complete case. */
.story-page {
  --ink:#eef0f3; --secondary:#939dab; --line:#343d49; --accent:#c6ef43;
  background:#101318; color:var(--ink);
}
.cover .page-content { display:grid; grid-template-rows:minmax(0,1fr); gap:0; }
.cover .page-body { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.06fr); gap:36px; height:100%; min-height:0; align-items:center; }
.cover-intro { display:flex; flex-direction:column; justify-content:center; gap:0; min-width:0; padding:0; position:relative; z-index:1; }
.cover .case-tag { display:flex; align-items:center; gap:10px; color:var(--accent); font:400 clamp(9px,.95cqw,12px)/1.5 "SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.07em; margin-bottom:24px; white-space:nowrap; }
.cover .case-tag::before { content:""; flex:0 0 8px; width:8px; height:8px; background:var(--accent); margin-right:2px; }
.cover .case-tag b { color:inherit; font:inherit; padding:0; border:0; }
.cover-heading { min-width:0; }
.cover-heading .cover-project { font:500 clamp(38px,3.85cqw,56px)/1.2 var(--display); color:var(--ink); letter-spacing:-.035em; margin:0 0 8px; white-space:nowrap; }
.cover-project span { font-weight:400; }
.cover .cover-heading h1 { font:600 clamp(38px,3.85cqw,56px)/1.2 var(--body); letter-spacing:-.035em; margin:0; white-space:nowrap; }
.cover-heading h1>span { color:var(--accent); font-family:var(--display); font-weight:500; }
.cover-heading .cover-subtitle { margin:20px 0 0; font:400 clamp(10px,1cqw,13px)/1.6 "SFMono-Regular",Menlo,Consolas,monospace; color:var(--accent); letter-spacing:.21em; white-space:nowrap; }
.cover-intro>.cover-description { max-width:33em; margin:28px 0 0; font-size:15px; line-height:1.9; color:var(--secondary); text-wrap:pretty; }
.cover-tags { display:flex; flex-wrap:nowrap; gap:12px; list-style:none; padding:0; margin:32px 0 0; max-width:404px; }
.cover-tags li { flex:1; padding:7px 15px; text-align:center; border:1px solid #414952; border-radius:30px; background:#1d242c; font-size:13px; line-height:1.6; color:#b8bfc9; white-space:nowrap; }
.cover-tags li:first-child { background:var(--accent); color:#19200c; border-color:var(--accent); font-weight:600; }
.cover-evidence { display:flex; align-items:center; min-height:0; height:100%; padding:0; background:none; border-radius:0; }
.cover-evidence .evidence-image { display:grid; grid-template-rows:minmax(0,1fr); width:100%; height:100%; max-height:100%; gap:0; padding:0; background:none; box-shadow:none; border-radius:0; }
.cover-evidence .image-area { display:flex; align-items:center; min-height:0; border:0; border-radius:0; background:none; }
.cover-evidence .image-area button { height:100%; width:100%; padding:0; }
.cover-evidence .image-area img { display:block; width:100%; height:100%; object-fit:contain; object-position:center; }
.cover-evidence .image-area button:focus-visible { outline:2px solid var(--accent); outline-offset:-14px; }
.cover .page-footer,.journey .page-footer { justify-content:flex-end; color:#929aa5; font-size:11px; }
/* Matching outer canvases for the cover and context comparison. */
@media screen and (min-width:901px) {
  .story-page:is(.cover,.journey) { height:clamp(520px,calc(100svh - 240px),660px); padding-top:32px; }
}
@media(max-width:1200px) and (min-width:901px) {
  .cover .page-body { gap:28px; }
  .cover .case-tag { gap:7px; letter-spacing:.035em; }
  .cover-intro>.cover-description { font-size:14px; }
}
@media(max-height:780px) and (min-width:901px) {
  .cover .case-tag { margin-bottom:20px; }
  .cover-heading .cover-project { margin-bottom:8px; }
  .cover-heading .cover-subtitle { margin-top:18px; }
  .cover-intro>.cover-description { margin-top:24px; line-height:1.85; }
  .cover-tags { margin-top:28px; }
}
@media(max-width:900px) {
  .story-page.cover { height:auto; min-height:0; padding-top:28px; }
  .cover .page-body { grid-template-columns:1fr; grid-template-rows:auto auto; gap:40px; }
  .cover .case-tag { font-size:11px; margin-bottom:22px; }
  .cover-heading .cover-project,.cover .cover-heading h1 { font-size:clamp(32px,5.5vw,46px); }
  .cover-heading .cover-subtitle { font-size:11px; margin-top:20px; }
  .cover-intro>.cover-description { margin-top:28px; max-width:38em; }
  .cover-tags { margin-top:28px; }
  .cover-evidence { justify-content:center; height:auto; }
  .cover-evidence .evidence-image { height:auto; gap:0; }
  .cover-evidence .image-area button { height:auto; }
  .cover-evidence .image-area img { height:auto; max-height:430px; }
}
@media(max-width:560px) {
  .cover .case-tag { font-size:9px; gap:7px; letter-spacing:.01em; }
  .cover .case-tag::before { width:7px; height:7px; flex-basis:7px; margin-right:0; }
  .cover-heading .cover-project,.cover .cover-heading h1 { font-size:32px; }
  .cover-heading .cover-project { margin-bottom:8px; }
  .cover-heading .cover-subtitle { font-size:9px; letter-spacing:.15em; margin-top:20px; }
  .cover-intro>.cover-description { font-size:14px; line-height:1.85; margin-top:24px; }
  .cover-tags { gap:10px; margin-top:28px; }
  .cover-tags li { font-size:12px; padding:7px 10px; }
}
@media(max-width:350px) {
  .cover .case-tag { font-size:8px; }
  .cover-heading .cover-project,.cover .cover-heading h1 { font-size:28px; }
  .cover-heading .cover-subtitle { font-size:8px; }
}

/* Page 2 keeps the supplied comparison within the shared page foundation. */
.story-page.journey { grid-template-rows:20px minmax(0,1fr) 18px; gap:16px; }
.journey .page-content { display:grid; grid-template-rows:auto minmax(0,1fr); gap:2.55cqw; min-height:0; }
.context-heading { min-width:0; }
.context-heading h2 { font:600 min(2.82cqw,32px)/1.3 var(--body); letter-spacing:-.025em; margin:0; white-space:nowrap; }
.context-heading h2>span { color:var(--accent); }
.journey .context-comparison { display:grid; grid-template-columns:minmax(0,1fr) 6.85% minmax(0,1.06fr); gap:0; min-height:0; align-items:stretch; }
.context-panel { display:grid; grid-template-rows:auto minmax(min-content,1fr) auto; padding:min(2.55cqw,28px) min(2.7cqw,30px) min(2.3cqw,26px); border:1px solid #30363f; border-radius:1.2cqw; min-width:0; background:#ffffff02; }
.context-before { --secondary:#b8c0cb; color:#eef0f3; }
.context-before .context-panel-heading>span,.context-before .context-steps svg { color:#aeb8c6; }
.context-after { border-color:#c6ef4338; background:#c6ef4304; }
.context-panel-heading>span { display:block; color:inherit; font:600 min(.9cqw,11px)/1.4 "SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.19em; margin-bottom:min(.65cqw,8px); }
.context-after .context-panel-heading>span,.context-after .context-panel-heading h3 { color:var(--accent); }
.context-panel-heading h3 { color:inherit; font-size:min(1.75cqw,20px); font-weight:600; line-height:1.4; margin:0; }
.context-panel-heading p { font-size:min(1.07cqw,12px); line-height:1.55; color:var(--secondary); margin-top:min(.35cqw,5px); }
.context-steps { display:grid; grid-template-rows:repeat(3,minmax(min-content,1fr)); list-style:none; padding:0; margin:12px 0 18px; }
.context-steps>li { display:grid; grid-template-columns:min(3cqw,34px) minmax(0,1fr) auto; gap:min(1.05cqw,12px); align-content:center; align-items:start; min-width:0; padding:12px 0; }
.context-steps>li+li { border-top:1px solid #ffffff12; }
.context-after .context-steps>li+li { border-color:#c6ef431c; }
.context-steps svg { width:min(3cqw,34px); height:min(3cqw,34px); color:inherit; }
.context-after .context-steps svg { color:var(--accent); }
.context-steps h4 { color:var(--ink); font-size:min(1.4cqw,16px); line-height:1.4; font-weight:600; margin:0; }
.context-steps p { color:var(--secondary); font-size:min(1.07cqw,12px); line-height:1.55; margin-top:6px; white-space:nowrap; }
.context-friction { align-self:center; justify-self:center; margin:0; border:1px solid #86505066; background:#b16b6b0b; border-radius:30px; padding:.38cqw 1.05cqw; min-width:8.8cqw; text-align:center; color:#c28d8d; font-size:.92cqw; font-weight:500; line-height:1.5; white-space:nowrap; }
.context-panel-note { color:var(--secondary); font-size:min(1.13cqw,13px); line-height:1.9; margin:0; border-top:1px solid #ffffff12; padding-top:14px; }
.context-transition { display:flex; align-items:center; justify-content:center; color:var(--accent); }
.context-transition>svg { border:1px solid #c6ef4366; border-radius:50%; width:4.9cqw; height:4.9cqw; padding:1.05cqw; }
.context-outcome { display:grid; grid-template-columns:min(13.8cqw,156px) minmax(0,1fr); align-items:center; gap:0; border-top:1px solid #c6ef4338; padding-top:14px; }
.context-outcome strong { color:var(--accent); font:600 min(3.15cqw,38px)/1.1 var(--display); letter-spacing:-.055em; white-space:nowrap; }
.context-outcome p { color:var(--secondary); font-size:min(1.02cqw,12px); white-space:nowrap; }
@media(min-width:901px) {
  /* Grow the canvas when intrinsic row spacing exceeds the compact height. */
  .story-page.journey { height:auto; min-height:clamp(520px,calc(100svh - 240px),660px); grid-template-rows:20px minmax(min-content,1fr) 18px; }
  .journey .page-content { grid-template-rows:auto minmax(min-content,1fr); }
  .journey .context-comparison { min-height:min-content; }
  .context-panel-note,.context-outcome { min-height:66px; }
  .context-before .context-steps>li { grid-template-columns:min(3cqw,34px) minmax(0,1fr) min(16.7cqw,189px); }
}
@media(max-width:900px) {
  .story-page.journey { height:auto; min-height:0; padding-top:28px; grid-template-rows:20px auto 18px; gap:18px; }
  .journey .page-content { gap:24px; }
  .context-heading h2 { font-size:clamp(25px,3.3vw,32px); white-space:normal; text-wrap:pretty; }
  .journey .context-comparison { grid-template-columns:minmax(0,1fr) 44px minmax(0,1fr); }
  .context-panel { padding:22px 18px; border-radius:13px; }
  .context-panel-heading>span { font-size:10px; margin-bottom:8px; }
  .context-panel-heading h3 { font-size:19px; }
  .context-panel-heading p { font-size:12px; margin-top:5px; }
  .context-steps { margin:18px 0; grid-template-rows:repeat(3,108px); }
  .context-steps>li { grid-template-columns:30px minmax(0,1fr); gap:10px; padding:18px 0; }
  .context-steps svg { width:30px; height:30px; }
  .context-steps h4 { font-size:15px; }
  .context-steps p { font-size:12px; margin-top:7px; white-space:normal; }
  .context-friction { grid-column:2; font-size:10px; padding:3px 11px; min-width:0; margin:0; }
  .context-panel-note { font-size:12px; line-height:1.9; padding-top:16px; }
  .context-transition>svg { width:34px; height:34px; padding:7px; }
  .context-outcome { display:block; padding-top:16px; }
  .context-outcome strong { font-size:36px; }
  .context-outcome p { font-size:11px; margin-top:10px; white-space:normal; }
}
@media(max-width:560px) {
  .journey .context-comparison { grid-template-columns:1fr; gap:16px; }
  .context-panel { padding:24px; }
  .context-transition { transform:rotate(90deg); height:30px; }
  .context-steps { grid-template-rows:repeat(3,100px); margin:14px 0; }
  .context-steps>li { grid-template-columns:30px minmax(0,1fr) auto; padding:20px 0; }
  .context-friction { grid-column:2/4; }
  .context-after .context-steps { grid-template-rows:repeat(3,90px); }
  .context-outcome { display:flex; align-items:center; gap:14px; }
  .context-outcome strong { font-size:36px; }
  .context-outcome p { font-size:10px; margin:0; }
}

/* A tighter shared desktop canvas, with the cover caption attached to its artwork. */
@media screen and (min-width:901px) and (min-height:701px) {
  .talent-case { --page-height:min(800px,calc(100svh - 176px)); }
  .story-page { padding-top:18px; padding-bottom:16px; gap:16px; }
  .page-content { gap:18px; }
  .cover-evidence .evidence-image { height:auto; gap:0; }
  .cover-evidence .image-area button { height:auto; }
  .cover-evidence .image-area img { height:auto; max-height:calc(var(--page-height) - 158px); }
}

/* Whole-product evidence: paired panels follow the supplied comparison reference. */
.story-page.redesign {
  height:auto; min-height:660px;
  padding-top:32px; grid-template-rows:20px auto 18px; gap:24px;
}
.redesign .page-content { grid-template-rows:auto auto auto; gap:24px; }
.redesign-heading h2 { font-size:clamp(27px,2.7cqw,36px); line-height:1.4; font-weight:600; letter-spacing:-.035em; margin:0; }
.redesign-heading h2 span { color:var(--accent); margin-left:.2em; }
.redesign-heading p { font-size:14px; color:var(--secondary); line-height:1.7; margin-top:8px; }
.redesign-navigation { display:flex; align-items:center; }
.redesign-tabs { flex:1; min-width:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.redesign-tabs>button { display:flex; align-items:center; justify-content:space-between; gap:12px; min-width:0; min-height:44px; padding:10px 16px; color:#c2cad5; background:#1a2029; border:1px solid #48515d; border-radius:8px; font-size:14px; line-height:1.5; font-weight:500; text-align:left; cursor:pointer; transition:background .16s ease,border-color .16s ease,transform .16s ease; }
.redesign-tab-label { white-space:nowrap; }
.redesign-tab-action { display:inline-flex; align-items:center; gap:8px; color:#aeb8c6; font-size:11px; white-space:nowrap; }
.redesign-tab-action i { font:400 16px/1 var(--body); }
.redesign-tabs>button[aria-selected="true"] { color:#19200c; background:var(--accent); border-color:var(--accent); font-weight:600; }
.redesign-tabs>button[aria-selected="true"] .redesign-tab-action { color:#3d4d12; }
.redesign-browser { position:relative; display:grid; grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr); grid-template-rows:auto auto auto auto; align-items:stretch; min-width:0; }
/* Shared rows align captions while each complete image fills its available width. */
.redesign-view { display:grid; grid-row:1 / span 4; grid-template-rows:subgrid; min-width:0; margin:0; padding:18px 24px 0; border:1px solid #30363f; border-radius:10px; background:#ffffff02; }
.redesign-before { grid-column:1; }
.redesign-after { grid-column:3; border-color:#c6ef4338; background:#c6ef4304; }
.redesign-screen-head { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:30px; margin-bottom:10px; }
.redesign-screen-head>span { color:#aeb8c6; font:500 11px/1.6 "SFMono-Regular",Menlo,Consolas,monospace; letter-spacing:.14em; }
.redesign-after .redesign-screen-head>span { color:var(--accent); }
.redesign-enlarge { color:var(--secondary); background:none; border:0; font-size:11px; min-height:30px; padding:0; white-space:nowrap; }
.redesign-enlarge span { margin-left:4px; }
.redesign-image { display:block; align-self:start; width:100%; height:auto; background:none; border:0; padding:0; cursor:zoom-in; }
.redesign-image img { display:block; width:100%; height:auto; }
.redesign-view figcaption { color:#aeb8c6; font-size:12px; line-height:1.8; padding:12px 0 16px; }
.redesign-transition { grid-column:2; grid-row:1 / span 4; display:flex; align-items:center; justify-content:center; color:var(--accent); }
.redesign-transition svg { width:36px; height:36px; }
.redesign-error { color:#b8c0cb; padding-bottom:16px; font-size:12px; }
.redesign-error a { color:var(--accent); text-decoration:underline; }
.redesign :is(button,a):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.redesign-tabs>button:hover:not([aria-selected="true"]) { border-color:var(--accent); color:var(--ink); background:#252e39; transform:translateY(-1px); }
.redesign-tabs>button:hover:not([aria-selected="true"]) .redesign-tab-action { color:var(--accent); }
.redesign-tabs>button:active { transform:translateY(1px); }
.redesign-enlarge:hover { color:var(--accent); }
.redesign .page-footer { justify-content:flex-end; }
@media(max-width:900px) {
  .story-page.redesign { min-height:0; padding-top:28px; gap:22px; }
  .redesign-browser { grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr); }
  .redesign-tabs { gap:12px; }
  .redesign-tabs>button { padding-inline:12px; font-size:13px; }
  .redesign-tab-action>span { display:none; }
  .redesign-view { padding:14px 16px 0; }
  .redesign-screen-head { gap:8px; }
  .redesign-screen-head>span { font-size:10px; letter-spacing:.08em; }
  .redesign-enlarge { font-size:10px; }
  .redesign-transition svg { width:28px; height:28px; }
}
@media(max-width:600px) {
  .redesign-heading h2 { font-size:27px; }
  .redesign-heading p { font-size:13px; }
  .redesign-tabs { gap:8px; }
  .redesign-tabs>button { gap:5px; font-size:11px; padding:9px 8px; border-radius:6px; }
  .redesign-tab-number { display:none; }
  .redesign-tab-action i { font-size:13px; }
  .redesign-browser { grid-template-columns:1fr; grid-template-rows:none; gap:12px; }
  .redesign-view { grid-column:auto; grid-row:auto; grid-template-rows:auto auto minmax(48px,auto) auto; padding:16px 18px 0; }
  .redesign-screen-head>span { font-size:11px; }
  .redesign-enlarge { font-size:11px; min-height:36px; }
  .redesign-transition { grid-column:auto; grid-row:auto; height:28px; }
  .redesign-transition svg { transform:rotate(90deg); }
}
@media(prefers-reduced-motion:reduce) {
  .redesign-tabs>button { transition:none; }
  .redesign-tabs>button:hover:not([aria-selected="true"]),.redesign-tabs>button:active { transform:none; }
}
@media print {
  .story-page.redesign { min-height:0; height:var(--page-height); }
  .redesign-navigation,.redesign-enlarge { display:none; }
}

/* Pages 5–17 extend the approved dark editorial system with intrinsic layouts. */
.case-detail {
  --paper:#171b21; --blue:var(--accent); --blue-light:#c6ef4306;
  height:auto; min-height:660px; padding-top:32px;
  grid-template-rows:20px auto 18px; gap:24px;
}
.case-detail .page-content { grid-template-rows:auto auto auto; align-content:start; gap:28px; }
.case-detail .page-title { display:block; }
.case-detail .page-title h2 { max-width:none; font:600 clamp(27px,2.7cqw,36px)/1.4 var(--display); letter-spacing:-.035em; }
.case-detail .page-title h2>span { color:var(--accent); }
.case-detail .page-title>p { max-width:76em; margin:12px 0 0; font-size:14px; line-height:1.85; color:#aeb8c6; }
.case-detail .page-body { gap:32px; align-items:stretch; }
.case-detail .page-footer { justify-content:flex-end; }
.case-detail .page-takeaway { margin:0; padding-top:14px; font-size:12px; line-height:1.8; color:var(--secondary); }
.case-detail .notes { gap:24px; }
.case-detail .notes li { gap:14px; }
.case-detail .note-number { width:20px; height:27px; margin-top:1px; justify-content:flex-start; background:none; color:var(--accent); font:500 12px/1.6 "SFMono-Regular",Menlo,Consolas,monospace; }
.case-detail .notes h3 { font-size:17px; line-height:1.5; font-weight:600; margin-bottom:8px; }
.case-detail .notes p { font-size:14px; line-height:1.85; color:#b8c0cb; }
.case-detail .section-label { color:var(--accent); font-size:12px; line-height:1.7; margin-bottom:16px; }
.case-detail .evidence-image figcaption { font-size:11px; line-height:1.75; color:var(--secondary); }
.case-detail .evidence-image figcaption>span { color:var(--secondary); }
.case-detail .image-area>button { cursor:zoom-in; }
.case-detail .text-action { align-self:flex-start; width:fit-content; min-height:36px; padding:7px 0; font-size:12px; color:#b8c0cb; text-decoration-color:var(--line); }
.case-detail .text-action:hover { color:var(--accent); text-decoration-color:var(--accent); }
.case-detail :is(a,button,input):focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
.case-detail :is(.research-ui,.condition-details,.progress-shot,.chat-before,.chat-after,.evolution-old,.evolution-new,.prototype-stage,.state-example,.candidate-example,.reason-example,.summary-demo,.learning-note) {
  border:1px solid #30363f; border-radius:10px; background:#ffffff02;
}
.case-detail :is(.evolution-new,.candidate-example.after,.reason-example.after) { border-color:#c6ef4338; background:#c6ef4304; }
/* Research findings: keep observations beside their visible evidence. */
.research.case-detail .page-body { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
.case-detail .research-copy { gap:24px; padding-block:12px; }
.case-detail .research-ui { grid-template-columns:minmax(0,.95fr) minmax(0,1fr); gap:24px; padding:24px; }
.case-detail .research-ui .evidence-image { height:350px; }
.case-detail .field-callout { border-color:var(--line); padding-left:18px; }
.case-detail .field-callout::before { background:var(--accent); border-color:#171b21; }
.case-detail .field-callout b { font-size:16px; font-weight:600; color:var(--ink); }
.case-detail .field-callout p { font-size:13px; color:#aeb8c6; line-height:1.8; }
/* Decision pages: screenshot areas have room to keep their original proportions. */
.conditions.case-detail .page-body { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); }
.case-detail .condition-details { grid-template-columns:1fr; grid-template-rows:auto auto; gap:18px; padding:24px; }
.case-detail .condition-details .evidence-image { width:100%; max-width:390px; justify-self:center; }
.case-detail .condition-details .condition-top { height:86px!important; }
.case-detail .condition-details .condition-body { height:304px; }
.feedback.case-detail .page-body { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.case-detail .progress-shot { height:350px; padding:24px; }
.case-detail .explain-column { gap:24px; }
.case-detail .detail-strip { height:78px; padding:0; }
.case-detail .detail-strip .image-area { width:178px; }
.communication.case-detail .page-body { grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
.case-detail .chat-before { padding:24px; gap:20px; }
.case-detail .chat-before .evidence-image { height:340px; flex:none; }
.case-detail .chat-before>p { font-size:14px; line-height:1.8; }
.case-detail .chat-after { padding:24px; grid-template-rows:auto auto auto; gap:18px; }
.case-detail .detail-label { display:flex; flex-wrap:wrap; gap:8px 16px; }
.case-detail .detail-label span { color:var(--accent); font-size:11px; }
.case-detail .detail-label b { font-size:17px; font-weight:600; margin:0; }
.case-detail .chat-after .evidence-image { height:174px; padding:0; border:0; background:none; }
/* Evaluation: distinct positive findings and unresolved questions. */
.case-detail .validation-grid { gap:24px; border:0; }
.case-detail .validation-grid article { padding:28px; border:1px solid #30363f; border-radius:10px; background:#ffffff02; }
.case-detail .validation-grid article:first-child { border-color:#c6ef4338; background:#c6ef4304; }
.case-detail .validation-grid article:last-child .section-label { color:#ca8f8f; }
.case-detail .validation-grid h3 { font-size:26px; line-height:1.5; font-weight:600; }
.case-detail .validation-grid p { font-size:14px; line-height:1.85; color:#b8c0cb; }
.case-detail .validation-record { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto; padding-top:24px; gap:24px; border-top:1px solid var(--line); }
.case-detail .validation-record b { font-size:24px; color:var(--accent); }
.case-detail .validation-record p,.case-detail .validation-record span { font-size:12px; line-height:1.85; }
/* Agent exploration: a continuous visual language, with the original media intact. */
.evolution.case-detail .page-body { grid-template-columns:minmax(0,1fr) minmax(0,1.4fr); }
.case-detail .evolution-old,.case-detail .evolution-new { display:flex; flex-direction:column; padding:24px; gap:18px; }
.evolution.case-detail h3 { font-size:21px; font-weight:600; line-height:1.5; }
.evolution.case-detail p { color:#b8c0cb; font-size:14px; line-height:1.85; }
.case-detail .small-condition { height:140px; }
.case-detail .small-condition .image-area { background:none; }
.case-detail .evolution-new .evidence-image { height:230px; flex:none; background:none; padding:0; }
.case-detail .evolution-new .evidence-image figcaption { color:var(--secondary); }
.prototype.case-detail .page-body { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.case-detail .prototype-stage { padding:24px; gap:20px; }
.case-detail .prototype-shot { height:320px; flex:none; }
.case-detail .play-demo { min-height:44px; padding:10px 20px; border-radius:6px; background:var(--accent); color:#19200c; font-size:14px; }
.case-detail .play-demo span { color:#3d4d12; font-size:12px; }
.case-detail .play-demo:hover { background:#d4ef6b; }
.case-detail .reading-evidence { height:auto; grid-template-rows:auto auto; gap:28px; }
.case-detail .evidence-step { grid-template-rows:auto auto; gap:16px; }
.case-detail .reading-caption { align-items:start; }
.case-detail .reading-caption h3 { font-size:17px; font-weight:600; color:var(--ink); }
.case-detail .reading-caption p { font-size:14px; line-height:1.85; }
.case-detail .evidence-step .evidence-image { height:auto; padding:20px; background:#ffffff02; border-radius:10px; border-color:#30363f; }
.case-detail .evidence-step .image-area>button,.case-detail .evidence-step .image-area img { height:auto; }
.case-detail .evidence-step .evidence-image figcaption { display:block; }
.case-detail .state-example { padding:24px; gap:18px; }
.case-detail .state-example .section-label { margin:0; }
.case-detail .state-example .section-label::before { background:var(--accent); }
.case-detail .state-example:nth-child(2) .section-label::before { background:#ca8f8f; }
.case-detail .state-example .evidence-image { height:210px; flex:none; padding:0; background:none; }
.case-detail .state-example h3 { font-size:19px; font-weight:600; }
.case-detail .state-example p { font-size:14px; color:#b8c0cb; line-height:1.85; }
/* Working examples: status, explanation and selection remain usable on dark surfaces. */
.case-detail .candidate-example,.case-detail .reason-example { padding:24px; }
.case-detail :is(.candidate-example.before,.reason-example.before) .section-label { color:#aeb8c6; }
.case-detail .candidate-row { min-height:64px; flex:none; font-size:15px; gap:12px; }
.case-detail .candidate-example>p,.case-detail .example-comment { font-size:13px; line-height:1.85; color:#b8c0cb; }
.case-detail .candidate-head { font-size:12px; }
.case-detail .match-tag { border:1px solid #8dc89e44; background:#8dc89e14; color:#b2d9bd; border-radius:4px; font-size:12px; }
.case-detail .match-tag.pending { border-color:#dcc08b44; background:#dcc08b14; color:#dcc08b; }
.case-detail .reason-example { gap:22px; justify-content:flex-start; }
.case-detail .reason-cell>b { font-size:13px; }
.case-detail .reason-cell>p,.case-detail .reason-trigger { font-size:15px; line-height:1.9; color:var(--ink); }
.case-detail .reason-cell>p,.case-detail .reason-trigger { max-width:23em; }
.case-detail .reason-trigger small { color:var(--accent); font-size:12px; min-height:30px; }
.case-detail .reason-popover { background:#20262e; border:1px solid #48515d; border-radius:8px; font-size:14px; line-height:1.85; }
.counts.case-detail .page-body { grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); }
.case-detail .summary-demo { padding:24px; }
.case-detail .summary-counts { width:auto; flex-wrap:wrap; gap:12px; padding:10px 12px; background:#ffffff08; border:1px solid var(--line); border-radius:6px; font-size:12px; }
.case-detail .summary-counts span:nth-child(2) { color:#b2d9bd; }
.case-detail .summary-counts span:last-child { color:#dcc08b; }
.case-detail .summary-toolbar { font-size:13px; gap:12px; }
.case-detail .summary-toolbar input,.case-detail .summary-row input { accent-color:var(--accent); }
.case-detail .summary-row { min-height:60px; font-size:14px; }
.case-detail .summary-label { min-height:38px; font-size:12px; }
.case-detail .delivery-story { gap:24px; }
.case-detail .learning-note { padding:28px; }
.case-detail .learning-note h3 { font-size:23px; line-height:1.5; font-weight:600; }
.case-detail .learning-note p { font-size:14px; line-height:1.85; color:#b8c0cb; }
.case-detail .timeout-flow { font-size:13px; gap:8px; flex-wrap:wrap; justify-content:flex-start; }
.case-detail .timeout-flow span { padding:7px 10px; border:1px solid var(--line); border-radius:4px; }
.case-detail .timeout-flow i { color:var(--secondary); }
.case-detail .learning-note .boundary { font-size:12px; }
@media(max-width:1100px) and (min-width:901px) {
  .case-detail .page-body { gap:24px; }
  .case-detail .notes h3 { font-size:16px; }
  .case-detail .notes p { font-size:13px; }
  .case-detail .validation-record { grid-template-columns:1fr 1.4fr; }
  .case-detail .validation-record .text-action { grid-column:1/-1; }
  .case-detail .summary-counts { width:100%; }
}
@media(max-width:900px) {
  .case-detail { min-height:0; padding-top:28px; gap:22px; }
  .case-detail .page-content { gap:24px; }
  .case-detail .page-body { grid-template-columns:1fr; grid-template-rows:none; gap:24px; }
  .case-detail:is(.research,.conditions,.feedback,.communication,.evolution,.prototype,.counts) .page-body { grid-template-columns:1fr; grid-template-rows:none; }
  .case-detail .research-ui { width:min(100%,560px); justify-self:center; }
  .case-detail .research-ui .image-area>button { justify-content:center; }
  .case-detail .condition-details { grid-template-columns:1fr; grid-template-rows:auto auto; }
  .case-detail .explain-column { display:flex; }
  .case-detail .chat-before .evidence-image { height:300px; }
  .case-detail .chat-after .evidence-image { height:220px; }
  .case-detail .validation-record { grid-template-columns:1fr; }
  .case-detail .validation-record .text-action { grid-column:auto; }
  .case-detail .evolution-old { display:flex; }
  .case-detail .small-condition { height:120px; }
  .case-detail .reading-caption { display:block; }
  .case-detail .reading-caption p { margin-top:8px; }
  .case-detail .summary-counts { width:auto; }
}
@media(max-width:560px) {
  .case-detail .page-title h2 { font-size:27px; }
  .case-detail .page-title>p { font-size:13px; }
  .case-detail .notes h3 { font-size:16px; }
  .case-detail .notes p { font-size:14px; }
  .case-detail :is(.research-ui,.condition-details,.progress-shot,.chat-before,.chat-after,.evolution-old,.evolution-new,.prototype-stage,.state-example,.candidate-example,.reason-example,.summary-demo,.learning-note) { padding:20px; }
  .case-detail .research-ui { gap:18px; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .case-detail .research-ui .evidence-image { height:300px; }
  .case-detail .field-callout { padding-left:12px; }
  .case-detail .field-callout b { font-size:14px; }
  .case-detail .field-callout p { font-size:12px; }
  .case-detail .progress-shot { height:260px; }
  .case-detail .chat-before .evidence-image { height:240px; }
  .case-detail .chat-after .evidence-image { height:180px; }
  .case-detail .validation-grid { grid-template-columns:1fr; gap:20px; }
  .case-detail .validation-grid h3 { font-size:24px; }
  .case-detail .evolution-new .evidence-image { height:180px; }
  .case-detail .prototype-shot { height:250px; }
  .case-detail .play-demo { gap:12px; font-size:13px; padding-inline:14px; }
  .case-detail .reading-caption h3 { white-space:normal; font-size:16px; }
  .case-detail .evidence-step .evidence-image { padding:14px; }
  .case-detail .state-example .evidence-image { height:180px; }
  .case-detail .candidate-row { font-size:14px; }
  .case-detail .candidate-example.after .candidate-row,.case-detail .candidate-example.after .candidate-head { grid-template-columns:minmax(0,1fr) 74px; gap:10px; }
  .case-detail .summary-counts { width:100%; }
  .case-detail .summary-row { grid-template-columns:24px minmax(0,1fr) 70px; gap:8px; }
  .case-detail .summary-row .match-tag { font-size:11px; }
  .case-detail .learning-note h3 { font-size:21px; }
}
@media print { .case-detail { min-height:0; break-inside:avoid; } }
