﻿/*===== GOOGLE FONTS =====*/
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@700;900&family=Inter:wght@300;400;500;600;700&family=Merriweather:ital,wght@0,700;1,400&display=swap');

/*===== CSS VARIABLES =====*/
:root {
    --navy:        #1b3a6b;
    --navy-dark:   #112347;
    --navy-light:  #2855a0;
    --gold:        #c49a0a;
    --gold-light:  #f0c040;
    --gold-pale:   #fdf6dc;
    --bg:          #ffffff;
    --bg-alt:      #f4f7fb;
    --text:        #1a202c;
    --text-muted:  #64748b;
    --border:      #dde3f0;
    --white:       #ffffff;

    --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Merriweather', Georgia, serif;

    --shadow-sm: 0 1px 4px rgba(27, 58, 107, 0.08);
    --shadow:    0 4px 16px rgba(27, 58, 107, 0.10);
    --shadow-md: 0 8px 32px rgba(27, 58, 107, 0.14);

    --radius:    8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

/*===== BASE =====*/
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.3;
    color: var(--navy-dark);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

strong {
    font-weight: 600;
    color: var(--navy);
}

/*===== REUSABLE =====*/
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.section > .container {
    position: relative;
    z-index: 1;
}

.section__bg-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.section__bg-icons::before,
.section__bg-icons::after {
    content: '';
    position: absolute;
    pointer-events: none;
    opacity: 0.42;
}

.section__bg-icons::before {
    left: 6%;
    right: 6%;
    top: 10%;
    height: 86px;
    background:
        radial-gradient(circle at 0 50%, transparent 0 20px, rgba(27, 58, 107, 0.07) 20px 21px, transparent 21px),
        radial-gradient(circle at 42px 50%, transparent 0 20px, rgba(196, 154, 10, 0.09) 20px 21px, transparent 21px);
    background-size: 84px 84px;
    mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.95) 10%, rgba(0, 0, 0, 0.95) 90%, transparent);
}

.section__bg-icons::after {
    right: 7%;
    bottom: 12%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 1px dashed rgba(27, 58, 107, 0.08);
    box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.14);
}

.section__bg-icon {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(27, 58, 107, 0.11);
    text-shadow: 0 10px 24px rgba(27, 58, 107, 0.06);
    line-height: 1;
    animation: sectionIconFloat 11s ease-in-out infinite;
}

.section__bg-icon--tl {
    top: 1.6rem;
    left: 1.4rem;
    font-size: clamp(2.4rem, 4vw, 4.4rem);
    transform: rotate(-12deg);
}

.section__bg-icon--tr {
    top: 2rem;
    right: 2rem;
    font-size: clamp(2.7rem, 4.8vw, 5rem);
    transform: rotate(10deg);
    animation-delay: 1.8s;
}

.section__bg-icon--br {
    right: 2.2rem;
    bottom: 1.6rem;
    font-size: clamp(2.5rem, 4.4vw, 4.6rem);
    transform: rotate(-8deg);
    animation-delay: 3.2s;
}

.about .section__bg-icon,
.research .section__bg-icon,
.projects .section__bg-icon,
.awards .section__bg-icon {
    color: rgba(196, 154, 10, 0.14);
}

.publications .section__bg-icon,
.education .section__bg-icon,
.conferences .section__bg-icon,
.posters .section__bg-icon,
.experience .section__bg-icon {
    color: rgba(27, 58, 107, 0.1);
}

.skills .section__bg-icon,
.teaching .section__bg-icon,
.blogs .section__bg-icon,
.journeys .section__bg-icon {
    color: rgba(40, 85, 160, 0.1);
}

.contact .section__bg-icon {
    color: rgba(255, 255, 255, 0.12);
    text-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

@keyframes sectionIconFloat {
    0%, 100% {
        translate: 0 0;
        opacity: 0.95;
    }
    50% {
        translate: 0 -10px;
        opacity: 0.62;
    }
}

.about::before,
.education::before,
.skills::before,
.research::before,
.projects::before,
.publications::before,
.conferences::before,
.posters::before,
.teaching::before,
.experience::before,
.blogs::before,
.journeys::before,
.awards::before,
.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.about::after,
.education::after,
.skills::after,
.research::after,
.projects::after,
.publications::after,
.conferences::after,
.posters::after,
.teaching::after,
.experience::after,
.blogs::after,
.journeys::after,
.awards::after,
.contact::after {
    content: '';
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.section__title {
    font-size: 2rem;
    color: var(--navy-dark);
    margin-bottom: 0.4rem;
    position: relative;
    display: inline-block;
}

.section__title::after {
    content: '';
    display: block;
    width: 0;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
    margin-top: 0.5rem;
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.section__title.title--in::after {
    width: 48px;
}

.section__subtitle {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 3rem;
}

/*===== BUTTONS =====*/
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn--primary {
    background-color: var(--gold);
    color: var(--navy-dark);
    border-color: var(--gold);
}

.btn--primary:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--outline-navy {
    background-color: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline-navy:hover {
    background-color: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

/*===== TAGS / BADGES =====*/
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background-color: var(--bg-alt);
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.tag--sm {
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
}

.tag--nsf {
    background-color: var(--gold-pale);
    color: var(--gold);
    border-color: var(--gold);
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge--talk {
    background-color: #e8f0fe;
    color: #1a56db;
}

.badge--poster {
    background-color: #fdf4ff;
    color: #9333ea;
}

/*===== HEADER / NAV =====*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: transparent;
    transition: background-color var(--transition), box-shadow var(--transition);
}

.header.scroll-header {
    background-color: var(--navy-dark);
    box-shadow: 0 2px 16px rgba(17, 35, 71, 0.3);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    font-family: 'Cinzel Decorative', var(--font-heading);
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 0.28em;
    text-indent: 0.28em; /* compensate letter-spacing trailing gap */

    /* gold gradient text */
    background: linear-gradient(135deg, #fef3c7 0%, var(--gold-light) 45%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* badge frame */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.85rem;
    border: 1.5px solid rgba(240, 192, 64, 0.65);
    position: relative;
    margin-left: 1rem;

    filter: drop-shadow(0 0 5px rgba(240, 192, 64, 0.3));
    transition: filter var(--transition), letter-spacing var(--transition), border-color var(--transition);
}

.nav__logo::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 0.5px solid rgba(240, 192, 64, 0.22);
    pointer-events: none;
}

.nav__logo:hover {
    filter: drop-shadow(0 0 10px rgba(240, 192, 64, 0.65));
    border-color: var(--gold-light);
    letter-spacing: 0.34em;
    text-indent: 0.34em;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav__item {
    position: relative;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.3;
    transition: color var(--transition), opacity 0.5s ease;
    position: relative;
    padding-bottom: 0.2rem;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active-link {
    color: var(--white);
    opacity: 1;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    width: 100%;
}

.nav__more-toggle {
    border: 0;
    background: transparent;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0.3;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0 0 0.2rem;
    cursor: pointer;
    position: relative;
    transition: color var(--transition), opacity 0.5s ease;
}

.nav__more-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav__more-toggle i {
    font-size: 1rem;
    transition: transform var(--transition);
}

.nav__more-toggle:hover,
.nav__more-toggle.active-link,
.nav__item--more:hover .nav__more-toggle,
.nav__item--more:focus-within .nav__more-toggle,
.nav__item--open .nav__more-toggle {
    color: var(--white);
    opacity: 1;
}

.nav__more-toggle:hover::after,
.nav__more-toggle.active-link::after,
.nav__item--more:hover .nav__more-toggle::after,
.nav__item--more:focus-within .nav__more-toggle::after,
.nav__item--open .nav__more-toggle::after {
    width: 100%;
}

.nav__item--more:hover .nav__more-toggle i,
.nav__item--open .nav__more-toggle i {
    transform: rotate(180deg);
}

.nav__dropdown {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 0;
    min-width: 11.5rem;
    padding: 0.55rem;
    display: grid;
    gap: 0.15rem;
    background: rgba(17, 35, 71, 0.96);
    border: 1px solid rgba(240, 192, 64, 0.24);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(6, 16, 36, 0.32);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
}

.nav__item--more:hover .nav__dropdown,
.nav__item--more:focus-within .nav__dropdown,
.nav__item--open .nav__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav__dropdown-link {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    opacity: 0.72;
    white-space: nowrap;
}

.nav__dropdown-link::after {
    display: none;
}

.nav__dropdown-link:hover,
.nav__dropdown-link.active-link {
    background: rgba(240, 192, 64, 0.12);
    color: var(--white);
    opacity: 1;
}

.nav__close {
    display: none;
}

.nav__toggle {
    display: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
}

/*===== INTRO LOADER =====*/
.intro-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: var(--white);
    background: #09172e;
    isolation: isolate;
    animation:
        introBgFade 1.1s ease 3.5s both,
        introShellExit 0.01s linear 4.6s forwards;
}

.intro-loader.intro-loader--done {
    /* JS drives the exit; this is just a safety fallback */
    animation: introShellExit 0.01s linear 4.2s forwards;
}

.intro-loader__grid {
    position: absolute;
    z-index: 1;
    inset: -12%;
    background-image:
        linear-gradient(rgba(240, 192, 64, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 192, 64, 0.10) 1px, transparent 1px),
        linear-gradient(120deg, transparent 0 46%, rgba(111, 170, 255, 0.14) 46% 47%, transparent 47% 100%);
    background-size: 86px 86px, 86px 86px, 100% 100%;
    opacity: 0.38;
    transform: perspective(900px) rotateX(58deg) translateY(7%);
    animation: introGridDrift 3.4s ease-in-out both;
}

.intro-loader__scan {
    position: absolute;
    z-index: 2;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.82), transparent);
    opacity: 0;
}

.intro-loader__scan--top {
    top: 24%;
    animation: introScan 2.2s ease 0.15s both;
}

.intro-loader__scan--bottom {
    bottom: 24%;
    animation: introScan 2.2s ease 0.45s both reverse;
}

.intro-loader__content {
    position: relative;
    z-index: 3;
    width: min(82vw, 760px);
    min-height: clamp(320px, 54vh, 520px);
    display: grid;
    place-items: center;
    text-align: center;
    animation: introContentExit 0.65s cubic-bezier(0.76, 0, 0.24, 1) 3.4s forwards;
}


.intro-loader__content::before,
.intro-loader__content::after {
    content: '';
    position: absolute;
    width: min(58vw, 520px);
    height: min(58vw, 520px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    transform: rotate(45deg) scale(0.86);
    animation: introDiamond 2.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.intro-loader__content::after {
    border-color: rgba(240, 192, 64, 0.22);
    transform: rotate(45deg) scale(0.64);
    animation-delay: 0.15s;
}

.intro-loader__mark {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.25rem);
    font-family: 'Cinzel Decorative', var(--font-heading);
    font-size: clamp(4.75rem, 14vw, 11rem);
    line-height: 0.88;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-indent: 0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.82);
    filter: drop-shadow(0 18px 44px rgba(0, 0, 0, 0.36));
}

.intro-loader__mark span {
    display: inline-block;
    transform: translateY(48px);
    opacity: 0;
    animation: introLetterIn 0.88s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.intro-loader__mark span:nth-child(2) {
    animation-delay: 0.12s;
    -webkit-text-stroke-color: rgba(240, 192, 64, 0.95);
}

.intro-loader__mark span:nth-child(3) {
    animation-delay: 0.24s;
}

.intro-loader__ktm-group {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.25rem, 2.5vh, 2rem);
}

.intro-loader__bar-wrap {
    width: clamp(180px, 38vw, 340px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0;
    animation: introBarIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.intro-loader__bar-wrap.progress-hidden {
    animation: none;
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.intro-loader__bar-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.intro-loader__bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(240, 192, 64, 0.35) 0%, rgba(240, 192, 64, 1) 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(240, 192, 64, 0.55);
    animation: introBarFill 2.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.intro-loader__bar-pct {
    font-family: var(--font-body);
    font-size: clamp(0.55rem, 1.2vw, 0.72rem);
    letter-spacing: 0.22em;
    color: rgba(240, 192, 64, 0.6);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@keyframes introBarIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes introBarFill {
    from { width: 0%; }
    to   { width: 100%; }
}

.intro-loader__field {
    position: absolute;
    z-index: 0;
    inset: 50% auto auto 50%;
    width: min(62vw, 520px);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    opacity: 0.9;
    pointer-events: none;
}

.intro-loader__ring,
.intro-loader__axis {
    position: absolute;
    inset: 0;
    margin: auto;
}

.intro-loader__ring {
    --intro-ring-start: 0deg;
    width: 100%;
    height: 44%;
    border: 1px solid rgba(240, 192, 64, 0.4);
    border-radius: 50%;
    transform: rotate(var(--intro-ring-start));
    animation: introOrbit 3.1s linear infinite;
}

.intro-loader__ring--two {
    --intro-ring-start: 65deg;
    width: 78%;
    height: 34%;
    border-color: rgba(111, 170, 255, 0.32);
    animation-duration: 2.6s;
    animation-direction: reverse;
}

.intro-loader__axis {
    background: rgba(255, 255, 255, 0.16);
}

.intro-loader__axis--x {
    width: 100%;
    height: 1px;
    top: 50%;
}

.intro-loader__axis--y {
    width: 1px;
    height: 100%;
    left: 50%;
}

@keyframes introBgFade {
    0%   { background-color: #09172e; }
    35%  { background-color: #09172e; }
    100% { background-color: rgba(9, 23, 46, 0); }
}

@keyframes introKTMZoom {
    0%   { transform: scale(1);  opacity: 1; }
    55%  { transform: scale(8);  opacity: 1; }
    100% { transform: scale(22); opacity: 0; }
}

@keyframes introFadeQuick {
    to { opacity: 0; }
}

@keyframes introShellExit {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes introContentExit {
    to { opacity: 0; transform: scale(0.96); filter: blur(12px); }
}

@keyframes introGridDrift {
    from { transform: perspective(900px) rotateX(58deg) translateY(12%); }
    to { transform: perspective(900px) rotateX(58deg) translateY(0); }
}

@keyframes introScan {
    0% { transform: translateX(-24%); opacity: 0; }
    22%, 70% { opacity: 0.7; }
    100% { transform: translateX(24%); opacity: 0; }
}

@keyframes introDiamond {
    from { opacity: 0; transform: rotate(45deg) scale(0.42); }
    to { opacity: 1; }
}

@keyframes introLetterIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes introOrbit {
    from { transform: rotate(var(--intro-ring-start)); }
    to { transform: rotate(calc(var(--intro-ring-start) + 360deg)); }
}

@media (prefers-reduced-motion: reduce) {
    .intro-loader {
        animation: introShellExit 0.01s ease 0.2s forwards;
    }

    .intro-loader::before,
    .intro-loader::after {
        animation-duration: 0.01s !important;
        animation-delay: 0.2s !important;
    }

    .intro-loader *,
    .intro-loader *::before,
    .intro-loader *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }

    .intro-loader__bar-wrap {
        opacity: 1 !important;
    }

    .intro-loader__bar-wrap.progress-hidden {
        opacity: 0 !important;
    }

    .intro-loader__bar-fill {
        width: 100% !important;
    }
}

/*===== HERO =====*/
.hero {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 30%),
        radial-gradient(circle at 18% 18%, rgba(240, 192, 64, 0.22), transparent 16%),
        radial-gradient(circle at 82% 20%, rgba(111, 170, 255, 0.12), transparent 18%),
        radial-gradient(circle at 78% 78%, rgba(240, 192, 64, 0.12), transparent 22%),
        linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, transparent 40%, rgba(255, 255, 255, 0.03) 100%),
        linear-gradient(135deg, #0f1f3d 0%, #17315b 44%, #29539a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 64px;
    position: relative;
    overflow: hidden;
}

html.intro-is-running .header {
    opacity: 0;
    transform: translateY(-18px);
}

html.intro-is-running .hero::before,
html.intro-is-running .hero::after,
html.intro-is-running .hero__container,
html.intro-is-running .hero__scroll {
    opacity: 0;
}

html.intro-is-running .hero__container {
    transform: scale(0.88);
}

html.intro-is-running .hero__scroll {
    animation: none;
    transform: translateX(-50%) scale(0.88);
}

html.intro-complete .header {
    animation: heroNavReveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

html.intro-complete .hero::before {
    animation: heroBackdropReveal 1.1s ease both;
}

html.intro-complete .hero::after {
    animation: heroOrbReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

html.intro-complete .hero__container {
    animation: heroSceneReveal 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

html.intro-complete .hero__scroll {
    animation:
        heroScrollReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s both,
        bounce 2s infinite 1.55s;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 90%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 8%;
    right: 7%;
    width: min(24vw, 260px);
    height: min(24vw, 260px);
    border-radius: 50%;
    border: 1px solid rgba(240, 192, 64, 0.24);
    box-shadow:
        0 0 0 28px rgba(240, 192, 64, 0.05),
        0 0 0 62px rgba(240, 192, 64, 0.025);
    pointer-events: none;
}

.hero__container::before {
    content: '';
    position: absolute;
    left: 6%;
    top: 18%;
    width: min(18vw, 200px);
    height: min(18vw, 200px);
    border-radius: 28px;
    border: 1px solid rgba(240, 192, 64, 0.16);
    background: linear-gradient(135deg, rgba(240, 192, 64, 0.08), rgba(255, 255, 255, 0.02));
    transform: rotate(18deg);
    pointer-events: none;
}

.hero__container::after {
    content: '';
    position: absolute;
    right: 11%;
    bottom: 14%;
    width: min(30vw, 340px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 192, 64, 0.5), transparent);
    box-shadow:
        0 -18px 0 rgba(240, 192, 64, 0.14),
        0 18px 0 rgba(240, 192, 64, 0.1);
    pointer-events: none;
}

.hero__container {
    display: flex;
    justify-content: center;
    padding: 4rem 1.5rem;
    position: relative;
}

.hero__science {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero__science-grid {
    position: absolute;
    inset: 8% 8% 12%;
    border-radius: 32px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95), transparent 88%);
    opacity: 0.75;
}

.hero__science-orbit,
.hero__science-wave,
.hero__science-node {
    position: absolute;
}

.hero__science-orbit {
    border-radius: 50%;
    border: 1px solid rgba(240, 192, 64, 0.22);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.hero__science-orbit--lg {
    width: min(52vw, 620px);
    height: min(52vw, 620px);
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    animation: orbitSpin 20s linear infinite;
}

.hero__science-orbit--sm {
    width: min(36vw, 420px);
    height: min(36vw, 420px);
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%);
    border-color: rgba(108, 170, 255, 0.16);
    animation: orbitSpinReverse 16s linear infinite;
}

.hero__science-wave {
    left: 10%;
    right: 10%;
    height: 110px;
    opacity: 0.42;
    background:
        radial-gradient(circle at 0 50%, transparent 0 26px, rgba(240, 192, 64, 0.18) 26px 27px, transparent 27px),
        radial-gradient(circle at 56px 50%, transparent 0 26px, rgba(255, 255, 255, 0.1) 26px 27px, transparent 27px);
    background-size: 112px 112px;
    mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.95) 12%, rgba(0, 0, 0, 0.95) 88%, transparent);
}

.hero__science-wave--top {
    top: 14%;
}

.hero__science-wave--bottom {
    bottom: 12%;
    transform: scaleY(-1);
}

.hero__science-node {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle, #f5d980 0%, var(--gold) 45%, rgba(240, 192, 64, 0.28) 100%);
    box-shadow: 0 0 0 10px rgba(240, 192, 64, 0.12), 0 0 26px rgba(240, 192, 64, 0.35);
}

.hero__science-node--left {
    left: 17%;
    top: 28%;
    animation: nodePulse 3.6s ease-in-out infinite;
}

.hero__science-node--right {
    right: 18%;
    bottom: 24%;
    animation: nodePulse 4.4s ease-in-out infinite 0.7s;
}

.hero__poster {
    width: min(980px, 100%);
    text-align: center;
    position: relative;
    padding: 3rem 1.75rem 2.75rem;
    border-radius: 36px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)),
        radial-gradient(circle at 50% 10%, rgba(240, 192, 64, 0.12), transparent 34%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(10px);
}

.hero__poster::before {
    content: '';
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    pointer-events: none;
}

.hero__poster::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: min(52%, 360px);
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(240, 192, 64, 0.5), rgba(255, 255, 255, 0.22), rgba(240, 192, 64, 0.5));
    transform: translateX(-50%);
    opacity: 0.7;
    pointer-events: none;
}

.hero__nameboard {
    display: grid;
    gap: 1rem;
    justify-items: center;
    margin-bottom: 0;
}

.hero__name-row {
    font-family: var(--font-body);
    font-size: clamp(2rem, 10vw, 8.8rem);
    line-height: 0.88;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--white);
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.hero__name-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(560px, 74vw);
    padding: 1rem 2.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        inset 0 0 0 1px rgba(17, 35, 71, 0.06),
        0 16px 34px rgba(0, 0, 0, 0.14);
    position: relative;
    border: 2px solid rgba(17, 35, 71, 0.08);
}

.hero__name-pill::before {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 8px rgba(240, 192, 64, 0.14);
}

.hero__name-pill::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 0 8px rgba(240, 192, 64, 0.14);
}

.hero__name-pill-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 7vw, 5.3rem);
    line-height: 1;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--navy-dark);
    text-shadow: none;
}

.hero__letter {
    display: inline-block;
    animation: heroLetterWave 2.4s ease-in-out infinite;
}

@keyframes heroLetterWave {
    0%, 100% { transform: translateY(0);    }
    45%       { transform: translateY(-7px); }
    65%       { transform: translateY(-4px); }
}

.hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.hero__social {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: rgba(0, 0, 0, 0.72);
    font-size: 1.1rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.22);
}

.hero__social-link:hover {
    background-color: #111111;
    border-color: #111111;
    color: #f3c970;
    transform: translateY(-3px);
}

.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
    transition: color var(--transition);
}

.hero__scroll:hover {
    color: var(--gold-light);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(6px); }
}

@keyframes orbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitSpinReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to   { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes nodePulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.22); opacity: 1; }
}

/*===== ABOUT =====*/
.about {
    background-color: var(--bg);
    overflow: visible;
}

.about::before {
    background:
        radial-gradient(circle at 12% 18%, rgba(240, 192, 64, 0.14), transparent 28%),
        radial-gradient(circle at 86% 82%, rgba(40, 85, 160, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(253, 246, 220, 0.68));
}

.about::after {
    inset: 1.25rem auto auto 1rem;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    border: 1px dashed rgba(27, 58, 107, 0.12);
}

.about__container {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    text-align: justify;
}

.about__interests {
    margin-top: 1.5rem;
}

.about__interests h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

/*===== ABOUT PROFILE LINKS =====*/
.about__profile {
    flex-shrink: 0;
    width: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about__photo {
    margin-bottom: 1.25rem;
}

.about__photo img {
    width: 240px;
    height: 280px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 32, 58, 0.12);
}

/*===== PHOTO FAN =====*/
.photo-fan {
    position: relative;
    width: 240px;
    height: 280px;
    cursor: pointer;
}

.photo-fan__card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(11, 32, 58, 0.12);
    background: #fff;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.photo-fan__card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

/* Closed: slight peek to hint multiple cards */
.photo-fan__card--right {
    z-index: 1;
    transform: rotate(4deg) translateY(4px);
}

.photo-fan__card--left {
    z-index: 2;
    transform: rotate(-4deg) translateY(4px);
}

.photo-fan__card--center {
    z-index: 3;
}

/* Open: side by side, side cards slightly tilted */
.photo-fan.is-open .photo-fan__card--right {
    transform: translateX(210px) rotate(8deg);
}

.photo-fan.is-open .photo-fan__card--left {
    transform: translateX(-210px) rotate(-8deg);
}

.photo-fan.is-open .photo-fan__card--center {
    transform: translateY(-8px);
}

.about__links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    justify-content: center;
    width: 100%;
}

.profile__link {
    display: inline-grid;
    place-items: center;
    align-items: center;
    width: 100%;
    max-width: 3.25rem;
    height: 3.25rem;
    padding: 0;
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--navy);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    justify-self: center;
}

.profile__link:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
    color: var(--white);
    transform: translateY(-3px);
}

.profile__icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.profile__cv {
    width: 100%;
    margin-top: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3.25rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.95));
    color: var(--navy-dark);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.profile__cv:hover {
    transform: translateY(-3px);
    border-color: var(--gold);
    background: linear-gradient(180deg, rgba(253, 246, 220, 0.98), rgba(255, 255, 255, 0.96));
    color: var(--navy);
}

.profile__cv--youtube {
    margin-top: 0.7rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.95));
}

.profile__cv--youtube:hover {
    border-color: #ff4d4d;
    background: linear-gradient(180deg, rgba(255, 241, 241, 0.98), rgba(255, 255, 255, 0.96));
    color: #c81d25;
}

.profile__icon--cv {
    width: 1.15rem;
    height: 1.15rem;
}

/*===== EDUCATION (alt bg) =====*/
.education {
    background-color: var(--bg-alt);
}

.education::before {
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.95), rgba(232, 239, 251, 0.98)),
        linear-gradient(90deg, rgba(27, 58, 107, 0.04) 1px, transparent 1px),
        linear-gradient(rgba(27, 58, 107, 0.04) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
}

.education::after {
    right: -4rem;
    top: 2rem;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(196, 154, 10, 0.12), transparent 68%);
    border-radius: 50%;
}

/*===== TIMELINE =====*/
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), var(--navy-light));
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__dot {
    position: absolute;
    left: -2rem;
    top: 1.1rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--gold);
    border: 3px solid var(--bg-alt, var(--bg));
    box-shadow: 0 0 0 2px var(--gold);
    flex-shrink: 0;
}

.education .timeline__dot,
.research .timeline__dot,
.teaching .timeline__dot {
    border-color: var(--bg-alt);
}

.skills .timeline__dot {
    border-color: var(--bg);
}

.timeline__card {
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform 0.25s ease;
}

.timeline__card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
    transform: translateY(-3px);
}

.timeline__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.timeline__header > div {
    flex: 1 1 0;
    min-width: 0;
}

.timeline__title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.2rem;
}

.timeline__org {
    font-size: 0.88rem;
    color: var(--navy);
    display: block;
    font-weight: 500;
}

.timeline__location {
    font-size: 0.84rem;
    color: var(--text-muted);
    display: block;
}

.timeline__date {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    background-color: var(--gold-pale);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: auto;
}

.timeline__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.timeline__detail {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    line-height: 1.6;
    text-align: justify;
}

.timeline__detail a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(196, 154, 10, 0.8);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.timeline__detail a:hover,
.timeline__detail a:focus-visible {
    color: var(--gold);
    text-decoration-color: var(--gold);
    outline: none;
}

.timeline__thesis-block {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    border: 1px solid rgba(27, 58, 107, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.96)),
        radial-gradient(circle at top right, rgba(196, 154, 10, 0.08), transparent 34%);
    box-shadow: 0 10px 24px rgba(27, 58, 107, 0.05);
}

.timeline__thesis-label {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

.timeline__thesis-link {
    display: inline-block;
    color: var(--navy-dark);
    font-size: 0.94rem;
    font-weight: 600;
    line-height: 1.65;
    text-decoration: underline;
    text-decoration-color: rgba(196, 154, 10, 0.85);
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
    transition: color var(--transition), text-decoration-color var(--transition);
}

.timeline__thesis-link:hover,
.timeline__thesis-link:focus-visible {
    color: var(--gold);
    text-decoration-color: var(--gold);
    outline: none;
}

.timeline__list {
    margin-top: 0.75rem;
    padding-left: 1.1rem;
    list-style: disc;
}

.timeline__list li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
    line-height: 1.65;
    text-align: justify;
}

.timeline__list li strong {
    color: var(--navy);
}

/*===== SKILLS =====*/
.skills {
    background-color: var(--bg);
}

.skills::before {
    background:
        radial-gradient(circle at 88% 18%, rgba(40, 85, 160, 0.12), transparent 26%),
        repeating-linear-gradient(135deg, rgba(27, 58, 107, 0.03) 0 12px, transparent 12px 26px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 253, 0.98));
}

.skills::after {
    left: -3rem;
    bottom: 2rem;
    width: 220px;
    height: 220px;
    border-radius: 2rem;
    border: 1px solid rgba(196, 154, 10, 0.12);
    transform: rotate(18deg);
}

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

.skills__group {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.skills__group:hover {
    box-shadow: var(--shadow);
    border-color: var(--navy-light);
}

.skills__group-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.skills__group-header i {
    font-size: 1.3rem;
    color: var(--navy);
}

.skills__group-header h3 {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-dark);
}

/*===== RESEARCH (alt bg) =====*/
.research {
    background-color: var(--bg-alt);
}

.research-focus {
    overflow: visible;
}

.research::before {
    background:
        radial-gradient(circle at 16% 24%, rgba(196, 154, 10, 0.12), transparent 24%),
        radial-gradient(circle at 82% 76%, rgba(27, 58, 107, 0.1), transparent 28%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.research::after {
    inset: auto 3rem 2rem auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px dashed rgba(27, 58, 107, 0.14);
}

.research .timeline__card {
    background-color: var(--bg);
}

.research__overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.research__pill {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

.research__pill-label {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-light);
}

.research__pill p {
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.7;
}

.research__intro {
    max-width: 940px;
    margin-bottom: 2rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.research__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
    align-items: start;
    position: relative;
    transition: min-height 0.35s ease;
}

.research__card {
    position: relative;
    overflow: hidden;
    padding: 1.9rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96)),
        radial-gradient(circle at top right, rgba(196, 154, 10, 0.08), transparent 32%);
    border: 1px solid rgba(27, 58, 107, 0.09);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.research__grid[data-overlay-open] .research__card {
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), opacity var(--transition), filter var(--transition);
}

.research__grid[data-overlay-open] .research__card:not([data-expanded]) {
    opacity: 0.32;
    filter: saturate(0.8);
}

.research__grid[data-overlay-open] .research__card[data-expanded] {
    opacity: 0.55;
    transform: translateY(0);
}

.research__card::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(40, 85, 160, 0.72));
}

.research__card:hover {
    transform: translateY(-4px);
    border-color: rgba(196, 154, 10, 0.42);
    box-shadow: var(--shadow-md);
}

.research__card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.25rem;
}

.research__card-title-wrap {
    flex: 1;
}

.research__card-title {
    font-family: var(--font-body);
    font-size: 1.16rem;
    font-weight: 700;
    color: var(--navy-dark);
    line-height: 1.35;
}

.research__card-icon {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--gold-pale);
    color: var(--navy);
    font-size: 1.25rem;
    transition: transform var(--transition), background-color var(--transition), color var(--transition);
    pointer-events: none;
}

.research__card-preview {
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
}

.research__card-preview p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.78;
    text-align: justify;
    margin: 0;
}

.research__card-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: none;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
}

.research__card-toggle:hover {
    background: rgba(196, 154, 10, 0.08);
    border-color: var(--gold-light);
}

.research__card-toggle i {
    transition: transform var(--transition);
    font-size: 1rem;
}

.research__card[data-research-card][data-expanded] .research__card-toggle i {
    transform: rotate(180deg);
}

.research__expanded-page {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 12;
    padding: clamp(1.25rem, 3vw, 2rem);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.98)),
        linear-gradient(90deg, rgba(196, 154, 10, 0.08), rgba(27, 58, 107, 0.06));
    border: 1px solid rgba(27, 58, 107, 0.14);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(17, 35, 71, 0.22);
    max-height: min(68vh, 640px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(0.6rem) scaleX(0.72);
    transform-origin: left top;
    transition:
        opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.research__expanded-page--from-right {
    transform-origin: right top;
}

.research__expanded-page--open {
    opacity: 1;
    transform: translateY(0) scaleX(1);
}

.research__expanded-page--closing {
    pointer-events: none;
    opacity: 0;
    transform: translateY(0.6rem) scaleX(0.72);
    transition:
        opacity 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
        transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.research__expanded-page::before {
    content: '';
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(40, 85, 160, 0.72));
}

.research__expanded-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.25rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(27, 58, 107, 0.1);
}

.research__expanded-kicker {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--gold);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.research__expanded-title {
    margin: 0;
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    line-height: 1.3;
}

.research__expanded-close {
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(27, 58, 107, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy);
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.research__expanded-close:hover {
    background: var(--gold-pale);
    border-color: rgba(196, 154, 10, 0.5);
    transform: translateY(-1px);
}

.research__expanded-close i {
    font-size: 1.15rem;
}

.research__expanded-preview {
    max-width: 760px;
    margin: 0 auto 1.2rem;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--gold);
    background: rgba(244, 247, 251, 0.82);
    border-radius: var(--radius);
}

.research__expanded-preview p,
.research__expanded-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.78;
    text-align: justify;
}

.research__expanded-preview p {
    margin: 0;
}

.research__expanded-body {
    max-width: 760px;
    margin: 0 auto;
}

.research__expanded-body p {
    break-inside: avoid;
    margin: 0 0 1rem;
}

.research__card-body {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.research__card[data-research-card][data-expanded] .research__card-body {
    opacity: 1;
}

.research__card-body p {
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.78;
    text-align: justify;
    margin: 0;
}

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

    .research__grid[data-overlay-open] .research__card,
    .research__grid[data-overlay-open] .research__card:not([data-expanded]),
    .research__grid[data-overlay-open] .research__card[data-expanded] {
        opacity: 1;
        filter: none;
    }

    .research__expanded-page {
        position: relative;
        left: auto;
        right: auto;
        top: auto !important;
        max-height: none;
        overflow: visible;
        transform: translateY(0.45rem) scaleX(1);
    }

    .research__expanded-page--open {
        transform: translateY(0) scaleX(1);
    }

    .research__expanded-page--closing {
        transform: translateY(0.45rem) scaleX(1);
    }
}

@media (max-width: 480px) {
    .research__card {
        padding: 1.3rem;
    }

    .research__expanded-page {
        padding: 1.15rem;
    }

    .research__expanded-head {
        gap: 0.75rem;
    }

    .research__expanded-preview {
        padding: 0.85rem 0.9rem;
    }
}

/*===== PROJECTS =====*/
.projects {
    background:
        linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.projects__intro {
    max-width: 760px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.projects__cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: start;
}

.project__card {
    border: 1px solid var(--border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.98)),
        radial-gradient(circle at top right, rgba(196, 154, 10, 0.12), transparent 32%);
    border-radius: 26px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    align-self: start;
    position: relative;
}

.project__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(17, 35, 71, 0.12);
    border-color: var(--navy-light);
}

.project__card--open {
    border-color: var(--navy-light);
    box-shadow: 0 24px 56px rgba(17, 35, 71, 0.18);
}

.project__card-toggle {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 1.35rem 1.35rem 1.1rem;
    cursor: pointer;
    position: relative;
    isolation: isolate;
}

.project__card-toggle:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.project__card-kicker {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
}

.project__card-title {
    font-size: 1.22rem;
    margin-bottom: 0.55rem;
    max-width: 18ch;
}

.project__card-brief {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1rem;
    max-width: 34ch;
}

.project__card-index {
    position: absolute;
    right: 1.25rem;
    top: 1rem;
    font-family: var(--font-heading);
    font-size: 2.1rem;
    line-height: 1;
    color: rgba(27, 58, 107, 0.12);
}

.project__card-signals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.project__card-signals span {
    display: inline-flex;
    align-items: center;
    padding: 0.26rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(27, 58, 107, 0.09);
    background: rgba(255, 255, 255, 0.72);
    color: var(--navy);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.project__card-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.55s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease;
    padding: 0 1.35rem;
}

.project__card--open .project__card-detail {
    opacity: 1;
    transform: translateY(0);
    padding: 0 1.35rem 1.35rem;
}

.project__card--open .project__card-toggle {
    background:
        linear-gradient(135deg, rgba(17, 35, 71, 0.06), rgba(196, 154, 10, 0.09)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent);
}

.project__card-detail-inner {
    min-width: 0;
    padding-top: 0.3rem;
}

.project__media {
    margin-bottom: 1.1rem;
    position: relative;
}

.project__media::before {
    content: '';
    position: absolute;
    inset: -8px -8px auto auto;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.16), transparent 68%);
    pointer-events: none;
}

.project__image {
    width: 100%;
    height: auto;
    max-height: 340px;
    object-fit: contain;
    border-radius: 22px;
    border: 1px solid rgba(27, 58, 107, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.project__content {
    min-width: 0;
}

.project__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.project__title {
    font-size: 1.55rem;
    margin-bottom: 0.7rem;
}

.project__summary {
    font-size: 0.96rem;
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 1.1rem;
    text-align: justify;
}

.project__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 1.1rem;
}

.project__grid div {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 251, 0.96));
    border: 1px solid rgba(27, 58, 107, 0.08);
    border-radius: 18px;
    padding: 0.95rem;
    box-shadow: 0 8px 18px rgba(27, 58, 107, 0.05);
}

.project__grid h4 {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.project__grid p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
}

.project__highlights {
    list-style: disc;
    padding-left: 1.1rem;
    border-top: 1px solid rgba(27, 58, 107, 0.08);
    padding-top: 1rem;
}

.project__highlights li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/*===== BLOGS =====*/
.blogs {
    background:
        radial-gradient(circle at top left, rgba(17, 35, 71, 0.08), transparent 30%),
        linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    overflow: visible;
}

.blogs__intro {
    max-width: 780px;
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.8rem;
}

.blogs__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.blog__card {
    text-align: left;
    border: 1px solid rgba(17, 35, 71, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
        linear-gradient(135deg, rgba(196, 154, 10, 0.06), rgba(17, 35, 71, 0.05));
    border-radius: calc(var(--radius-lg) + 6px);
    padding: 1.15rem 1.2rem;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    box-shadow: var(--shadow-sm);
}

.blog__card:hover,
.blog__card:focus-visible {
    transform: translateY(-4px) rotate(-0.4deg);
    box-shadow: var(--shadow);
    border-color: var(--navy-light);
    outline: none;
}

.blog__card--active {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(17, 35, 71, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 220, 0.92)),
        linear-gradient(135deg, rgba(196, 154, 10, 0.08), rgba(17, 35, 71, 0.06));
}

.blog__card-type {
    display: inline-block;
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-light);
}

.blog__card-title {
    font-size: 1.08rem;
    margin-bottom: 0.45rem;
}

.blog__card-excerpt {
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.blogs__viewer {
    position: fixed;
    inset: 0;
    display: block;
    overflow-y: auto;
    padding: 2rem 1.5rem 3rem;
    background: rgba(10, 18, 35, 0.62);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.38s ease, visibility 0.38s ease, backdrop-filter 0.38s ease;
    z-index: 400;
}

.blogs__viewer.blogs__viewer--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.blog__feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: min(1120px, calc(100vw - 3rem));
    max-width: 1120px;
    max-height: none;
    overflow: hidden;
    margin: 0 auto 2rem;
    background:
        radial-gradient(ellipse 60% 40% at 95% 0%, rgba(196, 154, 10, 0.07), transparent 40%),
        linear-gradient(150deg, #ffffff 0%, #f8faff 50%, #fafbfe 100%);
    border-top: 3px solid var(--gold);
    border-radius: calc(var(--radius-lg) + 8px);
    padding: 0;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(28px) scale(0.88);
    transform-origin: center center;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        transform 0.52s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.52s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog__feature[hidden] {
    display: none;
}

.blog__feature--active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    box-shadow: 0 32px 90px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(196, 154, 10, 0.2);
}

.blog__feature-header {
    display: flex;
    justify-content: flex-end;
    padding: 0.6rem 0.75rem 0;
    flex-shrink: 0;
}

.blog__feature-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 1rem;
    overflow: auto;
    padding: 0 1rem 1rem;
}

.blog__close {
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 35, 71, 0.18);
    border-radius: 999px;
    background: rgba(17, 35, 71, 0.06);
    color: var(--navy-dark);
    cursor: pointer;
    z-index: 2;
    transition: background-color var(--transition), transform var(--transition), border-color var(--transition);
}

.blog__close:hover,
.blog__close:focus-visible {
    background: rgba(17, 35, 71, 0.12);
    border-color: rgba(17, 35, 71, 0.35);
    transform: rotate(90deg);
    outline: none;
}

.blog__feature-media {
    width: 100%;
    min-width: 0;
}

.blog__feature-image {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(17, 35, 71, 0.1);
    background-color: rgba(17, 35, 71, 0.04);
}

.blog__feature-video {
    width: 100%;
    height: auto;
    min-height: 220px;
    max-height: 380px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(17, 35, 71, 0.1);
    background-color: rgba(10, 18, 38, 0.72);
}

.blog__feature-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.blog__feature-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(196, 154, 10, 0.1);
    border: 1px solid rgba(196, 154, 10, 0.28);
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
}

.blog__feature-title {
    color: var(--navy-dark);
    font-size: 1.85rem;
    margin-bottom: 0.6rem;
}

.blog__feature-meta {
    color: rgba(17, 35, 71, 0.6);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.blog__feature-summary {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.85;
    margin-bottom: 0.9rem;
    text-align: justify;
}

.blog__feature-section-title {
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    margin: 1.4rem 0 0.65rem;
    border-left: 3px solid var(--gold);
    padding-left: 0.65rem;
}

.blog__feature .btn--outline-navy {
    align-self: flex-start;
    background-color: transparent;
    border-color: var(--navy);
    color: var(--navy);
}

.blog__feature .btn--outline-navy:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}

@media screen and (min-width: 769px) {
    .blog__feature {
        max-height: calc(100vh - 4rem);
    }

    .blog__feature-body {
        flex-direction: row;
        overflow: hidden;
        gap: 0;
    }

    .blog__feature-media {
        flex: 0 0 55%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #0d1825;
        border-radius: var(--radius-lg);
        overflow: hidden;
        margin: 0 0 0 0;
    }

    .blog__feature-image,
    .blog__feature-video {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        object-fit: contain;
        border-radius: 0;
        border: none;
        background-color: transparent;
    }

    .blog__feature-content {
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        padding: 0.5rem 1.5rem 1rem 1.25rem;
        border-left: 1px solid rgba(17, 35, 71, 0.1);
    }
}

/*===== JOURNEYS =====*/
.journeys {
    background:
        radial-gradient(circle at 12% 18%, rgba(196, 154, 10, 0.1), transparent 22%),
        radial-gradient(circle at 88% 76%, rgba(40, 85, 160, 0.1), transparent 24%),
        linear-gradient(180deg, #ffffff 0%, #f6faf8 48%, #f4f7fb 100%);
    padding: 3.75rem 0;
}

.journeys__intro {
    max-width: 680px;
    margin-bottom: 1.1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.journeys__map {
    margin: 1.35rem 0 1rem;
}

.journey-map {
    position: relative;
    width: min(100%, 960px);
    height: min(68vh, 560px);
    min-height: 380px;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid rgba(17, 35, 71, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(236, 245, 242, 0.86)),
        repeating-linear-gradient(0deg, rgba(27, 58, 107, 0.05) 0 1px, transparent 1px 42px),
        repeating-linear-gradient(90deg, rgba(27, 58, 107, 0.04) 0 1px, transparent 1px 46px);
    box-shadow: var(--shadow);
}

.journey-map--static {
    height: auto;
    min-height: 0;
    aspect-ratio: 959 / 593;
}

.journey-map::before {
    content: "";
    position: absolute;
    inset: 0.75rem;
    border: 1px solid rgba(27, 58, 107, 0.08);
    border-radius: calc(var(--radius) - 2px);
    pointer-events: none;
    z-index: 3;
}

.journey-map__leaflet {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.journey-map .leaflet-container {
    font-family: var(--font-body);
    background: #d7edf2;
}

.journey-map .leaflet-tile-pane {
    filter: saturate(1.18) contrast(1.04);
}

.journey-map .leaflet-control-zoom {
    overflow: hidden;
    border: 1px solid rgba(17, 35, 71, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.journey-map .leaflet-control-zoom a {
    border-bottom-color: rgba(17, 35, 71, 0.12);
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-weight: 700;
}

.journey-map .leaflet-control-attribution {
    color: var(--text-muted);
    font-size: 0.65rem;
}

.journey-map__tooltip {
    border: 1px solid rgba(17, 35, 71, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.55rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-sm);
    color: var(--navy-dark);
    font-size: 0.72rem;
    font-weight: 700;
}

.journey-map__tooltip::before {
    display: none;
}

.journey-map__cluster {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--white);
    border-radius: 999px;
    background: var(--navy);
    box-shadow:
        0 0 0 3px rgba(27, 58, 107, 0.2),
        0 14px 28px rgba(17, 35, 71, 0.28);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
}

.journey-map__cluster span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background:
        radial-gradient(circle at 35% 30%, rgba(240, 192, 64, 0.95), rgba(196, 154, 10, 0.95) 62%, rgba(27, 58, 107, 0.9));
}

.journey-leaflet-marker {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
}

.journey-leaflet-marker__dot {
    position: relative;
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    border: 3px solid var(--white);
    border-radius: 999px;
    background: var(--gold);
    box-shadow:
        0 0 0 2px rgba(196, 154, 10, 0.35),
        0 9px 20px rgba(17, 35, 71, 0.28);
    transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.journey-leaflet-marker--group .journey-leaflet-marker__dot {
    width: 1.35rem;
    height: 1.35rem;
    background: var(--navy);
}

.journey-leaflet-marker__count {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1;
}

.journey-leaflet-marker__dot::after {
    content: "";
    position: absolute;
    inset: -0.58rem;
    border: 1px solid rgba(196, 154, 10, 0.38);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--transition), transform var(--transition);
}

.journey-leaflet-marker:hover .journey-leaflet-marker__dot,
.journey-leaflet-marker:focus .journey-leaflet-marker__dot,
.journey-leaflet-marker.journey-map__pin--hover .journey-leaflet-marker__dot,
.journey-leaflet-marker.journey-map__pin--active .journey-leaflet-marker__dot {
    background: var(--navy);
    box-shadow:
        0 0 0 3px rgba(27, 58, 107, 0.2),
        0 14px 28px rgba(17, 35, 71, 0.32);
    transform: scale(1.22);
}

.journey-leaflet-marker:hover .journey-leaflet-marker__dot::after,
.journey-leaflet-marker:focus .journey-leaflet-marker__dot::after,
.journey-leaflet-marker.journey-map__pin--hover .journey-leaflet-marker__dot::after,
.journey-leaflet-marker.journey-map__pin--active .journey-leaflet-marker__dot::after {
    opacity: 1;
    transform: scale(1);
}

.journey-map-popup-wrap .leaflet-popup-content-wrapper {
    border-radius: var(--radius);
    box-shadow: 0 18px 48px rgba(17, 35, 71, 0.22);
}

.journey-map-popup-wrap .leaflet-popup-content {
    width: min(280px, 72vw) !important;
    margin: 0.85rem;
}

.journey-map-popup {
    display: grid;
    gap: 0.5rem;
}

.journey-map-popup__title {
    color: var(--navy-dark);
    font-size: 0.9rem;
    line-height: 1.25;
}

.journey-map-popup__meta {
    width: fit-content;
    margin-top: -0.28rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    background: var(--gold-pale);
    color: var(--navy);
    font-size: 0.66rem;
    font-weight: 700;
}

.journey-map-popup__photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
    gap: 0.4rem;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.15rem;
}

.journey-map-popup__photo {
    position: relative;
    min-height: 74px;
    overflow: hidden;
    border: 1px solid rgba(17, 35, 71, 0.12);
    border-radius: calc(var(--radius) - 2px);
    background: #e7edf4;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.journey-map-popup__photo img,
.journey-map-popup__photo video {
    width: 100%;
    height: 100%;
    min-height: 74px;
    object-fit: cover;
    transition: transform var(--transition), opacity var(--transition);
}

.journey-map-popup__photo:hover img,
.journey-map-popup__photo:focus-visible img,
.journey-map-popup__photo:hover video,
.journey-map-popup__photo:focus-visible video {
    opacity: 0.9;
    transform: scale(1.06);
}

.journey-map-popup__photo:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.journey-map-popup__caption {
    position: absolute;
    right: 0.25rem;
    bottom: 0.25rem;
    left: 0.25rem;
    padding: 0.12rem 0.25rem;
    border-radius: 999px;
    background: rgba(17, 35, 71, 0.76);
    color: var(--white);
    font-size: 0.56rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.journey-map__image,
.journey-map__color,
.journey-map__pins {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.journey-map__image {
    z-index: 1;
    object-fit: contain;
    opacity: 0.58;
    filter: contrast(1.22) saturate(1.2) drop-shadow(0 16px 26px rgba(17, 35, 71, 0.14));
    mix-blend-mode: multiply;
}

.journey-map__color {
    z-index: 2;
    pointer-events: none;
    opacity: 0.72;
    background:
        radial-gradient(circle at 16% 31%, rgba(86, 160, 128, 0.75), transparent 24%),
        radial-gradient(circle at 34% 61%, rgba(196, 154, 10, 0.72), transparent 23%),
        radial-gradient(circle at 55% 42%, rgba(72, 129, 190, 0.66), transparent 24%),
        radial-gradient(circle at 79% 48%, rgba(222, 117, 84, 0.62), transparent 25%),
        linear-gradient(135deg, rgba(41, 116, 154, 0.42), rgba(250, 213, 100, 0.38) 42%, rgba(82, 154, 139, 0.42));
    -webkit-mask: url("https://upload.wikimedia.org/wikipedia/commons/1/1a/Blank_US_Map_%28states_only%29.svg") center / contain no-repeat;
    mask: url("https://upload.wikimedia.org/wikipedia/commons/1/1a/Blank_US_Map_%28states_only%29.svg") center / contain no-repeat;
    mix-blend-mode: multiply;
}

.journey-map__pins {
    z-index: 4;
}

.journey-map__pin {
    position: absolute;
    top: var(--y);
    left: var(--x);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 1rem;
    min-height: 1rem;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--navy-dark);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    transform: translate(-50%, -50%);
}

.journey-map__pin-dot {
    position: relative;
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    border: 3px solid var(--white);
    border-radius: 999px;
    background: var(--gold);
    box-shadow:
        0 0 0 2px rgba(196, 154, 10, 0.35),
        0 9px 20px rgba(17, 35, 71, 0.28);
    transition: transform var(--transition), background-color var(--transition), box-shadow var(--transition);
}

.journey-map__pin-dot::after {
    content: "";
    position: absolute;
    inset: -0.55rem;
    border: 1px solid rgba(196, 154, 10, 0.36);
    border-radius: 999px;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity var(--transition), transform var(--transition);
}

.journey-map__pin-label {
    max-width: 9.5rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(17, 35, 71, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    color: var(--navy-dark);
    font-size: 0.72rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-0.25rem);
    transition: opacity var(--transition), transform var(--transition);
}

.journey-map__pin--label-left {
    flex-direction: row-reverse;
}

.journey-map__pin--label-left .journey-map__pin-label {
    transform: translateX(0.25rem);
}

.journey-map__pin:hover,
.journey-map__pin:focus-visible,
.journey-map__pin--hover,
.journey-map__pin--active {
    z-index: 5;
    outline: none;
}

.journey-map__pin:hover .journey-map__pin-dot,
.journey-map__pin:focus-visible .journey-map__pin-dot,
.journey-map__pin--hover .journey-map__pin-dot,
.journey-map__pin--active .journey-map__pin-dot {
    background: var(--navy);
    box-shadow:
        0 0 0 3px rgba(27, 58, 107, 0.2),
        0 14px 28px rgba(17, 35, 71, 0.32);
    transform: scale(1.22);
}

.journey-map__pin:hover .journey-map__pin-dot::after,
.journey-map__pin:focus-visible .journey-map__pin-dot::after,
.journey-map__pin--hover .journey-map__pin-dot::after,
.journey-map__pin--active .journey-map__pin-dot::after {
    opacity: 1;
    transform: scale(1);
}

.journey-map__pin:hover .journey-map__pin-label,
.journey-map__pin:focus-visible .journey-map__pin-label,
.journey-map__pin--hover .journey-map__pin-label,
.journey-map__pin--active .journey-map__pin-label {
    opacity: 1;
    transform: translateX(0);
}

.journeys__places {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    grid-auto-rows: minmax(145px, 12vw);
    gap: 0.7rem;
}

.journeys__places[hidden] {
    display: none;
}

.journey__place {
    position: relative;
    display: block;
    width: 100%;
    min-height: 145px;
    padding: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #dfe7ef;
    border: 1px solid rgba(17, 35, 71, 0.12);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    isolation: isolate;
    text-align: left;
    font: inherit;
    color: var(--white);
    contain: paint;
    transform: translateY(0);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition),
        background-color var(--transition);
}

.journey__place--large {
    grid-column: span 1;
    grid-row: span 1;
}

.journey__place-media,
.journey__place-img {
    position: absolute;
    inset: 0;
}

.journey__place-media {
    z-index: 0;
}

.journey__place:hover,
.journey__place:focus-visible,
.journey__place--map-hover,
.journey__place--active {
    background-color: rgba(17, 35, 71, 0.08);
    border-color: rgba(196, 154, 10, 0.52);
    box-shadow: 0 18px 40px rgba(17, 35, 71, 0.16);
    transform: translateY(-4px);
    outline: none;
}

.journey__place img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    backface-visibility: hidden;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.45s ease;
}

.journey__place .journey__place-img--active {
    opacity: 1;
    z-index: 2;
}

.journey__place:hover .journey__place-img--active,
.journey__place:focus-visible .journey__place-img--active {
    transform: scale(1.045);
}

.journey__place-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    padding: 3.2rem 0.75rem 0.65rem;
    background: linear-gradient(180deg, transparent 0%, rgba(9, 18, 33, 0.84) 74%);
    z-index: 1;
    transform: translateY(0);
    transition: transform var(--transition), background 0.25s ease;
}

.journey__place:hover .journey__place-content,
.journey__place:focus-visible .journey__place-content {
    background: linear-gradient(180deg, transparent 0%, rgba(9, 18, 33, 0.9) 70%);
    transform: translateY(-3px);
}

.journey__place-kicker {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}

.journey__place-title {
    font-family: var(--font-heading);
    font-size: 0.98rem;
    line-height: 1.25;
}

.journey__place-copy {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.72rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journeys__viewer {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 2rem;
    background: rgba(17, 35, 71, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 9999;
}

.journeys__viewer.journeys__viewer--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.journey__album {
    position: relative;
    width: min(1180px, calc(100vw - 3rem));
    height: min(86vh, 760px);
    margin: 0 auto;
    padding: 0;
    background: transparent;
    opacity: 0;
    transform: scale(0.25);
    pointer-events: none;
    transition:
        opacity 0.3s ease,
        transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.journey__album[hidden] {
    display: none;
}

.journey__album--active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.journey__album-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    height: 3.2rem;
    padding: 0 4rem;
}

.journey__album-kicker {
    display: none;
}

.journey__album-title {
    color: var(--white);
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    margin-bottom: 0;
    text-align: center;
    text-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
}

.journey__album-copy {
    display: none;
}

.journey__slider-controls {
    position: absolute;
    inset: 3.2rem 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
    z-index: 6;
}

.journey__slider-button {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: var(--white);
    cursor: pointer;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
    pointer-events: auto;
    transition: transform var(--transition), background-color var(--transition), opacity var(--transition);
}

.journey__slider-button:hover,
.journey__slider-button:focus-visible {
    transform: scale(1.08);
    background: var(--navy);
    outline: none;
}

.journey__slider-controls--single {
    display: none;
}

.journey__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 999px;
    background: var(--gold);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 10000;
    transition: background var(--transition), transform var(--transition);
}

.journey__close:hover,
.journey__close:focus-visible {
    background: var(--navy);
    transform: rotate(90deg) scale(1.1);
    outline: none;
}

.journey__photos {
    position: relative;
    height: calc(100% - 3.2rem);
    overflow: hidden;
    perspective: 1600px;
}

.journey__photo {
    position: absolute;
    inset: 0;
    width: min(72vw, 780px);
    height: min(68vh, 620px);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: rgba(8, 14, 28, 0.92);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateX(0) scale(0.72) rotateY(0deg);
    transition:
        transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.34s ease;
    will-change: transform, opacity;
}

.journey__photo img,
.journey__photo video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: rgba(8, 14, 28, 0.92);
    user-select: none;
}

.journey__photo--current {
    opacity: 1;
    pointer-events: auto;
    z-index: 4;
    transform: translateX(0) scale(1) rotateY(0deg);
}

.journey__photo--prev {
    opacity: 0.62;
    pointer-events: auto;
    z-index: 3;
    transform: translateX(-34%) scale(0.72) rotateY(12deg);
}

.journey__photo--next {
    opacity: 0.62;
    pointer-events: auto;
    z-index: 3;
    transform: translateX(34%) scale(0.72) rotateY(-12deg);
}

.journey__photo--far {
    opacity: 0;
    z-index: 1;
    transform: scale(0.45);
}

/*===== PUBLICATIONS =====*/
.publications {
    background-color: var(--bg);
}

.publications::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 220, 0.55)),
        repeating-linear-gradient(0deg, rgba(27, 58, 107, 0.03) 0 2px, transparent 2px 32px);
}

.publications::after {
    left: auto;
    right: 2rem;
    top: 2rem;
    width: 180px;
    height: 240px;
    border-radius: 1.5rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(196, 154, 10, 0.06));
    border: 1px solid rgba(27, 58, 107, 0.08);
    transform: rotate(-8deg);
}

.pub__topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
}

.pub__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.pub__hint {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pub__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pub__filter {
    border: 1px solid var(--border);
    background-color: var(--bg-alt);
    color: var(--navy);
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.pub__filter:hover,
.pub__filter:focus-visible {
    border-color: var(--navy-light);
    outline: none;
}

.pub__filter--active {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.pub__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background-color: var(--bg);
    transition: background-color var(--transition);
    cursor: pointer;
    user-select: none;
}

.pub__item[hidden] {
    display: none;
}

.pub__item:last-child {
    border-bottom: none;
}

.pub__item:hover {
    background-color: var(--gold-pale);
}

.pub__item:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}

.pub__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.pub__chevron {
    flex-shrink: 0;
    font-size: 1.4rem;
    color: var(--navy-light);
    transition: transform 0.3s ease, color 0.2s ease;
    margin-top: 0.05rem;
    line-height: 1;
}

.pub__item.pub--open .pub__chevron {
    transform: rotate(180deg);
    color: var(--gold);
}

.pub__item.pub--open {
    background-color: var(--gold-pale);
}

.pub__abstract {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pub__abstract p {
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.75;
    padding-top: 0.75rem;
    margin-top: 0.6rem;
    border-top: 1px dashed var(--border);
    text-align: justify;
}

.pub__item--more {
    background-color: var(--bg-alt);
}

.pub__item--more:hover {
    background-color: var(--gold-pale);
}

.pub__num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--navy);
    color: var(--white);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.2rem;
}

.pub__item--more .pub__num {
    background-color: var(--gold);
    color: var(--navy-dark);
}

.pub__body {
    flex: 1;
}

.pub__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy-dark);
    margin-bottom: 0.25rem;
    line-height: 1.5;
}

.pub__authors {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.pub__venue {
    font-size: 0.85rem;
    color: var(--navy-light);
}

.pub__venue em {
    font-style: italic;
}

.pub__doi {
    font-size: 0.82rem;
    margin-top: 0.2rem;
}

.pub__doi a {
    color: var(--gold);
    font-weight: 600;
    transition: color var(--transition);
}

.pub__doi a:hover {
    color: var(--navy);
}

.pub__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.65rem;
}

.pub__year {
    font-weight: 700;
    color: var(--navy);
}

.pub__venue a {
    color: var(--gold);
    font-weight: 500;
    transition: color var(--transition);
}

.pub__venue a:hover {
    color: var(--navy);
}

.pub__scholar-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.pub__cite-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 0.5rem 1.1rem;
    min-width: 5rem;
}

.pub__cite-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.pub__cite-label {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 0.1rem;
}

.pub__scholar-btn .btn--primary {
    background-color: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.pub__scholar-btn .btn--primary:hover {
    background-color: var(--navy-light);
    border-color: var(--navy-light);
}

.pub__figures {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-top: 0.95rem;
}

.pub__figure {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.pub__figure img,
.pub__figure video,
.pub__figure-placeholder {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

/*===== CONFERENCES (alt bg) =====*/
.conferences {
    background-color: var(--bg-alt);
}

.conferences::before {
    background:
        radial-gradient(circle at 85% 16%, rgba(196, 154, 10, 0.15), transparent 22%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.96), rgba(233, 240, 250, 0.94)),
        repeating-linear-gradient(90deg, rgba(27, 58, 107, 0.03) 0 1px, transparent 1px 28px);
}

.conferences::after {
    left: 2rem;
    bottom: 1.5rem;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(27, 58, 107, 0.09), transparent 65%);
}

/*===== POSTERS SECTION BACKGROUND =====*/
.posters {
    background-color: var(--bg);
}

.posters::before {
    background:
        radial-gradient(ellipse at 15% 80%, rgba(196, 154, 10, 0.13), transparent 32%),
        radial-gradient(ellipse at 88% 12%, rgba(27, 58, 107, 0.08), transparent 28%),
        linear-gradient(170deg, rgba(255, 255, 255, 0.98), rgba(253, 246, 220, 0.55) 60%, rgba(244, 247, 251, 0.92)),
        repeating-linear-gradient(135deg, rgba(27, 58, 107, 0.025) 0 1px, transparent 1px 22px);
}

.posters::after {
    right: 3.5rem;
    bottom: 2.5rem;
    width: 160px;
    height: 220px;
    border-radius: 1.25rem;
    background: linear-gradient(145deg, rgba(196, 154, 10, 0.09), rgba(27, 58, 107, 0.055));
    border: 1px solid rgba(196, 154, 10, 0.15);
    transform: rotate(7deg);
}

.conf__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conf__item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background-color: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    transition: box-shadow var(--transition), border-color var(--transition),
                transform var(--transition), background-color var(--transition);
}

.conf__item:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow);
    transform: translateX(5px);
    background-color: var(--gold-pale);
}

.conf__year {
    flex-shrink: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gold);
    background-color: var(--gold-pale);
    border: 1px solid var(--gold);
    border-radius: var(--radius);
    padding: 0.2rem 0.6rem;
    min-width: 50px;
    text-align: center;
    margin-top: 0.15rem;
}

.conf__body {
    flex: 1;
}

.conf__name {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.conf__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/*===== TEACHING =====*/
.teaching {
    background-color: var(--bg);
}

.teaching::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
        linear-gradient(135deg, rgba(196, 154, 10, 0.04) 25%, transparent 25%) 0 0 / 28px 28px,
        linear-gradient(315deg, rgba(27, 58, 107, 0.035) 25%, transparent 25%) 0 0 / 28px 28px;
}

.teaching::after {
    right: 3rem;
    top: 2rem;
    width: 150px;
    height: 150px;
    border-radius: 1.5rem;
    background: rgba(240, 192, 64, 0.08);
    transform: rotate(14deg);
}

/*===== PROFESSIONAL EXPERIENCE =====*/
.experience {
    background-color: var(--bg-alt);
}

.experience::before {
    background:
        radial-gradient(circle at 14% 74%, rgba(196, 154, 10, 0.12), transparent 20%),
        radial-gradient(circle at 82% 18%, rgba(27, 58, 107, 0.1), transparent 24%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(238, 243, 250, 0.98));
}

.experience::after {
    left: auto;
    right: 4rem;
    bottom: 2rem;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 1px solid rgba(27, 58, 107, 0.1);
}

/*===== PROJECTS =====*/
.projects {
    background:
        linear-gradient(180deg, rgba(253, 246, 220, 0.48), rgba(255, 255, 255, 0.98));
}

.projects::before {
    background:
        radial-gradient(circle at 20% 12%, rgba(196, 154, 10, 0.12), transparent 20%),
        radial-gradient(circle at 84% 82%, rgba(40, 85, 160, 0.09), transparent 24%),
        repeating-linear-gradient(45deg, rgba(27, 58, 107, 0.025) 0 14px, transparent 14px 36px);
}

.projects::after {
    left: 2rem;
    top: 2rem;
    width: 220px;
    height: 220px;
    border-radius: 2rem;
    border: 1px solid rgba(196, 154, 10, 0.14);
    transform: rotate(20deg);
}

/*===== BLOGS =====*/
.blogs {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 251, 0.98));
    overflow: visible;
}

.blogs::before {
    background:
        radial-gradient(circle at 84% 20%, rgba(240, 192, 64, 0.12), transparent 22%),
        linear-gradient(180deg, transparent, rgba(27, 58, 107, 0.03)),
        repeating-linear-gradient(0deg, rgba(27, 58, 107, 0.03) 0 1px, transparent 1px 26px);
}

.blogs::after {
    right: 2rem;
    bottom: 2rem;
    width: 200px;
    height: 140px;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.45);
    border: 1px solid rgba(27, 58, 107, 0.08);
    transform: rotate(-10deg);
}

.journeys::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 251, 0.72)),
        repeating-linear-gradient(90deg, rgba(27, 58, 107, 0.025) 0 1px, transparent 1px 34px);
}

.journeys::after {
    left: 2.5rem;
    bottom: 2.25rem;
    width: 230px;
    height: 150px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(196, 154, 10, 0.08), rgba(40, 85, 160, 0.06)),
        rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(27, 58, 107, 0.08);
    transform: rotate(8deg);
}
.experience .timeline__card {
    background-color: var(--bg);
}

/*===== AWARDS (alt bg) =====*/
.awards {
    background-color: var(--bg-alt);
}

.awards::before {
    background:
        radial-gradient(circle at 18% 20%, rgba(196, 154, 10, 0.12), transparent 20%),
        linear-gradient(180deg, rgba(244, 247, 251, 0.98), rgba(255, 255, 255, 0.98)),
        repeating-linear-gradient(135deg, rgba(27, 58, 107, 0.025) 0 12px, transparent 12px 30px);
}

.awards::after {
    right: 2rem;
    top: 2rem;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 154, 10, 0.08), transparent 68%);
}

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

.awards__col {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.98)),
        radial-gradient(circle at top right, rgba(196, 154, 10, 0.12), transparent 32%);
    border: 1px solid var(--border);
    border-radius: 26px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: default;
}

.awards__col:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(17, 35, 71, 0.12);
    border-color: var(--navy-light);
}

.awards__col-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.awards__col-title i {
    font-size: 1.1rem;
    color: var(--gold);
}

.award__item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.award__item:last-child {
    border-bottom: none;
}

.award__name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.award__org {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.award__year {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy-light);
    margin-top: 0.15rem;
}

/*===== CONTACT =====*/
.contact {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
}

.contact::before {
    background:
        radial-gradient(circle at 18% 18%, rgba(240, 192, 64, 0.16), transparent 20%),
        radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.08), transparent 24%),
        linear-gradient(135deg, rgba(17, 35, 71, 0.22), rgba(40, 85, 160, 0.08));
}

.contact::after {
    right: 3rem;
    top: 2rem;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact .section__title {
    color: var(--white);
}

.contact .section__title::after {
    background: var(--gold);
}

.contact .section__subtitle {
    color: rgba(255, 255, 255, 0.6);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact__info h3 {
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.contact__info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.contact__detail {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact__detail i {
    font-size: 1.1rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.contact__detail a {
    color: rgba(255, 255, 255, 0.85);
    transition: color var(--transition);
}

.contact__detail a:hover {
    color: var(--gold-light);
}

.contact__social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact__social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    transition: var(--transition);
}

.contact__social-link:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy-dark);
}

/*===== CONTACT CARD =====*/
.contact__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: calc(var(--radius) + 0.4rem);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
}

.contact__card-kicker {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-light);
}

.contact__card h3 {
    color: var(--white);
    font-size: 1.35rem;
    line-height: 1.35;
}

.contact__card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.95rem;
    line-height: 1.75;
}

.contact__cta {
    align-self: flex-start;
    text-decoration: none;
}

.contact__note {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.62);
}

.contact__note a {
    color: var(--gold-light);
    text-decoration: underline;
}

.contact .btn--primary {
    align-self: flex-start;
}

/*===== FOOTER =====*/
.footer {
    background-color: var(--navy-dark);
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

.footer__brand h2 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 0.3rem;
}

.footer__brand p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--gold);
}

.footer__copy {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
}

/*===== SCROLL UP =====*/
.scrollup {
    position: fixed;
    right: 1.5rem;
    bottom: -30%;
    background-color: var(--gold);
    color: var(--navy-dark);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: bottom var(--transition), transform var(--transition);
    z-index: 10;
}

.scrollup:hover {
    transform: translateY(-4px);
    background-color: var(--gold-light);
}

.scrollup.show-scroll {
    bottom: 2rem;
}

/*===== MOBILE MENU =====*/
@media screen and (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--navy-dark);
        padding: 4rem 2rem 2rem;
        box-shadow: -4px 0 20px rgba(0,0,0,0.3);
        transition: right 0.35s ease;
        z-index: 200;
    }

    .nav__menu.show-menu {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav__item--more {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: 0.85rem 0;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.85);
    }

    .nav__more-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 0.85rem 0;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.85);
        opacity: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav__more-toggle::after {
        display: none;
    }

    .nav__dropdown {
        position: static;
        min-width: 0;
        max-height: 0;
        padding: 0;
        gap: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        transform: none;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s ease;
    }

    .nav__item--open .nav__dropdown {
        max-height: 480px;
        pointer-events: auto;
    }

    .nav__dropdown-link {
        padding: 0.72rem 0 0.72rem 1rem;
        border-radius: 0;
        font-size: 0.95rem;
        opacity: 0.82;
    }

    .nav__close {
        display: block;
        position: absolute;
        top: 1.2rem;
        right: 1.5rem;
        font-size: 1.5rem;
        color: rgba(255, 255, 255, 0.7);
        cursor: pointer;
    }

    .nav__logo {
        margin-left: 0;
    }

    .nav__toggle {
        display: block;
    }

    .hero__container {
        text-align: center;
        padding: 2rem 1.5rem 4rem;
    }

    .hero__poster {
        width: min(100%, 700px);
        margin-inline: auto;
    }

    .hero__nameboard {
        width: 100%;
        justify-items: center;
    }

    .hero__name-row {
        width: 100%;
        text-align: center;
    }

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

    .about__profile {
        width: 100%;
        max-width: 240px;
        margin: 0 auto;
    }

    .about__photo {
        width: 100%;
    }

    .research__overview,
    .projects__cards,
    .project__grid,
    .blogs__grid {
        grid-template-columns: 1fr;
    }

    .project__image {
        max-height: 300px;
    }

    .hero__science-wave {
        left: 4%;
        right: 4%;
        opacity: 0.3;
    }

    .blog__feature {
        width: min(100%, calc(100vw - 1.5rem));
        margin: 0 auto 1.25rem;
    }

    .blog__feature-body {
        padding: 0 0.75rem 0.75rem;
    }

    .blog__feature-content {
        border-left: none;
        padding: 0;
        overflow-y: visible;
    }

    .blog__feature-image {
        min-height: 220px;
        max-height: 280px;
    }

    .blog__feature-video {
        min-height: 220px;
        max-height: 280px;
    }

    .journeys__places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(150px, 24vw);
    }

    .journey-map {
        height: 420px;
        min-height: 340px;
    }

    .journey-map--static {
        height: auto;
        min-height: 0;
    }

    .journey-map__pin-label {
        display: none;
    }

    .journey__place--large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .journey__album {
        width: min(100%, calc(100vw - 1.5rem));
        height: min(84vh, 700px);
    }

    .journey__photo {
        width: min(76vw, 680px);
        height: min(62vh, 520px);
    }

    .journey__photo--prev {
        transform: translateX(-28%) scale(0.7) rotateY(10deg);
    }

    .journey__photo--next {
        transform: translateX(28%) scale(0.7) rotateY(-10deg);
    }

    .contact__container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline__header {
        flex-direction: column;
        gap: 0.4rem;
    }
}

@media screen and (max-width: 480px) {
    .section {
        padding: 3.5rem 0;
    }

    .section__title {
        font-size: 1.6rem;
    }

    .about__photo img {
        width: min(240px, 100%);
        height: auto;
        aspect-ratio: 6 / 7;
    }

    .photo-fan {
        width: min(240px, 100%);
        aspect-ratio: 6 / 7;
        height: auto;
    }

    .photo-fan__card img {
        width: 100%;
        height: 100%;
    }

    .photo-fan__card {
        transform-origin: bottom center;
    }

    .photo-fan.is-open .photo-fan__card--right {
        z-index: 4;
        transform: rotate(22deg);
    }

    .photo-fan.is-open .photo-fan__card--left {
        z-index: 5;
        transform: rotate(-22deg);
    }

    .photo-fan.is-open .photo-fan__card--center {
        transform: translateY(-10px);
    }

    .photo-fan__card img {
        width: 100%;
        height: 100%;
    }

    .hero__name-pill {
        min-width: 0;
        width: min(100%, 420px);
        margin-inline: auto;
    }

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

    .journeys__places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: minmax(132px, 38vw);
    }

    .journeys__map {
        margin: 1rem 0 0.85rem;
    }

    .journey-map {
        height: 340px;
        min-height: 300px;
    }

    .journey-map--static {
        height: auto;
        min-height: 0;
    }

    .journey-map::before {
        inset: 0.55rem;
    }

    .journey-leaflet-marker__dot,
    .journey-map__pin-dot {
        width: 0.82rem;
        height: 0.82rem;
        border-width: 2px;
    }

    .journey__place--large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .journey__album-header {
        padding: 0 3.6rem;
    }

    .journey__album-title {
        font-size: 1.35rem;
    }

    .journey__photo {
        width: min(82vw, 420px);
        height: min(62vh, 480px);
    }

    .journey__photo--prev {
        transform: translateX(-18%) scale(0.7) rotateY(8deg);
    }

    .journey__photo--next {
        transform: translateX(18%) scale(0.7) rotateY(-8deg);
    }

    .journey__slider-button {
        width: 2.5rem;
        height: 2.5rem;
    }

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

    .pub__topbar {
        align-items: flex-start;
    }

    .pub__item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .hero__btns {
        flex-direction: column;
        align-items: center;
    }

    .hero__btns .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__strap {
        width: 100%;
        border-radius: 20px;
        line-height: 1.6;
    }

    .hero__science-orbit--lg {
        width: min(88vw, 420px);
        height: min(88vw, 420px);
    }

    .hero__science-orbit--sm {
        width: min(64vw, 290px);
        height: min(64vw, 290px);
    }
}


/*===== HERO ENTRANCE =====*/
@keyframes heroNavReveal {
    from { opacity: 0; transform: translateY(-18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes heroBackdropReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes heroOrbReveal {
    from { opacity: 0; transform: scale(0.6); filter: blur(8px); }
    to   { opacity: 1; transform: scale(1);   filter: blur(0); }
}

@keyframes heroSceneReveal {
    from { opacity: 0; transform: scale(0.88); filter: blur(16px); }
    to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}

@keyframes heroScrollReveal {
    from { opacity: 0; transform: translateX(-50%) translateY(18px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes heroIn {
    from { opacity: 0; transform: scale(0.82); filter: blur(8px); }
    to   { opacity: 1; transform: scale(1);    filter: blur(0); }
}
html.intro-complete .hero__poster {
    animation: heroIn 1.1s 0.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/*===== SECTION TITLE UNDERLINE GROW =====*/
[data-title-anim]::after {
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.6s 0.2s ease;
}
[data-title-anim].title-revealed::after {
    transform: scaleX(1);
}

/*===== SCROLL REVEAL =====*/
.anim-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.anim-ready.anim-in {
    opacity: 1;
    transform: none;
}

.section-fade {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.section-fade.anim-in {
    opacity: 1;
    transform: none;
}

/*===== TIMELINE STAGGER =====*/
.timeline-anim .timeline__item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.timeline-anim .timeline__item.anim-in {
    opacity: 1;
    transform: none;
}

/*===== TAG STAGGER =====*/
.tags-anim .tag {
    opacity: 0;
    transform: translateY(8px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease,
                background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.tags-anim.tags-in .tag {
    opacity: 1;
    transform: none;
}

/*===== CONFERENCE ITEMS STAGGER =====*/
.conf-anim .conf__item {
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                box-shadow var(--transition), border-color var(--transition),
                background-color var(--transition);
}
.conf-anim .conf__item.anim-in {
    opacity: 1;
    transform: none;
}

/*===== UPGRADE: SCALE + FADE ENTRANCE =====*/
.anim-ready {
    transform: translateY(24px) scale(0.97);
}


/*===== GLASSMORPHISM NAV =====*/
.header.scroll-header {
    background: rgba(13, 26, 55, 0.82);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.25);
}

/*===== HERO NAME GRADIENT =====*/
.hero__name-row .hero__letter {
    background: linear-gradient(135deg, #ffffff 15%, #f5d980 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


@media screen and (max-width: 768px) {
    .section__bg-icon {
        opacity: 0.55;
    }

    .section__bg-icon--tl,
    .section__bg-icon--tr,
    .section__bg-icon--br {
        font-size: clamp(2rem, 5vw, 3.2rem);
    }

    .about::after,
    .education::after,
    .skills::after,
    .research::after,
    .projects::after,
    .publications::after,
    .conferences::after,
    .teaching::after,
    .experience::after,
    .blogs::after,
    .journeys::after,
    .awards::after,
    .contact::after {
        opacity: 0.45;
        transform: scale(0.82);
        transform-origin: center;
    }
}

@media screen and (max-width: 480px) {
    .section__bg-icons {
        display: none;
    }

    .about::after,
    .education::after,
    .skills::after,
    .research::after,
    .projects::after,
    .publications::after,
    .conferences::after,
    .teaching::after,
    .experience::after,
    .blogs::after,
    .journeys::after,
    .awards::after,
    .contact::after {
        display: none;
    }
}

/*===== STICKY SIDE PANEL â€” Education / Research / Teaching =====*/
.education  .container,
.research   .container,
.teaching   .container,
.experience .container {
    display: grid;
    grid-template-columns: 220px 1fr;
    column-gap: 4rem;
    align-items: start;
}

.education  .section__title,
.research   .section__title,
.teaching   .section__title,
.experience .section__title {
    grid-column: 1;
    position: sticky;
    top: 84px;
    font-size: 1.4rem;
    line-height: 1.35;
    padding-bottom: 0.5rem;
    z-index: 5;
}
.education  .section__title { background: var(--bg-alt); }
.research   .section__title { background: var(--bg-alt); }
.teaching   .section__title { background: var(--bg); }
.experience .section__title { background: var(--bg-alt); }

.education  .section__subtitle,
.research   .section__subtitle,
.teaching   .section__subtitle,
.experience .section__subtitle {
    grid-column: 1;
    margin-bottom: 1rem;
}

.research .research__overview {
    grid-column: 1;
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

.research .research__intro,
.research .research__grid {
    grid-column: 2;
}

.education  .timeline,
.research   .timeline,
.teaching   .timeline,
.experience .timeline {
    grid-column: 2;
    grid-row: 1 / span 10;
}

@media (max-width: 900px) {
    .education  .container,
    .research   .container,
    .teaching   .container,
    .experience .container {
        display: block;
    }
    .education  .section__title,
    .research   .section__title,
    .teaching   .section__title,
    .experience .section__title {
        position: static;
        font-size: 2rem;
        background: none;
        padding-bottom: 0;
    }
    .education  .section__subtitle,
    .research   .section__subtitle,
    .teaching   .section__subtitle,
    .experience .section__subtitle {
        margin-bottom: 3rem;
    }
    .research .research__overview {
        grid-template-columns: repeat(3, 1fr);
        margin-bottom: 2rem;
    }

    .research .section__subtitle {
        margin-bottom: 1.4rem;
    }
}

.research-focus .container {
    display: block;
}

.research-focus .section__title {
    position: relative;
    top: auto;
    font-size: 2rem;
    background: none;
    padding-bottom: 0;
}

.research-focus .section__subtitle {
    margin-bottom: 1.4rem;
}

.research-focus .research__intro,
.research-focus .research__grid {
    grid-column: auto;
}

/*===== SKILLS GRID REFINEMENT =====*/
.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    padding-bottom: 0;
}

.skills__group {
    min-height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 251, 0.98)),
        radial-gradient(circle at top right, rgba(196, 154, 10, 0.1), transparent 30%);
    border: 1px solid rgba(27, 58, 107, 0.08);
    box-shadow: 0 14px 32px rgba(27, 58, 107, 0.08);
}

.skills__group::before {
    content: '';
    position: absolute;
    left: 1.1rem;
    right: 1.1rem;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gold), rgba(40, 85, 160, 0.7));
}

.skills__group:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(27, 58, 107, 0.12);
}

.skills__group .tags {
    gap: 0.55rem;
}

.skills .tag {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(27, 58, 107, 0.08);
    color: var(--navy-dark);
}

@media screen and (max-width: 768px) {
    .skills__grid {
        grid-template-columns: 1fr;
    }
}

/*===== TIMELINE FILL LINE =====*/
.timeline__fill {
    position: absolute;
    left: 7px;
    top: 8px;
    width: 2px;
    height: 0;
    background: linear-gradient(to bottom, var(--gold-light), var(--gold));
    border-radius: 2px;
    pointer-events: none;
    z-index: 1;
    transition: height 0.12s linear;
}

/*===== PUB ITEM SHIMMER =====*/
.pub__item {
    position: relative;
    overflow: hidden;
}
.pub__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.55) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    pointer-events: none;
}
.pub__item:not(.pub--open):hover::after {
    transform: translateX(100%);
    transition: transform 0.55s ease;
}

/*===== AWARDS DIRECTIONAL ANIMATION =====*/
.anim-from-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-from-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-from-left.anim-in,
.anim-from-right.anim-in {
    opacity: 1;
    transform: none;
}

/*===== DOT NAV =====*/
.dot-nav {
    position: fixed;
    right: 1.75rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    opacity: 1;
    transition: opacity 0.4s ease;
}
.dot-nav--hidden {
    opacity: 0;
    pointer-events: none;
}
.dot-nav__dot {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(27, 58, 107, 0.22);
    border: 1.5px solid rgba(27, 58, 107, 0.35);
    transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    display: block;
}
.dot-nav__dot::before {
    content: attr(data-label);
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--navy);
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    box-shadow: var(--shadow-sm);
}
.dot-nav__dot:hover::before { opacity: 1; }
.dot-nav__dot:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: scale(1.3);
}
.dot-nav__dot.dot-active {
    background: var(--gold);
    border-color: var(--gold);
    transform: scale(1.5);
}
/* hide on mobile / tablet */
@media (max-width: 1024px) {
    .dot-nav { display: none; }
}

/*===== POSTER GALLERY =====*/
.posters .container {
    max-width: 1400px;
}

.poster-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.75rem;
}

.poster-gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    cursor: pointer;
    box-shadow: var(--shadow);
    border: 2px solid var(--border);
    aspect-ratio: 2 / 3;
    perspective: 900px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.poster-gallery__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(27, 58, 107, 0.18), 0 0 0 2px rgba(196, 154, 10, 0.35);
    border-color: var(--gold);
}

.poster-gallery__inner {
    width: 100%; height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: inherit;
}

.poster-gallery__item:hover .poster-gallery__inner {
    transform: rotateY(180deg);
}

.poster-gallery__front,
.poster-gallery__back {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    backface-visibility: hidden;
    overflow: hidden;
}

.poster-gallery__back {
    transform: rotateY(180deg);
    background: linear-gradient(145deg, var(--navy-dark) 0%, #1a3566 60%, #0f2044 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem;
}

.poster-gallery__back-icon {
    font-size: 2.6rem;
    color: var(--gold);
    opacity: 0.85;
}

.poster-gallery__back-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    letter-spacing: 0.04em;
}

.poster-gallery__back-cta {
    font-size: 0.72rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(240, 192, 64, 0.4);
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-top: 0.25rem;
}

.poster-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.poster-gallery__item:hover .poster-gallery__front .poster-gallery__img {
    transform: scale(1.04);
}

.poster-gallery__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(17, 35, 71, 0.68) 0%,
        rgba(40, 85, 160, 0.52) 50%,
        rgba(196, 154, 10, 0.28) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.poster-gallery__overlay i {
    color: var(--gold-light);
    font-size: 2.4rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.poster-gallery__item:hover .poster-gallery__overlay {
    opacity: 1;
}

@media (max-width: 900px) {
    .poster-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .poster-gallery {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }
    .poster-gallery::-webkit-scrollbar {
        display: none;
    }
    .poster-gallery__item {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}

/*===== POSTER MODAL =====*/
.poster-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(17, 35, 71, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.poster-modal.active {
    display: flex;
}

.poster-modal.anim-in {
    opacity: 1;
}

.poster-modal__close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--gold);
    border: none;
    border-radius: 50%;
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--white);
    font-size: 1.4rem;
    transition: background var(--transition), transform var(--transition);
    z-index: 10000;
}

.poster-modal__close:hover {
    background: var(--navy);
    transform: rotate(90deg) scale(1.1);
}

.poster-modal__img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.25);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    user-select: none;
}

.poster-modal.anim-in .poster-modal__img {
    transform: scale(1);
    opacity: 1;
}

/*===== HERO PARTICLES CANVAS =====*/
#hero-canvas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/*===== HERO MOUSE GLOW =====*/
.hero__mouse-glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 192, 64, 0.1) 0%, transparent 68%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.hero--mouse-active .hero__mouse-glow {
    opacity: 1;
}

/*===== HERO TYPEWRITER =====*/
.hero__typewriter {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 1rem;
    color: rgba(240, 192, 64, 0.88);
    letter-spacing: 0.05em;
    font-weight: 500;
    position: relative;
    z-index: 2;
    min-height: 1.5em;
}
.hero__cursor {
    display: inline-block;
    margin-left: 1px;
    color: var(--gold);
    animation: cursorBlink 1s step-end infinite;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/*===== ABOUT STATS =====*/
.about__stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}
.about__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.8rem;
    min-width: 110px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.about__stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--gold);
}
.about__stat-num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}
.about__stat-label {
    font-size: 0.72rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.45rem;
    text-align: center;
}

/*===== TIMELINE DOT PULSE =====*/
@keyframes dotPulse {
    0%   { box-shadow: 0 0 0 0   rgba(240, 192, 64, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(240, 192, 64, 0);    }
    100% { box-shadow: 0 0 0 0   rgba(240, 192, 64, 0);    }
}
.timeline__dot--pulse {
    animation: dotPulse 2.2s ease-out infinite;
}

/*===== BUTTON RIPPLE =====*/
.btn {
    overflow: hidden;
    position: relative;
}
.btn__ripple {
    position: absolute;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: rippleAnim 0.55s linear forwards;
    pointer-events: none;
    margin-left: -3px;
    margin-top: -3px;
}
@keyframes rippleAnim {
    to { transform: scale(60); opacity: 0; }
}

/*===== TAG SHIMMER =====*/
.tag {
    position: relative;
    overflow: hidden;
}
.tag::before {
    content: '';
    position: absolute;
    top: 0; left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-20deg);
    pointer-events: none;
}
.tag:hover::before {
    animation: tagShimmer 0.5s ease forwards;
}
@keyframes tagShimmer {
    to { left: 140%; }
}

/*===== CUSTOM CURSOR =====*/
@media (hover: hover) and (pointer: fine) {
    *, *::before, *::after { cursor: none !important; }
}
#cursor-dot,
#cursor-ring {
    display: none;
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate3d(-100px, -100px, 0) translate(-50%, -50%);
    top: 0;
    left: 0;
    will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
    #cursor-dot {
        display: block;
        width: 8px; height: 8px;
        background: var(--gold);
        transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    }
    #cursor-ring {
        display: block;
        width: 34px; height: 34px;
        border: 2px solid rgba(240, 192, 64, 0.5);
        transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
    }
    #cursor-dot.cursor--hover {
        width: 12px; height: 12px;
        background: rgba(240, 192, 64, 0.75);
    }
    #cursor-ring.cursor--hover {
        width: 46px; height: 46px;
        border-color: rgba(240, 192, 64, 0.7);
    }
}

/*===== SECTION TRACKER =====*/
#section-tracker {
    display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
    #section-tracker {
        display: flex;
        position: fixed;
        left: 1.6rem;
        top: 50%;
        transform: translateY(-50%);
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        z-index: 100;
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.4s ease;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }
    #section-tracker.tracker--visible {
        opacity: 1;
    }
    #tracker-num {
        font-size: 0.78rem;
        font-weight: 800;
        color: var(--gold);
        letter-spacing: 0.08em;
    }
    .tracker-line {
        display: block;
        width: 1px;
        height: 28px;
        background: var(--border);
    }
    #tracker-name {
        font-size: 0.68rem;
        font-weight: 600;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }
}

