/* Research page (also loads home.css for the sensing explorer). */

.research-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.research-intro__lead { font-size: 1.1rem; color: var(--ink); font-weight: 550; }
.research-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.research-intro__grid h3 { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.research-intro__grid .i { color: var(--brand); }
.collage { margin: 0; padding: 12px; background: #fff; }
.collage img { border-radius: 10px; }
.collage figcaption { padding: 10px 4px 2px; font-size: .84rem; color: #4b5b6d; }

.robo-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.robo-tile { --r: #8b3fe0; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--r); background: var(--surface); color: var(--text); scroll-margin-top: calc(var(--header-h) + 24px); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.robo-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.robo-tile:target { box-shadow: 0 0 0 3px var(--r), var(--shadow); }
.robo-tile__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: color-mix(in srgb, var(--r) 14%, var(--surface)); color: var(--r); }
.robo-tile__icon .i { width: 18px; height: 18px; }
.robo-tile__title { font-weight: 750; color: var(--ink); font-size: .92rem; line-height: 1.3; }
.robo-tile__desc { font-size: .76rem; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.robo-tile__n { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; padding-top: 4px; font-size: .74rem; color: var(--r); font-weight: 600; }
.demo { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0; overflow: hidden; }
.demo__stage { position: relative; min-height: 380px; background: #eef1f4; display: grid; place-items: center; }
.demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.demo__stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(11, 31, 51, .25)); pointer-events: none; }
.demo__launch { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: #8b3fe0; color: #fff; font-size: 1rem; font-weight: 750; box-shadow: 0 10px 30px -8px rgba(139, 63, 224, .6); transition: transform .2s ease, box-shadow .2s ease; }
.demo__launch:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 0 6px rgba(139, 63, 224, .18), 0 14px 34px -8px rgba(139, 63, 224, .7); }
.demo__badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(6, 13, 22, .7); color: #fff; font: 700 .7rem/1.4 var(--mono); letter-spacing: .1em; }
.demo__dot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: demo-pulse 1.6s infinite; }
@keyframes demo-pulse { 70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
.demo__frame { position: relative; z-index: 3; width: 100%; height: 780px; border: 0; background: var(--surface); }
.demo__stage.is-live { display: block; min-height: 0; background: var(--surface); }
.demo__stage.is-live::after, .demo__stage.is-live .demo__poster, .demo__stage.is-live .demo__launch, .demo__stage.is-live .demo__badge { display: none; }
.demo__text { padding: 22px 24px; border-left: 1px solid var(--line); }
.demo__text h3 { font-size: 1.15rem; margin-bottom: 8px; }
.demo__text p { font-size: .9rem; }
.demo__steps { margin: 0; padding-left: 18px; font-size: .88rem; color: var(--text); }
.demo__steps li { margin-bottom: 4px; }
@media (max-width: 1100px) { .robo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } .demo { grid-template-columns: 1fr; } .demo__text { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 640px) { .robo-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .demo__stage { min-height: 240px; } .demo__frame { height: 760px; } }
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.theme { display: flex; flex-direction: column; padding: 22px; }
.theme__head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.theme__head h3 { margin: 0; font-size: 1.1rem; }
.theme__icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.theme__icon .i { width: 22px; height: 22px; }
.theme__stats { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 0; margin-bottom: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.theme__stats b { color: var(--ink); font-size: 1.05rem; margin-right: 2px; }
.theme__people { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 12px; padding: 0; }
.theme__people li { margin-right: -8px; }
.theme__people img { width: 40px; height: 40px; object-fit: cover; object-position: 50% 25%; border-radius: 50%; border: 2px solid var(--surface); transition: transform .15s; }
.theme__people a:hover img { transform: translateY(-3px); }
.theme h4 { margin: 10px 0 6px; font: 650 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.theme__list { list-style: none; margin: 0; padding: 0; }
.theme__list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.theme__more { margin-top: auto; padding-top: 14px; font-size: .9rem; }

@media (max-width: 1000px) { .research-intro { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .research-intro__grid { grid-template-columns: 1fr; } .themes { grid-template-columns: 1fr; } }
