:root {
    --scroll-blur: 0px;
    --bg-black: #000000;
    --text-white: #ffffff;
    --accent-gold: #d4af37;
    --font-mono: 'IBM Plex Mono', monospace;
    --font-serif: 'Playfair Display', serif;
}

/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.identity-page {
    background: var(--bg-black) !important;
    color: var(--text-white);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
}

/* High-Contrast Inverted Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1000000;
    mix-blend-mode: difference;
}
.cursor-dot { 
    width: 6px; 
    height: 6px; 
    background: #ffffff; 
    border-radius: 50%; 
    position: absolute; 
    transform: translate(-50%, -50%); 
}
.cursor-circle { 
    width: 32px; 
    height: 32px; 
    border: 2px solid #ffffff; 
    border-radius: 50%; 
    position: absolute; 
    transform: translate(-50%, -50%); 
    transition: width 0.3s ease, height 0.3s ease;
}

/* Clean Header with Auto-Inversion */
.identity-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1000;
    mix-blend-mode: difference; /* Inverts color when over white section */
    color: white; /* Base color to be inverted */
}
.small-logo {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    letter-spacing: 12px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    margin-bottom: 10px;
}
.pronunciation {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 3px;
    opacity: 0.4;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.sound-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.sound-toggle:hover { opacity: 1; }
.sound-visual {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sound-icons { position: relative; width: 16px; height: 16px; }
.sound-icons svg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
    opacity: 0; 
    transform: scale(0.8); 
    will-change: transform, opacity;
}

.sound-toggle.playing .icon-play { opacity: 1; transform: scale(1); color: var(--accent-gold); }
.sound-toggle:not(.playing) .icon-mute { opacity: 1; transform: scale(1); }

.waveform { display: flex; gap: 3px; height: 12px; align-items: flex-end; will-change: transform; }
.waveform span { width: 1.5px; height: 100%; background: #ffffff; transform: scaleY(0.3); transition: transform 0.3s ease; will-change: transform; }

.playing .waveform span { animation: wave 1s infinite alternate; background: var(--accent-gold); }
.playing .waveform span:nth-child(2) { animation-delay: 0.1s; }
.playing .waveform span:nth-child(3) { animation-delay: 0.2s; }
.playing .waveform span:nth-child(4) { animation-delay: 0.3s; }
.playing .waveform span:nth-child(5) { animation-delay: 0.4s; }
.playing .waveform span:nth-child(6) { animation-delay: 0.5s; }

@keyframes wave { from { transform: scaleY(0.3); } to { transform: scaleY(1); } }

/* FIXED LOGO ANIMATION CONTAINER */
.logo-animation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10; /* Behind text */
    perspective: 2000px;
}
/* Smooth, Decelerated Transitions (2s Duration) */
.logo-big {
    font-family: var(--font-serif);
    font-size: 16vw;
    display: flex;
    gap: 3vw;
    transition: transform 2s cubic-bezier(0.23, 1, 0.32, 1); 
    transform-style: preserve-3d;
    backface-visibility: hidden;
}
.letter { 
    display: inline-block; 
    transition: transform 1.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 1.8s ease; 
    will-change: transform, opacity;
    color: rgba(255, 255, 255, 0.6);
}

.letter.focus {
    color: rgba(255, 255, 255, 0.85);
}

/* Sections */
.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
}

.identity-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    padding: 0 10%;
    display: flex;
    align-items: center;
    z-index: 20; /* Above logo */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    contain: layout paint;
}

.intro-content {
    margin: 30vh auto 0;
    text-align: center;
    will-change: transform, opacity;
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
}
.gold-fade {
    color: var(--accent-gold);
    animation: fadePulse 3s infinite alternate;
}
@keyframes fadePulse { from { opacity: 0.3; } to { opacity: 0.8; } }

/* Story Blocks - Performance Optimized Reveals */
.glass-text {
    max-width: 500px;
    padding: 60px;
    background: rgba(15, 15, 15, 0.8); 
    border: 1px solid rgba(212, 175, 55, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 4px;
    opacity: 0;
    transform: perspective(1000px) rotateX(5deg) translateY(40px);
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), 
                opacity 1.2s ease;
    box-shadow: 0 50px 100px rgba(0,0,0,0.9);
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
}

.glass-text h2 {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
    filter: blur(10px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.glass-text p {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(5px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity, filter;
}

.identity-section.active .glass-text { 
    opacity: 1; 
    transform: perspective(1000px) rotateX(0deg) translateY(0); 
}

.identity-section.active .glass-text h2 {
    opacity: 1;
    transform: scale(1) translateY(0);
    filter: blur(0);
    transition-delay: 0.3s;
}

.identity-section.active .glass-text p {
    opacity: 0.8;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: 0.6s;
}

/* Force Overlap Placement */
.right { margin-left: 42%; }
.left { margin-right: 42%; }
.center { margin: 0 auto; text-align: center; }

/* Specific Card Overlaps */
#sec-d .glass-text { transform: translate3d(0, 40px, 0); } 
#sec-d2 .glass-text { transform: translate3d(0, 40px, 0); }

section.active#sec-d .glass-text { transform: translate3d(0, 0, 0); }
section.active#sec-d2 .glass-text { transform: translate3d(0, 0, 0); }

.mono { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 4px; font-size: 0.75rem; }
.glass-text h2 { margin-bottom: 20px; font-size: 1rem; color: var(--accent-gold); }
.glass-text p { font-size: 1.15rem; font-weight: 300; line-height: 1.8; }

/* Manifesto Section Focus (White Background) */
.manifesto {
    background: white;
    color: black;
    height: auto;
    padding: 120px 10%;
    z-index: 100;
}
.manifesto-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; }
.specs ul { list-style: none; }
.specs li { display: flex; justify-content: space-between; border-bottom: 1px solid #eee; padding: 15px 0; font-size: 0.7rem; }
.statement { font-size: 2.5rem; font-weight: 300; line-height: 1.3; }
.signature { font-family: var(--font-serif); font-size: 5rem; opacity: 0.1; margin-top: 40px; letter-spacing: 12px; }

@media (max-width: 768px) {
    .logo-big { font-size: 25vw; }
    .manifesto-grid { grid-template-columns: 1fr; }
    .statement { font-size: 1.6rem; }
}

/* ============================================
   SECTION 8: CONNECT WITH DODCH
   ============================================ */
.connect-section {
    background: #000;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
}

.connect-inner {
    max-width: 700px;
    width: 100%;
    text-align: center;
}

.connect-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.connect-sub {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
    margin-bottom: 3rem;
    font-family: var(--font-mono);
}

.connect-socials {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.connect-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.3s ease, padding-left 0.3s ease;
    position: relative;
    overflow: hidden;
}

.connect-link::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.connect-link:hover {
    color: #fff;
    padding-left: 0.5rem;
}

.connect-link:hover::before {
    width: 100%;
}

.connect-platform {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: inherit;
}

.connect-handle {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.connect-link:hover .connect-handle {
    opacity: 1;
}

.connect-arrow {
    width: 20px;
    height: 20px;
    opacity: 0.4;
    transition: transform 0.3s ease, opacity 0.3s ease;
    flex-shrink: 0;
}

.connect-link:hover .connect-arrow {
    transform: translate(4px, -4px);
    opacity: 1;
}

.connect-shop-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid rgba(212,175,55,0.5);
    color: var(--accent-gold);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-radius: 60px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.connect-shop-cta:hover {
    background: var(--accent-gold);
    color: #000;
    border-color: var(--accent-gold);
}

@media (max-width: 768px) {
    .connect-title { font-size: 2rem; }
    .connect-platform { font-size: 1.1rem; }
    .connect-handle { display: none; }
    .connect-section { padding: 0 6%; }
}
