:root {
    --background-color: #111A23;
    --surface-color: #1F2B35;
    --surface-strong: #23303B;
    --text-color: #E8F2F7;
    --muted-color: #9DB2BF;
    --accent-color: #FF9B51;
    --accent-soft: rgba(255, 155, 81, 0.16);
    --border-color: rgba(255, 255, 255, 0.08);
    --radius: 18px;
    --spacing: 100px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, sans-serif;
    background: radial-gradient(circle at top left, rgba(255, 155, 81, 0.12), transparent 28%),
                linear-gradient(180deg, #0B1117 0%, #111A23 100%);
    color: var(--text-color);
}

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

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    color: #FFD5A8;
}

main {
    max-width: 1300px;
    margin: 0 auto;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 28px var(--spacing);
}

nav .left h2 {
    margin: 0;
    font-size: 24px;
    letter-spacing: 0.04em;
}

nav .left h4 {
    margin: 6px 0 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--muted-color);
}

nav .right {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

nav .right a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

nav .right a.nav-home {
    margin-left: auto;
    background: var(--accent-color);
    color: var(--background-color);
    border-color: transparent;
}

nav .right a.nav-home:hover {
    background: #ffb876;
    color: var(--background-color);
}

nav .right a:hover {
    background: var(--accent-soft);
    border-color: rgba(255, 155, 81, 0.35);
    transform: translateY(-1px);
}

.top-bar {
    height: 2px;
    width: calc(100% - 2 * var(--spacing));
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.08);
}

section {
    padding: 0 var(--spacing);
}

.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 72px;
}

.hero-section .text h2 {
    margin: 0 0 24px;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.02;
}

.hero-section .text p {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted-color);
}

.hero-section .links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.hero-section .links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 155, 81, 0.35);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-color);
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-section .links a:hover {
    background: var(--accent-color);
    color: var(--background-color);
    transform: translateY(-1px);
}

.hero-section .headshot {
    min-height: 320px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(255, 155, 81, 0.16), rgba(15, 24, 34, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
    overflow: hidden;
}

.skills-section,
.projects-section,
.contact-section,
.experience-section,
.education-section {
    padding-top: 64px;
    padding-bottom: 64px;
}

.experience-section {
    margin-bottom: 42px;
}

.education-section {
    padding-top: 92px;
}

.section-title {
    max-width: 900px;
    margin: 0 auto 24px;
    text-align: center;
}

.section-title h2 {
    margin: 0;
    font-size: 2.35rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.section-title p {
    margin: 18px auto 0;
    max-width: 760px;
    color: var(--muted-color);
    line-height: 1.75;
}

.info-card {
    position: relative;
    overflow: hidden;
    padding-top: 16px;
}

.info-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(255, 155, 81, 0.95), rgba(255, 155, 81, 0.25));
}

.skills-section .cells {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
    margin-top: 28px;
}

.skills-section .cell {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: center;
    padding: 20px 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.skills-section .cell:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 155, 81, 0.4);
}

.skills-section .cell i,
.skills-section .cell span {
    display: inline-flex;
    align-items: center;
}

.skills-section .cell i {
    width: 44px;
    height: 44px;
    font-size: 1.45rem;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.skills-section .cell span {
    font-size: 1rem;
    color: var(--text-color);
}

.projects-section .project-cards,
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 34px;
}

.project-card,
.info-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover,
.info-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22);
    border-color: rgba(255, 155, 81, 0.35);
}

.project-card img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.project-info,
.info-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.project-info h3,
.info-info h3 {
    margin: 0 0 12px;
    font-size: 1.45rem;
    color: var(--text-color);
}

.project-info p,
.info-info p {
    margin: 0 0 20px;
    color: var(--muted-color);
    line-height: 1.75;
}

.info-info .date {
    margin: auto 0 0;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
}

.project-info a {
    margin-top: auto;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--accent-color);
}

.project-info a:hover {
    text-decoration: underline;
}

@media (max-width: 980px) {
    nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-section {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero-section .headshot {
        min-height: 260px;
    }
}

@media (max-width: 640px) {
    :root {
        --spacing: 32px;
    }

    .hero-section .text h2 {
        font-size: 2.25rem;
    }

    nav .right {
        width: 100%;
        justify-content: space-between;
    }
}

.article {
    padding: 48px 0 72px;
    border-bottom: 1px solid var(--border-color);
}
 
.article:last-of-type {
    border-bottom: none;
}
 
.article__title {
    margin: 0 0 20px;
    font-size: clamp(2.6rem, 4vw, 4.2rem);
    line-height: 1.02;
}
 
.article__description {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted-color);
    margin: 0 0 1.4em;
}
 
/* ── Paired block: text beside image ────────────────────── */
.article__pair {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* text gets more space than image */
    gap: 36px;
    align-items: start;
    margin-bottom: 1.4em;
}
 
.article__pair .article__description {
    max-width: unset;
    margin: 0;
}
 
/* ── Media ──────────────────────────────────────────────── */
figure.article__media {
    margin: 2em 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(255, 155, 81, 0.16), rgba(15, 24, 34, 0.9));
}
 
figure.article__media img,
figure.article__media video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
 
figure.article__media figcaption {
    padding: 10px 14px;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted-color);
    border-top: 1px solid var(--border-color);
}
 
/* paired image: constrain so it never goes banner-wide */
.article__pair figure.article__media {
    margin: 0;
    max-width: 420px;   /* hard cap regardless of column width */
    justify-self: start;
}
 
/* standalone full-width figure */
.article > figure.article__media {
    max-width: 860px;
}
 
/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
    .article__pair {
        grid-template-columns: 1fr;
    }
 
    .article__pair figure.article__media {
        max-width: 100%;
    }
}