@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --color-cream: #FFF3E1;
    --color-charcoal: #1E1E1E;
    --color-accent-orange: #FF5A00;
    
    --bg-color: var(--color-cream);
    --text-color: var(--color-charcoal);
    --text-muted: rgba(30, 30, 30, 0.6);
    --border-color: rgba(30, 30, 30, 0.12);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-theme: background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), color 0.8s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.dark-theme {
    --bg-color: var(--color-charcoal);
    --text-color: var(--color-cream);
    --text-muted: rgba(255, 243, 225, 0.6);
    --border-color: rgba(255, 243, 225, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    background-color: var(--color-cream);
    color: var(--color-charcoal);
    font-family: var(--font-sans);
    transition: var(--transition-theme);
}

html.has-scroll-smooth { overflow: hidden; }
html.has-scroll-dragging { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; }
.has-scroll-smooth body { overflow: hidden; }
.has-scroll-smooth [data-scroll-container] { min-height: 100vh; }

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition-theme);
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
.c-scrollbar { background: transparent !important; width: 6px !important; }
.c-scrollbar-thumb { background: rgba(30, 30, 30, 0.2) !important; border-radius: 3px !important; transition: background 0.3s; }
.dark-theme .c-scrollbar-thumb { background: rgba(255, 243, 225, 0.2) !important; }
.c-scrollbar-thumb:hover { background: var(--text-color) !important; }

/* Film Grain */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    opacity: 0.05; z-index: 9999; pointer-events: none;
    background: 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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Custom Morphing Cursor */
.custom-cursor {
    width: 10px; height: 10px; background-color: var(--text-color); border-radius: 50%;
    position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 10000;
    mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
.custom-cursor-ring {
    width: 40px; height: 40px; border: 1px solid var(--text-color); border-radius: 50%;
    position: fixed; transform: translate(-50%, -50%); pointer-events: none; z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), height 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.8s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s;
}
.custom-cursor-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: var(--color-charcoal); font-family: var(--font-mono); font-size: 9px;
    font-weight: 700; text-transform: uppercase; opacity: 0; pointer-events: none;
    transition: opacity 0.2s; letter-spacing: 0.05em;
}

/* Cursor States */
body.hover-link .custom-cursor { width: 6px; height: 6px; background-color: var(--color-accent-orange); }
body.hover-link .custom-cursor-ring { width: 50px; height: 50px; background-color: rgba(255, 255, 255, 0.1); }
body.hover-preview .custom-cursor { width: 70px; height: 70px; background-color: var(--color-cream); mix-blend-mode: normal; }
body.hover-preview .custom-cursor-ring { opacity: 0; }
body.hover-preview .custom-cursor-text { opacity: 1; color: var(--color-charcoal); }

/* ==========================================
   CINEMATIC COUNTDOWN LOADER
   ========================================== */
.loader-screen {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--color-charcoal); color: var(--color-cream); z-index: 10000;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 60px 8%; font-family: var(--font-serif); overflow: hidden;
}
.loader-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(255, 253, 225, 0.1); padding-bottom: 20px;
}
.loader-header span { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase; }
.loader-main { display: flex; justify-content: space-between; align-items: flex-end; flex: 1; padding: 80px 0; }
.loader-phrase-wrap { font-size: clamp(2rem, 4vw, 4.5rem); font-weight: 600; line-height: 1.1; max-width: 600px; }
.loader-phrase { opacity: 0; transform: translateY(20px); display: none; }
.loader-phrase.active { display: block; }
.loader-counter-container { text-align: right; }
.loader-counter { font-size: clamp(8rem, 20vw, 22rem); font-weight: 700; line-height: 0.8; font-style: italic; letter-spacing: -0.05em; }
.loader-footer {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 1px solid rgba(255, 253, 225, 0.1); padding-top: 20px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em;
    color: rgba(255, 243, 225, 0.5);
}

/* ==========================================
   HEADER & FIXED NAV
   ========================================== */
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 40px 8%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; pointer-events: none;
}
header * { pointer-events: all; }

.logo {
    font-family: var(--font-serif); font-size: 26px; font-weight: 700;
    color: var(--text-color); text-decoration: none; letter-spacing: -0.02em;
    transition: var(--transition-theme);
}
.logo span { font-style: italic; font-weight: 500; }

nav { display: flex; gap: 40px; }
nav a {
    color: var(--text-color); text-decoration: none; font-family: var(--font-mono);
    font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
    transition: var(--transition-theme), opacity 0.3s; position: relative; padding-bottom: 4px;
}
nav a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 1px;
    background-color: var(--text-color);
    transition: width 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}
nav a:hover::after { width: 100%; }

.sound-toggle-btn {
    background: none; border: 1px solid var(--border-color); border-radius: 50%;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    color: var(--text-color); transition: var(--transition-theme), transform 0.3s;
}
.sound-toggle-btn:hover { transform: scale(1.05); }
.sound-toggle-btn.active { background-color: var(--text-color); color: var(--bg-color); }

/* ==========================================
   SECTION BASE
   ========================================== */
section {
    min-height: 100vh; padding: 160px 8% 120px;
    display: flex; flex-direction: column; justify-content: center;
    position: relative; 
    /* border-bottom: 1px solid var(--border-color); */
    transition: var(--transition-theme);
}

/* ==========================================
   HERO SECTION — Flowing Statement with Inline Video
   ========================================== */
#hero {
    padding-top: 180px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.hero-statement {
    font-family: var(--font-serif);
    font-size: clamp(2.8rem, 5.5vw, 5.5rem);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-color);
    transition: var(--transition-theme);
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    text-wrap: balance;
}

.hero-statement > span {
    display: block;
}

.hero-statement em {
    font-style: italic;
    font-weight: 600;
}

/* Inline Video Capsule */
.hero-video-capsule {
    display: inline-block;
    width: clamp(80px, 10vw, 140px);
    height: clamp(40px, 5vw, 65px);
    border-radius: 100px;
    overflow: hidden;
    vertical-align: middle;
    position: relative;
    margin: 0 0.15em;
    transform: translateY(-0.08em);
    transition: border-radius 0.1s ease;
}

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

/* Inline Video Capsule placeholder when float layout is active */
.hero-video-placeholder {
    display: inline-block;
    width: clamp(80px, 10vw, 140px);
    height: clamp(40px, 5vw, 65px);
    border-radius: 100px;
    vertical-align: middle;
    margin: 0 0.15em;
    transform: translateY(-0.08em);
    background-color: transparent;
}

/* Floating capsule overrides when layout is enhanced by JS */
.hero-video-capsule.floating-capsule {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    pointer-events: none;
    margin: 0;
    transform: none;
}

/* Hero Bottom Bar */
.hero-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    transition: var(--transition-theme);
}

.hero-meta {
    display: flex;
    gap: 40px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    transition: var(--transition-theme);
}

.scroll-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-color);
}
.scroll-indicator i { width: 14px; height: 14px; transition: transform 0.3s; }
.scroll-indicator:hover i { transform: translateY(3px); }


/* ==========================================
   ABOUT SECTION — Manifesto + Bio + Pillars
   ========================================== */
#about {
    padding-top: 280px;
    padding-bottom: 120px;
    /* border-bottom: 1px solid var(--border-color); */
}

.about-intro {
    margin-bottom: 120px;
}

.manifesto-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    line-height: 1.25;
    font-weight: 400;
    font-style: italic;
    color: var(--text-color);
    transition: var(--transition-theme);
    max-width: 900px;
    text-wrap: balance;
}

.manifesto-quote em {
    font-style: normal;
    font-weight: 600;
}

.about-body {
    display: grid;
    grid-template-columns: 0.45fr 0.55fr;
    gap: 100px;
    align-items: start;
}

.about-col-left {
    position: sticky;
    top: 160px;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.about-bio-text {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    transition: var(--transition-theme);
    max-width: 55ch;
}

.about-bio-text em {
    font-style: italic;
    color: var(--text-color);
}

.about-stats {
    display: flex;
    gap: 50px;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    transition: var(--transition-theme);
}

.about-stat-item h4 {
    font-family: var(--font-serif);
    font-size: 40px;
    font-weight: 700;
    font-style: italic;
}

.about-stat-item p {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 5px;
    transition: var(--transition-theme);
}

.about-col-right {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Pillar Cards */
.pillar-card {
    background-color: rgba(30, 30, 30, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 50px;
    transition: var(--transition-theme), transform 0.4s;
}
.dark-theme .pillar-card { background-color: rgba(255, 243, 225, 0.02); }
.pillar-card:hover { transform: translateY(-5px); border-color: var(--text-color); }

.pillar-card-title {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.pillar-card-title svg { width: 24px; height: 24px; opacity: 0.5; }

.pillar-card-desc {
    font-size: 15px; color: var(--text-muted); margin-bottom: 30px;
    line-height: 1.7; transition: var(--transition-theme);
}

.pillar-skills-title {
    font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 12px; color: var(--text-color);
    transition: var(--transition-theme);
}

.pillar-skills-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.pillar-tag {
    font-family: var(--font-mono); font-size: 11px; padding: 4px 10px;
    border: 1px solid var(--border-color); border-radius: 4px; color: var(--text-muted);
    transition: var(--transition-theme);
}
.pillar-card:hover .pillar-tag { border-color: var(--text-color); color: var(--text-color); }

/* ==========================================
   PORTFOLIO SECTION
   ========================================== */
#portfolio {
    padding-bottom: 80px;
}

.portfolio-header {
    margin-bottom: 80px;
}

.portfolio-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
    font-weight: 700;
    font-style: italic;
}

/* Floating Follow Preview Card */
.floating-project-preview {
    position: fixed; width: 300px; height: 380px; pointer-events: none; z-index: 9998;
    border-radius: 12px; overflow: hidden; opacity: 0;
    transform: scale(0.6) translate(-50%, -50%);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.floating-project-preview.active { opacity: 1; transform: scale(1) translate(-50%, -50%); }
.floating-preview-inner { width: 100%; height: 100%; background-color: var(--color-charcoal); position: relative; transform-style: preserve-3d; }
.floating-preview-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; position: absolute; top: 0; left: 0; transition: opacity 0.3s ease; }
.floating-preview-img.active { opacity: 0.95; }

/* Portfolio Rows */
.projects-list { border-top: 1px solid var(--border-color); transition: var(--transition-theme); }
.projects-list-header {
    display: grid; grid-template-columns: 100px 1.5fr 1fr 1.5fr; gap: 40px;
    padding: 20px 0; border-bottom: 2px solid var(--text-color);
    font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--text-muted); transition: var(--transition-theme);
}
.project-row {
    display: grid; grid-template-columns: 100px 1.5fr 1fr 1.5fr; gap: 40px;
    align-items: start; padding: 45px 0; border-bottom: 1px solid var(--border-color);
    text-decoration: none; color: var(--text-color);
    transition: var(--transition-theme), opacity 0.3s, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-row:active { transform: scale(0.985); }
.projects-list:hover .project-row:not(:hover) { opacity: 0.30; }

.project-row-num {
    font-family: var(--font-mono); font-size: 12px; color: var(--text-muted);
    transition: var(--transition-theme); align-self: start; padding-top: 6px;
}
.project-row-title {
    font-family: var(--font-serif); font-size: clamp(2rem, 3.5vw, 3.8rem);
    font-weight: 700; text-transform: uppercase;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), color 0.4s; line-height: 0.95;
}
.project-row:hover .project-row-title { transform: translateX(10px); }
.project-row-category {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted); transition: var(--transition-theme);
}
.project-row-desc {
    font-size: 14px; color: var(--text-muted); line-height: 1.6; transition: var(--transition-theme);
}

/* ==========================================
   BRAUN AUDIO SANDBOX
   ========================================== */
#sandbox { border-bottom: 1px solid var(--border-color); }

.sandbox-container {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 100px; align-items: center;
}

.sandbox-info h2 {
    font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05; font-weight: 700; text-transform: uppercase; margin-bottom: 25px;
}
.sandbox-info h2 em { font-style: italic; font-weight: 700; }

.sandbox-info p {
    font-size: 16px; color: var(--text-muted); margin-bottom: 25px; transition: var(--transition-theme);
}

.sound-matrix-unmute-row { display: flex; align-items: center; gap: 15px; margin-top: 35px; }

#synthStatusText {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em;
    color: var(--text-muted); transition: var(--transition-theme);
}

/* Braun Synth Board */
.braun-synth-board {
    background-color: var(--color-cream); border: 1px solid var(--color-charcoal);
    border-radius: 12px; padding: 40px; color: var(--color-charcoal);
    box-shadow: 0 20px 50px rgba(30, 30, 30, 0.08); position: relative;
    max-width: 580px; margin: 0 auto;
}
.dark-theme .braun-synth-board {
    background-color: var(--color-cream); border-color: var(--color-charcoal); color: var(--color-charcoal);
}
.braun-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(30, 30, 30, 0.15); padding-bottom: 20px; margin-bottom: 30px;
}
.braun-branding { display: flex; flex-direction: column; }
.braun-logo { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.braun-sublogo { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; color: rgba(30, 30, 30, 0.5); text-transform: uppercase; margin-top: 2px; }
.braun-led { width: 6px; height: 6px; border-radius: 50%; background-color: rgba(30, 30, 30, 0.15); transition: background-color 0.3s, box-shadow 0.3s; }
.braun-led.active { background-color: var(--color-accent-orange); box-shadow: 0 0 8px var(--color-accent-orange); }

/* CRT Screen */
.braun-screen {
    width: 100%; height: 180px; background-color: #050805;
    border: 1px solid rgba(30, 30, 30, 0.3); border-radius: 6px; margin-bottom: 30px;
    overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center;
    transform-origin: center; transition: background-color 0.5s ease;
}
.braun-screen::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 255, 100, 0.05) 0%, transparent 80%),
                linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 100%, 100% 4px, 6px 100%;
    opacity: 0; pointer-events: none; z-index: 5; transition: opacity 0.5s ease;
}
.braun-screen.active { background-color: #0d140e; animation: crt-power-on 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.braun-screen.active::before { opacity: 0.15; animation: crt-flicker 0.15s infinite; }

@keyframes crt-power-on {
    0% { transform: scaleY(0.01) scaleX(0); filter: brightness(5) contrast(3); }
    40% { transform: scaleY(0.01) scaleX(1); filter: brightness(5) contrast(3); }
    100% { transform: scaleY(1) scaleX(1); filter: brightness(1) contrast(1); }
}
@keyframes crt-flicker { 0% { opacity: 0.12; } 50% { opacity: 0.18; } 100% { opacity: 0.12; } }

.braun-screen-grid {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(0, 255, 100, 0.05) 1px, transparent 1px),
                       linear-gradient(90deg, rgba(0, 255, 100, 0.05) 1px, transparent 1px);
    background-size: 20px 20px; pointer-events: none;
}
.braun-visualizer-svg { width: 100%; height: 100px; z-index: 2; }
.braun-visualizer-path { fill: none; stroke: #00FF66; stroke-width: 1.5px; }
.braun-screen-lbl {
    position: absolute; top: 15px; left: 20px; font-family: var(--font-mono);
    font-size: 8px; color: rgba(0, 255, 100, 0.45); pointer-events: none;
    text-transform: uppercase; letter-spacing: 0.15em;
}

/* Synth Controls */
.seq-toggle-btn {
    background: none; border: 1px solid var(--border-color); border-radius: 50%;
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    color: var(--text-color); transition: var(--transition-theme), transform 0.3s;
}
.seq-toggle-btn:hover { transform: scale(1.05); }
.seq-toggle-btn.active { background-color: var(--color-accent-orange); border-color: var(--color-accent-orange); color: var(--color-cream); }

.sound-status-display { display: flex; flex-direction: column; gap: 2px; }
#synthSeqStatusText { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.05em; color: var(--text-muted); transition: var(--transition-theme); }

.braun-controls-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 35px; }
.braun-control-group { display: flex; flex-direction: column; gap: 10px; }
.braun-control-lbl { font-family: var(--font-mono); font-size: 10px; color: rgba(30, 30, 30, 0.5); text-transform: uppercase; letter-spacing: 0.05em; }
.braun-wave-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.braun-wave-btn {
    background-color: transparent; border: 1px solid rgba(30,30,30,0.25); border-radius: 6px;
    padding: 10px; color: rgba(30, 30, 30, 0.6); display: flex; flex-direction: column;
    align-items: center; gap: 4px; transition: all 0.3s;
}
.braun-wave-btn:hover { color: var(--color-charcoal); border-color: var(--color-charcoal); }
.braun-wave-btn.active { background-color: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-cream); font-weight: 500; }
.braun-wave-btn span { font-family: var(--font-mono); font-size: 8px; text-transform: uppercase; letter-spacing: 0.05em; }

.braun-knob-row { display: flex; gap: 20px; }
.braun-knob { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.braun-slider-input { width: 100%; -webkit-appearance: none; background: rgba(30, 30, 30, 0.15); height: 2px; outline: none; }
.braun-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 14px; height: 14px; border-radius: 50%;
    background: var(--color-charcoal); border: 1px solid var(--color-cream);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); transition: transform 0.1s;
}
.braun-slider-input::-webkit-slider-thumb:hover { transform: scale(1.15); }
.braun-knob-lbl { font-family: var(--font-mono); font-size: 9px; color: rgba(30, 30, 30, 0.5); text-transform: uppercase; }

.braun-keyboard { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.braun-key {
    height: 65px; background-color: transparent; border: 1px solid rgba(30,30,30,0.3);
    border-radius: 4px; color: rgba(30, 30, 30, 0.5); font-family: var(--font-mono);
    font-size: 11px; font-weight: 500; display: flex; flex-direction: column;
    justify-content: flex-end; align-items: center; padding-bottom: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.braun-key:hover { border-color: var(--color-charcoal); color: var(--color-charcoal); background-color: rgba(30,30,30,0.02); }
.braun-key.active { background-color: var(--color-charcoal); border-color: var(--color-charcoal); color: var(--color-cream); transform: scale(0.96); box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.braun-key span { font-size: 8px; opacity: 0.5; margin-top: 3px; }

/* ==========================================
   CONTACT & FOOTER
   ========================================== */
#contact {
    min-height: 80vh; border-bottom: none;
    display: flex; flex-direction: column; justify-content: space-between;
    padding-top: 180px; padding-bottom: 60px;
}

.contact-main {
    max-width: 1000px;
}

.contact-headline {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 5rem);
    line-height: 1.08;
    font-weight: 700;
    text-wrap: balance;
}

.contact-headline em {
    font-style: italic;
    font-weight: 700;
}

.contact-email-link {
    display: inline-block; color: var(--text-color); text-decoration: none;
    border-bottom: 1.5px solid var(--text-color); padding-bottom: 6px; margin-top: 50px;
    font-family: var(--font-mono); font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500; letter-spacing: 0.02em;
    transition: var(--transition-theme), opacity 0.3s;
}
.contact-email-link:hover { opacity: 0.65; }

.contact-footer {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px;
    margin-top: 100px; border-top: 1px solid var(--border-color); padding-top: 40px;
    align-items: start; transition: var(--transition-theme);
}

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-col-title {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 15px;
    transition: var(--transition-theme);
}
.contact-col-links { display: flex; flex-direction: column; gap: 8px; }
.contact-col-links a {
    color: var(--text-color); text-decoration: none; font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
    transition: var(--transition-theme), opacity 0.3s;
}
.contact-col-links a:hover { opacity: 0.6; }

.contact-credits {
    text-align: right; font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted);
    transition: var(--transition-theme); line-height: 1.6;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (max-width: 1024px) {
    /* Re-enable system cursor on touch/tablet screens to eliminate lag */
    * {
        cursor: auto !important;
    }
    .custom-cursor, .custom-cursor-ring {
        display: none !important;
    }
    
    section { padding: 100px 6% 60px; }
    header { padding: 25px 6%; }
    .about-body { grid-template-columns: 1fr; gap: 40px; }
    .about-col-left { position: relative; top: 0; }
    .project-row { grid-template-columns: 60px 1.5fr 1fr 1fr; gap: 20px; padding: 30px 0; }
    .sandbox-container { grid-template-columns: 1fr; gap: 50px; }
    .contact-footer { grid-template-columns: 1fr; gap: 40px; }
    .contact-credits { text-align: left; }
    .hero-meta { flex-wrap: wrap; gap: 20px; }
}

@media (max-width: 991px) {
    .projects-list-header { display: none; }
    .project-row { grid-template-columns: 50px 1.2fr 1fr; gap: 20px; padding: 30px 0; }
    .project-row-desc { grid-column: 2 / -1; margin-top: 10px; }
}

@media (max-width: 768px) {
    nav { display: none; }
    
    .hero-statement {
        font-size: clamp(1.8rem, 8vw, 2.6rem);
        line-height: 1.25;
    }
    
    .hero-video-capsule {
        width: clamp(60px, 15vw, 90px);
        height: clamp(30px, 8vw, 45px);
    }
    
    .hero-video-placeholder {
        width: clamp(60px, 15vw, 90px);
        height: clamp(30px, 8vw, 45px);
    }
    
    .hero-bottom-bar {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        text-align: center;
        margin-top: 50px;
    }
    
    .hero-meta {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }
    
    #about {
        padding-top: 140px;
        padding-bottom: 80px;
    }
    
    .about-intro {
        margin-bottom: 60px;
    }
    
    .manifesto-quote {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
    }
    
    .project-row { grid-template-columns: 40px 1fr; gap: 15px; padding: 25px 0; }
    .project-row-category, .project-row-desc { grid-column: 2; }
    .contact-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    
    .braun-synth-board {
        padding: 25px 20px;
    }
    .braun-controls-grid { grid-template-columns: 1fr; gap: 20px; }
    .braun-keyboard { grid-template-columns: repeat(4, 1fr); gap: 4px; }
}

/* ==========================================
   PROJECT DETAIL OVERLAY
   ========================================== */
.project-detail-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: var(--bg-color); color: var(--text-color); z-index: 200;
    opacity: 0; pointer-events: none;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    overflow-y: auto; padding: 60px 8%;
}
.project-detail-overlay.active { opacity: 1; pointer-events: all; }

.detail-close-btn {
    background: none; border: none; color: var(--text-color); font-family: var(--font-mono);
    font-size: 11px; letter-spacing: 0.15em; display: flex; align-items: center;
    gap: 10px; margin-bottom: 60px; padding: 0; transition: opacity 0.3s;
}
.detail-close-btn:hover { opacity: 0.6; }
.detail-close-btn i { width: 16px; height: 16px; }

.detail-content-wrap { max-width: 1400px; margin: 0 auto; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.detail-info-col { display: flex; flex-direction: column; }
.detail-num { font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.detail-title {
    font-family: var(--font-serif); font-size: clamp(3rem, 6.5vw, 7rem);
    line-height: 0.9; font-weight: 700; text-transform: uppercase; margin-bottom: 25px;
}
.detail-category {
    font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--color-accent-orange); margin-bottom: 40px; display: inline-block;
}
.detail-desc {
    font-family: var(--font-serif); font-size: clamp(1.6rem, 2.5vw, 2.8rem);
    line-height: 1.25; font-weight: 600; margin-bottom: 60px; max-width: 600px;
}
.detail-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; border-top: 1px solid var(--border-color); padding-top: 40px; }
.detail-meta-col {
    display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono);
    font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted);
}
.detail-meta-col span { color: var(--text-color); font-size: 13px; text-transform: none; letter-spacing: normal; font-weight: 500; line-height: 1.4; }

.detail-media-col { width: 100%; }
.detail-image-container {
    width: 100%; aspect-ratio: 4/3; background-color: rgba(30, 30, 30, 0.02);
    border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden;
    position: relative; display: flex; align-items: center; justify-content: center;
}
.dark-theme .detail-image-container { background-color: rgba(255, 243, 225, 0.02); }
.detail-image { width: 100%; height: 100%; object-fit: cover; }
.detail-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

::view-transition-old(root), ::view-transition-new(root) {
    animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 991px) {
    .detail-grid { grid-template-columns: 1fr; gap: 60px; }
    .detail-desc { margin-bottom: 40px; }
}

/* ==========================================
   AMBIENT GLOWS
   ========================================== */
.bg-glows { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.glow-1 {
    position: absolute; top: -20%; right: -10%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255, 90, 0, 0.04) 0%, transparent 70%);
    border-radius: 50%; filter: blur(80px);
}
.glow-2 {
    position: absolute; bottom: -20%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(255, 243, 225, 0.06) 0%, transparent 70%);
    border-radius: 50%; filter: blur(80px);
}

/* ==========================================
   REDUCED MOTION
   ========================================== */
@media (prefers-reduced-motion: reduce) {
    html, body, html.has-scroll-smooth, .has-scroll-smooth body {
        overflow: auto !important; scroll-behavior: auto !important;
    }
    [data-scroll-container] { transform: none !important; }
    * {
        animation-delay: 0s !important; animation-duration: 0s !important;
        animation-iteration-count: 1 !important; transition-delay: 0s !important;
        transition-duration: 0s !important; transform: none !important;
    }
    .custom-cursor, .custom-cursor-ring, .floating-project-preview { display: none !important; }
}
