* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    overflow: hidden;
    background: #191919;
    color: #efedea;
    font-family: "Inter", sans-serif;
}

/* ─── Intro ──────────────────────────────────────────── */
#intro {
    position: fixed;
    inset: 0;
    z-index: 10;
    overflow: hidden;
    cursor: crosshair;
    transition: opacity 0.8s ease;
}

#intro.hidden {
    opacity: 0;
    pointer-events: none;
}

.intro__hightlight {
    font-family: "Oooh Baby", cursive;
    font-size: clamp(1rem, 2vw, 4rem);
}

.intro__hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    letter-spacing: -0.02em;
    color: #efedea;
    pointer-events: none;
    text-align: center;
}

.intro__hint span:last-child {
    color: #6b6966;
}

/* hidden image pool */
.medias img {
    width: 1px;
    height: 1px;
    position: absolute;
    top: 0;
    left: 0;
    visibility: hidden;
    pointer-events: none;
}

/* spawned images */
#intro img.spawned {
    width: 16vw;
    height: 16vw;
    position: absolute;
    object-fit: cover;
    border-radius: 6px;
    z-index: 5;
    pointer-events: none;
}

@media (max-width: 768px) {
    #intro img.spawned {
        width: 38vw;
        height: 38vw;
    }
}

/* ─── Content ────────────────────────────────────────── */
#content {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

#content.visible {
    display: block;
    opacity: 1;
}

/* ─── Horizontal scroll track ────────────────────────── */
.track {
    display: flex;
    align-items: center;
    height: 100vh;
    padding: 0 6vw;
    gap: 2vw;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.track::-webkit-scrollbar {
    display: none;
}

/* ─── Intro text card ────────────────────────────────── */
.track__intro {
    flex: 0 0 auto;
    width: 40vw;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-right: 2vw;
}

.intro__name {
    margin: 0;
    font-size: clamp(3.5rem, 5vw, 7rem);
    line-height: 0.92;
    letter-spacing: -0.02em;
    color: #efedea;
    font-weight: 600;
}

.intro__emoji {
    max-width: 5vw;
}

.intro__bio {
    margin: 0;
    font-size: clamp(1rem, 1.36vw, 1.5rem);
    line-height: 1.4;
    color: #6b6966;
    max-width: 35ch;
    font-weight: 300;
}

.intro__bio em {
    font-style: normal;
    color: #efedea;
}

/* ─── Project cards ──────────────────────────────────── */
.card {
    flex: 0 0 auto;
    transition: transform 0.4s ease;
}

.card img {
    display: block;
    width: auto;
    height: auto;
    max-height: 72vh;
    max-width: 60vw;
    border-radius: 8px;
    border: 32px solid rgba(255, 255, 255, 0.02);
    object-fit: contain;
}

.card video {
    display: block;
    width: auto;
    height: auto;
    max-height: 72vh;
    max-width: 60vw;
    border-radius: 8px;
    border: 32px solid rgba(255, 255, 255, 0.02);
    object-fit: contain;
}

.card:hover {
    transform: scale(1.02);
}

.card:last-child {
    margin-right: 6vw;
}

/* ─── About button ───────────────────────────────────── */
.about-btn {
    position: fixed;
    top: 2rem;
    right: 2.5rem;
    z-index: 20;
    background: none;
    border: none;
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
}

.about-btn:hover {
    color: #efedea;
}

/* ─── Overlay ────────────────────────────────────────── */
#about-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(25, 25, 25, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#about-overlay.visible {
    opacity: 1;
}

/* ─── About panel ────────────────────────────────────── */
#about-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 80vw;
    z-index: 40;
    background: #111111;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    display: flex;
    flex-direction: row;
}

#about-panel.open {
    transform: translateX(0);
}

/* ─── Image half ─────────────────────────────────────── */
.about-panel__image {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
}

.about-panel__image canvas {
    width: 75%;
    aspect-ratio: 1;
    height: auto;
    border-radius: 50%;
    overflow: hidden;
}

/* ─── Text half ──────────────────────────────────────── */
.about-panel__body {
    flex: 0 0 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 3rem;
    overflow-y: auto;
}

.about-panel__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: #6b6966;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    font-family: "Inter", sans-serif;
}

.about-panel__close:hover {
    color: #efedea;
}

.about-panel__content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
}

.about-panel__name {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #efedea;
}

.about-panel__bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #6b6966;
    font-weight: 300;
    max-width: 36ch;
}

.about-panel__companies {
    display: flex;
    flex-direction: column;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-panel__company {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.company__name {
    font-size: 1rem;
    font-weight: 400;
    color: #efedea;
}

.company__role {
    font-size: 0.8rem;
    font-weight: 300;
    color: #6b6966;
}

.about-panel__contact {
    display: inline-block;
    color: #efedea;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: opacity 0.2s ease;
}

.about-panel__contact:hover {
    opacity: 0.6;
}

/* ─── Scroll indicator ───────────────────────────────── */
#scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 6vw;
    right: 6vw;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#scroll-label {
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b6966;
    transition: opacity 0.3s ease;
}

#scroll-bar {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
}

#scroll-fill {
    height: 100%;
    width: 0%;
    background: #efedea;
    transition: width 0.1s linear;
}

/* ─── Scroll indicator color transitions ─────────────── */
#scroll-fill {
    transition: width 0.1s linear, background 0.4s ease;
}

#scroll-label {
    transition: opacity 0.15s ease, color 0.4s ease;
}

/* ─── Tube text ──────────────────────────────────────── */
.intro__name {
    /* overflow: hidden; */
}