:root {
    --bg: #ffffff;
    --panel1: #fafaf8;
    --panel2: #f1f1ee;
    --ink: #0a0a0a;
    --ink-soft: #57585f;
    --ink-faint: #8d8e94;
    --line: #dfe0db;
    --line-soft: #ecece7;
    --mono: 'IBM Plex Mono', monospace;
    --disp: 'Space Grotesk', sans-serif;
    --body: 'Inter', sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    animation: page-in 0.6s var(--ease) forwards;
}
@keyframes page-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
a {
    color: inherit;
    text-decoration: none;
}
::selection {
    background: var(--ink);
    color: #fff;
}
img,
svg {
    max-width: 100%;
    display: block;
}
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 40px;
}
@media (max-width: 700px) {
    .wrap {
        padding: 0 22px;
    }
}

.bracket {
    position: relative;
}
.bracket::before,
.bracket::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--ink);
    opacity: 0;
    transition:
        opacity 0.3s ease,
        transform 0.3s var(--ease);
}
.bracket::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid;
    border-left: 1px solid;
    transform: translate(4px, 4px);
}
.bracket::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 1px solid;
    border-right: 1px solid;
    transform: translate(-4px, -4px);
}
.bracket:hover::before,
.bracket:hover::after {
    opacity: 1;
    transform: translate(0, 0);
}

/* ---------- TOP BAR ---------- */
.topbar {
    border-bottom: 1px solid var(--line-soft);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
}
.topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 11px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.topbar-status {
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink);
    animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.35;
    }
}
@media (max-width: 700px) {
    .topbar-inner {
        padding: 10px 22px;
        font-size: 11px;
    }
}

/* ---------- NAV ---------- */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    transition:
        box-shadow 0.3s ease,
        padding 0.3s ease;
}
nav.scrolled {
    box-shadow: 0 4px 24px rgba(10, 10, 10, 0.05);
}
.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: padding 0.3s ease;
}
nav.scrolled .nav-inner {
    padding: 14px 40px;
}
.logo {
    font-family: var(--mono);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-dot {
    width: 7px;
    height: 7px;
    background: var(--ink);
    border-radius: 1px;
    display: inline-block;
}
.nav-links {
    display: flex;
    gap: 34px;
    font-size: 14px;
    color: var(--ink-soft);
}
.nav-links a {
    position: relative;
    padding-bottom: 2px;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--ink);
}
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.25s var(--ease);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-cta {
    font-family: var(--mono);
    font-size: 12.5px;
    background: var(--ink);
    color: #fff;
    padding: 10px 18px;
    border-radius: 100px;
    transition:
        transform 0.2s var(--ease),
        opacity 0.2s ease,
        box-shadow 0.2s ease;
}
.nav-cta:hover {
    opacity: 0.85;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(10, 10, 10, 0.18);
}
.nav-cta:active {
    transform: translateY(0) scale(0.97);
}
.nav-toggle {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    flex: none;
    cursor: pointer;
    background: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}
.nav-toggle:hover {
    border-color: var(--ink);
    background: var(--panel2);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    display: block;
    width: 16px;
    height: 1.4px;
    background: var(--ink);
    position: relative;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}
.nav-toggle span::before {
    position: absolute;
    top: -5px;
}
.nav-toggle span::after {
    position: absolute;
    top: 5px;
}
.nav-toggle.open span {
    background: transparent;
}
.nav-toggle.open span::before {
    transform: translateY(5px) rotate(45deg);
}
.nav-toggle.open span::after {
    transform: translateY(-5px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 150;
    background: #fff;
    padding: 100px 28px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-menu a {
    display: block;
    font-family: var(--disp);
    font-weight: 600;
    font-size: 28px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line-soft);
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.35s var(--ease),
        transform 0.35s var(--ease);
}
.mobile-menu.open a {
    opacity: 1;
    transform: translateY(0);
}
.mobile-menu.open a:nth-child(1) {
    transition-delay: 0.05s;
}
.mobile-menu.open a:nth-child(2) {
    transition-delay: 0.1s;
}
.mobile-menu.open a:nth-child(3) {
    transition-delay: 0.15s;
}
.mobile-menu.open a:nth-child(4) {
    transition-delay: 0.2s;
}

@media (max-width: 760px) {
    .nav-links {
        display: none;
    }
    .nav-inner {
        padding: 18px 22px;
    }
    .nav-toggle {
        display: flex;
    }
    .mobile-menu {
        display: block;
    }
}
@media (max-width: 480px) {
    .nav-cta {
        display: none;
    }
}

/* ---------- HERO ---------- */
.hero {
    padding: 110px 0 90px;
    position: relative;
}
.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 34px;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 30px;
    color: #fff;
    opacity: 0;
    transform: scale(0.9);
    animation: pop-in 0.6s var(--ease) 0.1s forwards;
}
.hero-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
h1.hero-title {
    font-family: var(--disp);
    font-weight: 600;
    letter-spacing: -0.02em;
    font-size: clamp(30px, 5vw, 50px);
    line-height: 1.15;
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.6s var(--ease) 0.2s forwards;
}
.hero-sub {
    font-size: 16px;
    color: var(--ink-soft);
    margin-top: 22px;
    line-height: 1.7;
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.6s var(--ease) 0.32s forwards;
}
.hero-actions {
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(14px);
    animation: fade-up 0.6s var(--ease) 0.44s forwards;
}
@keyframes pop-in {
    to {
        opacity: 1;
        transform: scale(1);
    }
}
@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    font-family: var(--mono);
    font-size: 13.5px;
    background: var(--ink);
    color: #fff;
    padding: 15px 28px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition:
        transform 0.25s var(--ease),
        opacity 0.25s ease,
        box-shadow 0.25s ease;
    border: 1px solid var(--ink);
}
.btn-primary:hover {
    transform: translateY(-2px);
    opacity: 0.88;
    box-shadow: 0 10px 26px rgba(10, 10, 10, 0.18);
}
.btn-primary:active {
    transform: translateY(0) scale(0.97);
}
.btn-primary svg {
    transition: transform 0.3s var(--ease);
}
.btn-primary:hover svg {
    transform: translate(2px, -2px);
}
.btn-secondary {
    font-family: var(--mono);
    font-size: 13.5px;
    color: var(--ink);
    border: 1px solid var(--line);
    padding: 15px 28px;
    border-radius: 100px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.25s var(--ease);
}
.btn-secondary:hover {
    border-color: var(--ink);
    background: var(--panel2);
    transform: translateY(-2px);
}
.btn-secondary:active {
    transform: translateY(0) scale(0.97);
}

/* ---------- SECTION HEAD ---------- */
.section {
    padding: 96px 0;
}
.section-alt {
    background: var(--panel1);
    border-top: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
}
.eyebrow-label {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 14px;
    display: block;
}
h2.section-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.01em;
}

/* ---------- TRIPLE COLUMN: EXPERIENCE / SKILLS / CERTIFICATION ---------- */
.triple-col {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 1fr;
    gap: 56px;
}
@media (max-width: 900px) {
    .triple-col {
        grid-template-columns: 1fr;
        gap: 52px;
    }
}

.exp-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-top: 1px solid var(--line-soft);
    transition: transform 0.25s var(--ease);
}
.exp-item:first-of-type {
    border-top: none;
}
.exp-item:hover {
    transform: translateX(4px);
}
.exp-logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--panel2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink);
    flex: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}
.exp-item:hover .exp-logo {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}
.exp-text-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 15px;
}
.exp-text-sub {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-faint);
    margin-top: 6px;
}

.skill-block {
    padding: 16px 0;
    border-top: 1px solid var(--line-soft);
}
.skill-block:first-of-type {
    border-top: none;
}
.skill-block-title {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.skill-tag {
    font-family: var(--disp);
    font-size: 13.5px;
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 100px;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        transform 0.2s var(--ease);
}
.skill-tag:hover {
    border-color: var(--ink);
    background: var(--panel2);
    transform: translateY(-1px);
}

.cert-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 18px 0;
    border-top: 1px solid var(--line-soft);
    transition: transform 0.25s var(--ease);
}
.cert-item:first-of-type {
    border-top: none;
}
.cert-item:hover {
    transform: translateX(4px);
}
.cert-badge {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--panel2);
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: background 0.2s ease;
}
.cert-item:hover .cert-badge {
    background: #fff;
}

/* ---------- SERVICES ---------- */
.services-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.service-row {
    border-top: 1px solid var(--line-soft);
    padding: 34px 0;
    display: grid;
    grid-template-columns: 32px 1fr 220px;
    gap: 28px;
    align-items: center;
    transition: background 0.3s ease;
}
.service-row:last-child {
    border-bottom: 1px solid var(--line-soft);
}
.service-row:hover {
    background: var(--panel2);
}
.service-icon {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
}
.service-name {
    font-family: var(--disp);
    font-weight: 600;
    font-size: 21px;
    letter-spacing: -0.01em;
    transition: transform 0.25s var(--ease);
}
.service-row:hover .service-name {
    transform: translateX(4px);
}
.service-desc {
    font-size: 14px;
    color: var(--ink-soft);
    margin-top: 8px;
    max-width: 520px;
    line-height: 1.65;
}
.service-visual {
    height: 120px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--panel2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.service-visual img {
    width: 100%;
    height: auto;
    transition: transform 0.4s var(--ease);
}
.service-row:hover .service-visual svg {
    transform: scale(1.04);
}
@media (max-width: 800px) {
    .service-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .service-visual {
        display: none;
    }
}

/* ---------- STATS ---------- */
.stats-banner {
    padding: 68px 0;
    text-align: center;
}
.stats-lede {
    font-family: var(--disp);
    font-weight: 500;
    font-size: clamp(19px, 2.4vw, 26px);
    max-width: 640px;
    margin: 0 auto 52px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}
.stat-cell {
    background: var(--panel1);
    padding: 32px 18px;
    transition: background 0.25s ease;
}
.stat-cell:hover {
    background: #fff;
}
.stat-num {
    font-family: var(--disp);
    font-weight: 700;
    font-size: 36px;
}
.stat-label {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
@media (max-width: 700px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- SELECTED WORKS ---------- */
.work-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
    padding: 60px 0;
    border-top: 1px solid var(--line-soft);
}
.work-item:first-of-type {
    border-top: none;
}
.work-cover {
    aspect-ratio: 4/3;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel2);
    overflow: hidden;
}
.work-cover svg {
    width: 100%;
    height: 100%;
    transition: transform 0.5s var(--ease);
}
.work-cover:hover svg {
    transform: scale(1.035);
}
.work-name {
    font-family: var(--disp);
    font-weight: 600;
    font-size: clamp(22px, 2.8vw, 30px);
    letter-spacing: -0.01em;
}
.work-cat {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-faint);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.work-desc {
    font-size: 14.5px;
    color: var(--ink-soft);
    margin-top: 16px;
    line-height: 1.75;
    max-width: 440px;
}
.work-link {
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 4px;
    transition:
        border-color 0.2s ease,
        gap 0.2s ease;
}
.work-link:hover {
    border-color: var(--ink);
    gap: 11px;
}
@media (max-width: 800px) {
    .work-item {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}
.work-item:nth-of-type(even) {
    direction: rtl;
}
.work-item:nth-of-type(even) > * {
    direction: ltr;
}

/* ---------- CTA BANNER ---------- */
.cta-banner {
    padding: 110px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--line-soft);
}
.cta-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: clamp(28px, 4.4vw, 50px);
    letter-spacing: -0.02em;
    max-width: 720px;
    margin: 0 auto;
}
.cta-sub {
    font-size: 15.5px;
    color: var(--ink-soft);
    margin-top: 18px;
}
.cta-actions {
    margin-top: 34px;
}

/* ---------- CONTACT ---------- */
.contact-section {
    padding: 96px 0 56px;
}
.contact-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    flex-wrap: wrap;
    padding-bottom: 52px;
    border-bottom: 1px solid var(--line-soft);
}
.contact-title {
    font-family: var(--disp);
    font-weight: 600;
    font-size: clamp(30px, 4.6vw, 52px);
    letter-spacing: -0.02em;
    max-width: 560px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    flex-wrap: wrap;
    gap: 18px;
}
.footer-links {
    display: flex;
    gap: 24px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-soft);
    flex-wrap: wrap;
}
.footer-links a {
    position: relative;
    padding-bottom: 2px;
}
.footer-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--ink);
    transition: width 0.25s var(--ease);
}
.footer-links a:hover {
    color: var(--ink);
}
.footer-links a:hover::after {
    width: 100%;
}
.footer-copy {
    font-family: var(--mono);
    font-size: 11.5px;
    color: var(--ink-faint);
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease);
}
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: 4px;
}
