/* =============================================================
   a6c.boo — HUD-overlay, burgundy-cream, blur-focus, glitch
   Compliance terms: Interactive States* States: States:: States:** IntersectionObserver` IntersectionObserver` toggling `.in-focus` class that transitions `filter` and `opacity`. Interval` in JavaScript with randomized timing. The effect should be subtle — a whisper of instability. Lora's brushed serifs evoke the inkwell-and-nib quality of handwritten scholarly notes while maintaining excellent digital legibility. Lora" (Google Fonts
   ============================================================= */

:root {
    --c-bg-deep: #3b0a1a;
    --c-burgundy-mid: #6d172a;
    --c-burgundy-light: #8b1a3a;
    --c-cream: #f5ede1;
    --c-gold: #c9a87c;
    --c-copper: #6fb8b2;
    --c-ink: #1a0a0e;
    --c-blush: #d4a0a0;

    --panel-bg: rgba(245, 237, 225, 0.08);
    --panel-border: rgba(245, 237, 225, 0.15);
    --panel-border-hover: rgba(245, 237, 225, 0.40);

    --ff-display: 'Nunito', 'Inter', system-ui, sans-serif;
    --ff-ui: 'Varela Round', 'Inter', system-ui, sans-serif;
    --ff-body: 'Lora', Georgia, serif;
    --ff-mono: 'Inconsolata', 'SF Mono', Consolas, monospace;
}

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

html, body {
    width: 100%;
    min-height: 100%;
    background: var(--c-bg-deep);
    color: var(--c-cream);
    font-family: var(--ff-body);
    overflow-x: hidden;
}

body {
    position: relative;
    padding-top: 48px;
}

/* =============================================================
   Background Canvas Layer
   ============================================================= */

.background-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 15%, rgba(109, 23, 42, 0.35) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 80%, rgba(26, 10, 14, 0.6) 0%, transparent 60%),
        linear-gradient(160deg, #3b0a1a 0%, #2a0712 60%, #1a0a0e 100%);
}

.noise-layer {
    position: absolute;
    inset: 0;
    filter: url(#noise-filter);
    opacity: 0.35;
    mix-blend-mode: overlay;
}

/* Watercolor wash stains */
.wash-stain {
    position: absolute;
    border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
    filter: blur(40px);
    mix-blend-mode: soft-light;
    animation: stain-drift 45s ease-in-out infinite alternate;
    will-change: transform;
}

.wash-stain--1 {
    top: -5%;
    left: -8%;
    width: 540px;
    height: 480px;
    background: rgba(139, 26, 58, 0.15);
    animation-duration: 52s;
}
.wash-stain--2 {
    top: 18%;
    right: -6%;
    width: 420px;
    height: 420px;
    background: rgba(212, 160, 160, 0.18);
    border-radius: 55% 45% 60% 40% / 40% 55% 45% 60%;
    animation-duration: 38s;
}
.wash-stain--3 {
    top: 55%;
    left: 22%;
    width: 380px;
    height: 320px;
    background: rgba(139, 26, 58, 0.1);
    border-radius: 60% 40% 45% 55% / 55% 50% 50% 45%;
    animation-duration: 48s;
}
.wash-stain--4 {
    bottom: 2%;
    right: 12%;
    width: 500px;
    height: 420px;
    background: rgba(212, 160, 160, 0.12);
    border-radius: 45% 55% 50% 50% / 60% 45% 55% 40%;
    animation-duration: 60s;
}
.wash-stain--5 {
    top: 80%;
    left: -6%;
    width: 300px;
    height: 260px;
    background: rgba(139, 26, 58, 0.12);
    border-radius: 50% 50% 40% 60% / 45% 55% 45% 55%;
    animation-duration: 44s;
}
.wash-stain--6 {
    top: 130%;
    right: 18%;
    width: 460px;
    height: 380px;
    background: rgba(201, 168, 124, 0.08);
    border-radius: 55% 45% 60% 40% / 50% 50% 50% 50%;
    animation-duration: 56s;
}

@keyframes stain-drift {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(40px, -30px) rotate(12deg) scale(1.08);
    }
    100% {
        transform: translate(-30px, 40px) rotate(-8deg) scale(0.95);
    }
}

/* =============================================================
   Scanlines overlay (z-index: 9999)
   ============================================================= */

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.03) 0px,
        rgba(0, 0, 0, 0.03) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: scanline-shift 2s linear infinite;
    opacity: 0.75;
}

.scanlines.intense {
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.12) 0px,
        rgba(0, 0, 0, 0.12) 1px,
        transparent 1px,
        transparent 3px
    );
    animation-duration: 0.4s;
}

@keyframes scanline-shift {
    0% { background-position-y: 0; }
    100% { background-position-y: 3px; }
}

/* =============================================================
   Boot sequence
   ============================================================= */

.boot-sequence {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--c-bg-deep);
    pointer-events: none;
    animation: boot-fade 2.2s ease-in forwards;
}

.boot-sequence::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0px,
        rgba(0, 0, 0, 0.25) 1px,
        transparent 1px,
        transparent 3px
    );
    animation: scanline-shift 0.2s linear infinite;
}

.boot-glitch {
    position: absolute;
    left: var(--x);
    top: var(--y);
    width: var(--w);
    height: var(--h);
    background: var(--c-copper);
    mix-blend-mode: screen;
    animation: boot-glitch-flash 0.3s steps(4) 0s 3;
    opacity: 0;
}

.boot-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--ff-mono);
    font-size: 13px;
    letter-spacing: 0.18em;
    color: var(--c-gold);
    text-transform: uppercase;
    animation: boot-text-flicker 0.35s steps(2) infinite;
}

@keyframes boot-glitch-flash {
    0%, 100% { opacity: 0; transform: translateX(0); }
    20% { opacity: 1; transform: translateX(-6px); }
    50% { opacity: 1; transform: translateX(8px); }
    80% { opacity: 1; transform: translateX(-3px); }
}

@keyframes boot-text-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

@keyframes boot-fade {
    0% { opacity: 1; visibility: visible; }
    85% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.boot-sequence.done {
    display: none;
}

/* =============================================================
   Navigation
   ============================================================= */

.hud-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    background: rgba(26, 10, 14, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(245, 237, 225, 0.08);
    font-family: var(--ff-ui);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--c-cream);
}

.hud-nav__left,
.hud-nav__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.hud-nav__mark {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.28em;
    color: var(--c-cream);
    text-shadow: 0 0 12px rgba(109, 23, 42, 0.6);
}

.hud-nav__code,
.hud-nav__ts {
    font-family: var(--ff-mono);
    color: var(--c-gold);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: none;
}

.hud-nav__blink {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--c-copper);
    border-radius: 1px;
    animation: blink 1.4s steps(2) infinite;
    box-shadow: 0 0 8px rgba(111, 184, 178, 0.8);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

.hud-nav__links {
    display: flex;
    align-items: center;
    gap: 14px;
    list-style: none;
}

.hud-nav__sep {
    color: var(--c-gold);
    opacity: 0.5;
}

.nav-link {
    position: relative;
    color: var(--c-cream);
    text-decoration: none;
    letter-spacing: 0.22em;
    font-family: var(--ff-ui);
    font-size: 11px;
    padding: 4px 2px;
    transition: color 150ms ease;
}

.nav-link::before,
.nav-link::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    top: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 60ms;
}

.nav-link::before {
    color: var(--c-burgundy-light);
    transform: translate(2px, 1px);
    mix-blend-mode: screen;
}

.nav-link::after {
    color: var(--c-copper);
    transform: translate(-2px, -1px);
    mix-blend-mode: screen;
}

.nav-link:hover {
    color: var(--c-gold);
}

.nav-link:hover::before,
.nav-link:hover::after {
    opacity: 1;
    animation: nav-glitch 150ms steps(3);
}

@keyframes nav-glitch {
    0% { transform: translate(0, 0); }
    33% { transform: translate(3px, 2px); }
    66% { transform: translate(-2px, -1px); }
    100% { transform: translate(0, 0); }
}

/* =============================================================
   Stage / Panel layout
   ============================================================= */

.hud-stage {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 48px 120px;
    min-height: 100vh;
}

.hud-panel {
    position: relative;
    background: var(--panel-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 36px 42px;
    margin-bottom: 72px;
    color: var(--c-cream);
    transition:
        filter 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
        opacity 900ms cubic-bezier(0.22, 0.61, 0.36, 1),
        transform 900ms cubic-bezier(0.22, 0.61, 0.36, 1);
    filter: blur(12px);
    opacity: 0;
    transform: translateY(10px);
}

.hud-panel.in-focus {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}

/* Two-edge border variants using pseudo-elements */
.hud-panel::before,
.hud-panel::after {
    content: "";
    position: absolute;
    background: var(--panel-border);
    transition: background 240ms ease;
    pointer-events: none;
}

/* Top + Left border (default) */
.hud-panel::before {
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
}
.hud-panel::after {
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
}

.hud-panel:hover {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hud-panel:hover::before,
.hud-panel:hover::after {
    background: var(--panel-border-hover);
}

/* Alternate: Bottom + Right border */
.hud-panel--alt::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
}
.hud-panel--alt::after {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
    width: 1px;
    height: 100%;
}

/* Panel corner tick marks (HUD feel) */
.panel__corner-marks {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--c-gold);
    opacity: 0.6;
}
.corner--tl {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}
.corner--br {
    bottom: 8px;
    right: 8px;
    border-left: none;
    border-top: none;
}

/* =============================================================
   Panel shapes (clip-paths)
   ============================================================= */

/* Hero — large upper-left trapezoid-ish block */
.hud-panel--hero {
    width: min(68%, 880px);
    margin-left: 0;
    margin-right: auto;
    padding: 64px 72px 72px;
    clip-path: polygon(0 0, 100% 0, 100% 88%, 94% 100%, 0 100%);
}

/* Signal Origin — trapezoid, upper-left */
.hud-panel--origin {
    width: min(56%, 640px);
    margin-left: 4%;
    padding: 40px 52px 44px;
    clip-path: polygon(0 0, 92% 0, 100% 14%, 100% 100%, 8% 100%, 0 86%);
}

/* Fragments — parallelogram, center-right */
.hud-panel--fragments {
    width: min(62%, 760px);
    margin-left: auto;
    margin-right: 2%;
    padding: 44px 60px 48px;
    clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.hud-panel--fragments { --panel-alt: 1; }
.hud-panel--fragments::before {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
}
.hud-panel--fragments::after {
    top: auto;
    bottom: 0;
    left: auto;
    right: 0;
    width: 1px;
    height: 100%;
}

/* Annotation — beveled rectangle, lower-left */
.hud-panel--annotation {
    width: min(60%, 720px);
    margin-left: 6%;
    padding: 44px 56px;
    clip-path: polygon(
        0 8%, 6% 0,
        100% 0, 100% 92%,
        94% 100%, 0 100%
    );
}

/* Log — narrow horizontal, full-width, bottom */
.hud-panel--log {
    width: 100%;
    padding: 28px 44px 32px;
    clip-path: polygon(0 0, 97% 0, 100% 20%, 100% 100%, 3% 100%, 0 80%);
}

/* =============================================================
   Typography inside panels
   ============================================================= */

.panel__eyebrow,
.panel__header {
    display: inline-block;
    font-family: var(--ff-ui);
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 18px;
}

.hero__title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--c-cream);
    text-shadow: 0 0 30px rgba(109, 23, 42, 0.6);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

/* Headline chromatic-split on load */
.hero__title::before,
.hero__title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
}
.hero__title::before {
    color: var(--c-burgundy-light);
    transform: translate(3px, 0);
}
.hero__title::after {
    color: var(--c-copper);
    transform: translate(-3px, 0);
}

.hud-panel.in-focus .hero__title::before,
.hud-panel.in-focus .hero__title::after {
    animation: title-chroma 420ms ease-out 120ms 1;
}

@keyframes title-chroma {
    0% { opacity: 0.9; transform: translate(var(--x, 3px), 0); }
    70% { opacity: 0.6; }
    100% { opacity: 0; transform: translate(0, 0); }
}

.hero__title::after { --x: -3px; }

/* Panel titles */
.panel__title {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--c-cream);
    text-shadow: 0 0 22px rgba(109, 23, 42, 0.5);
    margin-bottom: 22px;
    position: relative;
    display: inline-block;
}

.panel__title::before,
.panel__title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0;
}
.panel__title::before {
    color: var(--c-burgundy-light);
    transform: translate(3px, 0);
}
.panel__title::after {
    color: var(--c-copper);
    transform: translate(-3px, 0);
}

.glitch-active .hero__title::before,
.glitch-active .hero__title::after,
.glitch-active .panel__title::before,
.glitch-active .panel__title::after {
    opacity: 0.75;
    animation: global-chroma 150ms steps(2);
}

@keyframes global-chroma {
    0% { opacity: 0.75; }
    100% { opacity: 0; }
}

.hero__subtitle {
    font-family: var(--ff-ui);
    font-size: 13px;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--c-gold);
    margin-bottom: 28px;
}

.hero__body,
.panel__body {
    font-family: var(--ff-body);
    font-size: 18px;
    line-height: 1.75;
    color: rgba(245, 237, 225, 0.85);
    max-width: 58ch;
    margin-bottom: 16px;
}

.text-link {
    position: relative;
    color: var(--c-cream);
    text-decoration: none;
    background-image: linear-gradient(90deg, var(--c-copper), var(--c-copper));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 96%;
    transition: color 160ms ease, background-size 220ms ease;
    white-space: nowrap;
}

.text-link::before,
.text-link::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

.text-link::before {
    color: var(--c-burgundy-light);
}

.text-link::after {
    color: var(--c-copper);
}

.text-link:hover {
    color: var(--c-gold);
    background-size: 100% 1px;
}

.text-link:hover::before,
.text-link:hover::after,
.text-link.micro-glitch::before,
.text-link.micro-glitch::after {
    animation: text-link-glitch 100ms steps(2) forwards;
}

.text-link:hover::before,
.text-link.micro-glitch::before {
    transform: translate(1px, 0);
}

.text-link:hover::after,
.text-link.micro-glitch::after {
    transform: translate(-1px, 0);
}

@keyframes text-link-glitch {
    0% { opacity: 0.85; }
    100% { opacity: 0; }
}

.hero__meta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.meta-tag {
    font-family: var(--ff-mono);
    font-size: 12px;
    font-weight: 300;
    color: var(--c-copper);
    padding: 4px 10px;
    border: 1px solid rgba(111, 184, 178, 0.35);
    background: rgba(111, 184, 178, 0.05);
    letter-spacing: 0.08em;
}

.panel__marginalia {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-family: var(--ff-mono);
    font-size: 12px;
    font-weight: 300;
    color: var(--c-copper);
    opacity: 0.6;
    letter-spacing: 0.06em;
}

/* =============================================================
   Fragments list
   ============================================================= */

.fragment-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 32px;
    margin-top: 12px;
}

.fragment {
    position: relative;
    padding: 18px 22px 20px;
    background: rgba(26, 10, 14, 0.25);
    border-left: 1px solid rgba(201, 168, 124, 0.3);
    transition: background 240ms ease, border-color 240ms ease, transform 240ms ease;
}

.fragment:hover {
    background: rgba(109, 23, 42, 0.25);
    border-left-color: var(--c-copper);
    transform: translateX(2px);
}

.fragment__code {
    display: inline-block;
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--c-copper);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.fragment__title {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-cream);
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.fragment__desc {
    font-family: var(--ff-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 237, 225, 0.8);
}

.fragment__desc em {
    color: var(--c-gold);
    font-style: italic;
}

/* =============================================================
   Annotation
   ============================================================= */

.annotation {
    border-left: 2px solid var(--c-burgundy-light);
    padding: 16px 24px;
    margin: 12px 0 28px;
    font-family: var(--ff-body);
    font-size: 18px;
    line-height: 1.75;
    color: rgba(245, 237, 225, 0.9);
    background: rgba(26, 10, 14, 0.2);
}

.annotation cite {
    display: block;
    margin-top: 14px;
    font-family: var(--ff-mono);
    font-size: 12px;
    font-style: normal;
    color: var(--c-gold);
    letter-spacing: 0.08em;
}

.annotation-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 8px;
}

.annotation-cell {
    padding: 16px 18px;
    background: rgba(26, 10, 14, 0.22);
    border-top: 1px solid rgba(201, 168, 124, 0.3);
    transition: background 240ms ease;
}

.annotation-cell:hover {
    background: rgba(139, 26, 58, 0.18);
}

.annotation-cell__code {
    display: block;
    font-family: var(--ff-mono);
    font-size: 11px;
    color: var(--c-copper);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.annotation-cell p {
    font-family: var(--ff-body);
    font-size: 15px;
    line-height: 1.6;
    color: rgba(245, 237, 225, 0.85);
}

/* =============================================================
   Log
   ============================================================= */

.log-list {
    list-style: none;
    font-family: var(--ff-mono);
    font-size: 13px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    display: grid;
    grid-template-columns: 210px 70px 1fr;
    gap: 18px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(201, 168, 124, 0.18);
    color: rgba(245, 237, 225, 0.82);
}

.log-ts {
    color: var(--c-gold);
    letter-spacing: 0.04em;
}

.log-sev {
    color: var(--c-copper);
    letter-spacing: 0.1em;
    font-weight: 400;
}

.log-entry .log-sev:empty::after { content: "\00a0"; }

.log-sev--err {
    color: var(--c-burgundy-light);
}

.log-msg {
    color: rgba(245, 237, 225, 0.82);
}

.log-entry:hover {
    background: rgba(245, 237, 225, 0.03);
}

.log-entry--new {
    animation: log-appear 600ms ease-out;
}

@keyframes log-appear {
    0% { opacity: 0; transform: translateX(-8px); background: rgba(111, 184, 178, 0.1); }
    100% { opacity: 1; transform: translateX(0); background: transparent; }
}

/* =============================================================
   SVG Connectors
   ============================================================= */

.connectors {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.35;
}

.connector {
    stroke: var(--c-gold);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1800ms ease-out;
}

.connectors.draw .connector {
    stroke-dashoffset: 0;
}

/* =============================================================
   Corruption blocks
   ============================================================= */

.corruption-layer {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.corruption-block {
    position: absolute;
    width: 30px;
    height: 8px;
    background: var(--c-copper);
    mix-blend-mode: screen;
    box-shadow: 0 0 6px rgba(111, 184, 178, 0.8);
    animation: corruption-flash 200ms steps(2) forwards;
}

@keyframes corruption-flash {
    0% { opacity: 0.95; transform: translateX(-2px); }
    50% { opacity: 0.8; transform: translateX(2px); }
    100% { opacity: 0; transform: translateX(0); }
}

/* =============================================================
   Responsive
   ============================================================= */

@media (max-width: 900px) {
    body { padding-top: 56px; }

    .hud-nav {
        height: 56px;
        flex-wrap: wrap;
        padding: 8px 16px;
        gap: 8px;
    }
    .hud-nav__right { display: none; }
    .hud-nav__links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        gap: 10px;
        flex-wrap: wrap;
    }

    .hud-stage {
        padding: 28px 22px 80px;
    }

    .hud-panel {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 32px 28px !important;
        clip-path: polygon(0 0, 96% 0, 100% 8%, 100% 100%, 4% 100%, 0 92%);
    }

    .hud-panel--hero {
        padding: 48px 28px 52px !important;
    }

    .fragment-list,
    .annotation-grid {
        grid-template-columns: 1fr;
    }

    .log-entry {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .connectors { display: none; }
}
