:root {
    --ink: #0A0E1C;
    --ink-2: #10162B;
    --ink-3: #181F3A;
    --line: rgba(146, 158, 214, .16);
    --bone: #F3F1E9;
    --text: #E9EBF5;
    --muted: #9AA3C0;
    --blue: #5B6CFF;
    --blue-deep: #3D4CE0;
    --coral: #FF6C5C;
    --amber: #FFC24B;
    --radius: 18px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'Instrument Sans', system-ui, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
}

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

html {
    scroll-behavior: smooth
}

@media (prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

body {
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background: var(--coral);
    color: var(--ink)
}

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

img {
    display: block
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
    border-radius: 4px
}

/* ---------- shared ---------- */
.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 28px
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 12px;
}

.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--amber)
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 52px
}

h2 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 4.4vw, 52px);
    line-height: 1.05;
    margin-top: 14px;
    letter-spacing: -.01em
}

.section-note {
    max-width: 340px;
    color: var(--muted);
    font-size: 15px
}

section {
    padding: 110px 0
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1)
}

.reveal.in {
    opacity: 1;
    transform: none
}

/* ---------- nav ---------- */
header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    backdrop-filter: blur(14px);
    background: rgba(10, 14, 28, .68);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px
}

.brand img {
    height: 34px;
    width: auto
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 14.5px;
    font-weight: 500
}

.nav-links a {
    color: var(--muted);
    transition: color .2s
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 999px;
    padding: 13px 24px;
    transition: transform .2s, box-shadow .2s, background .2s;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-solid {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 30px -10px rgba(91, 108, 255, .55)
}

.btn-solid:hover {
    background: var(--blue-deep)
}

.btn-ghost {
    border-color: var(--line);
    color: var(--text)
}

.btn-ghost:hover {
    border-color: var(--muted)
}

.btn-sm {
    padding: 9px 18px;
    font-size: 13.5px
}

@media (max-width:760px) {
    .nav-links a {
        display: none
    }

    .nav-links .btn {
        display: inline-flex
    }
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 150px 0 120px;
    background:
        radial-gradient(900px 520px at 78% 18%, rgba(91, 108, 255, .16), transparent 62%),
        radial-gradient(640px 420px at 12% 88%, rgba(255, 108, 92, .10), transparent 60%),
        var(--ink);
    isolation: isolate;
}

#particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.hero .wrap {
    position: relative;
    z-index: 1;
    width: 100%
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center
}

.hero h1 {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(52px, 9vw, 118px);
    line-height: .96;
    letter-spacing: -.02em;
    margin: 26px 0 8px;
}

.hero h1 .accent {
    color: var(--coral)
}

.role-line {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(19px, 2.4vw, 26px);
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.role-line .swap {
    display: inline-block;
    min-width: 9ch
}

.hero p.lede {
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
    margin-bottom: 36px
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-bottom: 34px
}

.hero-facts {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
}

.hero-facts span {
    display: flex;
    align-items: center;
    gap: 9px
}

.hero-facts i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--amber);
    flex: none
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: color .2s, border-color .2s, transform .2s;
}

.socials a:hover {
    color: var(--text);
    border-color: var(--muted);
    transform: translateY(-2px)
}

.socials svg {
    width: 19px;
    height: 19px;
    fill: currentColor
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .3em;
    color: var(--muted);
    writing-mode: vertical-rl;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
}

.scroll-cue::after {
    content: "";
    width: 1px;
    height: 44px;
    background: linear-gradient(var(--muted), transparent);
    animation: drip 1.8s ease-in-out infinite
}

@keyframes drip {
    0% {
        transform: scaleY(0);
        transform-origin: top
    }

    55% {
        transform: scaleY(1);
        transform-origin: top
    }

    56% {
        transform-origin: bottom
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom
    }
}

/* ---------- trophy ticker ---------- */
.ticker-band {
    background: var(--blue);
    padding: 34px 0;
    transform: rotate(-1.4deg) scale(1.02);
    margin: 20px 0 -20px;
    box-shadow: 0 30px 60px -30px rgba(91, 108, 255, .45);
}

.ticker-label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .75);
    text-align: center;
    margin-bottom: 18px;
}

.marquee {
    overflow: hidden;
    display: flex
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
    flex: none;
    animation: scroll 36s linear infinite
}

.ticker-band:hover .marquee-track {
    animation-play-state: paused
}

@keyframes scroll {
    to {
        transform: translateX(-100%)
    }
}

.win {
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    padding: 4px 6px
}

.win .badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fff;
    flex: none;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px -6px rgba(10, 14, 28, .45), inset 0 0 0 3px rgba(255, 194, 75, 0);
}

.win.gold .badge {
    box-shadow: 0 6px 16px -6px rgba(10, 14, 28, .45), inset 0 0 0 3px var(--amber)
}

.win .badge img {
    height: 28px;
    width: 28px;
    object-fit: contain
}

.win .place {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .72);
    line-height: 1;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.win.gold .place {
    color: var(--amber)
}

.win.gold .place::before {
    content: "★";
    font-size: 11px
}

.win .event {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 17px;
    line-height: 1.1
}

.sep {
    flex: none;
    align-self: center;
    color: rgba(255, 255, 255, .45);
    font-size: 13px
}

/* ---------- skills ---------- */
.skills {
    background: var(--ink)
}

.skill-groups {
    display: flex;
    flex-direction: column;
    gap: 56px
}

.skill-group {
    display: grid;
    grid-template-columns: 230px 1fr;
    gap: 34px;
    align-items: start
}

@media (max-width:820px) {
    .skill-group {
        grid-template-columns: 1fr;
        gap: 18px
    }
}

.skill-group-label {
    position: sticky;
    top: 100px
}

.skill-group-label .num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--coral);
    letter-spacing: .2em
}

.skill-group-label h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 23px;
    margin: 8px 0 6px
}

.skill-group-label p {
    font-size: 14px;
    color: var(--muted)
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 12px
}

.skill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px 16px;
    transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s, background .25s;
}

.skill:hover {
    transform: translateY(-4px);
    border-color: rgba(91, 108, 255, .55);
    background: var(--ink-3)
}

.skill i {
    font-size: 26px;
    color: var(--muted);
    filter: grayscale(1) opacity(.6);
    transition: filter .25s
}

.skill svg {
    width: 26px;
    height: 26px;
    filter: grayscale(1) opacity(.6);
    transition: filter .25s;
    flex: none
}

.skill:hover i,
.skill:hover svg {
    filter: none
}

.skill span {
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    transition: color .25s
}

.skill:hover span {
    color: var(--text)
}

/* ---------- projects ---------- */
.projects {
    background: var(--bone);
    color: #14182b;
    border-radius: 44px 44px 0 0;
}

.projects .eyebrow {
    color: var(--blue-deep)
}

.projects .eyebrow::before {
    background: var(--blue-deep)
}

.projects .section-note {
    color: #5a6076
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px
}

@media (max-width:960px) {
    .project-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin: 0 auto
    }
}

.project {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #E4E1D4;
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s;
    display: flex;
    flex-direction: column;
}

.project:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 60px -28px rgba(20, 24, 43, .35)
}

.cover {
    aspect-ratio: 16/10;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    font-family: var(--font-display);
    font-weight: 800;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    letter-spacing: -.01em;
    overflow: hidden;
}

.cover::after {
    content: attr(data-mark);
    position: absolute;
    right: -14px;
    top: -30px;
    font-size: 150px;
    font-weight: 800;
    opacity: .16;
    letter-spacing: -.05em;
}

.cover.c1 {
    background: linear-gradient(135deg, #3D4CE0, #7B4DFF)
}

.cover.c2 {
    background: linear-gradient(135deg, #FF6C5C, #FF9D5C)
}

.cover.c3 {
    background: linear-gradient(135deg, #0E7C66, #37B888)
}

.cover .live {
    position: absolute;
    top: 16px;
    left: 16px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: .14em;
    background: rgba(255, 255, 255, .92);
    color: #14182b;
    padding: 6px 12px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.cover .live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22B36B;
    animation: pulse 1.6s infinite
}

@keyframes pulse {
    50% {
        opacity: .35
    }
}

.project-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1
}

.project-body h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px
}

.project-body p {
    font-size: 14.5px;
    color: #5a6076;
    flex: 1
}

.project-links {
    display: flex;
    gap: 16px;
    margin-top: 6px
}

.project-links a {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--blue-deep);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-links a:hover {
    text-decoration: underline
}

.projects-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px
}

.btn-dark {
    background: #14182b;
    color: #fff
}

.btn-dark:hover {
    background: #232a49
}

/* ---------- press ---------- */
.press-list {
    border-top: 1px solid var(--line)
}

.press-row {
    display: grid;
    grid-template-columns: 168px 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 30px 6px;
    border-bottom: 1px solid var(--line);
    transition: background .2s, padding .25s;
}

.press-row:hover {
    background: var(--ink-2);
    padding-left: 18px;
    border-radius: 12px
}

.press-row .year {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--amber)
}

.press-row h3 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 4px
}

.press-row p {
    font-size: 14.5px;
    color: var(--muted)
}

.press-row .arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: all .25s;
    flex: none;
}

.press-row:hover .arrow {
    background: var(--coral);
    border-color: var(--coral);
    color: #fff;
    transform: rotate(-45deg)
}

.press-row .thumb {
    aspect-ratio: 3/2;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 28px;
    color: rgba(255, 255, 255, .92);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}

.press-row:hover .thumb {
    transform: scale(1.04) rotate(-1.5deg)
}

.press-row .thumb::after {
    content: attr(data-mark);
    position: relative;
    z-index: 1
}

.press-row .thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2
}

.thumb.t1 {
    background: linear-gradient(135deg, var(--amber), var(--coral))
}

.thumb.t2 {
    background: linear-gradient(135deg, var(--blue), #7B4DFF)
}

.press-row .year {
    display: block;
    margin-bottom: 6px
}

@media (max-width:640px) {
    .press-row {
        grid-template-columns: 110px 1fr auto
    }

    .press-row .thumb {
        font-size: 18px;
        border-radius: 10px
    }

    .press-row .arrow {
        display: none
    }
}

/* ---------- footer ---------- */
footer {
    padding: 120px 0 44px;
    background:
        radial-gradient(700px 380px at 50% 0%, rgba(255, 108, 92, .12), transparent 65%),
        var(--ink);
    text-align: center;
}

footer .eyebrow {
    justify-content: center
}

footer .eyebrow::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--amber)
}

footer h2 {
    margin-bottom: 18px
}

footer .mail {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(20px, 3.4vw, 34px);
    color: var(--blue);
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}

footer .mail:hover {
    color: var(--coral);
    border-color: var(--coral)
}

.foot-bottom {
    margin-top: 90px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    font-size: 13.5px;
    color: var(--muted);
}

.foot-bottom img {
    height: 26px
}