/* simidiot.net - Intercepted Dossier */
/* Design Color Reference:
   #1a0f0a - Charred Mahogany (Deep Background)
   #1e1410 - Near Black (Redaction Ink)
   #1f1410 - Warm Mahogany (Temperature Shift)
   #2a2218 - Burnt Umber (Alt Text)
   #3a2a1a - Dust Mote Sepia (Noise Texture)
   #7a5c3a - Oxidized Copper (Circuit Trace)
   #a89278 - Faded Manila (Metadata)
   #c97a3b - Warm Amber (Headlines)
   #e8943a - Vacuum Tube Orange (Accents)
   #e8dcc8 - Parchment Cream (Body Text)
*/

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a0f0a;
    color: #e8dcc8;
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Noise Texture Overlay */
#noise-overlay {
    background-color: #3a2a1a;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
}

/* Temperature Shift Overlay */
#temp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(to bottom, transparent 0%, #1f1410 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

/* Circuit-Trace SVG Background */
#circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    opacity: 0.04;
    transition: opacity 0.1s;
}

.circuit-trace {
    fill: none;
    stroke: #7a5c3a;
    stroke-width: 1.5;
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    will-change: stroke-dashoffset;
}

.circuit-node {
    fill: #7a5c3a;
    stroke: none;
}

.circuit-node.hollow {
    fill: none;
    stroke: #7a5c3a;
    stroke-width: 1;
}

.circuit-ic {
    fill: none;
    stroke: #7a5c3a;
    stroke-width: 1;
}

/* Entry Void Section */
#entry-void {
    position: relative;
    z-index: 10;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.entry-line {
    display: flex;
    align-items: center;
    gap: 2px;
}

.entry-line .typewriter {
    font-family: 'Special Elite', monospace;
    font-size: clamp(1rem, 2vw, 1.4rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a89278;
}

/* Typewriter Cursor */
.cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background-color: #e8943a;
    margin-left: 2px;
    animation: cursorBlink 1s infinite;
    vertical-align: middle;
}

@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    53% { opacity: 1; }
    54% { opacity: 0; }
    97% { opacity: 0; }
}

/* Dossier Panels Section */
#dossier-panels {
    position: relative;
    z-index: 10;
    padding: clamp(4rem, 10vh, 8rem) 5%;
}

/* Glassmorphic Panel Base */
.dossier-panel {
    position: relative;
    width: clamp(320px, 60%, 800px);
    background: rgba(74, 48, 28, 0.35);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(201, 150, 80, 0.18);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(201, 150, 80, 0.08);
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: clamp(8rem, 15vh, 12rem);
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Warm inner glow - top left refraction */
.dossier-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse at 15% 15%, rgba(201, 122, 59, 0.06) 0%, transparent 70%);
    border-radius: 12px 0 0 0;
    pointer-events: none;
}

.panel-left {
    margin-left: 5%;
    margin-right: auto;
    transform: translateX(-40px) rotate(-0.5deg);
}

.panel-left.panel-visible {
    opacity: 1;
    transform: translateX(0) rotate(-0.5deg);
}

.panel-right {
    margin-left: auto;
    margin-right: 5%;
    transform: translateX(40px) rotate(0.5deg);
}

.panel-right.panel-visible {
    opacity: 1;
    transform: translateX(0) rotate(0.5deg);
}

.panel-center {
    margin: 0 auto;
    width: clamp(320px, 70%, 900px);
    transform: translateY(40px) rotate(0deg);
}

.panel-center.panel-visible {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* Panel Tab */
.panel-tab {
    position: absolute;
    top: -24px;
    left: 30px;
    width: 120px;
    height: 24px;
    background: rgba(74, 48, 28, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 150, 80, 0.18);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-label {
    font-family: 'Special Elite', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a89278;
}

/* Typography */
h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.02em;
    color: #c97a3b;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    min-height: 1.2em;
}

h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: -0.02em;
    color: #c97a3b;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    min-height: 1.3em;
}

.body-text {
    font-family: 'Libre Baskerville', Georgia, serif;
    color: #e8dcc8;
    margin-bottom: 1.2rem;
}

.meta-label {
    font-family: 'Special Elite', monospace;
    font-size: clamp(0.75rem, 1vw, 0.9rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a89278;
    margin-top: 1.5rem;
}

/* Dossier Quote */
.dossier-quote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    color: #c97a3b;
    border-left: 3px solid #2a2218;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(201, 122, 59, 0.05);
    border-radius: 0 8px 8px 0;
}

/* Redaction Bars */
.redacted {
    position: relative;
    display: inline;
    cursor: pointer;
}

.redact-text {
    color: #e8943a;
    transition: opacity 0.3s ease;
}

.redacted[data-revealed='false'] .redact-text {
    opacity: 0;
}

.redacted[data-revealed='true'] .redact-text {
    opacity: 1;
}

.redact-bar {
    position: absolute;
    top: 0;
    left: -2px;
    right: -2px;
    bottom: 0;
    background-color: #1e1410;
    border-radius: 2px;
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
}

.redacted[data-revealed='true'] .redact-bar {
    transform: translateX(120%);
}

/* The Question Section */
#the-question {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
}

#the-question .panel-content {
    text-align: center;
}

.cursor-final {
    display: block;
    margin: 1rem auto 0;
    width: 2px;
    height: 1.5rem;
}

/* Circuit Dissolve Section */
#circuit-dissolve {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5%;
}

.dissolve-text {
    text-align: center;
    opacity: 1;
    transition: opacity 2s ease;
}

.dissolve-meta {
    font-size: clamp(0.85rem, 1.1vw, 1rem);
}

/* Navigation Lens */
#nav-lens {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 200;
    width: 80px;
    height: 80px;
}

.lens-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(74, 48, 28, 0.5);
    backdrop-filter: blur(16px) saturate(1.2);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(201, 150, 80, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(201, 122, 59, 0.3);
    animation: lensPulse 4s ease-in-out infinite;
    transition: box-shadow 0.3s;
}

@keyframes lensPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 122, 59, 0.3); }
    50% { box-shadow: 0 0 40px rgba(201, 122, 59, 0.15); }
}

.lens-menu {
    position: absolute;
    bottom: 90px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#nav-lens:hover .lens-menu,
#nav-lens.lens-active .lens-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.lens-item {
    font-family: 'Special Elite', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #a89278;
    text-decoration: none;
    padding: 6px 16px;
    background: rgba(74, 48, 28, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(201, 150, 80, 0.18);
    border-radius: 6px;
    white-space: nowrap;
    text-align: right;
    transition: color 0.3s, border-color 0.3s;
}

.lens-item:hover {
    color: #e8943a;
    border-color: rgba(232, 148, 58, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .dossier-panel {
        width: 90%;
    }
    
    .panel-left {
        margin-left: 2%;
        transform: translateX(-20px) rotate(-0.3deg);
    }
    
    .panel-left.panel-visible {
        transform: translateX(0) rotate(-0.3deg);
    }
    
    .panel-right {
        margin-right: 2%;
        transform: translateX(20px) rotate(0.3deg);
    }
    
    .panel-right.panel-visible {
        transform: translateX(0) rotate(0.3deg);
    }
    
    .panel-center {
        width: 94%;
    }
    
    #nav-lens {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
    }
    
    .lens-inner {
        width: 60px;
        height: 60px;
    }
    
    .lens-inner svg {
        width: 18px;
        height: 18px;
    }
}
