/* ═══════════════════════════════════════════════════════════════
   1611 STUDIOS — Minimalist Hub
   Clean, motion-focused design
   ═══════════════════════════════════════════════════════════════ */

/* --- FONTS --- */
@font-face {
    font-family: 'Chettavissto';
    src: url('../assets/fonts/ChettaVissto.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../assets/fonts/Manrope-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Rolide';
    src: url('../assets/fonts/Rolide-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Campeno';
    src: url('../assets/fonts/Campeno-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

/* --- VARIABLES --- */
:root {
    /* Surfaces (60% - Dominant) */
    --surface: #faf9f7;
    --card: #ffffff;

    /* Ink & Structure (30% - Secondary) */
    --ink: #1a1a1a;
    --ink-soft: #555555;
    /* Darkened for better contrast */
    --ink-faint: #999999;

    /* Accent (10% - Highlight) */
    --accent: #c9a227;

    /* Borders (Part of 30% Structure) */
    --line: rgba(26, 26, 26, 0.12);
    /* Sharper, more defined */
    --line-active: #1a1a1a;
    /* Full ink for active states */

    /* Typography */
    --font-display: 'Chettavissto', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;

    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 32px;
    /* Increased for breathing room */
    --space-lg: 64px;
    --space-xl: 100px;
    /* Luxury spacing */

    /* Motion - Luxury "Car Door" Feel */
    /* Heavy, precise, confident starts and smooth, slow settles */
    --ease: cubic-bezier(0.2, 0, 0, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 1.2s;
    /* Slower, more deliberate */

    /* Fonts - Strict Stack */
    --font-display: 'Chettavissto', serif;
    --font-body: 'Manrope', sans-serif;
    --font-alt: 'Rolide', serif;
    --font-tech: 'Campeno', sans-serif;
}

@keyframes breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* --- RESET --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--ink);
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    /* Context for pseudos */
}

/* Lenis Smooth Scroll Fixes */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

/* Texture Grain Overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.07;
    /* Very subtle */
    z-index: -1;
    pointer-events: none;
    /* Clean noise texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='1'/%3E%3C/svg%3E");
}

a {
    color: inherit;
    text-decoration: none;
}

/* --- TEASER CAROUSEL (NEW) --- */
.teaser-container {
    width: 100%;
    height: 60vh;
    /* High impact */
    min-height: 500px;
    margin: var(--space-md) 0 var(--space-lg);
    position: relative;
    border-radius: 30px;
    /* Softer, luxury corners */
    overflow: hidden;
    opacity: 0;
    transform: scale(0.98);
    animation: teaserReveal 1.2s var(--ease) 0.5s forwards;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

@keyframes teaserReveal {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.teaser-track {
    width: 100%;
    height: 100%;
    position: relative;
}

.teaser-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    /* Very slow cinematic fade */
}

.teaser-slide.active {
    opacity: 1;
}

/* Cinematic Overlay */
.teaser-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 40%);
    display: flex;
    align-items: flex-end;
    padding: var(--space-lg);
}

.teaser-label {
    font-family: var(--font-display);
    color: white;
    font-size: 3rem;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s var(--ease);
}

.teaser-slide.active+.teaser-overlay .teaser-label,
.teaser-slide.active .teaser-label-internal {
    /* Option to put label inside slide */
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.5s;
}

/* --- PRELOADER --- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-text {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 6rem);
    color: var(--ink);
    opacity: 0;
    animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- PAGE TRANSITION --- */
.transition {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--surface);
    transform: translateX(100%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.transition.active {
    transform: translateX(0);
    transition: transform 0.6s var(--ease);
    pointer-events: all;
}

.transition-label {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--ink);
    letter-spacing: 0.1em;
    opacity: 0;
}

.transition.active .transition-label {
    opacity: 1;
    transition: opacity 0.4s var(--ease) 0.3s;
}

/* --- HERO ARCHITECT BADGE (GPU Accelerated) --- */
.hero-badge {
    display: flex;
    justify-content: center;
    padding: var(--space-lg) 0 var(--space-md);
}

.hero-badge-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);

    /* GPU-accelerated animation */
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    will-change: transform, opacity;
    animation: badgeReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes badgeReveal {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hb-line {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    will-change: width;
    animation: lineExpand 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hb-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    opacity: 0;
    will-change: opacity;
    animation: textFadeIn 0.4s ease-out 0.8s forwards;
}

.hb-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    will-change: transform, opacity;
    animation: nameSlideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

@keyframes lineExpand {
    to {
        width: 32px;
    }
}

@keyframes textFadeIn {
    to {
        opacity: 0.6;
    }
}

@keyframes nameSlideUp {
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* --- INTRO MEMO --- */
.intro-memo {
    max-width: 500px;
    margin: 0 auto var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: memoReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

@keyframes memoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.5;
    }
}

.memo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: var(--space-sm);
}

.memo-icon {
    font-size: 1rem;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.8);
    animation:
        iconFadeIn 0.5s cubic-bezier(0.05, 0, 0, 1) 1.9s forwards,
        iconPulse 2.5s ease-in-out 2.4s infinite;
}

@keyframes iconFadeIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }
}

.memo-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--ink-soft);
    text-transform: uppercase;
    opacity: 0;
    animation: labelFadeIn 0.5s cubic-bezier(0.05, 0, 0, 1) 2s forwards;
}

@keyframes labelFadeIn {
    to {
        opacity: 0.7;
    }
}

.memo-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--ink);
    margin-bottom: var(--space-xs);
}

.memo-text strong {
    color: var(--accent);
    font-weight: 600;
}

.memo-cta {
    font-size: 0.8rem;
    color: var(--ink-soft);
    opacity: 0.7;
    margin-top: var(--space-sm);
}

/* --- FEATURED BLOCK --- */
.featured-block {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    overflow: hidden;
}

.featured-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
}

.featured-label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    color: var(--ink-soft);
    text-transform: uppercase;
}

.unreleased-pill {
    padding: 6px 14px;
    background: linear-gradient(145deg, rgba(201, 162, 39, 0.2), rgba(201, 162, 39, 0.05));
    border: 1px solid rgba(201, 162, 39, 0.4);
    border-radius: 100px;
    transition: all 0.4s var(--ease);
}

.unreleased-pill .pill-text {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
}

.unreleased-pill:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.unreleased-pill:hover .pill-text {
    color: var(--ink);
}

.featured-video-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: var(--space-sm);
}

.featured-video {
    width: 100%;
    display: block;
    object-fit: cover;
}

.featured-info {
    text-align: center;
}

.featured-track-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--ink);
    margin-bottom: 4px;
}

.featured-track-subtitle {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--ink-soft);
    margin-bottom: var(--space-xs);
}

.featured-track-credits {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.track-credit-primary {
    font-size: 0.8rem;
    color: var(--ink-soft);
}

.track-credit-primary strong {
    color: var(--accent);
}

.track-credit-secondary {
    font-size: 0.75rem;
    color: var(--ink-soft);
    opacity: 0.7;
}

.cards-hint {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.7rem;
    color: var(--ink-soft);
    text-align: left;
    padding-left: 4px;
    opacity: 0;
    animation: fadeIn 0.5s cubic-bezier(0.05, 0, 0, 1) 2.7s forwards;
}

/* --- PAGE LAYOUT --- */
.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    /* Reduced from lg */
    overflow: visible;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

body.loaded .page {
    opacity: 1;
    transform: translateY(0);
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-items: center;
    padding-bottom: var(--space-md);
    /* Reduced from lg */
}

/* Glass Pill Base Style */
/* Glass Pill Base Style (Enhanced Liquid) */
.logo,
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;

    /* Liquid Glass */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.2),
        /* Inner glow */
        0 4px 10px rgba(0, 0, 0, 0.05);
    /* Soft drop */

    border-radius: 100px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    letter-spacing: 0.02em;
    opacity: 0;
    animation: headerFadeIn 0.6s cubic-bezier(0.05, 0, 0, 1) 1.6s forwards;
}

.nav-link {
    font-size: 0.8rem;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0;
    animation: headerFadeIn 0.6s cubic-bezier(0.05, 0, 0, 1) 1.7s forwards;
}

@keyframes headerFadeIn {
    to {
        opacity: 1;
    }
}

.logo:hover,
.nav-link:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.5));
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow:
        inset 0 0 20px rgba(255, 255, 255, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.1);
    color: var(--ink);
}

.nav {
    display: flex;
    gap: var(--space-md);
}

/* --- LAYOUT GRID (Bento Box - 2 Columns) --- */
.content-wrapper {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* Prevent blowout */
    grid-auto-flow: dense;
    /* Fill gaps dynamically */
    gap: var(--space-md);
    min-height: 0;
}

/* Bento Span Utilities */
.bento-span-2 {
    grid-column: span 2;
    /* Full width in 2-col grid */
}

.bento-span-3 {
    grid-column: span 2;
    /* Fallback for legacy 3-span items */
}

.bento-span-3 {
    grid-column: span 3;
}

/* Profile Block - Override for Bento */
.profile-block.bento-span-2 {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    min-height: 180px;
}

.profile-col {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: profileReveal 0.7s cubic-bezier(0.05, 0, 0, 1) 2.5s forwards;
}

@keyframes profileReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glass Panel (Shared Liquid Style) */
.glass-panel {
    /* Liquid Glass (Neutral) */
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.1),
        0 15px 40px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: var(--space-md);
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Enforce uniform height in grid */
    display: flex;
    flex-direction: column;
}

/* Staggered Reveal for Bento Items */
.content-wrapper>.glass-panel,
.content-wrapper>.card {
    opacity: 0;
    transform: translateY(20px);
    animation: bentoReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bentoReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Delay by visual order */
.content-wrapper>*:nth-child(1) {
    animation-delay: 1.0s;
}

/* Profile */
.content-wrapper>*:nth-child(2) {
    animation-delay: 1.1s;
}

/* Card 01 */
.content-wrapper>*:nth-child(3) {
    animation-delay: 1.2s;
}

/* Carousel */
.content-wrapper>*:nth-child(4) {
    animation-delay: 1.3s;
}

/* Card 02 */
.content-wrapper>*:nth-child(5) {
    animation-delay: 1.4s;
}

/* Card 03 */
.content-wrapper>*:nth-child(6) {
    animation-delay: 1.5s;
}

/* Featured */
.content-wrapper>*:nth-child(7) {
    animation-delay: 1.6s;
}

/* Reels */
.content-wrapper>*:nth-child(8) {
    animation-delay: 1.7s;
}

/* Hint */
.content-wrapper>*:nth-child(9) {
    animation-delay: 1.8s;
}

/* Profile Block */
.profile-block {
    flex: 0 0 auto;
    position: relative;
    /* Context for absolute bio */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centered content */
    gap: var(--space-xs);
    padding: var(--space-lg);
    min-height: 250px;
    /* MATCHING CARD HEIGHT */
}

/* Profile Header (Reverses Name/Role to match Nollatc Style) */
.profile-header {
    display: flex;
    flex-direction: column-reverse;
    gap: 0;
    /* Let Name line-height and Role padding handle visual gap */
}

.profile-name {
    font-family: var(--font-display);
    font-size: 4rem;
    /* Match Cards */
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
}

.profile-role {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    /* Wider spacing for badge look */
    color: var(--accent);
    margin: 0 0 8px 0;
    /* Add bottom margin to separate from Name */
    opacity: 0.8;
}

.profile-bio {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    max-width: 240px;
    font-size: 0.75rem;
    color: var(--ink-soft);
    line-height: 1.5;
    text-align: right;
    opacity: 0.7;
}

/* Carousel Block */
.carousel-block {
    flex: 1;
    /* Fills remaining height */
    padding: 0;
    /* Full bleed images */
    flex: 1;
    /* Fills remaining height */
    padding: 0;
    /* Full bleed images */
    min-height: 200px;
    /* Allow shrinking for small screens */
}

.carousel-track {
    position: absolute;
    inset: 0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: rgba(255, 255, 255, 0.1);
    /* Fallback */
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-indicators {
    position: absolute;
    bottom: var(--space-md);
    right: var(--space-md);
    /* Move to bottom-right */
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.2);
    /* Glass container */
    backdrop-filter: blur(10px);
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    /* Clearer inactive */
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.indicator.active {
    background: var(--ink);
    /* Strong active */
    transform: scale(1.2);
    width: 20px;
    /* Pill expansion */
    border-radius: 100px;
}

/* New Carousel Controls (Prev/Next) */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s var(--ease);
    color: var(--ink);
    opacity: 0;
    /* Hide by default, show on hover */
}

.carousel-block:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--card);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: var(--space-md);
}

.carousel-next {
    right: var(--space-md);
}

.card {
    position: relative;
    /* Composite Background: Spotlight (Top) + Two-Tone Linear (Bottom) */
    /* Liquid Glass Card (Translucent two-tone) */
    background:
        radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            var(--spotlight-color, rgba(0, 0, 0, 0.03)),
            transparent 40%),
        /* Tinted left side, merging into semi-opaque glass */
        linear-gradient(to right, var(--card-tint), rgba(255, 255, 255, 0.45) 60%);

    backdrop-filter: blur(30px) saturate(120%);
    -webkit-backdrop-filter: blur(30px) saturate(120%);

    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Sharper edge */
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);

    box-shadow:
        inset 0 0 30px rgba(255, 255, 255, 0.4),
        /* Stronger inner refraction */
        0 15px 40px rgba(0, 0, 0, 0.05),
        /* Deeper shadow */
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Subtle outer ring */
    border-radius: 20px;
    padding: var(--space-lg);
    /* Uniform Padding */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-sm);
    cursor: pointer;
    transition:
        border-color 0.3s,
        transform 0.4s var(--ease),
        box-shadow 0.5s var(--ease);
    will-change: transform;
    transform-style: preserve-3d;
    min-height: 250px;
    /* UNIFORM SIZE ENFORCED */
}

/* Define Colors per Card (Spotlight + Tint) */
.card:nth-child(1) {
    --spotlight-color: rgba(201, 162, 39, 0.08);
    /* Gold */
    --card-tint: rgba(201, 162, 39, 0.03);
    /* Faint Gold Tint */
    --highlight-color: rgba(201, 162, 39, 0.15);
    /* Stronger tint for highlight */
}

.card:nth-child(2) {
    --spotlight-color: rgba(74, 138, 173, 0.08);
    /* Azure */
    --card-tint: rgba(74, 138, 173, 0.03);
    /* Faint Azure Tint */
    --highlight-color: rgba(74, 138, 173, 0.15);
    /* Stronger tint for highlight */
}

.card:nth-child(3) {
    --spotlight-color: rgba(168, 107, 122, 0.08);
    /* Rose */
    --card-tint: rgba(168, 107, 122, 0.03);
    /* Faint Rose Tint */
    --highlight-color: rgba(168, 107, 122, 0.15);
    /* Stronger tint for highlight */
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--line-active);
    /* Structural pop (30%) */
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.15);
}

/* Card Number (Deep Layer) */
.card-number {
    font-family: var(--font-mono);
    /* Changed to Mono for tech feel */
    font-size: 0.7rem;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    opacity: 0.5;
    transition: color 0.5s;
}

.card:hover .card-number {
    color: var(--ink);
    opacity: 1;
}

/* Card Redesign - Huge Title, Premium Typography */
.card-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.card-title {
    font-family: var(--font-display);
    font-size: 4rem;
    /* Large */
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0;
    transition: transform 0.6s var(--ease);

    /* Nollatc-style Gradient Text */
    color: var(--ink);
    /* Fallback */
    /* Note: Can't easily do gradient on Ink text without background-clip, staying solid ink for high contrast or using the requested style */
    /* User said "like nollatc player about section" -> gradient white? No, here background is light. Gradient Ink? */
    /* Let's use deep ink but with the spacing/weight */
}

.card:hover .card-title {
    transform: scale(1.02);
}

/* Description Slide-in logic removed, now static centered or clean */
.card-desc-box {
    margin-top: var(--space-xs);
    text-align: center;
    opacity: 0;
    /* Hidden by default, reveal on hover? or always show? */
    transform: translateY(10px);
    transition: all 0.5s var(--ease);
}

.card:hover .card-desc-box {
    opacity: 1;
    transform: translateY(0);
}

.card-arrow {
    position: absolute;
    right: var(--space-md);
    bottom: var(--space-md);
    /* Fixed bottom right */
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--ease);
    color: var(--ink-soft);
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.card:hover .card-desc-box {
    opacity: 1;
    transform: translateX(0);
}

.card-desc {
    font-size: 0.9rem;
    color: var(--ink);
    font-weight: 600;
    letter-spacing: 0.05em;
}

.card-detail {
    font-size: 0.75rem;
    color: var(--ink-soft);
    max-width: 150px;
    /* Constrain width */
}

/* Card Arrow (Top Layer) */
/* Card Arrow (Top Layer) */
.card-arrow {
    position: relative;
    margin-left: auto;
    /* Push to far right */
    font-size: 1.5rem;
    color: var(--ink-faint);
    opacity: 0.5;
    transform: translateX(-10px) translateZ(10px);
    transition: opacity 0.3s, transform 0.4s var(--ease), color 0.3s;
}

/* Specific Accents (10% Rule) */
.card:nth-child(1):hover {
    border-color: #c9a227;
}

.card:nth-child(1):hover .card-arrow {
    color: #c9a227;
}

.card:nth-child(2):hover {
    border-color: #4a8aad;
}

.card:nth-child(2):hover .card-arrow {
    color: #4a8aad;
}

.card:nth-child(3):hover {
    border-color: #a86b7a;
}

.card:nth-child(3):hover .card-arrow {
    color: #a86b7a;
}

.card:hover .card-arrow {
    opacity: 1;
    transform: translateX(0) translateZ(50px);
    /* Floats highest */
}

/* Card Stagger Animation */
body.loaded .card {
    opacity: 0;
    animation: cardEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.loaded .card[data-index="1"] {
    animation-delay: 1.1s;
}

body.loaded .card[data-index="2"] {
    animation-delay: 1.3s;
}

body.loaded .card[data-index="3"] {
    animation-delay: 1.4s;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- FOOTER --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    /* Reduced from lg */
    border-top: none;
    /* Removed top border */
}

/* Architect Badge */
/* Architect Badge (Redesign - Clean & Simple) */
/* Architect Badge (Fixed Animation) */
.architect-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    opacity: 0;
    /* Simple fade up, no width changes that cause reflow */
    animation: simpleFade 1s ease-out 2s forwards;
}

.architect-badge:hover {
    /* No transform that might stutter */
    opacity: 0.8;
}

@keyframes simpleFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.architect-badge:hover {
    /* No transform to prevent stutter */
    opacity: 0.7;
}

.architect-label {
    letter-spacing: 0.1em;
}

.architect-name {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--ink);
}

.footer-year {
    font-size: 0.8rem;
    color: var(--ink-faint);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .bento-span-2,
    .bento-span-3 {
        grid-column: span 1;
    }

    .carousel-block {
        min-height: 250px;
    }

    .card {
        aspect-ratio: auto;
        padding: var(--space-md);
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: var(--space-md);
    }

    .card-number {
        order: -1;
    }

    .card-body {
        text-align: left;
        flex: 1;
    }

    .card-title {
        font-size: 1.5rem;
    }

    .card-arrow {
        position: static;
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 600px) {
    :root {
        --space-lg: 24px;
        --space-xl: 40px;
    }

    .logo {
        font-size: 1.2rem;
    }
}

/* --- FEATURED WORKS CAROUSEL --- */
.featured-block {
    margin-top: var(--space-sm);
    padding: var(--space-md);
    position: relative;
    min-height: 220px;
}

.featured-header {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-soft);
    margin-bottom: var(--space-sm);
}

.featured-track {
    position: relative;
    min-height: 160px;
}

.featured-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.6s var(--ease);
    pointer-events: none;
}

.featured-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.featured-slide iframe {
    border-radius: 12px;
    width: 100%;
}

.placeholder-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 152px;
    border: 2px dashed var(--line);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s var(--ease);
}

.placeholder-slide:hover {
    border-color: var(--accent);
    background: rgba(201, 162, 39, 0.05);
}

.placeholder-text {
    font-size: 0.85rem;
    color: var(--ink-faint);
    letter-spacing: 0.05em;
}

/* Featured Controls */
.featured-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s var(--ease);
    color: var(--ink);
    opacity: 0;
    font-size: 0.9rem;
}

.featured-block:hover .featured-btn {
    opacity: 1;
}

.featured-btn:hover {
    background: var(--card);
    transform: translateY(-50%) scale(1.1);
}

.featured-prev {
    left: -12px;
}

.featured-next {
    right: -12px;
}

/* Featured Indicators */
.featured-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: var(--space-sm);
}

.f-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--line);
    transition: all 0.3s var(--ease);
    cursor: pointer;
}

.f-indicator.active {
    background: var(--accent);
    width: 16px;
    border-radius: 100px;
}

/* EMBED REVEAL ANIMATION */
.embed-hidden {
    opacity: 0;
    transform: translateY(10px);
}

.embed-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* --- NOLLATC INLINE PLAYER --- */
.nollatc-mini {
    display: flex;
    gap: 16px;
    padding: 14px;
    margin-top: var(--space-sm);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nollatc-mini:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
}

.np-artwork {
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    /* Flush with content height */
}

.np-artwork img {
    width: auto;
    height: 100%;
    /* Match parent height */
    aspect-ratio: 1/1;
    min-height: 90px;
    max-height: 120px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    /* GPU acceleration to prevent blur on scale */
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.nollatc-mini:hover .np-artwork img {
    transform: translateZ(0) scale(1.02);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

.np-glow {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(201, 162, 39, 0.25) 0%, transparent 70%);
    filter: blur(8px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.nollatc-mini.playing .np-glow {
    opacity: 1;
    animation: softPulse 3s ease-in-out infinite;
}

@keyframes softPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.np-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.np-tracks {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.np-track {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
}

.np-track:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: translateX(4px);
}

.np-track.active {
    background: rgba(201, 162, 39, 0.08);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.1);
}

.np-track-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.np-track-artist {
    font-size: 0.7rem;
    color: var(--ink-soft);
}

.np-track-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.np-pill {
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(201, 162, 39, 0.15);
    color: var(--accent);
    border-radius: 100px;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.np-track:hover .np-pill {
    background: rgba(201, 162, 39, 0.25);
    transform: scale(1.05);
}

/* Waveform */
.np-waveform-wrap {
    position: relative;
    height: 40px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

#np-waveform {
    width: 100%;
    height: 100%;
    display: block;
}

.np-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, rgba(201, 162, 39, 0.3), rgba(201, 162, 39, 0.1));
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Controls */
.np-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.np-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.np-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: scale(1.1);
}

.np-btn.np-play {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    font-size: 0.9rem;
}

.np-btn.np-play:hover {
    background: var(--accent);
    transform: scale(1.15);
}

.np-time {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--ink-soft);
    font-family: var(--font-mono);
}

.np-hint {
    display: block;
    margin-top: var(--space-sm);
    font-size: 0.7rem;
    color: var(--ink-soft);
    text-align: center;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: hintFadeIn 0.5s ease 2.8s forwards;
}

@keyframes hintFadeIn {
    to {
        opacity: 0.6;
    }
}

/* --- INSTAGRAM REELS --- */
.reels-block {
    padding: var(--space-md);
    position: relative;
    display: flex;
    flex-direction: column;
}

.ig-wrapper {
    flex: 0 0 350px;
    /* Strict sizing */
    min-width: 350px;
    max-width: 350px;
    height: 680px;
    /* Increased height to show bottom */
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    /* Fix top clipping */
    justify-content: center;
    border-radius: 12px;
    background: #fafafa;
    scroll-snap-align: center;
    /* Center focus */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

/* Clearer scroll container */
.reels-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* Center items */
    gap: var(--space-md);
    /* Consistent gap */
    flex-wrap: wrap;
    /* Wrap on smaller screens */
    padding: var(--space-sm) 0 var(--space-md);
    /* Breathing room for shadows */
}

/* Override Instagram's aggressive inline styles */
.ig-wrapper .instagram-media {
    width: 100% !important;
    min-width: unset !important;
    max-width: unset !important;
    margin: 0 !important;
}

/* --- (REMOVED: Featured Videos Block) --- */

/* --- SOCIAL DOCK (Luxury Update) --- */
.social-dock {
    /* Fixed positioning ensuring it stays on top */
    position: fixed;
    bottom: var(--space-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row !important;
    /* Force horizontal */
    align-items: center;
    width: max-content;
    /* Prevent squishing */
    height: auto !important;
    /* Override glass-panel height: 100% */
    overflow: visible !important;
    /* Override glass-panel overflow: hidden */
    gap: 20px;
    padding: 10px 24px !important;
    /* Override glass-panel padding */
    background: rgba(255, 255, 255, 0.75);
    /* More opaque to ensure visibility */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 100px;
    z-index: 9999;
    /* Max Z-Index */
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.6s cubic-bezier(0.2, 0, 0, 1);
    /* "Quart Out" - Ultra Smooth */

    /* Entrance */
    animation: dockEntrance 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    animation-delay: 2.0s;
}

@keyframes dockEntrance {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.social-dock:hover {
    gap: 32px;
    padding: 16px 40px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) translateY(-6px);
}

.dock-link {
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
    opacity: 0.6;
    position: relative;
}

.dock-icon {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 0 transparent);
    transition: all 0.5s cubic-bezier(0.2, 0, 0, 1);
}

.dock-link:hover {
    opacity: 1;
    transform: scale(1.35);
}

.dock-link:hover .dock-icon {
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.15));
}

/* Brand Colors & Glows */
.dock-link[aria-label="YouTube"]:hover {
    color: #FF0000;
    filter: drop-shadow(0 8px 16px rgba(255, 0, 0, 0.25));
}

.dock-link[aria-label="Instagram"]:hover {
    color: #E1306C;
    filter: drop-shadow(0 8px 16px rgba(225, 48, 108, 0.25));
}

.dock-link[aria-label="LinkedIn"]:hover {
    color: #0077b5;
    filter: drop-shadow(0 8px 16px rgba(0, 119, 181, 0.25));
}

/* --- REDUCED MOTION --- */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .preloader {
        display: none;
    }
}