* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

ul, ol {
    list-style: none;
}

:root {
    --text-dark: #1b1a18;
    --text-light: #6a655e;
    --text-color: var(--text-dark);
    --sand: #c9a88f;
    --sand-dark: #b28f78;
    --terracotta: #b5533e;
    --terracotta-dark: #8f3f2f;
    --slate: #4f4a43;
    --blue: #6f8fa3;
    --olive: #5d574b;
    --cream: #f3ebe2;
    --bg-color: var(--cream);
    --bg-secondary: #f1e6da;
    --bg-tertiary: #eadccf;
    --primary-color: var(--terracotta);
    --primary-dark: var(--terracotta-dark);
    --primary-light: #d28d7e;
    --secondary-color: var(--sand-dark);
    --accent-color: var(--terracotta);
    --border-color: rgba(27, 26, 24, 0.15);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.12);
    --hero-overlay: rgba(14, 17, 22, 0.6);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Cormorant Garamond', 'Times New Roman', serif;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

main {
    flex: 1;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.content,
.home-content {
    padding: 4rem 0 5rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.container {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 3rem !important;
    padding-right: 3rem !important;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 1400px) {
    .container {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.navbar--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.navbar--solid {
    background: white;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-brand-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

.nav-brand-text {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    line-height: 1.1;
    white-space: pre-line;
}

.nav-menu {
    display: flex !important;
    list-style: none !important;
    gap: 2.5rem;
    align-items: center;
    margin: 0 !important;
    padding: 0 !important;
}

.nav-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block;
}

.nav-menu li::before,
.nav-menu li::after {
    display: none !important;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--terracotta);
}

.navbar--overlay .nav-brand,
.navbar--overlay .nav-menu a,
.navbar--overlay .nav-menu a::after {
    color: #fff;
}

.navbar--overlay .nav-menu a:hover,
.navbar--overlay .nav-menu a.active {
    color: #fff;
}

/* Hero Section */
.hero {
    position: relative;
    color: white;
    padding: 8rem 0 6rem;
    min-height: 55vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1c2128 0%, #0f1216 100%);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 8, 10, 0.55) 0%, rgba(8, 10, 13, 0.5) 45%, rgba(8, 10, 13, 0.6) 100%);
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2.5rem;
}

.hero--home .hero-media {
    filter: saturate(0.95) brightness(0.8);
}
.hero-inner--left {
    justify-content: flex-start;
    text-align: left;
}

.hero-content {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero--home .hero-content {
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    align-self: center;
    text-align: center;
}

.hero--home .hero-tagline {
    display: inline-block;
    margin-right: -0.35em;
}

.hero-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 0.75rem;
}

.hero-lead {
    font-size: 1.1rem;
    max-width: 640px;
    opacity: 0.9;
}

.hero-role {
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.hero-profile {
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-profile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero--home .hero-title {
    letter-spacing: 0.12em;
}

.hero--home {
    min-height: 75vh;
}

.hero--home .hero-lead {
    max-width: 580px;
}

body.page-home main {
    background: #0f1216;
}

.hero--research .hero-title,
.hero--team .hero-title,
.hero--publications .hero-title {
    text-transform: none;
    letter-spacing: 0.02em;
}

.hero--research,
.hero--simple {
    min-height: 60vh;
}

.hero--research .hero-inner,
.hero--simple .hero-inner,
.hero--publications .hero-inner {
    align-items: flex-end;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
}

.hero--research .hero-inner--left,
.hero--simple .hero-inner--left,
.hero--publications .hero-inner--left {
    align-self: flex-end;
    padding-bottom: 3.5rem;
}

.hero--research .hero-kicker,
.hero--simple .hero-kicker {
    color: var(--terracotta);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.35em;
    white-space: nowrap;
}

.hero--research .hero-title,
.hero--simple .hero-title {
    color: #fff;
    font-size: clamp(3rem, 5vw, 4.75rem);
    font-weight: 800;
    white-space: nowrap;
}

.hero--publications .hero-title {
    white-space: nowrap;
}

.hero--simple .hero-tagline {
    font-size: 0.95rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero--publications {
    min-height: 60vh;
}

.hero--publications .hero-kicker {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.35em;
}

.hero--publications .hero-media {
    background-position: center;
}

.home-content .container {
    max-width: 900px;
}

.section--team {
    color: white;
}

.section--team a {
    color: white;
}

/* Content Sections */

.content h1 {
    margin-bottom: 2.5rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.content ul, .content ol {
    margin-left: 2rem;
    margin-bottom: 2rem;
}

.content li {
    margin-bottom: 0.875rem;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
}

.content a {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.content a:hover {
    color: var(--terracotta-dark);
    border-bottom-color: var(--terracotta);
}

/* Section Dividers */
.content hr {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 4rem 0;
    width: 100%;
    max-width: 150px;
    margin-left: 0;
}

.content hr:first-of-type {
    margin-top: 2.5rem;
}

/* Enhanced spacing for sections */
.content > *:first-child {
    margin-top: 0;
}

.content > *:last-child {
    margin-bottom: 0;
}

/* Card Grid Container */
.cards-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.cards-grid > * {
    min-width: 0;
    width: 100%;
}

/* Section Cards */
.section-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.cards-grid .section-card {
    margin-bottom: 0;
}

.section-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    z-index: 1;
}

.section-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.section-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.section-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}

.section-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.section-card.image-left {
    flex-direction: row;
}

.section-card.image-left .section-card-image {
    width: 180px;
    height: auto;
    min-height: 100%;
}

.section-card.image-right {
    flex-direction: row-reverse;
}

.section-card.image-right .section-card-image {
    width: 180px;
    height: auto;
    min-height: 100%;
}

.section-card h3 {
    margin-top: 0;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* Team Cards */
.team-section {
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.team-member {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

.team-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.team-member h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.team-member .title {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-member .email {
    margin-bottom: 1.25rem;
}

.team-member .email a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.team-member .email a:hover {
    color: var(--primary-dark);
}

.team-member ul {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

/* Project Cards */
.project-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.cards-grid .project-card {
    margin-bottom: 0;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.project-card-content {
    padding: 2.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.project-card.image-left {
    flex-direction: row;
}

.project-card.image-left .project-card-image {
    width: 180px;
    height: auto;
    min-height: 100%;
}

.project-card.image-right {
    flex-direction: row-reverse;
}

.project-card.image-right .project-card-image {
    width: 180px;
    height: auto;
    min-height: 100%;
}

.project-card h3 {
    margin-top: 0;
    color: var(--text-color);
    border-bottom: 2px solid var(--bg-tertiary);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
}

/* Alternating Section Backgrounds */
.content-section {
    padding: 3rem 0;
}

.content-section:nth-child(even) {
    background-color: var(--bg-secondary);
    margin-left: calc(-3rem - 1px);
    margin-right: calc(-3rem - 1px);
    padding-left: 3rem;
    padding-right: 3rem;
    border-radius: 0;
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
    color: var(--text-dark);
}

.section--pillars {
    background: #5b5548;
    color: white;
}

.section--pillars .section-title {
    color: white;
    letter-spacing: 0.3em;
}

/* Pillar Rows */
.pillar-rows {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.pillar-row {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 1.5rem;
    align-items: center;
}

.pillar-row--reverse {
    grid-template-columns: 80% 20%;
}

.pillar-row--reverse .pillar-image {
    order: 2;
}

.pillar-row--reverse .pillar-card {
    order: 1;
    text-align: right;
}

.pillar-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-image img {
    width: 100%;
    height: auto;
    max-width: 200px;
}

.pillar-card {
    padding: 2rem 2.5rem;
    border-radius: 8px;
    color: #1b1a18;
    min-height: 250px;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.pillar-card h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.pillar-desc {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.pillar-row--sand .pillar-card {
    background: #d7c3ad;
}

.pillar-row--blue .pillar-card {
    background: #7a96a8;
    color: #11202a;
}

.pillar-row--terracotta .pillar-card {
    background: #c67b6e;
}

.pillar-row--clay .pillar-card {
    background: #a96f58;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.75rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn--primary {
    background: var(--terracotta);
    color: white;
}

.btn--primary:hover {
    background: var(--terracotta-dark);
}

.btn--secondary {
    background: #d27a6b;
    color: white;
}

.btn--ghost {
    background: #5f5a52;
    color: white;
}

.btn--ghost:hover {
    background: #49443d;
}

/* Team */
.section--team {
    background: #6f8fa3;
    color: white;
}

.team-section {
    margin-bottom: 3rem;
}

.team-section h2 {
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: 0.02em;
    color: #111;
}

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

.team-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.team-card-image {
    width: 140px;
    height: 140px;
    background: rgba(255, 255, 255, 0.2);
    background-image: url("/images/mesa_about_placeholder.png");
    background-size: cover;
    background-position: center;
    border-radius: 6px;
    margin: 0 auto 1rem;
}

.team-card h3 {
    margin: 0.5rem 0 0.25rem;
    color: #111;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0.02em;
}

.team-card-role {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
    color: #111;
}

.team-card-bio {
    font-size: 0.9rem;
    color: #111;
}

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

.alumni-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.alumni-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #111;
}

.alumni-role {
    font-size: 0.9rem;
    color: #111;
    text-align: right;
}

/* Publications (VDL-style: thumbnail + title/authors/venue) */
.section--publications {
    background: #f5f5f0;
    padding: 3rem 0 4rem;
}

.container--publications {
    max-width: 960px;
}

.publication-section-title {
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    color: var(--text-dark, #1f1713);
    font-family: var(--font-serif, Georgia, serif);
    font-size: clamp(1.5rem, 2.5vw, 1.85rem);
    font-weight: 700;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
}

.publication-section-title:first-child {
    margin-top: 0;
}

.publication-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.publication-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.publication-item:last-child {
    border-bottom: none;
}

.publication-thumb {
    flex-shrink: 0;
    width: 160px;
}

.publication-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.publication-thumb a {
    display: block;
}

.publication-body {
    flex: 1;
    min-width: 0;
}

.publication-body p {
    margin: 0 0 0.35rem;
}

.publication-authors {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.45;
}

.publication-authors a {
    color: inherit;
    text-decoration: none;
}

.publication-authors a:hover {
    text-decoration: underline;
}

.publication-title {
    font-weight: 600;
    font-size: 1.05rem;
    line-height: 1.4;
}

.publication-title a {
    color: var(--primary-color, #1a5f7a);
    text-decoration: none;
}

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

.publication-venue {
    font-weight: 400;
    color: #555;
}

.publication-award {
    font-size: 0.9rem;
    color: var(--terracotta, #c45c26);
    font-weight: 600;
}

/* Publication single page (VDL-style detail) */
.publication-single-header {
    padding: 7rem 0 2.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.publication-single-back {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.publication-single-back a {
    color: var(--text-light, #6a655e);
    text-decoration: none;
}

.publication-single-back a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.publication-single-title {
    margin: 0 0 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    letter-spacing: 0.02em;
}

.publication-single-hero {
    margin-top: 1.5rem;
    max-width: 720px;
}

.publication-single-hero img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.publication-single-content .container--narrow {
    max-width: 720px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.publication-citation {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary, #f1e6da);
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.publication-bibtex {
    padding: 1rem 1.25rem;
    background: #2d2d2d;
    color: #e0e0e0;
    border-radius: 8px;
    font-size: 0.85rem;
    line-height: 1.5;
    overflow-x: auto;
}

.publication-bibtex code {
    background: none;
    color: inherit;
    padding: 0;
}

.publication-resources {
    list-style: none;
    margin: 0;
    padding: 0;
}

.publication-resources li {
    margin-bottom: 0.5rem;
}

.publication-resources a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.publication-resources a:hover {
    text-decoration: underline;
}

.list-item {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.list-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.list-item h2 {
    margin-top: 0;
}

.list-item h2 a {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--sand);
    padding: 2.5rem 0;
    color: #1f1713;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.footer-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    display: block;
}

.footer-logo--rock {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.25));
}

.navbar--overlay .nav-brand-logo {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

.footer-contact h4,
.footer-links h4 {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.footer-contact p {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

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

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 2rem;
    }
    
    .navbar {
        padding: 1rem 0;
    }
    
    .navbar .container {
        flex-direction: column;
        gap: 1.25rem;
    }
    
    .nav-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero {
        padding: 5rem 0 4rem;
    }

    .hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .hero-inner--left {
        align-items: flex-start;
        text-align: left;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .content {
        padding: 3rem 0;
    }
    
    .content h1 {
        font-size: 2rem;
    }
    
    .content h2 {
        font-size: 1.75rem;
        margin-top: 3rem;
    }

    .publication-item {
        flex-direction: column;
        gap: 0.75rem;
    }

    .publication-thumb {
        width: 140px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cards-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section-card-content,
    .project-card-content {
        padding: 2rem;
    }
    
    .team-member {
        padding: 2rem;
    }
    
    .section-card.image-left,
    .section-card.image-right,
    .project-card.image-left,
    .project-card.image-right {
        flex-direction: column;
    }
    
    .section-card.image-left .section-card-image,
    .section-card.image-right .section-card-image,
    .project-card.image-left .project-card-image,
    .project-card.image-right .project-card-image {
        width: 100%;
        height: 200px;
    }
    
    .content-section:nth-child(even) {
        margin-left: calc(-2rem - 1px);
        margin-right: calc(-2rem - 1px);
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .section-card,
    .team-member,
    .project-card {
        padding: 1.5rem;
    }
    
    .content-section:nth-child(even) {
        margin-left: calc(-1.5rem - 1px);
        margin-right: calc(-1.5rem - 1px);
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero-profile {
        width: 180px;
        height: 180px;
    }
}
