.jwst-project { padding: clamp(24px, 4vw, 52px); }
.jwst-project > .section-heading { border-top: 0; padding-top: 0; }
.jwst-project .project-name { min-width: 0; align-items: flex-start; }
.jwst-project .project-number { margin-top: 4px; }
.jwst-project h2 { line-height: 1.35; }
.jwst-project h2 > span { display: block; margin-bottom: 5px; font-size: 12px; color: var(--muted); letter-spacing: 0; }
.jwst-project .project-type { flex: none; padding-top: 4px; }
.jwst-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: center; margin-top: 15px; }
.jwst-summary h3 { margin: 13px 0; font-size: clamp(23px, 2.5vw, 32px); font-weight: 400; line-height: 1.3; letter-spacing: -.025em; }
.jwst-summary > p:not(.eyebrow) { font-size: 13px; line-height: 1.85; color: var(--muted); }
.jwst-links { display: flex; align-items: flex-start; flex-direction: column; gap: 16px; margin-top: 24px; }
.jwst-links .outline-link { gap: 24px; }
.jwst-links .text-link { margin: 0; font-size: 11px; }
.jwst-art { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #090c13; }
.jwst-art img { width: 100%; height: auto; }
.jwst-art figcaption { padding: 13px 16px; font-size: 10px; line-height: 1.6; color: var(--muted); background: var(--surface); }
.jwst-story { padding: 44px 0 34px; }
.jwst-story .jwst-tools-heading { margin-top: 23px; }
.jwst-story .story-copy p { font-size: 13px; }
.jwst-playthrough { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.jwst-video { position: relative; aspect-ratio: 16 / 9; background: #050910; }
.jwst-video iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; }
.jwst-playthrough figcaption { display: flex; justify-content: space-between; align-items: center; gap: 15px 24px; padding: 15px 18px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.jwst-playthrough figcaption a { display: inline-flex; align-items: center; gap: 10px; flex: none; min-height: 32px; color: var(--ink); }
.jwst-playthrough figcaption a:hover { text-decoration: underline; text-underline-offset: 4px; }
.jwst-playthrough .icon { width: 16px; height: 16px; }
.jwst-model-heading { margin-top: 36px; }
.jwst-gallery { min-width: 0; }
.jwst-inspector { min-width: 0; }
.jwst-model-stage { height: 540px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: radial-gradient(ellipse at 50% 70%, var(--stage-center), var(--stage-edge)); }
#jwst-model { display: block; width: 100%; height: 100%; --poster-color: transparent; --progress-bar-color: var(--focus); --progress-bar-height: 3px; }
.jwst-inspector figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 45px; margin-top: 17px; }
.jwst-inspector h4 { font-size: 15px; font-weight: 500; line-height: 1.4; }
.jwst-inspector figcaption p { margin-top: 7px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.jwst-model-controls { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.jwst-model-controls button { white-space: nowrap; }
.jwst-model-controls button:disabled { opacity: .5; cursor: default; }
.jwst-model-controls button[hidden] { display: none; }
#jwst-model:focus-visible { outline: 3px solid var(--focus, #a7deff); outline-offset: -4px; }
.jwst-model-status { margin-top: 12px; min-height: 36px; font-size: 11px; line-height: 1.6; color: var(--muted); }
.jwst-model-status[data-state="error"] { color: #ffdac2; }
.jwst-asset-note { margin-top: 15px; max-width: 760px; font-size: 11px; line-height: 1.7; color: var(--muted); }
@media (max-width: 1000px) {
  .jwst-hero { gap: 24px; }
  .jwst-model-stage { height: 440px; }
}
@media (max-width: 680px) {
  .jwst-project { padding: 23px 20px; }
  .jwst-project > .section-heading { display: block; }
  .jwst-project .project-type { display: block; max-width: none; margin: 10px 0 0 24px; padding: 0; }
  .jwst-project h2 > span { font-size: 11px; }
  .jwst-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .jwst-story { padding: 34px 0 28px; }
  .jwst-story .role-block { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .jwst-story .role-block h3 { margin-bottom: 10px; }
  .jwst-story .role-block p { grid-row: 2; }
  .jwst-story .jwst-tools-heading { margin-top: 0; }
  .jwst-playthrough figcaption { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 14px; }
  .jwst-model-heading { margin-top: 26px; }
  .jwst-model-stage { height: 330px; }
  .jwst-model-status { min-height: 18px; }
}
@media (max-width: 360px) {
  .jwst-project { padding: 22px 16px; }
  .jwst-model-stage { height: 290px; }
}
