/* Hybrid Style: Zoox White + Claude Modern Elements */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;700&family=Inter:wght@300;400;500;600;700;800;900&family=Space+Mono:wght@400;700&display=swap');

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

:root {
    /* ════════════════════════════════════════
       DARK THEME + SUNSET ACCENT PALETTE
       Design spec — April 2026
       ════════════════════════════════════════ */

    /* ── Light base layers ── */
    --bg-white:    #FFFFFF;   /* page base — pure white */
    --bg-light:    #F5F5F5;   /* section alternate */
    --bg-card:     #EBEBEB;   /* card surface */
    --bg-card-alt: #DEDEDE;   /* elevated card / hover */
    --bg-nav:      rgba(247,245,242,0.92);  /* nav frosted */

    /* ── Text hierarchy ── */
    --text-dark:   #2A2420;   /* primary — warm near-black */
    --text-light:  #ffffff;
    --text-muted:  #7A6E6A;   /* secondary — warm gray */
    --text-subtle: #A89E9A;   /* tertiary — metadata */

    /* ── Sunset accent palette ── */
    --coral:       #E8967E;   /* coral     — "companions", highlights */
    --dusty-rose:  #C56B75;   /* dusty rose — CTA buttons */
    --lavender:    #B48BA8;   /* lavender   — labels, tags */
    --mauve:       #9878A8;   /* mauve      — secondary accent */
    --deep-blue:   #4A7DBF;   /* blue       — links, active */
    --salmon:      #D4907B;   /* salmon     — warm hover */
    --terracotta:  #C06858;   /* terracotta — dots, icons */
    --burgundy:    #7D4055;   /* burgundy   — deep accent */

    /* Legacy aliases (keeps existing rules working) */
    --accent:           #9878A8;
    --accent-hover:     #B48BA8;
    --accent-red:       #C06858;
    --accent-cta:       #C56B75;
    --accent-cta-hover: #B35B65;
    --accent-soft:      rgba(152,120,168,0.12);
    --accent-glow:      rgba(200,107,117,0.20);

    /* ── Borders ── */
    --border:       #E4DDD8;
    --border-light: rgba(0,0,0,0.05);

    /* ── Badge colors ── */
    --badge-award-bg:     rgba(200,104,88,0.18);
    --badge-award-text:   #E8967E;
    --badge-media-bg:     rgba(74,125,191,0.15);
    --badge-media-text:   #7BAAD4;
    --badge-talk-bg:      rgba(180,139,168,0.15);
    --badge-talk-text:    #C8A8C8;
    --badge-workshop-bg:  rgba(152,120,168,0.12);
    --badge-workshop-text:#B48BA8;
    --badge-project-bg:   rgba(74,125,191,0.12);
    --badge-project-text: #7BAAD4;

    --section-gap: 10rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.7;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(0,0,0,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent);
    pointer-events: none;
    opacity: 0.6;
}

/* Header & Navigation - Zoox Style: Clean white background */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease;
}

/* Zoox Style: Bold, modern typography */

header .logo {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    color: #ffffff;
    transition: color 0.4s ease;
    line-height: 1;
}

header .logo:hover {
    color: var(--accent);
}

header .nav-links a {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.4s ease;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

header .nav-links a:hover,
header .nav-links a.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

header .lang-toggle a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.82rem !important;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px;
    color: rgba(255,255,255,0.85);
    background: transparent;
    letter-spacing: 0.04em;
    transition: all 0.3s ease;
}

header .lang-toggle a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff !important;
    border-color: rgba(255,255,255,0.6) !important;
}

/* Scrolled state remains the same */
header.scrolled {
    background: rgba(9,9,11,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

header.scrolled .logo {
    color: #ffffff;
}

header.scrolled .nav-links a {
    color: rgba(255,255,255,0.7);
}

header.scrolled .nav-links a:hover,
header.scrolled .nav-links a.active {
    color: var(--coral);
}

/* Nav upcoming dot stays visible on dark hero */
header .nav-upcoming-dot {
    background: var(--salmon);
}

header.scrolled .lang-toggle a {
    border-color: rgba(255,255,255,0.25) !important;
    color: rgba(255,255,255,0.7);
}

header.scrolled .lang-toggle a:hover {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
    border-color: rgba(255,255,255,0.5) !important;
}

nav {
    max-width: 100%;
    margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    /* Base styles inherited from header .logo */
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

/* Hero Section - Zoox Style: Bold, white, spacious */
#hero-slider {
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: #0a0d12;   /* dark base so pre-load has no cream flash */
    display: flex;
    align-items: center;
    justify-content: center;
}


.slider-container {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
}

.slides {
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 100vh;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Más visible (antes 0.4) */
    filter: blur(2px); /* Menos blur para ver mejor la imagen (antes 3px) */
}

/* Video hero styling */
.slide video, #hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.6);
    transform-origin: 80% 50%;
    opacity: 0.88;
}

/* Top gradient overlay for header legibility */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
}



/* Slider Arrows */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Sections */
section {
    padding: 6rem 0;
    background: transparent;
}

section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}


/* Project Cards - Zoox Style: Clean, white cards */
.project-card {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.project-card .project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-card .project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,0.5) 90%, transparent 100%);
    z-index: 2;
}

/* Year/Badge - Hybrid style: colored badges */
.project-card .project-year {
    display: inline-block;
    font-family: 'Space Mono', 'Inter', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--badge-project-bg);
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 0.75rem;
}

/* Title - large and prominent */
.project-card .project-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
}

/* Short description - Zoox style */
.project-card .project-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.5rem;
    max-width: 90%;
}

/* Collaborators - subtle */
.project-card .project-collab {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    font-style: italic;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}

/* Type label below description */
.project-card .project-label {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-red);
    opacity: 0.8;
}

.project-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Cards without images - text style */
.project-card:not(.has-image) {
    display: flex;
    align-items: flex-end;
    background: rgba(255,255,255,0.03);
}

.project-card:not(.has-image) .project-info {
    position: relative;
    background: none;
    overflow: hidden;
}

.project-card.image-card .project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-card.image-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.project-card.image-card:hover .project-image img {
    transform: scale(1.05);
}

.project-card.image-card .project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.95) 0%,
        rgba(0,0,0,0.85) 25%,
        rgba(0,0,0,0.6) 50%,
        rgba(0,0,0,0.4) 75%,
        rgba(0,0,0,0.5) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    color: white;
    z-index: 2;
}

.project-card.image-card .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card.image-card .project-content h3 {
    color: white;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.project-card.image-card .project-content .description {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card.image-card .project-meta {
    margin-top: auto;
    padding-top: 0.75rem;
}

.project-card.image-card .project-meta .date {
    color: rgba(255,255,255,0.7);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    display: block;
    margin-bottom: 0.25rem;
}

.project-card.image-card .project-meta .institution {
    color: rgba(255,255,255,0.6);
    font-size: 0.8rem;
}

.project-card.text-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

.project-card.text-card h3 {
    color: white;
}

.project-card.text-card .description {
    color: rgba(255,255,255,0.7);
}

.project-card.text-card .date,
.project-card.text-card .institution {
    color: rgba(255,255,255,0.5);
}

.project-card.dark-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
}

/* Type badge for Works (Exhibition, etc.) */
.project-card .type-badge {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.project-card.dark-card .type-badge {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card.image-card .type-badge {
    background: linear-gradient(135deg, #ff6b7a 0%, #c44569 50%, #6b9dc4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.project-card.dark-card h3 {
    color: white;
}

.project-card.dark-card .meta {
    color: rgba(255,255,255,0.7);
}

/* Image cards */
.project-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

/* Group badge on image cards */
.group-badge {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.group-badge::before {
    content: '';
    width: 20px;
    height: 20px;
    background: var(--accent);
    display: block;
}

/* Card link overlay */
.project-card .card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* Text card content */
.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.project-content .description {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-meta {
    margin-top: auto;
    padding-top: 1rem;
}

.project-meta .date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.project-meta .institution {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-meta .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.project-meta .tag {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-meta .tag::before {
    content: '#';
}


/* CV Content styles moved to footer */

.about-contact-footer .about-social a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
}

.about-contact-footer .about-social a:hover {
    color: var(--accent-red);
}

#about h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-content {
    max-width: 1400px;
    margin: 0 auto;
}

/* About Hero - Single column with background image */
.about-hero {
    display: block;
    margin-bottom: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-text {
    padding-left: 2rem;
}

.about-text .bio-main {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-muted); /* Softer tone for "based in Boston" */
    margin-bottom: 0.5rem;
}

.about-text .bio-role {
    font-style: italic;
    display: inline;
    background: linear-gradient(135deg, #e63946 0%, #c44569 30%, #7b68a6 60%, #457b9d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s;
}

.about-text .bio-role.fade {
    opacity: 0;
}

.about-text .bio-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.5rem;
}

.about-text .bio-secondary {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2rem;
    max-width: 500px;
}

.about-contact {
    display: flex;
    gap: 2rem;
    align-items: baseline;
    margin-top: 1.5rem;
}

.contact-btn {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid white;
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-btn:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-color: var(--accent-pink);
}

.about-social {
    display: flex;
    gap: 1.5rem;
}

.about-social a {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: color 0.2s;
}

.about-social a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 900px) {
    .about-text .bio-main {
        font-size: 1.8rem;
    }
    
    .about-text .bio-tagline {
        font-size: 1.2rem;
    }
}

/* Collapsible CV Content */
.cv-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0;
}

.cv-content.open {
    max-height: 600px;
    padding-top: 2rem;
}

.cv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.cv-grid.cv-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.cv-column h4 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Legacy about-grid for compatibility */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
}

.about-grid h3 {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.education-item,
.experience-item,
.award-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    line-height: 1.6;
}

.education-item:last-child,
.experience-item:last-child,
.award-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.education-item .year,
.experience-item .year,
.award-item .year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    padding-top: 0.15rem;
}

.education-item h4,
.experience-item h4,
.award-item h4 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 0 0.25rem 0;
    color: white;
    line-height: 1.4;
}

.education-item .institution,
.experience-item .institution,
.award-item .institution {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

@media (max-width: 900px) {
    .cv-grid,
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .cv-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .cv-contact {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 600px) {
    .cv-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ================================
   Blog Section
   ================================ */
/* ================================
   Talks Section - Clean List with Thumbnails
   ================================ */
#talks {
    background: var(--bg-dark);
    padding: 6rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.talks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
}

.talk-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: start;
    transition: all 0.2s;
}

.talk-item:first-child {
    padding-top: 0;
}

.talk-item:hover {
    padding-left: 0.5rem;
}

.talk-thumb {
    width: 80px;
    height: 60px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
}

.talk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s;
}

.talk-item:hover .talk-thumb img {
    filter: grayscale(0%);
}

.talk-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.talk-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.35);
}

.talk-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    line-height: 1.3;
}

.talk-title a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

.talk-item:hover .talk-title a {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.talk-meta {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
}

@media (max-width: 768px) {
    .talk-item {
        grid-template-columns: 60px 1fr;
        gap: 1rem;
    }
    
    .talk-thumb {
        width: 60px;
        height: 45px;
    }
    
    .talk-title {
        font-size: 1rem;
    }
}

/* Section blob - reusable animated background */
.section-blob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.section-blob .cloud-bubble {
    width: 500px;
    height: 500px;
    opacity: 0.5;
    top: 50%;
    left: 30%;
}

.section-blob .cloud-bubble-2 {
    width: 400px;
    height: 400px;
    opacity: 0.4;
    top: 50%;
    left: 60%;
}

#blog .container {
    position: relative;
    z-index: 1;
}

#blog h2 {
    font-size: 1.75rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: white;
}

#blog .more-link {
    color: rgba(255,255,255,0.5);
}

#blog .more-link:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#blog .section-subtitle {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 2rem;
}

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

.blog-post {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.blog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border-color: rgba(230, 57, 70, 0.3);
}

.blog-post-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-content {
    padding: 1rem;
}

.blog-post-type {
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.blog-post-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.blog-post-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: white;
}

.blog-post-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.blog-post-title a:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-post-read-more {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dark);
    text-decoration: none;
    border-bottom: 1px solid var(--text-dark);
    padding-bottom: 2px;
    transition: color 0.2s, border-color 0.2s;
}

.blog-post-read-more:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    border-color: var(--accent-pink);
}

/* Blog responsive */
@media (max-width: 900px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Footer - Zoox Style: Clean white */
footer {
    background: var(--bg-white);
    color: var(--text-dark);
    padding: 3rem 0 2.5rem;
    border-top: none;
    margin-top: 0;
    transition: background 0.6s ease;
    position: relative;
}

/* Smooth fade from white sections into dark footer */
footer::before {
    content: '';
    position: absolute;
    top: -60px;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, #0a0d12);
    pointer-events: none;
}
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
    color: rgba(255,255,255,0.3);
    margin-top: 0.2rem;
}

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

footer .contact-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--text-dark);
    text-decoration: none;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--text-dark);
    transition: all 0.3s;
}

footer .contact-btn:hover {
    background: var(--bg-white);
    color: var(--text-dark);
    transform: translateY(-2px);
}

footer .social-links {
    display: flex;
    gap: 1.5rem;
}

footer .social-links a {
    font-family: 'Inter', sans-serif;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0;
    transition: color 0.2s;
}

footer .social-links a:hover {
    color: var(--coral);
}

/* Footer CV toggle - Zoox Style */
footer .cv-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

footer .cv-toggle:hover {
    background: var(--text-dark);
    color: var(--text-light);
    border-color: var(--text-dark);
}

footer .cv-toggle-icon {
    font-size: 0.9rem;
    font-weight: 300;
    transition: transform 0.3s;
}

footer .cv-toggle.active .cv-toggle-icon {
    transform: rotate(45deg);
}

/* Footer responsive */
@media (max-width: 768px) {
    .footer-main {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .footer-left,
    .footer-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .project-grid,
    .timeline-grid,
    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .project-grid,
    .timeline-grid,
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 600px) {
    .project-grid,
    .timeline-grid,
    .awards-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        aspect-ratio: auto;
        min-height: 300px;
    }

    .nav-links {
        display: none;
    }
    
    footer .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .slider-arrow {
        display: none;
    }
    
    /* Talks responsive */
    .talk-item.has-thumb {
        grid-template-columns: 1fr;
    }
    
    .talk-thumb {
        width: 100%;
        height: 180px;
    }
    
    /* Magazine stack responsive */
    .magazine-card {
        flex: 0 0 260px;
        height: 240px;
        margin-left: -30px;
    }
    
    .magazine-card .pub-title-large {
        font-size: 1rem;
    }
}

/* ================================
   Section Headers with "More in ›"
   ================================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.section-header h2 {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.more-link {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
}

.more-link:hover {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Dark section more link */
#media .more-link,
#about .more-link {
    color: rgba(255,255,255,0.5);
}

#media .more-link:hover,
#about .more-link:hover {
    color: var(--accent);
}

#media .section-header,
#about .section-header {
    border-bottom-color: rgba(255,255,255,0.2);
}

#publications .section-header,
#talks .section-header {
    padding: var(--section-gap) 0 calc(var(--section-gap) * 1.5);
    background: var(--bg-white);
    border-top: none;
}

#works-story {
    padding: 0;
    background: var(--bg-white);
    min-height: auto;
}

#works-story:empty {
    display: none;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Project Grid - 3x2 rectangular layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* View all projects link */
.view-all-projects {
    text-align: center;
    padding: 2rem 0;
}

.view-all-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: var(--accent-red);
}

/* ================================
   Talks - NYT Highlights Style (smaller images)
   ================================ */
.talks-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 900px;
}

.talk-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.talk-item.has-thumb {
    grid-template-columns: 180px 1fr;
}

.talk-thumb {
    width: 180px;
    height: 120px;
    overflow: hidden;
    flex-shrink: 0;
}

.talk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.talk-item:hover .talk-thumb img {
    transform: scale(1.05);
}

.talk-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.talk-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.talk-content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.talk-content h3 a {
    color: inherit;
    text-decoration: none;
}

.talk-content h3 a:hover {
    text-decoration: underline;
}

.talk-venue {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.talk-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 0.25rem;
}

.talk-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ================================
   Media Tabs (Latest / Archive)
   ================================ */
.media-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.media-tab {
    background: none;
    border: none;
    font-family: 'IBM Plex Sans', sans-serif;
        font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    padding: 0.5rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.media-tab:first-child {
    padding-right: 1rem;
}

.media-tab:last-child {
    padding-left: 1rem;
}

.media-tab.active {
    color: var(--text-light);
}

.media-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--text-light);
}

.media-tab:hover:not(.active) {
    color: rgba(255,255,255,0.7);
}

.tab-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.2);
}

.no-archive {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    font-style: italic;
    padding: 2rem 0;
}

/* ================================
   Media - NYT Latest Style (articles with thumbnails)
   ================================ */
.media-nyt {
    max-width: 900px;
    display: flex;
        flex-direction: column;
    padding-left: 2rem;
}

.media-article {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    align-items: baseline;
    transition: padding-left 0.2s;
}

.media-article:hover {
    padding-left: 0.5rem;
}

.media-article:first-child {
    padding-top: 0;
}

.media-date {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.media-body h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 0.25rem;
    color: var(--text-light);
    margin-bottom: 0.3rem;
}

.media-body h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.media-body h3 a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

.media-desc {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.3rem;
}

.media-author {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.4);
}

.media-thumb {
    width: 140px;
    height: 90px;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Without thumbnail */
.media-article:not(:has(.media-thumb)) {
    grid-template-columns: 100px 1fr;
}

@media (max-width: 768px) {
    .media-article {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .media-date {
        order: -1;
    }
    
    .media-thumb {
        width: 100%;
        height: 200px;
        order: -1;
    }
}

/* ================================
   Publications - Horizontal Carousel (Cambridge Teaching style)
   ================================ */
#publications {
    background: var(--bg-white);
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--border);
}

#publications .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Publications & Media - Clean List */
.pub-media-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pub-media-item {
    display: grid;
    grid-template-columns: 50px 90px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    align-items: baseline;
    transition: all 0.2s;
}

.pub-media-item:first-child {
    padding-top: 0;
}

.pub-media-item:hover {
    padding-left: 0.5rem;
}

.pm-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
}

.pm-type {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.3);
}

.pm-content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.pm-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s;
}

.pub-media-item:hover h3 a {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pm-outlet {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* ================================
   Publications & Talks - Inset Continuation
   ================================ */
#publications.works-continuation {
    background: var(--bg-white);
    padding: 0.5rem 0 5rem;
    position: relative;
    border-top: none;
    transition: background 0.6s ease;
}

/* Section label - subtle */
.continuation-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding: 0 3rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.scroll-hint {
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--accent);
    background: var(--badge-project-bg);
    padding: 6px 16px;
    border-radius: 50px;
    animation: pulseScroll 2s ease-in-out infinite;
}

@keyframes pulseScroll {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* Inset carousel wrapper */
.inset-carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

/* Side fade gradients - More visible on white */
.carousel-fade-left,
.carousel-fade-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 5;
    pointer-events: none;
}

.carousel-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-white) 0%, transparent 100%);
}

.carousel-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-white) 0%, transparent 100%);
}

/* Mini navigation arrows - Much more visible */
.mini-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    background: var(--text-dark);
    border: 2px solid var(--text-dark);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.mini-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 12px 32px rgba(0,102,255,0.25);
}

.mini-nav.prev {
    left: 1rem;
}

.mini-nav.next {
    right: 1rem;
}

/* Pulse animation on arrows */
.mini-nav::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--text-dark);
    animation: arrowPulse 2s ease-out infinite;
}

@keyframes arrowPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.visual-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-light);
}

/* Custom scrollbar styling */
.visual-carousel::-webkit-scrollbar {
    height: 8px;
}

.visual-carousel::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
    margin: 0 3rem;
}

.visual-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 10px;
    transition: background 0.3s;
}

.visual-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ================================
   Publication Cards - Unified Visual System (Horizontal Layout)
   ================================ */
.visual-card {
    flex: 0 0 480px;
    height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.visual-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,102,255,0.12);
}

/* Overlay oscuro para legibilidad */
.visual-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.8) 0%,
        rgba(0,0,0,0.4) 50%,
        rgba(0,0,0,0.2) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Cards con imagen de fondo */
.visual-card.has-image {
    color: white;
}

.visual-card.has-image .visual-card-outlet {
    color: rgba(255,255,255,0.9);
}

.visual-card.has-image .visual-card-title {
    color: white;
}

.visual-card.has-image .visual-card-meta {
    color: rgba(255,255,255,0.8);
}

/* Award badge - Trophy emoji */
.award-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 2rem;
    z-index: 10;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
    animation: trophyFloat 3s ease-in-out infinite;
}

.award-badge.talk-badge {
    left: auto;
    right: 12px;
    animation: micFloat 2.5s ease-in-out infinite;
}

@keyframes trophyFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-4px) scale(1.05);
    }
}

@keyframes micFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(-5deg);
    }
}

.visual-card-content {
    padding: 1.25rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    z-index: 2;
    justify-content: flex-end;
}

.visual-card-outlet {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.visual-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-dark);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.visual-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.visual-card-year {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    opacity: 0.8;
}

.visual-card-type {
    background: var(--badge-project-bg);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 20px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.visual-card-type-media {
    background: var(--badge-media-bg);
    color: var(--badge-media-text);
}

.visual-card-type-award {
    background: var(--badge-award-bg);
    color: var(--badge-award-text);
}

.visual-card-type-talk {
    background: var(--badge-talk-bg);
    color: var(--badge-talk-text);
}

.visual-card-type-publication {
    background: rgba(236,72,153,0.12);
    color: #ec4899;
}

.visual-card:hover {
    transform: translateY(-4px);
}

/* Cards sin imagen - Gradiente con texto blanco */
.visual-card.no-image {
    justify-content: flex-end;
}

.visual-card.no-image .visual-card-content {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.5) 70%,
        transparent 100%
    );
    color: white;
}

.visual-card.no-image .visual-card-outlet {
    color: rgba(255,255,255,0.9);
}

.visual-card.no-image .visual-card-title {
    color: white;
}

.visual-card.no-image .visual-card-meta {
    color: rgba(255,255,255,0.7);
}

.visual-card.no-image .visual-card-type {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.visual-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
}

/* ================================
   MEDIA SECTION - Zoox Style (Image + List)
   ================================ */
.media-zoox-section {
    background: var(--bg-light);
    padding: 4rem 0 5rem;
    transition: background 0.6s ease;
}

#research-section.media-zoox-section {
    background: var(--bg-white);
    padding: 2rem 0 4rem;
}

/* Título de la sección de publicaciones */
.section-title-publications {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(0,0,0,0.8);
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
}

.media-zoox-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Imagen más grande (antes 0.85fr), textos más compactos (antes 1.15fr) */
    gap: 2rem; /* Reducir gap para acercar textos a la izquierda (antes 2.5rem) */
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    align-items: start;
}

/* Left: Featured Image */
.media-featured-image {
    position: sticky;
    top: 120px;
    border-radius: 20px;
    overflow: visible;
    background: var(--bg-white);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    width: 100%;
}

.media-featured-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.15s ease, transform 0.4s ease; /* Transición rápida como Zoox */
    border-radius: 20px;
    display: block;
}

/* Scholar link - Very subtle below image */
/* Google Scholar Link - Debajo de la sección */
.scholar-link-container {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 0 4rem;
    text-align: center;
}

.scholar-link-external {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 0.01em;
    padding: 0.5rem 0;
}

.scholar-link-external:hover {
    color: rgba(0,0,0,0.8);
    transform: translateX(4px);
}

.media-featured-image:hover img {
    transform: scale(1.02);
}

.media-item-zoox:hover ~ .media-featured-image img {
    transform: scale(1.05);
}

/* Right: Media List */
.media-list-container {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 1.5rem 1rem; /* Reducir padding horizontal para acercar textos a la izquierda (antes 2rem) */
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}

.media-list-container .section-big-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    text-align: left;
}

.media-list-zoox {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.media-item-zoox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
}

/* Compact research item variant */
.research-item-compact {
    padding: 1rem 1rem; /* Reducir padding horizontal (antes 1.25rem) */
    border-bottom: 1px solid rgba(0,0,0,0.12);
    transition: all 0.2s ease;
    cursor: pointer;
}

.research-item-compact:hover {
    background: rgba(0,0,0,0.02);
}

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

/* Publicación activa (seleccionada) - Simple y minimalista */
.research-item-compact.active {
    background: rgba(0,0,0,0.03);
    border-left: 2px solid rgba(0,0,0,0.4);
    padding-left: calc(1rem - 2px); /* Ajustar para el borde (antes 1.25rem) */
}

.research-item-compact.active .research-venue {
    color: rgba(0,0,0,0.7);
}

.research-item-compact.active .media-item-title {
    color: rgba(0,0,0,0.9);
}

.research-item-compact.active .media-item-arrow {
    color: rgba(0,0,0,0.6);
}

.research-venue {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    transition: all 0.2s ease;
}

.research-item-compact .media-item-title {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

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

.media-item-zoox:hover {
    background: rgba(0,0,0,0.02);
    transform: translateX(4px);
}

.media-item-content {
    flex: 1;
}

.media-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: var(--text-dark);
    margin-bottom: 0.3rem;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.media-item-zoox:hover .media-item-title {
    color: var(--accent);
}

.media-item-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.media-item-badge {
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 50px;
    background: var(--badge-media-bg);
    color: var(--badge-media-text);
}

.media-item-outlet {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
}

.media-item-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text-dark);
    font-size: 1rem;
    transition: all 0.3s;
    flex-shrink: 0;
}
    flex-shrink: 0;
}

.media-item-zoox:hover .media-item-arrow {
    background: var(--accent);
    color: white;
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .media-zoox-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .media-featured-image {
        position: relative;
        top: 0;
        aspect-ratio: 16/9;
    }
    
    .media-item-title {
        font-size: 1rem;
    }
    
    .media-item-arrow {
        width: 36px;
        height: 36px;
    }
}

/* Legacy media-workshops kept for compatibility */
#awards-section {
    background: var(--bg-light);
    padding: 5rem 0;
    transition: background 0.6s ease;
}

#awards-section .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

#awards-section .section-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Legacy media-workshops kept for compatibility */
#media-workshops {
    background: var(--bg-light);
    padding: 5rem 0;
    border-top: none;
    transition: background 0.6s ease;
}

#media-workshops .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Tabs */
.section-tabs {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.section-tab {
    background: none;
    border: none;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.2s;
}

.section-tab:hover {
    color: rgba(255,255,255,0.7);
}

.section-tab.active {
    color: white;
    border-bottom: 1px solid white;
}

.tab-divider {
    color: rgba(255,255,255,0.2);
    font-size: 0.75rem;
}

.no-items {
    color: rgba(255,255,255,0.4);
    font-style: italic;
    padding: 2rem 0;
}

.text-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.text-list-item {
    display: grid;
    grid-template-columns: 90px 100px 1fr;
    gap: 2rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
    align-items: baseline;
    transition: all 0.3s ease;
}

.text-list-item:first-child {
    padding-top: 0;
}

.text-list-item:hover {
    background: var(--bg-light);
    margin: 0 -1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.tl-year {
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
}

.tl-type {
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 16px;
    border-radius: 50px;
    display: inline-block;
    width: fit-content;
}

.tl-content h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.tl-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s;
}

.text-list-item:hover h3 a {
    color: var(--accent);
}

.tl-outlet {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Badge styles for different types */
.text-list-item[data-type="Award"] .tl-type,
.text-list-item.award .tl-type {
    background: var(--badge-award-bg);
    color: var(--badge-award-text);
}

.text-list-item[data-type="Media"] .tl-type,
.text-list-item.media .tl-type {
    background: var(--badge-media-bg);
    color: var(--badge-media-text);
}

.text-list-item[data-type="Workshop"] .tl-type,
.text-list-item.workshop .tl-type {
    background: var(--badge-workshop-bg);
    color: var(--badge-workshop-text);
}

.text-list-item[data-type="Project"] .tl-type,
.text-list-item[data-type="Exhibition"] .tl-type,
.text-list-item[data-type="Exhibit"] .tl-type,
.text-list-item.project .tl-type {
    background: var(--badge-project-bg);
    color: var(--badge-project-text);
}

.text-list-item[data-type="Talk"] .tl-type,
.text-list-item.talk .tl-type {
    background: rgba(139, 92, 246, 0.12);
    color: #8b5cf6;
}

.text-list-item[data-type="Publication"] .tl-type,
.text-list-item.publication .tl-type {
    background: rgba(236, 72, 153, 0.12);
    color: #ec4899;
}

@media (max-width: 768px) {
    .visual-card {
        flex: 0 0 420px;
        height: 260px;
    }
    
    .visual-card-content {
        padding: 1rem 1.25rem;
    }
    
    .visual-card-title {
        font-size: 1rem;
        -webkit-line-clamp: 2;
    }
    
    .inset-carousel-wrapper {
        padding: 0 1rem;
    }
    
    .mini-nav {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        box-shadow: 0 6px 16px rgba(0,0,0,0.2);
    }
    
    .carousel-fade-left,
    .carousel-fade-right {
        width: 80px;
    }
    
    .scroll-hint {
        font-size: 0.6rem;
        padding: 4px 12px;
    }
    
    .text-list-item {
        grid-template-columns: 40px 70px 1fr;
        gap: 1rem;
    }
}

.pub-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.pub-card:hover {
    border-color: var(--accent-red);
    transform: translateY(-4px);
}

.pub-card .pub-image-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-dark-alt);
}

.pub-card .pub-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
    transition: transform 0.5s;
}

.pub-card:hover .pub-image-wrap img {
    transform: scale(1.05);
}

/* Content below image */
.pub-card .pub-content {
    padding: 1.25rem;
}

.pub-card .pub-year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.5rem;
}

.pub-card .pub-title {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: white;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.pub-card:hover .pub-title {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pub-card .pub-journal {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.pub-card .pub-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
}

/* Text-only publication cards (no image) */
.pub-card.text-only .pub-image-wrap {
    display: none;
}

.pub-nav.prev {
    left: 0;
}

.pub-nav.next {
    right: 0;
}

/* Publications Responsive */
@media (max-width: 900px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .publications-grid {
        grid-template-columns: 1fr;
    }
    
    .pub-card .pub-title {
        font-size: 0.95rem;
    }
}

@media (max-width: 1100px) {
    .container {
        grid-template-columns: 1fr 280px;
    }
    
    .publications-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .publications-wrapper {
        grid-template-columns: 1fr;
    }
    
    .pub-preview {
        display: none;
    }
}

/* ================================
   Media & Awards - Dark Background
   ================================ */
#media {
    background: var(--bg-dark);
    padding: 6rem 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

#media .container {
    max-width: 900px;
}

#media .section-blob .cloud-bubble {
    left: 70%;
    top: 40%;
    opacity: 0.4;
}

#media .section-blob .cloud-bubble-2 {
    left: 10%;
    top: 50%;
    opacity: 0.3;
}

#media h2 {
    color: white;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.compact-list {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.compact-list-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 4rem;
}

.compact-item {
    display: grid;
    grid-template-columns: 40px 1fr;
        gap: 0.5rem;
    padding: 0.15rem 0;
}

.compact-item .year {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.compact-item .content h3 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: white;
    line-height: 1.25;
    margin: 0;
}

.compact-item .content h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: all 0.2s;
}

.compact-item .content h3 a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.compact-item .details {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    margin-top: 0;
}

@media (max-width: 1100px) {
    .publications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

/* ================================
   WhatsApp Floating Button - Brutalist Style
   ================================ */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-dark);
    color: white;
    text-decoration: none;
    z-index: 1000;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float .wa-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.875rem 0 0.875rem 1rem;
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float .wa-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #25D366;
    transition: background 0.3s;
}

.whatsapp-float .wa-icon svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    background: var(--bg-dark);
    border-color: #25D366;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
}

.whatsapp-float:hover .wa-text {
    max-width: 120px;
    opacity: 1;
    padding-right: 0.5rem;
}

.whatsapp-float:hover .wa-icon svg {
    transform: scale(1.1);
}

/* Pulse animation on icon */
.whatsapp-float .wa-icon::before {
    content: '';
    position: absolute;
    width: 44px;
    height: 44px;
    background: #25D366;
    border-radius: 0;
    animation: waPulse 2s ease-out infinite;
    opacity: 0;
    z-index: -1;
}

@keyframes waPulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 1.25rem;
        left: 1.25rem;
    }
    
    .whatsapp-float .wa-icon {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-float .wa-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .whatsapp-float .wa-text {
        display: none;
    }
}

/* ======================================
   SCROLL REVEAL ANIMATIONS (Zoox Style)
   ====================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

.reveal-delay-4 {
    transition-delay: 0.6s;
}

/* Fade up animation for hero */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-up-delay-1 {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.fade-up-delay-2 {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.fade-up-delay-3 {
    animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

/* ======================================
   SCROLL PROGRESS BAR
   ====================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-red) 100%);
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ======================================
   STORYTELLING SECTIONS (Zoox Style)
   ====================================== */
.story-section {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--bg-white);
    transition: background 0.6s ease;
}

.story-section:nth-child(even) {
    background: var(--bg-light);
}

.story-section:nth-child(3n) {
    background: #f0f4f8;
}

/* Smooth transitions between sections */
.story-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    right: 0;
    height: 100px;
    background: inherit;
    filter: blur(50px);
    opacity: 0.5;
    pointer-events: none;
}

.story-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    width: 100%;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Reverse layout on even sections */
.story-section:nth-child(even) .story-grid {
    direction: rtl;
}

.story-section:nth-child(even) .story-content {
    direction: ltr;
}

.story-content {
    z-index: 2;
}

.story-label {
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 8px 18px;
    background: var(--badge-project-bg);
    border-radius: 50px;
}

.story-title {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.story-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.story-meta {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    color: var(--text-subtle);
    margin-bottom: 2rem;
}

.story-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--text-dark);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.story-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.story-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-image:hover {
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transform: translateY(-6px);
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-image:hover img {
    transform: scale(1.08);
}

/* Parallax effect */
.story-image[data-parallax] {
    will-change: transform;
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .story-section {
        min-height: auto;
        padding: 3rem 0;
    }
    
    .story-section:nth-child(even) .story-grid {
        direction: ltr;
    }
    
    .story-title {
        font-size: 2rem;
    }
    
    .story-description {
        font-size: 0.95rem;
    }
    
    .story-container {
        padding: 0 2rem;
    }
}

/* ======================================
   VIEW ALL PROJECTS BUTTON
   ====================================== */
.hidden-project {
    display: none !important;
}

.view-all-projects-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    background: var(--bg-white);
}

.view-all-projects-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 2.5rem;
    background: #1a1a1a;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-projects-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.view-all-projects-btn:hover::before {
    opacity: 1;
}

.view-all-projects-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.view-all-projects-btn svg {
    transition: transform 0.3s ease;
}

.view-all-projects-btn:hover svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .view-all-projects-btn {
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
    
    .view-all-projects-container {
        padding: 3rem 0;
    }
}

/* ======================================
   UPCOMING SECTION
   ====================================== */
/* Upcoming Section - Simple y limpio */
.upcoming-section {
    background: var(--bg-white);
    padding: 3rem 0 4rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.upcoming-header {
    margin-bottom: 2rem;
    text-align: left;
}

.upcoming-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.upcoming-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.upcoming-item {
    background: transparent;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    transition: background 0.2s ease;
}

.upcoming-item:hover {
    background: rgba(0,0,0,0.01);
}

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

.upcoming-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(0,0,0,0.4);
    letter-spacing: 0.02em;
}

.upcoming-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.01em;
    color: rgba(0,0,0,0.5);
    margin-left: 0.75rem;
}

.upcoming-type.publication,
.upcoming-type.talk {
    background: none;
    color: rgba(0,0,0,0.5);
    padding: 0;
    border-radius: 0;
}

.upcoming-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(0,0,0,0.9);
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
}

.upcoming-venue {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(0,0,0,0.5);
    margin-top: 0.25rem;
}

/* Responsive Media Queries */

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

/* ======================================
   SECTION INTROS (Zoox Style)
   ====================================== */
.research-intro,
.media-intro-section {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5rem 0 2rem;
    background: var(--bg-light);
    text-align: center;
    transition: background 0.6s ease;
}

.research-intro {
    background: var(--bg-white);
    padding: 3rem 0 1.5rem;
}

.section-big-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
}

/* When subtitle comes before title (inverted order) */
.section-subtitle + .section-big-title {
    margin-top: 0.5rem;
}

/* When subtitle comes after title */
.section-big-title + .section-subtitle {
    margin-top: 0.5rem;
}

@media (max-width: 900px) {
    .research-intro,
    .media-intro-section {
        padding: 3rem 2rem;
        min-height: 35vh;
    }
    
    .section-big-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    /* Media Zoox (Research & Media sections) responsive */
    .media-zoox-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .media-featured-image {
        position: relative;
        top: 0;
        max-height: 350px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .scholar-link-container {
        padding: 0 2rem;
        margin: 1.5rem auto 0;
    }
    
    .scholar-link-external {
        font-size: 0.75rem;
    }

    .media-list-container .section-big-title {
        font-size: 1.5rem;
    }
    
    /* Media cards responsive */
    .media-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    #media-section .container {
        padding: 0 2rem;
    }
    
    .media-card-title {
        font-size: 1.1rem;
    }
}

/* ============================================
   REDESIGN: HERO, PROJECTS GRID, MEDIA TIMELINE
   ============================================ */

/* ── TAGLINE STRIP ── */
.tagline-strip {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
    text-align: center;
}

.tagline-strip-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    color: var(--text-muted);
    text-transform: lowercase;
}

/* ── SKILLS STRIP ── */
.skills-strip {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 1.1rem 0;
    overflow: hidden;
}

.skills-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.skill-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text-dark);
    white-space: nowrap;
}

.skill-sep {
    color: var(--coral);
    font-weight: 300;
    font-size: 0.9rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .skills-inner { padding: 0 1.5rem; gap: 0.8rem; }
    .skill-tag { font-size: 0.72rem; }
}

/* ── HERO ── */
#hero-slider {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #080F1E;   /* dark navy — shows while video loads */
}

/* Legibility gradient */
#hero-slider::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right, rgba(10,13,18,0.92) 0%, rgba(10,13,18,0.65) 28%, rgba(10,13,18,0.15) 50%, transparent 58%);
    pointer-events: none;
}

#hero-slider .slider-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
}

#hero-slider .slides,
#hero-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.slide img, .slide video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
    transform: scale(1.6);
    transform-origin: 80% 50%;
    opacity: 0.9;
}

/* Hero content — over the image */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem 6rem;
}

.hero-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #B48BA8;   /* lavender — label */
    margin-bottom: 0.75rem;
    display: block;
}

.hero-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.45);
    margin-top: 1.2rem;
    margin-bottom: 0;
    text-transform: lowercase;
}

.hero-headline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: #FAFAFA;
    margin-bottom: 2.25rem;   /* 36px — "alive." needs to breathe */
    text-shadow: 0 2px 40px rgba(8,15,30,0.3);
}

.hero-headline em {
    font-style: normal;
    color: #E8967E;   /* coral */
    font-weight: 200;
}

.hero-sub {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 300;
    line-height: 1.65;
    color: rgba(255,255,255,0.5);   /* clearly subordinate to headline */
    max-width: 500px;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.4rem;
    background: #FFFFFF;
    color: #0a0d12;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-primary:hover {
    background: #F0F0F0;
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,255,255,0.18);
}

.hero-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.9rem 2rem;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 400;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    backdrop-filter: blur(8px);
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
    background: rgba(255,255,255,0.15);
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 4.5rem;   /* above the 52px upcoming banner */
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.35);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50%       { opacity: 1;   transform: scaleY(1); }
}

/* Remove old hero overlay */
.hero-about-overlay { display: none; }
.organic-blobs      { display: none; }

/* ── WORKS GRID ── */
#works-grid-section {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
}

#works-grid-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-label-small {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lavender);    /* lavender — section label accent */
    margin-bottom: 0.5rem;
    display: block;
    text-align: left;
}

.section-title-large {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-dark);
    text-align: left;
    margin-bottom: 2rem;
}

.section-title-large em {
    font-style: normal;
    color: var(--coral);
    font-weight: 300;
}

/* Asymmetric grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

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

/* Scope all new project card styles to the projects-grid to avoid conflicts */
.projects-grid .project-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/10;
    cursor: pointer;
    background-size: cover !important;
    background-position: center !important;
    background-color: #e5e5e5;
    border: none;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
    animation: cardFadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.projects-grid .project-card:hover {
    transform: scale(1.015);
    box-shadow: none;
}

/* First card spans full width */
.projects-grid .project-card--featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

/* Overlay */
.projects-grid .project-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 50%, transparent 100%);
    transition: background 0.4s;
    z-index: 0;
}

.projects-grid .project-card:hover .project-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
}

.projects-grid .project-card-content {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Tag: always top-left */
.projects-grid .project-tag {
    position: absolute;
    top: 1.5rem;
    left: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

/* Title + location: always bottom-left */
.projects-grid .project-name {
    position: absolute;
    bottom: 2.5rem;
    left: 1.75rem;
    right: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: white;
    margin: 0;
}

.projects-grid .project-card--featured .project-name {
    font-size: 1.8rem;
    bottom: 3rem;
}

.projects-grid .project-desc {
    display: none;
}

.projects-grid .project-card:hover .project-desc {
    opacity: 1;
    transform: translateY(0);
}

.projects-grid .project-location {
    position: absolute;
    bottom: 1.5rem;
    left: 1.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
}

.projects-grid .project-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    opacity: 0;
    transform: translate(4px, -4px);
    transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
    z-index: 2;
}

.projects-grid .project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(0,0);
}

/* Hidden projects */
.hidden-project { display: none !important; }

/* View all button */
.view-all-container {
    display: flex;
    justify-content: center;
    max-width: 1400px;
    margin: 3rem auto 0;
    padding: 0 4rem;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
    background: transparent;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-dark);
    cursor: pointer;
    transition: opacity 0.2s ease;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    opacity: 0.55;
}

/* ── RESEARCH CARD GRID ── */
#research-section {
    background: #0a0d12;
    padding: 10rem 0;
    border-top: none;
}

#research-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.pub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 1.5rem;
}

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

.pub-grid .pub-card {
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.35s ease;
    animation: pubFadeUp 0.5s ease both;
}

.pub-grid .pub-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

.pub-grid .pub-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    filter: brightness(0.95) saturate(0.85);
    transition: filter 0.4s;
}

.pub-grid .pub-thumb--no-img {
    background: linear-gradient(135deg, #1a1f2e 0%, #0f1320 100%);
    aspect-ratio: 16/9;
}

.pub-grid .pub-card:hover .pub-thumb {
    filter: brightness(1) saturate(1);
}

.pub-grid .pub-body {
    padding: 1rem 1.1rem 1.2rem;
}

.pub-grid .pub-type {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.4);
    margin-bottom: 0.6rem;
}

.pub-grid .pub-card .pub-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.4;
    color: rgba(255,255,255,0.88);
    margin-bottom: 0.6rem;
    transition: color 0.25s ease;
}

.pub-grid .pub-card:hover .pub-title {
    color: var(--coral);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
}

.pub-grid .pub-meta {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.38);
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Scholar link */
#research-section .scholar-link-container {
    padding: 0;
    margin: 0;
    text-align: left;
}

#research-section .scholar-link-external {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(0,0,0,0.45);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

#research-section .scholar-link-external:hover {
    color: rgba(0,0,0,0.8);
}

/* Dark section — light text overrides */
#research-section .section-title-large {
    color: rgba(255,255,255,0.92);
}

#research-section .view-all-btn {
    color: rgba(255,255,255,0.55);
    text-decoration: none;
}

#research-section .view-all-btn:hover {
    color: var(--coral);
    opacity: 1;
}

@media (max-width: 900px) {
    .pub-grid { grid-template-columns: 1fr; }
    #research-section .container { padding: 0 1.5rem; }
}

/* ── MEDIA TIMELINE ── */
#media-section {
    background: var(--bg-white);
    padding: 6rem 0;
    border-top: 1px solid var(--border);
}

#media-section .container, #activity-section .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 4rem;
}

.media-timeline {
    margin-top: 0;
}

.timeline-item {
    display: grid;
    grid-template-columns: 64px 90px 1fr auto;
    gap: 1.5rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    align-items: baseline;
    transition: background 0.2s;
    cursor: default;
}

.timeline-item--link {
    cursor: pointer;
}

.timeline-item--link:hover {
    background: rgba(0,0,0,0.02);
    margin: 0 -1.5rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    border-radius: 8px;
}

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

.timeline-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(0,0,0,0.35);
    letter-spacing: 0.02em;
}

.timeline-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
}

.badge-media    { background: rgba(99,102,241,0.1);  color: #6366f1; }
.badge-award    { background: rgba(234,179,8,0.12);  color: #ca8a04; }
.badge-talk     { background: rgba(16,185,129,0.1);  color: #059669; }

.timeline-body {}

.timeline-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: rgba(0,0,0,0.85);
    line-height: 1.4;
}

.timeline-source {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: rgba(0,0,0,0.4);
    margin-top: 0.2rem;
}

.timeline-arrow {
    font-size: 0.9rem;
    color: rgba(0,0,0,0.3);
    transition: color 0.2s, transform 0.2s;
}

.timeline-item--link:hover .timeline-arrow {
    color: rgba(0,0,0,0.7);
    transform: translate(2px, -2px);
}

/* ── NAV UPCOMING INDICATOR ── */
.nav-upcoming {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(0,0,0,0.6) !important;
    padding: 5px 12px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 50px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.nav-upcoming:hover {
    border-color: rgba(0,0,0,0.4);
    color: rgba(0,0,0,0.9) !important;
}

.nav-upcoming-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--salmon);      /* salmon */
    display: inline-block;
    animation: navPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes navPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ── UPCOMING TICKER (inside hero, bottom) ── */
.upcoming-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(9,9,11,0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.08);
    height: 52px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
    padding: 0 2rem;
    overflow: hidden;
}

.upcoming-pulse {
    width: 7px;
    height: 7px;
    min-width: 7px;
    border-radius: 50%;
    background: var(--salmon);
    display: block;
    flex-shrink: 0;
    animation: navPulse 2s ease-in-out infinite;
}

.upcoming-next-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--coral);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 3px 12px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

/* The scrolling container */
.upcoming-ticker {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 3%, black 97%, transparent 100%);
}

/* The moving track — must be wider than viewport, no wrapping */
.upcoming-ticker-track {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    animation: tickerScroll 30s linear infinite;
}

.upcoming-ticker:hover .upcoming-ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.upcoming-ticker-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    white-space: nowrap;
    display: inline-block;
    padding: 0 1rem;
}

.upcoming-ticker-sep {
    color: var(--coral);
    font-size: 0.9rem;
    display: inline-block;
    padding: 0 0.25rem;
    white-space: nowrap;
    opacity: 0.7;
}

/* ── ACTIVITY SECTION ── */
.activity {
    background: var(--bg-white);
    padding: 10rem 0;
    border-top: 1px solid var(--border);
}

.activity > *:not(.featured-grid) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

.activity .featured-grid,
.activity .compact-mentions,
.activity .activity-ctas {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 4rem;
    padding-right: 4rem;
}

.activity-section-label {
    font-family: 'Inter', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(0,0,0,0.35);
    margin-bottom: 0.6rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.activity-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0,0,0,0.08);
    max-width: 120px;
}

.activity-section-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    text-align: left;
    max-width: 700px;
    color: rgba(0,0,0,0.88);
}

.activity-section-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 520px;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

/* STATS BAR */

/* FEATURED BENTO GRID */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 14px;
    margin-bottom: 2rem;
}

.featured-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #f0f0f0;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}

.featured-card:hover { transform: scale(1.01); }

.featured-card--hero {
    grid-row: 1 / 3;
    min-height: 480px;
}

.featured-card--sm { min-height: 230px; }

.featured-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16,1,0.3,1), filter 0.5s;
    filter: brightness(0.45) saturate(0.85);
}

.featured-card:hover .featured-img {
    transform: scale(1.04);
    filter: brightness(0.35) saturate(1);
}

.featured-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 55%);
}

.featured-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
    width: fit-content;
    margin-bottom: 0.75rem;
}

.featured-badge--award { background: rgba(212,144,123,0.25); color: #D4907B; }
.featured-badge--media { background: rgba(46,80,128,0.25);   color: #7BAAD4; }
.featured-badge--talk  { background: rgba(152,120,168,0.25); color: #C0A8D4; }

.featured-year {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.featured-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 400px;
}

.featured-card--sm .featured-title { font-size: 1.1rem; }

.featured-source {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    margin-top: 0.4rem;
}

.featured-arrow {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 1rem;
    text-decoration: none;
    opacity: 0;
    transform: translate(4px,-4px);
    transition: all 0.4s cubic-bezier(0.16,1,0.3,1);
}

.featured-card:hover .featured-arrow { opacity: 1; transform: translate(0,0); }

/* COMPACT MENTIONS */
.compact-mentions {
    display: flex;
    gap: 2rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

/* ── Rotating variant ── */
.compact-rotator {
    position: relative;
    height: 2.2rem;
    overflow: hidden;
    flex-direction: unset;
    flex-wrap: unset;
    gap: unset;
    padding: 0;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    border-top: none;
    border-bottom: none;
}

.compact-rotator .compact-item {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: compactRotate 32s ease-in-out infinite;
}

.compact-rotator .compact-item:nth-child(1) { animation-delay:  0s; }
.compact-rotator .compact-item:nth-child(2) { animation-delay:  4s; }
.compact-rotator .compact-item:nth-child(3) { animation-delay:  8s; }
.compact-rotator .compact-item:nth-child(4) { animation-delay: 12s; }
.compact-rotator .compact-item:nth-child(5) { animation-delay: 16s; }
.compact-rotator .compact-item:nth-child(6) { animation-delay: 20s; }
.compact-rotator .compact-item:nth-child(7) { animation-delay: 24s; }
.compact-rotator .compact-item:nth-child(8) { animation-delay: 28s; }

@keyframes compactRotate {
    0%      { opacity: 0; transform: translateY(calc(-50% + 7px)); }
    2%      { opacity: 1; transform: translateY(-50%); }
    10.5%   { opacity: 1; transform: translateY(-50%); }
    12.5%   { opacity: 0; transform: translateY(calc(-50% - 7px)); }
    12.51%, 100% { opacity: 0; }
}

.compact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: rgba(0,0,0,0.5);
    transition: color 0.3s;
    cursor: default;
}

.compact-item:hover { color: rgba(0,0,0,0.85); }

.compact-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.compact-dot--award    { background: var(--terracotta); }
.compact-dot--talk     { background: var(--accent-cta); }
.compact-dot--workshop { background: var(--accent); }

.compact-name  {
    font-weight: 600;
    color: var(--text-dark);    /* dark — scannable in 2 sec */
    font-size: 0.88rem;
}
.compact-where {
    color: var(--text-muted);   /* muted — secondary info */
    font-size: 0.83rem;
    font-weight: 400;
}

/* ACTIVITY CTAS */
.activity-ctas {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.activity-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(0,0,0,0.5);
    padding: 0.75rem 1.75rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 999px;
    transition: all 0.3s;
    text-decoration: none;
}

.activity-cta:hover {
    color: rgba(0,0,0,0.88);
    border-color: rgba(0,0,0,0.4);
    gap: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .activity { padding: 5rem 0; }
    .activity .featured-grid,
    .activity .compact-mentions,
    .activity .activity-ctas,
    .activity .activity-section-label,
    .activity .activity-section-title,
    .activity .activity-section-sub { padding-left: 1.5rem; padding-right: 1.5rem; }
    .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
    .featured-card--hero { grid-row: auto; min-height: 340px; }
    .featured-card--sm   { min-height: 240px; }
    .compact-mentions:not(.compact-rotator) { flex-direction: column; gap: 1rem; }
    .compact-rotator { height: 3rem; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-content { padding: 0 2rem 5rem; }
    .hero-headline { font-size: clamp(2.8rem, 10vw, 4rem); }
    .hero-sub { font-size: 0.95rem; }

    .projects-grid { grid-template-columns: 1fr; padding: 0 1.5rem; }
    .projects-grid .project-card--featured { grid-column: span 1; aspect-ratio: 16/10; }
    #works-grid-section .container { padding: 0 1.5rem; }

    .timeline-item { grid-template-columns: 48px 70px 1fr auto; gap: 0.75rem; }
    #media-section .container, #activity-section .container { padding: 0 1.5rem; }
    
    .view-all-container { padding: 0 1.5rem; }

    .upcoming-banner-inner { padding: 0.75rem 1.5rem; gap: 1rem; }
    .upcoming-banner-items { gap: 0.75rem; }
    .upcoming-banner-divider { display: none; }
}

/* ══════════════════════════════════════════════════
   BEHAVIORAL CRITIQUE FIXES — April 2026
   Warm light theme with personality
   ══════════════════════════════════════════════════ */

/* 1. Hero: "companions" in mauve accent + CTA in deep blue */
.hero-accent {
    font-style: normal;
    color: #E8967E;   /* coral — "companions" */
    font-weight: 200;
}

#hero-slider {
    background: #080F1E;
}


/* 2. Upcoming banner — dark glass matching hero */

/* 3. Project cards: lighter overlays + border + shadow */
.projects-grid .project-card {
    border: 1px solid var(--border) !important;
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.projects-grid .project-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
.projects-grid .project-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.0) 50%, transparent 100%) !important;
}
.projects-grid .project-card:hover .project-card-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.08) 55%, transparent 100%) !important;
}

/* Image brightness: let photos breathe */
.projects-grid .project-card {
    filter: brightness(1.0);
}

/* 4. Publication cards: warm bg + border + lighter thumbs + shadow on hover */

/* 5. Activity bento cards: lighter overlays + border + shadow */
.featured-card {
    border: 1px solid var(--border);
}
.featured-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.featured-img {
    filter: brightness(0.55) saturate(0.9) !important;
}
.featured-card:hover .featured-img {
    filter: brightness(0.45) saturate(1) !important;
}
.featured-content {
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 45%) !important;
}

/* 6. Stats: bold numbers */
/* Compact mentions: name bold in --text, source in --text-muted */
.compact-name  { color: var(--text-dark); }
.compact-where { color: var(--text-muted); }

/* Footer brand */
.footer-brand {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1;
    margin-bottom: 0;
}

.footer-tagline {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    color: var(--coral);
    margin-bottom: 0;
    text-transform: lowercase;
}

/* Footer: same dark blue as the hero video */
footer#about {
    background: #0a0d12;
    color: #fff;
    border-top: none;
}
footer#about .footer-copy,
footer#about .social-links a,
footer#about .cv-toggle {
    color: rgba(255,255,255,0.55);
}
footer#about .social-links a:hover {
    color: var(--coral);
}
footer#about .cv-toggle {
    border-color: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.55);
}
footer#about .cv-toggle:hover {
    border-color: var(--coral);
    color: var(--coral);
}

/* 9. Section spacing — tight enough to feel continuous */
#works-grid-section { padding-top: 5rem;  padding-bottom: 3rem; }
#research-section   { padding-top: 4rem;  padding-bottom: 4rem; }
.activity           { padding-top: 4rem;  padding-bottom: 1.5rem; }

/* Footer bottom row — CV left, copyright right */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.25rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
