:root{
    color-scheme:dark;
    --bg:#000;
    --text:#fff;
    --muted:#9b9b9b;
    --soft:#d8d8d8;
    --line:rgba(255,255,255,.13);
    --line-strong:rgba(255,255,255,.24);
    --panel:#050505;
    --panel-2:#0a0a0a;
    --radius:22px;
    --container:min(1120px, calc(100% - 40px));
}

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

html{
    scroll-behavior:smooth;
}

body{
    min-height:100vh;
    overflow-x:hidden;
    background:var(--bg);
    color:var(--text);
    font-family:"Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight:300;
    letter-spacing:-.025em;
    text-rendering:geometricPrecision;
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-2;
    background:
        radial-gradient(circle at 50% -12%, rgba(255,255,255,.075), transparent 34rem),
        linear-gradient(180deg, rgba(255,255,255,.035), transparent 20rem);
}

.grain{
    position:fixed;
    inset:0;
    z-index:-1;
    pointer-events:none;
    opacity:.2;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size:72px 72px;
    mask-image:linear-gradient(to bottom, #000, transparent 78%);
}

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

button,
a{
    -webkit-tap-highlight-color:transparent;
}

img,
svg{
    display:block;
}

img{
    max-width:100%;
}

svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.35;
    stroke-linecap:round;
    stroke-linejoin:round;
}

::selection{
    background:#fff;
    color:#000;
}

.header{
    position:fixed;
    top:18px;
    left:50%;
    transform:translateX(-50%);
    z-index:50;
    width:var(--container);
    min-height:58px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:8px 8px 8px 16px;
    background:rgba(0,0,0,.74);
    border:1px solid var(--line);
    border-radius:999px;
    backdrop-filter:blur(18px);
}

.logo{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-width:max-content;
}

.logo span{
    display:grid;
    place-items:center;
    width:34px;
    height:34px;
    border:1px solid var(--line-strong);
    border-radius:50%;
    font-size:12px;
    font-weight:500;
    letter-spacing:-.06em;
}

.logo em{
    font-style:normal;
    font-size:13px;
    font-weight:400;
    color:#f5f5f5;
}

.nav{
    display:flex;
    align-items:center;
    gap:2px;
}

.nav a{
    position:relative;
    padding:10px 13px;
    border-radius:999px;
    color:var(--muted);
    font-size:12px;
    font-weight:400;
    transition:color .22s ease, background .22s ease;
}

.nav a::after{
    content:"";
    position:absolute;
    left:14px;
    right:14px;
    bottom:8px;
    height:1px;
    transform:scaleX(0);
    transform-origin:left;
    background:#fff;
    transition:transform .22s ease;
}

.nav a:hover{
    color:#fff;
    background:rgba(255,255,255,.055);
}

.nav a:hover::after{
    transform:scaleX(1);
}

.menu-btn{
    display:none;
    width:40px;
    height:40px;
    border:1px solid var(--line);
    border-radius:50%;
    background:#000;
    color:#fff;
    cursor:pointer;
}

.menu-btn span{
    display:block;
    width:16px;
    height:1px;
    margin:5px auto;
    background:#fff;
    transition:transform .22s ease;
}

.menu-btn.is-open span:first-child{
    transform:translateY(3px) rotate(45deg);
}

.menu-btn.is-open span:last-child{
    transform:translateY(-3px) rotate(-45deg);
}

.section{
    width:var(--container);
    margin-inline:auto;
    padding:108px 0;
}

.hero{
    min-height:100svh;
    display:grid;
    grid-template-columns:minmax(0, 1.08fr) minmax(310px, .72fr);
    align-items:center;
    gap:56px;
    padding-top:145px;
}

.mini-label,
.section-number{
    display:inline-flex;
    align-items:center;
    gap:9px;
    width:max-content;
    max-width:100%;
    color:#e7e7e7;
    font-size:11px;
    font-weight:400;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.mini-label{
    padding-bottom:9px;
    border-bottom:1px solid var(--line-strong);
}

.mini-label svg{
    width:13px;
    height:13px;
    fill:#fff;
    stroke:none;
}

h1,
h2,
h3,
p{
    overflow-wrap:anywhere;
}

h1{
    max-width:820px;
    margin-top:24px;
    font-size:clamp(46px, 8.2vw, 104px);
    line-height:.93;
    font-weight:500;
    letter-spacing:-.09em;
}

.lead{
    max-width:660px;
    margin-top:24px;
    color:var(--soft);
    font-size:clamp(15px, 1.55vw, 18px);
    line-height:1.8;
    font-weight:300;
    letter-spacing:-.035em;
}

.hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:34px;
}

.link-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:44px;
    padding:0 18px;
    border:1px solid var(--line-strong);
    border-radius:999px;
    color:#fff;
    background:#000;
    font-size:12px;
    font-weight:400;
    transition:transform .22s ease, background .22s ease, color .22s ease;
}

.link-btn svg{
    width:14px;
    height:14px;
}

.link-btn.primary{
    color:#000;
    background:#fff;
    border-color:#fff;
}

.link-btn:hover{
    transform:translateY(-2px);
    background:#111;
}

.link-btn.primary:hover{
    background:#e7e7e7;
}

.micro-stats{
    display:grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap:1px;
    max-width:560px;
    margin-top:44px;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:var(--line);
}

.micro-stats div{
    min-height:86px;
    padding:18px;
    background:#030303;
}

.micro-stats strong{
    display:block;
    font-size:22px;
    line-height:1;
    font-weight:500;
    letter-spacing:-.05em;
}

.micro-stats span{
    display:block;
    margin-top:9px;
    color:var(--muted);
    font-size:11px;
    line-height:1.45;
    font-weight:300;
}

.profile-card{
    position:relative;
    border:1px solid var(--line);
    border-radius:30px;
    background:linear-gradient(180deg, #080808, #010101);
    padding:18px;
    overflow:hidden;
}

.profile-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius:inherit;
    background:linear-gradient(135deg, rgba(255,255,255,.12), transparent 26%, transparent 72%, rgba(255,255,255,.06));
}

.profile-top{
    position:relative;
    display:grid;
    grid-template-columns:82px 1fr;
    align-items:center;
    gap:16px;
    padding-bottom:18px;
    border-bottom:1px solid var(--line);
}

.profile-top img{
    width:82px;
    height:82px;
    object-fit:cover;
    border-radius:20px;
    filter:grayscale(1) contrast(1.06);
    border:1px solid var(--line-strong);
}

.profile-top span{
    display:block;
    color:var(--muted);
    font-size:11px;
    font-weight:300;
}

.profile-top h2{
    margin-top:6px;
    font-size:24px;
    line-height:1.1;
    font-weight:500;
    letter-spacing:-.06em;
}

.profile-top p{
    margin-top:8px;
    color:var(--soft);
    font-size:12px;
    line-height:1.5;
    font-weight:300;
}

.bio-lines{
    position:relative;
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    padding:18px 0;
    border-bottom:1px solid var(--line);
}

.bio-lines span,
.skill-stack span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:0 11px;
    border:1px solid var(--line);
    border-radius:999px;
    color:#eeeeee;
    background:#020202;
    font-size:11px;
    font-weight:300;
}

.social-list{
    position:relative;
    display:grid;
    gap:1px;
    margin-top:18px;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:var(--line);
}

.social-list a{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:46px;
    padding:0 14px;
    background:#030303;
    color:#f4f4f4;
    font-size:12px;
    font-weight:300;
    transition:background .2s ease, padding .2s ease;
}

.social-list svg{
    width:15px;
    height:15px;
}

.social-list a:hover{
    padding-left:18px;
    background:#0d0d0d;
}

.strip{
    width:100%;
    overflow:hidden;
    border-block:1px solid var(--line);
    background:#000;
}

.strip-track{
    display:flex;
    width:max-content;
    animation:slide 34s linear infinite;
}

.strip span{
    position:relative;
    display:inline-flex;
    align-items:center;
    min-height:56px;
    padding:0 28px;
    color:#dcdcdc;
    font-size:12px;
    font-weight:300;
    letter-spacing:.02em;
    text-transform:uppercase;
}

.strip span::after{
    content:"";
    position:absolute;
    right:0;
    width:4px;
    height:4px;
    border-radius:50%;
    background:#fff;
    opacity:.36;
}

@keyframes slide{
    from{transform:translateX(0)}
    to{transform:translateX(-50%)}
}

.section-head{
    max-width:780px;
}

.section-head.center{
    margin-inline:auto;
    text-align:center;
}

.section-head.center .section-number{
    margin-inline:auto;
}

.section-head h2,
.contact-card h2{
    position:relative;
    margin-top:18px;
    padding-bottom:20px;
    font-size:clamp(31px, 5vw, 64px);
    line-height:1.04;
    font-weight:500;
    letter-spacing:-.075em;
}

.section-head h2::after,
.contact-card h2::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:76px;
    height:1px;
    background:#fff;
}

.section-head.center h2::after{
    left:50%;
    transform:translateX(-50%);
}

.about-grid{
    display:grid;
    grid-template-columns:minmax(0, .94fr) minmax(280px, .56fr);
    gap:28px;
    margin-top:44px;
}

.text-panel,
.card,
.timeline,
.contact-card{
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:#030303;
}

.text-panel{
    padding:30px;
}

.text-panel p{
    color:#dddddd;
    font-size:15px;
    line-height:1.95;
    font-weight:300;
}

.text-panel p + p{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid var(--line);
}

.skill-stack{
    display:flex;
    align-content:flex-start;
    flex-wrap:wrap;
    gap:9px;
    min-height:100%;
    padding:24px;
    border:1px solid var(--line);
    border-radius:var(--radius);
    background:
        linear-gradient(135deg, rgba(255,255,255,.04), transparent 42%),
        #010101;
}

.cards{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:12px;
    margin-top:44px;
}

.card{
    min-height:248px;
    padding:22px;
    transition:transform .24s ease, border-color .24s ease, background .24s ease;
}

.card:hover{
    transform:translateY(-4px);
    border-color:var(--line-strong);
    background:#080808;
}

.card svg{
    width:19px;
    height:19px;
    margin-bottom:28px;
}

.card h3{
    max-width:180px;
    font-size:17px;
    line-height:1.24;
    font-weight:500;
    letter-spacing:-.05em;
}

.card p{
    margin-top:14px;
    color:var(--muted);
    font-size:12px;
    line-height:1.8;
    font-weight:300;
}

.timeline{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:1px;
    margin-top:44px;
    overflow:hidden;
    background:var(--line);
}

.timeline div{
    min-height:220px;
    padding:24px;
    background:#030303;
}

.timeline span{
    display:inline-block;
    padding-bottom:8px;
    border-bottom:1px solid var(--line-strong);
    color:#fff;
    font-size:11px;
    font-weight:400;
}

.timeline h3{
    margin-top:34px;
    font-size:18px;
    font-weight:500;
    letter-spacing:-.05em;
}

.timeline p{
    margin-top:12px;
    color:var(--muted);
    font-size:12px;
    line-height:1.82;
    font-weight:300;
}

.contact-card{
    display:grid;
    grid-template-columns:minmax(0, .9fr) minmax(300px, .55fr);
    gap:42px;
    padding:34px;
    background:
        radial-gradient(circle at 85% 0%, rgba(255,255,255,.08), transparent 18rem),
        #030303;
}

.contact-card p:not(.section-number){
    max-width:610px;
    margin-top:18px;
    color:var(--muted);
    font-size:14px;
    line-height:1.8;
    font-weight:300;
}

.contact-list{
    display:grid;
    align-content:center;
    gap:1px;
    border:1px solid var(--line);
    border-radius:18px;
    overflow:hidden;
    background:var(--line);
}

.contact-list a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    min-height:56px;
    padding:0 16px;
    background:#000;
    color:#fff;
    font-size:12px;
    font-weight:300;
    transition:background .2s ease, padding .2s ease;
}

.contact-list a:hover{
    padding-inline:20px;
    background:#0c0c0c;
}

.contact-list svg{
    width:14px;
    height:14px;
    flex:0 0 auto;
}

.footer{
    width:var(--container);
    margin:0 auto;
    padding:0 0 32px;
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:var(--muted);
    font-size:11px;
    font-weight:300;
}

.footer a{
    position:relative;
    color:#fff;
}

.footer a::after{
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-4px;
    height:1px;
    background:#fff;
}

.reveal{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .7s ease, transform .7s ease;
}

.reveal.in-view{
    opacity:1;
    transform:translateY(0);
}

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

@media (max-width: 980px){
    :root{
        --container:min(100% - 32px, 760px);
    }

    .hero,
    .about-grid,
    .contact-card{
        grid-template-columns:1fr;
    }

    .hero{
        gap:34px;
        padding-top:132px;
    }

    .cards{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

    .timeline{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 760px){
    :root{
        --container:calc(100% - 24px);
    }

    .header{
        top:12px;
        min-height:54px;
        padding:7px 7px 7px 13px;
    }

    .logo em{
        font-size:12px;
    }

    .menu-btn{
        display:block;
    }

    .nav{
        position:absolute;
        top:calc(100% + 8px);
        left:0;
        right:0;
        display:grid;
        gap:1px;
        padding:8px;
        border:1px solid var(--line);
        border-radius:22px;
        background:#000;
        opacity:0;
        visibility:hidden;
        transform:translateY(-8px);
        transition:.22s ease;
    }

    .nav.is-open{
        opacity:1;
        visibility:visible;
        transform:translateY(0);
    }

    .nav a{
        display:flex;
        min-height:44px;
        align-items:center;
        border-radius:14px;
        background:#050505;
    }

    .nav a::after{
        display:none;
    }

    .section{
        padding:76px 0;
    }

    .hero{
        min-height:auto;
        padding-top:118px;
    }

    h1{
        font-size:clamp(42px, 15vw, 72px);
        letter-spacing:-.085em;
    }

    .lead{
        font-size:14px;
        line-height:1.78;
    }

    .hero-actions{
        display:grid;
        grid-template-columns:1fr;
    }

    .link-btn{
        width:100%;
    }

    .micro-stats{
        grid-template-columns:1fr;
    }

    .micro-stats div{
        min-height:auto;
    }

    .profile-card{
        border-radius:24px;
        padding:14px;
    }

    .profile-top{
        grid-template-columns:68px 1fr;
        gap:13px;
    }

    .profile-top img{
        width:68px;
        height:68px;
        border-radius:16px;
    }

    .profile-top h2{
        font-size:20px;
    }

    .strip span{
        min-height:48px;
        padding:0 22px;
        font-size:11px;
    }

    .section-head h2,
    .contact-card h2{
        font-size:clamp(30px, 10vw, 46px);
    }

    .cards,
    .timeline{
        grid-template-columns:1fr;
    }

    .card{
        min-height:210px;
    }

    .timeline div{
        min-height:auto;
    }

    .timeline h3{
        margin-top:24px;
    }

    .text-panel,
    .contact-card{
        padding:22px;
    }

    .footer{
        flex-direction:column;
        padding-bottom:24px;
    }
}

@media (max-width: 420px){
    .mini-label,
    .section-number{
        font-size:10px;
        letter-spacing:.06em;
    }

    .bio-lines span,
    .skill-stack span{
        font-size:10.5px;
    }
}

.header-actions{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-left:auto;
}

.lang-switch{
    display:inline-flex;
    align-items:center;
    gap:1px;
    padding:3px;
    border:1px solid var(--line);
    border-radius:999px;
    background:#020202;
}

.lang-switch button{
    min-width:34px;
    height:32px;
    border:0;
    border-radius:999px;
    color:var(--muted);
    background:transparent;
    font-family:inherit;
    font-size:10px;
    font-weight:400;
    letter-spacing:.06em;
    cursor:pointer;
    transition:background .2s ease, color .2s ease;
}

.lang-switch button.is-active,
.lang-switch button[aria-pressed="true"]{
    color:#000;
    background:#fff;
}

.lang-switch-standalone{
    width:max-content;
    margin:0 auto 22px;
}

@media (max-width: 760px){
    .header-actions{
        gap:6px;
    }

    .lang-switch{
        padding:2px;
    }

    .lang-switch button{
        min-width:30px;
        height:28px;
        font-size:9.5px;
    }
}
