/* Shared reading-page system: the same identity, controls and type as the scenes. */
.case-page, .lab-page {
  --page-accent: #ff997b;
  --chrome-ink: #f1eee6;
  --chrome-muted: #afb4a6;
  --chrome-line: #ffffff24;
  --chrome-accent: #ff795e;
  background: #10110f;
  color: #f1eee6;
}
.case-page[data-project="pareto"] { --page-accent: #b6c5a6; }
.case-page[data-project="assessment"] { --page-accent: #a3d6ed; }
.case-page .container, .lab-page .container, .site-footer {
  width: min(1360px, calc(100% - 160px));
  margin-inline: auto;
}
.case-page .scene-header, .lab-page .scene-header { position: relative; }
.case-page .motion-toggle, .lab-page .motion-toggle {
  position: absolute;
  top: 25px;
  right: 48px;
  bottom: auto;
  min-height: 39px;
  border: 1px solid #ffffff24;
  border-radius: 0;
  background: transparent;
  color: #f1eee6;
  box-shadow: none;
  backdrop-filter: none;
  z-index: 55;
}
.case-page .motion-symbol, .lab-page .motion-symbol { color: #ff795e; }
.case-page :focus-visible, .lab-page :focus-visible { outline-color: #ff795e; }
.case-page a:hover, .lab-page a:hover { color: #ff997b; }
.case-header {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(230px, .7fr);
  column-gap: 64px;
  padding: 48px 0 64px;
}
.case-header > .text-link {
  grid-column: 1 / -1;
  margin: 0 0 40px;
  color: #b6bbaa;
  font: 10px/1.6 var(--mono);
}
.case-kicker { grid-column: 1; color: var(--page-accent); font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 1.2px; }
.case-header h1 {
  grid-column: 1;
  margin: 16px 0 24px;
  max-width: 100%;
  font: 800 clamp(44px, 5.7vw, 88px)/1.02 var(--font);
  letter-spacing: -.055em;
  color: #f1eee6;
  overflow-wrap: anywhere;
}
.case-header .standfirst {
  grid-column: 1;
  max-width: 760px;
  font-size: clamp(18px, 1.65vw, 24px);
  line-height: 1.55;
  color: #b6bbaf;
}
.case-facts {
  grid-column: 2;
  grid-row: 2 / 5;
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0;
  padding: 25px 0 25px 28px;
  border-left: 1px solid #ffffff24;
  color: #b6bbaf;
  font: 11px/1.8 var(--mono);
}
.case-facts span { padding: 0; border: 0; }
.case-facts span:first-child { color: var(--page-accent); }
.case-page main { counter-reset: case-section; }
.case-section {
  grid-template-columns: minmax(180px, .8fr) minmax(0, 1.8fr);
  gap: 64px;
  padding: 45px 0;
  border-color: #ffffff24;
  counter-increment: case-section;
}
.case-section h2 { font: 650 25px/1.25 var(--font); letter-spacing: -.035em; max-width: 300px; }
.case-section h2::before {
  content: "0" counter(case-section);
  display: block;
  color: var(--page-accent);
  font: 10px/1 var(--mono);
  margin-bottom: 16px;
  letter-spacing: 1px;
}
.case-section > div { max-width: 800px; min-width: 0; }
.case-section p, .case-section li { color: #b6bbaf; font-size: 16px; line-height: 1.8; }
.case-section p + p { margin-top: 18px; }
.case-section li { margin-bottom: 12px; }
.case-section li::marker { color: var(--page-accent); }
.workflow, .control-map {
  border-radius: 0;
  background: #171a16;
  border-color: #ffffff24;
  padding: 24px;
}
.workflow figcaption, .workflow-steps li::before, .control-map dd { color: var(--page-accent); }
.workflow-steps { margin: 0; gap: 24px; }
.workflow-steps strong { color: #f1eee6; }
.workflow-steps span { color: #b6bbaf; }
.case-next {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-color: #ffffff24;
  padding: 28px 0 64px;
  color: #b6bbaa;
  font: 11px/1.6 var(--mono);
}
.case-next a { min-height: 44px; display: inline-flex; align-items: center; }
.case-next a:last-child { color: var(--page-accent); }
.site-footer { padding-top: 42px; border-top: 1px solid #ffffff24; display: grid; grid-template-columns: 1fr auto; gap: 32px; }
.site-footer h2 { font-size: clamp(30px, 4vw, 58px); font-weight: 750; letter-spacing: -.05em; margin: 16px 0 24px; }
.site-footer h2 > span { color: #ff795e; }
.site-footer .scene-kicker { color: #b6bbaa; }
.site-footer .scene-cta { color: #f1eee6; font-size: 13px; }
.site-footer .scene-cta > span { color: #ff795e; }
.site-footer nav { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; gap: 4px; font: 11px var(--mono); color: #b6bbaa; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 36px; }
.site-footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #ffffff24; font: 10px/1.6 var(--mono); color: #b6bbaa; }
.lab-page .lab-back { font: 10px/1.6 var(--mono); color: #b6bbaa; margin-top: 42px; }
.lab-page .section-heading { align-items: end; }
.lab-page .section-heading h1 { font: 800 clamp(42px, 5.7vw, 88px)/1.02 var(--font); letter-spacing: -.055em; }
.lab-page .section-heading .eyebrow { color: #a3d6ed; font: 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 18px; }
.lab-page .section-heading > p { color: #b6bbaf; max-width: 440px; font-size: 16px; }
.lab-page .demo-console { border-radius: 0; border-color: #ffffff24; background: #151914; max-width: none; }
.lab-page .demo-heading { background: transparent; border-color: #ffffff24; }
.lab-page .demo-instruction { color: #b6bbaf; }
.lab-page .section { padding-bottom: 64px; }
@media (max-width: 1100px) {
  .case-page .container, .lab-page .container, .site-footer { width: calc(100% - 96px); }
  .case-page .motion-toggle, .lab-page .motion-toggle { right: 32px; }
  .case-header, .case-section { column-gap: 36px; }
  .case-header { grid-template-columns: minmax(0, 1.6fr) minmax(210px, .7fr); }
}
@media (max-width: 760px) {
  .case-page .container, .lab-page .container, .site-footer { width: calc(100% - 40px); }
  .case-page .motion-toggle, .lab-page .motion-toggle { top: 20px; right: 20px; min-height: 30px; padding: 5px 7px; font-size: 8px; }
  .case-page .motion-symbol, .lab-page .motion-symbol { font-size: 14px; }
  .case-header { display: block; padding: 28px 0 36px; }
  .case-header > .text-link { display: inline-block; margin-bottom: 28px; }
  .case-header h1 { font-size: clamp(36px, 9vw, 60px); margin: 14px 0 20px; }
  .case-header .standfirst { font-size: 18px; }
  .case-facts { border-left: 0; border-top: 1px solid #ffffff24; padding: 20px 0 0; margin-top: 24px; gap: 10px; font-size: 10px; }
  .case-section { display: block; padding: 30px 0; }
  .case-section h2 { font-size: 23px; max-width: none; margin-bottom: 22px; }
  .case-section h2::before { display: inline-block; margin: 0 14px 0 0; vertical-align: middle; }
  .case-section p, .case-section li { font-size: 15px; line-height: 1.75; }
  .workflow { padding: 20px; }
  .workflow-steps { grid-template-columns: 1fr; gap: 22px; }
  .case-next { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 0 36px; }
  .site-footer { grid-template-columns: 1fr; gap: 26px; padding-top: 30px; }
  .site-footer h2 { font-size: 36px; }
  .site-footer nav { flex-direction: row; flex-wrap: wrap; gap: 0 24px; }
  .site-footer-base { flex-direction: column; gap: 8px; font-size: 9px; }
  .lab-page .section-heading { display: block; }
  .lab-page .section-heading > p { margin-top: 22px; font-size: 15px; }
  .lab-page .section-heading h1 { font-size: clamp(38px, 9vw, 60px); }
}
