:root {
    --bg: #0b0c0b;
    --bg-2: #111514;
    --surface: #171c1a;
    --surface-2: #1e2622;
    --line: rgba(238, 232, 215, 0.14);
    --line-strong: rgba(238, 232, 215, 0.24);
    --text: #f3eddf;
    --muted: #a9aa9f;
    --soft: #d7d2c2;
    --cyan: #67e8f9;
    --green: #9fe870;
    --amber: #ffcb74;
    --danger: #ff8066;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --max: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        linear-gradient(115deg, rgba(103, 232, 249, 0.09), transparent 34%),
        radial-gradient(circle at 82% 18%, rgba(159, 232, 112, 0.12), transparent 24%),
        linear-gradient(180deg, #0a0b0a 0%, #111312 46%, #0b0c0b 100%);
    color: var(--text);
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
}

.noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, #000, transparent 85%);
}

.topbar {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 20;
    width: min(calc(100% - 32px), var(--max));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(11, 12, 11, 0.72);
    backdrop-filter: blur(18px);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.28);
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    text-decoration: none;
    font-weight: 800;
}

.wordmark span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    color: #06100e;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 0 28px rgba(103, 232, 249, 0.32);
}

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

.desktop-nav a,
.nav-cta {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    padding: 0 14px;
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
}

.desktop-nav a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    color: #07110f;
    background: var(--text);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 17px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: var(--text);
}

.mobile-nav {
    position: fixed;
    top: 88px;
    left: 16px;
    right: 16px;
    z-index: 18;
    display: none;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(11, 12, 11, 0.94);
    backdrop-filter: blur(18px);
}

.mobile-nav a {
    display: block;
    padding: 14px;
    border-radius: 12px;
    color: var(--soft);
    text-decoration: none;
    font-weight: 800;
}

.mobile-nav a:hover {
    background: rgba(255, 255, 255, 0.06);
}

.side-rail {
    position: fixed;
    left: 22px;
    top: 50%;
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left center;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.rail-line {
    width: 64px;
    height: 1px;
    background: var(--line-strong);
}

.rail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

main {
    width: min(calc(100% - 44px), var(--max));
    margin: 0 auto;
}

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.78fr);
    gap: 54px;
    align-items: center;
    padding: 132px 0 72px;
}

.hero-copy {
    min-width: 0;
}

.availability {
    margin: 0 0 22px;
    color: var(--green);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 850px;
    margin-bottom: 24px;
    color: var(--text);
    font-size: clamp(3.25rem, 6.4vw, 5.7rem);
    line-height: 0.96;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.hero-lead {
    max-width: 690px;
    color: var(--soft);
    font-size: 1.14rem;
    line-height: 1.85;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 900;
    font-size: 0.94rem;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button.primary {
    color: #05110e;
    background: linear-gradient(135deg, var(--cyan), var(--green));
    box-shadow: 0 18px 48px rgba(103, 232, 249, 0.18);
}

.button.secondary {
    color: var(--text);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.04);
}

.portrait-shell {
    position: relative;
    min-height: 580px;
}

.portrait-shell::before {
    content: "";
    position: absolute;
    inset: 34px -10px 72px 46px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 40px;
    transform: rotate(4deg);
}

.portrait-frame {
    position: relative;
    height: 520px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.portrait-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: 50% 32%;
    filter: saturate(0.95) contrast(1.04);
}

.signal-card {
    position: absolute;
    right: -10px;
    bottom: 28px;
    width: min(260px, 78%);
    padding: 18px;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 20px;
    background: rgba(17, 21, 20, 0.82);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.signal-card span {
    display: block;
    margin-bottom: 7px;
    color: var(--cyan);
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

.signal-card strong {
    font-size: 1.25rem;
    line-height: 1.2;
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--line);
}

.proof-strip div {
    min-height: 150px;
    padding: 26px;
    background: rgba(23, 28, 26, 0.86);
}

.proof-strip strong {
    display: block;
    color: var(--text);
    font-size: 2.3rem;
    line-height: 1;
    letter-spacing: 0;
}

.proof-strip span {
    display: block;
    max-width: 220px;
    margin-top: 14px;
    color: var(--muted);
    line-height: 1.5;
}

section {
    scroll-margin-top: 110px;
}

.story,
.experience,
.work,
.skills,
.process,
.youtube,
.contact {
    padding: 112px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 44px;
    align-items: start;
    margin-bottom: 48px;
}

.section-heading.compact {
    margin-bottom: 34px;
}

.section-heading span,
.youtube span,
.contact-grid span {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.section-heading h2 {
    max-width: 810px;
    margin-bottom: 0;
    font-size: clamp(2.1rem, 4.3vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    margin-left: 264px;
}

.story-grid p {
    margin-bottom: 0;
    color: var(--soft);
    font-size: 1.04rem;
    line-height: 1.85;
}

.timeline {
    margin-left: 264px;
    border-top: 1px solid var(--line);
}

.timeline-item {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 30px;
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}

.timeline-date {
    color: var(--amber);
    font-size: 0.83rem;
    font-weight: 900;
    text-transform: uppercase;
}

.timeline-content h3,
.project-row h3,
.skill-grid h3,
.process-grid h3 {
    margin-bottom: 10px;
    font-size: 1.35rem;
    letter-spacing: 0;
}

.timeline-content p,
.project-row p,
.skill-grid p,
.process-grid p,
.youtube p {
    margin-bottom: 0;
    color: var(--muted);
    line-height: 1.72;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: -12px 0 24px 264px;
}

.filter {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.filter.active,
.filter:hover {
    color: #05110e;
    border-color: transparent;
    background: var(--cyan);
}

.project-list {
    display: grid;
    gap: 12px;
}

.project-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1.25fr) minmax(210px, 0.55fr);
    gap: 26px;
    align-items: start;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(23, 28, 26, 0.72);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.project-row:hover {
    transform: translateY(-4px);
    border-color: rgba(103, 232, 249, 0.42);
    background: rgba(30, 38, 34, 0.9);
}

.project-row.featured {
    background:
        linear-gradient(135deg, rgba(103, 232, 249, 0.13), rgba(159, 232, 112, 0.06)),
        rgba(23, 28, 26, 0.9);
}

.project-index {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--green);
    font-weight: 900;
}

.project-row ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-row li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.project-row li:last-child {
    border-bottom: 0;
}

.skill-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.skill-grid article,
.process-grid div {
    min-height: 230px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(23, 28, 26, 0.78);
}

.skill-grid article:nth-child(2),
.process-grid div:nth-child(2) {
    transform: translateY(28px);
}

.skill-grid article:nth-child(3) {
    transform: translateY(-10px);
}

.process-grid strong {
    display: block;
    margin-bottom: 48px;
    color: var(--amber);
    font-size: 0.9rem;
}

.youtube {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
    margin: 30px 0 0;
    padding: 42px;
    border: 1px solid rgba(255, 203, 116, 0.22);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255, 203, 116, 0.1), transparent 52%),
        rgba(23, 28, 26, 0.84);
}

.youtube h2 {
    max-width: 720px;
    margin: 12px 0 12px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-grid a,
.contact-grid div {
    min-height: 132px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    color: var(--text);
    text-decoration: none;
    background: rgba(23, 28, 26, 0.76);
}

.contact-grid span {
    display: block;
    margin-bottom: 18px;
}

.contact-grid a:hover {
    border-color: rgba(103, 232, 249, 0.42);
}

.footer {
    width: min(calc(100% - 44px), var(--max));
    margin: 0 auto;
    padding: 34px 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

.footer span {
    font-weight: 900;
    color: var(--text);
}

.to-top {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--soft);
    background: rgba(255, 255, 255, 0.035);
    font: inherit;
    font-size: 0.86rem;
    font-weight: 900;
    cursor: pointer;
}

.section-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.section-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

    .section-reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 1100px) {
    .side-rail {
        display: none;
    }

    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 126px;
    }

    .portrait-shell {
        min-height: auto;
        max-width: 520px;
    }

    .story-grid,
    .timeline,
    .filter-bar {
        margin-left: 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .skill-grid,
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 780px) {
    main,
    .footer {
        width: min(calc(100% - 28px), var(--max));
    }

    .topbar {
        top: 12px;
        width: calc(100% - 24px);
        grid-template-columns: 1fr auto;
    }

    .desktop-nav,
    .nav-cta {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero {
        gap: 34px;
        padding: 112px 0 56px;
    }

    h1 {
        width: 100%;
        max-width: calc(100vw - 28px);
        font-size: clamp(1.72rem, 7vw, 2.35rem);
        line-height: 1.04;
    }

    .hero-lead {
        font-size: 1rem;
    }

    .portrait-frame {
        height: 430px;
        border-radius: 28px;
    }

    .signal-card {
        right: 10px;
        bottom: 14px;
    }

    .proof-strip,
    .story-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item,
    .project-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .project-index {
        width: 42px;
        height: 42px;
    }

    .skill-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .skill-grid article:nth-child(2),
    .skill-grid article:nth-child(3),
    .process-grid div:nth-child(2) {
        transform: none;
    }

    .youtube {
        grid-template-columns: 1fr;
        padding: 28px;
    }

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

@media (max-width: 460px) {
    .wordmark {
        font-size: 0.92rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .portrait-frame {
        height: 370px;
    }

    .proof-strip div,
    .project-row,
    .skill-grid article,
    .process-grid div,
    .contact-grid a,
    .contact-grid div {
        padding: 20px;
        border-radius: 20px;
    }

    .story,
    .experience,
    .work,
    .skills,
    .process,
    .youtube,
    .contact {
        padding: 78px 0;
    }
}
