.astra-project { display: grid; grid-template-columns: 1fr 1.15fr; gap: 7%; align-items: center; margin-top: 100px; padding-top: 64px; border-top: 1px solid var(--rule); }
.astra-intro { display: block; }
.astra-context { margin-top: 28px; }
.astra-context .project-facts { margin-top: 0; }
.astra-context .project-link { margin-top: 18px; }
.astra-project + .aiviz-project { margin-top: 100px; }
.astra-preview { --astra-background: #181619; background: #09080a; color: #dcd8db; border: 1px solid #373137; }
.astra-preview-link { background: var(--astra-background); display: block; position: relative; overflow: hidden; aspect-ratio: 1 / 1; }
.astra-preview video { width: 100%; height: 100%; display: block; object-fit: contain; }
.astra-preview-labels { position: absolute; inset: 22px 0 auto; display: grid; grid-template-columns: 1fr 1fr; pointer-events: none; }
.astra-preview-labels span { margin-left: 24px; font-size: 14px; color: #dcd8db; }
.astra-preview-divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #615b60; opacity: .65; pointer-events: none; }
.astra-preview-enter { position: absolute; right: 22px; bottom: 20px; padding: 12px 16px; background: #09080add; color: #dcd8db; font-size: 12px; border: 1px solid #615b60; }
.astra-preview-caption { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; border-top: 1px solid #373137; color: #9d959a; font-size: 12px; }
.astra-preview-toggle { min-width: 60px; min-height: 44px; padding: 8px 14px; border: 1px solid #615b60; background: transparent; color: #dcd8db; font: inherit; cursor: pointer; }
.astra-preview-link:focus-visible, .astra-preview-toggle:focus-visible { outline: 2px solid #d7b424; outline-offset: -4px; }
@media (max-width: 640px) {
  .astra-project { grid-template-columns: 1fr; margin-top: 64px; padding-top: 38px; }
  .astra-intro { grid-template-columns: 1fr; gap: 24px; margin-bottom: 25px; }
  .astra-preview-labels { top: 12px; }
  .astra-preview-labels span { margin-left: 12px; font-size: 11px; }
  .astra-preview-enter { right: 10px; bottom: 10px; padding: 8px 10px; font-size: 10px; }
  .astra-preview-caption { padding: 6px 12px; font-size: 10px; }
  .astra-project + .aiviz-project { margin-top: 64px; }
}

html[data-theme="dark"] .astra-preview { filter: invert(1); }

.astra-preview canvas, .astra-preview video, .astra-preview-poster { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: contain; }
.astra-preview canvas, .astra-preview video { opacity: 0; }
.astra-preview[data-mode="3d"][data-ready="true"] canvas, .astra-preview[data-mode="video"][data-ready="true"] video { opacity: 1; }
.astra-preview[data-ready="true"] .astra-preview-poster { opacity: 0; }
