:root {
    --bg: #000000;
    --card-bg: #141417;
    --accent: #FF6B00;
    /* Deep warm orange */
    --accent-dim: rgba(255, 107, 0, 0.15);
    --text: #E0E0E0;
    --text-muted: #808080;
    --glass: rgba(10, 10, 12, 0.75);
    --border: rgba(255, 255, 255, 0.08);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);

    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
}

/* ── Reset ─────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow: hidden;
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    height: 100%;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    letter-spacing: -0.02em;
}

/* ── Header ─────────────────────────────── */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 8%;
    background: rgba(10, 10, 12, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text);
}

.logo span {
    color: var(--accent);
}

nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-transform: uppercase;
    transition: color 0.3s ease, letter-spacing 0.3s ease;
}

nav a:hover {
    color: var(--accent);
    letter-spacing: 0.08em;
}

/* ── Scroll Progress Bar ────────────────── */
.scroll-indicator {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--border);
    z-index: 999;
}

.scroll-track {
    width: 100%;
    background: var(--accent);
    height: 0%;
    transition: height 0.1s ease;
}

/* ── Wave background canvas (desktop only) ─ */
#wave-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

@media (hover: none), (pointer: coarse) {
    #wave-bg { display: none; }
}

/* ── Snap Container ─────────────────────── */
.snap-container {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.snap-container::-webkit-scrollbar {
    display: none;
}

/* ── Snap Panels (base) ─────────────────── */
.snap-panel {
    scroll-snap-align: start;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* ── Hero Panel ─────────────────────────── */
.panel-hero {
    padding: 0 10%;
}

.panel-content--hero {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.panel-content--hero h1 {
    font-size: clamp(3.5rem, 10vw, 7.5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 800;
    min-height: 1.8em;
    /* Prevents layout shift */
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.typewriter-cursor {
    display: inline-block;
    width: 0.08em;
    height: 0.85em;
    background: var(--accent);
    margin-left: 0.1em;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    from,
    to {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.panel-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 620px;
}

.panel-hero p strong {
    color: var(--text);
}

.hero-links {
    display: flex;
    gap: 1.25rem;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    text-decoration: none;
    background: var(--accent);
    color: #0A0A0C;
    border: 1px solid var(--accent);
    letter-spacing: 0.05em;
    transition: all 0.3s var(--ease);
}

.hero-btn:hover {
    background: transparent;
    color: var(--accent);
}

.hero-btn--ghost {
    background: transparent;
    color: var(--accent);
}

.hero-btn--ghost:hover {
    background: var(--accent);
    color: #0A0A0C;
}

.panel-scroll-hint {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    animation: float 2s ease-in-out infinite;
    z-index: 10;
    transition: opacity 0.4s ease;
}

.panel-scroll-hint.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* ── Site Footer ────────────────────────── */
.site-footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    opacity: 0.6;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-family: var(--font-mono);
    letter-spacing: 0.05em;
    opacity: 0.7;
}


/* ── Project Panels — two-column split ──── */
.panel-project {
    display: grid;
    grid-template-columns: 38% 62%;
    align-items: stretch;
    overflow: hidden;
}

/* ── Left: Info Column ──────────────────── */
.project-info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    padding: 5rem 4% 5rem 8%;
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.project-meta {
    display: flex;
    gap: 2rem;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.project-category {
    color: var(--accent);
}

.project-number {
    color: var(--text-muted);
}

.project-tags-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--accent);
    border: 1px solid rgba(255, 107, 0, 0.5);
    padding: 0.15rem 0.5rem;
}

.project-title {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    color: var(--text);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.project-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.project-desc strong {
    color: var(--text);
}

.project-role-chip {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid var(--accent);
    padding: 0.3rem 0.75rem;
    margin-top: 0.25rem;
    width: fit-content;
    letter-spacing: 0.04em;
}

/* ── Right: Media Column — Card Stack ───── */
.project-media-col {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5% 6%;
    perspective: 1000px;
}

/* The stack scene — holds all cards absolutely */
.media-stack {
    position: relative;
    width: 100%;
    max-width: min(var(--stack-native-width, 800px), calc(var(--stack-aspect, 1.5) * 700px));
    aspect-ratio: var(--stack-aspect, 1.5);
    /* Default aspect ratio */
    transform-style: preserve-3d;
    transition: aspect-ratio 0.6s ease, max-width 0.6s ease;
}

/* Individual card */
.media-card {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    will-change: transform, opacity;
    transform-origin: center bottom;
}

/* Darkening overlay for background cards */
.media-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    opacity: var(--overlay-opacity, 0);
    pointer-events: none;
    transition: opacity 0.6s ease;
    z-index: 2;
}

.media-card video,
.media-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}


/* ── Mobile Layout Adjustments ──────────── */
@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    header {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 5%;
    }

    nav ul {
        gap: 1.25rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .panel-content--hero h1 {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
    }

    .panel-hero p {
        font-size: clamp(0.78rem, 3.5vw, 0.95rem);
        line-height: 2.4;
    }

    .panel-project {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-start;
        /* Anchor to bottom */
        align-items: center;
        overflow-y: auto;
    }

    .project-info-col {
        padding: 0rem 8% 4rem 8%;
        /* Reduced top padding to keep text low */
        border-right: none;
        width: 100%;
        /* Tidy layout for mobile */
        align-items: center;
        text-align: center;
    }

    .project-tags-row {
        justify-content: center;
    }

    .project-meta {
        justify-content: center;
    }

    .project-media-col {
        width: 100%;
        padding: 5% 0;
        /* Simpler padding */
        flex: 1;
        /* Take up all available vertical space above the text */
        display: flex;
        align-items: center;
        /* Vertically center carousel */
        justify-content: center;
    }

    .media-stack {
        width: 85%;
        /* Let carousels take up more relative space on mobile */
    }

    /* ── About panel mobile ── */
    .panel-about {
        overflow-x: hidden;
        overflow-y: auto;
        align-items: flex-start;
        flex-direction: column;
    }

    .panel-about .about-split {
        display: flex;
        flex-direction: column;
        width: 100%;
        height: auto;
        flex: none;
    }

    .panel-about .about-text-col {
        width: 100%;
        padding: 5rem 8% 2rem;
        border-right: none;
        border-bottom: 1px solid var(--border);
        justify-content: flex-start;
    }

    .panel-about .about-photos-col {
        width: 100%;
        height: 45vh;
        overflow: hidden;
    }

    .panel-about .about-masonry {
        columns: 3;
        column-gap: 4px;
        height: 100%;
    }
}


/* ── About Panel ────────────────────────── */
.panel-about {
    align-items: stretch;
    flex-direction: column;
}

.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex: 1;
    width: 100%;
}

.about-text-col {
    padding: 8rem 6% 5rem 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    border-right: 1px solid var(--border);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--accent);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    display: inline-block;
}

.about-text-col p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.75;
}

.about-text-col p strong {
    color: var(--text);
}

.about-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.about-photos-col {
    overflow: hidden;
    position: relative;
}

.about-masonry {
    columns: 3;
    column-gap: 4px;
    height: 100%;
    overflow: hidden;
}

.masonry-img {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.85);
    transition: filter 0.6s ease;
    break-inside: avoid;
}

.masonry-img:hover {
    filter: grayscale(0%) brightness(1);
}

/* ── Photography Panel ──────────────────── */
.panel-photography {
    overflow: hidden;
    padding: 0;
}

.photo-gallery-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 3rem 2%;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.photo-masonry {
    columns: 4;
    column-gap: 6px;
}

.photo-masonry img {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    break-inside: avoid;
    filter: grayscale(15%);
    transition: filter 0.3s ease;
}

.photo-masonry img:hover {
    filter: grayscale(0%);
}

@media (max-width: 768px) {
    .photo-masonry {
        columns: 2;
    }
}


