@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500&family=IBM+Plex+Mono:wght@400;500&display=swap');
/* =========================================
THEME VARIABLES AND GLOBAL SETTINGS
========================================= */
:root {
    --bg: #251710;
    --fg: #f1e8d9;
    --card: #1b0e08;
    --primary: #f06b2f;
    --muted: #bda58e;
    --muted-cream: #a56a2f;
    --border: #553322;
    --sans:'DM Sans',sans-serif;
    --serif:'Lora',Georgia,serif;
    --mono:'IBM Plex Mono',monospace
}
/* Global box sizing */
* {
    box-sizing:border-box
}
/* Page scrolling behavior */
html {
    scroll-behavior:smooth;
    scroll-padding-top:95px
}
/* Main page appearance */
body {
    margin:0;
    background:var(--bg);
    color:var(--fg);
    font-family:var(--sans);
    -webkit-font-smoothing:antialiased
}
a {
    color:inherit;
    text-decoration:none
}
button,input,textarea {
    font:inherit
}
/* Shared content width */
.wrap {
    width:min(1320px,calc(100% - 64px));
    margin:auto
}
/* Sticky desktop navigation bar */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Arrange logo and navigation on one horizontal line */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    /* Full-width navbar sizing */
    width: 100%;
    height: 100px;
    margin: 0;
    padding: 0 max(7%, calc((100% - 1660px) / 2));
    /* Preserve the existing dark theme */
    background: rgba(31, 16, 10, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    /* Subtle bottom border */
    border-bottom: 1px solid rgba(240, 107, 47, 0.13);
}
/* Navigation logo */
.brand {
    font:28px var(--serif)
}
.brand span,.eyebrow,.email,.more-link a {
    color:var(--primary)
}
/* Desktop navigation links */
.nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 38px;
    margin: 0;
    padding: 0;
    color: var(--muted);
    font-size: 18px;
}
.nav a:hover,.social a:hover {
    color:var(--primary)
}
/* Mobile navigation button */
.menu-toggle {
    display:none;
    background:none;
    color:var(--fg);
    border:1px solid var(--border);
    border-radius:9px;
    padding:8px 11px;
    cursor:pointer;
}
/* Home / hero section */
.hero {
    min-height:690px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    align-items:center;
    gap:55px;
    padding-top:20px;
    padding-bottom:45px;
}
.hero-visual {
    max-width: 460px;
}
.hero-visual figure {
    max-height: 510px;
}
.hero-visual img {
    object-fit: cover;
}
/* Small section labels */
.eyebrow {
    font-size:11px;
    font-weight:600;
    letter-spacing:.2em;
    text-transform:uppercase;
    margin-top:-30px;
}
.hero h1 {
    font:clamp(58px,8vw,80px)/.91 var(--serif);
    letter-spacing:-.055em;
    margin:24px 0;
}
.hero h1 em,h2 em {
    color:var(--primary);
    font-weight:400;
}
.lead {
    max-width:580px;
    color:var(--muted);
    font-size:17px;
    line-height:1.8;
}
.actions {
    display:flex;
    flex-wrap:wrap;
    gap:12px;
    margin-top:30px
}
/* Reusable buttons */
.button {
    min-height:48px;
    border-radius:30px;
    padding:0 21px;
    display:inline-flex;
    align-items:center;
    gap:12px;
    font-size:13px;
    border:1px solid var(--border);
    cursor:pointer;
    transition:.2s
}
.button:hover {
    transform:translateY(-2px)
}
.primary {
    background:var(--primary);
    color:#211912;
    border-color:var(--primary);
    font-weight:600
}
.outline:hover {
    border-color:var(--primary);
    color:var(--primary)
}
/* Social media links */
.social {
    display:flex;
    gap:25px;
    margin-top:30px;
    color:var(--muted);
    font-size:12px
}
/* Hero image and caption */
.hero-visual {
    width:min(100%,490px);
    justify-self:end
}
.hero-visual figure {
    margin:0;
    position:relative;
    aspect-ratio:4/5;
    border:1px solid rgba(201,130,76,.45);
    padding:10px;
    border-radius:23px
}
.hero-visual img {
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:16px;
    display:block
}
.hero-visual figcaption {
    position:absolute;
    left:10px;
    right:10px;
    bottom:10px;
    padding:65px 22px 22px;
    display:flex;
    align-items:end;
    justify-content:space-between;
    background:linear-gradient(transparent,rgba(27,17,12,.92));
    border-radius:0 0 16px 16px
}
.hero-visual figcaption strong {
    display:block;
    font:21px var(--serif)
}
.hero-visual figcaption small {
    display:block;
    margin-top:6px;
    color:#e0d4c6;
    font-size:11px
}
.hero-visual figcaption i {
    width:8px;
    height:8px;
    border-radius:50%;
    background:var(--primary);
    box-shadow:0 0 18px var(--primary)
}
/* Location label */
.location {
    text-align:center;
    color:var(--muted);
    font:10px var(--mono);
    letter-spacing:.13em;
    margin-top:-14px;
    width:100%;
}
/* Shared section spacing */
.section {
    padding:60px 0;
    border-top:2px solid var(--border)
}
.tinted {
    background:rgba(48,37,29,.48)
}
/* Section headings and descriptions */
.section-intro {
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:30px;
    margin-bottom:40px
}
.section-intro h2,.experience-layout h2,.contact-layout h2 {
    font:clamp(32px,5vw,5px)/1.08 var(--serif);
    letter-spacing:-.035em;
    margin:16px 0 0
}
.section-intro>p,.muted {
    max-width:520px;
    color:var(--muted);
    font-size:14px;
    line-height:1.85
}
/* Work and research filters */
.filters, .experience-filter,
/* Research cards */
.research-tabs {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin:32px 0 24px
}
.filter,.research-tab, .experience-filter {
    background:transparent;
    color:var(--muted);
    border:1px solid var(--fg);
    border-radius:20px;
    padding:8px 12px;
    font-size:14px;
    cursor:pointer;
}
.filter.active,
.experience-filter.active,
.research-tab.active,
.filter:hover,
.experience-filter:hover,
.research-tab:hover {
    background:var(--muted);
    border-color:var(--primary);
    color:#211912
}


/* =========================================
   EXPERIENCE FILTER BUTTON ALIGNMENT
========================================= */

/* Move experience buttons upward */
.experience-filters {
    margin-top: -50px;
    margin-bottom: 1px;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
}

/* Match the existing project filter button appearance */
.experience-filters .experience-filter {
    background: transparent;
    color: var(--muted);
    border: 2px solid var(--muted);
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s ease;
}

/* Selected button and hover appearance */
.experience-filters .experience-filter.active,
.experience-filters .experience-filter:hover {
    background: var(--muted);
    border-color: var(--primary);
    color: #211912;
}
/* Project list and project cards */
.project-list {
    border-top:1px solid var(--border)
}
.project {
    display:grid;
    grid-template-columns:55px 1fr 175px;
    align-items:center;
    gap:25px;
    padding:28px 10px;
    border-bottom:1px solid var(--border);
    transition:background .2s
}
.project:hover {
    background:rgba(201,130,76,.045)
}
.number {
    font:11px var(--mono);
    color:var(--muted);
    font-size:18px;
}
.project-meta {
    font-size:12px;
    text-transform:uppercase;
    letter-spacing:.13em;
    color:var(--muted-cream);
}
.project-meta span {
    color:var(--muted);
    margin-left:12px
}
.project h3,.research-card h3 {
    font:23px var(--serif);
    margin:9px 0
}
.project p,.research-card p {
    font-size:14px;
    line-height:1.7;
    color:var(--muted);
    margin:8px 0
}
.tools {
    font-size:13px!important;
    color:#d8cbbd!important
}
.project-end {
    display:flex;
    justify-content:flex-end;
    align-items:center;
    gap:1px
}
.impact {
    text-align:right
}
.impact strong {
    display:block;
    font:25px var(--serif);
    color:var(--mutted-cream);
}
.impact small {
    font-size:12px;
    color:var(--muted)
}
.round-link {
    border:1px solid var(--border);
    width:32px;
    height:32px;
    border-radius:50%;
    display:grid;
    place-items:center
}
.round-link:hover {
    border-color:var(--primary);
    color:var(--primary)
}
.more-link {
    text-align:right;
    margin-top:25px;
    color:var(--muted-cream);
    font-size:15px
}
/* Skills section label */
.micro-heading {
    border-bottom:1px solid var(--border);
    padding:0 0 12px;
    color:var(--muted);
    font:10px var(--mono);
    letter-spacing:.12em
}
.micro-heading span {
    float:right
}
/* Skills cards layout */
.skill-grid {
    display:grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap:10px;
    background: transparent;
    border:none;
    border-radius:0;
    overflow:hidden;
}
/* Individual skills cards */
.skill-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 20px;
    background: #1b0e08;
    border: 1px solid #553322;
    border-radius: 16px;
    transition: border-color 0.3s ease,background 0.3s ease,transform 0.3s ease;
}
.skill-card:hover {
    border-color: #f06b2f;
    background: #211109;
    transform: translateY(-4px);
}
.skill-card h3 {
    font:20px var(--serif);
    color: var(--fg);
    margin:0 0 8px;
}
.skill-card p {
    font-size:14px;
    color:var(--muted);
    line-height:1.6;
    margin: 0 0 18px;
}
.skill-tags {
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-top:auto;
    padding-top: 1px;
}
.skill-tags span {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border: 1px solid #553322;
    border-radius: 25px;
    color: #e7ded1;
    background: transparent;
    font-size: 12px;
    transition:color 0.2s ease,border-color 0.2s ease,background 0.2s ease;
}
.skill-tags span:hover {
    color: #f06b2f;
    border-color: #f06b2f;
    background: rgba(240, 107, 47, 0.06);
}
.research-tabs {
    margin-bottom:24px
}
.research-list {
    border-top:1px solid var(--border)
}
.research-card {
    display:grid;
    grid-template-columns:60px 180px 1fr;
    gap:25px;
    padding:30px 5px;
    border-bottom:1px solid var(--border)
}
.research-status {
    font:10px var(--mono);
    text-transform:uppercase;
    letter-spacing:.1em;
    color:var(--primary)
}
.research-kind {
    font-size:11px;
    color:var(--muted);
    margin-top:10px
}
.research-card h3 {
    margin-top:0;
    line-height:1.3
}
.research-card ul {
    display:flex;
    flex-wrap:wrap;
    gap:18px;
    padding:0;
    list-style:none;
    color:#ded4c8;
    font-size:11px
}
.research-card li:before {
    content:'— ';
    color:var(--primary)
}
/* Experience and education layout */
.experience-layout {
    display:grid;
    grid-template-columns:.8fr 1.2fr;
    gap:90px
}
.education {
    border-left:1px solid var(--primary);
    padding-left:20px;
    margin-top:30px
}
.education strong {
    display:block;
    font:20px var(--serif);
    margin-top:23px
}
.education p,.education small {
    display:block;
    color:var(--muted);
    font-size:12px;
    margin:6px 0
}
.timeline {
    border-top:1px solid var(--border)
}
.timeline article {
    padding:20px 0;
    border-bottom:1px solid var(--border);
    display:grid;
    grid-template-columns:130px 1fr;
    gap:20px
}
.timeline time {
    font:11px var(--mono);
    color:var(--muted-cream);
    text-transform:uppercase
}
.timeline h3 {
    font:20px var(--serif);
    margin:0
}
.timeline .company {
    font-size:14px;
    color:var(--muted);
    margin:6px 0
}
.timeline p:last-child {
    font-size:13px;
    line-height:1.7;
    color:var(--muted)
}
/* Contact section layout */
.contact-layout {
    display:grid;
    grid-template-columns:.9fr 1.1fr;
    gap:80px
}
.contact-layout h2 {
    margin-bottom:25px
}
.email {
    display:inline-block;
    margin-top:22px;
    font-size:13px;
    color:var(--muted);
    border:1px solid var(--border);
    border-radius:8px;
    padding:12px 18px;
    background:var(--bg);
    color:var(--muted);
}

.email:hover {
    border-color:var(--muted-cream);
    color:var(--muted-cream)
}

/* Contact form */
form {
    display:grid;
    gap:20px
}
label {
    font-size:11px;
    color:var(--muted)
}
input,textarea {
    display:block;
    width:100%;
    margin-top:9px;
    padding:14px;
    border:1px solid var(--border);
    border-radius:8px;
    background:var(--bg);
    color:var(--fg);
    outline:none;
    font-size:13px
}
input:focus,textarea:focus {
    border-color:var(--primary)
}
textarea {
    resize:vertical
}
.form-row {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px
}
.form-submit {
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}
#form-status {
    font-size:11px;
    color:var(--muted)
}
/* Website footer */
footer {
    border-top:1px solid var(--border);
    padding:23px max(24px,calc((100% - 1180px)/2));
    display:flex;
    justify-content:space-between;
    gap:18px;
    color:var(--muted);
    font-size:14px
}
footer a {
    border:1px solid var(--border);
    border-radius:8px;
    padding:2px 10px;
    background:var(--bg);
    color:var(--muted);
}
footer a:hover {
    color:var(--primary)
}
/* Responsive layout for mobile screens */
@media(max-width:760px) {
    .wrap,.site-header {
        width:calc(100% - 36px)
    }
    .site-header {
        padding:17px 20px;
        position:sticky;
        width:100%;
    }
    .menu-toggle {
        display:block
    }
    .nav {
        display:none;
        position:absolute;
        z-index:5;
        top:62px;
        left:0;
        right:0;
        background:#30251d;
        border:1px solid var(--border);
        border-radius:12px;
        padding:18px;
        flex-direction:column;
        gap:1px;
    }
    .nav.open {
        display:flex
    }
    .hero {
        grid-template-columns:1fr;
        gap:38px;
        min-height:0;
        padding-top:30px;
        padding-bottom:65px
    }
    .hero-copy {
        order:2
    }
    .hero-visual {
        order:1;
        width:min(85%,400px);
        justify-self:center
    }
    .hero h1 {
        font-size:clamp(57px,15vw,85px)
    }
    .lead {
        font-size:15px
    }
    .section {
        padding:72px 0
    }
    .section-intro {
        display:block
    }
    .section-intro>p {
        margin-top:22px
    }
    .project {
        grid-template-columns:32px 1fr;
        gap:12px;
        padding:23px 2px;
    }
    .project-end {
        grid-column:2;
        justify-content:space-between;
    }
    .impact {
        text-align:left;
    }
    .skill-grid {
        grid-template-columns:1fr;
        gap: 16px;
    }
    .skill-card {
        padding:23px;
        min-height: 230px;
    }
    .skill-card h3 {
        font-size: 23px;
    }
    .micro-heading span {
        float:none;
        display:block;
        margin-top:7px;
    }
    .research-card {
        grid-template-columns:34px 1fr;
        gap:12px
    }
    .research-card>div:nth-child(2) {
        grid-column:2;
        grid-row:1
    }
    .research-card>div:nth-child(3) {
        grid-column:2
    }
    .research-card h3 {
        font-size:22px
    }
    .experience-layout,.contact-layout {
        grid-template-columns:1fr;
        gap:45px
    }
    .timeline article {
        grid-template-columns:1fr;
        gap:10px
    }
    .form-row {
        grid-template-columns:1fr
    }
    .contact-layout h2 {
        font-size:40px
    }
    footer {
        padding:22px 18px;
        flex-direction:column;
        text-align:center
    }
}
/* Accessibility: reduce motion when requested */
@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior:auto
    }
    *,*:before,*:after {
        transition:none!important;
        animation:none!important
    }
    
}

/* Remove default mobile tap highlight */
button,
a {
    -webkit-tap-highlight-color: transparent;
}

/* Prevent text selection when tapping category buttons */
.filter,
.experience-filter {
    -webkit-user-select: none;
    user-select: none;
}

/* Remove default focus outline on mouse/touch interaction */
.filter:focus:not(:focus-visible),
.experience-filter:focus:not(:focus-visible) {
    outline: none;
}

.stats {
    display: flex;
    margin-top: 25px;
}

.stats > div {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 22px;
    border-right: 1px solid #d4c4b6;
}

.stats > div:first-child {
    padding-left: 40px;
}

.stats > div:last-child {
    border-right: 0;
}

.stats strong {
    font-size: 22px;
}

.stats span {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   RESPONSIVE PORTFOLIO STATISTICS
========================================= */

@media (max-width: 760px) {

    /* Arrange all three statistics within the phone width */
    .stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
        gap: 0;
        margin-top: 28px;
    }

    /* Stack each number above its label */
    .stats > div,
    .stats > div:first-child {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 7px;
        min-width: 0;
        padding: 0 6px;
        border-right: 1px solid var(--border);
    }

    .stats > div:last-child {
        border-right: none;
    }

    /* Statistics numbers */
    .stats strong {
        font-size: clamp(20px, 6vw, 26px);
        line-height: 1.2;
    }

    /* Statistics labels */
    .stats span {
        font-size: 11px;
        line-height: 1.4;
        text-align: center;
        overflow-wrap: anywhere;
    }

}