/* Homepage chapters fill the available viewport and expand for their content.
   No scroll snapping, fixed-height content clipping or changes to video media. */
.home #main>section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.home #main>.hero { height: 100svh; max-height: none; }
.home .hero-inner { flex: 1; }
.home .capabilities-section .cap-grid { padding-block: 1.5rem; }
.home .system-section { justify-content: flex-start; }

/* Untested ideas live in their own chapter, apart from the field evidence. */
.applications-section { padding-block: 2rem; background: var(--background); }
.applications-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.application { min-width: 0; padding: 1.5rem; border: 0; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--border), 0 1px 2px 0 rgb(0 0 0 / 5%); }
.application-visual { display: block; width: 100%; height: auto; max-height: 240px; margin: 0 auto 1.5rem; color: var(--muted-foreground); }
.application h3 { margin-bottom: .5rem; }
.application .application-status { color: var(--foreground); font: 500 .875rem/1.25rem var(--font-body); margin-bottom: 1rem; }
.application>p:last-child { max-width: 52ch; }

/* A repeatable brief makes the demonstrated capability and recording explicit. */
.project-brief { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.project-brief h3 { margin-bottom: .375rem; }
.project-brief p { font: 400 .875rem/1.25rem var(--font-body); max-width: 65ch; }
.project-player .project-name { font: 400 .875rem/1.25rem var(--font-body); color: var(--muted-foreground); }
.project-player .project-story .platform-photo figcaption { font: 400 .75rem/1rem var(--font-body); }

/* Original square PNGs are framed in SVG without changing their pixels. */
.model-image>.product-artwork { display: block; width: 64%; height: auto; max-width: 100%; max-height: 225px; overflow: hidden; flex: none; }
.model-image[data-size=antenna]>.product-artwork { width: 64%; max-height: 260px; }
.model-image[data-size=waterproof]>.product-artwork { width: 67%; max-height: 235px; }
.model-image[data-size=medium]>.product-artwork { width: 82%; max-height: 275px; }
.model-image[data-size=large]>.product-artwork { width: 96%; max-height: 310px; }
.model-image>.product-artwork[hidden] { display: none; }
.model-render-status { color: var(--muted-foreground); font-size: .875rem; }

/* Match the stage's measured navy, with a quiet edge instead of a player box. */
#teledrive-station { background: #000c18; }
html[data-theme=light] #teledrive-station,
html[data-theme=light] #teledrive-station .section-heading>p { color: var(--media-foreground); }
.teledrive-media { background: transparent; border: 0; border-radius: 0; }
.teledrive-media video {
  aspect-ratio: 16/9;
  object-fit: contain;
  object-position: center;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 1%, #000 99%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent), linear-gradient(to bottom, transparent, #000 1%, #000 99%, transparent);
  mask-composite: intersect;
}
.teledrive-media video[controls], .teledrive-media video:focus-visible { -webkit-mask-image: none; mask-image: none; }

@media(max-width:600px) {
  .applications-grid { grid-template-columns: minmax(0,1fr); }
  .application { padding: 1.5rem; }
  .application-visual { max-height: 160px; margin-bottom: 1rem; }
  .project-brief { gap: 1rem; }
}
