/* ─── VARIABLES ─── */

:root
{
    --navy: #0F172A;
    --navy-mid: #1E293B;
    --teal: #0D9488;
    --teal-light: #CCFBF1;
    --teal-dark: #0F766E;
    --amber: #D97706;
    --amber-light: #FEF3C7;
    --cream: #FAF9F6;
    --cream-dark: #F0EDE6;
    --text: #1A1A2E;
    --text-muted: #64748B;
    --text-light: #94A3B8;
    --border: #E2E0D8;
    --white: #FFFFFF;
    --shadow: rgba(15,23,42,0.08);
}

/* ─── RESET & BASE ─── */

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

html
{
    scroll-behavior: smooth;
    font-size: 16px;
}

body
{
    font-family: 'Outfit', sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    text-align: justify;
}

/* ─── LEFT-ALIGNED EXCEPTIONS ─── */

nav, .nav-brand, .nav-links, .nav-socials,
.hero-badge, .hero-name, .hero-title, .hero-cta,
.hero-stat, .hero-stat-num, .hero-stat-label,
.section-label, .section-label-text,
.section-heading, .pub-meta, .pub-num, .pub-tag,
.pub-authors, .btn, .tech-tag, .skill-tag, .skill-tags,
.skill-category-head, .skill-category h3,
.chapter-num, .chapter-title,
.contact-item-label, .project-badge, .project-name,
.project-tags, .project-footer, .project-doi,
.thesis-links, .contact-info, .footer-text,
.about-name, .about-role, .about-link, .about-links,
.hero-stats, .feature-item, .research-icon,
.research-card h3, .contact-quote-author,
.pub-title, .contact-item-value, h1, h2, h3, h4
{
    text-align: left;
}

.hero-photo-placeholder, .about-photo-placeholder,
.about-card
{
    text-align: center;
}

/* ─── NAVIGATION ─── */

nav
{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250,249,246,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: box-shadow 0.3s;
}

nav.scrolled
{
    box-shadow: 0 2px 20px var(--shadow);
}

.nav-brand
{
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    text-decoration: none;
    letter-spacing: -0.02em;
}

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

.nav-links a
{
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
    position: relative;
}

.nav-links a::after
{
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: width 0.2s;
}

.nav-links a:hover
{
    color: var(--teal);
}

.nav-links a:hover::after
{
    width: 100%;
}

.nav-socials
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-socials a
{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.8rem;
}

.nav-socials a:hover
{
    background: var(--teal);
    border-color: var(--teal);
    color: white;
}

/* ─── HERO ─── */

#hero
{
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 5% 0;
    gap: 4rem;
    position: relative;
    overflow: hidden;
}

#hero::before
{
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-text
{
    padding-top: 2rem;
}

.hero-badge
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-badge-dot
{
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse
{
    0%, 100%
    {
        opacity: 1;
        transform: scale(1);
    }

    50%
    {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.hero-name
{
    font-family: 'Lora', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 0.5rem;
}

.hero-title
{
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.hero-title strong
{
    color: var(--teal-dark);
    font-weight: 600;
}

.hero-bio
{
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 520px;
    margin-bottom: 2rem;
}

.hero-cta
{
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn
{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover
{
    background: var(--teal-dark);
    transform: translateY(-1px);
}

.btn-secondary
{
    background: transparent;
    color: var(--navy);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover
{
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}

/* ─── HERO VISUAL ─── */

.hero-visual
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.hero-photo-wrap
{
    position: relative;
}

.hero-photo-wrap::before
{
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(13,148,136,0.3);
    border-radius: 50%;
}

.hero-photo
{
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(13,148,136,0.15);
    display: block;
}

.hero-photo-placeholder
{
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--cream-dark);
    border: 4px solid white;
    box-shadow: 0 20px 60px rgba(13,148,136,0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 0.8rem;
    text-align: center;
}

.hero-stats
{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
}

.hero-stat
{
    background: white;
    padding: 1rem;
    text-align: center;
}

.hero-stat-num
{
    font-family: 'Lora', serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--teal);
    line-height: 1;
}

.hero-stat-label
{
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ─── SECTIONS ─── */

section
{
    padding: 6rem 5%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

#hero
{
    opacity: 1;
    transform: none;
}

.section-label
{
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
}

.section-label-text
{
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
}

.section-label-line
{
    flex: 1;
    max-width: 40px;
    height: 1px;
    background: var(--teal);
    opacity: 0.4;
}

.section-heading
{
    font-family: 'Lora', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-sub
{
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* ─── DIVIDER ─── */

.divider
{
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
    margin: 0 5%;
}

/* ─── ABOUT ─── */

#about .about-grid
{
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-sidebar
{
    position: sticky;
    top: 80px;
}

.about-card
{
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
}

.about-photo
{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    border: 3px solid var(--teal-light);
}

.about-photo-placeholder
{
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--cream-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--text-light);
    font-size: 0.72rem;
    text-align: center;
    border: 3px solid var(--teal-light);
    padding: 10px;
}

.about-name
{
    font-family: 'Lora', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

.about-role
{
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.about-links
{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 1.25rem;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

.about-link
{
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.about-link:hover
{
    background: var(--cream-dark);
    color: var(--teal);
}

.about-link-icon
{
    width: 18px;
    height: 18px;
    background: var(--cream-dark);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}

.about-content p
{
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 1.25rem;
}

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

/* ─── RESEARCH ─── */

#research
{
    background: var(--navy);
    color: white;
}

#research .section-label-text
{
    color: rgba(13,148,136,0.9);
}

#research .section-heading
{
    color: white;
}

#research .section-sub
{
    color: rgba(255,255,255,0.5);
}

#research .section-label-line
{
    background: rgba(13,148,136,0.5);
}

.research-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.research-card
{
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.research-card::before
{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}

.research-card:hover
{
    background: rgba(255,255,255,0.07);
    border-color: rgba(13,148,136,0.3);
    transform: translateY(-4px);
}

.research-card:hover::before
{
    transform: scaleX(1);
}

.research-icon
{
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(13,148,136,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.2rem;
}

.research-card h3
{
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.research-card p
{
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
}

/* ─── THESIS ─── */

.thesis-layout
{
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.thesis-summary p
{
    font-size: 0.97rem;
    color: var(--text-muted);
    line-height: 1.85;
    margin-bottom: 1rem;
}

.thesis-chapters
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.chapter-card
{
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.chapter-card:hover
{
    border-color: var(--teal);
}

.chapter-num
{
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--teal-light);
    color: var(--teal-dark);
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

.chapter-title
{
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.chapter-desc
{
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.thesis-links
{
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

/* ─── PUBLICATIONS ─── */

#publications
{
    background: var(--cream-dark);
}

.pub-list
{
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.pub-card
{
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.75rem;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 1.25rem;
    align-items: start;
    transition: all 0.25s;
    position: relative;
}

.pub-card:hover
{
    border-color: var(--teal);
    box-shadow: 0 4px 20px rgba(13,148,136,0.08);
    transform: translateX(4px);
}

.pub-num
{
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--teal);
    line-height: 1;
    padding-top: 4px;
}

.pub-authors
{
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.pub-authors strong
{
    color: var(--navy);
    font-weight: 600;
}

.pub-title
{
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.pub-meta
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.pub-tag
{
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--teal-light);
    color: var(--teal-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.pub-tag:hover
{
    background: var(--teal);
    color: white;
}

/* ─── PROJECTS ─── */

.project-featured
{
    background: white;
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.project-header
{
    background: var(--navy);
    padding: 2.5rem 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.project-header::before
{
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(13,148,136,0.15) 0%, transparent 70%);
}

.project-header-grid
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.project-header-text
{
    min-width: 0;
}

.project-header-image
{
    min-width: 0;
}

.project-header-image img
{
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.project-badge
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(13,148,136,0.2);
    color: rgba(13,148,136,0.9);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(13,148,136,0.2);
}

.project-name
{
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.project-tagline
{
    color: rgba(255,255,255,0.6);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

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

.tech-tag
{
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', monospace;
    border: 1px solid rgba(255,255,255,0.1);
}

.project-body
{
    padding: 2.5rem;
}

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

.feature-item
{
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.feature-dot
{
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    margin-top: 7px;
    flex-shrink: 0;
}

.feature-item p
{
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.feature-item p strong
{
    color: var(--navy);
    font-weight: 600;
}

.project-footer
{
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-doi
{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.doi-dot
{
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
}

/* ─── SKILLS ─── */

.skills-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.skill-category
{
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}

.skill-category-head
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.skill-category-icon
{
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.skill-category h3
{
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.02em;
}

.skill-tags
{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.skill-tag
{
    background: var(--cream-dark);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.skill-tag:hover
{
    background: var(--teal-light);
    color: var(--teal-dark);
    border-color: rgba(13,148,136,0.2);
}

/* ─── CONTACT ─── */

#contact
{
    background: var(--navy);
}

#contact .section-label-text
{
    color: rgba(13,148,136,0.9);
}

#contact .section-heading
{
    color: white;
}

#contact .section-sub
{
    color: rgba(255,255,255,0.5);
}

#contact .section-label-line
{
    background: rgba(13,148,136,0.4);
}

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

.contact-info
{
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item
{
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-icon-wrap
{
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(13,148,136,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item-label
{
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.contact-item-value
{
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contact-item-value a
{
    color: var(--teal);
    text-decoration: none;
}

.contact-item-value a:hover
{
    text-decoration: underline;
}

.contact-quote
{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
}

.contact-quote::before
{
    content: '\201C';
    font-family: 'Lora', serif;
    font-size: 5rem;
    color: rgba(13,148,136,0.2);
    position: absolute;
    top: -10px;
    left: 1.5rem;
    line-height: 1;
}

.contact-quote-text
{
    font-family: 'Lora', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    padding-top: 1.5rem;
    margin-bottom: 1rem;
}

.contact-quote-author
{
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
}

/* ─── FOOTER ─── */

footer
{
    background: #080F1E;
    padding: 2rem 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-text
{
    font-size: 0.8rem;
    color: rgba(255,255,255,0.3);
}

.footer-text span
{
    color: var(--teal);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px)
{
    #hero
    {
        grid-template-columns: 1fr;
        text-align: center;
    }
    #hero .hero-text
    {
        order: 2;
        padding-top: 0;
    }
    .hero-visual
    {
        order: 1;
    }
    .hero-cta
    {
        justify-content: center;
    }
    .hero-bio
    {
        margin: 0 auto 2rem;
    }
    .hero-stats
    {
        max-width: 360px;
        margin: 0 auto;
    }
    #about .about-grid
    {
        grid-template-columns: 1fr;
    }
    .about-sidebar
    {
        position: static;
    }
    .contact-grid
    {
        grid-template-columns: 1fr;
    }
    nav
    {
        padding: 0 4%;
    }
}

@media (max-width: 600px)
{
    section
    {
        padding: 4rem 4%;
    }
    .nav-links
    {
        display: none;
    }
    .research-grid
    {
        grid-template-columns: 1fr;
    }
    .hero-photo, .hero-photo-placeholder
    {
        width: 180px;
        height: 180px;
    }
    .hero-photo-wrap::before
    {
        inset: -6px;
    }
    .project-header
    {
        padding: 1.75rem;
    }
    .project-header-grid
    {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .project-header-image
    {
        order: -1;
        justify-self: center;
    }
    .project-header-image img
    {
        width: 160px;
    }
    .project-body
    {
        padding: 1.75rem;
    }
    #hero
    {
        padding-top: 80px;
        gap: 2rem;
    }
}

/* ─── PAGE LOADER ─── */

#page-loader
{
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--navy);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.loaded
{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring
{
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(204, 251, 241, 0.15);
    border-top-color: var(--teal);
    border-right-color: var(--teal);
    animation: loader-spin 0.9s linear infinite;
}

.loader-label
{
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(204, 251, 241, 0.7);
}

.loader-label::after
{
    content: '';
    display: inline-block;
    width: 1ch;
    animation: loader-dots 1.4s steps(4, end) infinite;
}

@keyframes loader-spin
{
    to { transform: rotate(360deg); }
}

@keyframes loader-dots
{
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

@media (prefers-reduced-motion: reduce)
{
    .loader-ring { animation-duration: 2s; }
    .loader-label::after { animation: none; content: '...'; }
}