@charset "utf-8";
body {
    font-family: "Lato", sans-serif;
    font-weight: 400;
    padding-top: 5.0rem;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

.card {
    border-radius: 0.8rem!important;
}

.card-img-overlay {
    border-radius: 0.8rem!important;
}

.rounded-xl {
    border-radius: 0.8rem!important;
}

.rounded-xl-bottom {
    border-bottom-right-radius: 0.8rem !important;
    border-bottom-left-radius: 0.8rem !important;
}

.rounded-xl-top {
    border-top-left-radius: 0.8rem !important;
    border-top-right-radius: 0.8rem !important;
}


.text-profile-position {
    font-weight: 400;
}

.text-profile-bio {
    /* font-family: "Raleway"; */
    font-weight: 400;
}

.navbar {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.inline-badge {
    height: 16px;
    vertical-align: -10%;
    margin-right: 2px;
    line-break: unset;
}

.no-break {
    white-space: nowrap;
}

.cover-image {
    width: 180px;
    max-height: 120px;
}

.abstract-body {
    min-height: 100px;
}

img.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

div.lazy {
    background-image: url('images/loading.gif');
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: 50px 50px;
    min-height: 80px;
}

.badge-publication {
    font-size: 100%;
}

.email-text {
    font-family: Source Code Pro, monospace;
}

.desktop-video-badge {
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.desktop-video-badge video {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.desktop-video-navbar {
    margin-left: 0.45rem;
}

.desktop-video-navbar-page-2 {
    margin-left: 3.125rem;
}

.desktop-video-navbar-page-3 {
    margin-left: 6.25rem;
}

.desktop-video-navbar-page-4 {
    margin-left: 9.375rem;
}

.desktop-video-navbar-page-5 {
    margin-left: 12.5rem;
}

.desktop-video-navbar-page-6 {
    margin-left: 15.625rem;
}

.navbar-video-cycle {
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.navbar-video-cycle-item {
    display: none;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.navbar-video-cycle-item.is-active {
    display: block;
}

.profile-portrait-figure {
    margin-top: 0.65rem;
}

.waffle-page {
    --waffle-ink: #2f3840;
    --waffle-blue: #4f78a7;
    --waffle-gold: #c79445;
    --waffle-cream: #fff8ea;
    position: relative;
    color: var(--waffle-ink);
}

.waffle-lang-switch {
    position: sticky;
    top: 78px;
    z-index: 10;
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
    pointer-events: none;
}

.waffle-lang-switch button {
    pointer-events: auto;
    border: 1px solid rgba(79, 120, 167, 0.22);
    background: rgba(255, 255, 255, 0.9);
    color: var(--waffle-blue);
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 0.25rem 0.9rem rgba(47, 56, 64, 0.08);
}

.waffle-lang-switch button.active {
    background: var(--waffle-blue);
    color: #fff;
}

.waffle-page .card {
    border: 1px solid rgba(79, 120, 167, 0.12) !important;
}

.waffle-profile-card {
    background: linear-gradient(180deg, #ffffff 0%, var(--waffle-cream) 100%) !important;
}

.waffle-portrait-frame {
    position: relative;
    width: 220px;
    height: 220px;
    margin-right: auto;
    margin-left: auto;
}

.waffle-page .waffle-portrait {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(199, 148, 69, 0.45);
    box-shadow: 0 0.75rem 2rem rgba(79, 120, 167, 0.16);
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    object-position: 50% 42%;
    transform: scale(0.96);
    transition: opacity 0.52s ease, transform 0.52s ease, box-shadow 0.52s ease;
    pointer-events: none;
}

.waffle-page .waffle-portrait.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    transform: scale(1);
}

.waffle-page .waffle-portrait-icon {
    object-position: center;
}

.waffle-page .waffle-portrait-icon.is-active {
    box-shadow: 0 0.9rem 2.35rem rgba(199, 148, 69, 0.20);
    animation: waffle-portrait-spin 18s linear infinite;
}

@keyframes waffle-portrait-spin {
    from {
        transform: scale(1) rotate(0deg);
    }
    to {
        transform: scale(1) rotate(360deg);
    }
}

.waffle-lab-strip {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin: 1rem 0 1.25rem;
    padding: 0.75rem;
    border: 1px solid rgba(79, 120, 167, 0.14);
    border-radius: 0.8rem;
    background: linear-gradient(90deg, rgba(79, 120, 167, 0.08), rgba(199, 148, 69, 0.10));
    overflow: hidden;
}

.waffle-lab-strip::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    animation: waffle-scan 5.5s ease-in-out infinite;
}

.waffle-lab-strip span {
    z-index: 1;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--waffle-blue);
}

@keyframes waffle-scan {
    0%, 35% { left: -35%; }
    75%, 100% { left: 105%; }
}

@media (prefers-reduced-motion: reduce) {
    .waffle-lab-strip::before {
        animation: none;
        display: none;
    }

    .waffle-page .waffle-portrait {
        transition: none;
    }

    .waffle-page .waffle-portrait-icon.is-active {
        animation: none;
    }
}

.waffle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.waffle-tags span {
    border: 1px solid #d7e3ea;
    background: linear-gradient(180deg, #ffffff, #f8fbfc);
    color: #31515f;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.875rem;
}

.waffle-paper,
.waffle-project {
    border: 1px solid #e6e9ed;
    border-radius: 0.8rem;
    padding: 1rem;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.waffle-publication-list .waffle-paper {
    border-left: 4px solid var(--waffle-blue);
}

.waffle-gallery img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.photography-page {
    --photo-ink: #263238;
    --photo-muted: #68757f;
    --photo-line: rgba(38, 50, 56, 0.1);
    --photo-blue: #2d6f8f;
    --photo-rust: #b65c3b;
    color: var(--photo-ink);
}

.photo-region-nav a {
    border: 1px solid rgba(45, 111, 143, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--photo-blue);
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
}

.photo-region-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1.5rem;
}

.photo-region-nav a {
    padding: 0.35rem 0.8rem;
    text-decoration: none;
}

.photo-region-nav a:hover {
    border-color: rgba(182, 92, 59, 0.34);
    color: var(--photo-rust);
}

.photo-section {
    margin: 2rem 0;
}

.photo-section-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid var(--photo-line);
}

.photo-section-heading h2 {
    margin-bottom: 0.45rem;
    font-size: 1.35rem;
}

.photo-section-heading span {
    color: var(--photo-muted);
    font-size: 0.9rem;
}

.photo-grid {
    column-count: 3;
    column-gap: 1rem;
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--photo-line);
    border-radius: 0.8rem;
    background: #fff;
    box-shadow: 0 0.35rem 1.1rem rgba(38, 50, 56, 0.07);
    break-inside: avoid;
}

.photo-card img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 160px;
    object-fit: cover;
}

.photo-card figcaption {
    padding: 0.75rem 0.85rem 0.85rem;
}

.photo-card figcaption strong,
.photo-card figcaption span {
    display: block;
}

.photo-card figcaption strong {
    margin-bottom: 0.1rem;
    color: var(--photo-ink);
    font-size: 0.98rem;
}

.photo-card figcaption span {
    color: var(--photo-muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.demo-index-page {
    padding: 1.5rem 0 3rem;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.demo-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(38, 50, 56, 0.1);
    border-radius: 0.8rem;
    background: #fff;
    color: #263238;
    text-decoration: none;
    box-shadow: 0 0.35rem 1.1rem rgba(38, 50, 56, 0.07);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.demo-card:hover {
    border-color: rgba(45, 111, 143, 0.28);
    color: #263238;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 0.65rem 1.5rem rgba(38, 50, 56, 0.12);
}

.demo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #080b12;
}

.demo-card-body {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.9rem 1rem 1rem;
}

.demo-card-body h2 {
    margin: 0 0 0.2rem;
    font-size: 1.05rem;
}

.demo-card-body p {
    margin: 0;
    color: #68757f;
    font-size: 0.9rem;
    line-height: 1.35;
}

.animation-page {
    min-height: calc(100vh - 5rem);
    margin-top: -0.5rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(45, 116, 166, 0.2), transparent 28%),
        radial-gradient(circle at 84% 72%, rgba(225, 118, 76, 0.16), transparent 30%),
        linear-gradient(135deg, #080b12 0%, #111827 52%, #090b10 100%);
}

.followers-scene {
    position: relative;
    width: 100%;
    height: calc(100vh - 5rem);
    min-height: 620px;
    cursor: grab;
    overflow: hidden;
    touch-action: pan-y;
}

.followers-scene:active {
    cursor: grabbing;
}

.followers-scene canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.followers-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 34px;
    height: 34px;
    margin: -17px 0 0 -17px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    animation: followers-loader-spin 0.9s linear infinite;
}

.followers-scene.is-loaded .followers-loader {
    display: none;
}

@keyframes followers-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575.98px) {
    .animation-page,
    .followers-scene {
        min-height: calc(100vh - 4.5rem);
    }

    .followers-scene {
        height: calc(100vh - 4.5rem);
    }

}

@media (max-width: 991.98px) {
    .photo-grid {
        column-count: 2;
    }
}

@media (max-width: 575.98px) {
    .photo-grid {
        column-count: 1;
    }
}
