/* =========================================================
   BL4CK FYR3 MAGYR0N
   PROJECT 7 — PHYSIOLOGICAL SIGNAL INTELLIGENCE
   PROJECT 7 VISUAL SYSTEM
========================================================= */

:root {
    --bg: #05070b;
    --bg-soft: #080c12;
    --panel: #0b1119;
    --panel-light: #101923;

    --text: #edf7ff;
    --muted: #8393a3;
    --dim: #526170;

    --cyan: #35e7ff;
    --cyan-soft: rgba(53, 231, 255, 0.16);

    --violet: #8b68ff;
    --violet-soft: rgba(139, 104, 255, 0.16);

    --line: rgba(150, 190, 215, 0.14);

    --max-width: 1400px;
}


/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(53, 231, 255, 0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 20% 65%,
            rgba(139, 104, 255, 0.06),
            transparent 32%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


/* =========================================================
   TECHNICAL GRID
========================================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;

    pointer-events: none;

    background-image:
        linear-gradient(
            rgba(120, 170, 195, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(120, 170, 195, 0.035) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        to bottom,
        black,
        transparent 85%
    );

    z-index: -1;
}


/* =========================================================
   HEADER
========================================================= */

.project-header {
    width: 100%;

    min-height: 78px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 5vw;

    border-bottom: 1px solid var(--line);

    background: rgba(5, 7, 11, 0.88);

    backdrop-filter: blur(18px);

    position: sticky;

    top: 0;

    z-index: 100;
}


/* BRAND */

.brand {
    text-decoration: none;

    color: var(--text);

    display: flex;

    flex-direction: column;

    line-height: 1.05;
}

.brand-main {
    font-size: 0.92rem;

    letter-spacing: 0.28em;

    font-weight: 600;
}

.brand-sub {
    margin-top: 5px;

    color: var(--cyan);

    font-size: 0.62rem;

    letter-spacing: 0.55em;
}


/* NAV */

.project-nav {
    display: flex;

    gap: 28px;

    align-items: center;
}

.project-nav a {
    color: var(--muted);

    text-decoration: none;

    font-size: 0.65rem;

    letter-spacing: 0.18em;

    transition:
        color 0.25s ease,
        text-shadow 0.25s ease;
}

.project-nav a:hover {
    color: var(--cyan);

    text-shadow:
        0 0 12px rgba(53, 231, 255, 0.55);
}


/* =========================================================
   HERO
========================================================= */

.project-hero {
    position: relative;

    min-height: 760px;

    max-width: var(--max-width);

    margin: auto;

    padding:
        150px
        6vw
        100px;

    display: grid;

    grid-template-columns:
        1.3fr
        0.7fr;

    gap: 80px;

    align-items: center;

    overflow: hidden;
}


/* HERO LIGHT */

.project-hero::before {
    content: "";

    position: absolute;

    width: 620px;

    height: 620px;

    right: -220px;

    top: 30px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(53, 231, 255, 0.11),
            rgba(139, 104, 255, 0.04) 35%,
            transparent 70%
        );

    filter: blur(5px);

    pointer-events: none;
}


/* HERO CONTENT */

.hero-content {
    position: relative;

    z-index: 2;
}

.research-label {
    color: var(--cyan);

    font-size: 0.68rem;

    letter-spacing: 0.38em;

    margin-bottom: 28px;

    font-weight: 600;
}

.hero-content h1 {
    font-size: clamp(4rem, 10vw, 9rem);

    line-height: 0.85;

    letter-spacing: -0.04em;

    font-weight: 700;
}

.hero-content h1 span {
    color: var(--violet);

    text-shadow:
        0 0 35px rgba(139, 104, 255, 0.45);
}

.hero-content h2 {
    margin-top: 30px;

    font-size: clamp(1rem, 2vw, 1.45rem);

    letter-spacing: 0.18em;

    color: #d8e7f2;

    font-weight: 500;
}

.hero-intro {
    max-width: 700px;

    margin-top: 30px;

    color: var(--muted);

    font-size: 1.05rem;

    line-height: 1.9;
}

.hero-intro strong {
    color: var(--text);

    font-weight: 600;
}


/* STATUS */

.project-status {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    margin-top: 38px;

    padding: 10px 15px;

    border: 1px solid var(--line);

    background: rgba(8, 15, 22, 0.75);

    color: var(--muted);

    font-size: 0.62rem;

    letter-spacing: 0.18em;
}

.status-dot {
    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: var(--cyan);

    box-shadow:
        0 0 8px var(--cyan),
        0 0 18px rgba(53, 231, 255, 0.6);
}


/* =========================================================
   HERO DATA PANEL
========================================================= */

.hero-data {
    position: relative;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            rgba(15, 25, 35, 0.9),
            rgba(5, 9, 14, 0.8)
        );

    padding: 30px;

    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.3);
}

.hero-data::before {
    content: "BFM / P7";

    position: absolute;

    top: -9px;

    right: 18px;

    padding: 0 8px;

    background: var(--bg);

    color: var(--cyan);

    font-size: 0.55rem;

    letter-spacing: 0.25em;
}

.data-line {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding: 19px 0;

    border-bottom: 1px solid var(--line);
}

.data-line:last-child {
    border-bottom: none;
}

.data-line span {
    color: var(--dim);

    font-size: 0.56rem;

    letter-spacing: 0.2em;
}

.data-line strong {
    color: #dcebf4;

    font-size: 0.72rem;

    letter-spacing: 0.09em;

    font-weight: 500;
}


/* =========================================================
   GENERAL SECTIONS
========================================================= */

section {
    max-width: var(--max-width);

    margin: auto;
}

.section-number {
    color: var(--cyan);

    font-size: 0.6rem;

    letter-spacing: 0.28em;

    font-weight: 600;

    margin-bottom: 35px;
}


/* =========================================================
   RESEARCH INTRO
========================================================= */

.research-intro {
    padding:
        130px
        7vw;

    border-top: 1px solid var(--line);

    display: grid;

    grid-template-columns: 0.35fr 1fr;

    gap: 70px;
}

.research-copy {
    max-width: 850px;
}

.research-copy h2 {
    font-size: clamp(2rem, 5vw, 4.2rem);

    line-height: 1;

    letter-spacing: -0.025em;

    margin-bottom: 35px;
}

.research-copy p {
    color: var(--muted);

    max-width: 800px;

    font-size: 1rem;

    line-height: 1.9;

    margin-bottom: 22px;
}


/* =========================================================
   SEVEN STAGES
========================================================= */

.seven-stages {
    padding:
        140px
        5vw
        130px;

    border-top: 1px solid var(--line);
}

.section-heading {
    text-align: center;

    margin-bottom: 75px;
}

.section-heading .section-number {
    margin-bottom: 18px;
}

.section-heading h2 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);

    line-height: 0.95;

    letter-spacing: -0.035em;
}

.section-heading p {
    margin-top: 20px;

    color: var(--muted);

    font-size: 0.7rem;

    letter-spacing: 0.32em;
}


/* STAGE GRID */

.stage-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}


/* STAGE CARD */

.stage-card {
    min-height: 330px;

    padding: 28px;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            150deg,
            rgba(12, 20, 29, 0.94),
            rgba(5, 9, 14, 0.94)
        );

    position: relative;

    overflow: hidden;

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.stage-card::after {
    content: "";

    position: absolute;

    left: 0;

    bottom: 0;

    width: 0;

    height: 2px;

    background:
        linear-gradient(
            90deg,
            var(--cyan),
            var(--violet)
        );

    transition: width 0.4s ease;
}

.stage-card:hover {
    transform: translateY(-7px);

    border-color:
        rgba(53, 231, 255, 0.35);

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35);
}

.stage-card:hover::after {
    width: 100%;
}


/* STAGE NUMBER */

.stage-number {
    color: var(--cyan);

    font-family:
        "Courier New",
        monospace;

    font-size: 0.72rem;

    letter-spacing: 0.15em;
}


/* ICON */

.stage-icon {
    margin-top: 38px;

    color: var(--violet);

    font-size: 2rem;

    opacity: 0.9;

    text-shadow:
        0 0 18px rgba(139, 104, 255, 0.45);
}


/* TITLE */

.stage-card h3 {
    margin-top: 20px;

    font-size: 1.25rem;

    letter-spacing: 0.12em;
}


/* DESCRIPTION */

.stage-card p {
    margin-top: 14px;

    color: var(--muted);

    font-size: 0.85rem;

    line-height: 1.7;
}


/* STATUS */

.stage-status {
    position: absolute;

    left: 28px;

    bottom: 23px;

    color: var(--dim);

    font-family:
        "Courier New",
        monospace;

    font-size: 0.52rem;

    letter-spacing: 0.16em;
}


/* Last three centered visually */

.stage-card:nth-child(5),
.stage-card:nth-child(6),
.stage-card:nth-child(7) {
    min-height: 300px;
}


/* =========================================================
   RESEARCH FOUNDATION
========================================================= */

.research-foundation {
    padding:
        130px
        7vw;

    border-top: 1px solid var(--line);
}

.foundation-content {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 90px;

    align-items: start;
}

.foundation-label {
    color: var(--violet);

    font-size: 0.65rem;

    letter-spacing: 0.25em;

    margin-bottom: 22px;
}

.foundation-content h2 {
    font-size: clamp(2rem, 4vw, 4rem);

    line-height: 1;

    letter-spacing: -0.025em;
}

.foundation-content p {
    color: var(--muted);

    line-height: 1.9;

    margin-bottom: 25px;

    max-width: 650px;
}


/* =========================================================
   CURRENT RESEARCH
========================================================= */

.current-research {
    padding:
        130px
        5vw;

    border-top: 1px solid var(--line);

    text-align: center;
}

.current-research h2 {
    font-size: clamp(2rem, 5vw, 4.5rem);

    letter-spacing: -0.03em;

    margin-bottom: 60px;
}


/* FLOW */

.research-flow {
    display: flex;

    justify-content: center;

    align-items: center;

    flex-wrap: wrap;

    gap: 16px;
}

.research-flow div {
    border: 1px solid var(--line);

    background: var(--panel);

    padding: 17px 20px;

    color: #cfe3ed;

    font-family:
        "Courier New",
        monospace;

    font-size: 0.58rem;

    letter-spacing: 0.12em;
}

.research-flow span {
    color: var(--cyan);

    font-size: 1.1rem;
}


/* RESEARCH STATE */

.research-state {
    margin: 65px auto 0;

    max-width: 700px;

    padding: 20px;

    border: 1px solid var(--line);

    display: flex;

    justify-content: space-between;

    gap: 15px;

    color: var(--dim);

    font-size: 0.58rem;

    letter-spacing: 0.18em;
}

.research-state strong {
    color: var(--cyan);

    font-weight: 500;
}


/* =========================================================
   FUTURE DIRECTION
========================================================= */

.future-direction {
    padding:
        140px
        7vw;

    border-top: 1px solid var(--line);
}

.future-direction h2 {
    font-size: clamp(2.2rem, 5vw, 4.7rem);

    line-height: 1;

    max-width: 850px;

    margin-bottom: 30px;
}

.future-direction > p {
    max-width: 760px;

    color: var(--muted);

    line-height: 1.9;

    font-size: 1rem;
}


/* FUTURE SYSTEM */

.future-system {
    margin-top: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 16px;

    flex-wrap: wrap;
}

.future-system div {
    min-width: 150px;

    padding: 28px 20px;

    border: 1px solid var(--line);

    background:
        linear-gradient(
            145deg,
            var(--panel),
            rgba(6, 10, 16, 0.9)
        );

    color: var(--text);

    text-align: center;

    font-family:
        "Courier New",
        monospace;

    font-size: 0.7rem;

    letter-spacing: 0.13em;
}

.future-system small {
    display: block;

    margin-top: 8px;

    color: var(--dim);

    font-size: 0.5rem;
}

.future-system span {
    color: var(--violet);

    font-size: 1.2rem;
}


/* =========================================================
   FOOTER
========================================================= */

.project-footer {
    max-width: var(--max-width);

    margin: auto;

    padding:
        35px
        5vw;

    border-top: 1px solid var(--line);

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 25px;

    color: var(--dim);

    font-size: 0.55rem;

    letter-spacing: 0.14em;
}

.project-footer span {
    color: var(--cyan);

    margin-left: 8px;
}

.project-footer a {
    color: var(--muted);

    text-decoration: none;

    transition: color 0.25s ease;
}

.project-footer a:hover {
    color: var(--cyan);
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .project-hero {
        grid-template-columns: 1fr;

        min-height: auto;

        padding-top: 120px;
    }

    .hero-data {
        max-width: 700px;
    }

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

    .research-intro {
        grid-template-columns: 1fr;
    }

    .foundation-content {
        grid-template-columns: 1fr;

        gap: 45px;
    }
}


@media (max-width: 700px) {

    .project-header {
        padding: 15px 20px;

        min-height: 70px;
    }

    .brand-main {
        font-size: 0.7rem;

        letter-spacing: 0.2em;
    }

    .project-nav {
        display: none;
    }

    .project-hero {
        padding:
            100px
            25px
            80px;
    }

    .hero-content h1 {
        font-size: 4.2rem;
    }

    .hero-content h2 {
        font-size: 0.8rem;

        line-height: 1.5;
    }

    .hero-intro {
        font-size: 0.9rem;
    }

    .research-intro,
    .research-foundation,
    .future-direction {
        padding:
            90px
            25px;
    }

    .seven-stages {
        padding:
            90px
            20px;
    }

    .stage-grid {
        grid-template-columns: 1fr;
    }

    .stage-card {
        min-height: 290px;
    }

    .current-research {
        padding:
            90px
            20px;
    }

    .research-flow {
        flex-direction: column;
    }

    .research-flow span {
        transform: rotate(90deg);
    }

    .research-state {
        flex-direction: column;

        align-items: center;

        text-align: center;
    }

    .future-system {
        flex-direction: column;
    }

    .future-system span {
        transform: rotate(90deg);
    }

    .project-footer {
        flex-direction: column;

        align-items: flex-start;

        padding:
            30px 25px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   MERGED SIGNAL CLASSIFICATION
========================================================= */

.signal-classification,
.lab-data,
.research-questions,
.embedded-system-map {
    padding: 130px 6vw;
    border-top: 1px solid var(--line);
}

.classification-header,
.lab-data-header,
.map-heading {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 55px;
}

.classification-label {
    color: var(--cyan);
    font-size: 0.58rem;
    letter-spacing: 0.25em;
    margin-bottom: 18px;
}

.classification-header h2,
.lab-data-header h2,
.map-heading h2 {
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 0.95;
    letter-spacing: -0.035em;
}

.classification-header > p,
.lab-data-header > p,
.map-heading > p {
    color: var(--muted);
    line-height: 1.9;
    max-width: 650px;
}

.classification-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.signal-card,
.data-panel,
.lab-table-wrap {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(12,20,29,.94), rgba(5,9,14,.94));
}

.signal-card {
    padding: 26px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease;
}

.signal-card:hover {
    transform: translateY(-6px);
    border-color: rgba(53,231,255,.35);
}

.signal-card-top,
.panel-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--dim);
    font-family: "Courier New", monospace;
    font-size: .52rem;
    letter-spacing: .15em;
}

.signal-state {
    color: var(--violet);
}

.signal-state.normal {
    color: var(--cyan);
}

.mini-ecg {
    height: 150px;
    margin: 38px -10px 28px;
    border-top: 1px solid rgba(120,170,195,.08);
    border-bottom: 1px solid rgba(120,170,195,.08);
    background:
        linear-gradient(rgba(120,170,195,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,170,195,.055) 1px, transparent 1px);
    background-size: 30px 30px;
}

.mini-ecg svg,
.archive-wave svg {
    width: 100%;
    height: 100%;
}

.mini-ecg path,
.archive-wave path {
    fill: none;
    stroke: var(--cyan);
    stroke-width: 2;
    filter: drop-shadow(0 0 5px rgba(53,231,255,.65));
}

.signal-card h3 {
    font-size: 1.1rem;
    letter-spacing: .13em;
}

.signal-card p {
    margin-top: 15px;
    color: var(--muted);
    line-height: 1.75;
    font-size: .84rem;
}

.signal-metrics {
    position: absolute;
    left: 26px;
    right: 26px;
    bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px 20px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.signal-metrics span {
    color: var(--dim);
    font-size: .48rem;
    letter-spacing: .16em;
}

.signal-metrics strong {
    font-family: "Courier New", monospace;
    font-size: .55rem;
    color: #cfe3ed;
    text-align: right;
}

.classification-note {
    margin-top: 20px;
    color: var(--dim);
    font-size: .56rem;
    line-height: 1.7;
    font-family: "Courier New", monospace;
}

/* =========================================================
   PAST RESEARCH
========================================================= */

.lab-method-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.lab-method-strip div {
    padding: 22px;
    border-right: 1px solid var(--line);
}

.lab-method-strip div:last-child {
    border-right: 0;
}

.lab-method-strip span {
    display: block;
    color: var(--dim);
    font-size: .5rem;
    letter-spacing: .18em;
}

.lab-method-strip strong {
    display: block;
    margin-top: 8px;
    color: #dcebf4;
    font-family: "Courier New", monospace;
    font-size: .62rem;
    letter-spacing: .08em;
}

.data-visual-grid {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 12px;
}

.data-panel {
    padding: 25px;
}

.waveform-compare {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 30px;
}

.waveform-compare small {
    color: var(--dim);
    font-family: "Courier New", monospace;
    font-size: .5rem;
    letter-spacing: .16em;
}

.archive-wave {
    height: 150px;
    margin: 10px 0;
    background:
        linear-gradient(rgba(120,170,195,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(120,170,195,.05) 1px, transparent 1px);
    background-size: 30px 30px;
    border: 1px solid rgba(120,170,195,.08);
}

.waveform-compare strong {
    color: #cfe3ed;
    font-family: "Courier New", monospace;
    font-size: .58rem;
}

.chart-caption {
    margin-top: 25px;
    color: var(--dim);
    font-size: .55rem;
    line-height: 1.7;
}

.bar-chart {
    margin-top: 45px;
}

.bar-row {
    display: grid;
    grid-template-columns: 70px 1fr 50px;
    align-items: center;
    gap: 10px;
    margin: 25px 0;
    font-family: "Courier New", monospace;
    font-size: .55rem;
}

.bar-row > span {
    color: var(--dim);
}

.bar-row strong {
    color: var(--cyan);
    text-align: right;
}

.bar-track {
    height: 7px;
    background: rgba(120,170,195,.08);
    overflow: hidden;
}

.bar-track i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--violet));
}

.delta-result {
    margin-top: 55px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.delta-result span {
    color: var(--dim);
    display: block;
    font-size: .52rem;
    letter-spacing: .17em;
}

.delta-result strong {
    display: block;
    margin-top: 7px;
    font-size: 2.3rem;
    color: var(--text);
}

.delta-result small {
    display: block;
    margin-top: 8px;
    color: var(--dim);
    font-size: .52rem;
}

.lab-table-wrap {
    margin-top: 12px;
    padding: 25px;
    overflow-x: auto;
}

.lab-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 22px;
    font-family: "Courier New", monospace;
    font-size: .57rem;
}

.lab-table th,
.lab-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
    text-align: right;
    white-space: nowrap;
}

.lab-table th:first-child,
.lab-table td:first-child {
    text-align: left;
}

.lab-table th {
    color: var(--dim);
    font-weight: 400;
    letter-spacing: .08em;
}

.lab-table td {
    color: #cfe3ed;
}

.lab-table .highlight-row td {
    color: var(--cyan);
}

.data-interpretation {
    display: grid;
    grid-template-columns: .7fr 1fr;
    gap: 70px;
    margin-top: 70px;
    align-items: start;
}

.data-interpretation > div {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.interpretation-number {
    color: var(--cyan);
    font-family: "Courier New", monospace;
    font-size: .58rem;
    letter-spacing: .15em;
}

.data-interpretation h3 {
    font-size: 1.2rem;
    letter-spacing: .13em;
}

.data-interpretation p {
    color: var(--muted);
    line-height: 1.9;
}

/* =========================================================
   RESEARCH QUESTIONS
========================================================= */

.question-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
}

.question-layout h2 {
    font-size: clamp(2.3rem, 5vw, 5rem);
    line-height: .95;
    letter-spacing: -.035em;
}

.question-list > div {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.question-list span {
    color: var(--cyan);
    font-family: "Courier New", monospace;
    font-size: .55rem;
}

.question-list p {
    color: #c4d3dd;
    line-height: 1.7;
    font-size: .84rem;
}

.research-boundary {
    margin-top: 60px;
    border: 1px solid rgba(139,104,255,.25);
    padding: 25px;
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 30px;
}

.research-boundary strong {
    color: var(--violet);
    font-family: "Courier New", monospace;
    font-size: .56rem;
    letter-spacing: .15em;
}

.research-boundary p {
    color: var(--muted);
    line-height: 1.8;
    font-size: .78rem;
}

/* =========================================================
   EMBEDDED SYSTEM MAP
========================================================= */

.map-core {
    position: relative;
    min-height: 680px;
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at center, rgba(53,231,255,.08), transparent 30%),
        linear-gradient(145deg, rgba(8,15,22,.95), rgba(4,7,11,.98));
    overflow: hidden;
}

.map-core::before,
.map-core::after {
    content: "";
    position: absolute;
    inset: 8%;
    border: 1px solid rgba(53,231,255,.06);
    border-radius: 50%;
    pointer-events: none;
}

.map-core::after {
    inset: 18%;
    border-color: rgba(139,104,255,.08);
}

.map-ring {
    position: absolute;
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    border: 1px dashed rgba(53,231,255,.18);
    border-radius: 50%;
    pointer-events: none;
}

.ring-one {
    width: 410px;
    height: 410px;
    animation: mapSpin 24s linear infinite;
}

.ring-two {
    width: 600px;
    height: 600px;
    border-color: rgba(139,104,255,.12);
    animation: mapSpinReverse 34s linear infinite;
}

.map-node {
    position: absolute;
    z-index: 3;
}

.map-node-center {
    left: 50%;
    top: 43%;
    transform: translate(-50%, -50%);
    width: 190px;
    height: 190px;
    border-radius: 50%;
    border: 1px solid rgba(53,231,255,.5);
    background: radial-gradient(circle, rgba(16,35,48,.98), rgba(4,8,13,.98));
    box-shadow: 0 0 60px rgba(53,231,255,.13), inset 0 0 40px rgba(139,104,255,.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.map-node-center span {
    color: var(--cyan);
    font: .5rem "Courier New", monospace;
    letter-spacing: .2em;
}

.map-node-center strong {
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -.08em;
}

.map-node-center small {
    margin-top: 8px;
    color: var(--dim);
    font: .44rem/1.5 "Courier New", monospace;
    letter-spacing: .12em;
}

.map-node-stage {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 1px solid rgba(53,231,255,.35);
    background: rgba(6,13,20,.96);
    color: var(--cyan);
    font: .68rem "Courier New", monospace;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(53,231,255,.07);
    transition: transform .25s ease, background .25s ease, box-shadow .25s ease;
}

.map-node-stage:hover,
.map-node-stage.map-selected {
    background: rgba(53,231,255,.12);
    box-shadow: 0 0 35px rgba(53,231,255,.2);
    transform: scale(1.12);
}

.stage-a { left: 17%; top: 16%; }
.stage-b { left: 40%; top: 9%; }
.stage-c { right: 18%; top: 18%; }
.stage-d { right: 8%; top: 47%; }
.stage-e { right: 23%; bottom: 12%; }
.stage-f { left: 39%; bottom: 7%; }
.stage-g { left: 13%; bottom: 16%; }

.map-future {
    position: absolute;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    text-align: center;
    color: var(--dim);
    font: .48rem/1.7 "Courier New", monospace;
    letter-spacing: .15em;
}

.map-future strong {
    display: block;
    color: #b9d4df;
    font-size: .56rem;
}

.map-panel {
    margin-top: 12px;
    padding: 25px;
    border: 1px solid var(--line);
    background: var(--panel);
    min-height: 120px;
    transition: border-color .3s ease, box-shadow .3s ease;
}

.map-panel-active {
    border-color: rgba(53,231,255,.28);
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}

.map-panel span {
    color: var(--cyan);
    font: .5rem "Courier New", monospace;
    letter-spacing: .18em;
}

.map-panel h3 {
    margin-top: 8px;
    font-size: 1.1rem;
    letter-spacing: .1em;
}

.map-panel p {
    margin-top: 8px;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.7;
    max-width: 850px;
}

@keyframes mapSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes mapSpinReverse {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to { transform: translate(-50%, -50%) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
    .ring-one,
    .ring-two {
        animation: none;
    }
}

@media (max-width: 900px) {
    .classification-header,
    .lab-data-header,
    .map-heading,
    .question-layout,
    .data-interpretation {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .classification-grid {
        grid-template-columns: 1fr;
    }

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

    .lab-method-strip {
        grid-template-columns: 1fr 1fr;
    }

    .lab-method-strip div:nth-child(2) {
        border-right: 0;
    }

    .lab-method-strip div:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }
}

@media (max-width: 700px) {
    .signal-classification,
    .lab-data,
    .research-questions,
    .embedded-system-map {
        padding: 90px 20px;
    }

    .lab-method-strip {
        grid-template-columns: 1fr;
    }

    .lab-method-strip div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .lab-method-strip div:last-child {
        border-bottom: 0;
    }

    .research-boundary {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .map-core {
        min-height: 600px;
    }

    .map-node-center {
        width: 145px;
        height: 145px;
    }

    .map-node-center strong {
        font-size: 3rem;
    }

    .map-node-stage {
        width: 52px;
        height: 52px;
    }

    .ring-one {
        width: 300px;
        height: 300px;
    }

    .ring-two {
        width: 450px;
        height: 450px;
    }

    .stage-a { left: 8%; top: 12%; }
    .stage-b { left: 38%; top: 7%; }
    .stage-c { right: 8%; top: 13%; }
    .stage-d { right: 4%; top: 45%; }
    .stage-e { right: 12%; bottom: 12%; }
    .stage-f { left: 37%; bottom: 7%; }
    .stage-g { left: 6%; bottom: 13%; }
}



/* =========================================================
   RESEARCH APPLICATIONS — targeted Project 7 refinement
========================================================= */
.research-applications { padding: 110px 7vw; border-top: 1px solid var(--line); }
.applications-heading { display: grid; grid-template-columns: 1fr 0.8fr; gap: 45px; align-items: end; margin-bottom: 38px; }
.applications-heading h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.035em; }
.applications-heading p, .application-card p { color: var(--muted); line-height: 1.8; }
.applications-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.application-card { min-height: 185px; padding: 25px; border: 1px solid var(--line); background: linear-gradient(145deg, rgba(15,25,35,.78), rgba(5,9,14,.72)); }
.application-card span { display: block; color: var(--cyan); font-size: .58rem; letter-spacing: .2em; margin-bottom: 18px; }
.application-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.application-card p { font-size: .88rem; }
.research-scope { margin-top: 32px; max-width: 950px; color: var(--muted); font-size: .78rem; line-height: 1.8; border-left: 2px solid var(--cyan); padding-left: 18px; }
@media (max-width: 800px) { .research-applications { padding: 80px 24px; } .applications-heading { grid-template-columns: 1fr; gap: 18px; } .applications-grid { grid-template-columns: 1fr; } }
