@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {

    --blue: #183f6b;
    --ink: #173454;
    --pale: #eaf3fb;
    --line: rgba(221, 238, 253, .55);
    --white: #fff;
    --research-navy: #153958;
    --research-blue: #24719d;
    --research-muted: #536b7e;
    --research-paper: rgba(247, 251, 255, .94);
    --research-border: rgba(197, 215, 231, .78);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', Arial, sans-serif;
    color: #fff;
    background: #12304f;
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.video-background {

    position: fixed;

    inset: 0;

    z-index: -2;

    overflow: hidden;

    background: linear-gradient(125deg, #17395b, #486a87)
}

.video-background video {

    position: absolute;

    width: 100%;

    height: 100%;

    object-fit: cover;

    inset: 0
}

.video-tint {

    position: absolute;

    inset: 0;

    background: linear-gradient(105deg, rgba(10, 29, 52, .83), rgba(17, 47, 73, .60)), rgba(12, 40, 72, .20)
}

.site-header {

    height: 84px;

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    z-index: 30;

    display: flex;

    align-items: center;

    gap: 22px;

    padding: 0 max(5vw, 22px);

    background: rgba(236, 245, 252, .92);

    color: var(--ink);

    backdrop-filter: blur(18px);

    box-shadow: 0 1px 0 rgba(255, 255, 255, .35);

    transform: translateY(-110%);

    transition: transform .85s cubic-bezier(.22, 1, .36, 1)
}

body.ready .site-header {

    transform: translateY(0)
}

.brand,

.footer-brand {

    display: flex;

    align-items: center;

    gap: 10px;

    font: 800 1.42rem Manrope, sans-serif;

    letter-spacing: -.04em;

    height: 42px;

    overflow: hidden;
}

.brand-icon,

.footer-brand img {

    width: 42px;

    height: 42px;

    object-fit: contain;

    flex-shrink: 0;
}

.brand-wordmark-wrap {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;
}

.brand-wordmark {

    display: block;

    width: 110px;

    max-width: 110px;

    height: auto;

    object-fit: contain;

    flex-shrink: 0;
}

.header-caption {

    margin-left: auto;

    text-transform: uppercase;

    letter-spacing: .14em;

    font-size: .68rem;

    color: #647d91
}

.menu-button {

    border: 1px solid #cbdce9;

    background: #fff;

    display: flex;

    flex-direction: column;

    justify-content: center;

    gap: 5px;

    width: 45px;

    height: 45px;

    border-radius: 12px;

    padding: 12px
}

.menu-button span {

    height: 2px;

    background: #1e4468;

    width: 100%;

    border-radius: 4px
}

.site-nav {

    position: absolute;

    right: max(5vw, 22px);

    top: 75px;

    min-width: 250px;

    display: grid;

    gap: 4px;

    padding: 12px;

    border-radius: 16px;

    background: rgba(242, 249, 255, .97);

    box-shadow: 0 18px 55px rgba(0, 19, 46, .24);

    border: 1px solid rgba(166, 196, 224, .65);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    opacity: 0;

    visibility: hidden;

    transform: translateY(-8px);

    transition: .25s
}

.site-nav.open {

    opacity: 1;

    visibility: visible;

    transform: none
}

.site-nav a {

    padding: 10px 14px;

    border-radius: 9px;

    font-weight: 600;

    font-size: .92rem
}

.site-nav a:hover,

.site-nav a:focus-visible {

    background: #deebf6
}

.hero {

    min-height: 100vh;

    position: relative;

    display: grid;

    place-items: center;

    padding: 160px max(7vw, 24px) 110px
}

.intro-brand {

    position: fixed;

    left: 50%;

    top: 50%;

    transform: translate(-50%, -50%);

    z-index: 100;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 18px;

    font: 800 clamp(2.8rem, 7vw, 5rem) Manrope, sans-serif;

    letter-spacing: -.05em;

    transition: transform 1.3s cubic-bezier(.2, .8, .2, 1), opacity .85s;

    pointer-events: none;

    color: #173454;
}

.intro-brand img {

    padding: 16px;

    height: 120px;

    background: rgba(255, 255, 255, 0.18);

    box-shadow: 0 12px 40px rgba(8, 27, 51, 0.32);

    border: 1px solid rgba(255, 255, 255, 0.18);

    border-radius: 12px;

    opacity: 0.92;

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);
}

.ready .intro-brand {

    transform: translate(-50%, -170%) scale(.32);

    opacity: 0
}

.hero-copy {

    width: min(100%, 890px);

    text-align: center;

    opacity: 0;

    transform: translateY(24px);

    transition: opacity 1s, transform 1s
}

.ready .hero-copy {

    opacity: 1;

    transform: none
}

.eyebrow {

    font-size: .73rem;

    letter-spacing: .22em;

    text-transform: uppercase;

    font-weight: 700;

    color: #abd5fa;

    margin: 0 0 18px
}

h1,

h2,

h3 {

    font-family: Manrope, Arial, sans-serif;

    line-height: 1.2;

    letter-spacing: -.045em
}

h1 {

    font-size: clamp(2.75rem, 6.4vw, 6.5rem);

    margin: 0 0 25px;

    font-weight: 800
}

h1 em {

    font-style: normal;

    color: #c4e5ff
}

h2 {

    font-size: clamp(2rem, 3.6vw, 3.35rem);

    margin: 0 0 25px
}

h3 {

    font-size: 1.38rem;

    margin: 10px 0
}

main p {

    text-align: justify
}

.lead {

    max-width: 720px;

    margin: 0 auto 33px;

    color: #25445f;

    font-size: 1.15rem;

    font-weight: 500;

    text-align: justify
}

.hero-actions {

    display: flex;

    justify-content: center;

    gap: 12px;

    flex-wrap: wrap
}

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    border: 1px solid transparent;

    border-radius: 9px;

    min-height: 48px;

    padding: 10px 20px;

    font-weight: 700;

    font-size: .9rem;

    transition: transform .2s, background .2s, box-shadow .2s, border-color .2s;

    white-space: normal;

    text-align: center;

    box-shadow: 0 8px 18px rgba(15, 39, 64, .08)
}

.button:hover {

    transform: translateY(-2px)
}

.button.primary {

    background: #eaf4fc;

    color: #17446e;

    box-shadow: 0 10px 22px rgba(28, 91, 150, .14)
}

.button.primary:hover {

    background: white
}

.button.outline {

    border-color: rgba(255, 255, 255, .7);

    background: rgba(255, 255, 255, .07)
}

.scroll-cue {

    position: absolute;

    bottom: 31px;

    letter-spacing: .17em;

    font-size: .7rem;

    display: flex;

    gap: 15px;

    align-items: center;

    color: #d7e8f8
}

.content-section {

    min-height: 72vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 100px max(5vw, 18px);

    scroll-margin-top: 50px
}

.section-panel {

    width: min(1160px, 100%);

    border: 1px solid var(--line);

    background: rgba(19, 50, 80, .62);

    box-shadow: 0 22px 75px rgba(0, 17, 37, .15);

    backdrop-filter: blur(14px);

    -webkit-backdrop-filter: blur(14px);

    padding: clamp(28px, 5vw, 72px);

    border-radius: 22px
}

.section-panel.narrow {

    max-width: 850px
}

.section-panel p {

    color: #e3ecf4;

    max-width: 800px;

    text-align: justify
}

.section-intro {

    margin-bottom: 35px
}

.keywords {

    display: flex;

    gap: 9px;

    flex-wrap: wrap;

    margin-top: 26px
}

.keywords span {

    border: 1px solid rgba(224, 242, 255, .5);

    border-radius: 100px;

    padding: 7px 16px;

    font-size: .83rem
}

.program-grid {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px
}

.program-card,

.person-card {

    padding: 30px;

    background: rgba(232, 244, 252, .95);

    color: var(--ink);

    border-radius: 15px
}

.program-card p,

.person-card p {

    color: #546c80
}

.program-symbol {

    height: 220px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background: #dcecf8;

    color: #244b71;

    overflow: visible;

    margin-bottom: 22px;

    padding: 8px;

    box-sizing: border-box
}

.program-symbol img {

    display: block;

    width: auto;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    margin: 0 auto
}

.program-number {

    font-size: .7rem;

    letter-spacing: .17em;

    font-weight: 800;

    color: #4a7ba2
}

.program-card .button {

    background: #1d537d;

    color: white;

    margin-top: 15px
}

.program-card .button:hover {

    background: #123d64
}

.split-panel {

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 50px;

    align-items: center
}

.publication-art {

    border: 1px solid #b4d0e4;

    border-radius: 14px;

    min-height: 270px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #deeffc
}

.publication-art span {

    letter-spacing: .4em;

    font-weight: 700
}

.publication-art svg {

    width: 220px;

    max-width: 90%
}

.publication-art small {

    letter-spacing: .11em
}

.split-panel .button {

    margin-top: 14px
}

.developer-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

    margin-top: 25px
}

.person-card {

    background: rgba(239, 247, 252, .92)
}

.avatar {

    height: 75px;

    width: 75px;

    border-radius: 50%;

    background: #caddf0;

    display: grid;

    place-items: center;

    font-weight: 800;

    font-size: 1.25rem;

    color: #1c4b72
}

.contact-layout {

    display: grid;

    grid-template-columns: .82fr 1.18fr;

    gap: clamp(25px, 6vw, 75px)
}

.note {

    font-size: .87rem;

    opacity: .82
}

form {

    display: grid;

    gap: 8px
}

form label {

    font-size: .86rem;

    font-weight: 700;

    margin-top: 7px
}

form input,

form textarea {

    width: 100%;

    border: 1px solid rgba(255, 255, 255, .36);

    border-radius: 9px;

    background: rgba(248, 252, 255, .95);

    padding: 13px 15px;

    color: #173454;

    outline: none
}

form input:focus,

form textarea:focus {

    border-color: #8fd0ff;

    box-shadow: 0 0 0 3px rgba(111, 192, 254, .23)
}

form button {

    justify-self: start;

    margin-top: 12px
}

.form-status {

    font-size: .84rem;

    margin: 5px 0
}

.footer {

    padding: 27px max(5vw, 22px);

    background: rgba(13, 35, 55, .86);

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    font-size: .84rem;

    color: #dbe9f4
}

.footer-brand {

    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    text-decoration: none;
    color: #edf8ff;
}

.footer-brand img {

    width: 31px;
    height: 31px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand img:last-child {

    width: 110px;
    height: auto;
}

.subpage-main {

    min-height: 100vh;

    padding: 145px 24px 100px;

    display: flex;

    justify-content: center;

    align-items: flex-start
}

.back-link {

    color: #b7dbf5;

    display: inline-block;

    margin-bottom: 22px
}

.publication-list {

    display: grid;

    gap: 15px;

    margin-top: 35px
}

.publication-entry {

    padding: 24px;

    border: 1px solid rgba(255, 255, 255, .3);

    border-radius: 12px;

    background: rgba(255, 255, 255, .1)
}

.publication-entry h3 {

    margin-top: 0
}

.publication-entry p {

    margin-bottom: 0
}

@media(max-width:700px) {

    .header-caption {

        display: none
    }

    .site-header {

        height: 72px
    }

    .site-nav {

        top: 65px
    }

    .hero {

        padding-top: 135px
    }

    .program-grid,

    .split-panel,

    .developer-grid,

    .contact-layout {

        grid-template-columns: 1fr
    }

    .content-section {

        padding: 60px 17px;

        min-height: unset
    }

    .section-panel {

        padding: 26px 20px
    }

    .program-card {

        padding: 22px
    }

    .publication-art {

        min-height: 220px
    }

    .footer {

        justify-content: center;

        text-align: center
    }

    .intro-brand img {

        width: 85px;

        height: 85px
    }

}

@media(prefers-reduced-motion:reduce) {

    html {

        scroll-behavior: auto
    }

    *,

    *:before,

    *:after {

        animation: none !important;

        transition: none !important
    }

    .intro-brand {

        display: none
    }

    .hero-copy {

        opacity: 1;

        transform: none
    }

    .site-header {

        transform: none
    }

}

.hero h1 {

    color: #173454;
    /* Dark navy blue */

}

/* Highlighted words */

.hero h1 em {

    color: #2877aa;
    /* Academic blue */

}

/* Single developer profile – shared homepage styling */

.developer-section {

    max-width: 1100px
}

.developer-profile {

    display: grid;

    grid-template-columns: minmax(210px, .78fr) minmax(0, 1.5fr);

    gap: clamp(24px, 4vw, 56px);

    align-items: stretch;

    padding: clamp(20px, 3vw, 38px);

    border: 1px solid rgba(219, 236, 250, .65);

    border-radius: 18px;

    background: rgba(243, 249, 253, .94);

    color: #183854;

    box-shadow: 0 15px 35px rgba(0, 25, 48, .14)
}

.developer-photo-wrap {

    width: 100%;

    min-height: 340px;

    border-radius: 13px;

    overflow: hidden;

    background: #dbeaf5
}

.developer-photo {

    display: block;

    width: 100%;

    height: 100%;

    min-height: 340px;

    object-fit: cover;

    object-position: center
}

.developer-bio {

    min-width: 0;

    align-self: center
}

.developer-kicker {

    font-size: .73rem;

    letter-spacing: .16em;

    font-weight: 800;

    color: #316d9a !important;

    margin: 0 0 8px
}

.developer-bio h3 {

    font-size: clamp(1.7rem, 3vw, 2.35rem);

    margin: 0 0 7px;

    color: #173454
}

.developer-position {

    margin: 0;

    font-weight: 750;

    color: #245e89 !important
}

.developer-affiliation {

    margin: 3px 0 20px;

    font-size: .95rem;

    color: #617b91 !important
}

.developer-bio>p:not(.developer-kicker):not(.developer-position):not(.developer-affiliation) {

    color: #3b566e;

    line-height: 1.75
}

.developer-details {

    display: grid;

    gap: 10px;

    margin: 20px 0;

    padding: 17px 0;

    border-top: 1px solid #ccdae7;

    border-bottom: 1px solid #ccdae7
}

.developer-details>div {

    display: flex;

    gap: 8px 20px;

    flex-wrap: wrap;

    justify-content: space-between
}

.developer-details span {

    color: #627b8d;

    font-size: .8rem
}

.developer-details strong {

    color: #193f60;

    font-size: .86rem;

    font-weight: 700
}

.developer-links {

    display: flex;

    gap: 10px;

    flex-wrap: wrap
}

.developer-link {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 11px 18px;

    border: 1px solid #b6cddd;

    border-radius: 9px;

    color: #21567c;

    background: #fff;

    font-size: .88rem;

    font-weight: 750;

    transition: background .2s, transform .2s
}

.developer-link.primary-link {

    background: #1d537d;

    color: #fff;

    border-color: #1d537d
}

.developer-link:hover {

    transform: translateY(-2px);

    background: #e3f2fa
}

.developer-link.primary-link:hover {

    background: #123e64;

    color: #fff
}

@media(max-width:750px) {

    .developer-profile {

        grid-template-columns: 1fr
    }

    .developer-photo-wrap,

    .developer-photo {

        min-height: 0;

        max-height: 430px;

        aspect-ratio: 4/3
    }

    .developer-details>div {

        flex-direction: column;

        gap: 2px
    }

}

/* =============================================================

   ROCKSUITE / REFINEMENTS

   Applies to the homepage, simulations navigation and subpages.

   ============================================================= */

.content-section {
    padding: 58px max(5vw, 18px);
}

.background-video,
.video-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    display: block;
    background: linear-gradient(125deg, #17395b, #486a87);
    filter: blur(2px) saturate(1.05);
    -webkit-filter: blur(2px) saturate(1.05);
}

.video-overlay,
.video-tint {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

.video-overlay {
    background: rgba(15, 35, 60, .35);
}

.video-tint {
    background: rgba(230, 239, 248, 0.20);
}

/* Preserve the requested fixed-sized developer portrait. */

.developer-photo-wrap {
    width: 250px;
    height: 300px;
    min-height: 0;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
}

.developer-photo {
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;

    object-position: center;

    display: block;

}

/* =============================================================

   HOMEPAGE / PUBLICATIONS PREVIEW

   Existing HTML in index.html can remain exactly as supplied.

   ============================================================= */

.publications-preview {

    padding: 86px max(5vw, 18px);

    scroll-margin-top: 74px;

}

.publications-preview-inner {

    width: min(1160px, 100%);

    margin-inline: auto;

    padding: clamp(28px, 4.2vw, 58px);

    border: 1px solid rgba(229, 241, 251, .42);

    border-radius: 22px;

    background: rgba(19, 50, 80, .62);

    color: #e3ecf4;

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

    box-shadow: 0 25px 75px rgba(5, 25, 48, .21);

}

.pub-eyebrow {

    display: block;

    margin-bottom: 12px;

    color: var(--research-blue);

    font-weight: 800;

    font-size: .72rem;

    letter-spacing: .19em;

    text-transform: uppercase;

}

.publications-preview h2 {

    margin: 0 0 8px;

    color: var(--research-navy);

    font-size: clamp(2rem, 3.5vw, 3.1rem);

    line-height: 1.15;

}

.publications-preview>.publications-preview-inner>.research-collection-heading {

    margin: 0 0 20px;

    justify-content: flex-start;

}

.research-count {

    display: inline-flex;

    align-items: center;

    width: fit-content;

    white-space: nowrap;

    padding: 7px 12px;

    border: 1px solid rgba(36, 113, 157, .2);

    border-radius: 100px;

    color: #315e7c;

    background: rgba(222, 237, 248, .7);

    font-size: .7rem;

    letter-spacing: .12em;

    font-weight: 800;

}

.research-introduction {

    color: #e3ecf4;

    margin: 0 0 32px;

    font-size: 1rem;

    line-height: 1.85;

    text-align: justify;

}

.publications-preview .research-list {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 15px;

    align-items: stretch;

    margin-bottom: 28px;

}

.publications-preview .research-item {

    display: flex;

    flex-direction: column;

    gap: 14px;

    min-width: 0;

    padding: 25px;

    border: 1px solid var(--research-border);

    border-radius: 15px;

    background: rgba(255, 255, 255, .88);

    box-shadow: 0 7px 25px rgba(15, 48, 75, .045);

    transition: transform .22s ease, box-shadow .22s ease;

}

.publications-preview .research-item:hover {

    transform: translateY(-4px);

    box-shadow: 0 15px 35px rgba(15, 48, 75, .12);

}

.publications-preview .research-index {

    color: #b1cadb;

    font: 800 2.3rem Manrope, sans-serif;

    letter-spacing: -.075em;

    line-height: 1;

}

.publications-preview .research-content {

    display: flex;

    flex: 1;

    flex-direction: column;

    align-items: flex-start;

}

.research-meta {

    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 10px;

    flex-wrap: wrap;

    width: 100%;

    color: #286f98;

    font-size: .7rem;

    font-weight: 800;

    letter-spacing: .08em;

}

.research-status {

    display: inline-flex;

    align-items: center;

    flex-shrink: 0;

    border-radius: 100px;

    padding: 5px 10px;

    font-size: .68rem;

    font-weight: 800;

    letter-spacing: 0;

    line-height: 1.4;

    text-transform: none;

}

.research-status.available {

    background: #e2f2ea;

    color: #1e7650;

}

.research-status.pending {

    background: #eaf0f5;

    color: #60798b;

}

.publications-preview .research-content h3 {

    color: var(--research-navy);

    margin: 16px 0 12px;

    font-size: clamp(1.13rem, 1.45vw, 1.35rem);

    line-height: 1.35;

}

.publications-preview .research-content p {

    flex: 1;

    color: var(--research-muted);

    margin: 0 0 21px;

    font-size: .92rem;

    line-height: 1.75;

    text-align: justify;

}

.research-download,

.pub-main-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

    max-width: 100%;

    padding: 11px 17px;

    border: 1px solid transparent;

    border-radius: 9px;

    color: #fff;

    background: #1a527a;

    font-size: .86rem;

    font-weight: 700;

    line-height: 1.5;

    transition: transform .2s ease, background .2s ease;

}

.pub-main-button {

    padding: 14px 23px;

    background: var(--research-navy);

}

.research-download:hover,

.pub-main-button:hover {

    background: #277caf;

    transform: translateY(-2px);

}

.research-download:focus-visible,

.pub-main-button:focus-visible {

    outline: 3px solid #74c2f0;

    outline-offset: 3px;

}

/* =============================================================

   PUBLICATIONS PAGE / ACADEMIC RESEARCH COLLECTION

   Existing .research-collection HTML can remain as supplied.

   ============================================================= */

.research-page {

    width: min(1220px, 100%);

    margin: 0 auto;

    padding: 132px clamp(18px, 4vw, 52px) 100px;

    color: var(--research-navy);

}

.research-header {

    margin: 0 auto 36px;

    max-width: 820px;

    text-align: center;

}

.research-header h1 {

    margin: 0 0 14px;

    color: #fff;

    font-size: clamp(2.5rem, 5vw, 4rem);

}

.research-header p {

    margin: 0;

    color: #e1edf6;

    font-size: 1.08rem;

    line-height: 1.8;

}

.research-collection {

    width: min(1120px, 100%);

    margin: 0 auto;

    padding: clamp(28px, 4.8vw, 64px);

    border: 1px solid rgba(218, 234, 247, .7);

    border-radius: 22px;

    background: var(--research-paper);

    box-shadow: 0 25px 75px rgba(4, 22, 43, .21);

    backdrop-filter: blur(18px);

    -webkit-backdrop-filter: blur(18px);

}

.research-collection-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 20px;

}

.research-collection-heading h2 {

    margin: 0;

    max-width: 760px;

    color: var(--research-navy);

    font-size: clamp(1.75rem, 3vw, 2.7rem);

}

.research-collection>.research-introduction {

    padding-bottom: 30px;

    margin-bottom: 4px;

    border-bottom: 1px solid var(--research-border);

}

.research-collection .research-list {

    display: grid;

    gap: 0;

}

.research-collection .research-item {

    display: grid;

    grid-template-columns: 70px minmax(0, 1fr);

    gap: clamp(18px, 3vw, 46px);

    padding: 38px 0;

    border-bottom: 1px solid var(--research-border);

}

.research-collection .research-item:last-child {

    border-bottom: none;

    padding-bottom: 0;

}

.research-collection .research-index {

    color: #94b4ca;

    font: 800 clamp(2.2rem, 3.7vw, 3.3rem) Manrope, sans-serif;

    letter-spacing: -.085em;

    line-height: 1;

}

.research-collection .research-content {

    min-width: 0;

}

.research-collection .research-content h3 {

    color: var(--research-navy);

    margin: 13px 0 18px;

    font-size: clamp(1.35rem, 2vw, 1.85rem);

    line-height: 1.35;

}

.research-collection .research-content p {

    color: #465e72;

    max-width: 820px;

    margin: 0 0 22px;

    font-size: .98rem;

    line-height: 1.95;

}

.research-collection .research-download {

    margin-top: 2px;

}

@media (max-width: 970px) {

    .publications-preview .research-list {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }

    .publications-preview .research-item:last-child {

        grid-column: 1 / -1;

    }

}

@media (max-width: 700px) {

    .developer-profile {

        grid-template-columns: 1fr;

    }

    .developer-photo-wrap {

        width: min(250px, 100%);

        height: 300px;

        min-height: 0;

        aspect-ratio: auto;

    }

    .developer-photo {

        width: 100%;

        height: 100%;

        min-height: 0;

        max-height: none;

        aspect-ratio: auto;

    }

    .publications-preview {

        padding: 55px 17px;

    }

    .publications-preview-inner {

        padding: 25px 20px;

    }

    .publications-preview .research-list {

        grid-template-columns: 1fr;

    }

    .publications-preview .research-item:last-child {

        grid-column: auto;

    }

    .research-page {

        padding: 105px 16px 65px;

    }

    .research-header {

        margin-bottom: 25px;

    }

    .research-collection {

        padding: 25px 20px;

    }

    .research-collection-heading {

        align-items: flex-start;

        flex-direction: column;

    }

    .research-collection .research-item {

        grid-template-columns: 1fr;

        gap: 10px;

        padding: 28px 0;

    }

    .research-collection .research-content h3 {

        margin-top: 10px;

    }

    .research-meta {

        gap: 9px;

    }

}

@media (prefers-reduced-motion: reduce) {

    .publications-preview .research-item,

    .research-download,

    .pub-main-button {

        transition: none;

    }

}

/* =============================================================
   ROCKSUITE — HERO LEGIBILITY & FINAL COLOUR ADJUSTMENTS
   Applied after the original stylesheet to ensure priority.
   ============================================================= */

/* Readable navy headings on the light background video */
.hero h1 {
    color: #173454;
    text-shadow: 0 1px 12px rgba(255, 255, 255, .23);
}

.hero h1 em {
    color: #2877aa;
}

.hero .lead {
    color: #000000;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 10px rgba(255, 255, 255, .35);
}

.hero .eyebrow {
    color: #1d537d;
    font-weight: 800;
}

/* Explore Simulations — solid navy call to action */
.hero-actions .button.primary {
    background: #173454;
    color: #fff;
    border: 2px solid #173454;
    box-shadow: 0 5px 17px rgba(15, 39, 65, .16);
}

.hero-actions .button.primary:hover,
.hero-actions .button.primary:focus-visible {
    background: #2877aa;
    border-color: #2877aa;
    color: #fff;
}

/* About RockSuite — high contrast outline button */
.hero-actions .button.outline {
    background: rgba(255, 255, 255, .90);
    color: #173454;
    border: 2px solid #173454;
    font-weight: 700;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 5px 17px rgba(15, 39, 65, .08);
}

.hero-actions .button.outline:hover,
.hero-actions .button.outline:focus-visible {
    background: #173454;
    border-color: #173454;
    color: #fff;
}

/* Scroll to Explore — dark text and visible arrows/icons */
.hero .scroll-cue,
.scroll-cue {
    color: #173454;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(255, 255, 255, .65);
}

.scroll-cue svg {
    stroke: currentColor;
    color: #173454;
}

.scroll-cue a,
.scroll-cue span {
    color: inherit;
}

/* Keep publication introduction readable on light paper panel */
.research-collection>.research-introduction {
    color: #465e72;
}

/* Homepage research panel is dark, so headings and intro are light */
.publications-preview .pub-eyebrow {
    color: #a8d9fa;
}

.publications-preview h2 {
    color: #fff;
}

.publications-preview>.publications-preview-inner>.research-introduction {
    color: #e3ecf4;
}

.publications-preview>.publications-preview-inner>.research-collection-heading .research-count {
    color: #173454;
}

@media (max-width: 700px) {
    .hero .scroll-cue {
        bottom: 18px;
        font-size: .71rem;
    }

    .hero-actions .button {
        min-height: 48px;
    }
}
/* =============================================================
   INTRO — keep the background video hidden during the splash logo.
   It fades in once the logo has moved up and the hero text shows.
   ============================================================= */

/* Light backdrop on the homepage while the video is hidden,
   so the splash logo keeps the same look as before */
body:has(#intro-brand) {
    background: #f4f7fa;
}

.background-video {
    opacity: 0;
    visibility: hidden;
}

body.ready .background-video {
    opacity: 1;
    visibility: visible;
    transition: opacity 1.2s ease 1s, visibility 0s linear 1s;
}

@media (prefers-reduced-motion: reduce) {
    .background-video {
        opacity: 1;
        visibility: visible;
    }
}

/* Larger "A simulation platform" label above the hero heading */
.hero .eyebrow {
    font-size: clamp(1rem, 1.6vw, 1.35rem);
    letter-spacing: .2em;
    margin-bottom: 22px;
    text-align: center;
}
