:root {
    --color-green: #92ffc0;
    --color-txt: #011627;
    --color-green-light: #92ffbf8c;
    --color-purple: #5e4fa7;
    --color-dark-blue: #002661;

    /* Derived / support tokens */
    --color-green-soft: #c9ffe2;
    --color-green-panel: #d7ffe9;
    --color-blue-disclaimer: #cdeefb;
    --color-muted: #5a6b7b;
    --color-line: #e6ecf2;
    --color-white: #ffffff;

    --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

    --maxw: 1140px;
    --radius: 22px;
    --radius-lg: 30px;
    --shadow-sm: 0 6px 20px rgba(1, 22, 39, 0.08);
    --shadow-md: 0 18px 50px rgba(1, 22, 39, 0.14);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-txt);
    background: var(--color-white);
    line-height: 1.65;
    font-size: 17px;
    overflow-x: hidden;
}

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

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

/* ---------------------------------------------------------------- Layout helpers */
.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.section {
    padding-block: 96px;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-dark-blue);
    text-align: center;
    font-size: clamp(1.7rem, 3.4vw, 2.5rem);
    margin-bottom: 56px;
}

/* Scroll-reveal */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    height: 100vh;
    max-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 90px 24px;
    background: var(--color-dark-blue) url("img/home-bg.webp") center / cover
        no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        120% 90% at 50% 10%,
        rgba(0, 38, 97, 0.15),
        rgba(2, 6, 30, 0.55)
    );
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 920px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Hero logo (img/Titans-Logo-Color.png — already includes the bubbles) */
.hero-logo {
    width: clamp(140px, 18vw, 180px);
    animation: float 5s ease-in-out infinite;
}

.hero-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45));
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

.hero-card {
    width: 100%;
    padding: clamp(34px, 6vw, 64px) clamp(28px, 6vw, 70px);
    border-radius: var(--radius);
    background: var(--color-green-light);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
}

.hero-card h1 {
    font-family: var(--font-head);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.35;
    color: white;
    font-size: clamp(1.3rem, 3.2vw, 2.1rem);
}

.scroll-cue {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 14px;
    display: grid;
    place-items: start center;
    padding-top: 7px;
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: #fff;
    animation: scrolldot 1.6s infinite;
}

@keyframes scrolldot {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ---------------------------------------------------------------- About */
.about p {
    max-width: 880px;
    margin: 0 auto 26px;
    color: #243240;
}

.about p:last-of-type {
    margin-bottom: 0;
}

.eu-disclaimer {
    max-width: 880px;
    margin: 56px auto 0;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 30px;
    background: var(--color-blue-disclaimer);
    border-radius: 16px;
}

.eu-disclaimer .eu-flag {
    flex: 0 0 auto;
    width: 78px;
    height: 52px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.eu-disclaimer p {
    margin: 0;
    font-size: 0.86rem;
    font-style: italic;
    line-height: 1.55;
    color: #3d4d5c;
}

/* ---------------------------------------------------------------- Project figures */
.figures-wrap {
    background: var(--color-purple);
    border-radius: var(--radius);
    padding: clamp(30px, 5vw, 48px) clamp(24px, 5vw, 56px)
        clamp(38px, 5vw, 54px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.figures-wrap h2 {
    font-family: var(--font-head);
    font-weight: 800;
    text-align: center;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    margin-bottom: 38px;
}

.figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}

.figure .num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(2.6rem, 6vw, 3.6rem);
    line-height: 1;
}

.figure .label {
    margin-top: 8px;
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.82);
}

/* ---------------------------------------------------------------- Partners slider */

.marquee {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 72px;
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 8%,
        #000 22%,
        #000 78%,
        rgba(0, 0, 0, 0.25) 92%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.25) 8%,
        #000 22%,
        #000 78%,
        rgba(0, 0, 0, 0.25) 92%,
        transparent 100%
    );
}

.marquee-track {
    display: flex;
    width: max-content;
    align-items: center;
    gap: 70px;
    animation: marquee 65s linear infinite;
}

/* Second row travels the opposite way, same speed */
.marquee-track--reverse {
    animation-direction: reverse;
}

.marquee-track img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition:
        filter 0.35s var(--ease),
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease);
}

.marquee-track img:hover {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.12);
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track {
        animation: none;
    }
    .hero-logo {
        animation: none;
    }
    .scroll-cue span {
        animation: none;
    }
}

/* ---------------------------------------------------------------- Project results / Tabs */
.wp-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.wp-tab {
    appearance: none;
    border: 1px solid rgba(87, 228, 145, 0.9);
    cursor: pointer;
    height: 60px;
    min-width: 130px;
    padding: 0 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--color-dark-blue);
    background: var(--color-green);
}

.wp-tab + .wp-tab {
    margin-left: -50px;
}

/* left pills stack above right pills to create the connected "notch" look */
.wp-tab:nth-child(1) {
    z-index: 4;
}
.wp-tab:nth-child(2) {
    z-index: 3;
}
.wp-tab:nth-child(3) {
    z-index: 2;
}
.wp-tab:nth-child(4) {
    z-index: 1;
}

.wp-tab.active {
    background: var(--color-dark-blue);
    color: #fff;
    z-index: 10;
    box-shadow: 0 14px 30px rgba(0, 38, 97, 0.35);
}

.wp-tab:focus-visible {
    outline: 3px solid var(--color-purple);
    outline-offset: 3px;
    z-index: 11;
}

.wp-panels {
    max-width: 960px;
    margin-inline: auto;
}

.wp-panel {
    display: none;
    background: var(--color-green-panel);
    border: 1px solid rgba(146, 255, 192, 0.9);
    border-radius: var(--radius);
    padding: clamp(28px, 4vw, 42px) clamp(26px, 4vw, 44px);
    box-shadow: var(--shadow-sm);
}

.wp-panel.active {
    display: block;
    animation: fadeIn 0.45s var(--ease);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wp-panel .panel-note {
    font-style: italic;
    color: #2f5f49;
    margin-bottom: 16px;
}

.wp-panel ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wp-panel li {
    position: relative;
    padding-left: 26px;
    font-weight: 600;
    color: var(--color-txt);
}

.wp-panel li::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-dark-blue);
}

.wp-panel li a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s var(--ease);
}

.wp-panel li a:hover {
    color: var(--color-purple);
}

/* ---------------------------------------------------------------- Publications */
.pub-list {
    max-width: 900px;
    margin-inline: auto;
    list-style: none;
    counter-reset: pub;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pub-list li {
    counter-increment: pub;
    position: relative;
    padding: 16px 16px 16px 44px;
    border-bottom: 1px solid var(--color-line);
    font-size: 0.96rem;
    color: #2a3744;
    transition: background 0.25s var(--ease);
}

.pub-list li:hover {
    background: #f4fbf7;
}

.pub-list li::before {
    content: counter(pub);
    position: absolute;
    left: 0;
    top: 16px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-green);
    color: var(--color-dark-blue);
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--font-head);
}

.pub-list .pub-title {
    font-weight: 600;
    color: var(--color-dark-blue);
}

.pub-list .pub-meta {
    color: var(--color-muted);
    font-style: italic;
}

.pub-list a.pub-title:hover {
    text-decoration: underline;
}

.pub-list a.pub-link {
    color: #2a3744;
    text-decoration: none;
    display: block;
}

.pub-list a.pub-link strong {
    color: var(--color-dark-blue);
    font-weight: 700;
}

.pub-list a.pub-link:hover {
    text-decoration: underline;
}

/* ---------------------------------------------------------------- Contact */
.contact {
    padding-block: 96px 110px;
}

.contact-card {
    max-width: 720px;
    margin-inline: auto;
    text-align: center;
    padding: 64px 40px;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        160deg,
        var(--color-green-panel),
        var(--color-green-soft)
    );
    border: 1px solid #b6f3d2;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.contact-icon {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-dark-blue);
    box-shadow: var(--shadow-sm);
}

.contact-card h2 {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-dark-blue);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 6px;
    padding: 15px 30px;
    border-radius: 999px;
    background: var(--color-dark-blue);
    color: var(--color-white);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition:
        background 0.3s var(--ease),
        color 0.3s var(--ease),
        transform 0.3s var(--ease),
        box-shadow 0.3s var(--ease);
}

.contact-btn svg {
    transition: transform 0.3s var(--ease);
}

.contact-btn:hover {
    background: var(--color-green);
    color: var(--color-dark-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 600px) {
    .contact-card {
        padding: 48px 24px;
    }

    .contact-btn {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 22px;
        font-size: 0.95rem;
    }
}

/* ---------------------------------------------------------------- Footer */
.footer {
    background: var(--color-dark-blue);
    color: #cdd9ec;
    padding: 26px 24px;
}

.footer-inner {
    max-width: var(--maxw);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px 22px;
    font-size: 0.88rem;
    text-align: center;
}

.footer-inner a {
    color: #cdd9ec;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.25s var(--ease);
}

.footer-inner a:hover {
    color: var(--color-green);
}

.footer-sep {
    opacity: 0.5;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
    .section {
        padding-block: 72px;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 16px;
    }

    .figures-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .eu-disclaimer {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }

    .marquee-track {
        gap: 46px;
    }
    .marquee-track img {
        height: 52px;
    }

    .wp-tab {
        min-width: 0;
        flex: 1;
        padding: 0 8px;
        font-size: 1rem;
        height: 54px;
    }

    .wp-tab + .wp-tab {
        margin-left: -18px;
    }
}
