@font-face {
    font-family: 'Geist';
    src: url('assets/fonts/Geist-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: 'Geist Mono';
    src: url('assets/fonts/GeistMono-Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    /* Muted cyberpunk */
    --void: #0a0a0f;
    --surface: #12121a;
    --surface-raised: #1a1a24;
    --surface-hover: #22222e;
    --text: #e8e6e3;
    --text-dim: #8a8a9a;
    --text-muted: #5a5a6a;

    /* The palette: dusty neon */
    --cyan: #5fb3b3;
    --cyan-dim: #3d7a7a;
    --magenta: #c594c5;
    --magenta-dim: #8a6a8a;
    --amber: #d4a959;
    --amber-dim: #9a7a3a;
    --coral: #d27b7b;

    /* Pixel grid size */
    --pixel: 4px;

    --font-mono: 'Geist Mono', 'Courier New', monospace;
    --font-sans: 'Geist', system-ui, sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--void);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Bilingual system */
html[lang="es"] .lang-en {
    display: none !important;
}

html[lang="en"] .lang-es {
    display: none !important;
}

/* Subtle Effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px);
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(95, 179, 179, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(197, 148, 197, 0.03) 0%, transparent 50%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-lg);
    position: relative;
}

/* Pixel decorations */
.pixel-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    opacity: 0.3;
}

.pixel-corner::before,
.pixel-corner::after {
    content: '';
    position: absolute;
    background: var(--cyan);
}

.pixel-corner--tl::before {
    width: 12px;
    height: 4px;
    top: 0;
    left: 0;
}

.pixel-corner--tl::after {
    width: 4px;
    height: 12px;
    top: 0;
    left: 0;
}

.pixel-corner--tr::before {
    width: 12px;
    height: 4px;
    top: 0;
    right: 0;
}

.pixel-corner--tr::after {
    width: 4px;
    height: 12px;
    top: 0;
    right: 0;
}

.pixel-corner--bl::before {
    width: 12px;
    height: 4px;
    bottom: 0;
    left: 0;
}

.pixel-corner--bl::after {
    width: 4px;
    height: 12px;
    bottom: 0;
    left: 0;
}

.pixel-corner--br::before {
    width: 12px;
    height: 4px;
    bottom: 0;
    right: 0;
}

.pixel-corner--br::after {
    width: 4px;
    height: 12px;
    bottom: 0;
    right: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md) 0;
    margin-bottom: var(--space-lg);
    border-bottom: 1px solid var(--surface-raised);
}

.logo {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--cyan);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.logo::before {
    content: '>';
    opacity: 0.5;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

nav {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

nav a,
.lang-toggle {
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: lowercase;
    transition: color 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
}

nav a:hover,
.lang-toggle:hover {
    color: var(--cyan);
}

nav a::before,
.lang-toggle::before {
    content: '[';
    opacity: 0;
    transition: opacity 0.2s ease;
}

nav a::after,
.lang-toggle::after {
    content: ']';
    opacity: 0;
    transition: opacity 0.2s ease;
}

nav a:hover::before,
nav a:hover::after,
.lang-toggle:hover::before,
.lang-toggle:hover::after {
    opacity: 0.5;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

/* Strip link appearance from bento cards used as <a> tags */
a.bento-card,
a.bento-card:visited,
a.bento-card:hover,
a.bento-card:active {
    display: block;
    color: inherit;
    text-decoration: none;
    -webkit-text-decoration: none;
    outline: none;
}

.bento-card {
    background: var(--surface);
    border: 1px solid var(--surface-raised);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-out backwards;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.bento-card:hover::before {
    border-color: var(--cyan);
    border-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 4H4V0H8V4H12V8H8V12H4V8H0V4Z' fill='%235fb3b3'/%3E%3C/svg%3E") 4 round;
}

.bento-card:hover {
    background: var(--surface-hover);
    transform: translateY(-2px);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Setup animation delays */
.bento-card:nth-child(1) {
    animation-delay: 0.1s;
}

.bento-card:nth-child(2) {
    animation-delay: 0.15s;
}

.bento-card:nth-child(3) {
    animation-delay: 0.2s;
}

.bento-card:nth-child(4) {
    animation-delay: 0.25s;
}

.bento-card:nth-child(5) {
    animation-delay: 0.3s;
}

.bento-card:nth-child(6) {
    animation-delay: 0.35s;
}

.bento-card:nth-child(7) {
    animation-delay: 0.4s;
}

.bento-card:nth-child(8) {
    animation-delay: 0.45s;
}

/* Hero Card */
.card-hero {
    grid-column: span 8;
    grid-row: span 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, var(--surface) 0%, var(--void) 100%);
}

.card-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(95, 179, 179, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(95, 179, 179, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(135deg, black 0%, transparent 60%);
    -webkit-mask-image: linear-gradient(135deg, black 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--magenta);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.hero-tag::before {
    content: '//';
    color: var(--text-muted);
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero-title:hover {
    animation: glitch 0.3s ease;
}

@keyframes glitch {

    0%,
    100% {
        text-shadow: none;
    }

    25% {
        text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan);
    }

    50% {
        text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan);
    }

    75% {
        text-shadow: -1px 0 var(--cyan), 1px 0 var(--magenta);
    }
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 500px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--text);
    font-weight: 500;
}

/* Portrait Card (replaces ASCII Art) */
.card-portrait {
    grid-column: span 4;
    grid-row: span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    padding: 0;
    position: relative;
}

.portrait-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.interactive-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.1s ease-out;
    /* Fallback for smooth JS updates */
    filter: sepia(100%) hue-rotate(150deg) saturate(50%) brightness(80%) contrast(150%);
    opacity: 0.8;
}

.card-portrait:hover .interactive-portrait {
    opacity: 1;
    filter: sepia(100%) hue-rotate(150deg) saturate(70%) brightness(100%) contrast(160%);
}

.portrait-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.1) 2px,
            rgba(0, 0, 0, 0.1) 4px);
    pointer-events: none;
}

/* Research Card */
.card-research {
    grid-column: span 4;
    grid-row: span 2;
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.card-label::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--amber);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.research-list {
    list-style: none;
}

.research-list li {
    padding: var(--space-xs) 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    border-bottom: 1px dashed var(--surface-raised);
    transition: color 0.2s ease;
}

.research-list li:last-child {
    border-bottom: none;
}

.research-list li:hover {
    color: var(--text);
}

.research-list li::before {
    content: '◆';
    font-size: 0.5rem;
    color: var(--cyan-dim);
}

/* Status Card */
.card-status {
    grid-column: span 5;
    grid-row: span 1;
    background: linear-gradient(90deg, var(--surface) 0%, rgba(95, 179, 179, 0.05) 100%);
}

.status-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    animation: pulse 2s ease-in-out infinite;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(95, 179, 179, 0.4);
    }

    50% {
        opacity: 0.6;
        box-shadow: 0 0 0 8px rgba(95, 179, 179, 0);
    }
}

.status-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

.status-title {
    font-weight: 500;
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.status-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Teaching/Coordinating Card */
.card-teaching {
    grid-column: span 3;
    grid-row: span 1;
}

.teaching-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 10px;
}

.teaching-course {
    font-weight: 500;
    font-size: 0.95rem;
}

.teaching-meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Quote Card */
.card-quote {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    align-items: center;
    background: var(--surface);
    border-left: 3px solid var(--magenta-dim);
}

.quote-text {
    font-style: italic;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quote-author {
    display: block;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--magenta);
    margin-top: var(--space-xs);
}

.quote-translation {
    display: block;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Arrow indicator on linked bento cards */
.card-arrow {
    position: absolute;
    bottom: var(--space-sm);
    right: var(--space-sm);
    font-size: 0.9rem;
    color: var(--cyan);
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
}

.bento-card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Thesis subtitle in status card */
.status-subtitle {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
    margin: 2px 0 var(--space-xs);
    opacity: 0.8;
}

/* Teaching group links — invisible as anchors, just clickable */
.teaching-link,
.teaching-link:visited,
.teaching-link:active {
    text-decoration: none;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
}

/* Contact Card */
.card-contact {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, var(--surface) 0%, rgba(212, 169, 89, 0.08) 100%);
}

.contact-prompt {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--amber);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--amber-dim);
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: var(--amber);
    color: var(--void);
    border-color: var(--amber);
}

.contact-link::after {
    content: '→';
}

/* Coordinates Card */
.card-coords {
    grid-column: span 4;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-mono);
}

.coords-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-xs);
}

.coords-value {
    font-size: 1.1rem;
    color: var(--cyan);
    letter-spacing: 0.05em;
}

.coords-name {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: var(--space-xs);
}

/* Project Tiles */
.card-project {
    grid-column: span 3;
    grid-row: span 1;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    flex: 1;
}

.projects-row {
    grid-column: span 12;
    display: flex;
    gap: var(--space-sm);
    height: 200px;
}

/* Location tile — puan.png hover */
.card-coords {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.card-coords::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('assets/puan.png') center / cover no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: luminosity;
    filter: brightness(0.35) saturate(0.4);
    pointer-events: none;
}

.card-coords:hover::after {
    opacity: 1;
}

.card-coords>* {
    position: relative;
    z-index: 1;
}


.project-img-wrapper {
    flex: 1;
    overflow: hidden;
    min-height: 120px;
    position: relative;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: saturate(0.4) brightness(0.85);
    transition: filter 0.35s ease, transform 0.35s ease;
}

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

.project-info {
    padding: var(--space-xs) var(--space-sm);
    background: var(--surface);
    border-top: 1px solid var(--surface-raised);
    flex-shrink: 0;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    transition: color 0.2s;
}

.card-project:hover .project-title {
    color: var(--cyan);
}

.project-desc {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-muted);
    margin: 2px 0 0;
    line-height: 1.4;
}

/* Publications Section */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-dim);
}

.section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--surface-raised) 0%, transparent 100%);
}

.publications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.pub-card {
    background: var(--surface);
    border: 1px solid var(--surface-raised);
    padding: var(--space-md);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pub-card:hover {
    border-color: var(--magenta-dim);
}

.pub-year {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--magenta);
    letter-spacing: 0.1em;
}

.pub-title {
    font-size: 1rem;
    font-weight: 500;
    margin: var(--space-xs) 0;
    line-height: 1.4;
    color: var(--text);
    text-decoration: none;
}

.pub-title.link-out:hover {
    color: var(--cyan);
}

.pub-venue {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Sub-page markdown content */
.page-content {
    max-width: 860px;
    margin: var(--space-xl) auto;
    padding: 0 var(--space-md);
    line-height: 1.8;
    color: var(--text-dim);
}

.page-content h1,
.page-content h2,
.page-content h3 {
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
    margin: var(--space-lg) 0 var(--space-sm);
    letter-spacing: 0.05em;
}

.page-content h1 {
    font-size: 1.8rem;
    color: var(--cyan);
}

.page-content h2 {
    font-size: 1.3rem;
    border-bottom: 1px solid var(--surface-raised);
    padding-bottom: var(--space-xs);
}

.page-content h3 {
    font-size: 1.1rem;
}

.page-content p {
    margin-bottom: var(--space-md);
}

.page-content ul,
.page-content ol {
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.page-content li {
    margin-bottom: var(--space-xs);
}

.page-content a {
    color: var(--cyan);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.page-content a:hover {
    border-bottom-color: var(--cyan);
}

.page-content strong {
    color: var(--text);
}

.page-content em {
    color: var(--amber);
    font-style: normal;
}

.page-content blockquote {
    border-left: 2px solid var(--cyan-dim);
    padding-left: var(--space-md);
    color: var(--text-muted);
    margin: var(--space-md) 0;
}

/* Pub grid inside publications page */
.page-content .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-raised);
    padding: var(--space-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    align-items: center;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-copy {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Implication to Heart Hover Effect */
.implication-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--coral);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: default;
    user-select: none;
}

.implication-heart::before {
    content: '⇒';
}

.implication-heart:hover {
    color: var(--magenta);
    opacity: 1;
}

.implication-heart:hover::before {
    content: '♥';
}

/* Responsive */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .card-hero {
        grid-column: span 6;
        grid-row: span 2;
    }

    .card-portrait {
        grid-column: span 3;
    }

    .card-research {
        grid-column: span 3;
    }

    .card-status {
        grid-column: span 6;
    }

    .card-teaching {
        grid-column: span 6;
    }

    .card-quote {
        grid-column: span 3;
    }

    .card-contact {
        grid-column: span 3;
    }

    .card-coords {
        grid-column: span 6;
    }
}

@media (max-width: 640px) {
    .container {
        padding: var(--space-md);
    }

    .bento-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .bento-card {
        width: 100%;
    }

    .card-hero {
        min-height: 280px;
    }

    header {
        flex-direction: column;
        gap: var(--space-md);
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Mobile Typography & Portrait Fixes */
    .hero-title {
        font-size: 2.5rem;
    }

    .card-portrait {
        display: none;
    }

    .portrait-wrapper {
        height: 100%;
        width: 100%;
    }

    .portrait-wrapper img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        object-position: top center;
    }

    .projects-row {
        flex-direction: column;
        height: auto;
    }

    .card-project {
        min-height: 120px;
        flex-direction: row;
        align-items: center;
    }

    .project-img-wrapper {
        flex: 0 0 100px;
        /* Fixed width for project image on mobile */
        height: 100px;
        min-height: auto;
    }

    .project-info {
        flex: 1;
        border-top: none;
        border-left: 1px solid var(--surface-raised);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}