/* ============================================
   NILS KINGUE — PORTFOLIO
   Theme: Cinematic Black/White, Metallic Accents
   ============================================ */

/* --- Custom Fonts --- */
@font-face {
    font-family: 'MadeFor Display';
    src: url('./font/madefor-display.var.original.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'DIN Next';
    src: url('./font/din-next-w01-light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('./font/helveticaneuew01-45ligh.latin.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Druk Wide';
    src: url('./font/Druk/Druk Wide Family/DrukWide-Medium-Trial.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Druk Wide';
    src: url('./font/Druk/Druk Wide Family/DrukWide-Bold-Trial.otf') format('opentype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Druk Wide';
    src: url('./font/Druk/Druk Wide Family/DrukWide-Heavy-Trial.otf') format('opentype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Druk Wide';
    src: url('./font/Druk/Druk Wide Family/DrukWide-Super-Trial.otf') format('opentype');
    font-weight: 900;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --black: #000000;
    --white: #ffffff;
    --off-white: #f0f0f0;
    --gray-light: #a0a0a0;
    --gray-mid: #666666;
    --gray-dark: #1a1a1a;

    /* Vibrant Blue */
    --accent-blue: #00a2ff;
    --accent-blue-light: #40bfff;
    --accent-blue-glow: rgba(0, 162, 255, 0.5);
    --accent-blue-subtle: rgba(0, 162, 255, 0.1);

    /* Typography */
    --font-display: 'Plus Jakarta Sans', 'MadeFor Display', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --header-height: 56px;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
    overscroll-behavior-x: none;
}

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: clip;
    overscroll-behavior-x: none;
    max-width: 100vw;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

button {
    cursor: none;
}

/* --- Custom Cursor --- */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 16.5px;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-1.5px, -1.5px);
    transition: transform 0.08s ease-out, opacity 0.2s ease;
    will-change: transform;
    opacity: 0;
}

/* Hide custom cursor on touch/mobile devices */
@media (hover: none) and (pointer: coarse) {
    .cursor {
        display: none !important;
    }
    body, a, button, .glass-nk, .detail-content video,
    .deck-pannable, .zoom-viewer, .zoom-viewer img,
    .hero-letter, .interactive {
        cursor: auto !important;
    }
}

.cursor::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 249 273' height='22' width='20'%3E%3Cg%3E%3Cpath stroke-width='2' stroke='%23000000' fill='%23ffffff' d='m1.81 20.046 39.667 238.391c2.237 13.443 19.18 18.114 27.99 7.717l57.9-68.335a30 30 0 0 1 14.345-9.364l94.457-28.064c13.362-3.97 15.611-21.939 3.639-29.079L25.788 3.678C14.086-3.3-.427 6.607 1.81 20.046Z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

body.cursor-ready .cursor {
    opacity: 1;
}

/* Cursor hover state — scale up + vibrant blue on interactive elements */
.cursor.hovering {
    transform: translate(-1.5px, -1.5px) scale(1.3);
}

.cursor.hovering::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 249 273' height='22' width='20'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0%25' stop-color='%23ffffff'/%3E%3Cstop offset='55%25' stop-color='%2360b8ff'/%3E%3Cstop offset='100%25' stop-color='%230070cc'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath stroke-width='2' stroke='%23003d6b' fill='url(%23g)' d='m1.81 20.046 39.667 238.391c2.237 13.443 19.18 18.114 27.99 7.717l57.9-68.335a30 30 0 0 1 14.345-9.364l94.457-28.064c13.362-3.97 15.611-21.939 3.639-29.079L25.788 3.678C14.086-3.3-.427 6.607 1.81 20.046Z'/%3E%3C/svg%3E");
}

/* --- Header Glow --- */
.header-glow {
    position: fixed;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 500px;
    background: radial-gradient(
        ellipse 70% 65% at 50% 10%,
        rgba(0, 162, 255, 0.5) 0%,
        rgba(0, 162, 255, 0.3) 20%,
        rgba(0, 162, 255, 0.15) 40%,
        rgba(0, 162, 255, 0.05) 60%,
        transparent 80%
    );
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    animation: glowFadeIn 2s ease-out 0.6s forwards;
    filter: blur(20px);
}

@keyframes glowFadeIn {
    0% {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

/* --- Header --- */
.header {
    position: fixed;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(-20px);
    animation: headerSlideIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

@keyframes headerSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 50%;
    min-width: 700px;
    height: var(--header-height);
    padding: 0 8px 0 28px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.07) 0%,
        rgba(255, 255, 255, 0.025) 50%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.14);
    border-bottom-color: rgba(255, 255, 255, 0.03);
    border-radius: 9999px;
    backdrop-filter: blur(40px) saturate(1.4) brightness(0.85);
    -webkit-backdrop-filter: blur(40px) saturate(1.4) brightness(0.85);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.06) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.2) inset,
        0 8px 32px rgba(0, 0, 0, 0.49),
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 0.5px rgba(255, 255, 255, 0.05);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Header ready state — animation done, now uses transitions */
.header.header-ready {
    animation: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Header exit/enter animation for SPA transitions */
.header.header-hidden {
    opacity: 0 !important;
    transform: translateY(-80px) !important;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
    pointer-events: none;
}

.header-glow.header-glow-ready {
    animation: none;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.header-glow.glow-hidden {
    opacity: 0 !important;
    transform: translateX(-50%) translateY(-60px) !important;
    transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.header-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--white);
    white-space: nowrap;
    transition: opacity 0.3s ease;
}

.header-name:hover {
    opacity: 0.7;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    position: relative;
}

.nav-highlight {
    position: absolute;
    height: 34px;
    border-radius: 9999px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.2);
    border-bottom-color: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px) saturate(1.4) brightness(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.4) brightness(1.15);
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
        0 -1px 0 0 rgba(0, 0, 0, 0.12) inset,
        0 2px 8px rgba(0, 0, 0, 0.25);
    transition: left 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.25s ease;
    pointer-events: none;
    opacity: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 0;
}

.nav-highlight.visible {
    opacity: 1;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    padding: 8px 16px;
    border-radius: 9999px;
    transition: color 0.25s ease;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.header-cta {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 9999px;
    white-space: nowrap;
    background: linear-gradient(135deg, #60ccff 0%, var(--accent-blue) 50%, #0080dd 100%);
    color: var(--white);
    letter-spacing: -0.01em;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Light sweep / shine effect */
.header-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(255, 255, 255, 0.5) 45%,
        rgba(255, 255, 255, 0.7) 50%,
        rgba(255, 255, 255, 0.5) 55%,
        transparent 80%
    );
    animation: shineSweep 6s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }
    15% {
        left: 150%;
    }
    100% {
        left: 150%;
    }
}

.header-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 24px rgba(0, 162, 255, 0.4), 0 0 60px rgba(0, 162, 255, 0.15);
}

/* --- Hero --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--black);
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Subtle vignette for cinematic feel */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 80% 80% at 50% 50%,
        transparent 30%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-location {
    position: absolute;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--white);
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-location.loc-visible {
    opacity: 1;
}

.hero-subtitle {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 900;
    font-size: clamp(18px, 3vw, 50px);
    letter-spacing: 0.15em;
    line-height: 1;
    color: var(--white);
    text-transform: uppercase;
    margin-bottom: 2px;
    margin-left: 4px;
    opacity: 0;
    position: relative;
}

.hero-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 900;
    font-size: clamp(50px, 8vw, 140px);
    letter-spacing: 0.02em;
    line-height: 0.9;
    color: var(--white);
    text-transform: uppercase;
    opacity: 0;
    position: relative;
}

/* Sand animation is handled via JS canvas overlay */
.hero-title.sand-revealed,
.hero-subtitle.sand-revealed {
    opacity: 1;
}

/* Per-letter proximity thinning — stroke erosion */
.hero-letter {
    display: inline-block;
    cursor: none;
    -webkit-text-stroke-color: #000000;
    -webkit-text-stroke-width: 0px;
    paint-order: fill stroke;
}

/* --- Glass NK Monogram --- */
.glass-nk {
    position: absolute;
    z-index: 5;
    pointer-events: auto;
    cursor: none;

    /* No text — just the glass panel */
    font-size: 0;
    color: transparent;

    /* No background tint */

    /* Glass dimensions — set dynamically by JS to wrap around the signature */
    border-radius: 20px;

    /* Glass backdrop — minimal blur */
    backdrop-filter: blur(0.5px);
    -webkit-backdrop-filter: blur(0.5px);

    /* Light catches — strong top-left light source */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top-color: rgba(255, 255, 255, 0.25);
    border-left-color: rgba(255, 255, 255, 0.28);
    border-bottom-color: rgba(255, 255, 255, 0.04);
    border-right-color: rgba(255, 255, 255, 0.06);

    /* 3D depth: soft shadow + inner highlights (blurred insets to avoid crack lines) */
    box-shadow:
        0 1px 3px 0 rgba(255, 255, 255, 0.08) inset,
        1px 0 3px 0 rgba(255, 255, 255, 0.10) inset,
        0 -1px 3px 0 rgba(0, 0, 0, 0.2) inset,
        -1px 0 3px 0 rgba(0, 0, 0, 0.15) inset,
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.35),
        0 0 0 0.5px rgba(255, 255, 255, 0.08);

    /* 3D tilt */
    transform: translate(-50%, -50%) perspective(800px) rotateY(-3deg) rotateX(2deg);

    /* Entrance */
    opacity: 0;
    animation: glassAppear 1.5s cubic-bezier(0.16, 1, 0.3, 1) 2.2s forwards;
}

/* Specular highlight sweep — bright diagonal glint */
.glass-nk::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.05) 20%,
        transparent 40%,
        transparent 60%,
        rgba(255, 255, 255, 0.03) 80%,
        rgba(255, 255, 255, 0.08) 100%
    );
    pointer-events: none;
}


@keyframes glassAppear {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) perspective(800px) rotateY(-6deg) rotateX(4deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) perspective(800px) rotateY(-3deg) rotateX(2deg) scale(1);
    }
}

/* --- Signature --- */
.hero-signature {
    display: block;
    visibility: hidden;
    width: 140px;
    margin-left: auto;
    margin-right: 0;
    margin-top: -5px;
    transform: rotate(-5deg);
    opacity: 0.9;
    mix-blend-mode: screen;
    pointer-events: none;
}

.hero-signature.sig-visible {
    visibility: visible;
}

/* ============================================
   ABOUT ME SECTION
   ============================================ */
.about {
    position: relative;
    width: 100%;
    background: var(--black);
    padding: 140px 40px 100px;
}

.about-inner {
    max-width: 640px;
    margin: 0 auto;
}

/* Title — metallic vibrant purple gradient */
.about-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 5vw, 56px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 48px;
    background: linear-gradient(
        135deg,
        #bf6aff 0%,
        #e2b8ff 18%,
        #9333ea 32%,
        #7c3aed 48%,
        #d8a0ff 58%,
        #a855f7 72%,
        #7c3aed 85%,
        #bf6aff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aboutGradientShift 8s ease-in-out infinite alternate;
}

@keyframes aboutGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Body text — DIN Next light for editorial readability */
.about-body {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: 0.01em;
}

.about-body p {
    margin-bottom: 24px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

/* Lycée Jacques Decour link */
.about-link {
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    transition: border-color 0.3s ease, color 0.3s ease;
}

.about-link:hover {
    border-bottom-color: var(--white);
    color: var(--white);
}

/* ============================================
   WORKS SECTION
   ============================================ */
.works {
    position: relative;
    width: 100%;
    background: var(--black);
    padding: 120px 0 100px;
    overflow: hidden;
}

/* --- Works Intro --- */
.works-intro {
    max-width: 640px;
    margin: 0 auto 80px;
    padding: 0 40px;
}

.works-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4.5vw, 50px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 32px;
    background: linear-gradient(
        135deg,
        #60ccff 0%,
        #b8e6ff 18%,
        #00a2ff 32%,
        #0070cc 48%,
        #8ed5ff 58%,
        #00a2ff 72%,
        #0070cc 85%,
        #60ccff 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: worksGradientShift 8s ease-in-out infinite alternate;
}

@keyframes worksGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.works-desc {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(14px, 1.1vw, 17px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.01em;
}

/* --- Card List --- */
.works-list {
    display: flex;
    flex-direction: column;
    gap: 120px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

/* --- Card Base — side-by-side layout --- */
.work-card {
    display: flex;
    align-items: flex-start;
    gap: 48px;
    will-change: transform;
    position: relative;
    z-index: 2;
}

/* Alternate image/text sides */
.work-card:nth-child(even) {
    flex-direction: row-reverse;
}

/* --- Card Visual (image + number) --- */
a.work-card-visual,
.work-card-visual {
    flex-shrink: 0;
    width: clamp(320px, 38vw, 520px);
    display: block;
    text-decoration: none;
    color: inherit;
}

.work-card-num {
    display: block;
    text-align: right;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

/* --- Card Media --- */
.work-card-media {
    position: relative;
    z-index: 2;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gray-dark);
}

.work-card-media video,
.work-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Grain overlay on cards (disabled) */
.work-card-media::after {
    content: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0.18;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: overlay;
}

/* Hover zoom on media */
.work-card:hover .work-card-media video,
.work-card:hover .work-card-media img {
    transform: scale(1.05);
}

/* --- Card Text --- */
.work-card-text {
    flex: 1;
    min-width: 0;
    padding-top: 28px;
}

.work-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 16px;
}

.work-card-title {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.work-card-date {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
    flex-shrink: 0;
}

.work-card-desc {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(13px, 1vw, 15px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.65);
    letter-spacing: 0.01em;
}

.work-card-learnings {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(12px, 0.9vw, 14px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 14px;
    font-style: italic;
}

/* --- Minor Experiences --- */
.works-minor {
    max-width: 640px;
    margin: 100px auto 0;
    padding: 0 60px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 48px;
}

.works-minor-item {
    position: relative;
    z-index: 2;
}

.works-minor-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 6px;
}

.works-minor-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: -0.01em;
}

.works-minor-date {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

.works-minor-desc {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.01em;
}

.works-minor-link {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.works-minor-link:hover {
    color: rgba(255, 255, 255, 0.8);
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

/* --- Noise Overlay (per-section — keeps grain off images/videos) --- */
.hero::before,
.about::after,
.works::after,
.additional::after,
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
}

.hero::before { z-index: 4; }
.about::after, .works::after, .additional::after, .site-footer::after { z-index: 1; }

/* --- Selection --- */
::selection {
    background: var(--accent-blue);
    color: var(--black);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================
   DETAIL VIEW (SPA transition)
   ============================================ */

/* Hidden by default */
.detail-view {
    display: none;
    position: relative;
    background: var(--black);
    min-height: 100vh;
    overflow-x: clip;
}

.detail-view.active {
    display: block;
    padding-top: 360px; /* space below fixed banner, removed dynamically after collapse */
}

/* Grain on detail-view background — visible immediately during cover shrink */
.detail-view::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    z-index: 0;
}

/* --- Video overlay (stays fixed throughout: card → fullscreen → banner) --- */
#taz-overlay,
#deck-overlay,
#euw-overlay,
#both-overlay {
    position: fixed;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 50;
}

#taz-overlay video,
#deck-overlay video,
#euw-overlay video,
#both-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grain on overlay */
#taz-overlay .taz-grain,
#deck-overlay .taz-grain,
#euw-overlay .taz-grain,
#both-overlay .taz-grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: overlay;
    z-index: 3;
}

/* Dark gradient (fades in during collapse) */
#taz-overlay .taz-gradient,
#deck-overlay .taz-gradient,
#euw-overlay .taz-gradient,
#both-overlay .taz-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Banner info (fades in after collapse) */
#taz-overlay .taz-info,
#deck-overlay .taz-info,
#euw-overlay .taz-info,
#both-overlay .taz-info {
    position: absolute;
    bottom: 32px;
    left: 48px;
    right: 48px;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

#taz-overlay .taz-info.visible,
#deck-overlay .taz-info.visible,
#euw-overlay .taz-info.visible,
#both-overlay .taz-info.visible {
    opacity: 1;
    transform: translateY(0);
}

#taz-overlay .taz-info-title,
#deck-overlay .taz-info-title,
#euw-overlay .taz-info-title,
#both-overlay .taz-info-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1;
    display: flex;
    align-items: center;
}

#taz-overlay .taz-info-sub,
#deck-overlay .taz-info-sub,
#euw-overlay .taz-info-sub,
#both-overlay .taz-info-sub {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

.taz-info-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 16px;
    margin-right: 18px;
}

/* --- Back button --- */
.detail-back {
    position: fixed;
    top: 28px;
    left: 28px;
    z-index: 100;
    font-size: 0;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: background 0.3s ease, transform 0.3s ease, color 0.3s ease;
    cursor: none;
    text-decoration: none;
}

.detail-back::before,
.detail-back::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    top: 50%;
    left: 50%;
}

.detail-back::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.detail-back::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.detail-back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    transform: scale(1.08);
}

/* --- Detail banner (video → collapsed) --- */
.detail-banner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.detail-banner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Grain on banner */
.detail-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 150px 150px;
    mix-blend-mode: overlay;
}

/* Dark gradient overlay on banner */
.detail-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.detail-banner.collapsed .detail-banner-overlay {
    opacity: 1;
}

/* Banner info */
.detail-banner-info {
    position: absolute;
    bottom: 32px;
    left: 48px;
    right: 48px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-banner-info.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-banner-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(28px, 4vw, 48px);
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.02em;
    line-height: 1;
}

.detail-banner-sub {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    letter-spacing: 0.02em;
}

/* --- Detail content --- */
.detail-content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease 0.3s, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
    padding: 80px 40px 120px;
    max-width: 800px;
    margin: 0 auto;
}

.detail-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.detail-content h3 {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 700;
    font-size: clamp(18px, 2.5vw, 28px);
    text-transform: uppercase;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 24px;
}

.detail-content p {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(15px, 1.15vw, 18px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}

.detail-content .section-block {
    margin-bottom: 64px;
}

/* --- Tazmania Project Page --- */

.taz-section {
    margin-bottom: 40px;
}

/* Story row — text + media side by side */
.taz-story-row {
    display: flex;
    align-items: center;
    gap: 48px;
    margin: 56px 0;
}

.taz-story-row.reverse {
    flex-direction: row-reverse;
}

.taz-story-text {
    flex: 1;
    min-width: 0;
}

.taz-story-media {
    flex: 1;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.taz-story-media img {
    width: 100%;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Link style */
.taz-link {
    color: #00a2ff;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 162, 255, 0.3);
    transition: border-color 0.3s ease;
}

.taz-link:hover {
    border-bottom-color: #00a2ff;
}

/* Scratch-to-reveal */
.taz-reveal {
    position: relative;
    z-index: 2;
    margin: 40px 0;
    padding: 36px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: none;
    overflow: hidden;
}

.taz-reveal-text {
    margin-bottom: 0 !important;
}

.taz-reveal-hint {
    display: none;
}

.taz-reveal canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    border-radius: inherit;
    cursor: none;
}

/* "See more" link on card */
.work-card-more {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.4s ease;
    cursor: none;
    position: relative;
    padding-bottom: 4px;
}

.work-card-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.work-card-more:hover {
    color: rgba(255, 255, 255, 0.6);
}

.work-card-more:hover::after {
    width: 100%;
}

/* Icon next to card title */
.work-card-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 4px;
}

.work-card-icon--white {
    filter: brightness(0) invert(1);
}

/* Challenges italic note */
.taz-challenges-note {
    font-style: italic !important;
    color: rgba(255, 255, 255, 0.28) !important;
    margin-top: 56px !important;
    font-size: clamp(12px, 0.95vw, 14px) !important;
    line-height: 1.85 !important;
}

/* Lightbox */
.taz-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.taz-lightbox.visible {
    opacity: 1;
}

.taz-lightbox img {
    max-width: 80vw;
    max-height: 75vh;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    transform: scale(0.88);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.taz-lightbox.visible img {
    transform: scale(1);
}

/* Make detail images clickable */
.taz-media-grid img,
.taz-media-full img,
.taz-story-media img {
    cursor: none;
    transition: transform 0.4s ease;
}

/* Mania algo title */
.taz-algo-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 64px);
    text-transform: uppercase;
    text-align: center;
    margin: 56px 0 40px;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #60ccff 0%, #00a2ff 50%, #0070cc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* PnL chart */
.taz-pnl-chart {
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.taz-pnl-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Full-width media blocks */
.taz-media-full {
    position: relative;
    z-index: 2;
    margin: 48px 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.taz-media-full img,
.taz-media-full video {
    width: 100%;
    display: block;
}

/* Media grid (backtest images) */
.taz-media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 48px 0;
    position: relative;
    z-index: 2;
}

.taz-media-grid img,
.taz-media-grid video {
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.4s ease;
    cursor: none;
}

.taz-media-grid img:hover {
    transform: scale(1.03);
}

/* Footer */
.taz-footer {
    margin-top: 80px;
    padding: 48px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.taz-footer-inner {
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.03em;
}

.taz-footer-sep {
    margin: 0 10px;
    opacity: 0.4;
}

/* --- Deckflow specifics --- */

/* Title + logo row */
.deck-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 56px 0 32px;
}

.deck-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 10px;
}

/* Contract address */
.deck-contract {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

.deck-contract-addr {
    font-family: 'SFMono-Regular', 'Consolas', 'Liberation Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    user-select: all;
    word-break: break-all;
}

/* Pannable / zoomable large image */
.deck-pannable {
    max-height: 400px;
    overflow: hidden;
    cursor: none;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 2;
    contain: layout paint;
}

.deck-pannable-img {
    width: 100%;
    display: block;
    border-radius: 0 !important;
    object-fit: cover;
    max-height: 400px;
}

/* --- Deckflow Image Carousel (3D, like film carousel) --- */
.deck-carousel {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 420px;
    perspective: 1200px;
    overflow: visible;
    margin: 40px 0;
}

.deck-carousel-slide {
    position: absolute;
    width: 560px;
    height: 350px;
    left: 50%;
    top: 30px;
    margin-left: -280px;
    border-radius: 14px;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.7s ease,
                opacity 0.7s ease;
}

.deck-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Active center slide — clickable for zoom */
.deck-carousel-slide.deck-active {
    transform: translateZ(0) rotateY(0);
    z-index: 3;
    filter: none;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
}

/* Left slide */
.deck-carousel-slide.deck-left {
    transform: translateX(-340px) translateZ(-120px) rotateY(25deg) scale(0.85);
    z-index: 1;
    filter: blur(3px) brightness(0.5);
    opacity: 0.6;
    pointer-events: auto;
    cursor: pointer;
}

/* Right slide */
.deck-carousel-slide.deck-right {
    transform: translateX(340px) translateZ(-120px) rotateY(-25deg) scale(0.85);
    z-index: 1;
    filter: blur(3px) brightness(0.5);
    opacity: 0.6;
    pointer-events: auto;
    cursor: pointer;
}

/* Hidden back slides */
.deck-carousel-slide.deck-back {
    transform: translateZ(-250px) scale(0.6);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* Nav arrows */
.deck-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.deck-carousel-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.deck-carousel-nav--left {
    left: calc(50% - 330px);
}

.deck-carousel-nav--right {
    right: calc(50% - 330px);
}

/* Responsive — tablet */
@media (max-width: 768px) {
    .deck-carousel {
        height: 300px;
    }
    .deck-carousel-slide {
        width: 380px;
        height: 240px;
        margin-left: -190px;
        top: 20px;
    }
    .deck-carousel-slide.deck-left {
        transform: translateX(-220px) translateZ(-100px) rotateY(20deg) scale(0.8);
    }
    .deck-carousel-slide.deck-right {
        transform: translateX(220px) translateZ(-100px) rotateY(-20deg) scale(0.8);
    }
    .deck-carousel-nav--left {
        left: calc(50% - 220px);
    }
    .deck-carousel-nav--right {
        right: calc(50% - 220px);
    }
    .deck-carousel-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* Responsive — small phone */
@media (max-width: 480px) {
    .deck-carousel {
        height: 240px;
    }
    .deck-carousel-slide {
        width: 280px;
        height: 175px;
        margin-left: -140px;
        top: 15px;
    }
    .deck-carousel-slide.deck-left {
        transform: translateX(-160px) translateZ(-80px) rotateY(18deg) scale(0.78);
    }
    .deck-carousel-slide.deck-right {
        transform: translateX(160px) translateZ(-80px) rotateY(-18deg) scale(0.78);
    }
    .deck-carousel-nav--left {
        left: calc(50% - 155px);
    }
    .deck-carousel-nav--right {
        right: calc(50% - 155px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .deck-carousel-nav, .deck-carousel-slide {
        cursor: auto;
    }
    .deck-carousel-slide.deck-active {
        cursor: pointer;
    }
}

/* Video cursor fix */
.detail-content video {
    cursor: none;
}

video:fullscreen,
video:-webkit-full-screen {
    cursor: auto !important;
}

/* White variant for algo titles */
.taz-algo-title--white {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--white) !important;
    background-clip: initial !important;
}

/* Zoom viewer */
.zoom-viewer {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    cursor: none;
    overflow: hidden;
    contain: layout paint;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.zoom-viewer.visible {
    opacity: 1;
}

.zoom-viewer img {
    position: absolute;
    cursor: none;
    transform-origin: 0 0;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    backface-visibility: hidden;
}

.zoom-viewer-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: opacity 0.5s ease;
    white-space: nowrap;
}

.zoom-viewer-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-top-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: zoomSpin 0.7s linear infinite;
}

@keyframes zoomSpin {
    to { transform: rotate(360deg); }
}

/* --- Domain subtitle on cards --- */
.work-card-domain {
    display: block;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

/* --- Euwshop / Bothlow overlay image --- */
#euw-overlay img,
#both-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Euwshop specifics --- */

/* Video notice */
.euw-video-notice {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-top: 12px;
    font-style: italic;
    letter-spacing: 0.03em;
    position: relative;
    z-index: 2;
}

/* Globe container */
.euw-globe-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.euw-globe-container {
    width: 320px;
    aspect-ratio: 5 / 3;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.euw-globe-container video {
    width: 100%;
    height: 160%;
    object-fit: cover;
    display: block;
    transform: translateY(2%);
}

/* 3000 highlight effect */
.euw-highlight {
    position: relative;
    display: inline;
    font-weight: 700;
    color: var(--white);
    transition: text-shadow 0.4s ease, color 0.4s ease;
    cursor: none;
}

.euw-highlight.glowing {
    color: var(--accent-blue-light);
    text-shadow: 0 0 20px var(--accent-blue-glow), 0 0 40px rgba(0, 162, 255, 0.3);
}

.euw-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue-light);
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: sparkleOut 0.6s ease-out forwards;
}

@keyframes sparkleOut {
    0% { transform: translate(0, 0) scale(1); opacity: 1; }
    100% { transform: translate(var(--sx), var(--sy)) scale(0); opacity: 0; }
}

/* TikTok section — player over scrolling carousel */
.euw-tiktok-section {
    position: relative;
    margin: 56px 0;
    z-index: 2;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(0, 0, 0, 0.4);
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 32px 0;
}

/* Thumbnail carousel — 3 rows filling full background */
.euw-tiktok-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.euw-tiktok-row {
    display: flex;
    gap: 8px;
    width: max-content;
    flex-shrink: 0;
    animation: tiktokScrollLeft 60s linear infinite;
}

.euw-tiktok-row--reverse {
    animation: tiktokScrollRight 60s linear infinite;
}

.euw-tiktok-row img {
    height: 160px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes tiktokScrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes tiktokScrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Main TikTok player — centered over carousel */
.euw-tiktok-player {
    position: relative;
    z-index: 2;
    width: 280px;
    height: 500px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.euw-tiktok-player video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: none;
}

/* TikTok logo overlay — top-left corner */
.euw-tiktok-logo {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    object-fit: contain;
    pointer-events: none;
    z-index: 3;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

/* View on TikTok link */
.euw-tiktok-link {
    position: relative;
    z-index: 2;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    cursor: none;
}

.euw-tiktok-link:hover {
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}

/* Stats footer with glow */
.euw-stats {
    position: relative;
    display: flex;
    justify-content: center;
    gap: clamp(24px, 4vw, 48px);
    padding: 44px 24px;
    margin-top: 64px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    z-index: 2;
}

.euw-stats::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 100px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 70%);
    filter: blur(32px);
    pointer-events: none;
}

.euw-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.euw-stat-num {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(16px, 2.2vw, 24px);
    color: var(--white);
    letter-spacing: 0.02em;
    position: relative;
    display: inline;
    transition: text-shadow 0.4s ease, color 0.4s ease;
    cursor: none;
    white-space: nowrap;
}

.euw-stat-num.glowing {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5), 0 0 40px rgba(255, 255, 255, 0.25);
}

.euw-stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Sparkles on stat numbers — reuse euw-sparkle anim, white color */
.euw-stat-sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    top: 50%;
    left: 50%;
    pointer-events: none;
    animation: sparkleOut 0.6s ease-out forwards;
}

/* ============================================
   ADDITIONAL INFORMATION SECTION
   ============================================ */
.additional {
    position: relative;
    width: 100%;
    background: var(--black);
    padding: 120px 40px 100px;
}

.additional-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* Title — metallic vibrant green gradient */
.additional-title {
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 800;
    font-size: clamp(24px, 4vw, 44px);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1;
    margin-bottom: 56px;
    background: linear-gradient(
        135deg,
        #40d888 0%,
        #7aedb8 18%,
        #00b858 32%,
        #008a44 48%,
        #5ce0a0 58%,
        #00b858 72%,
        #008a44 85%,
        #40d888 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: additionalGradientShift 8s ease-in-out infinite alternate;
}

@keyframes additionalGradientShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.skills-block {
    margin-bottom: 48px;
}

.skills-block:last-child {
    margin-bottom: 0;
}

.skills-heading {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.skills-columns--three {
    grid-template-columns: 1fr 1fr 1fr;
}

.skills-sub {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.skills-list {
    list-style: none;
    padding: 0;
}

.skills-list li {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: clamp(14px, 1.1vw, 16px);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.skills-list li:last-child {
    border-bottom: none;
}

.skills-level {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-left: 8px;
}

/* --- Interests visual sections --- */
.interests-visual {
    margin-top: 64px;
}

.interest-section {
    margin-bottom: 56px;
}

.interest-section:last-child {
    margin-bottom: 0;
}

.interest-label {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.interest-desc {
    font-family: 'DIN Next', 'Helvetica Neue', var(--font-body);
    font-weight: 300;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 16px;
}

/* --- Film Making 3D Carousel (landscape) --- */
.film-carousel {
    position: relative;
    width: 100%;
    height: 300px;
    perspective: 1200px;
    overflow: visible;
}

.film-slide {
    position: absolute;
    width: 420px;
    height: 240px;
    left: 50%;
    top: 30px;
    margin-left: -210px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--gray-dark);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                filter 0.7s ease,
                opacity 0.7s ease;
    cursor: none;
}

.film-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: none;
}

.film-slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 16px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
    pointer-events: none;
}

.film-slide-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Active center slide */
.film-slide.film-active {
    transform: translateZ(0) rotateY(0);
    z-index: 3;
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

/* Left slide */
.film-slide.film-left {
    transform: translateX(-280px) translateZ(-120px) rotateY(25deg) scale(0.85);
    z-index: 1;
    filter: blur(3px) brightness(0.5);
    opacity: 0.6;
    pointer-events: auto;
}

/* Right slide */
.film-slide.film-right {
    transform: translateX(280px) translateZ(-120px) rotateY(-25deg) scale(0.85);
    z-index: 1;
    filter: blur(3px) brightness(0.5);
    opacity: 0.6;
    pointer-events: auto;
}

/* Hidden back slide */
.film-slide.film-back {
    transform: translateZ(-250px) scale(0.6);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}

/* Nav arrows */
.film-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: rgba(255, 255, 255, 0.6);
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.film-nav:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.film-nav--left {
    left: calc(50% - 260px);
}

.film-nav--right {
    right: calc(50% - 260px);
}

/* --- Traveling — text left, map right --- */
.travel-row {
    display: flex;
    align-items: center;
    gap: 32px;
}

.travel-desc {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
}

.travel-map-wrap {
    flex: 1.4;
    min-width: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}

.travel-map-img {
    width: 100%;
    display: block;
}

/* --- Surfing & Snowboarding side by side --- */
.interest-duo {
    display: flex;
    gap: 24px;
    margin-bottom: 56px;
    align-items: stretch;
}

.interest-duo-col {
    flex: 1;
    min-width: 0;
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
}

/* --- Surfing --- */
.surf-wrap {
    flex: 1;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.surf-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Snowboarding — snow effect --- */
.snow-wrap {
    flex: 1;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0e1a 0%, #050710 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.snow-mountains {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    pointer-events: none;
}

.snowflake {
    position: absolute;
    top: -6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    animation: snowfall linear infinite;
}

@keyframes snowfall {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    8% { opacity: 1; }
    85% { opacity: 0.8; }
    100% {
        transform: translateY(230px) translateX(var(--drift, 15px)) rotate(360deg);
        opacity: 0;
    }
}

/* ============================================
   FOOTER — NILS KINGUE (partially visible)
   ============================================ */
.site-footer {
    position: relative;
    width: 100%;
    background: var(--black);
    overflow: hidden;
    padding: clamp(60px, 8vw, 120px) clamp(24px, 5vw, 80px) 0;
}


.footer-name-wrap {
    position: relative;
    text-align: center;
    /* Bottom 40% fades out — text sinks below the page */
    mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.footer-name-line {
    display: block;
    font-family: 'Druk Wide', var(--font-display);
    font-weight: 900;
    font-size: clamp(80px, 16vw, 260px);
    text-transform: uppercase;
    color: var(--white);
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.footer-nils-line {
    position: relative;
}

.footer-credit {
    position: absolute;
    right: 100px;
    bottom: 0;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.18);
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* Deckflow logo note */
.deck-logo-note {
    font-family: var(--font-body);
    font-size: 12px !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.3) !important;
    text-align: center;
    font-style: italic;
    margin-bottom: 8px !important;
    letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* --- Tablet (≤1024px) --- */
@media (max-width: 1024px) {
    /* Header */
    .header-bar {
        width: 90%;
        min-width: 0 !important;
    }

    /* Work cards — stack vertically */
    .work-card {
        flex-direction: column !important;
        gap: 24px;
    }

    a.work-card-visual,
    .work-card-visual {
        width: 100%;
    }

    .work-card-text {
        padding-top: 0;
    }

    .works-list {
        gap: 80px;
        padding: 0 40px;
    }

    /* Detail story rows — stack */
    .taz-story-row {
        flex-direction: column !important;
        gap: 24px;
    }

    .taz-story-row.reverse {
        flex-direction: column !important;
    }

    /* Skills — 2 columns instead of 3 */
    .skills-columns--three {
        grid-template-columns: 1fr 1fr;
    }

    /* Film carousel — smaller slides */
    .film-slide {
        width: 320px;
        height: 183px;
        margin-left: -160px;
    }

    .film-slide.film-left {
        transform: translateX(-210px) translateZ(-120px) rotateY(25deg) scale(0.85);
    }

    .film-slide.film-right {
        transform: translateX(210px) translateZ(-120px) rotateY(-25deg) scale(0.85);
    }

    .film-nav--left {
        left: calc(50% - 200px);
    }

    .film-nav--right {
        right: calc(50% - 200px);
    }

    /* Travel row — stack */
    .travel-row {
        flex-direction: column;
        gap: 16px;
    }

    .travel-desc {
        margin-bottom: 0 !important;
    }

    /* Interest duo — stack */
    .interest-duo {
        flex-direction: column;
        gap: 32px;
    }

    /* Snow wrap needs height when stacked (no intrinsic content) */
    .snow-wrap {
        min-height: 200px;
    }

    /* Euwshop stats — wrap */
    .euw-stats {
        flex-wrap: wrap;
        gap: 24px 32px;
    }
}

/* --- Mobile large (≤768px) --- */
@media (max-width: 768px) {
    /* Prevent ANY horizontal overflow on mobile */
    .hero,
    .about,
    .works,
    .additional,
    .site-footer,
    .detail-view {
        overflow-x: clip;
        max-width: 100vw;
    }

    /* Header — hide nav, keep name + CTA */
    .header {
        top: 16px;
        left: 0;
        right: 0;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .header-bar {
        width: 100%;
        min-width: 0 !important;
        max-width: 100%;
        padding: 0 6px 0 20px;
        height: 48px;
        box-sizing: border-box;
    }

    .header-glow {
        width: 90%;
    }

    /* Nav wheel — horizontal scroll-snap carousel */
    .header-nav {
        display: flex;
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        margin: 0 6px;
        position: relative;
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        /* Edge fade */
        mask-image: linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 22%, black 78%, transparent 100%);
    }

    .header-nav::-webkit-scrollbar {
        display: none;
    }

    /* Hide the sliding pill highlight — incompatible with scroll */
    .nav-highlight {
        display: none !important;
    }

    .nav-link {
        scroll-snap-align: center;
        flex-shrink: 0;
        font-size: 12px;
        padding: 6px 16px;
        text-align: center;
        opacity: 0.3;
        transition: opacity 0.3s ease, color 0.3s ease;
        color: rgba(255, 255, 255, 0.5);
    }

    .nav-link.active {
        opacity: 1;
        color: #ffffff;
    }

    .header-name {
        font-size: 14px;
        flex-shrink: 0;
    }

    .header-cta {
        font-size: 12px;
        padding: 9px 20px;
        flex-shrink: 0;
    }

    /* Hero */
    .hero-subtitle {
        font-size: clamp(14px, 5vw, 30px);
    }

    .hero-title {
        font-size: clamp(36px, 12vw, 80px);
    }

    .hero-signature {
        width: 100px;
    }

    /* About */
    .about {
        padding: 100px 24px 80px;
    }

    .about-title {
        font-size: clamp(28px, 8vw, 44px);
    }

    /* Works */
    .works {
        padding: 80px 0 80px;
    }

    .works-intro {
        padding: 0 24px;
        margin-bottom: 60px;
    }

    .works-title {
        font-size: clamp(24px, 7vw, 40px);
    }

    .works-list {
        gap: 60px;
        padding: 0 24px;
    }

    .work-card-media {
        border-radius: 10px;
    }

    .works-minor {
        padding: 0 24px;
        padding-top: 40px;
        margin-top: 60px;
    }

    /* Additional */
    .additional {
        padding: 80px 24px 80px;
    }

    .additional-title {
        font-size: clamp(20px, 6vw, 36px);
    }

    /* Skills — single column on mobile */
    .skills-columns,
    .skills-columns--three {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Film carousel — even smaller */
    .film-carousel {
        height: 220px;
    }

    .film-slide {
        width: 260px;
        height: 148px;
        margin-left: -130px;
        top: 20px;
    }

    .film-slide.film-left {
        transform: translateX(-170px) translateZ(-100px) rotateY(20deg) scale(0.8);
    }

    .film-slide.film-right {
        transform: translateX(170px) translateZ(-100px) rotateY(-20deg) scale(0.8);
    }

    .film-nav--left {
        left: calc(50% - 160px);
    }

    .film-nav--right {
        right: calc(50% - 160px);
    }

    .film-nav {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    /* Footer */
    .site-footer {
        padding: clamp(40px, 6vw, 80px) 16px 0;
    }

    .footer-name-line {
        font-size: clamp(60px, 14vw, 200px);
    }

    .footer-credit {
        position: relative;
        right: auto;
        bottom: auto;
        display: block;
        font-size: 10px;
        text-align: right;
        margin-top: 4px;
    }

    /* Detail views */
    .detail-content {
        padding: 60px 24px 80px;
    }

    .detail-view.active {
        padding-top: 280px;
    }

    /* Detail media grids — keep 2 columns, smaller */
    .taz-media-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 32px 0;
    }

    .taz-media-grid img,
    .taz-media-grid video {
        border-radius: 8px;
        max-height: 200px;
        object-fit: cover;
    }

    /* Euwshop TikTok */
    .euw-tiktok-section {
        min-height: 460px;
    }

    .euw-tiktok-player {
        width: 220px;
        height: 390px;
    }

    .euw-tiktok-row img {
        height: 120px;
    }

    /* Globe container */
    .euw-globe-container {
        width: 100%;
    }
}

/* --- Mobile small (≤480px) --- */
@media (max-width: 480px) {
    /* Header — tighter on small phones */
    .header {
        padding: 0 12px;
    }

    .header-bar {
        height: 44px;
        padding: 0 6px 0 16px;
    }

    .header-name {
        font-size: 13px;
    }

    .header-cta {
        font-size: 11px;
        padding: 8px 16px;
    }

    .nav-link {
        font-size: 11px;
        padding: 5px 12px;
    }

    .header-nav {
        margin: 0 4px;
    }

    /* Hero */
    .hero-location {
        font-size: 9px;
    }

    .hero-subtitle {
        font-size: clamp(12px, 5vw, 22px);
    }

    .hero-title {
        font-size: clamp(28px, 13vw, 60px);
    }

    .hero-signature {
        width: 80px;
    }

    /* Glass NK */
    .glass-nk {
        border-radius: 12px;
    }

    /* About */
    .about {
        padding: 80px 16px 60px;
    }

    .about-inner {
        max-width: 100%;
    }

    .about-body {
        font-size: 14px;
    }

    /* Works */
    .works-list {
        gap: 48px;
        padding: 0 16px;
    }

    .works-intro {
        padding: 0 16px;
        margin-bottom: 48px;
    }

    .work-card-header {
        flex-direction: column;
        gap: 4px;
    }

    .works-minor {
        padding: 0 16px;
        padding-top: 32px;
    }

    /* Additional */
    .additional {
        padding: 60px 16px 60px;
    }

    /* Snowboard — slightly shorter on small phones */
    .snow-wrap {
        min-height: 160px;
    }

    /* Film carousel — full width single slide */
    .film-carousel {
        height: 200px;
    }

    .film-slide {
        width: 85vw;
        height: 48vw;
        margin-left: calc(-42.5vw);
        top: 10px;
    }

    .film-slide.film-left {
        transform: translateX(-60vw) translateZ(-80px) rotateY(15deg) scale(0.75);
    }

    .film-slide.film-right {
        transform: translateX(60vw) translateZ(-80px) rotateY(-15deg) scale(0.75);
    }

    .film-nav--left {
        left: 8px;
    }

    .film-nav--right {
        right: 8px;
    }

    /* Footer */
    .footer-name-line {
        font-size: clamp(44px, 13vw, 140px);
    }

    /* Detail views */
    .detail-content {
        padding: 48px 16px 60px;
    }

    .detail-view.active {
        padding-top: 220px;
    }

    /* Detail banner info */
    #taz-overlay .taz-info,
    #deck-overlay .taz-info,
    #euw-overlay .taz-info,
    #both-overlay .taz-info {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }

    .taz-info-logo {
        width: 48px;
        height: 48px;
        margin-right: 12px;
    }

    /* Detail media grids — still 2 columns but tighter */
    .taz-media-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 24px 0;
    }

    .taz-media-grid img,
    .taz-media-grid video {
        border-radius: 6px;
        max-height: 160px;
    }

    /* Full-width media — smaller margin */
    .taz-media-full {
        margin: 28px 0;
        border-radius: 10px;
    }

    /* Euwshop TikTok */
    .euw-tiktok-section {
        min-height: 380px;
    }

    .euw-tiktok-player {
        width: 180px;
        height: 320px;
    }

    .euw-tiktok-row img {
        height: 90px;
    }

    /* Stats — 2x2 grid instead of vertical stack */
    .euw-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    /* Back button */
    .detail-back {
        top: 16px;
        left: 16px;
        width: 38px;
        height: 38px;
    }

    .detail-back::before,
    .detail-back::after {
        width: 14px;
    }
}
