/* ==========================================================================
   wild.css — EY-Inspired Section-Level Styles
   ========================================================================== */

/* ── Executive Console (Cmd+K) ── */
#hacker-console {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(26, 26, 36, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 9999;
    color: var(--ey-white);
    font-family: var(--font-mono, monospace);
    padding: var(--space-8);
    display: none;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
#hacker-console.active { display: flex; }
.console-output { margin-bottom: var(--space-4); color: rgba(255,255,255,0.6); }
.console-output strong { color: var(--ey-yellow); font-weight: 600; }
.console-input-line {
    display: flex;
    align-items: center;
    border-top: 1px solid rgba(255,230,0,0.2);
    padding-top: var(--space-4);
    margin-top: var(--space-4);
}
.console-prompt { margin-right: var(--space-3); color: var(--ey-yellow); font-weight: bold; }
#console-input {
    background: transparent; border: none;
    color: var(--ey-white);
    font-family: inherit; font-size: inherit; flex: 1; outline: none;
}

/* ── Telemetry Widget ── */
#telemetry-widget {
    position: fixed;
    bottom: var(--space-4); left: var(--space-4);
    background: var(--ey-charcoal-2);
    border-left: 3px solid var(--ey-yellow);
    padding: var(--space-4);
    font-family: var(--font-mono, monospace);
    font-size: 10px;
    color: rgba(255,230,0,0.8);
    z-index: 9998;
    pointer-events: none;
    opacity: 0.85;
}

/* ── Ghost Terminal ── */
#ghost-terminal {
    position: fixed;
    bottom: var(--space-4); right: -400px;
    width: 350px;
    background: var(--ey-charcoal);
    border-left: 3px solid var(--ey-yellow);
    padding: var(--space-4);
    z-index: 9998;
    transition: right 0.5s var(--ease-out-expo);
    font-family: var(--font-mono, monospace);
    box-shadow: -8px 0 32px rgba(0,0,0,0.3);
}
#ghost-terminal.active { right: var(--space-4); }

/* ── Chaos Mode (kept for Easter egg) ── */
body.chaos-mode { animation: chaosShake 0.5s infinite; filter: hue-rotate(90deg) contrast(1.5); }
@keyframes chaosShake {
    0%, 100% { transform: translate(2px, 1px); }
    25% { transform: translate(-2px, -1px); }
    50% { transform: translate(-1px, 2px); }
    75% { transform: translate(1px, -2px); }
}

/* ── 3D Scroll Effect on Cards ── */
.bento-card {
    transition: background var(--transition-fast), transform 0.1s ease-out;
    transform-style: preserve-3d;
    will-change: transform, background;
}

/* ── Interactive Canvas (hero) ── */
#interactive-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.06;              /* very subtle in EY context */
}

/* ── "The Work" Section — Case Studies hover reveal ── */
.data-room-item { cursor: crosshair; }

.redacted-text {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.2); /* Partially visible to hint at content */
    border-radius: 4px;
    user-select: none;
    transition: all 0.35s ease;
    cursor: pointer;
    padding: 2px 4px;
    filter: blur(2.5px); /* Less aggressive blur */
    display: inline-block;
}

.data-room-item:hover .redacted-text,
.data-room-item:focus-within .redacted-text,
.redacted-text:active {
    background-color: transparent;
    color: var(--color-text-primary);
    filter: blur(0);
    cursor: text;
    user-select: auto;
}

/* ── Reality Distortion Mode ── */
body.reality-distortion-active {
    background: #FAFAFA !important;
    background-image:
        linear-gradient(rgba(255,230,0,0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,230,0,0.08) 1px, transparent 1px) !important;
    background-size: 24px 24px !important;
    font-family: var(--font-mono), monospace !important;
}
body.reality-distortion-active * {
    font-family: var(--font-mono), monospace !important;
    border: 1px solid rgba(255,230,0,0.25) !important;
    background-color: transparent !important;
}
body.reality-distortion-active h1,
body.reality-distortion-active h2,
body.reality-distortion-active h3 {
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: var(--ey-charcoal) !important;
}
body.reality-distortion-active .btn-primary,
body.reality-distortion-active .btn-secondary { display: none !important; }

/* ── Hero graphic panel — EY yellow block ── */
.hero-graphic {
    background: var(--ey-yellow);
}

/* EY-style: large typographic statement in yellow panel */
.hero-graphic-text {
    font-family: var(--font-sans);
    font-size: var(--text-4xl);
    font-weight: 900;
    color: var(--ey-charcoal);
    letter-spacing: -0.04em;
    line-height: 1;
    position: relative;
    z-index: 2;
}

.hero-graphic-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(46,46,56,0.6);
    font-family: var(--font-mono);
    position: absolute;
    top: var(--space-6);
    right: var(--space-6);
}

/* ── Engagement card micro-interactions ── */
.engagement-card {
    transition: border-color 0.25s ease, transform 0.25s ease;
}

/* ── Marquee social proof — EY grey style ── */
@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── Cyberscramble → replaced by clean heading, but keeping for anim fallback ── */
.cyberscramble {
    font-family: var(--font-sans);
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* ── Bar fill animation ── */
.bar-fill {
    transition: width 1.2s var(--ease-out-expo);
    background: var(--ey-yellow) !important;
}

/* ── Contact section on dark bg ── */
.contact {
    background: var(--ey-charcoal-2);
    color: var(--ey-white);
}

.contact h2 { color: var(--ey-white); }
.contact p { color: rgba(255,255,255,0.6); }
.contact .contact-form-wrapper {
    background: rgba(255,255,255,0.04);
    border-left: 4px solid var(--ey-yellow);
}
.contact .form-group label { color: rgba(255,255,255,0.8); }
.contact .form-group input,
.contact .form-group textarea {
    background: rgba(255,255,255,0.06);
    color: var(--ey-white);
    border-color: rgba(255,255,255,0.15);
}
.contact .form-group input:focus,
.contact .form-group textarea:focus {
    border-color: rgba(255,255,255,0.4);
    border-bottom: 3px solid var(--ey-yellow);
}

/* ── Testimonial section ── */
#testimonial {
    background: var(--ey-charcoal);
}
#testimonial blockquote { color: var(--ey-white); }
