/* Research-only refinement. Shared shell and other routes remain unchanged. */
main .hero { min-height: min(900px, 100svh); align-items: center; }
main .hero-copy { width: min(1020px, 76vw); padding-top: 150px; padding-bottom: 90px; }
main .hero-copy h1 { font-size: clamp(48px, 5.6vw, 96px); line-height: 1.15; }
main .hero-copy .lead { max-width: 680px; }
main .hero .eyebrow, main .engineering .eyebrow { color: var(--apex-text-inverse-muted); }
main .manifesto { padding: clamp(64px, 9vh, 110px) 0 64px; background: var(--apex-surface-default); }
main .manifesto-head { display: block; }
main .manifesto-tag { padding: 0; margin-bottom: 20px; }
main .manifesto h2 { margin-bottom: 0; font-size: clamp(38px, 4.2vw, 70px); }
main .manifesto-copy { display: block; margin: 24px 0 32px; }
main .manifesto-copy p { max-width: 690px; margin: 0; }
main .process-meta { justify-content: flex-end; align-items: center; gap: 18px; padding-bottom: 4px; }
main .process-controls button { display: grid; place-items: center; width: 44px; min-width: 44px; padding: 0; box-shadow: none; }
main .process-counter { min-width: 80px; font-variant-numeric: tabular-nums; }
main .flow-viewport { --card-width: clamp(320px, 36vw, 600px); --step: clamp(280px, 32vw, 510px); height: clamp(270px, 39vh, 400px); padding: 0; overflow: hidden; }
main .flow-line { position: relative; display: block; width: 100%; height: 100%; transform: none; }
main .flow-item { position: absolute; left: 50%; top: 50%; width: var(--card-width); height: 68%; min-height: 0; padding: clamp(24px, 2.6vw, 44px); border: 0; background: var(--apex-surface-product); color: var(--apex-text-primary); opacity: 1; transform: translate(calc(-50% + var(--offset) * var(--step)), -50%) scale(.76); cursor: pointer; transition: transform .65s var(--ease), height .65s var(--ease), background .35s; }
main .flow-item.active { height: 90%; transform: translate(-50%, -50%) scale(1); background: var(--apex-action-primary); color: var(--apex-text-inverse); box-shadow: none; }
main .flow-item strong { font-size: clamp(26px, 2.6vw, 42px); }
main .flow-item > span { font-size: 12px; letter-spacing: .08em; }
main .flow-item.active > span { color: var(--apex-text-inverse-muted); }
main .flow-item p { font-size: clamp(14px, 1vw, 17px); line-height: 1.8; max-width: 29em; }
main .flow-item:focus-visible { outline: 3px solid var(--apex-brand-accent); outline-offset: -4px; }
main .engineering { margin: 24px var(--pad) 64px; padding: clamp(40px, 5vw, 80px); border-radius: 24px; }
main .engineering-head, main .dial-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); }
main .engineering-head { align-items: end; margin-bottom: 48px; }
main .engineering-head h2 { font-size: clamp(34px, 3.7vw, 64px); margin-bottom: 0; line-height: 1.18; }
main .engineering-head > p { margin: 0; }
main .dial { width: 100%; max-width: 560px; }
main .dial-readout { padding: 32px 0; min-height: 380px; }
main .dial-readout h3 { font-size: clamp(30px, 3.2vw, 54px); line-height: 1.2; }
main .dial-readout .phase { color: var(--apex-text-inverse-muted); }
main .dial-center img { height: clamp(100px, 11vw, 190px); }
main .factory { padding: 0; }
main .factory-scene { border-radius: 0; min-height: 800px; padding: clamp(60px, 6vw, 100px) var(--pad); display: flex; flex-direction: column; justify-content: space-between; gap: 64px; }
main .factory-title { position: relative; left: auto; top: auto; max-width: 800px; }
main .factory-scene::before { background: linear-gradient(90deg, var(--apex-image-scrim), transparent 85%), linear-gradient(0deg, var(--apex-image-scrim), transparent 80%); }
main .factory-title h2 { font-size: clamp(38px, 4.5vw, 76px); line-height: 1.15; margin-bottom: 28px; }
main .factory-rails { position: relative; left: auto; right: auto; bottom: auto; }
main .factory-marker { display: none; }
main .factory-title .eyebrow, main .factory-rail > span { color: var(--apex-text-inverse-muted); }
main .quality { background: var(--apex-surface-default); padding-top: clamp(64px, 8vw, 120px); }
main .quality-head h2 { font-size: clamp(36px, 4vw, 68px); line-height: 1.18; margin-bottom: 0; }
main .evidence-stage { min-height: 610px; }
main .evidence-visual { height: 580px; }
main .evidence-stack { height: 600px; }
main .evidence-card:nth-child(n) { opacity: 1; background: var(--apex-surface-product); color: var(--apex-text-primary); border-color: var(--apex-border-subtle); box-shadow: none; padding: 24px 30px; min-height: 175px; }
main .evidence-card:nth-child(2) { top: 138px; }
main .evidence-card:nth-child(3) { top: 276px; }
main .evidence-card:nth-child(4) { top: 414px; }
main .evidence-card h3 { font-size: clamp(22px, 1.8vw, 28px); margin-top: 14px; }
main .evidence-card.active { background: var(--apex-action-primary); color: var(--apex-text-inverse); }
main .evidence-card.active .card-top span { color: var(--apex-text-inverse-muted); }
@media (max-width: 1000px) {
  main .engineering-head, main .dial-layout { gap: 28px; }
  main .engineering { padding: 38px 30px; }
  main .dial-point { width: 100px; }
  main .dial-center span { font-size: 8px; }
  main .quality-head { gap: 32px; }
}
@media (max-width: 760px) {
  main .hero { min-height: 850px; align-items: flex-start; }
  main .hero-copy { width: 100%; padding: 120px var(--pad) 40px; }
  main .hero-copy h1 { font-size: clamp(36px, 8.8vw, 58px); }
  main .hero-media { inset: 420px 0 0; }
  main .manifesto h2 { font-size: clamp(32px, 8.3vw, 44px); }
  main .flow-viewport { --card-width: 78vw; --step: 76vw; height: 300px; }
  main .flow-item { padding: 25px; }
  main .flow-item.active { height: 86%; }
  main .engineering { margin: 16px 16px 48px; padding: 40px 24px; border-radius: 20px; }
  main .engineering-head, main .dial-layout { grid-template-columns: 1fr; gap: 28px; }
  main .engineering-head h2 { font-size: clamp(30px, 7.6vw, 44px); }
  main .dial { width: 100%; margin: 12px auto; }
  main .dial-point { width: 92px; }
  main .dial-readout { min-height: 280px; }
  main .dial-readout h3 { font-size: clamp(28px, 7vw, 42px); }
  main .factory-scene { padding: 60px var(--pad); min-height: 0; gap: 40px; }
  main .factory-title { right: auto; }
  main .factory-title h2 { font-size: clamp(30px, 7.6vw, 44px); }
  main .factory-rails { grid-template-columns: 1fr; }
  main .factory-rail { min-height: 150px; }
  main .quality-head { margin-bottom: 36px; }
  main .quality-head h2 { font-size: clamp(30px, 7.6vw, 44px); }
  main .evidence-stage { min-height: 0; gap: 30px; }
  main .evidence-visual { height: 360px; }
  main .evidence-stack { height: 660px; }
  main .evidence-card:nth-child(n) { padding: 22px; min-height: 195px; }
  main .evidence-card:nth-child(2) { top: 150px; }
  main .evidence-card:nth-child(3) { top: 300px; }
  main .evidence-card:nth-child(4) { top: 450px; }
}
/* Keep every quality heading and description readable rather than masking them
   behind the preceding card. The stepped widths retain the layered rhythm. */
main .evidence-stack { display: flex; flex-direction: column; gap: 12px; height: auto; }
main .evidence-card:nth-child(n) { position: relative; top: auto; left: auto; right: auto; min-height: 0; transform: none; transition: background .25s, color .25s; }
main .evidence-card:nth-child(2) { margin-left: 12px; }
main .evidence-card:nth-child(3) { margin-left: 24px; }
main .evidence-card:nth-child(4) { margin-left: 36px; }
main .evidence-card h3 { margin: 10px 0 6px; }
main .evidence-card p { color: var(--apex-text-body); }
main .evidence-card.active p { color: var(--apex-text-inverse-muted); }
main .evidence-card.active .card-top span { color: var(--apex-text-inverse-muted); }
@media (max-width: 760px) {
  main .evidence-card:nth-child(n) { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { main .flow-item { transition: none; } }
