/* Theme tokens */
:root {
    --color-bg: #050505;
    --color-body: #111;
    --color-menu-bg: #141414f2;
    --color-surface: #0e0e0e;
    --color-text-bright: #f5f5f5;
    --color-text-dim: #d4d4d4;
    --color-text-200: #b5b5b5;
    --color-text-muted: #a3a3a3;
    --color-text-500: #737373;
    --color-focus: #ffffffe6;
    --border-faint: #ffffff1a;
    --border-default: #ffffff24;
    --border-strong: #ffffff3d;
    --border-line: #ffffff73;
    --color-amber: #ffc04e;
    --color-green: #4ade80;
    --font-sans: "Noto Sans TC", ui-sans-serif, system-ui, sans-serif;
}

html, body, #app {
    width: 100%;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth;
    color: #fff;
    background-color: var(--color-body);
    overflow-x: hidden
}

body {
    font-family: var(--font-sans)
}

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

.font-poppins {
    font-family: "Poppins", var(--font-sans)
}

a {
    text-decoration: none
}

/* Page shell / silk background */
.video-page {
    isolation: isolate;
    background: var(--color-bg);
    position: relative
}

.silk-background {
    z-index: 0;
    pointer-events: none;
    filter: grayscale();
    opacity: 0;
    transition: opacity .72s cubic-bezier(.22, 1, .36, 1);
    position: absolute;
    inset: 0
}

.silk-background canvas {
    width: 100%;
    height: 100%;
    display: block
}

.silk-background.is-visible {
    opacity: 1
}

.site-page-content {
    z-index: 1;
    position: relative
}

/* Section shells */
.section-shell {
    background: var(--color-bg);
    padding: 4rem 1.5rem;
    scroll-margin-top: 5.75rem;
    position: relative;
    overflow-x: clip
}

#about, #projects {
    background: #101010
}

.footer-shell {
    padding: 5rem 1.5rem 1.5rem;
    position: relative;
    overflow: clip
}

.footer-shell:before {
    content: "";
    background: linear-gradient(to bottom, var(--color-bg) 0%, var(--color-bg) 35%, color-mix(in srgb, var(--color-bg) 75%, transparent) 52%, color-mix(in srgb, var(--color-bg) 40%, transparent) 70%, color-mix(in srgb, var(--color-bg) 8%, transparent) 88%, transparent 100%);
    height: 620px;
    position: absolute;
    top: -200px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2
}

.section-title-block {
    text-align: left
}

.section-heading-line {
    background: var(--border-line);
    clip-path: polygon(0 0, 100% 33%, 100% 67%, 0 100%);
    transform-origin: 0;
    width: 6rem;
    height: 3px;
    margin-top: 1rem;
    transition: transform .55s cubic-bezier(.25, 1, .5, 1) .3s;
    transform: scaleX(0)
}

.is-revealed .section-heading-line {
    transform: scaleX(1)
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.02em;
    margin: 0
}

@media (min-width: 768px) {
    .section-shell {
        padding: 6rem 1.5rem;
        scroll-margin-top: 7rem
    }

    .footer-shell {
        padding: 6rem 1.5rem 1.5rem
    }

    .section-title {
        font-size: 2.25rem
    }
}

@media (min-width: 992px) {
    .section-title {
        font-size: 3rem
    }
}

/* Navbar */
.site-nav {
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    position: relative;
    background: rgba(6, 6, 6, 0.5) !important;
    height: 4.5rem;
    width: 100%;
    padding: 0 1.5rem;
    z-index: 1050
}

.site-nav .nav-inner {
    position: relative;
    margin: 0 auto;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    max-width: 80rem
}

.site-brand {
    color: #f0f0f0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 .875rem;
}

.site-nav-cat {
    object-fit: contain;
    object-position: center bottom;
    pointer-events: none;
    width: 4rem;
    height: auto;
    max-height: 4.6rem;
    position: absolute;
    bottom: 0;
    left: .33rem;
    transform: translateY(.08rem)
}

.name-char {
    white-space: pre;
    transition: transform .3s;
    display: inline-block;
    transform: translateY(0)
}

.site-brand:hover .name-char {
    transform: translateY(-2px)
}

.name-char:nth-child(1) {
    transition-delay: 0s
}

.name-char:nth-child(2) {
    transition-delay: 25ms
}

.name-char:nth-child(3) {
    transition-delay: 50ms
}

.name-char:nth-child(4) {
    transition-delay: 75ms
}

.name-char:nth-child(5) {
    transition-delay: .1s
}

.name-char:nth-child(6) {
    transition-delay: .125s
}

.name-char:nth-child(7) {
    transition-delay: .15s
}

.name-char:nth-child(8) {
    transition-delay: .175s
}

.name-char:nth-child(9) {
    transition-delay: .2s
}

.name-char:nth-child(10) {
    transition-delay: .225s
}

.site-nav-link {
    color: var(--color-text-dim);
    display: inline-flex;
    align-items: center;
    height: 100%;
    padding: 0 .875rem;
    font-size: 17px;
    font-weight: 700;
    transition: color .2s
}

.site-nav-link:hover {
    color: #f0f0f0
}

.site-nav-link.active, .site-nav-link.is-active {
    color: #fff
}

.nav-text {
    position: relative
}

.nav-text:after {
    content: "";
    transform-origin: 0;
    background: #fff;
    width: 100%;
    height: 2px;
    transition: transform .25s;
    position: absolute;
    bottom: -6px;
    left: 0;
    transform: scaleX(0)
}

.site-nav-link:hover .nav-text:after {
    transform: scaleX(1)
}

.hamburger {
    cursor: pointer;
    background: 0 0;
    border: none;
    width: 1.5rem;
    height: 1.5rem;
    padding: 0;
    transition: all .3s;
    position: relative
}

.hamburger:focus-visible {
    outline-offset: 6px
}

.hamburger-line {
    background: var(--color-text-muted);
    border-radius: .125rem;
    width: 100%;
    height: .125rem;
    transition: inherit;
    position: absolute;
    right: 0
}

.hamburger-line:nth-child(1) {
    top: .1875rem
}

.hamburger-line:nth-child(2) {
    top: .6875rem
}

.hamburger-line:nth-child(3) {
    top: 1.1875rem
}

.hamburger.is-active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(-135deg)
}

.hamburger.is-active .hamburger-line:nth-child(2) {
    width: 0
}

.hamburger.is-active .hamburger-line:nth-child(3) {
    width: 100%;
    top: 50%;
    transform: translateY(-50%) rotate(135deg)
}

.site-mobile-menu {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    box-shadow: 0 0 0 1px #ffffff1a, 0 8px 32px #00000080;
    background: var(--color-menu-bg) !important
}

.mobile-nav-link {
    display: block;
    padding: .75rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-muted);
    transition: color .2s, background-color .2s
}

.mobile-nav-link:hover {
    color: #fff;
    background: #ffffff0d
}

.mobile-nav-link.is-contact {
    color: #fff
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow: hidden
}

@media (min-width: 768px) {
    .hero {
        justify-content: center
    }
}

.hero:after {
    content: "";
    height: 620px;
    position: absolute;
    bottom: -200px;
    left: 0;
    right: 0;
    pointer-events: none;
    z-index: 2
}

.hero-inner {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 80rem;
    padding: 20vh 0 0;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .hero-inner {
        padding-top: 0
    }
}

.hero-title {
    display: block;
    font-size: 1.75rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.02em;
    white-space: nowrap;
    margin: 0
}

.hero-title-name {
    font-weight: 700
}

.hero-title-prefix, .hero-title-suffix, .hero-title-name {
    display: inline-block
}

.hero-title-name {
    letter-spacing: -.025em
}

.hero-title-prefix, .hero-title-suffix {
    opacity: 0;
    animation: .35s ease-out forwards heroTitlePartIn
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 2.75rem
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-text-200);
    line-height: 1.2;
    white-space: nowrap;
    margin: 0
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.6875rem
    }
}

@media (min-width: 992px) {
    .hero-subtitle {
        font-size: 2rem
    }
}

.hero-bio {
    color: var(--color-text-muted);
    font-size: .9375rem;
    line-height: 1.7;
    margin: 0
}

@media (min-width: 768px) {
    .hero-bio {
        font-size: 1.2rem
    }
}

@media (min-width: 992px) and (max-width: 1200px) {
    .hero-title {
        font-size: 2.5rem
    }

    .hero-subtitle {
        font-size: 1.5rem
    }

    .hero-bio {
        font-size: 1.0625rem
    }
}

.hero-about-button {
    --bink: #e8e8e8;
    --bsurf: #101010;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 15px 25px;
    border: unset;
    font-size: 17px;
    font-weight: 700;
    color: var(--bsurf);
    background: var(--bink);
    box-shadow: 4px 8px 19px -3px rgba(0, 0, 0, .27);
    z-index: 1;
    transition: color .25s
}

.hero-about-button::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--bsurf);
    z-index: -1;
    transition: width .25s
}

.hero-about-button:hover {
    color: var(--bink)
}

.hero-about-button:hover::before {
    width: 100%
}

@media (max-width: 640px) {
    .hero-about-button {
        gap: .65rem;
        padding: 13px 22px;
        font-size: 15px
    }

    .hero-about-button svg {
        width: 1rem;
        height: 1rem
    }
}

/* Hero 社群圖示 */
.hero-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0
}

@media (min-width: 992px) {
    .hero-socials {
        justify-content: flex-start
    }
}

.hero-socials .icon-content {
    position: relative
}

.hero-socials .icon-content a {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #fff;
    background-color: transparent;
    border: 1px solid #ffffff80;
    transition: color .3s ease-in-out, border-color .3s ease-in-out
}

.hero-socials .icon-content a:hover {
    color: #000;
    border-color: #fff
}

.hero-socials .icon-content a svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px
}

.hero-socials .icon-content a .filled {
    position: absolute;
    inset: auto 0 0 0;
    width: 100%;
    height: 0;
    background-color: #fff;
    transition: height .3s ease-in-out
}

.hero-socials .icon-content a:hover .filled {
    height: 100%
}

.wiggle {
    animation: .5s wiggle
}

.hero-photo {
    position: relative;
    aspect-ratio: 4 / 3
}

.hero-photo img {
    position: relative;
    z-index: 2;
    transition: transform .5s cubic-bezier(.2, .7, .2, 1)
}

.hero-photo .main-border {
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff47;
    z-index: 3;
    pointer-events: none
}

.hero-photo .corner-top-left {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-top: 1px solid #ffffffa6;
    border-left: 1px solid #ffffffa6;
    z-index: 4;
    pointer-events: none
}

.hero-photo .offset-one {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border-right: 1px solid #ffffff40;
    border-bottom: 1px solid #ffffff40;
    z-index: 1;
    pointer-events: none
}

@media (max-width: 700px) {
    .hero-photo .corner-top-left {
        top: -12px;
        left: -12px;
        width: 75px;
        height: 75px
    }

    .hero-photo .right-line {
        right: -9px;
        top: 9px
    }

    .hero-photo .offset-one {
        top: 7px;
        left: 7px
    }
}

.fade-up {
    opacity: 0;
    animation: .7s forwards fadeUp
}

.fade-delay-100 {
    animation-delay: .1s
}

.fade-delay-250 {
    animation-delay: .25s
}

.fade-delay-400 {
    animation-delay: .4s
}

.fade-delay-550 {
    animation-delay: .55s
}

.fade-delay-650 {
    animation-delay: .65s
}

.fade-delay-700 {
    animation-delay: .7s
}

.fade-delay-1000 {
    animation-delay: 1s
}

.scroll-cue {
    z-index: 10;
    color: var(--color-text-muted);
    opacity: 0;
    flex-direction: column;
    align-items: center;
    gap: .7rem;
    text-decoration: none;
    animation: .7s 1s forwards scrollCueIn, 1.9s ease-in-out 1.75s infinite scrollCueFloat;
    display: inline-flex;
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translate(-50%, .8rem)
}

.scroll-cue span {
    letter-spacing: .32em;
    text-indent: .32em;
    font-size: .68rem;
    font-weight: 500;
    transition: color .18s
}

.scroll-cue i {
    background: linear-gradient(to bottom, var(--color-text-bright), #f5f5f500);
    opacity: .78;
    width: 1px;
    height: 3rem;
    transition: height .18s, opacity .18s;
    display: block
}

.scroll-cue:hover span, .scroll-cue:focus-visible span {
    color: var(--color-text-bright)
}

.scroll-cue:hover i, .scroll-cue:focus-visible i {
    opacity: 1;
    height: 3.4rem
}

/* Buttons (shared) */
.btn-outline-soft {
    border: 1px solid var(--border-faint);
    color: var(--color-text-muted);
    background: transparent;
    font-size: .875rem;
    padding: .75rem 1.5rem;
    transition: color .2s, border-color .2s
}

.btn-outline-soft:hover {
    color: #fff;
    border-color: var(--border-strong)
}

.btn-solid-light {
    background: var(--color-text-200);
    color: #0a0a0a;
    font-weight: 500;
    transition: background-color .2s
}

.btn-solid-light:hover {
    background: #fff;
    color: #0a0a0a
}

/* About — profile-card layout (banner + overlapping avatar, Discord-card inspired) */
.about-card {
    background: #ffffff04;
    border: 1px solid var(--border-faint);
    overflow: hidden
}

.about-col-label {
    font-family: "Poppins", var(--font-sans);
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 .5rem;
}

.profile-banner {
    aspect-ratio: 21 / 6;
    overflow: hidden;
    border-bottom: 1px solid var(--border-faint)
}

.profile-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.55) saturate(.85)
}

.profile-body {
    position: relative;
    padding: 0 1.25rem 1.75rem
}

.profile-header {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    margin-top: -3.5rem;
    margin-left: -1rem
}

.profile-avatar-wrap {
    position: relative;
    flex-shrink: 0
}

.profile-avatar {
    width: 7rem;
    height: 7rem;
    border-radius: 999px;
    overflow: hidden;
    border: 0.8rem solid var(--color-menu-bg);
    background: var(--color-menu-bg);
}

.profile-status {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: 26%;
    height: 26%;
    border-radius: 999px;
    background: var(--color-menu-bg);
    overflow: hidden;
}

.profile-status::before {
    content: "";
    position: absolute;
    width: 60%;
    height: 60%;
    left: 15%;
    top: 15%;
    border-radius: 50%;
    background: var(--color-amber);
}

.profile-status::after {
    content: "";
    position: absolute;
    width: 50%;
    height: 50%;
    left: 6%;
    top: 6%;
    border-radius: 50%;
    background: #141414;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

/* Chat-bubble tooltip: two ascending dots trailing up into a full bubble,
   anchored above the avatar so it never collides with the skills row
   (which sits at the bottom of the header, flush with the avatar) */
.chat-bubble-group {
    position: absolute;
    left: 105%;
    top: 44%;
    z-index: 6;
    pointer-events: none;
    font-size: clamp(.625rem, 2.6vw, 1.0625rem)
}

@media (min-width: 768px) {
    .chat-bubble-group {
        font-size: 1.1875rem
    }
}

.chat-dot {
    position: absolute;
    border-radius: 999px;
    background: var(--color-menu-bg);
    border: 1px solid var(--border-default)
}

.chat-dot-sm {
    width: .68em;
    height: .68em;
    left: .17em;
    top: -1.26em
}

.chat-dot-md {
    width: 1.18em;
    height: 1.18em;
    left: .84em;
    top: -.5em;
    z-index: 3;
    border: none;
    background: #17181b;
}

.chat-dot-md:before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 999px;
    border: 0.1px solid var(--border-default);
    clip-path: inset(0 0 55% 0)
}

.chat-bubble {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: max-content;
    max-width: 40vw;
    background: #17181b;
    border: 0.1px solid var(--border-default);
    border-radius: 1.75rem;
    padding: clamp(.4rem, 1.6vw, .7rem) clamp(.65rem, 3.2vw, 1.35rem);
    white-space: normal;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3)
}

.chat-bubble-emoji {
    font-size: 1.3rem;
    line-height: 1
}

.chat-bubble-text {
    color: var(--color-text-200);
    font-size: clamp(.625rem, 2.6vw, 1.0625rem);
    line-height: 1.4
}

@media (min-width: 768px) {
    .chat-bubble-text {
        font-size: 1.1875rem
    }

    .chat-bubble {
        max-width: none;
        white-space: nowrap
    }
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 1rem 0 0
}

.profile-tagline {
    color: var(--color-text-dim);
    font-size: .9375rem;
    line-height: 1.6;
    margin: .5rem 0 0
}

.profile-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    background: var(--color-menu-bg);
    white-space: nowrap;
    padding: .30rem .70rem .30rem .50rem;
    background: var(--color-menu-bg);
    border: 0.5px solid var(--border-faint);
    border-radius: .5rem;
    color: var(--color-text-200);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4rem;
    vertical-align: middle;
    margin-left: .6rem
}

.profile-tag-icon {
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    flex-shrink: 0
}

.profile-about {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-faint)
}

.about-skills-section {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-faint)
}

@media (min-width: 768px) {
    .profile-banner {
        aspect-ratio: 21 / 6
    }

    .profile-body {
        padding: 0 2rem 2rem
    }

    .profile-header {
        margin-left: 0
    }

    .profile-name {
        font-size: 1.5rem
    }

    .profile-tagline {
        font-size: 1.0625rem
    }
}

@media (min-width: 992px) {
    .profile-body {
        padding: 0 2.5rem 2.5rem
    }

    .profile-header {
        margin-top: -6rem
    }

    .profile-avatar {
        width: 12rem;
        height: 12rem
    }
}

.about-intro-text {
    color: var(--color-text-dim);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 0.1rem;
}

.about-intro-note {
    color: var(--color-text-500);
    font-size: .875rem
}

@media (min-width: 768px) {
    .about-intro-text {
        font-size: 1.2rem
    }
}

.about-skills {
    margin-top: 0
}

.about-skill-row {
    flex-direction: column;
    gap: .65rem;
    padding-block: .65rem;
    display: flex
}

.about-skill-row:first-child {
    padding-top: 0
}

.about-skill-category {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: min(100%, 35rem);
    box-sizing: border-box;
    background: var(--color-menu-bg);
    border: 1px solid var(--border-faint);
    border-radius: .5rem;
    /*padding: .35rem .9rem;*/
    padding: .35rem .75rem .35rem .55rem;
    color: var(--color-text-200);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4rem;
    margin: 0
}

.about-skill-category-dot {
    width: .7rem;
    height: .7rem;
    border-radius: .5rem;
    background: var(--color-amber);
    flex-shrink: 0
}

.about-skill-category-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex: 1 1 auto;
    min-width: 0
}

.about-skill-category-label:before,
.about-skill-category-label:after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-text-200)
}

.about-skill-items {
    flex-wrap: wrap;
    gap: .5rem;
    display: flex
}

.about-skill {
    align-items: center;
    gap: .5rem;
    background: var(--color-menu-bg);
    border: 1px solid var(--border-faint);
    border-radius: .5rem;
    padding: .35rem .75rem .35rem .55rem;
    color: var(--color-text-200);
    font-size: .8125rem;
    font-weight: 500;
    line-height: 1.4rem;
    display: inline-flex
}

.about-skill:before {
    content: "";
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    background: var(--_c);
    flex-shrink: 0
}

/* Competitions */
.timeline {
    position: relative;
    margin-top: 1.5rem
}

.timeline-item {
    --tl-gap: 3.5rem;
    --tl-lead: 0rem;
    display: grid;
    grid-template-columns: 1.75rem minmax(0, 1fr);
    grid-template-rows: var(--tl-lead) auto auto var(--tl-gap);
    column-gap: .25rem;
    row-gap: 0
}

.timeline-item:last-child {
    --tl-gap: 0rem
}

.timeline-item:first-child {
    --tl-lead: 3rem
}

.timeline-content {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: .75rem;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .7s cubic-bezier(.25, 1, .5, 1), transform .7s cubic-bezier(.25, 1, .5, 1)
}

.timeline-date {
    font-family: "Poppins", var(--font-sans);
    color: #fff;
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: .01em;
    white-space: nowrap;
    margin: 0 0 .625rem
}

.timeline-line {
    color: var(--color-text-dim);
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0
}

.timeline-sep {
    color: var(--color-text-500);
    margin: 0 .375em
}

.timeline-result {
    color: var(--color-text-muted)
}

.timeline-result.gold {
    color: var(--color-amber)
}

.timeline-media {
    position: relative;
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    max-width: 17rem;
    justify-self: center;
    margin-top: 2.25rem;
    aspect-ratio: 4 / 3;
    opacity: 0;
    transform: translateY(1rem);
    transition: opacity .7s cubic-bezier(.25, 1, .5, 1) .1s, transform .7s cubic-bezier(.25, 1, .5, 1) .1s
}

.timeline-media img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(.85) saturate(.9)
}

.timeline-media .main-border {
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff47;
    z-index: 3;
    pointer-events: none
}

.timeline-media .corner-top-left {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 30px;
    height: 30px;
    border-top: 1px solid #ffffffa6;
    border-left: 1px solid #ffffffa6;
    z-index: 4;
    pointer-events: none
}

.timeline-media .offset-one {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100%;
    height: 100%;
    border-right: 1px solid #ffffff40;
    border-bottom: 1px solid #ffffff40;
    z-index: 1;
    pointer-events: none
}

.timeline-media-label {
    position: absolute;
    top: -1.4rem;
    right: 0;
    color: #fff;
    font-family: "Poppins", var(--font-sans);
    font-size: .6875rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
    pointer-events: none
}

.timeline-rail-global {
    position: absolute;
    top: 0;
    bottom: 0;
    left: .875rem;
    width: 1px;
    background: var(--border-faint);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 3rem, #000 calc(100% - 3rem), transparent 100%)
}

.timeline-fill-global {
    position: absolute;
    inset: 0;
    background: var(--border-line);
    transform-origin: top;
    transform: scaleY(0);
    will-change: transform
}

.timeline-dot {
    grid-column: 1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
    margin-top: .4rem;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-strong);
    opacity: 0;
    transform: scale(.4);
    transition: opacity .45s, transform .45s cubic-bezier(.34, 1.56, .64, 1), border-color .45s, box-shadow .45s
}

.timeline-item.is-timeline-in .timeline-dot {
    opacity: 1;
    transform: scale(1);
    border-color: #fff;
    box-shadow: 0 0 0 4px #ffffff0f
}

.timeline-item.is-timeline-in .timeline-content,
.timeline-item.is-timeline-in .timeline-media {
    opacity: 1;
    transform: none
}

@media (min-width: 992px) {
    .timeline {
        margin-top: 2.5rem
    }

    .timeline-item {
        --tl-gap: 7.5rem;
        grid-template-columns: minmax(0, 1fr) 2.5rem minmax(0, 1fr);
        grid-template-rows: var(--tl-lead) auto var(--tl-gap);
        column-gap: 0;
        row-gap: 0;
        align-items: center
    }

    .timeline-item:first-child {
        --tl-lead: 4rem
    }

    .timeline-content {
        grid-column: 1;
        grid-row: 2;
        text-align: right;
        margin-right: 1.5rem;
        margin-bottom: 0
    }

    .timeline-item.is-flip .timeline-content {
        text-align: left
    }

    .timeline-date {
        font-size: 1.75rem
    }

    .timeline-line {
        font-size: 1.25rem
    }

    .timeline-media {
        grid-column: 3;
        grid-row: 2;
        max-width: 20rem;
        justify-self: start;
        margin-top: 0;
        margin-left: 1.5rem
    }

    .timeline-rail-global {
        left: 50%
    }

    .timeline-dot {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        margin-top: 0
    }

    .timeline-item.is-flip .timeline-content {
        grid-column: 3;
        margin-right: 0;
        margin-left: 1.5rem
    }

    .timeline-item.is-flip .timeline-media {
        grid-column: 1;
        justify-self: end;
        margin-left: 0;
        margin-right: 1.5rem
    }
}

/* Projects */
.project-card {
    position: relative;
    overflow: hidden;
    background-color: #151515;
    border: 1px solid var(--border-faint);
    transition: background-color .24s, transform .24s;
    height: 100%
}

.project-card:hover, .project-card:focus-within {
    background-color: #ffffff05;
    transform: translateY(-2px)
}

.project-card-media {
    position: relative;
    overflow: hidden;
    background: #171717;
    aspect-ratio: 16/9
}

.project-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .52s cubic-bezier(.22, 1, .36, 1), filter .26s
}

.project-card:hover .project-card-image, .project-card:focus-within .project-card-image {
    filter: brightness(.6);
    transform: scale(1.055)
}

.project-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: .75rem
}

.project-card-title {
    color: #fff;
    font-weight: 500;
    font-size: 1rem;
    margin: 0
}

.tag-chip {
    font-size: .75rem;
    color: var(--color-text-muted);
    border: 1px solid var(--border-faint);
    padding: .125rem .5rem;
    display: inline-block
}

.project-card-overlay {
    opacity: 0;
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    background: linear-gradient(#0a0a0a33, #0a0a0aeb 42%);
    min-height: 64%;
    transition: opacity .26s, transform .36s cubic-bezier(.22, 1, .36, 1);
    transform: translateY(28px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem
}

.project-card:hover .project-card-overlay, .project-card:focus-within .project-card-overlay {
    opacity: 1;
    transform: translateY(0)
}

.project-card-desc {
    color: var(--color-text-200);
    font-size: .875rem;
    line-height: 1.6;
    margin: 0
}

.project-card-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem
}

.project-card-actions > * {
    flex: 1;
    text-align: center;
    font-size: .875rem;
    padding: .5rem 0
}

.btn-outline-white {
    border: 1px solid #ffffff66;
    color: #fff;
    background: transparent;
    transition: border-color .2s
}

.btn-outline-white:hover {
    border-color: #fff;
    color: #fff
}

/* Setup */
.setup-media-frame {
    background: #ffffff05;
    border: 1px solid var(--border-faint);
    padding: .75rem
}

@media (min-width: 768px) {
    .setup-media-frame {
        padding: 1rem
    }
}

.setup-media {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 5/4
}

@media (min-width: 768px) {
    .setup-media {
        aspect-ratio: auto;
        height: 100%;
        min-height: 400px
    }
}

.setup-spec-heading {
    color: var(--color-text-dim);
    font-size: .875rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin: 0 0 1.25rem
}

.setup-spec-list {
    border-top: 1px solid var(--border-faint)
}

.setup-spec-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-faint)
}

.setup-spec-label {
    color: var(--color-text-muted);
    font-size: .875rem;
    flex-shrink: 0
}

.setup-spec-value {
    color: var(--color-text-200);
    font-size: .875rem;
    overflow-wrap: anywhere
}

@media (min-width: 576px) {
    .setup-spec-row {
        flex-direction: row;
        align-items: baseline
    }

    .setup-spec-label {
        width: 6rem
    }

    .setup-spec-value {
        text-align: right
    }
}

@media (max-width: 767px) {
    .setup-media-frame {
        background: #00000038
    }

    .setup-media {
        max-height: 22rem
    }

    .setup-spec-heading {
        font-size: .78rem
    }

    .setup-spec-row {
        padding-block: .68rem
    }

    .setup-spec-label {
        font-size: .75rem
    }

    .setup-spec-value {
        color: #e5e5e5;
        font-size: .82rem;
        line-height: 1.55
    }
}

/* Contact / Footer */
.contact-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin: 0
}

@media (min-width: 768px) {
    .contact-title {
        font-size: 3rem
    }
}

@media (min-width: 992px) {
    .contact-title {
        font-size: 4.5rem
    }
}

.contact-lead {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-top: 1rem
}

.contact-card {
    border: 1px solid var(--border-faint);
    background: #ffffff08;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    color: inherit;
    text-decoration: none;
    transition: background-color .3s, border-color .3s;
    cursor: pointer;
    height: 100%;
    width: 100%;
    text-align: left
}

.contact-card:hover {
    background: #ffffff0f;
    border-color: var(--border-strong)
}

.contact-card-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-text-muted)
}

.contact-card-hint {
    font-size: .75rem;
    color: var(--color-text-500);
    transition: color .2s
}

.contact-card:hover .contact-card-hint {
    color: var(--color-text-dim)
}

.contact-card-hint.copied {
    color: var(--color-green)
}

.contact-card-label {
    color: var(--color-text-500);
    font-size: .75rem;
    margin: 0 0 .25rem
}

.contact-card-value {
    color: var(--color-text-200);
    font-size: .875rem;
    margin: 0
}

.contact-arrow {
    width: 1rem;
    height: 1rem;
    color: var(--color-text-500);
    transition: transform .2s, color .2s
}

.contact-card:hover .contact-arrow {
    color: var(--color-text-dim);
    transform: translate(.25rem, -.25rem)
}

.footer-bottom {
    border-top: 1px solid var(--border-faint);
    padding: 1.5rem 0 0;
    margin-top: 4rem
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: .875rem;
    margin: 0
}

/* GitHub notice modal */
.notice-dialog {
    background: var(--color-surface);
    border: 1px solid #ffffff24;
    padding: 1.4rem 0;
    text-align: center;
    color: var(--color-text-bright);
    border-radius: 0
}

.notice-mark {
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-bottom: 1rem;
    display: inline-flex
}

.notice-mark span {
    background: var(--color-text-dim);
    opacity: .76;
    border-radius: 999px;
    width: .38rem;
    height: .38rem;
    display: inline-block
}

.notice-mark span:nth-child(2) {
    background: var(--color-text-muted)
}

.notice-mark span:nth-child(3) {
    background: #737373
}

.notice-title {
    color: #fff;
    margin-bottom: .55rem;
    font-size: 1.05rem;
    font-weight: 600
}

.notice-copy {
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
    font-size: .92rem;
    line-height: 1.65
}

.notice-button {
    color: #0a0a0a;
    cursor: pointer;
    background: #e5e5e5;
    border: 1px solid #ffffff2e;
    width: 100%;
    padding: .68rem 1rem;
    font-size: .92rem;
    font-weight: 600;
    transition: border-color .18s, background .18s;
    border-radius: 0
}

.notice-button:hover {
    background: #fff;
    border-color: #ffffff61
}

/* Scroll reveal */
.reveal-ready {
    opacity: 0;
    transition: opacity .7s, transform .7s;
    transform: translateY(20px)
}

.reveal-ready.is-revealed {
    opacity: 1;
    transform: translateY(0)
}

.reveal-delay-200 {
    transition-delay: .2s
}

/* Split-text title animation */
.split-title {
    overflow: hidden
}

.split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .6s cubic-bezier(.25, 1, .5, 1), transform .6s cubic-bezier(.25, 1, .5, 1);
    will-change: transform, opacity
}

.split-title.is-in .split-char {
    opacity: 1;
    transform: translateY(0)
}

/* Typewriter text */
.text-type {
    display: inline-block;
    white-space: nowrap
}

.hero-subtitle.text-type {
    display: block;
    text-align: left;
    margin-left: auto;
    margin-right: auto
}

@media (min-width: 992px) {
    .hero-subtitle.text-type {
        margin-left: 0
    }
}

.text-type__cursor {
    display: inline-block;
    margin-left: .15em;
    animation: textTypeBlink 1s ease-in-out infinite
}

.text-type__cursor--hidden {
    display: none
}

@keyframes textTypeBlink {
    0%, 100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

/* Keyframes */
@keyframes wiggle {
    0%, to {
        transform: rotate(0)
    }
    20% {
        transform: rotate(-2deg)
    }
    40% {
        transform: rotate(2deg)
    }
    60% {
        transform: rotate(-2deg)
    }
    80% {
        transform: rotate(2deg)
    }
}

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(16px)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes scrollCueIn {
    0% {
        opacity: 0;
        transform: translate(-50%, .8rem)
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0)
    }
}

@keyframes scrollCueFloat {
    0%, to {
        transform: translate(-50%, 0)
    }
    50% {
        transform: translate(-50%, .45rem)
    }
}

@keyframes heroTitlePartIn {
    0% {
        opacity: 0;
        transform: translateY(1rem)
    }
    to {
        opacity: 1;
        transform: translateY(0)
    }
}

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

    .wiggle, .fade-up, .hero-title-prefix, .hero-title-suffix, .hero-title-name {
        animation: none
    }

    .fade-up, .reveal-ready, .reveal-ready.is-revealed, .split-char {
        opacity: 1;
        transform: none
    }

    .section-heading-line {
        transition: none;
        transform: scaleX(1)
    }

    .name-char, .hamburger, .hamburger-line, .site-nav-link, .nav-text:after, .site-mobile-menu, .silk-background {
        transition: none
    }

    .project-card, .project-card-image, .project-card-overlay {
        transition: none
    }

    .hero-title-prefix, .hero-title-suffix, .hero-title-name {
        opacity: 1;
        transform: none
    }

    .project-card:hover, .project-card:focus-within, .project-card:hover .project-card-image, .project-card:hover .project-card-overlay {
        transform: none
    }
}

::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-thumb {
    background-color: #2b2f32;
}

::-webkit-scrollbar-track {
    background-color: transparent;
    width: 50px;
}