/* Hi Ibiza embed — cloned from https://pascalsender.com/hiii/index.html,
   scoped under .hi-embed so it can live inline inside the SPA route
   #/show/hi-ibiza-club instead of an iframe. */
.hi-embed, .hi-embed * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hi-embed {
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #222;
    background: #fff;
}

/* Background Grid - FIXED FULL SCREEN */
        .bg-grid-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 1;
            overflow: hidden;
            pointer-events: none;
        }

        .tile {
            position: absolute;
            background-size: cover;
            background-position: center;
            cursor: pointer;
            pointer-events: auto;
            transform-style: preserve-3d;
            transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
            perspective: 1000px;
        }

        /* 7 Different transition styles */
        .tile.transition-flip {
            animation: flip3D 1.2s ease-in-out;
        }

        @keyframes flip3D {
            0% { transform: rotateY(0deg); }
            50% { transform: rotateY(90deg); opacity: 0; }
            51% { opacity: 0; }
            100% { transform: rotateY(0deg); opacity: 1; }
        }

        .tile.transition-blur {
            animation: blurFade 1s ease-in-out;
        }

        @keyframes blurFade {
            0% { filter: blur(0px); opacity: 1; }
            50% { filter: blur(20px); opacity: 0; }
            100% { filter: blur(0px); opacity: 1; }
        }

        .tile.transition-bounce {
            animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        }

        @keyframes bounceIn {
            0% { transform: scale(1); }
            30% { transform: scale(0); }
            70% { transform: scale(1.2); }
            100% { transform: scale(1); }
        }

        .tile.transition-rotate {
            animation: rotate3D 1s ease-in-out;
        }

        @keyframes rotate3D {
            0% { transform: rotate3d(1, 1, 0, 0deg); }
            50% { transform: rotate3d(1, 1, 0, 180deg); opacity: 0; }
            100% { transform: rotate3d(1, 1, 0, 360deg); opacity: 1; }
        }

        .tile.transition-slide {
            animation: slideOver 0.9s ease-in-out;
        }

        @keyframes slideOver {
            0% { transform: translateX(0); opacity: 1; }
            49% { transform: translateX(100%); opacity: 0; }
            51% { transform: translateX(-100%); opacity: 0; }
            100% { transform: translateX(0); opacity: 1; }
        }

        .tile.transition-zoom {
            animation: zoomPulse 0.7s ease-in-out;
        }

        @keyframes zoomPulse {
            0% { transform: scale(1); }
            50% { transform: scale(0); opacity: 0; }
            100% { transform: scale(1); opacity: 1; }
        }

        .tile.transition-spiral {
            animation: spiralIn 1.5s ease-in-out;
        }

        @keyframes spiralIn {
            0% { transform: rotate(0deg) scale(1); opacity: 1; }
            50% { transform: rotate(180deg) scale(0); opacity: 0; }
            100% { transform: rotate(360deg) scale(1); opacity: 1; }
        }

        /* Main scrollable content */
        .content-wrapper {
            position: relative;
            z-index: 100;
            background: transparent;
            min-height: 300vh;
            width: 100%;
        }

        /* Section styling */
        .section {
            min-height: 100vh;
            padding: 60px 40px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .section-content {
            background: rgba(255, 255, 255, 0.95);
            border-radius: 12px;
            padding: 40px;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10);
            border: 1px solid rgba(255, 255, 255, 0.3);
            max-width: 1000px;
            margin: 0 auto;
            opacity: 0;
            animation: flyInStraight var(--animation-duration) var(--animation-delay) ease-out forwards;
        }

        @keyframes flyInStraight {
            0% {
                opacity: 0;
                transform: translateY(var(--start-y)) translateX(var(--start-x));
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 1;
                transform: translateY(0) translateX(0);
            }
        }

        @keyframes flyInLeft {
            0% {
                opacity: 0;
                transform: translateX(-150vw);
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes flyInRight {
            0% {
                opacity: 0;
                transform: translateX(150vw);
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes flyInTop {
            0% {
                opacity: 0;
                transform: translateY(-150vh);
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes flyInBottom {
            0% {
                opacity: 0;
                transform: translateY(150vh);
            }
            20% {
                opacity: 1;
            }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .section-title {
            font-size: 42px;
            font-weight: 700;
            letter-spacing: -1.5px;
            margin-bottom: 30px;
            text-align: center;
            color: #222;
        }

        .section-text {
            font-size: 16px;
            line-height: 1.8;
            color: #555;
            margin-bottom: 30px;
        }

        /* Tile showcase */
        .tile-showcase {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 15px;
            margin: 40px 0;
            padding: 30px 0;
            border-top: 1px solid #eee;
            border-bottom: 1px solid #eee;
        }

        /* Concept showcase - 3 images side by side */
        .concept-showcase {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
            margin: 30px 0;
        }

        .concept-item {
            display: flex;
            flex-direction: column;
        }

        .concept-image {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }

        .concept-image:hover {
            transform: scale(1.05);
        }

        .concept-image img {
            width: 100%;
            height: auto;
            display: block;
        }

        .concept-label {
            font-size: 13px;
            font-weight: 600;
            text-align: center;
            margin-top: 10px;
            color: #666;
        }

        .tile-item {
            aspect-ratio: 1;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            border: 1px solid #eee;
        }

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

        .tile-label {
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            margin-top: 10px;
            color: #888;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        /* Video container */
        .video-container {
            width: 100%;
            max-width: 700px;
            margin: 20px auto;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .video-container video {
            width: 100%;
            height: auto;
            display: block;
        }

        .video-label {
            font-size: 14px;
            font-weight: 600;
            margin: 15px 0;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            text-align: center;
        }

        /* Tile explanation */
        .tile-explanation {
            background: #f9f9f9;
            padding: 30px;
            border-radius: 8px;
            margin: 30px 0;
            border-left: 4px solid #222;
        }

        .tile-explanation h3 {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 15px;
            color: #222;
        }

        .tile-explanation p {
            font-size: 14px;
            line-height: 1.7;
            color: #666;
            margin-bottom: 10px;
        }

        /* Header section - no backdrop, transparent */
        .header-section {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            text-align: center;
            box-shadow: none !important;
            border: none !important;
            position: relative;
            overflow: visible;
            max-width: 1000px !important;
            width: 100%;
        }

        /* Text-only backdrop panel - No blur for Android */
        .header-text-backdrop {
            background: rgba(255, 255, 255, 0.8);
            padding: 30px;
            border-radius: 12px;
            margin-top: 20px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.05),
                inset 0 0 20px rgba(255, 255, 255, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.15);
            position: relative;
        }


        /* Frame Sequence Player */
        .frame-sequence-player {
            width: 100%;
            margin: 20px auto;
            border-radius: 8px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: transform 0.3s ease;
            background: transparent;
        }

        .frame-sequence-player:hover {
            transform: scale(1.02);
        }

        .frame-sequence-player img {
            width: 100%;
            height: auto;
            display: block;
            image-rendering: auto;
            transition: opacity 0.05s ease;
            /* Support for PNG transparency */
            background: transparent;
            mix-blend-mode: normal;
        }

        .frame-controls {
            position: absolute;
            bottom: 10px;
            right: 10px;
            background: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 11px;
            font-family: monospace;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
        }

        .frame-sequence-player:hover .frame-controls {
            opacity: 1;
        }

        .header-title {
            font-size: 42px;
            font-weight: 700;
            letter-spacing: -1.5px;
            margin-top: 20px;
            color: #222;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .header-subtitle {
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 2px;
            color: #666;
            margin-top: 10px;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        .header-description {
            font-size: 16px;
            line-height: 1.8;
            color: #555;
            margin-top: 20px;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            text-align: center;
            position: relative;
            z-index: 1;
        }

        /* Settings Toggle Button */
        .settings-toggle {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 201;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 50%;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

        .settings-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: rotate(90deg);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        /* Controls */
        .controls {
            position: fixed;
            top: 70px;
            right: 20px;
            z-index: 200;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 15px;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
            max-width: 250px;
            max-height: 70vh;
            overflow-y: auto;
            opacity: 0;
            transform: translateX(300px);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            pointer-events: none;
        }

        .controls.visible {
            opacity: 1;
            transform: translateX(0);
            pointer-events: auto;
        }

        .controls h3 {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 10px;
            color: #666;
        }

        .control-group {
            margin-bottom: 12px;
        }

        .control-group label {
            display: block;
            font-size: 12px;
            margin-bottom: 6px;
            color: #333;
            cursor: pointer;
        }

        .control-group input[type="radio"],
        .control-group input[type="checkbox"] {
            margin-right: 6px;
            cursor: pointer;
        }

        .control-group input[type="range"] {
            width: 100%;
            height: 4px;
            border-radius: 2px;
            background: #ddd;
            outline: none;
            -webkit-appearance: none;
        }

        .control-group input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #222;
            cursor: pointer;
        }

        .control-group input[type="range"]::-moz-range-thumb {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            background: #222;
            cursor: pointer;
            border: none;
        }

        .slider-value {
            font-size: 11px;
            color: #888;
            margin-top: 3px;
        }

        /* Last section transparent - like header */
        .last-section-transparent {
            background: transparent !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
            box-shadow: none !important;
            border: none !important;
            max-width: 1000px !important;
            width: 100%;
        }

        .full-width-video {
            width: 100%;
            margin: 20px auto;
            border-radius: 8px;
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            background: transparent;
        }

        .full-width-video video {
            width: 100%;
            height: auto;
            display: block;
            border-radius: 8px;
        }

        .text-panel-bottom {
            background: rgba(255, 255, 255, 0.95);
            padding: 30px;
            border-radius: 12px;
            margin-top: 20px;
            margin-bottom: 30px;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.08),
                inset 0 0 20px rgba(255, 255, 255, 0.1),
                inset 0 1px 1px rgba(255, 255, 255, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
        }


        /* Empty tiles section */
        .empty-tiles-section {
            min-height: 100vh;
            position: relative;
            /* No content, just empty space for tiles to show through */
        }

        /* Long videos grid */
        /* Hero video (long_1) — title video above The Infinite Transform */
        .hero-video-wrap {
            display: flex;
            justify-content: center;
            padding: 0 20px;
            position: relative;
            z-index: 10;
        }

        .hero-video-wrap .hero-video-item {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
            height: 90vh;
            aspect-ratio: 928 / 1376;
        }

        .hero-video-wrap video {
            height: 100%;
            width: 100%;
            display: block;
            object-fit: contain;
        }

        /* 3 videos row */
        .long-videos-grid {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 12px;
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .long-videos-grid .long-video-item {
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            flex-shrink: 1;
            height: 55vh;
        }

        .long-videos-grid .long-video-item.ratio-portrait { aspect-ratio: 928 / 1376; }
        .long-videos-grid .long-video-item.ratio-square { aspect-ratio: 1 / 1; }

        .long-videos-grid video {
            height: 100%;
            width: 100%;
            display: block;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .hero-video-wrap {
                padding: 0 20px;
            }
            .hero-video-wrap .hero-video-item {
                height: auto;
                width: 100%;
                aspect-ratio: auto;
            }
            .hero-video-wrap video {
                width: 100%;
                height: auto;
            }
            .long-videos-grid {
                flex-direction: column;
                align-items: center;
                gap: 16px;
                max-width: 500px;
            }
            .long-videos-grid .long-video-item {
                height: auto;
                width: 100%;
            }
            .long-videos-grid video {
                width: 100%;
                height: auto;
            }
        }

        /* 3D Viewer section */
        .viewer3d-section {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }

        .viewer3d-wrap {
            width: 100%;
            max-width: 1000px;
            aspect-ratio: 1 / 1;
            border-radius: 12px;
            overflow: hidden;
            position: relative;
            background: transparent;
            cursor: grab;
        }

        .viewer3d-wrap canvas {
            width: 100% !important;
            height: 100% !important;
            display: block;
            touch-action: pan-y; /* Allow vertical scroll on mobile */
        }

        .viewer3d-loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;
            pointer-events: none;
            z-index: 2;
        }

        .viewer3d-label {
            position: absolute;
            bottom: 16px;
            left: 50%;
            transform: translateX(-50%);
            color: #333;
            font-size: 13px;
            font-weight: 600;
            letter-spacing: 1px;
            text-transform: uppercase;
            pointer-events: none;
            z-index: 2;
            background: rgba(255, 255, 255, 0.8);
            padding: 6px 16px;
            border-radius: 6px;
        }

        /* 3D Print artwork showcase */
        .artwork-showcase {
            display: flex;
            gap: 20px;
            margin: 30px 0 10px;
            justify-content: center;
        }

        .artwork-item {
            flex: 0 1 auto;
            text-align: center;
        }

        .artwork-img-wrap {
            position: relative;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .artwork-img-wrap img {
            display: block;
            width: 100%;
            height: auto;
            transition: opacity 0.25s ease;
        }

        .artwork-img-wrap .artwork-gif {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
        }

        .artwork-img-wrap:hover .artwork-gif {
            opacity: 1;
        }

        .artwork-img-wrap:hover .artwork-static {
            opacity: 0;
        }

        .artwork-caption {
            font-size: 11px;
            color: #888;
            margin-top: 8px;
            line-height: 1.4;
        }

        @media (max-width: 768px) {
            .artwork-showcase {
                gap: 12px;
                margin: 20px 0 8px;
            }
            .artwork-item {
                flex: 1 1 0;
                min-width: 0;
            }
        }

        /* Highbox viewer — wider, outline, smaller scale */
        .viewer3d-section-small .viewer3d-wrap {
            max-width: 1000px;
			top: -180px;
			right: -300px;
            aspect-ratio: 16 / 10;
            border: 1px solid rgba(0, 0, 0, 0.12);
            border-radius: 1px;
        }

        @media (max-width: 512px) {
            .viewer3d-section {
                padding: 0px 0;
            }
            .viewer3d-wrap {
                max-width: 100%;
                border-radius: 0;
                aspect-ratio: 3 / 4;
            }
            .viewer3d-section-small .viewer3d-wrap {
                max-width: 50%;
                aspect-ratio: 3 / 4;
                border: 1px solid rgba(0, 0, 0, 0.12);
                border-radius: 0;
            }
        }

        /* Mixer video — bottom of page, overlapping whitebox viewer above by 30% */
        .mixer-video-section {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: auto;
            padding: 0 20px;
            margin-top: -20vh; /* overlap into the 3D viewer above by ~30% */
            position: relative;
            z-index: 10;
        }

        .mixer-video-item {
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 16px 50px rgba(0, 0, 0, 0.2);
            height: 80vh;
            aspect-ratio: 9 / 16;
        }

        .mixer-video-item video {
            height: 100%;
            width: 100%;
            display: block;
            object-fit: contain;
        }

        @media (max-width: 768px) {
            .mixer-video-section {
                margin-top: -15vh;
            }
            .mixer-video-item {
                height: 70vh;
                width: 80%;
                max-width: 80%;
            }
        }

        @media (min-width: 769px) {
            .mixer-video-item {
                height: 80vh;
            }
        }

        /* T-Shirt iframe section */
        .tshirt-section{min-height:100vh;padding:20px;display:flex;justify-content:center;align-items:center}
        .tshirt-frame{width:300%;height:calc(100vh - 40px);border-radius:16px;overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,0.10);border:1px solid rgba(255,255,255,0.3);opacity:0;animation:flyInStraight var(--animation-duration) var(--animation-delay) ease-out forwards}
        .tshirt-frame iframe{width:100%;height:100%;border:none;display:block}

        /* Footer section */
        .footer-section {
            min-height: auto;
            padding: 40px;
            display: flex;
            justify-content: center;
            align-items: center;
            position: relative;
        }

        .footer-content {
            background: rgba(255, 255, 255, 0.8);
            padding: 30px 50px;
            border-radius: 12px;
            text-align: center;
            box-shadow:
                0 8px 32px rgba(0, 0, 0, 0.05),
                inset 0 0 20px rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 15px;
            opacity: 0;
            animation: flyInStraight var(--animation-duration) var(--animation-delay) ease-out forwards;
        }

        .footer-logo {
            height: 40px;
            width: auto;
            opacity: 0.9;
        }

        .footer-copyright {
            font-size: 13px;
            color: #ffffff;
            font-weight: 500;
            letter-spacing: 1px;
            text-transform: uppercase;
            text-shadow:
                1px 1px 0 #000,
                -1px -1px 0 #000,
                1px -1px 0 #000,
                -1px 1px 0 #000,
                0 1px 0 #000,
                1px 0 0 #000,
                0 -1px 0 #000,
                -1px 0 0 #000,
                2px 2px 3px rgba(0, 0, 0, 0.5);
        }


        /* Responsive */
        @media (max-width: 768px) {
            .section {
                padding: 40px 20px;
            }

            .section-content {
                padding: 30px 20px;
            }

            .section-title {
                font-size: 32px;
            }

            .tile-showcase {
                grid-template-columns: repeat(2, 1fr);
            }

            .concept-showcase {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .controls {
                max-width: 200px;
                padding: 12px;
                bottom: 10px;
                right: 10px;
            }

            .tshirt-section{padding:10px}
            .tshirt-frame{height:calc(100vh - 20px);border-radius:10px}
        }
    
        .highlight-embed { width: 100%; max-width: 1000px; margin: 24px auto 10px; border-radius: 12px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.18); }
        .highlight-embed iframe { display: block; width: 100%; height: clamp(560px, 78vw, 800px); border: 0; }