/* A self-contained chapter in the existing PSL design system. */
.solar-story { --solar-yellow: #f7c34b; --solar-muted: #b8c9d9; position: relative; background: #071e38; color: #fff; scroll-margin-top: 76px; }
.solar-story *, .solar-story *::before, .solar-story *::after { box-sizing: border-box; }
.solar-sticky { max-width: 1600px; margin: auto; padding: 80px 5vw 32px; display: grid; grid-template-columns: minmax(270px, .85fr) minmax(0, 1.7fr); align-items: center; column-gap: 3vw; }
.solar-heading { position: relative; z-index: 2; }
.solar-heading h2 { margin: 0 0 26px; font-size: clamp(38px, 4.4vw, 68px); line-height: 1.04; letter-spacing: -.035em; font-weight: 730; color: #fff; }
.solar-heading h2 span { color: var(--solar-yellow); }
.solar-heading p { max-width: 31ch; margin: 0 0 26px; font-size: 17px; line-height: 1.65; color: var(--solar-muted); }
.solar-contact { display: inline-flex; align-items: center; gap: 24px; color: #fff; font-weight: 600; font-size: 16px; padding: 12px 0; border-bottom: 1px solid #6b839b; }
.solar-contact:hover { color: var(--solar-yellow); border-color: var(--solar-yellow); }
.solar-contact span { font-size: 24px; }
.solar-visual { position: relative; min-width: 0; align-self: stretch; display: flex; align-items: center; flex-direction: column; justify-content: center; }
.solar-canvas { width: 100%; height: clamp(320px, 36vw, 560px); display: none; }
.solar-canvas canvas { display: block; width: 100%; height: 100%; }
.solar-fallback { width: 100%; padding: 16px; border-radius: 16px; background: #fbfaf7; }
.solar-fallback svg { margin: 0 !important; }
.solar-caption { color: var(--solar-muted); text-align: center; margin: 0; font: 400 12px/1.6 'IBM Plex Mono', monospace; }
.solar-chapters { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px; padding: 34px 0 24px; }
.solar-chapter { position: relative; padding-top: 20px; border-top: 1px solid #3d5269; }
.solar-chapter::before { content: ''; position: absolute; top: -1px; left: 0; height: 2px; width: 100%; background: var(--solar-yellow); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.solar-chapter.is-active::before { transform: scaleX(1); }
.solar-chapter h3 { display: flex; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 600; line-height: 1.4; margin: 0 0 10px; color: #fff; }
.solar-chapter h3 span { color: var(--solar-yellow); font: 400 13px 'IBM Plex Mono', monospace; }
.solar-chapter p { font-size: 15px; line-height: 1.6; color: var(--solar-muted); margin: 0; max-width: 40ch; }
.solar-controls { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-top: 18px; }
.solar-steps { display: none; gap: 6px; flex-wrap: wrap; }
.solar-steps button, .solar-pause { background: transparent; color: #c9d7e5; border: 1px solid #48617a; border-radius: 999px; min-height: 44px; padding: 10px 16px; font: inherit; font-size: 14px; cursor: pointer; }
.solar-steps button[aria-pressed='true'] { border-color: var(--solar-yellow); color: #071e38; background: var(--solar-yellow); }
.solar-steps button:hover, .solar-pause:hover { border-color: #fff; }
.solar-steps span { margin-left: 5px; }
.solar-pause { display: none; border-color: transparent; }
.solar-skip { margin-left: auto; padding: 12px 0; color: #c9d7e5; font-size: 14px; }
.solar-skip:hover { color: #fff; }
.solar-story :focus-visible { outline: 2px solid var(--solar-yellow); outline-offset: 5px; }
.solar-story.is-ready .solar-canvas { display: block; }
.solar-story.is-ready .solar-fallback { display: none; }
.solar-story.is-ready .solar-steps { display: flex; }
.solar-story.is-ready .solar-pause { display: block; }
@media (min-width: 1000px) and (min-height: 680px) and (prefers-reduced-motion: no-preference) {
  .solar-story.is-ready { height: 280vh; }
  .solar-story.is-ready .solar-sticky { position: sticky; top: 72px; min-height: calc(100vh - 72px); padding-top: 30px; padding-bottom: 20px; }
  .solar-story.is-ready .solar-canvas { height: clamp(280px, 45vh, 560px); }
  .solar-story.is-ready .solar-chapters { padding-top: 12px; }
}
@media (max-width: 999px) {
  .solar-sticky { grid-template-columns: 1fr; padding: 60px 24px 28px; gap: 28px; }
  .solar-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; align-items: center; }
  .solar-heading h2 { grid-row: span 2; margin: 0; font-size: clamp(36px, 6vw, 55px); }
  .solar-heading p { margin: 0; }
  .solar-contact { justify-self: start; }
  .solar-canvas { height: clamp(300px, 55vw, 460px); }
  .solar-chapters { gap: 22px; padding: 0; }
  .solar-chapter h3 { display: block; font-size: 17px; }
  .solar-chapter h3 span { display: block; margin-bottom: 10px; }
  .solar-controls { padding: 0; }
}
@media (max-width: 599px) {
  .solar-sticky { padding: 48px 20px 24px; gap: 26px; }
  .solar-heading { display: block; }
  .solar-heading h2 { margin-bottom: 20px; font-size: clamp(36px, 10vw, 50px); }
  .solar-heading p { max-width: 36ch; font-size: 16px; margin-bottom: 12px; }
  .solar-visual { margin: -12px -12px 0; }
  .solar-canvas { height: 320px; }
  .solar-caption { padding: 0 12px; }
  .solar-chapters { grid-template-columns: 1fr; gap: 20px; }
  .solar-chapter { padding-top: 16px; }
  .solar-chapter h3 { display: flex; }
  .solar-chapter h3 span { display: inline; margin: 0; }
  .solar-chapter p { max-width: none; }
  .solar-steps { gap: 8px; }
  .solar-steps button { padding: 10px 12px; }
  .solar-steps span { margin-left: 3px; }
  .solar-skip { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .solar-story *, .solar-story *::before { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .solar-story.is-ready .solar-pause { display: none; }
}
