:root {
    --paper: #f4f8f7;
    --paper-soft: #fbfdfc;
    --ink: #151515;
    --muted: #5b6663;
    --line: #d7e2df;
    --teal: #0f7c80;
    --teal-dark: #07565a;
    --coral: #c83d4b;
    --gold: #658a2f;
    --white: #ffffff;
    --shadow: 0 22px 60px rgba(12, 38, 35, 0.12);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 8%, rgba(15, 124, 128, 0.12), transparent 30rem),
        radial-gradient(circle at 82% 16%, rgba(101, 138, 47, 0.10), transparent 28rem),
        linear-gradient(180deg, var(--paper-soft), var(--paper));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    background: rgba(251, 253, 252, 0.9);
    border-bottom: 1px solid rgba(215, 226, 223, 0.86);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: 1rem;
    line-height: 1.1;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 3vw, 2rem);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.site-nav a {
    position: relative;
    text-decoration: none;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.35rem;
    left: 0;
    height: 2px;
    background: var(--teal);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="true"] {
    color: var(--ink);
}

.site-nav a:hover::after,
.site-nav a[aria-current="true"]::after {
    transform: scaleX(1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.7fr);
    gap: clamp(2rem, 7vw, 7rem);
    align-items: center;
    min-height: min(45rem, calc(100vh - 5rem));
    padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 5rem);
}

.hero-copy {
    max-width: 58rem;
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    line-height: 1.05;
}

h1 {
    margin-bottom: 0;
    max-width: 44rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.8rem, 6.2vw, 5.1rem);
    font-weight: 700;
}

h2 {
    margin-bottom: 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.35rem;
}

.hero-identity {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.6rem);
    margin-bottom: 1.35rem;
}

.hero-identity img {
    width: clamp(5rem, 12vw, 8.5rem);
    aspect-ratio: 1;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center 28%;
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: 0 16px 36px rgba(12, 38, 35, 0.12);
}

.hero-subtitle {
    margin-bottom: 0.8rem;
    color: var(--teal-dark);
    font-size: clamp(1.08rem, 2.2vw, 1.45rem);
    font-weight: 850;
}

.affiliation-strip {
    display: inline-flex;
    width: fit-content;
    flex-wrap: wrap;
    gap: 0.28rem;
    align-items: center;
    margin-bottom: 1.05rem;
    padding: 0.28rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(215, 226, 223, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(12, 38, 35, 0.08);
}

.affiliation-strip::before {
    padding: 0 0.28rem 0 0.42rem;
    color: var(--muted);
    content: "Affiliations";
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.affiliation-badge {
    display: inline-flex;
    width: 2.25rem;
    height: 1.55rem;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 0.16rem 0.3rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 5px 12px rgba(12, 38, 35, 0.06);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.affiliation-badge:hover {
    border-color: rgba(15, 124, 128, 0.42);
    box-shadow: 0 8px 18px rgba(12, 38, 35, 0.1);
    transform: translateY(-2px);
}

.affiliation-badge img {
    display: block;
    width: auto !important;
    max-width: 1.65rem !important;
    height: 0.58rem !important;
    max-height: 0.58rem !important;
    object-fit: contain;
}

.slac-badge {
    width: 2.65rem;
}

.stanford-badge {
    width: 2rem;
}

.stanford-badge img {
    max-width: 1rem !important;
    height: 0.9rem !important;
    max-height: 0.9rem !important;
}

.hero-lede {
    max-width: 42rem;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.1rem;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--ink);
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: var(--white);
    background: var(--ink);
    box-shadow: 0 12px 26px rgba(21, 21, 21, 0.18);
}

.button.secondary {
    background: rgba(255, 255, 255, 0.55);
}

.ai-disclaimer {
    display: flex;
    max-width: 42rem;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.58);
    border: 1px dashed rgba(15, 124, 128, 0.45);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.ai-disclaimer strong {
    color: var(--teal-dark);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ai-disclaimer em {
    display: inline-block;
    margin-top: 0.3rem;
    color: var(--teal-dark);
    font-style: normal;
    font-weight: 750;
}

.hero-contact {
    width: 100%;
    max-width: 34rem;
    justify-self: end;
    padding: clamp(1.2rem, 3vw, 1.8rem);
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero-contact h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.hero-contact p:not(.eyebrow) {
    color: var(--muted);
}

.hero-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 1rem;
}

.hero-contact-grid a {
    display: flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-weight: 900;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.link-label {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 0.55rem;
}

.link-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    fill: currentColor;
}

.hero-contact-grid a::after {
    color: var(--coral);
    content: "->";
}

.hero-contact-grid a:hover {
    border-color: rgba(15, 124, 128, 0.48);
    box-shadow: 0 10px 24px rgba(12, 38, 35, 0.1);
    transform: translateY(-2px);
}

.latest-paper {
    margin-top: 1rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(15, 124, 128, 0.08), rgba(101, 138, 47, 0.08)),
        var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.latest-paper .eyebrow {
    margin-bottom: 0.55rem;
}

.latest-paper h3 {
    margin-bottom: 0.6rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.latest-paper p {
    margin-bottom: 0.75rem;
    color: var(--muted);
}

.latest-paper-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.latest-paper-meta span {
    padding: 0.24rem 0.5rem;
    color: var(--teal-dark);
    background: rgba(15, 124, 128, 0.08);
    border: 1px solid rgba(15, 124, 128, 0.18);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 850;
}

.latest-paper-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.latest-paper-link::after {
    color: var(--coral);
    content: "->";
    transition: transform 180ms ease;
}

.latest-paper-link:hover::after {
    transform: translateX(4px);
}

.current-research {
    max-width: 72rem;
    margin: 0 auto;
    padding: clamp(1.2rem, 3vw, 1.6rem);
    background: var(--white);
    border: 1px solid var(--line);
    border-left: 0.35rem solid var(--teal);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(12, 38, 35, 0.08);
}

.current-research h3 {
    margin-bottom: 0.65rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.current-research p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.intro-band {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    color: var(--white);
}

.intro-stat {
    min-height: 10rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.intro-stat:last-child {
    border-right: 0;
}

.intro-stat strong {
    display: block;
    margin-bottom: 0.45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1;
}

.intro-stat span {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 650;
}

.section {
    padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.section-heading {
    max-width: 58rem;
    margin-bottom: 2rem;
}

.section-heading p:not(.eyebrow) {
    max-width: 45rem;
    color: var(--muted);
    font-size: 1.08rem;
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.theme-card {
    min-height: 17rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.64);
}

.theme-icon {
    display: inline-flex;
    margin-bottom: 3rem;
    color: var(--coral);
    font-weight: 900;
}

.theme-card h3 {
    margin-bottom: 0.8rem;
}

.theme-card p {
    margin-bottom: 0;
    color: var(--muted);
}

.timeline-section {
    background: var(--paper-soft);
    border-top: 1px solid var(--line);
}

.timeline-shell {
    position: relative;
    overflow-x: auto;
    padding: 2.6rem 0.5rem 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 8% 20%, rgba(15, 124, 128, 0.08), transparent 18rem),
        rgba(255, 255, 255, 0.72);
    box-shadow: 0 14px 44px rgba(12, 38, 35, 0.08);
}

.timeline-axis {
    position: absolute;
    top: 5.8rem;
    right: 2rem;
    left: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--teal-dark), var(--teal));
}

.timeline-axis::after {
    position: absolute;
    top: 50%;
    right: -0.55rem;
    width: 0;
    height: 0;
    border-top: 0.48rem solid transparent;
    border-bottom: 0.48rem solid transparent;
    border-left: 0.75rem solid var(--teal);
    content: "";
    transform: translateY(-50%);
}

.timeline {
    position: relative;
    z-index: 1;
    display: grid;
    min-width: 74rem;
    grid-template-columns: repeat(5, minmax(13rem, 1fr));
    gap: 1.15rem;
}

.timeline-item {
    position: relative;
    padding-top: 2rem;
}

.timeline-dot {
    position: absolute;
    top: 0.82rem;
    left: 50%;
    width: 1.15rem;
    height: 1.15rem;
    background: var(--white);
    border: 4px solid var(--teal-dark);
    border-radius: 50%;
    box-shadow: 0 0 0 0.35rem rgba(15, 124, 128, 0.12);
    transform: translateX(-50%);
}

.timeline-card {
    display: grid;
    min-height: 19rem;
    align-content: start;
    padding: 1.1rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 10px 28px rgba(12, 38, 35, 0.08);
}

.timeline-logo-link,
.timeline-logo-pair {
    display: inline-flex;
    height: 4.5rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.timeline-logo-link {
    width: fit-content;
    text-decoration: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.timeline-logo-link:hover {
    opacity: 0.82;
    transform: translateY(-2px);
}

.timeline-logo {
    display: block;
    object-fit: contain;
    max-width: 9rem;
    justify-self: start;
}

.polimi-logo {
    max-width: 8.5rem;
}

.lund-logo {
    max-width: 5.7rem;
}

.eth-logo {
    max-width: 9.5rem;
}

.slac-logo {
    max-width: 5.8rem;
}

.stanford-logo {
    max-width: 3.5rem;
}

.timeline-logo-pair {
    justify-content: flex-start;
    gap: 0.8rem;
}

.timeline-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.timeline-year {
    display: inline-flex;
    color: var(--teal-dark);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-flag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.22rem 0.48rem;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.timeline-flag::before {
    width: 1.15rem;
    height: 0.78rem;
    border: 1px solid rgba(21, 21, 21, 0.16);
    border-radius: 2px;
    content: "";
}

.flag-it::before {
    background: linear-gradient(90deg, #009246 0 33.3%, #ffffff 33.3% 66.6%, #ce2b37 66.6%);
}

.flag-se::before {
    background:
        linear-gradient(90deg, transparent 0 31%, #fecc00 31% 43%, transparent 43%),
        linear-gradient(180deg, transparent 0 38%, #fecc00 38% 52%, transparent 52%),
        #006aa7;
}

.flag-ch::before {
    background:
        linear-gradient(90deg, transparent 0 38%, #ffffff 38% 62%, transparent 62%),
        linear-gradient(180deg, transparent 0 38%, #ffffff 38% 62%, transparent 62%),
        #d52b1e;
}

.flag-us::before {
    background:
        linear-gradient(90deg, #3c3b6e 0 42%, transparent 42%),
        repeating-linear-gradient(180deg, #b22234 0 7.7%, #ffffff 7.7% 15.4%);
}

.timeline-card h3 {
    margin-bottom: 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.timeline-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.notes-section {
    background: #f7fbfa;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.research-card {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.25rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(12, 38, 35, 0.08);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.research-card:hover {
    border-color: rgba(15, 124, 128, 0.48);
    box-shadow: 0 16px 44px rgba(12, 38, 35, 0.13);
    transform: translateY(-4px);
}

.research-card h3 {
    margin-bottom: 0.65rem;
}

.research-card p {
    color: var(--muted);
}

.card-arrow {
    color: var(--coral);
    font-weight: 950;
}

.paper-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.filter-button {
    min-height: 2.6rem;
    padding: 0.55rem 1rem;
    color: var(--muted);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
    color: var(--white);
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.papers-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.paper-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(33, 31, 26, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.paper-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(33, 31, 26, 0.13);
}

.paper-art-link {
    display: block;
    background: #e7efed;
}

.paper-art {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #050607;
}

.paper-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.05rem;
}

.paper-meta,
.paper-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.paper-meta {
    justify-content: space-between;
    margin-bottom: 0.85rem;
    color: var(--teal-dark);
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.paper-body h3 {
    margin-bottom: 0.75rem;
}

.paper-body p {
    flex: 1;
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.96rem;
}

.paper-tags {
    margin-bottom: 1rem;
}

.paper-tags span {
    padding: 0.2rem 0.48rem;
    color: var(--muted);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: capitalize;
}

.paper-link {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.35rem;
    color: var(--ink);
    font-weight: 900;
    text-decoration: none;
}

.paper-link::after {
    content: "->";
    color: var(--coral);
    transition: transform 180ms ease;
}

.paper-link:hover::after {
    transform: translateX(4px);
}

.about-section {
    background:
        linear-gradient(90deg, rgba(15, 124, 128, 0.12), transparent 48%),
        var(--paper);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.about-copy {
    color: var(--muted);
    font-size: 1.12rem;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.area-slider {
    margin-top: 1.6rem;
}

.area-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.area-slider-header .eyebrow {
    margin-bottom: 0;
}

.area-controls {
    display: flex;
    gap: 0.4rem;
}

.area-nav {
    min-height: 2.2rem;
    padding: 0.35rem 0.65rem;
    color: var(--teal-dark);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 900;
}

.area-nav:hover {
    color: var(--white);
    background: var(--teal-dark);
}

.area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.area-tab {
    min-height: 2.35rem;
    padding: 0.42rem 0.75rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 900;
}

.area-tab:hover,
.area-tab.active {
    color: var(--white);
    background: var(--teal-dark);
    border-color: var(--teal-dark);
}

.area-progress {
    height: 0.32rem;
    overflow: hidden;
    margin-bottom: 0.9rem;
    background: rgba(7, 86, 90, 0.12);
    border-radius: 999px;
}

.area-progress-bar {
    display: block;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, var(--teal-dark), var(--coral));
    border-radius: inherit;
    transition: width 260ms ease;
}

.area-viewport {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 14px 38px rgba(12, 38, 35, 0.18);
}

.area-track {
    display: flex;
    transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.area-card {
    position: relative;
    min-width: 100%;
    min-height: 15rem;
    overflow: hidden;
    padding: 1.25rem;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(7, 86, 90, 0.92), rgba(21, 21, 21, 0.9)),
        var(--teal-dark);
    border-radius: var(--radius);
}

.area-card::after {
    position: absolute;
    right: -2rem;
    bottom: -2.5rem;
    width: 11rem;
    height: 11rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    content: "";
}

.area-card-index {
    display: inline-flex;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.14em;
}

.area-card-topline {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.area-kicker {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 850;
}

.area-card h3 {
    position: relative;
    z-index: 1;
    max-width: 34rem;
    margin-bottom: 0.8rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.area-card p {
    position: relative;
    z-index: 1;
    max-width: 38rem;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.78);
}

.area-card p strong {
    color: var(--white);
    font-weight: 950;
}

.area-card .area-ai-aside {
    display: inline-flex;
    width: fit-content;
    margin-top: 1rem;
    padding: 0.38rem 0.58rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.area-dots {
    display: flex;
    gap: 0.45rem;
    justify-content: center;
    margin-top: 0.85rem;
}

.area-dot {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    background: rgba(7, 86, 90, 0.24);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: width 220ms ease, background 220ms ease;
}

.area-dot.active {
    width: 1.8rem;
    background: var(--teal-dark);
}

.cat-popover {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(8, 14, 16, 0.54);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.cat-popover.open {
    opacity: 1;
    pointer-events: auto;
}

.cat-dialog {
    position: relative;
    display: grid;
    width: min(42rem, 100%);
    grid-template-columns: minmax(9rem, 0.8fr) minmax(0, 1fr);
    gap: 1.1rem;
    align-items: center;
    padding: 1rem;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.cat-dialog img {
    width: 100%;
    max-width: 16.25rem;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: 0 14px 36px rgba(12, 38, 35, 0.18);
}

.cat-dialog h2 {
    margin-bottom: 0.7rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.cat-dialog p:not(.eyebrow) {
    color: var(--muted);
}

.cat-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 50%;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
    .area-track,
    .area-progress-bar,
    .area-dot,
    .cat-popover {
        transition: none;
    }
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem clamp(1rem, 5vw, 5rem);
    color: rgba(255, 255, 255, 0.76);
    background: var(--ink);
}

.site-footer strong {
    color: var(--white);
}

.site-footer p {
    margin: 0.2rem 0 0;
}

.site-footer a {
    color: var(--white);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 1120px) {
    .research-grid,
    .papers-grid,
    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-contact {
        max-width: none;
        justify-self: stretch;
    }

    .intro-band,
    .about-layout {
        grid-template-columns: 1fr;
    }

    .intro-stat {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    }

    .intro-stat:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 620px) {
    .site-nav {
        width: 100%;
        justify-content: space-between;
    }

    .theme-grid,
    .research-grid,
    .papers-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .hero-actions .button {
        width: 100%;
    }

    .hero-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-contact-grid {
        grid-template-columns: 1fr;
    }

    .ai-disclaimer {
        flex-direction: column;
    }

    .cat-dialog {
        grid-template-columns: 1fr;
    }
}
