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

:root {
    --bg: #ffffff;
    --ink: #111111;
    --sub: #555555;
    --muted: #999999;
    --line: #e5e5e5;
    --soft: #f7f7f7;
    --f: 'Inter', system-ui, sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--f);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

/* ── CURSOR ── */
#cur {
    position: fixed;
    width: 5px;
    height: 5px;
    background: var(--ink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

#curR {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width .4s var(--ease), height .4s var(--ease);
}

#curR.big {
    width: 0;
    height: 0;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, padding .3s;
}

nav.scrolled {
    border-color: var(--line);
    padding-top: 14px;
    padding-bottom: 14px;
}

.nav-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.01em;
}

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

.nav-links a {
    font-size: 13px;
    color: var(--sub);
    text-decoration: none;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--ink);
}

.nav-hire {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #fff !important;
    background: var(--ink);
    padding: 8px 18px;
    border-radius: 4px;
    transition: opacity .2s !important;
}

.nav-hire:hover {
    opacity: 0.72 !important;
}

/* ── HERO ── */
.hero {
    min-height: 100vh;
    padding: 140px 48px 80px;
    display: grid;
    grid-template-rows: 1fr auto;
    border-bottom: 1px solid var(--line);
}

.hero-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 680px;
}

.hero-avail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 48px;
    opacity: 0;
    animation: fu .5s .1s var(--ease) forwards;
}

.avail-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4)
    }

    50% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0)
    }
}

.hero-h {
    font-size: clamp(34px, 5.5vw, 68px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 28px;
}

.hero-h .row {
    display: block;
    overflow: hidden;
}

.hero-h .row span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: cu .9s var(--ease) forwards;
}

.hero-h .row:nth-child(1) span {
    animation-delay: .15s;
}

.hero-h .row:nth-child(2) span {
    animation-delay: .24s;
}

.hero-h .row:nth-child(3) span {
    animation-delay: .33s;
    font-style: italic;
}

.hero-sub {
    font-size: 15px;
    color: var(--sub);
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 44px;
    opacity: 0;
    animation: fu .7s .55s var(--ease) forwards;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    animation: fu .7s .7s var(--ease) forwards;
}

.btn-primary {
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--ink);
    padding: 11px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity .2s;
}

.btn-primary:hover {
    opacity: 0.75;
}

.btn-ghost {
    font-size: 13px;
    color: var(--sub);
    text-decoration: none;
    transition: color .2s;
}

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

.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 48px;
    border-top: 1px solid var(--line);
    opacity: 0;
    animation: fu .6s .9s var(--ease) forwards;
}

.hero-stats {
    display: flex;
    gap: 56px;
}

.hs-n {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: -0.03em;
    display: block;
    margin-bottom: 2px;
}

.hs-l {
    font-size: 12px;
    color: var(--muted);
}

.hero-scroll {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.scroll-line {
    width: 32px;
    height: 1px;
    background: var(--muted);
}

@keyframes fu {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes cu {
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* ── SECTION BASE ── */
.sec {
    padding: 88px 48px;
    border-bottom: 1px solid var(--line);
}

.sec-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.sec-label.in {
    opacity: 1;
    transform: translateY(0);
}

/* ── WORK FILTER ── */
.work-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    gap: 24px;
    flex-wrap: wrap;
}

.filter-bar {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 12px;
    font-weight: 400;
    color: var(--sub);
    background: var(--soft);
    border: 1px solid var(--line);
    padding: 6px 14px;
    border-radius: 100px;
    cursor: none;
    transition: all .2s var(--ease);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--ink);
    color: var(--ink);
}

.filter-btn.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 14px;
    background: var(--bg);
    transition: border-color .2s;
}

.search-wrap:focus-within {
    border-color: var(--ink);
}

.search-icon {
    font-size: 12px;
    color: var(--muted);
    flex-shrink: 0;
}

.search-wrap input {
    font-family: var(--f);
    font-size: 13px;
    color: var(--ink);
    border: none;
    outline: none;
    background: transparent;
    width: 180px;
}

.search-wrap input::placeholder {
    color: var(--muted);
}

/* No results */
.no-results {
    display: none;
    padding: 48px 0;
    font-size: 14px;
    color: var(--muted);
    text-align: center;
}

.no-results.visible {
    display: block;
}

/* ── CASE STUDIES ── */
.case-list {
    display: flex;
    flex-direction: column;
}

.case-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 0 40px;
    align-items: start;
    padding: 36px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    cursor: none;
    position: relative;
}

.case-item:last-child {
    border-bottom: none;
}

.case-item.in {
    opacity: 1;
    transform: translateY(0);
}

.case-item.hidden {
    display: none;
}

.case-item::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--ink);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform .4s var(--ease);
}

.case-item:hover::before {
    transform: scaleY(1);
}

.ci-num {
    font-size: 11px;
    color: var(--muted);
    padding-top: 3px;
}

.ci-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ci-type {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.ci-tags {
    display: flex;
    gap: 5px;
}

.ci-tag {
    font-size: 11px;
    color: var(--muted);
    background: var(--soft);
    padding: 2px 8px;
    border-radius: 2px;
}

.ci-title {
    font-size: 17px;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.4;
    color: var(--ink);
    margin-bottom: 10px;
    transition: color .2s;
}

.case-item:hover .ci-title {
    color: var(--sub);
}

.ci-summary {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 16px;
}

/* Expandable detail panel */
.ci-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--muted);
    cursor: none;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--f);
    transition: color .2s;
}

.ci-expand-btn:hover {
    color: var(--ink);
}

.ci-expand-arrow {
    display: inline-block;
    transition: transform .3s var(--ease);
    font-size: 10px;
}

.ci-expand-btn.open .ci-expand-arrow {
    transform: rotate(180deg);
}

.ci-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease), opacity .4s;
    opacity: 0;
}

.ci-detail.open {
    max-height: 600px;
    opacity: 1;
}

.ci-detail-inner {
    padding-top: 20px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* EMPTY: .ci-detail-section { } */
.ci-detail-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 10px;
}

.ci-detail-text {
    font-size: 13px;
    color: var(--sub);
    line-height: 1.7;
}

.ci-detail-text strong {
    color: var(--ink);
    font-weight: 500;
}

.ci-detail-metrics {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* EMPTY: .ci-dm { } */
.ci-dm-n {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: block;
    margin-bottom: 1px;
}

.ci-dm-l {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ci-aside {
    text-align: right;
    padding-top: 3px;
}

.ci-metric-n {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--ink);
    display: block;
}

.ci-metric-l {
    font-size: 11px;
    color: var(--muted);
    display: block;
    margin-bottom: 16px;
}

.ci-link {
    font-size: 12px;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color .2s;
}

.ci-link:hover {
    color: var(--ink);
}

/* ── APPROACH ── */
.approach-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 80px;
    align-items: start;
}

.approach-copy {
    font-size: 14px;
    line-height: 1.75;
    color: var(--sub);
    margin-top: 12px;
}

.approach-steps {
    display: flex;
    flex-direction: column;
}

.ap-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 0 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.ap-step:first-child {
    border-top: 1px solid var(--line);
}

.ap-step.in {
    opacity: 1;
    transform: translateY(0);
}

.ap-n {
    font-size: 11px;
    color: var(--muted);
    padding-top: 2px;
}

.ap-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    margin-bottom: 6px;
}

.ap-desc {
    font-size: 14px;
    color: var(--sub);
    line-height: 1.65;
}

/* ── SKILLS ── */
.skills-wrap {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 80px;
    align-items: start;
}

.skills-copy {
    font-size: 14px;
    line-height: 1.75;
    color: var(--sub);
    margin-top: 12px;
}

.skills-rows {
    display: flex;
    flex-direction: column;
}

.sk {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.sk:first-child {
    border-top: 1px solid var(--line);
}

.sk.in {
    opacity: 1;
    transform: translateY(0);
}

.sk-name {
    font-size: 14px;
    color: var(--ink);
}

.sk-dots {
    display: flex;
    gap: 5px;
}

.sk-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line);
    transition: background .5s .3s;
}

.sk.in .sk-dot.on {
    background: var(--ink);
}

/* ── ABOUT ── */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.about-h {
    font-size: clamp(24px, 3.5vw, 38px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--ink);
}

.about-h em {
    font-style: italic;
}

.about-copy {
    font-size: 14px;
    line-height: 1.8;
    color: var(--sub);
    margin-bottom: 28px;
}

.about-copy strong {
    color: var(--ink);
    font-weight: 500;
}

.about-traits {
    display: flex;
    flex-direction: column;
}

.tr {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--sub);
    line-height: 1.6;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .5s var(--ease), transform .5s var(--ease);
}

.tr:last-child {
    border-bottom: none;
}

.tr.in {
    opacity: 1;
    transform: translateY(0);
}

.tr strong {
    color: var(--ink);
    font-weight: 500;
}

.tr-n {
    font-size: 11px;
    color: var(--muted);
    flex-shrink: 0;
    padding-top: 2px;
    width: 20px;
}

.about-resume {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 13px;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 3px;
    transition: color .2s, border-color .2s;
}

.about-resume:hover {
    color: var(--sub);
    border-color: var(--muted);
}

/* ── CONTACT ── */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-h {
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--ink);
}

.contact-h em {
    font-style: italic;
}

.contact-h .cw {
    display: block;
    overflow: hidden;
}

.contact-h .cw span,
.contact-h .cw em {
    display: block;
}

.c-avail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--sub);
    margin-bottom: 24px;
}

.c-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}

.contact-email {
    display: block;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 10px;
    margin-bottom: 20px;
    transition: color .2s, border-color .2s;
}

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

.contact-note {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 28px;
}

.contact-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    background: var(--ink);
    padding: 11px 22px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity .2s;
}

.contact-cta:hover {
    opacity: 0.75;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.cl {
    font-size: 13px;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
}

.cl:hover {
    color: var(--ink);
}

/* ── FOOTER ── */
footer {
    padding: 24px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.foot-l {
    font-size: 13px;
    color: var(--sub);
}

.foot-r {
    font-size: 12px;
    color: var(--muted);
}

/* ── ANIM UTILS ── */
.au {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.au.in {
    opacity: 1;
    transform: translateY(0);
}

.ac {
    overflow: hidden;
}

.ac .aci {
    display: block;
    transform: translateY(100%);
    transition: transform .8s var(--ease);
}

.ac.in .aci {
    transform: translateY(0);
}


/* ── PAGINATION ── */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    margin-top: 8px;
    border-top: 1px solid var(--line);
}

.pg-btn {
    font-family: var(--f);
    font-size: 13px;
    font-weight: 400;
    color: var(--sub);
    background: none;
    border: 1px solid var(--line);
    padding: 9px 20px;
    border-radius: 4px;
    cursor: none;
    transition: all .2s var(--ease);
}

.pg-btn:hover:not(:disabled) {
    border-color: var(--ink);
    color: var(--ink);
}

.pg-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pg-info {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    gap: 6px;
    align-items: center;
}

.pg-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    transition: background .25s;
    cursor: none;
}

.pg-dot.active {
    background: var(--ink);
}

/* ── RESPONSIVE ── */
@media (max-width:900px) {

    .approach-wrap,
    .skills-wrap,
    .about-wrap,
    .contact-wrap {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .case-item {
        grid-template-columns: 24px 1fr;
    }

    .ci-aside {
        display: none;
    }

    .ci-detail-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width:640px) {
    nav {
        padding: 16px 24px;
    }

    .nav-links a:not(.nav-hire) {
        display: none;
    }

    .hero {
        padding: 110px 24px 64px;
    }

    .hero-stats {
        gap: 32px;
    }

    .sec {
        padding: 64px 24px;
    }

    .work-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    footer {
        padding: 20px 24px;
        flex-direction: column;
        gap: 6px;
    }
}