/* ==========================================================
   Vincent Leo Bendijo — Professional Portfolio
   Design tokens
   ========================================================== */
:root{
    --bg:            #faf9f5;
    --bg-alt:        #f1efe6;
    --surface:       #ffffff;
    --border:        #e1ddd0;
    --navy:          #1e3a2d;
    --navy-soft:     #365446;
    --text:          #1e1f22;
    --text-muted:    #5c5e64;
    --accent:        #a13d2f;
    --accent-deep:   #7e2f24;
    --accent-soft:   rgba(161, 61, 47, 0.10);
    --accent-line:   rgba(161, 61, 47, 0.35);

    --font-display:  'Fraunces', serif;
    --font-body:     'Inter', sans-serif;

    --max: 1180px;
}

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

html{
    scroll-behavior: smooth;
}

body{
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a{
    color: inherit;
    text-decoration: none;
}

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

.wrap{
    width: var(--max);
    max-width: 90%;
    margin: 0 auto;
}

.eyebrow{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

.eyebrow::before{
    content: "";
    width: 26px;
    height: 1px;
    background: var(--accent);
}

:focus-visible{
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce){
    *{
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================
   Navigation
   ========================================================== */
header{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 26px 0;
    background: rgba(250, 249, 245, 0.0);
    border-bottom: 1px solid transparent;
    transition: background .35s ease, padding .35s ease, border-color .35s ease;
}

header.scrolled{
    background: rgba(250, 249, 245, 0.94);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo{
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: 0.01em;
}

.logo .mark{
    width: 34px;
    height: 34px;
    border: 1px solid var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
}

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

.nav-links a{
    display: block;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    transition: color .25s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible{
    color: var(--navy);
}

.nav-cta{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bg);
    background: var(--navy);
    padding: 11px 24px;
    border-radius: 2px;
    border: 1px solid var(--navy);
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.nav-cta:hover{
    background: transparent;
    color: var(--navy);
}

.nav-toggle{
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span{
    width: 22px;
    height: 2px;
    background: var(--navy);
    transition: transform .25s ease, opacity .25s ease;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero{
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 90px;
    background: var(--bg);
}

.hero .wrap{
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
}

.hero-copy h4{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-copy h1{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(42px, 5.6vw, 68px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--navy);
}

.role-tag{
    font-family: var(--font-body);
    font-size: clamp(15px, 1.6vw, 18px);
    font-weight: 500;
    color: var(--text-muted);
    margin: 18px 0 28px;
    padding-left: 18px;
    border-left: 2px solid var(--accent);
}

.hero-copy p{
    max-width: 480px;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 38px;
}

.hero-actions{
    display: flex;
    align-items: center;
    gap: 26px;
    flex-wrap: wrap;
}

.btn-primary{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--bg);
    background: var(--navy);
    padding: 16px 32px;
    border-radius: 2px;
    border: 1px solid var(--navy);
    display: inline-block;
    transition: background .3s ease, color .3s ease, border-color .3s ease;
}

.btn-primary:hover{
    background: transparent;
    color: var(--navy);
}

.btn-ghost{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--navy);
    border-bottom: 1px solid var(--border);
    padding-bottom: 4px;
    transition: color .25s ease, border-color .25s ease;
}

.btn-ghost:hover{
    color: var(--accent);
    border-color: var(--accent);
}

.hero-portrait{
    position: relative;
    justify-self: center;
}

.hero-portrait .frame{
    width: min(360px, 80vw);
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    background: var(--surface);
}

.hero-portrait img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-portrait::before{
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border: 1px solid var(--accent-line);
    z-index: -1;
}

.hero-portrait .stamp{
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: var(--navy);
    padding: 12px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bg);
    border-left: 3px solid var(--accent);
}

/* ==========================================================
   Section shared
   ========================================================== */
section{
    padding: 130px 0;
}

.section-head{
    max-width: 620px;
    margin-bottom: 64px;
}

.section-head h2{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(30px, 3.6vw, 44px);
    letter-spacing: -0.01em;
    color: var(--navy);
}

.section-head p{
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 16px;
}

/* ==========================================================
   About
   ========================================================== */
.about{
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about .wrap{
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 68px;
    align-items: start;
}

.about-portrait .frame{
    overflow: hidden;
    border: 1px solid var(--border);
}

.about-portrait img{
    width: 100%;
}

.about-copy h3{
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 22px;
    line-height: 1.3;
}

.about-copy p{
    color: var(--text-muted);
    margin-bottom: 18px;
    font-size: 16px;
    max-width: 560px;
}

.about-facts{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid var(--border);
}

.about-facts dt{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.about-facts dd{
    font-size: 15px;
    color: var(--navy);
    font-weight: 500;
}

/* ==========================================================
   Skills
   ========================================================== */
.skills-groups{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.skill-group{
    background: var(--surface);
    padding: 38px 34px;
}

.skill-group .path{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.skill-group .path .accent{
    color: var(--accent);
}

.skill-group h3{
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
}

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

.tag-list li{
    font-size: 14.5px;
    color: var(--text-muted);
    padding: 10px 0;
    border-top: 1px solid var(--border);
}

.tag-list li:first-child{
    border-top: none;
    padding-top: 0;
}

/* ==========================================================
   Services
   ========================================================== */
.services{
    background: var(--navy);
    color: var(--bg);
}

.services .section-head h2,
.services .eyebrow{
    color: var(--bg);
}

.services .eyebrow{
    color: var(--accent);
}

.services .section-head p{
    color: rgba(250, 249, 245, 0.6);
}

.service-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(250, 249, 245, 0.14);
}

.service-card{
    background: var(--navy);
    padding: 42px 34px;
    transition: background .3s ease;
}

.service-card:hover{
    background: var(--navy-soft);
}

.service-card .num{
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 24px;
    display: block;
}

.service-card h3{
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--bg);
}

.service-card p{
    color: rgba(250, 249, 245, 0.65);
    font-size: 14.5px;
}

/* ==========================================================
   Contact
   ========================================================== */
.contact .wrap{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact h2{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 22px;
}

.contact p{
    color: var(--text-muted);
    max-width: 440px;
    margin-bottom: 30px;
}

.contact-card{
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 44px;
}

.contact-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.contact-row:last-child{
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row:first-child{
    padding-top: 0;
}

.contact-row dt{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.contact-row dd a,
.contact-row dd{
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.contact-row dd a:hover{
    color: var(--accent);
}

/* ==========================================================
   Footer
   ========================================================== */
footer{
    padding: 50px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-alt);
}

footer .wrap{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.social{
    display: flex;
    gap: 10px;
}

.social a{
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: border-color .25s ease, color .25s ease;
}

.social a:hover{
    border-color: var(--accent);
    color: var(--accent);
}

.end{
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 900px){
    .hero .wrap{
        grid-template-columns: 1fr;
        text-align: center;
    }
    .role-tag{
        margin-left: auto;
        margin-right: auto;
        text-align: left;
        display: inline-block;
    }
    .hero-copy p{
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions{
        justify-content: center;
    }
    .hero-portrait{
        order: -1;
    }
    .hero-portrait::before{
        display: none;
    }
    .about .wrap{
        grid-template-columns: 1fr;
    }
    .about-portrait .frame{
        max-width: 340px;
        margin: 0 auto;
    }
    .education-grid{
        grid-template-columns: 1fr;
    }
    .edu-portrait .frame{
        max-width: 340px;
        margin: 0 auto 30px;
    }
    .skills-groups{
        grid-template-columns: 1fr;
    }
    .service-grid{
        grid-template-columns: 1fr;
    }
    .contact .wrap{
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px){
    .nav-links,
    .nav-cta{
        display: none;
    }
    .nav-toggle{
        display: flex;
    }
    header.open .nav-links{
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 10px 0 24px;
    }
    header.open .nav-links a{
        padding: 14px 8%;
    }
    header.open .nav-toggle span:nth-child(1){
        transform: translateY(7px) rotate(45deg);
    }
    header.open .nav-toggle span:nth-child(2){
        opacity: 0;
    }
    header.open .nav-toggle span:nth-child(3){
        transform: translateY(-7px) rotate(-45deg);
    }
    section{
        padding: 90px 0;
    }
}

/* ==========================================================
   Stats row (hero)
   ========================================================== */
.stats-row{
    display: flex;
    gap: 44px;
    margin: 6px 0 40px;
    flex-wrap: wrap;
}

.stat .num{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 34px;
    color: var(--navy);
    line-height: 1;
}

.stat .num span{
    color: var(--accent);
}

.stat .label{
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--text-muted);
    max-width: 140px;
}

/* ==========================================================
   Qualifications checklist (About)
   ========================================================== */
.qual-list{
    list-style: none;
    margin-top: 6px;
}

.qual-list li{
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    font-size: 15.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.qual-list li:first-child{
    border-top: none;
    padding-top: 0;
}

.qual-list li i{
    color: var(--accent);
    margin-top: 4px;
    flex-shrink: 0;
    font-size: 13px;
}

/* ==========================================================
   Experience timeline
   ========================================================== */
.timeline{
    position: relative;
}

.timeline::before{
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: var(--border);
}

.timeline-item{
    position: relative;
    padding-left: 46px;
    margin-bottom: 64px;
}

.timeline-item:last-child{
    margin-bottom: 0;
}

.timeline-item::before{
    content: "";
    position: absolute;
    left: -5px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
}

.timeline-header{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 6px;
}

.timeline-header h3{
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 600;
    color: var(--navy);
}

.timeline-header .tenure{
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    white-space: nowrap;
}

.role-group{
    margin-top: 22px;
}

.role-group h4{
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}

.role-group .role-sub{
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 12px;
}

.role-group ul{
    padding-left: 20px;
    color: var(--text-muted);
    font-size: 14.5px;
}

.role-group ul li{
    margin-bottom: 8px;
}

.role-group ul ul{
    margin-top: 8px;
}

.timeline-item .position{
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-deep);
    margin-bottom: 4px;
}

/* ==========================================================
   Education timeline
   ========================================================== */

.education-grid{
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 68px;
    align-items: start;
}

.edu-portrait .frame{
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.edu-portrait img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.edu-list{
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.edu-item{
    background: var(--surface);
    padding: 30px 34px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 24px;
}

.edu-item .period{
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

.edu-item h4{
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.edu-item .school-addr,
.edu-item .thesis{
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.edu-item .thesis{
    margin-top: 10px;
}

.edu-item .thesis b{
    color: var(--navy);
    font-weight: 600;
}

/* ==========================================================
   Certifications
   ========================================================== */
.cert-grid{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.cert-card{
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cert-card .thumb{
    display: block;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.cert-card .thumb img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.cert-card .thumb:hover img{
    transform: scale(1.04);
}

.cert-card .body{
    padding: 24px 26px;
}

.cert-card .date{
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.cert-card h4{
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.cert-card .links{
    display: flex;
    gap: 16px;
}

.cert-card .links a{
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: color .25s ease, border-color .25s ease;
}

.cert-card .links a:hover{
    color: var(--accent);
    border-color: var(--accent);
}

.expertise-note{
    margin-top: 60px;
}

/* ==========================================================
   Responsive additions
   ========================================================== */
@media (max-width: 900px){
    .cert-grid{
        grid-template-columns: 1fr;
    }
    .edu-item{
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .stats-row{
        justify-content: center;
    }
    .stat .label{
        max-width: none;
    }
}

@media (max-width: 640px){
    .timeline-item{
        padding-left: 28px;
    }
    .timeline::before{
        left: 0;
    }
    .timeline-item::before{
        left: -4px;
    }
}

/* ==========================================================
   Section background rhythm
   ========================================================== */
.education{
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
