/* ===================================================================
   SeNSE Lab — look & feel refresh (loaded AFTER style.css)
   Indigo + gold palette, matching Ayon's personal website.
   Only restyles existing classes; page structure is unchanged.
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geomini&family=IBM+Plex+Mono:wght@400;500;600;700&display=swap');

:root {
    --accent: #2b197c;        /* deep indigo */
    --accent-deep: #20105f;
    --accent-warm: #9a3433;   /* warm red for emphasis */
    --accent-gold: #b88a2e;   /* gold */
    --gold-bright: #FFC300;
    --bg-page: #FDF6ED;
    --bg-soft: #fffaf4;
    --line: #dfe3f4;
    --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
    --font-diagram: 'Geomini', 'Roboto', sans-serif;
}

html,
body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-page);
}

/* ---- Navbar: continuous white, no boundary ---- */
.top-container-navbar {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-radius: 0;
    border-bottom: none;
    box-shadow: none;
    margin-bottom: 6px;
    padding: 2px 14px;
}

.top-container-navbar::after {
    position: absolute;
    right: 50%;
    bottom: -12px;
    width: 100vw;
    height: 12px;
    background: linear-gradient(to bottom, rgba(86, 67, 57, 0.15), rgba(86, 67, 57, 0.05) 48%, transparent 100%);
    content: "";
    pointer-events: none;
    transform: translateX(50%);
}

/* let the white flow edge-to-edge behind the navbar */
body {
    background: linear-gradient(to bottom, #ffffff 0px, #ffffff 96px, #FDF6ED 96px);
}

nav ul {
    gap: 10px;
    padding: 5px;
    font-size: 22px;
}

nav ul li a {
    position: relative;
    color: #703b3b;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

nav ul li a:hover {
    background: #f7a5a5;
    color: #4b2828;
    transform: translateY(-2px);
    box-shadow: 0 7px 16px rgba(112, 59, 59, 0.16);
}

nav ul li a.active {
    background: #703b3b;
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(112, 59, 59, 0.24);
}

nav ul li a.active:hover {
    background: #f7a5a5;
    color: #4b2828;
}

.top-container-navbar .navbar-brand {
    padding: 6px 8px;
}

.top-container-navbar .navbar-brand img {
    height: 72px;
}

/* ---- Main containers ---- */
.top-container {
    background-color: transparent;
}

/* ---- Buttons (venue chips) ---- */
.btn {
    background-color: #455a64;
    color: #ffffff;
    border-radius: 999px;
    font-size: 14px;
    padding: 0.32rem 0.7rem;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(55, 71, 79, 0.16);
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #b2dfdb;
    color: #263238;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(55, 71, 79, 0.18);
}

/* ---- Cards ---- */
.card, .home_card {
    border-radius: 14px;
    border: 1px solid var(--line);
}

.home_card {
    box-shadow: 0 10px 26px rgba(31, 16, 95, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home_card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 16, 95, 0.18);
}

/* ---- Featured works: a single framed gallery with compact cards ---- */
.feature-section-wrap {
    box-sizing: border-box;
    background: transparent;
    padding: 62px 14px 30px;
}

.feature-showcase {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    padding: 42px 26px 27px;
    border: 2px solid #acbfa4;
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: 0 14px 34px rgba(83, 68, 55, 0.11);
}

.feature-showcase-title {
    position: absolute;
    top: -23px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    max-width: calc(100% - 36px);
    box-sizing: border-box;
    margin: 0;
    padding: 10px 21px;
    border: 2px solid #acbfa4;
    border-radius: 6px;
    background: #acbfa4;
    color: #29372b;
    font-family: var(--font-diagram);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 7px 16px rgba(92, 116, 84, 0.24);
    transform: translateX(-50%);
}

.feature-showcase-title i {
    flex: 0 0 auto;
    color: #703b3b;
}

.feature-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 280px));
    justify-content: center;
    gap: 18px;
    padding: 7px 0 0;
}

.section-break {
    width: calc(100% - 12px);
    max-width: 1288px;
    margin: 42px auto 0;
    border: 0;
    border-top: 1px solid #cfd8dc;
}

.sponsors-section {
    box-sizing: border-box;
    background: #FDF6ED;
    padding: 18px 14px 16px;
}

.sponsors-thanks {
    margin: 0 0 13px;
    color: #703b3b;
    font-size: 23px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
}

.sponsors-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 14px;
    border: 1px solid #ddd1c7;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 13px 30px rgba(83, 68, 55, 0.12), 0 2px 7px rgba(83, 68, 55, 0.06);
}

.sponsors-row .funding-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    min-width: 0;
    padding: 2px;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sponsor-logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: 74px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.funding-link:hover .sponsor-logo {
    transform: scale(1.08);
}

.sponsors-row .funding-link:hover {
    background: #fffaf4;
    transform: translateY(-2px);
}

@media (max-width: 1100px) {
    .feature-row { grid-template-columns: repeat(3, minmax(0, 280px)); }
}

@media (max-width: 900px) {
    .feature-row { grid-template-columns: repeat(2, minmax(0, 280px)); }

    .sponsors-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 760px) {
    .feature-section-wrap {
        padding-top: 70px;
    }

    .feature-showcase {
        padding-top: 54px;
    }

    .feature-showcase-title {
        top: -35px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 9px 14px;
        font-size: 17px;
        white-space: normal;
    }
}

@media (max-width: 580px) {
    .feature-section-wrap {
        padding: 72px 9px 24px;
    }

    .feature-showcase {
        padding: 55px 13px 19px;
    }

    .feature-showcase-title {
        top: -42px;
        width: calc(100% - 24px);
        max-width: none;
        padding: 9px 12px;
        font-size: 16px;
        line-height: 1.25;
        white-space: normal;
    }

    .feature-row { grid-template-columns: minmax(0, 300px); }

    .sponsors-section {
        padding-right: 9px;
        padding-left: 9px;
    }

    .sponsors-thanks {
        margin-bottom: 11px;
        font-size: 19px;
    }

    .sponsors-row {
        gap: 6px;
        padding: 12px;
    }

    .sponsor-logo {
        height: 70px;
    }
}

.feature-card {
    position: relative;
    cursor: default;
    width: 100%;
    max-width: 280px;
    justify-self: center;
    margin-top: 0;
    overflow: hidden;
    background: #fdfefe;
    border-color: #dce5e3;
    box-shadow: 0 10px 24px rgba(55, 71, 79, 0.10);
}

.feature-card:hover {
    box-shadow: 0 15px 30px rgba(55, 71, 79, 0.16);
}

.feature-card .card-img-top { display: block; }

/* Thumbnail artwork remains visible beneath a restrained translucent caption. */
.feature-thumb {
    position: relative;
    display: block;
    aspect-ratio: 8 / 5;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
    background: #f7faf9;
}

.feature-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.feature-thumb:hover img {
    transform: scale(1.05);
}

/* image carries only the system name + venue, set artistically */
.thumb-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 36px 14px 12px 14px;
    background: linear-gradient(to top, rgba(25, 34, 36, 0.72) 0%, rgba(25, 34, 36, 0.38) 56%, rgba(25, 34, 36, 0) 100%);
    color: #f8faf9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.62);
}

.sys-name {
    display: block;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 27px;
    font-weight: bold;
    letter-spacing: 0.015em;
    line-height: 1.15;
}

.sys-name--project {
    display: table;
    padding: 5px 10px 6px 11px;
    border-left: 4px solid var(--accent-gold);
    border-radius: 0 3px 0 0;
    background: rgba(20, 24, 25, 0.82);
    color: #ffffff;
    text-shadow: none;
}

.sys-venue {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px 3px 9px;
    border-left: 4px solid #681f2a;
    border-radius: 0 3px 3px 0;
    background: rgba(255, 255, 255, 0.94);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #263238;
    text-shadow: none;
}

.sys-name--project + .sys-venue {
    display: table;
    margin-top: 0;
    border-radius: 0 0 3px 0;
}

.feature-card .card-block {
    margin-top: 0;
    min-height: 51px;
    box-sizing: border-box;
    padding: 9px 10px 8px;
    border-top: 0;
    background:
        linear-gradient(90deg, #72584b 0%, #b88a2e 48%, #d9c8b8 100%) top / 100% 2px no-repeat,
        linear-gradient(118deg, #fffdf8 0%, #f7efe5 58%, #eee1d4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.feature-card .card-block h4 {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
    line-height: 1;
}

.feature-card .card-block .btn {
    margin: 0;
    padding: 6px 9px;
    border: 1px solid #5f6888;
    border-radius: 6px;
    background: #767f9e;
    color: #ffffff;
    font-family: var(--font-diagram);
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    box-shadow: 0 3px 7px rgba(77, 85, 118, 0.22);
}

.feature-card .card-block .btn:hover,
.feature-card .card-block .btn:focus-visible {
    border-color: #4f5879;
    background: #5f6888;
    color: #ffffff;
    outline: none;
    box-shadow: 0 5px 10px rgba(77, 85, 118, 0.28);
}

.feature-card .card-block .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 17px;
}

/* Status chips sit over the thumbnail without competing with the caption. */
.feature-card .card-meta-row {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    margin: 0;
}

.card-meta {
    display: inline-block;
    background: rgba(238, 241, 255, 0.94);
    border: 1px solid var(--line-strong, #c8cee8);
    color: var(--accent);
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 3px 9px rgba(20, 24, 25, 0.18);
}

.card-meta.gold {
    background: rgba(255, 248, 226, 0.95);
    border-color: var(--accent-gold);
    color: #7c5a14;
}

.card-meta.warm {
    background: rgba(154, 52, 51, 0.10);
    border-color: var(--accent-warm);
    color: var(--accent-warm);
}

.feature-title {
    display: block;
    color: var(--accent-deep);
    font-weight: bold;
    font-size: 15.5px;
    line-height: 1.3;
    margin: 8px 8px 4px;
}

.feature-sub {
    display: block;
    color: #5a5e72;
    font-size: 13px;
    line-height: 1.35;
    margin: 0 8px 6px;
}

.badge-type {
    display: inline-block;
    background: var(--accent-gold);
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 2px 9px;
    border-radius: 999px;
    margin: 8px 0 0 8px;
}

.badge-type.talk { background: var(--accent-warm); }
.badge-type.demo { background: #1b7a5a; }

/* ---- Projects: portfolio, active thrusts, and recruitment ---- */
.projects-shell {
    box-sizing: border-box;
    padding: 18px 6px 54px;
}

.projects-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 16, 95, 0.10);
}

.thrusts-panel {
    min-width: 0;
    padding: 30px;
    grid-column: 1;
    grid-row: 1;
    order: 1;
    border-right: 1px solid var(--line);
}

.research-support-column {
    min-width: 0;
    grid-column: 2;
    grid-row: 1;
    order: 2;
}

.funded-panel {
    padding: 30px;
    border-bottom: 1px solid var(--line);
}

.projects-overview .section-heading,
.skills-section .section-heading {
    margin-top: 0;
}

.direction-copy,
.thrusts-intro,
.skills-intro {
    color: #455a64;
    font-size: 16px;
    line-height: 1.62;
}

.direction-copy {
    margin: 0;
}

.funding-group-label {
    margin: 18px 0 0;
    color: #9a3433;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.funding-group-label--past {
    margin-top: 28px;
    color: #607d8b;
}

.funded-project {
    position: relative;
    padding: 15px 0 15px 88px;
    border-top: 1px solid #eceff1;
}

.funded-project:first-of-type {
    margin-top: 7px;
}

.project-year {
    position: absolute;
    top: 17px;
    left: 0;
    color: #7c4a4d;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 700;
}

.funded-project h4 {
    margin: 0;
    color: #263238;
    font-size: 15px;
    line-height: 1.4;
}

.funded-project p {
    margin: 5px 0 0;
    color: #607d8b;
    font-size: 12.5px;
    line-height: 1.45;
}

.funded-project .project-hiring {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 9px;
    color: #3f3a22;
    font-size: 12.75px;
    font-weight: 600;
    line-height: 1.45;
}

.funded-project .project-hiring > span:last-child {
    padding: 2px 7px;
    border-radius: 3px;
    background: #fff09a;
    box-shadow: inset 0 -1px 0 rgba(164, 125, 0, 0.2);
}

.hiring-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: #35a853;
    animation: hiring-pulse 3.6s ease-in-out infinite;
}

@keyframes hiring-pulse {
    0%,
    100% {
        opacity: 0.48;
        box-shadow: 0 0 0 0 rgba(53, 168, 83, 0);
    }

    50% {
        opacity: 1;
        box-shadow:
            0 0 0 5px rgba(53, 168, 83, 0.13),
            0 0 11px rgba(53, 168, 83, 0.48);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hiring-dot {
        animation: none;
        opacity: 0.9;
        box-shadow: 0 0 0 3px rgba(53, 168, 83, 0.13);
    }
}

.funded-project--past .project-year {
    color: #78909c;
}

.thrusts-intro {
    margin: 0;
}

.thrust-list {
    margin-top: 22px;
}

.research-stack {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #ffbe91;
    border-radius: 8px;
    background: #ffffff;
    font-family: var(--font-diagram);
}

.stack-external {
    padding: 0 4px;
}

.stack-users {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.stack-actor {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid #2d3c59;
    border-radius: 6px;
    background: #2d3c59;
}

.stack-actor > i {
    flex: 0 0 34px;
    color: #ffddb0;
    font-size: 25px;
    text-align: center;
}

.stack-actor span,
.stack-layer-copy {
    min-width: 0;
}

.stack-actor b,
.stack-actor small,
.stack-layer-copy b,
.stack-layer-copy small {
    display: block;
}

.stack-actor b {
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 15px;
}

.stack-actor small {
    margin-top: 3px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.35;
}

.stack-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 2px;
}

.stack-flow-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 66px;
    padding: 0 8px;
    font-size: 12.5px;
    font-weight: 750;
    line-height: 1.3;
    text-align: center;
}

.stack-flow-item i {
    position: relative;
    display: inline-block;
    flex: 0 0 26px;
    width: 26px;
    height: 48px;
    margin-right: 8px;
    font-size: 0;
}

.stack-flow-item i::before {
    position: absolute;
    left: 50%;
    width: 4px;
    height: 36px;
    border-radius: 3px;
    content: "";
    transform: translateX(-50%);
}

.stack-flow-item i::after {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.stack-flow-item--down i::before {
    top: 0;
    background: #bd4444;
}

.stack-flow-item--down i::after {
    bottom: 1px;
    border-top: 11px solid #bd4444;
}

.stack-flow-item--up i::before {
    bottom: 0;
    background: #576a8f;
}

.stack-flow-item--up i::after {
    top: 1px;
    border-bottom: 11px solid #576a8f;
}

.stack-flow-item--down {
    color: #bd4444;
}

.stack-flow-item--up {
    color: #576a8f;
}

.stack-flow--interface {
    max-width: calc(100% - 24px);
    margin: 0 auto;
}

.stack-flow--interface .stack-flow-item--down {
    transform: translateY(-6px);
}

.stack-system {
    position: relative;
    padding: 35px 13px 13px;
    border: 2px solid #bd4444;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(55, 71, 79, 0.10);
}

.stack-system-label {
    position: absolute;
    top: -17px;
    left: 16px;
    padding: 7px 14px;
    border: 2px solid #bd4444;
    border-radius: 4px;
    background: #bd4444;
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: 0 5px 12px rgba(189, 68, 68, 0.24);
}

.stack-system-label i {
    margin-right: 5px;
    color: #ffddb0;
}

.stack-layer {
    display: grid;
    grid-template-columns: 30px 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid;
    border-radius: 5px;
}

.stack-level {
    color: #ffffff;
    font-family: var(--font-diagram);
    font-size: 13px;
    font-weight: 700;
}

.stack-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: #263238;
    font-size: 17px;
}

.stack-layer-copy b {
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 15.5px;
    line-height: 1.3;
}

.stack-layer-copy small {
    margin-top: 3px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.45;
}

.stack-layer--reasoning {
    border-color: #725f44;
    background: #a18d6d;
}

.stack-layer--edge {
    border-color: #725f44;
    background: #a18d6d;
}

.stack-model-tags,
.stack-sensor-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.stack-model-tags {
    margin-top: 7px;
}

.stack-sensor-list {
    gap: 6px;
}

.stack-model-tags span,
.stack-sensor-list span {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border: 1px solid rgba(84, 110, 122, 0.22);
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.78);
    color: #455a64;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
}

.stack-perception {
    padding: 12px;
    border: 1px solid #725f44;
    border-radius: 5px;
    background: #a18d6d;
}

.stack-perception-heading {
    display: grid;
    grid-template-columns: 30px 36px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
}

.stack-source-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 11px;
}

.stack-source {
    min-width: 0;
    padding: 10px;
    border: 1px solid;
    border-radius: 4px;
}

.stack-source--physical {
    border-color: #ffddb0;
    background: #fffce1;
}

.stack-source--twin {
    border-color: #9bcbea;
    background: #cfebff;
}

.stack-source p {
    position: relative;
    min-height: 32px;
    margin: 0 0 9px;
    padding-left: 28px;
}

.stack-source p > i {
    position: absolute;
    top: 2px;
    left: 0;
    width: 22px;
    color: #e47e4a;
    font-size: 20px;
    text-align: center;
}

.stack-source b,
.stack-source small {
    display: block;
}

.stack-source b {
    color: #263238;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.3;
}

.stack-source small {
    margin-top: 3px;
    color: #4f656d;
    font-size: 11px;
    line-height: 1.4;
}

.stack-sensor-list span {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.82);
    font-size: 11.5px;
    line-height: 1.3;
}

.stack-sensor-list i {
    margin-right: 5px;
    color: #e47e4a;
    font-size: 12.5px;
}

.stack-twin-link {
    margin: 9px 0 0;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.72);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.stack-twin-link i {
    margin-right: 5px;
    color: #e47e4a;
}

.thrust-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 24px 0;
    border-top: 1px solid #eceff1;
}

.thrust-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #37474f;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.thrust-item h3,
.skill-item h3 {
    margin: 2px 0 7px;
    color: #263238;
    font-size: 18px;
    line-height: 1.3;
}

.thrust-item p,
.skill-item p {
    margin: 0;
    color: #546e7a;
    font-size: 14.5px;
    line-height: 1.58;
}

.thrust-item p + p {
    margin-top: 12px;
}

.thrust-item .thrust-transition {
    padding-top: 2px;
    color: #6d4c41;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
}

.thrust-item a {
    color: #3949ab;
    font-weight: 700;
    text-decoration: none;
}

.thrust-item a:hover {
    color: #00796b;
    text-decoration: underline;
}

.thrust-item .current-direction {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 3px solid #80cbc4;
    border-radius: 0 6px 6px 0;
    background: #e0f2f1;
    color: #37474f;
}

.thrust-loop-summary {
    margin: 22px 0 0;
    padding: 15px 17px;
    border-left: 4px solid #8a343d;
    border-radius: 0 6px 6px 0;
    background: #f7eeee;
    color: #455a64;
    font-size: 14.5px;
    line-height: 1.62;
}

.skills-section {
    margin-top: 28px;
    padding: 30px;
    background: #ffffff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.skills-intro {
    margin: 0 0 22px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-item {
    min-width: 0;
    padding: 4px 24px 8px;
    border-left: 1px solid #cfd8dc;
}

.skill-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 9px;
    border-radius: 50%;
    background: #d1c4e9;
    color: #37474f;
    font-size: 17px;
}

.skills-note {
    margin: 24px 0 0;
    padding: 12px 15px;
    border-left: 4px solid #ffcc80;
    border-radius: 0 6px 6px 0;
    background: #fff3e0;
    color: #455a64;
    font-size: 14.5px;
    line-height: 1.55;
}

.skills-note i {
    margin-right: 7px;
    color: #ef6c00;
}

.join-panel {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-top: 28px;
    padding: 25px 26px;
    border: 1px solid rgba(184, 138, 46, 0.48);
    border-left: 5px solid var(--accent-gold);
    border-radius: 12px;
    background: linear-gradient(135deg, #fffdf6 0%, #fdf3da 100%);
    color: #3c4054;
    box-shadow: 0 9px 22px rgba(184, 138, 46, 0.15);
}

.join-title-row {
    display: flex;
    align-items: center;
    gap: 11px;
}

.join-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #ffffff;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(184, 138, 46, 0.30);
}

.join-kicker {
    display: block;
    margin-bottom: 1px;
    color: #8f3438;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.join-panel h2 {
    margin: 0;
    color: #263238;
    font-size: 24px;
    line-height: 1.1;
}

.join-panel p {
    margin: 0;
    color: #4f5366;
    font-size: 14px;
    line-height: 1.55;
}

.join-paths {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.join-paths span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(184, 138, 46, 0.40);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    color: #5d5360;
    font-size: 11.5px;
    font-weight: 700;
}

.join-paths i {
    color: var(--accent-gold);
}

.join-panel .join-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 1px 0 0;
    padding: 9px 17px;
    background: #455a64;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
}

.join-panel .join-cta:hover {
    background: var(--accent-gold);
    color: #ffffff;
}

.join-panel .join-cta i {
    transition: transform 0.2s ease;
}

.join-panel .join-cta:hover i {
    transform: translateX(4px);
}

.research-support-column .skills-section {
    margin: 0;
    padding: 23px 26px;
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.research-support-column .skills-intro {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.45;
}

.research-support-column .skills-grid {
    grid-template-columns: 1fr;
}

.research-support-column .skill-item,
.research-support-column .skill-item:first-child {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #cfd8dc;
    border-left: 0;
}

.research-support-column .skill-item:first-child {
    border-top: 0;
}

.research-support-column .skill-icon {
    grid-row: 1 / span 2;
    width: 30px;
    height: 30px;
    margin: 1px 0 0;
    font-size: 14px;
}

.research-support-column .skill-item h3 {
    margin: 0 0 3px;
    font-size: 15.5px;
}

.research-support-column .skill-item p {
    font-size: 14px;
    line-height: 1.52;
}

.research-support-column .skills-note {
    margin: 11px 0 0;
    padding: 9px 11px;
    border-left-width: 3px;
    font-size: 12.5px;
    line-height: 1.45;
}

.research-support-column .join-panel {
    margin: 18px;
    padding: 24px;
}

@media (max-width: 900px) {
    .projects-overview {
        grid-template-columns: 1fr;
    }

    .thrusts-panel {
        grid-column: auto;
        grid-row: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .research-support-column {
        grid-column: auto;
        grid-row: auto;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-item,
    .skill-item:first-child {
        padding: 18px 0;
        border-left: 0;
        border-top: 1px solid #cfd8dc;
    }

    .skill-item:first-child {
        border-top: 0;
    }

    .join-panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 580px) {
    .projects-shell {
        padding-top: 8px;
    }

    .funded-panel,
    .thrusts-panel,
    .research-support-column .skills-section,
    .research-support-column .join-panel {
        padding: 22px 18px;
    }

    .thrust-item {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    .thrust-index {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .research-stack {
        padding: 12px;
    }

    .stack-users {
        grid-template-columns: 1fr;
    }

    .stack-flow {
        gap: 5px;
        padding: 6px 0;
    }

    .stack-flow--interface {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .stack-flow--interface .stack-flow-item--down {
        transform: translateY(-4px);
    }

    .stack-flow-item {
        min-height: 56px;
        padding: 0 2px;
        font-size: 11px;
    }

    .stack-flow-item i {
        margin-right: 5px;
        font-size: 0;
    }

    .stack-system {
        padding: 40px 8px 8px;
    }

    .stack-system-label {
        right: 8px;
        left: 8px;
        font-size: 12px;
        text-align: center;
    }

    .stack-layer,
    .stack-perception-heading {
        grid-template-columns: 24px 30px minmax(0, 1fr);
        gap: 7px;
        padding: 10px 8px;
    }

    .stack-icon {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .stack-layer-copy b {
        font-size: 14.5px;
    }

    .stack-layer-copy small {
        font-size: 11px;
    }

    .stack-perception {
        padding: 9px;
    }

    .stack-perception-heading {
        padding: 0;
    }

    .stack-source-grid {
        grid-template-columns: 1fr;
    }

    .join-panel .join-cta {
        white-space: normal;
    }

    .funded-project {
        padding-left: 0;
    }

    .project-year {
        position: static;
        display: block;
        margin-bottom: 5px;
    }
}

/* ---- Highlights: quiet circular news feed ---- */
.highlights-card {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(43, 25, 124, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 249, 255, 0.96)),
        radial-gradient(ellipse at 8% 0%, rgba(184, 138, 46, 0.14), transparent 46%);
}

.highlights-card::before,
.highlights-card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    pointer-events: none;
}

.highlights-card::before {
    display: none;
}

.highlights-card::after {
    display: none;
}

.highlights-viewport {
    position: relative;
    max-height: 760px;
    overflow-y: auto;
    padding: 20px 12px 8px 20px !important;
    scrollbar-width: thin;
    scrollbar-color: #90a4ae #eceff1;
}

.highlights-viewport::-webkit-scrollbar {
    width: 8px;
}

.highlights-viewport::-webkit-scrollbar-track {
    background: #eceff1;
    border-radius: 999px;
}

.highlights-viewport::-webkit-scrollbar-thumb {
    background: #90a4ae;
    border: 2px solid #eceff1;
    border-radius: 999px;
}

.highlights-viewport::-webkit-scrollbar-thumb:hover {
    background: #607d8b;
}

.highlights-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.highlights-list li {
    position: relative;
    margin: 0 0 8px 0;
    padding: 10px 12px 10px 49px;
    border-left: 3px solid rgba(184, 138, 46, 0.62);
    border-radius: 0 10px 10px 0;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 18px rgba(31, 16, 95, 0.06);
    color: #3c4054;
    font-size: 15.5px;
    line-height: 1.48;
}

.highlights-list li::before {
    position: absolute;
    top: 10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: 1px solid #ded3cc;
    border-radius: 6px;
    background: #f7f2ef;
    color: #703b3b;
    content: "\f0a1";
    font-family: FontAwesome;
    font-size: 13px;
    line-height: 1;
    box-shadow: 0 3px 8px rgba(55, 71, 79, 0.08);
}

.highlights-list li > br:last-child {
    display: none;
}

.highlight-hidden {
    display: none !important;
}

.highlights-list li[data-highlight-type="appointment"]::before {
    color: #66708f;
    content: "\f0b1";
}

.highlights-list li[data-highlight-type="thesis"]::before,
.highlights-list li[data-highlight-type="education"]::before {
    color: #66708f;
    content: "\f19d";
}

.highlights-list li[data-highlight-type="award"]::before {
    color: #703b3b;
    content: "\f091";
}

.highlights-list li[data-highlight-type="talk"]::before {
    color: #703b3b;
    content: "\f130";
}

.highlights-list li[data-highlight-type="people"]::before {
    color: #66708f;
    content: "\f0c0";
}

.highlights-list li[data-highlight-type="patent"]::before {
    color: #703b3b;
    content: "\f0a3";
}

.highlights-list li[data-highlight-type="paper"]::before {
    color: #66708f;
    content: "\f0f6";
}

.highlights-list li[data-highlight-type="grant"]::before {
    color: #703b3b;
    content: "\f2b5";
}

.highlights-list li[data-highlight-type="media"]::before {
    color: #66708f;
    content: "\f1ea";
}

.highlights-list li[data-highlight-type="internship"]::before {
    color: #66708f;
    content: "\f0c3";
}

.highlights-list li b:first-child {
    color: var(--accent-warm) !important;
    font-size: 14px !important;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.highlights-list a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.highlights-list a:hover {
    color: var(--accent-warm);
    text-decoration: underline;
}

.highlights-filter-bar {
    position: relative;
    z-index: 4;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: calc(100% - 28px);
    min-height: 49px;
    box-sizing: border-box;
    margin: 38px 14px 12px;
    padding: 8px 9px;
    border: 1px solid #d9cec6;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 7px 18px rgba(83, 68, 55, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.highlights-filter-bar::before {
    display: none;
}

.highlights-filters {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}

.highlight-filter {
    --filter-bg: #f7f2ef;
    --filter-color: #703b3b;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    padding: 0;
    border: 1px solid #ded3cc;
    border-radius: 6px;
    background: var(--filter-bg);
    color: var(--filter-color);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(83, 68, 55, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-filter[data-highlight-filter="paper"],
.highlight-filter[data-highlight-filter="appointment"],
.highlight-filter[data-highlight-filter="academic"],
.highlight-filter[data-highlight-filter="people"],
.highlight-filter[data-highlight-filter="media"] {
    --filter-bg: #eef0f5;
    --filter-color: #66708f;
}

.highlight-filter[data-highlight-filter="patent"],
.highlight-filter[data-highlight-filter="award"],
.highlight-filter[data-highlight-filter="talk"],
.highlight-filter[data-highlight-filter="grant"] {
    --filter-bg: #f7eded;
    --filter-color: #703b3b;
}

.highlight-filter:hover,
.highlight-filter:focus-visible {
    border-color: var(--filter-color);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(83, 68, 55, 0.14);
}

.highlight-filter.active {
    border-color: var(--filter-color);
    background: var(--filter-color);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(83, 68, 55, 0.20);
}

.highlight-filter::after {
    position: absolute;
    bottom: calc(100% + 7px);
    left: 50%;
    z-index: 8;
    padding: 5px 7px;
    border-radius: 4px;
    background: #263238;
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 5px 12px rgba(38, 50, 56, 0.22);
    transform: translate(-50%, 4px);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.highlight-filter:hover::after,
.highlight-filter:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

.highlight-filter:first-child::after {
    left: 0;
    transform: translate(0, 4px);
}

.highlight-filter:first-child:hover::after,
.highlight-filter:first-child:focus-visible::after {
    transform: translate(0, 0);
}

.highlights-filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 45px;
    height: 31px;
    flex: 0 0 auto;
    padding: 0 8px;
    border: 1px solid #d9cec6;
    border-radius: 6px;
    background: #ffffff;
    color: #703b3b;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(83, 68, 55, 0.07);
}

.highlights-filter-count i {
    color: #66708f;
}

@media (max-width: 520px) {
    .highlights-filter-bar {
        align-items: flex-end;
        width: calc(100% - 18px);
        margin-right: 9px;
        margin-left: 9px;
        padding: 8px;
    }

    .highlights-filters {
        gap: 5px;
    }

    .highlight-filter {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .highlights-filter-count {
        min-width: 40px;
        height: 29px;
        padding: 0 6px;
    }
}

/* ---- Section headings: gold bar ---- */
.section-heading { color: var(--accent-deep); }
.section-heading::before { background-color: var(--accent-gold); }

/* ---- Team cards ---- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.team-member {
    min-width: 0;
    max-width: none;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    background: #ffffff;
    border: 1px solid #cfd8dc;
    border-radius: 8px;
    box-shadow: 0 7px 18px rgba(55, 71, 79, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    background: #ffffff;
    border-color: #b0bec5;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(55, 71, 79, 0.16);
}

.team-card > img {
    display: block;
    width: 100%;
    height: 188px;
    margin: 0;
    object-fit: cover;
    object-position: center 22%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.student-info {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin: 0;
    padding: 16px 15px 14px;
    text-align: left;
}

.student-name-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
}

.student-name-row h3 {
    margin: 0;
    color: #263238;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.student-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: #e0f2f1;
    color: #00695c;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.student-home-link:hover {
    background: #b2dfdb;
    color: #263238;
    transform: translateY(-1px);
}

.student-details {
    display: grid;
    gap: 9px;
    margin: 14px 0 8px;
    color: #546e7a;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
}

.student-details > span {
    position: relative;
    display: block;
    padding-left: 25px;
}

.student-details i {
    position: absolute;
    top: 3px;
    left: 0;
    width: 18px;
    color: #7e57c2;
    text-align: center;
}

.student-details a {
    color: #00695c;
    font-weight: 600;
    text-decoration: none;
}

.student-details a:hover {
    text-decoration: underline;
}

.award-ribbon {
    display: block;
    margin: 8px 0 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9E3B3B;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.35;
}

.award-ribbon i {
    margin-right: 5px;
    color: inherit;
}

.award-ribbon a {
    color: inherit;
    text-decoration: none;
}

.award-ribbon a:hover {
    color: #7f2f2f;
    text-decoration: underline;
}

@media (max-width: 1100px) {
    .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
    .team-grid { grid-template-columns: 1fr; }
    .team-card > img { height: 240px; }
}

/* ---- Team: collapsible publications ---- */
.pub-fold {
    margin: 8px 12px 6px 12px;
    text-align: center;
}

.pub-fold summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    background: #eef1ff;
    border: 1px solid var(--line);
    color: var(--accent);
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s;
}

.pub-fold summary::-webkit-details-marker { display: none; }

.pub-fold summary::after {
    content: " \25BE";
    font-size: 12px;
}

.pub-fold[open] summary {
    background: var(--accent);
    color: #ffffff;
}

.pub-fold[open] summary::after { content: " \25B4"; }

.pub-fold summary:hover { background: var(--accent); color: #ffffff; }

.pub-fold-body { margin-top: 10px; }

/* ---- Team: year + name two-column lists (MTP / BTP / interns) ---- */
.alumni-list {
    columns: 2;
    column-gap: 44px;
    font-size: 16.5px;
    color: #3c4054;
    padding: 2px 6px;
}

.alumni-list p {
    break-inside: avoid;
    margin: 0 0 10px 0;
    line-height: 1.45;
}

.alumni-list .yr {
    color: var(--accent-gold);
    font-weight: bold;
    margin-right: 8px;
}

@media (max-width: 800px) {
    .alumni-list { columns: 1; }
}

/* ---- Photo gallery (Lab Moments) ---- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31, 16, 95, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-item:hover img { transform: scale(1.07); }

.gallery-cap {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 26px 10px 8px 10px;
    background: linear-gradient(to top, rgba(32, 16, 95, 0.92), transparent);
    color: #ffffff;
    font-size: 13.5px;
    line-height: 1.3;
}

/* ---- Hero: welcome + research figure (left), highlights (right) ---- */
.hero-flex {
    display: flex;
    align-items: stretch;
    gap: 22px;
    padding: 4px 6px;
}

.hero-left {
    flex: 1.15;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 12px 30px rgba(31, 16, 95, 0.10);
}

.hero-title {
    color: var(--accent-deep);
    font-size: 25px;
    line-height: 1.32;
    margin: 0 0 4px 0;
}

.hero-title::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    margin-top: 10px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(184, 138, 46, 0));
}

.hero-lede {
    font-size: 17.5px;
    line-height: 1.6;
    color: #3c4054;
    margin: 14px 0 0 0;
}

.hero-figure {
    display: block;
    width: 88%;
    margin: 16px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31, 16, 95, 0.10);
}

.hero-callout {
    position: relative;
    background: linear-gradient(135deg, #fffdf6, #fdf3da);
    border: 1px solid rgba(184, 138, 46, 0.45);
    border-left: 5px solid var(--accent-gold);
    border-radius: 14px;
    padding: 16px 18px 18px 18px;
    box-shadow: 0 8px 22px rgba(184, 138, 46, 0.14);
    color: #3c4054;
}

.callout-head {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-warm);
    font-size: 18.5px;
    font-weight: bold;
}

.callout-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: #ffffff;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(184, 138, 46, 0.35);
}

.callout-text {
    margin: 10px 0 12px 0;
    font-size: 15px;
    line-height: 1.55;
}

.callout-topics {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.topic-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    border: 1px solid rgba(184, 138, 46, 0.4);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #4f5366;
    width: fit-content;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.topic-chip:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 4px 12px rgba(184, 138, 46, 0.18);
}

.topic-chip i { color: var(--accent-gold); }

.callout-cta {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #767f9e;
    color: #ffffff !important;
    border-radius: 999px;
    padding: 9px 20px;
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(77, 85, 118, 0.28);
    transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.callout-cta:hover {
    background: #5f6888;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(77, 85, 118, 0.34);
}

.callout-cta i { transition: transform 0.25s; }
.callout-cta:hover i { transform: translateX(5px); }

.hero-right {
    flex: 1;
    display: flex;
    min-width: 0;
}

.hero-right .card {
    max-width: none;
    width: 100%;
    height: 100%;
    margin-top: 0;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(31, 16, 95, 0.10);
}

.hero-right .home_card:hover { transform: none; }

.hero-right .card-block {
    flex: 1;
    min-height: 0;
    max-height: 760px;
    overflow-y: auto;
}

.hero-right .highlights-viewport {
    overflow-y: auto;
    padding: 20px 12px 8px 20px !important;
}

/* ---- Group photo banner ---- */
.group-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin: 18px 6px 4px 6px;
    box-shadow: 0 12px 30px rgba(31, 16, 95, 0.14);
}

.group-banner img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center 30%;
}

@media (max-width: 900px) {
    .hero-flex { flex-direction: column; }
    .group-banner img { height: 200px; }
}

/* ---- Publications ---- */
.papers li b:first-child { color: var(--accent); }

.publications-page {
    box-sizing: border-box;
    padding: 24px 6px 54px;
}

.publication-count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border-radius: 6px;
    background: #e0f2f1;
    color: #00695c;
    font-size: 13px;
    font-weight: 800;
}

.publication-toolbar {
    padding: 18px 22px 20px;
    background: #f8fafb;
    border-top: 1px solid #cfd8dc;
    border-bottom: 1px solid #cfd8dc;
}

.publication-toolbar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 10px;
}

.publication-filter-label {
    display: block;
    margin: 0;
    color: #455a64;
    font-size: 13px;
    font-weight: 800;
}

.publication-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.publication-filter {
    padding: 7px 12px;
    border: 1px solid #c5cae9;
    border-radius: 999px;
    background: #e8eaf6;
    color: #3949ab;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.publication-filter:hover {
    background: #d1c4e9;
    border-color: #b39ddb;
    color: #263238;
    transform: translateY(-1px);
}

.publication-filter.active {
    background: #37474f;
    border-color: #37474f;
    color: #ffffff;
}

.papers .publication-list {
    display: grid;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0 6px;
    list-style: none;
}

.papers .publication-list > li {
    position: relative;
    margin: 0;
    padding: 19px 21px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #dfe3e6;
    border-left: 4px solid #80cbc4;
    border-radius: 8px;
    box-shadow: 0 5px 14px rgba(55, 71, 79, 0.08);
    color: #546e7a;
    font-size: 14.5px;
    line-height: 1.52;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.papers .publication-list > li:hover {
    border-color: #b0bec5;
    border-left-color: #7e57c2;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(55, 71, 79, 0.13);
}

.papers .publication-list .publication-code {
    display: inline-flex;
    margin: 0;
    padding: 4px 8px;
    border-radius: 5px;
    background: #eceff1;
    color: #37474f;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.papers .publication-list .publication-title {
    display: block;
    margin: 0 0 6px;
    color: #263238;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
}

.publication-authors {
    margin: 0 0 7px;
    color: #607d8b;
    font-size: 14px;
    font-style: italic;
    line-height: 1.45;
}

.publication-highlight {
    display: inline-flex;
    margin: 8px 6px 0 0;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fff3e0;
    color: #bf360c;
    font-size: 12px;
    font-weight: 800;
}

.publication-actions,
.publication-topics,
.publication-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.publication-meta-row {
    margin-bottom: 11px;
}

.publication-actions {
    margin-top: 12px;
}

.publication-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #455a64;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.publication-action:hover {
    background: #b2dfdb;
    color: #263238 !important;
    transform: translateY(-1px);
}

.publication-topics {
    margin: 0;
}

.publication-topic {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
}

.publication-topic--wireless-sensing { background: #dbeafe; color: #1e4f78; }
.publication-topic--multimodal-sensing { background: #ede7f6; color: #5e4485; }
.publication-topic--spectrum-sensing { background: #e8f5e9; color: #386641; }
.publication-topic--edge-ai { background: #fff3e0; color: #9a4d00; }
.publication-topic--uav-networks { background: #e0f2f1; color: #00695c; }
.publication-topic--localization-mapping { background: #fff8e1; color: #7a5b00; }
.publication-topic--wireless-networks { background: #eceff1; color: #455a64; }

.publication-patent {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 800;
    text-decoration: none;
}

.publication-patent--granted {
    background: #fce4ec;
    color: #9a3433;
}

.publication-patent--filed {
    background: #fff3e0;
    color: #9a4d00;
}

.publication-patent:hover {
    color: #263238;
    filter: brightness(0.97);
}

.publication-hidden {
    display: none !important;
}

@media (max-width: 700px) {
    .publication-toolbar {
        padding-left: 18px;
        padding-right: 18px;
    }

    .papers .publication-list {
        padding: 0;
    }
}

/* ---- Footer: one continuous surface with an attenuating tile motif ---- */
footer {
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #FDF6ED 0%, #fffaf5 38%, #f7eee4 100%);
    color: #3f3933;
    box-shadow: none;
}

footer::before {
    display: none;
}

.footer-corner-mosaic {
    position: absolute;
    z-index: 0;
    background-repeat: no-repeat;
    pointer-events: none;
}

.footer-corner-mosaic--top {
    top: 0;
    bottom: 0;
    right: 0;
    width: 72%;
    max-width: 920px;
    height: auto;
    background: none;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.14) 36%, rgba(0, 0, 0, 0.68) 70%, #000 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, transparent 16%, rgba(0, 0, 0, 0.14) 36%, rgba(0, 0, 0, 0.68) 70%, #000 100%);
}

.footer-corner-mosaic--top::before {
    position: absolute;
    inset: 0;
    background-image: url("../images/footer_mosaic.svg");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: 100% auto;
    content: "";
    opacity: 0.76;
    transform: scaleY(-1);
    transform-origin: center;
}

.footer-corner-mosaic--bottom {
    bottom: 0;
    left: 0;
    width: 44%;
    max-width: 520px;
    height: 300px;
    background-image: url("../images/footer_mosaic_left.svg");
    background-position: left bottom;
    background-size: contain;
    opacity: 0.8;
    -webkit-mask-image: linear-gradient(45deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.52) 58%, transparent 92%);
    mask-image: linear-gradient(45deg, #000 0%, #000 28%, rgba(0, 0, 0, 0.52) 58%, transparent 92%);
}

.footer-inner {
    position: relative;
    z-index: 1;
    display: block;
    width: min(calc(100% - 48px), 620px);
    box-sizing: border-box;
    margin: 0 auto;
    padding: 27px 24px 15px;
    text-align: left;
}

.footer-block {
    position: relative;
    min-width: 0;
    padding: 0 30px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.footer-block--brand {
    padding: 0;
}

.footer-title {
    color: #3e352e;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 0;
    line-height: 1.05;
}

.footer-title span { color: #826954; }

.footer-tag {
    margin: 9px 0 4px;
    color: #765f4d;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-tag::after {
    display: block;
    width: 88px;
    height: 4px;
    margin-top: 11px;
    background: linear-gradient(90deg, #9d8068 0 34%, #9fa573 34% 67%, #cf8175 67% 100%);
    content: "";
}

.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border: 1px solid rgba(75, 62, 51, 0.24);
    border-radius: 6px;
    background: #f4ead9;
    color: #4d4239 !important;
    font-size: 17px;
    text-decoration: none;
    box-shadow: 0 3px 8px rgba(83, 68, 55, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social a:nth-child(1) { background: #edf0d7; }
.footer-social a:nth-child(2) { background: #f1e8dc; }

.footer-social a:hover {
    background: #69584b;
    border-color: #69584b;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.footer-social a i {
    display: block;
    width: 18px;
    line-height: 1;
    text-align: center;
}

.footer-social a:first-child i {
    font-size: 15px;
}

.footer-address {
    margin: 17px 0 0;
    color: #352f2b;
    font-size: 16.5px;
    font-weight: 800;
    line-height: 1.45;
}

.footer-base {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 clamp(120px, 14vw, 200px);
    padding: 10px 0 12px;
    border: 0;
    border-top: 1px solid rgba(118, 95, 77, 0.32);
    border-radius: 0;
    background: transparent;
    color: #66574a;
    font-size: 12.5px;
    text-align: center;
}

@media (max-width: 980px) {
    .footer-corner-mosaic--top {
        width: 88%;
        opacity: 0.62;
    }

    .footer-corner-mosaic--bottom {
        width: 58%;
        opacity: 0.68;
    }

    .footer-base {
        margin-right: clamp(64px, 10vw, 100px);
        margin-left: clamp(64px, 10vw, 100px);
    }
}

@media (max-width: 700px) {
    footer {
        padding: 0;
        border-radius: 0;
    }

    .footer-inner {
        width: calc(100% - 48px);
        padding: 25px 0 13px;
    }

    .footer-block--brand {
        padding: 0;
    }

    .footer-block {
        padding-right: 0;
        padding-left: 0;
    }

    .footer-corner-mosaic--top {
        right: -38%;
        width: 94%;
        height: auto;
        opacity: 0.34;
    }

    .footer-corner-mosaic--bottom {
        left: -34%;
        width: 78%;
        height: 240px;
        opacity: 0.36;
    }

    .footer-base {
        justify-content: center;
        margin: 0 24px;
        padding: 12px 0 15px;
        text-align: center;
    }
}

/* ---- Artifacts / vision items ---- */
.code-pill {
    display: inline-block;
    font-family: var(--font-mono);
    background: var(--accent-deep);
    color: #ffd98a;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 15px;
    margin: 4px 0;
}

/* ---- Mobile polish ---- */
@media (max-width: 800px) {
    .menu-toggle { background: transparent; color: #703b3b; }

    nav.active {
        background: #ffffff;
        border: 1px solid #ead4d4;
        border-radius: 10px;
        width: 100%;
        box-shadow: 0 12px 26px rgba(112, 59, 59, 0.14);
    }

    nav.active ul {
        padding: 4px;
    }

    nav.active ul li a {
        padding: 8px 12px;
        color: #703b3b;
    }

    nav.active ul li a.active {
        background: #703b3b;
        color: #ffffff;
        box-shadow: 0 6px 14px rgba(112, 59, 59, 0.22);
    }
    nav.active ul li a:hover { background: #f7a5a5; color: #4b2828; }
    nav.active ul li a.active:hover { background: #f7a5a5; color: #4b2828; }

    /* hero stacks: description first, highlights below */
    .hero-news { margin: 16px 5px !important; }

    /* stack the flex rows used in openings/artifacts on small screens */
    li[style*="display: flex"] { flex-direction: column; }
    li[style*="display: flex"] img { width: 100% !important; height: auto !important; margin-top: 12px; }

    .top-container .profile-desc { margin: 0 10px; }
}
