/* Marvin page: "Marvin speeds your development for Land / Air / Sea" */
.vehicles { background: linear-gradient(180deg, #fff 0%, #edf3f6 100%); border-bottom: 1px solid var(--color-line); }
.modes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1200px; }
.modes-title { margin: 0; font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.modes-word { font: inherit; letter-spacing: inherit; color: var(--color-accent); background: none; border: 0; padding: 0; cursor: pointer; border-bottom: .08em solid currentColor; display: inline-block; }
.modes-word:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; }
.modes-word.swap { animation: modes-word .45s ease; }
@keyframes modes-word { 0% { opacity: 0; transform: translateY(.25em); } 100% { opacity: 1; transform: none; } }
/* Stage: spotlit panel over a faint teal grid. Renders have baked-in white backgrounds, so multiply
   lets the panel show through them and the vehicle sits on the stage instead of a white box. */
.modes-stage { position: relative; aspect-ratio: 16 / 10; overflow: hidden; isolation: isolate; border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 55% 50% at 50% 52%, #fff 0%, rgba(255,255,255,.85) 45%, rgba(255,255,255,0) 80%),
    linear-gradient(rgba(0,120,138,.09) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(0,120,138,.09) 1px, transparent 1px) 0 0 / 28px 28px,
    #e8f0f4; }
.modes-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 9%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(18,26,40,.22), rgba(18,26,40,0)); pointer-events: none; }
.modes-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; transform: translateX(28px) scale(.97); transition: opacity .6s ease, transform .9s cubic-bezier(.2,.7,.2,1); z-index: 1; }
.modes-scene.on { opacity: 1; transform: none; }
@media (max-width: 800px) { .modes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .modes-scene { transition: none; transform: none; } .modes-word.swap { animation: none; } }

/* The hosted rover render has a thin black strip on its bottom edge; trim it (image sits letterboxed 5% top/bottom in the 16:10 stage). */
.modes-scene[data-mode="Land"] { clip-path: inset(0 0 6.5% 0); }

/* Marvin hero: aerial field photo behind the copy (shares .hero-video layout with the home page). */
.marvin-hero .mh-slide { object-position: 50% 40%; }
.marvin-hero .hv-shade { background: linear-gradient(180deg, rgba(18,26,40,.15) 0%, rgba(18,26,40,.35) 40%, rgba(18,26,40,.92) 100%), linear-gradient(90deg, rgba(18,26,40,.55) 0%, rgba(18,26,40,0) 60%); }
.marvin-hero .hv-copy .lede { max-width: 40rem; }
/* Mobile: photo fills the top of the hero with the drone centered, copy sits below on dark. */
@media (max-width: 700px) {
  .marvin-hero { padding-top: 80vw; min-height: 0; }
  .marvin-hero .mh-slide { height: 92vw; min-height: 340px; object-position: 51% 50%; }
  .marvin-hero .hv-shade { background: linear-gradient(180deg, rgba(18,26,40,0) 0%, rgba(18,26,40,0) max(56vw, 220px), rgba(18,26,40,1) max(92vw, 340px)); }
}