/* Project-specific engineering stories; canvas never determines layout size. */
.project-story { grid-column: 1 / -1; min-width: 0; margin: 0 0 34px; overflow: hidden; color: #e8e9e0; background: #091115; border: 1px solid #b2c7c52b; border-radius: 14px; color-scheme: dark; }
.project-grid > .project-story { margin: 8px 0 20px; }
.project-story-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 40px; padding: 33px 38px 0; }
.story-kicker { margin: 0 0 14px; color: #a4c8c8; font-size: .55rem; font-weight: 500; letter-spacing: .16em; }
.project-story-heading h3 { margin: 0; color: #e7e9e1; font: 400 1.7rem/1.15 var(--sans); letter-spacing: -.035em; }
.project-story-heading h3 em { color: #dfc297; font: italic 400 1.22em/1.1 var(--serif); letter-spacing: -.01em; }
.project-story-heading > p { margin: 0 0 2px; max-width: 340px; color: #a4b6b7; font-size: .77rem; line-height: 1.8; }
.project-story-stage { position: relative; height: 360px; overflow: hidden; isolation: isolate; }
.project-story--contingency .project-story-stage { height: 400px; }
.project-scene.cinematic-scene { height: 100%; max-height: 400px; background: transparent; }
.project-scene .scene-fallback { object-fit: contain; opacity: .6; }
.project-scene.is-ready .scene-fallback { opacity: 0; }
.project-story-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; margin: 0 30px; padding: 17px 0 21px; border-top: 1px solid #d0d5c824; }
.scene-phase { display: flex; align-items: center; gap: 9px; min-height: 24px; margin: 0; color: #c7d4cf; font-size: .65rem; letter-spacing: .035em; }
.scene-phase::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #dfc297; box-shadow: 0 0 9px #dfc29755; }
.scene-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; padding: 3px; max-width: 100%; border: 1px solid #dcc69f2b; border-radius: 99px; background: #101b20; }
.scene-controls button { min-height: 44px; padding: 8px 14px; border: 1px solid transparent; border-radius: 99px; background: transparent; color: #b1c2c1; font-size: .65rem; cursor: pointer; }
.scene-controls button > span { margin-left: 7px; }
.scene-controls button:hover { color: #f1dfc3; background: #ffffff06; }
.scene-controls button[aria-pressed='true'] { color: #eed9b7; border-color: #d8b77945; background: #ceb58014; }
.scene-controls button:focus-visible { outline: 2px solid #ddc293; outline-offset: 2px; }
@media (max-width: 820px) {
  .project-story-heading { grid-template-columns: 1fr; gap: 18px; padding: 28px 26px 0; }
  .project-story-heading > p { max-width: 520px; font-size: .75rem; }
  .project-story-footer { margin-inline: 24px; }
}
@media (max-width: 640px) {
  .project-story { border-radius: 10px; margin-bottom: 26px; }
  .project-story-heading { padding: 26px 21px 0; gap: 14px; }
  .story-kicker { font-size: .49rem; letter-spacing: .1em; }
  .project-story-heading h3 { font-size: 1.48rem; }
  .project-story-heading > p { font-size: .73rem; }
  .project-story-stage, .project-story--contingency .project-story-stage { height: 340px; }
  .project-story-footer { margin-inline: 17px; padding: 13px 0 17px; gap: 8px; justify-content: center; }
  .scene-phase { width: 100%; justify-content: center; font-size: .6rem; }
  .scene-controls { justify-content: center; gap: 0; border-radius: 24px; }
  .scene-controls button { padding-inline: 9px; font-size: .58rem; }
}
@media (max-width: 380px) {
  .scene-controls { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; }
  .scene-controls button { padding-inline: 7px; }
}
@media print { .project-story { display: none !important; } }
