
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --bg: #F5F2EE;
    --surface: #FDFCFA;
    --dark: #141210;
    --dark2: #1E1B18;
    --border: #E2DDD8;
    --border-dark: #2C2825;
    --text: #141210;
    --text-sub: #5C5650;
    --text-muted: #9C9690;
    --accent: #C8581A;
    --accent-light: #FDF0E8;
    --tag-bg: #EEEAE5;
    --tag-text: #4A4540;
    --r: 14px;
    --r-lg: 22px;
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg); color: var(--text);
    line-height: 1.6; -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 clamp(1.5rem,5vw,4rem); height: 62px;
    background: rgba(245,242,238,0.9); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}
.nav-logo {
    font-family: 'Playfair Display', serif; font-size: 1.15rem;
    letter-spacing: -0.02em; color: var(--text); text-decoration: none;
}
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.85rem; color: var(--text-sub); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
    font-size: 0.8rem; font-weight: 500;
    background: var(--dark); color: #fff;
    padding: .5rem 1.1rem; border-radius: 999px;
    text-decoration: none; transition: opacity .2s;
}
.nav-cta:hover { opacity: .8; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; display: block; }
.mobile-menu {
    display: none; position: fixed; top: 62px; left: 0; right: 0; z-index: 99;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1.5rem 2rem; flex-direction: column; gap: 1.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1rem; color: var(--text-sub); text-decoration: none; }

/* ── LAYOUT ── */
.container { max-width: 1000px; margin: 0 auto; padding: 0 clamp(1.5rem,5vw,2rem); }

/* ── HERO ── */
#hero {
    min-height: 100vh; padding-top: 62px;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}

/* Subtle dot-grid background */
#hero::before {
    content: '';
    position: absolute; inset: 0; z-index: 0;
    background-image: radial-gradient(circle, rgba(20,18,16,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    pointer-events: none;
}

.hero-bg-text {
    position: absolute; top: 46%; left: 50%;
    transform: translate(-50%,-50%);
    font-family: 'Playfair Display', serif; font-style: italic;
    font-size: clamp(8rem,22vw,18rem); pointer-events: none; user-select: none;
    color: transparent; -webkit-text-stroke: 1px rgba(20,18,16,0.048);
    letter-spacing: -.04em; line-height: 1; white-space: nowrap;
    opacity: 0; animation: bgReveal 1.4s .3s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes bgReveal {
    from { opacity:0; transform:translate(-50%,-46%); }
    to   { opacity:1; transform:translate(-50%,-50%); }
}

.hero-inner {
    flex: 1; display: flex; flex-direction: column; justify-content: center;
    padding: 5rem 0 2rem; position: relative; z-index: 1;
}

/* top row: badge + exp pill */
.hero-top-row {
    display: flex; align-items: center; gap: 0.75rem;
    margin-bottom: 2.5rem;
    opacity: 0; animation: fadeUp .6s .45s forwards;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--dark); color: rgba(255,255,255,.72);
    font-size: .7rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
    padding: .35rem .85rem .35rem .55rem; border-radius: 999px; width: fit-content;
}
.badge-dot { width:6px; height:6px; background:#4ADE80; border-radius:50%; animation: blink 2s infinite; flex-shrink:0; }
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.hero-exp-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--accent-light); color: var(--accent);
    border: 1px solid rgba(200,88,26,.25);
    font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
    padding: .35rem .85rem; border-radius: 999px;
}

.hero-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.2rem,9vw,6.2rem);
    line-height: 1.0; letter-spacing: -.035em; margin-bottom: 2rem;
}
.hero-line { display: block; overflow: hidden; }
.hero-line span {
    display: block; opacity: 0; transform: translateY(105%);
    animation: lineUp .85s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-line:nth-child(1) span { animation-delay: .5s; }
.hero-line:nth-child(2) span { animation-delay: .65s; }
.hero-line:nth-child(3) span { animation-delay: .8s; }
@keyframes lineUp {
    from { opacity:0; transform:translateY(105%); }
    to   { opacity:1; transform:translateY(0); }
}
.hero-headline em { font-style: italic; color: var(--text-sub); }
.hero-headline .hl { color: var(--accent); }

.hero-body {
    display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
    align-items: end; padding-bottom: 3rem; position: relative; z-index: 1;
    opacity: 0; animation: fadeUp .7s 1.1s forwards;
}
.hero-desc { font-size: 1rem; font-weight: 300; color: var(--text-sub); line-height: 1.75; }
.hero-right { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-end; }
.hero-actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.btn-dark {
    font-size: .85rem; font-weight: 500;
    background: var(--dark); color: #fff;
    padding: .7rem 1.4rem; border-radius: 999px;
    text-decoration: none; transition: opacity .2s, transform .2s;
}
.btn-dark:hover { opacity: .82; transform: translateY(-1px); }
.btn-outline {
    font-size: .85rem; font-weight: 500; color: var(--text);
    border: 1px solid var(--border); background: transparent;
    padding: .7rem 1.4rem; border-radius: 999px;
    text-decoration: none; transition: border-color .2s, transform .2s;
}
.btn-outline:hover { border-color: var(--text-sub); transform: translateY(-1px); }
.hero-socials { display: flex; gap: .55rem; }
.hsocial {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    text-decoration: none; color: var(--text-sub);
    transition: border-color .2s, color .2s, transform .2s;
}
.hsocial:hover { border-color: var(--text); color: var(--text); transform: translateY(-2px); }
.hsocial svg { width: 14px; height: 14px; }

/* stats bar */
.hero-bottom {
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(4,1fr);
    opacity: 0; animation: fadeUp .7s 1.3s forwards;
    position: relative; z-index: 1;
}
.hstat {
    padding: 1.5rem 0; display: flex; flex-direction: column;
    border-right: 1px solid var(--border);
}
.hstat:last-child { border-right: none; }
.hstat:not(:first-child) { padding-left: 2rem; }
.hstat-n { font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: -.03em; line-height: 1; }
.hstat-n .hstat-accent { color: var(--accent); }
.hstat-l { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ── SECTIONS ── */
section { padding: 5.5rem 0; border-top: 1px solid var(--border); }
.slabel { font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .6rem; }
.stitle { font-family: 'Playfair Display', serif; font-size: clamp(2rem,5vw,2.8rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 2.75rem; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 4rem; align-items: start; }
.about-text { font-size: .97rem; color: var(--text-sub); line-height: 1.82; }
.about-text p+p { margin-top: 1rem; }
.acards { display: flex; flex-direction: column; gap: .85rem; }
.acard {
    padding: 1.2rem 1.4rem; background: var(--dark); color: rgba(255,255,255,.9);
    border-radius: var(--r); transition: transform .2s;
}
.acard:hover { transform: translateY(-2px); }
.acard-title { font-size: .875rem; font-weight: 500; margin-bottom: .15rem; }
.acard-text { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.55; }

/* ── SKILLS ── */
.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.sgroup {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 1.6rem;
    transition: border-color .2s, box-shadow .2s;
}
.sgroup:hover { border-color: #C0BAB4; box-shadow: 0 4px 20px rgba(0,0,0,.04); }
.sgroup-title { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.1rem; }
.stags { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.stag {
    display: flex; align-items: center; gap: 7px;
    font-size: 0.86rem; background: var(--tag-bg); color: var(--tag-text);
    padding: .30rem 1rem; border-radius: 999px; transition: background .15s, color .15s; cursor: default;
    
}
.stag i { font-size: 17px; }
  
.stag:hover { background: var(--dark); color: #fff; }


/* ── EXPERIENCE ── */
.exp-list { display: flex; flex-direction: column; }
.eitem { padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.eitem:last-child { border-bottom: none; }
.exp-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    margin-bottom: 1rem;
}
.exp-company { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 600; }
.exp-role-block { text-align: right; }
.exp-role { font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.exp-date { font-size: 0.8rem; color: var(--text-muted); }
.exp-divider { height: 1px; background: var(--border); margin: 1rem 0 1.5rem; }
.edesc { font-size: .875rem; color: var(--text-sub); line-height: 1.78; margin-bottom: 1rem; }
.edesc li { margin-left: 1.1rem; margin-bottom: .5rem; }
.etags { display: flex; flex-wrap: wrap; gap: .35rem; }
.etag { font-size: .72rem; background: var(--tag-bg); color: var(--tag-text); padding: .2rem .55rem; border-radius: 999px; }

/* ── PROJECTS ── */
.projects-list { display: flex; flex-direction: column; gap: 1.5rem; }

.pcard-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s, border-color .3s;
}
.pcard-wrap:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,.07);
}

/* accent line on top */
.pcard-wrap::before {
    content: ''; display: block; height: 3px;
    
    opacity: 0; transition: opacity .3s;
}
.pcard-wrap:hover::before { opacity: 1; }

.pcard-inner {
    display: grid;
    gap: 0;
}

/* image strip — left column */
.pcard-images {
    border-right: 1px solid var(--border);
    padding: 1rem;
    display: flex; flex-direction: row; gap: .75rem;
    background: #FAFAF8;
    max-height: 340px; overflow-y: auto;
    scroll-snap-type: y mandatory;
}
.pcard-images::-webkit-scrollbar { width: 2px;height: 5px; }
.pcard-images::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.pimg {
    height: 150px;
    width: auto;
    max-width: 340px;
    object-fit: cover;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.427);
    border-radius: 5px;
}

.pimg:hover { transform: scale(1.02); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* content — right column */
.pcard-content {
    padding: 2rem 2rem 1.75rem;
    display: flex; flex-direction: column;
}
.pcard-type {
    font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    color: var(--accent); background: var(--accent-light);
    border: 1px solid rgba(200,88,26,.2);
    padding: .22rem .65rem; border-radius: 999px;
}
.pcard-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem; letter-spacing: -.025em; line-height: 1.15;
    margin-bottom: .85rem; color: var(--text);
}
.pcard-desc {
    font-size: .875rem; color: var(--text-sub); line-height: 1.78;
    margin-bottom: 1.25rem; flex: 1;
}
.pcard-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.pcard-tag {
    font-size: .7rem; background: var(--tag-bg); color: var(--tag-text);
    padding: .22rem .6rem; border-radius: 999px;
}
.pcard-links { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.plink {
    font-size: .78rem; font-weight: 500;
    padding: .42rem 1rem; border-radius: 999px; text-decoration: none;
    display: inline-flex; align-items: center; gap: .35rem;
    border: 1px solid var(--border); color: var(--text-sub);
    transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.plink:hover { border-color: var(--text-sub); color: var(--text); transform: translateY(-1px); }
.plink.live {
    background: var(--dark); color: #fff; border-color: var(--dark);
}
.plink.live:hover { opacity: .82; color: #fff; }

/* ── EDUCATION ── */
.edu-list { display: flex; flex-direction: column; gap: 1rem; }
.edu-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 1.6rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--r);
    transition: border-color .2s, transform .2s;
}
.edu-item:hover { border-color: var(--text-muted); transform: translateX(4px); }
.edu-school { font-size: .9rem; font-weight: 500; margin-bottom: .2rem; }
.edu-degree { font-size: .8rem; color: var(--text-sub); }
.edu-period { font-size: .75rem; color: var(--text-muted); text-align: right; }

/* ── CONTACT ── */
#contact { border-top: 1px solid var(--border); }
.contact-wrap {
    background: var(--dark); border-radius: var(--r-lg);
    padding: clamp(2.5rem,6vw,4rem);
    display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
}
.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem,5vw,3rem); letter-spacing: -.03em; line-height: 1.1;
    color: #fff; margin-bottom: 1rem;
}
.contact-title em { font-style: italic; color: rgba(255,255,255,.55); }
.contact-sub { font-size: .9rem; color: rgba(255,255,255,.45); line-height: 1.7; }
.clinks { display: flex; flex-direction: column; gap: .75rem; }
.clink {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.2rem;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--r); text-decoration: none;
    transition: background .2s, transform .2s;
}
.clink:hover { background: rgba(255,255,255,.09); transform: translateX(4px); }
.clink-label { font-size: .875rem; font-weight: 500; color: #fff; }
.clink-value { font-size: .78rem; color: rgba(255,255,255,.38); margin-top: .1rem; }
.clink-arrow { color: rgba(255,255,255,.28); font-size: .9rem; }

/* ── FOOTER ── */
.footer-wrap {
    padding: 2rem 0; border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--text-muted);
}
.footer-wrap a { color: var(--text-muted); text-decoration: none; transition: color .2s; }
.footer-wrap a:hover { color: var(--text); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(18px); }
    to   { opacity:1; transform:translateY(0); }
}
.reveal { opacity:0; transform:translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .hero-body { grid-template-columns: 1fr; gap: 1.5rem; }
    .hero-right { align-items: flex-start; }
    .hero-actions { justify-content: flex-start; }
    .hero-bottom { grid-template-columns: repeat(2,1fr); }
    .about-grid, .skills-grid { grid-template-columns: 1fr; }
    .exp-header { flex-direction: column; gap: 4px; }
    .exp-role-block { text-align: left; }
    .pcard-inner { grid-template-columns: 1fr}
    .pcard-images { border-right: none; border-bottom: 1px solid var(--border); max-height: 220px; flex-direction: row; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; }
    .pimg { min-width: 260px; width: 260px; }
    .contact-wrap { grid-template-columns: 1fr; gap: 2rem; }
    .footer-wrap { flex-direction: column; gap: .5rem; text-align: center; }
    .hero-top-row { flex-wrap: wrap; }
}

.hero-seo-title{
  position:absolute;
  left:-9999px;
}