/* prototype.report — horizontal hardware-lab prototype timeline
   Inter-panel connector lines; Inter-Panel Connectors: Connectors:** Connector:** Connectorss Inter's open apertures and tall x-height ensure legibility at small sizes against the dark canvas. Color: `#a3a8b8` (silver mist. Inter" (Google Fonts. Interaction System: System:** Syste:** Systemm IntersectionObserver` with `threshold: 0.3`. JetBrains Mono" (Google Fonts. Space Grotesk" (Google Fonts. */
/* Connectors:** */
/* System:** */
/* Connectors* Connectors:* Connectors:::* */
/* System* System:* System:::* */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --void-black: #0a0b10;
    --carbon: #13141c;
    --graphite: #1e2030;
    --frost-white: #e8eaf0;
    --silver-mist: #a3a8b8;
    --graphite-light: #7c8094;
    --aurora-teal: #22d3ee;
    --aurora-violet: #a78bfa;
    --aurora-pink: #f472b6;
    --aurora-amber: #fbbf24;
    --aurora-green: #6ee7b7;
    --glass: rgba(19, 20, 28, 0.65);
    --border: rgba(255, 255, 255, 0.08);
    --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--void-black);
    color: var(--silver-mist);
    font-family: "Inter", system-ui, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 18% 24%, rgba(34, 211, 238, 0.14), transparent 22%),
        radial-gradient(circle at 68% 68%, rgba(167, 139, 250, 0.12), transparent 26%),
        radial-gradient(circle at 88% 18%, rgba(244, 114, 182, 0.09), transparent 18%);
    pointer-events: none;
    z-index: 0;
}

.scroll-container {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.scroll-container::-webkit-scrollbar {
    display: none;
}

.panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    isolation: isolate;
}

.panel-background {
    position: absolute;
    inset: 0;
    background-color: var(--void-black);
    background-image:
        linear-gradient(90deg, rgba(34, 211, 238, 0.055) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px);
    background-size: 80px 80px, 80px 80px, 80px 80px;
    background-position: 0 0, 0 0, 0 0;
    z-index: -3;
}

.panel-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, transparent 0 10%, rgba(34, 211, 238, 0.08) 10% 10.18%, transparent 10.18% 90%, rgba(167, 139, 250, 0.07) 90% 90.16%, transparent 90.16%),
        linear-gradient(180deg, rgba(10, 11, 16, 0.15), rgba(10, 11, 16, 0.8));
}

.watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateX(4rem);
    color: var(--graphite);
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(12rem, 26vw, 31rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.8;
    opacity: 0;
    transition: opacity 700ms var(--ease), transform 900ms var(--ease);
    z-index: -1;
    white-space: nowrap;
}

.panel.visible .watermark {
    opacity: 0.82;
    transform: translate(-50%, -50%) translateX(0);
}

.panel-header {
    height: 16vh;
    padding: clamp(1.25rem, 2.4vw, 2.6rem) clamp(1.4rem, 4vw, 4.8rem) 1.1rem;
    display: grid;
    grid-template-columns: minmax(10rem, 1fr) auto;
    grid-template-rows: auto auto;
    align-items: end;
    gap: 0.45rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
    background: rgba(10, 11, 16, 0.72);
    backdrop-filter: blur(10px);
    z-index: 3;
}

.iteration-title {
    grid-row: 1 / 3;
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(2.8rem, 7vw, 6.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.82;
    color: var(--frost-white);
}

.timestamp,
.status,
code,
.card-tag,
.diff-label {
    font-family: "JetBrains Mono", ui-monospace, monospace;
}

.timestamp {
    color: var(--graphite-light);
    font-size: clamp(0.72rem, 0.9vw, 0.9rem);
    letter-spacing: 0.02em;
    text-align: right;
}

.status {
    color: var(--aurora-teal);
    font-size: clamp(0.76rem, 0.95vw, 0.95rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

.canvas-zone {
    position: relative;
    flex: 1;
    padding: clamp(2rem, 5vw, 5.5rem) clamp(1.4rem, 5vw, 5.5rem);
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-content: center;
    gap: clamp(1rem, 2vw, 2.3rem);
}

.annotation-bar {
    min-height: 13vh;
    padding: 1.4rem clamp(1.4rem, 4vw, 4.8rem);
    display: flex;
    align-items: center;
    color: var(--graphite-light);
    background: rgba(19, 20, 28, 0.92);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
}

.annotation-bar code {
    font-size: clamp(0.75rem, 0.95vw, 0.95rem);
    line-height: 1.7;
}

.artifact-card,
.glassmorphic-card,
.concept-card,
.diagram-card,
.metric-card,
.diff-card {
    position: relative;
    grid-column: span 4;
    min-height: 14rem;
    padding: clamp(1.35rem, 2.4vw, 2.5rem);
    background: var(--glass);
    backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--border);
    border-radius: 12px;
    opacity: 0;
    transform: translateX(46px) scale(0.965);
    transition: opacity 620ms var(--ease), transform 620ms var(--ease), border-color 348ms var(--ease), backdrop-filter 348ms var(--ease), background-color 348ms var(--ease);
}

.artifact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 1.35rem;
    right: 1.35rem;
    height: 2px;
    background: linear-gradient(90deg, var(--aurora-teal), var(--aurora-violet), var(--aurora-pink));
    opacity: 0.72;
}

.panel.visible .artifact-card,
.panel.visible .glassmorphic-card,
.panel.visible .concept-card,
.panel.visible .diagram-card,
.panel.visible .metric-card,
.panel.visible .diff-card {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.artifact-card:nth-child(1) { transition-delay: 90ms; }
.artifact-card:nth-child(2) { transition-delay: 190ms; }
.artifact-card:nth-child(3) { transition-delay: 290ms; }

.artifact-card:hover,
.glassmorphic-card:hover,
.concept-card:hover,
.diagram-card:hover,
.metric-card:hover,
.diff-card:hover {
    transform: scale(1.03);
    border-color: rgba(34, 211, 238, 0.3);
    background: rgba(19, 20, 28, 0.76);
    backdrop-filter: blur(20px) saturate(120%);
}

.large-card { grid-column: 2 / span 6; min-height: 24rem; }
.compact-card { min-height: 12rem; }
.offset-card { grid-column: 2 / span 5; }
.metric-offset { grid-column: 8 / span 3; align-self: end; }
.wide-card { grid-column: 2 / span 6; }
.release-card { grid-column: 3 / span 8; min-height: 28rem; }
.card-grid-2-5 { grid-column: 2 / span 4; }
.card-grid-7-10 { grid-column: 7 / span 4; }
.card-grid-8-11 { grid-column: 8 / span 4; }
.interactive-demo { grid-column: 2 / span 5; }

.card-tag {
    margin-bottom: 1rem;
    color: var(--aurora-amber);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
}

h1,
h2,
h3 {
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--frost-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.5rem);
    margin-bottom: 1.25rem;
}

h2 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    margin-bottom: 1.4rem;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 2rem);
    margin-bottom: 1rem;
}

p {
    color: var(--silver-mist);
    font-size: clamp(0.95rem, 1.15vw, 1.08rem);
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

em {
    color: var(--aurora-violet);
    font-style: normal;
}

strong {
    color: var(--frost-white);
    font-weight: 500;
}

.artifact-card code,
.concept-card code,
.diff-card code {
    display: inline-block;
    max-width: 100%;
    padding: 0.45rem 0.65rem;
    color: var(--aurora-teal);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.18);
    border-radius: 6px;
    font-size: clamp(0.72rem, 0.85vw, 0.88rem);
    word-break: break-word;
}

.wireframe-sketch {
    height: 9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(163, 168, 184, 0.35);
    border-radius: 8px;
    background:
        linear-gradient(90deg, transparent 0 14%, rgba(34, 211, 238, 0.28) 14% 15%, transparent 15% 30%, rgba(167, 139, 250, 0.25) 30% 31%, transparent 31% 46%, rgba(244, 114, 182, 0.22) 46% 47%, transparent 47%),
        linear-gradient(0deg, rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: auto, 22px 22px, 22px 22px;
    position: relative;
}

.wireframe-sketch::before,
.wireframe-sketch::after {
    content: "";
    position: absolute;
    border: 1px solid var(--graphite-light);
    border-radius: 4px;
}

.wireframe-sketch::before { inset: 18% 10% 18% 10%; }
.wireframe-sketch::after { inset: 34% 30% 34% 30%; border-color: var(--aurora-teal); }

.metric-number {
    font-family: "Space Grotesk", system-ui, sans-serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.9;
    color: var(--aurora-teal);
}

.metric-label {
    margin: 0.8rem 0 1.2rem;
    color: var(--graphite-light);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sparkline {
    width: 100%;
    height: 4rem;
}

.diff-section { margin: 0; }
.diff-label { color: var(--graphite-light); font-size: 0.78rem; margin-bottom: 0.55rem; }
.add { color: var(--aurora-green); }
.del { color: var(--aurora-pink); }

.palette-swatch {
    display: grid;
    grid-template-columns: repeat(4, 3.2rem);
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.swatch {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.operator-note {
    margin-top: 2rem;
    color: var(--silver-mist);
    font-size: 0.9rem;
}

.connector {
    flex: 0 0 8vw;
    width: 8vw;
    height: 100vh;
    position: relative;
    scroll-snap-align: none;
    background:
        linear-gradient(90deg, rgba(10, 11, 16, 0.92), transparent 28% 72%, rgba(10, 11, 16, 0.92)),
        linear-gradient(180deg, transparent, rgba(34, 211, 238, 0.55), rgba(167, 139, 250, 0.55), rgba(244, 114, 182, 0.55), transparent);
    overflow: hidden;
}

.connector::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 14%;
    width: 2px;
    height: 72%;
    transform: translateX(-50%);
    background: linear-gradient(var(--aurora-teal), var(--aurora-violet), var(--aurora-pink));
    animation: pulse-line 4.5s linear infinite;
}

.connector::after {
    content: "";
    position: absolute;
    left: calc(50% - 7px);
    top: 50%;
    width: 14px;
    height: 14px;
    border: 1px solid var(--aurora-teal);
    background: var(--carbon);
    transform: rotate(45deg);
}

@keyframes pulse-line {
    0% { filter: hue-rotate(0deg); opacity: 0.45; }
    50% { filter: hue-rotate(55deg); opacity: 0.95; }
    100% { filter: hue-rotate(0deg); opacity: 0.45; }
}

.panel-indicator {
    position: fixed;
    left: 50%;
    bottom: 1.8rem;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.8rem;
    pointer-events: none;
}

.indicator-dot {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--graphite-light);
    transition: width 280ms var(--ease), background-color 280ms var(--ease);
}

.indicator-dot.active {
    width: 24px;
    background: var(--aurora-teal);
}

@media (max-width: 768px) {
    html,
    body { overflow: hidden; }

    .scroll-container {
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        scroll-snap-type: y mandatory;
    }

    .panel {
        flex: 0 0 auto;
        width: 100%;
        min-height: 100vh;
        height: auto;
        overflow: hidden;
    }

    .panel-header {
        height: auto;
        grid-template-columns: 1fr;
        padding: 1.3rem 1rem;
    }

    .iteration-title { grid-row: auto; }
    .timestamp,
    .status { text-align: left; }

    .canvas-zone {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-content: start;
        padding: 2rem 1rem 3rem;
    }

    .artifact-card,
    .glassmorphic-card,
    .concept-card,
    .diagram-card,
    .metric-card,
    .diff-card,
    .large-card,
    .offset-card,
    .metric-offset,
    .wide-card,
    .release-card,
    .card-grid-2-5,
    .card-grid-7-10,
    .card-grid-8-11,
    .interactive-demo {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .connector {
        flex: 0 0 44px;
        width: 100%;
        height: 44px;
    }

    .connector::before {
        left: 12%;
        right: 12%;
        top: 50%;
        width: auto;
        height: 2px;
        transform: translateY(-50%);
    }

    .connector::after {
        left: 50%;
        top: calc(50% - 7px);
    }

    .annotation-bar {
        min-height: 6rem;
        padding: 1rem;
    }

    .watermark {
        font-size: clamp(7rem, 31vw, 12rem);
    }

    .panel-indicator {
        left: auto;
        right: 1rem;
        bottom: 1rem;
        transform: none;
        flex-direction: column;
    }

    .indicator-dot.active {
        width: 7px;
        height: 24px;
    }
}
