/* ==========================================================
   PENROSE PARTICLES
   STUDY 06 — SYNTHETIC DATA

   Matches existing Penrose Particles study styling:
   white background
   navy typography
   blue accents
   thin blue-grey borders
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --background: #ffffff;

    --panel: #fbfcfe;

    --navy: #061a3a;

    --blue: #1f5fa8;

    --blue-light: #2f6fb3;

    --text: #14233b;

    --muted: #66758a;

    --soft-muted: #8794a6;

    --border: #d8e0e9;

    --track: #e7edf4;

}


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

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: var(--background);

    color: var(--navy);

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    line-height: 1.6;

}


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

.site-header {

    width: min(1180px, 88%);

    margin: 0 auto;

    padding: 26px 0;

    display: flex;

    align-items: center;

    justify-content: space-between;

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

}


.brand {

    color: var(--navy);

    text-decoration: none;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.13em;

}


nav {

    display: flex;

    gap: 28px;

}


nav a {

    color: var(--muted);

    text-decoration: none;

    font-size: 13px;

}


nav a:hover {

    color: var(--blue);

}


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

main {

    width: 100%;

}


.section {

    width: min(1180px, 88%);

    margin: 0 auto;

    padding: 85px 0;

}


.eyebrow,
.study-label {

    margin: 0 0 18px;

    color: var(--blue);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.13em;

    text-transform: uppercase;

}


.section-heading {

    max-width: 760px;

    margin-bottom: 48px;

}


.section-heading h2 {

    margin: 0 0 18px;

    color: var(--navy);

    font-size: clamp(30px,
            4vw,
            44px);

    line-height: 1.12;

    letter-spacing: -0.025em;

    font-weight: 600;

}


.section-heading p:last-child {

    max-width: 650px;

    margin-bottom: 0;

    color: var(--muted);

    font-size: 16px;

}


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

.hero {

    width: min(1180px, 88%);

    margin: 0 auto;

    padding: 90px 0 85px;

}


.hero h1 {

    max-width: 950px;

    margin: 0;

    color: var(--navy);

    font-size: clamp(46px,
            6.5vw,
            82px);

    line-height: 1;

    letter-spacing: -0.045em;

    font-weight: 600;

}


.hero-text {

    max-width: 670px;

    margin: 42px 0 0;

    color: var(--muted);

    font-size: 18px;

    line-height: 1.7;

}


/* ==========================================================
   TWO-COLUMN INTRODUCTION
========================================================== */

.two-column {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    color: var(--muted);

    font-size: 16px;

}


.two-column p {

    margin: 0;

}


/* ==========================================================
   TOP METRICS
========================================================== */

.metrics {

    width: min(1180px, 88%);

    margin: 0 auto;

    display: grid;

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

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

    border-radius: 4px;

    background: var(--panel);

    overflow: hidden;

}


.metric {

    min-height: 160px;

    padding: 34px;

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

}


.metric:last-child {

    border-right: none;

}


.metric-number {

    display: block;

    margin-bottom: 20px;

    color: var(--navy);

    font-size: clamp(34px,
            4vw,
            48px);

    line-height: 1;

    letter-spacing: -0.035em;

    font-weight: 600;

}


.metric-label {

    display: block;

    color: var(--soft-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}


/* ==========================================================
   PROCESS
========================================================== */

.process {

    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr;

    gap: 18px;

    align-items: center;

}


.process-step {

    min-height: 210px;

    padding: 28px;

    background: var(--panel);

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

    border-radius: 4px;

}


.process-step span {

    display: block;

    margin-bottom: 48px;

    color: var(--blue);

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 0.1em;

}


.process-step strong {

    display: block;

    margin-bottom: 9px;

    color: var(--navy);

    font-size: 17px;

}


.process-step p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.6;

}


.arrow {

    color: var(--blue);

    font-size: 21px;

}


/* ==========================================================
   CLASSIFIER RESULT

   Instead of black, this uses the same light analytical
   presentation as the other Penrose studies.
========================================================== */

.dark-section {

    width: min(1180px, 88%);

    margin: 30px auto 0;

    padding: 55px;

    background: var(--panel);

    color: var(--navy);

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

    border-radius: 4px;

}


.result-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 80px;

    align-items: center;

}


.dark-section .eyebrow,
.light {

    color: var(--blue);

}


.result-grid h2 {

    max-width: 500px;

    margin: 0 0 25px;

    color: var(--navy);

    font-size: clamp(34px,
            4.5vw,
            54px);

    line-height: 1.05;

    letter-spacing: -0.035em;

    font-weight: 600;

}


.result-description {

    max-width: 530px;

    margin-bottom: 0;

    color: var(--muted);

    font-size: 15px;

}


.accuracy-display {

    padding-left: 55px;

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

}


.huge-number {

    display: block;

    color: var(--blue);

    font-size: clamp(68px,
            9vw,
            115px);

    line-height: 0.9;

    letter-spacing: -0.055em;

    font-weight: 600;

}


.accuracy-display>span:nth-child(2) {

    display: block;

    margin-top: 20px;

    color: var(--muted);

    font-size: 14px;

}


.random-line {

    margin-top: 45px;

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    gap: 14px;

    align-items: center;

    color: var(--soft-muted);

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

}


.line {

    height: 1px;

    background: var(--border);

}


/* ==========================================================
   REAL VS SYNTHETIC TABLE
========================================================== */

.comparison-table {

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

}


.comparison-row {

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    padding: 22px 14px;

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

    color: var(--text);

    font-size: 14px;

}


.comparison-row:not(.header-row):hover {

    background: var(--panel);

}


.header-row {

    color: var(--blue);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.11em;

    text-transform: uppercase;

}


/* ==========================================================
   SIMILARITY BARS
========================================================== */

.similarity-list {

    max-width: 900px;

}


.similarity-item {

    display: grid;

    grid-template-columns:
        180px 1fr 70px;

    gap: 25px;

    align-items: center;

    padding: 16px 0;

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

}


.similarity-name {

    color: var(--text);

    font-size: 13px;

}


.similarity-track {

    height: 7px;

    background: var(--track);

    border-radius: 10px;

    overflow: hidden;

}


.similarity-fill {

    width: 0;

    height: 100%;

    background: var(--blue-light);

    border-radius: 10px;

    transition: width 0.8s ease;

}


.similarity-value {

    color: var(--navy);

    text-align: right;

    font-size: 13px;

    font-weight: 600;

}


/* ==========================================================
   WHY THIS MATTERS
========================================================== */

.callout {

    width: min(1180px, 88%);

    margin: 40px auto;

    padding: 60px;

    background: var(--panel);

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

    border-radius: 4px;

}


.callout>* {

    max-width: 820px;

}


.callout h2 {

    margin: 0 0 25px;

    color: var(--navy);

    font-size: clamp(34px,
            4.5vw,
            52px);

    line-height: 1.08;

    letter-spacing: -0.03em;

    font-weight: 600;

}


.callout p:last-child {

    max-width: 690px;

    margin-bottom: 0;

    color: var(--muted);

    font-size: 16px;

}


/* ==========================================================
   METHODOLOGY
========================================================== */

.method-grid {

    display: grid;

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

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

    border-radius: 4px;

    overflow: hidden;

}


.method-grid article {

    min-height: 265px;

    padding: 28px;

    background: var(--panel);

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

}


.method-grid article:last-child {

    border-right: none;

}


.method-grid span {

    color: var(--blue);

    font-size: 11px;

    font-weight: 700;

}


.method-grid h3 {

    margin: 55px 0 12px;

    color: var(--navy);

    font-size: 17px;

}


.method-grid p {

    margin: 0;

    color: var(--muted);

    font-size: 13px;

    line-height: 1.65;

}


/* ==========================================================
   INTERPRETATION / LIMITATIONS
========================================================== */

.limitations {

    width: min(900px, 88%);

    margin: 40px auto 110px;

    padding: 45px;

    background: #ffffff;

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

    border-left: 3px solid var(--blue);

    border-radius: 3px;

}


.limitations h2 {

    margin: 0 0 22px;

    color: var(--navy);

    font-size: 30px;

    letter-spacing: -0.02em;

    font-weight: 600;

}


.limitations p {

    color: var(--muted);

    font-size: 14px;

}


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

footer {

    width: min(1180px, 88%);

    margin: 0 auto;

    padding: 30px 0;

    display: flex;

    justify-content: space-between;

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

    color: var(--soft-muted);

    font-size: 10px;

    letter-spacing: 0.1em;

    text-transform: uppercase;

}


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

@media (max-width: 900px) {

    .metrics {

        grid-template-columns:
            1fr 1fr;

    }


    .metric {

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

    }


    .process {

        grid-template-columns: 1fr;

    }


    .arrow {

        text-align: center;

        transform: rotate(90deg);

    }


    .result-grid {

        grid-template-columns: 1fr;

        gap: 45px;

    }


    .accuracy-display {

        padding:
            40px 0 0;

        border-left: none;

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

    }


    .method-grid {

        grid-template-columns:
            1fr 1fr;

    }


    .method-grid article:nth-child(2) {

        border-right: none;

    }

}


@media (max-width: 600px) {

    .site-header {

        width: 90%;

    }


    .hero {

        width: 90%;

        padding:
            70px 0;

    }


    .section {

        width: 90%;

        padding:
            65px 0;

    }


    .two-column {

        grid-template-columns: 1fr;

        gap: 25px;

    }


    .metrics {

        width: 90%;

        grid-template-columns: 1fr;

    }


    .metric {

        border-right: none;

    }


    .dark-section,
    .callout {

        width: 90%;

        padding: 35px 25px;

    }


    .comparison-row {

        grid-template-columns:
            1.5fr 1fr 1fr 1fr;

        gap: 7px;

        padding:
            18px 5px;

        font-size: 11px;

    }


    .similarity-item {

        grid-template-columns:
            115px 1fr 52px;

        gap: 12px;

    }


    .method-grid {

        grid-template-columns: 1fr;

    }


    .method-grid article {

        border-right: none;

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

    }


    .method-grid article:last-child {

        border-bottom: none;

    }


    .limitations {

        width: 90%;

        padding: 30px;

    }


    footer {

        width: 90%;

        gap: 20px;

    }

}

/* ==========================================================
   PYTHON ANALYSIS LINK
========================================================== */

.code-link {
    display: inline-block;

    margin-top: 35px;
    padding-bottom: 5px;

    color: #1f5fa8;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;

    text-decoration: none;

    border-bottom: 1px solid #1f5fa8;
}

.code-link:hover {
    color: #061a3a;
    border-bottom-color: #061a3a;
}