/* ── Variables ── */
:root {
    --bg:      #ffffff;   
    --ink:     #000000;
    --muted:   #999999;
    --panel-bg:#b5836f;
    --font:    'Funnel Sans', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    overflow: hidden; /* no page scroll — only strip scrolls */
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-weight: 300;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
}

.nav-name {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--ink);
}

.nav-links {
    display: flex;
    gap: 12px;
}

.nav-links button {
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.01em;
    transition: opacity 0.15s;
}
.nav-links button:hover { opacity: 0.5; }

/* ── SCROLL STRIP ── */
#scrollStrip {
    position: fixed;
    top: 52px; bottom: 0; left: 0; right: 0;
    overflow-x: scroll;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
#scrollStrip::-webkit-scrollbar { display: none; }

#scrollTrack {
    display: flex;
    align-items: flex-end;
    gap: 0;
    height: 100%;
    padding: 0;
    width: max-content;
}

/* ── PROJECT ITEM ── */
.project-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    padding-bottom: 0px;
}

.proj-img-wrap {
    position: relative;
    width: auto;
    height: auto;
    background: #ffffff;
    overflow: hidden;
}

.proj-img-wrap img {
    width: 100%; height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
    filter: grayscale(15%);
}
.project-item:hover .proj-img-wrap img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

/* Fallback number when no image */
.proj-num {
    position: absolute;
    bottom: 12px; right: 16px;
    font-size: 4rem;
    font-weight: 300;
    color: rgba(0,0,0,0.12);
    line-height: 1;
    pointer-events: none;
}
.proj-img-wrap.no-img img { display: none; }
.proj-img-wrap:not(.no-img) .proj-num { display: none; }

/* Label above image */
.proj-label-top {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 8px;
}
.proj-title-top {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.2;
    white-space: nowrap;
}

/* Items align to bottom for image only */
.project-item { margin: 0; padding: 0; }

/* ── Panels (Bio, Contact) ── */
.panel {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.panel.active {
    pointer-events: all;
    opacity: 1;
}
.panel.active .panel-inner {
    transform: translateX(0);
}

.panel-inner {
    background: var(--panel-bg);
    width: 480px;
    max-width: 100vw;
    height: 100%;
    overflow-y: auto;
    position: relative;
    transform: translateX(40px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

/* Close button */
.close-btn {
    position: sticky;
    top: 0;
    align-self: flex-end;
    background: none;
    border: none;
    font-family: var(--font);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    cursor: pointer;
    padding: 22px 28px 0;
    transition: color 0.15s;
    z-index: 10;
}
.close-btn:hover { color: var(--ink); }

/* Panel content */
.panel-content {
    padding: 32px 40px 60px;
    flex: 1;
}

.panel-content h2 {
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 28px;
    color: var(--ink);
}

.panel-content p {
    font-size: 0.88rem;
    line-height: 1.85;
    color: var(--ink);
    opacity: 0.75;
    margin-bottom: 16px;
}

.panel-content a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    transition: border-color 0.15s;
}
.panel-content a:hover { border-color: var(--ink); }

/* Project panel layout */
.project-panel-content {
    padding: 0;
    display: flex;
    flex-direction: column;
}

.panel-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #b5c89a;
    overflow: hidden;
    flex-shrink: 0;
}
.panel-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(10%);
}

.panel-text {
    padding: 32px 40px 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.panel-text .proj-tag {
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.panel-text h2 {
    font-size: 1.3rem;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

.panel-text p {
    font-size: 0.86rem;
    line-height: 1.85;
    color: var(--ink);
    opacity: 0.7;
    margin: 0;
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.tech-list span {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid rgba(0,0,0,0.18);
    padding: 3px 10px;
}

.ext-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.3);
    width: fit-content;
    transition: border-color 0.15s, opacity 0.15s;
}
.ext-link:hover { opacity: 0.5; }

/* ── Information Page ── */
#informationPage {
    margin-top: 52px;
    height: calc(100vh - 52px);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.info-container {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#informationPage h1 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    letter-spacing: 0.02em;
}

.info-content {
    margin-bottom: 60px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--ink);
}

.info-content p {
    margin-bottom: 16px;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.info-image {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1;
    background: #f0f0f0;
    border: 1px solid #ddd;
    overflow: hidden;
}

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

/* ── Mobile ── */
@media (max-width: 600px) {
    nav { padding: 0 20px; }
    #scrollTrack { padding: 0; }
    .proj-img-wrap { width: 260px !important; height: calc(100vh - 52px) !important; }
    .project-item { margin: 0 !important; }
    .panel-inner { width: 100vw; }
    .panel-content { padding: 24px 24px 48px; }
    .panel-text { padding: 24px 24px 48px; }
}
