/* ============================================
   LegalDebug.com - Styles
   Skeuomorphic Forensics x Debugger Console
   ============================================ */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'IBM Plex Serif', serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    color: #C0C0C0;
    background-color: #0D0D0F;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Poiret One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 400;
}

.section-heading {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(3rem, 8vw, 8rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #C0C0C0;
    line-height: 0.95;
    margin-bottom: 2rem;
}

.section-heading-light {
    color: #F0EDE4;
}

/* --- Navigation --- */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transform: rotate(-2deg);
    transform-origin: top left;
    background: linear-gradient(165deg, rgba(44,44,52,0.95) 0%, rgba(13,13,15,0.95) 100%);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 3rem;
    transform: rotate(2deg);
    max-width: 1400px;
    margin: 0 auto;
}

.nav-pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #E8E8E8 0%, #808080 40%, #4a4a4a 60%, #2C2C34 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.gavel-icon-nav {
    width: 16px;
    height: 16px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #C0C0C0;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #C49E3C;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #A8C7FA;
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

/* --- Sections Base --- */
.section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* --- Diagonal Slash Overlay --- */
.diagonal-slash-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: repeating-linear-gradient(
        12deg,
        transparent,
        transparent 80px,
        rgba(192,192,192,0.04) 80px,
        rgba(192,192,192,0.04) 81px
    );
    z-index: 1;
}

/* --- Section 1: Evidence Intake (Hero) --- */
.section-hero {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-bottom: -8vw;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chrome-surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(165deg, #2C2C34 0%, #808080 25%, #C0C0C0 45%, #E8E8E8 50%, #C0C0C0 55%, #808080 75%, #2C2C34 100%);
}

.chrome-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.15) 50%, transparent 60%);
    animation: chrome-shimmer 4s ease-in-out infinite;
    z-index: 2;
}

@keyframes chrome-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.waveform-hero-bg {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 200px;
    transform: translateY(-50%);
    opacity: 0.05;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
}

.case-stamp {
    margin-bottom: 2rem;
}

.case-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.85rem;
    color: #A8C7FA;
    letter-spacing: 0.2em;
    border: 1px solid rgba(168,199,250,0.3);
    padding: 0.5rem 1.5rem;
    display: inline-block;
}

.hero-title {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(4rem, 14vw, 18vw);
    letter-spacing: 0.12em;
    line-height: 0.9;
    color: #0D0D0F;
    text-shadow: 0 1px 0 rgba(255,255,255,0.3), 0 -1px 0 rgba(0,0,0,0.3);
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: clamp(1.5rem, 4vw, 4rem);
    letter-spacing: 0.3em;
    color: #2C2C34;
    text-transform: uppercase;
}

.hero-tagline {
    margin-top: 2rem;
}

.tagline-text {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    letter-spacing: 0.25em;
    color: #2C2C34;
    text-transform: uppercase;
}

.waveform-underline-hero {
    width: 300px;
    height: 20px;
    margin: 1.5rem auto 0;
    opacity: 0.6;
}

.waveform-underline-hero svg {
    width: 100%;
    height: 100%;
}

/* --- Waveform Dividers --- */
.waveform-divider {
    position: relative;
    z-index: 10;
    height: 60px;
    margin: -30px 0;
    pointer-events: none;
}

.waveform-divider svg {
    width: 100%;
    height: 100%;
}

.waveform-divider-path {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    animation: waveform-draw 3s ease-out forwards;
}

@keyframes waveform-draw {
    to { stroke-dashoffset: 0; }
}

/* --- Section 2: Case Brief --- */
.section-brief {
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-bottom: -8vw;
    z-index: 4;
    background: linear-gradient(165deg, #2C2C34 0%, #0D0D0F 100%);
    padding: 12vw 0 16vw;
    display: flex;
    align-items: center;
}

.brief-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 2px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
    align-items: center;
}

.brief-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.brief-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.brief-divider-diagonal {
    width: 2px;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(to bottom, transparent, #C49E3C, transparent);
    transform: rotate(12deg);
}

.brief-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.brief-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.brief-text-block {
    margin: 2rem 0;
}

.brief-text {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #C0C0C0;
    margin-bottom: 1.2rem;
}

.brief-text.typewriter-active {
    font-family: 'IBM Plex Mono', monospace;
    color: #A8C7FA;
    font-size: 0.95rem;
}

.brief-text.typewriter-complete {
    font-family: 'IBM Plex Serif', serif;
    color: #C0C0C0;
    font-size: 1.05rem;
    transition: font-family 0.5s ease, color 0.5s ease;
}

.brief-metadata {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #808080;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.meta-label {
    color: #808080;
    letter-spacing: 0.1em;
}

.meta-value {
    color: #A8C7FA;
}

.meta-value-alert {
    color: #C0392B;
}

.meta-separator {
    color: #808080;
    opacity: 0.4;
}

/* --- Chrome Frame --- */
.chrome-frame {
    position: relative;
    padding: 12px;
    background: linear-gradient(145deg, #808080, #C0C0C0, #808080);
    border-radius: 4px;
    box-shadow:
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

.chrome-frame-inner {
    background: #0D0D0F;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5), inset 0 0 1px rgba(255,255,255,0.1);
}

/* --- Screw Heads --- */
.screw {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #E8E8E8 0%, #808080 40%, #4a4a4a 60%, #2C2C34 100%);
    z-index: 10;
}

.screw::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 1px;
    background: rgba(0,0,0,0.4);
    transform: translate(-50%, -50%) rotate(45deg);
}

.screw::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 1px;
    background: rgba(0,0,0,0.4);
    transform: translate(-50%, -50%) rotate(-45deg);
}

.screw-tl { top: 4px; left: 4px; }
.screw-tr { top: 4px; right: 4px; }
.screw-bl { bottom: 4px; left: 4px; }
.screw-br { bottom: 4px; right: 4px; }

/* Evidence Photo */
.evidence-photo {
    width: 100%;
    aspect-ratio: 4/3;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Section 3: Evidence Gallery --- */
.section-gallery {
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-bottom: -8vw;
    z-index: 3;
    background: #3B2314;
    padding: 14vw 0 16vw;
    position: relative;
}

.leather-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, #5C3A1E 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, #5C3A1E 0%, transparent 50%);
    pointer-events: none;
    opacity: 0.3;
}

.wood-grain-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        87deg,
        transparent,
        transparent 2px,
        rgba(92,58,30,0.3) 2px,
        rgba(92,58,30,0.3) 3px
    );
    pointer-events: none;
}

.gallery-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 3rem;
}

.evidence-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

/* --- Evidence Cards --- */
.evidence-card {
    position: relative;
    padding: 12px;
    background: linear-gradient(145deg, #808080, #C0C0C0, #808080);
    border-radius: 4px;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.5),
        0 2px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.3);
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateX(-60px) rotate(0deg);
    transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evidence-card.revealed {
    opacity: 1;
}

.evidence-card-1.revealed { transform: rotate(3deg); }
.evidence-card-2.revealed { transform: translateX(0) rotate(-2deg); }
.evidence-card-3.revealed { transform: rotate(4deg); }
.evidence-card-4.revealed { transform: translateX(0) rotate(-3deg); }

.evidence-card-2,
.evidence-card-4 {
    transform: translateX(60px) rotate(0deg);
}

.card-inner {
    background: #0D0D0F;
    padding: 2rem;
    border-radius: 2px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(192,192,192,0.15);
}

.card-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: #C49E3C;
    text-transform: uppercase;
}

.card-timestamp {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #808080;
}

.card-title {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    letter-spacing: 0.06em;
    color: #F0EDE4;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

.card-description {
    font-family: 'IBM Plex Serif', serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #C0C0C0;
}

.card-footer {
    margin-top: 1.5rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(192,192,192,0.15);
}

.card-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    padding: 0.3rem 0.8rem;
    border: 1px solid;
}

.card-status-clear {
    color: #A8C7FA;
    border-color: rgba(168,199,250,0.3);
}

.card-status-alert {
    color: #C0392B;
    border-color: rgba(192,57,43,0.3);
}

.card-status-warn {
    color: #C49E3C;
    border-color: rgba(196,158,60,0.3);
}

/* --- Section 4: Debug Trace --- */
.section-trace {
    clip-path: polygon(0 8vw, 100% 0, 100% calc(100% - 8vw), 0 100%);
    margin-bottom: -8vw;
    z-index: 2;
    background: linear-gradient(165deg, #0D0D0F 0%, #2C2C34 50%, #0D0D0F 100%);
    padding: 14vw 0 16vw;
}

.trace-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.trace-readout {
    margin-top: 2rem;
    border: 1px solid rgba(168,199,250,0.2);
    background: rgba(13,13,15,0.8);
    border-radius: 4px;
    overflow: hidden;
}

.trace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(168,199,250,0.15);
    background: rgba(44,44,52,0.5);
}

.trace-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #808080;
    letter-spacing: 0.1em;
}

.trace-status {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #A8C7FA;
    letter-spacing: 0.15em;
    animation: status-blink 2s ease-in-out infinite;
}

@keyframes status-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.waveform-main {
    padding: 2rem 1.5rem;
    min-height: 300px;
}

.waveform-main svg {
    width: 100%;
    height: 300px;
}

.waveform-trace {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 3s ease-out;
}

.waveform-trace.animated {
    stroke-dashoffset: 0;
}

.waveform-trace-secondary {
    stroke-dasharray: 3000;
    stroke-dashoffset: 3000;
    transition: stroke-dashoffset 3.5s ease-out 0.5s;
}

.waveform-trace-secondary.animated {
    stroke-dashoffset: 0;
}

.waveform-grid line {
    stroke-dasharray: 5 5;
}

.trace-annotations-bar {
    display: flex;
    gap: 2rem;
    padding: 0.8rem 1.5rem;
    border-top: 1px solid rgba(168,199,250,0.1);
    border-bottom: 1px solid rgba(168,199,250,0.1);
}

.annotation-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.annotation-marker {
    width: 12px;
    height: 3px;
    border-radius: 1px;
}

.annotation-marker-blue { background: #A8C7FA; }
.annotation-marker-brass { background: #C49E3C; }
.annotation-marker-red { background: #C0392B; }

.annotation-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: #808080;
    letter-spacing: 0.08em;
}

.trace-data-readout {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(168,199,250,0.1);
}

.data-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.2rem 1rem;
    background: rgba(13,13,15,0.9);
}

.data-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.65rem;
    color: #808080;
    letter-spacing: 0.15em;
    margin-bottom: 0.5rem;
}

.data-value {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.4rem;
    color: #A8C7FA;
    letter-spacing: 0.05em;
}

.data-value-alert {
    color: #C0392B;
}

/* --- Section 5: Closing Statement --- */
.section-closing {
    z-index: 1;
    background: linear-gradient(165deg, #2C2C34 0%, #0D0D0F 100%);
    padding: 14vw 0 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.closing-diagonal-frame {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 3rem;
}

.closing-v-cut-left {
    position: absolute;
    top: -60px;
    left: -40px;
    width: 3px;
    height: 120%;
    background: linear-gradient(to bottom, transparent, #C49E3C 30%, #C49E3C 70%, transparent);
    transform: rotate(8deg);
}

.closing-v-cut-right {
    position: absolute;
    top: -60px;
    right: -40px;
    width: 3px;
    height: 120%;
    background: linear-gradient(to bottom, transparent, #C49E3C 30%, #C49E3C 70%, transparent);
    transform: rotate(-8deg);
}

.closing-content {
    text-align: center;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.closing-content.revealed {
    opacity: 1;
    transform: scale(1);
}

.gavel-divider {
    margin-bottom: 2rem;
}

.gavel-icon {
    opacity: 0.8;
}

.closing-heading {
    font-family: 'Poiret One', sans-serif;
    font-size: clamp(2.5rem, 6vw, 6rem);
    letter-spacing: 0.12em;
    line-height: 0.95;
    color: #F0EDE4;
    margin-bottom: 1.5rem;
}

.closing-rule {
    width: 200px;
    height: 10px;
    margin: 0 auto 2rem;
    opacity: 0.6;
}

.closing-rule svg {
    width: 100%;
    height: 100%;
}

.closing-statement-text {
    font-family: 'IBM Plex Serif', serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #C0C0C0;
    max-width: 600px;
    margin: 0 auto 3rem;
    font-weight: 400;
}

.closing-seal {
    margin-bottom: 2rem;
}

.seal-svg {
    width: 100px;
    height: 100px;
    animation: seal-rotate 20s linear infinite;
}

@keyframes seal-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.closing-metadata {
    margin-top: 1.5rem;
}

.meta-mono {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #808080;
    letter-spacing: 0.15em;
}

/* --- Footer --- */
#site-footer {
    background: #0D0D0F;
    clip-path: polygon(0 0, 100% 8vw, 100% 100%, 0 100%);
    padding: 10vw 3rem 3rem;
    position: relative;
    z-index: 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.footer-logo {
    font-family: 'Poiret One', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: #C0C0C0;
    text-transform: uppercase;
}

.footer-dot {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #C49E3C;
}

.footer-text {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.75rem;
    color: #808080;
    letter-spacing: 0.1em;
}

.footer-waveform {
    width: 200px;
    height: 20px;
    opacity: 0.4;
    margin-top: 0.5rem;
}

.footer-waveform svg {
    width: 100%;
    height: 100%;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .brief-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .brief-divider-diagonal {
        display: none;
    }

    .evidence-board {
        grid-template-columns: 1fr;
    }

    .trace-data-readout {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        gap: 1.2rem;
    }

    .nav-inner {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: 0.8rem;
        font-size: 0.65rem;
    }

    .section-heading {
        font-size: clamp(2rem, 10vw, 5rem);
    }

    .hero-title {
        font-size: clamp(3rem, 16vw, 12rem);
    }

    .trace-data-readout {
        grid-template-columns: 1fr 1fr;
    }

    .trace-annotations-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .brief-container,
    .gallery-container,
    .trace-container {
        padding: 0 1.5rem;
    }
}

/* --- Waveform hover underline on headings --- */
.section-heading {
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #A8C7FA, #C49E3C, #A8C7FA);
    opacity: 0;
    transition: opacity 0.3s ease;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 4'%3E%3Cpath d='M0,2 C10,0 20,4 30,2 C40,0 50,4 60,2 C70,0 80,4 90,2 C100,0 110,4 120,2 C130,0 140,4 150,2 C160,0 170,4 180,2 C190,0 200,4 200,2' stroke='black' stroke-width='4' fill='none'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 4'%3E%3Cpath d='M0,2 C10,0 20,4 30,2 C40,0 50,4 60,2 C70,0 80,4 90,2 C100,0 110,4 120,2 C130,0 140,4 150,2 C160,0 170,4 180,2 C190,0 200,4 200,2' stroke='black' stroke-width='4' fill='none'/%3E%3C/svg%3E");
    mask-size: contain;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
}

.section-heading:hover::after {
    opacity: 1;
}

/* --- Chrome beveled edges on all major containers --- */
.trace-readout,
.chrome-frame,
.evidence-card {
    border-top: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(0,0,0,0.4);
}

/* --- Waveform continuous flow animation --- */
@keyframes waveform-flow {
    0% { transform: translateX(0); }
    100% { transform: translateX(-5%); }
}

.waveform-trace.flowing,
.waveform-trace-secondary.flowing {
    animation: waveform-flow 2s linear infinite;
}
