/* ═══════════════════════════════════════════════════
   PERSPECTIVES — Shared Styles
   jawnlam.com/perspectives
   ═══════════════════════════════════════════════════ */

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

:root {
    --bg-primary: #faf8f5;
    --bg-secondary: #f2eeea;
    --bg-tertiary: #eae5df;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4540;
    --text-muted: #8a8480;
    --accent: #7a6548;
    --accent-dim: rgba(122, 101, 72, 0.1);
    --accent-line: rgba(122, 101, 72, 0.3);
    --rule: rgba(26, 26, 26, 0.1);
    --serif: 'Cormorant Garamond', 'Georgia', serif;
    --sans: 'Libre Franklin', 'Helvetica Neue', sans-serif;

    /* Phase accent colors — subtle earth tone variations */
    --phase-1: #7a6548;
    --phase-2: #5e7a52;
    --phase-3: #4a6878;
    --phase-4: #6e5478;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: #fff;
}

/* ─── NAVIGATION ─── */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, padding 0.4s ease;
}

nav.scrolled {
    background: rgba(250, 248, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--rule);
}

.wordmark {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity 0.4s ease;
}

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

.nav-links a {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background: var(--text-primary);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ─── LAYOUT ─── */

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 3rem;
}

.container--narrow {
    max-width: 780px;
}

.container--wide {
    max-width: 1200px;
}

/* ─── BREADCRUMBS ─── */

.breadcrumbs {
    padding: 6.5rem 3rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.breadcrumbs li::after {
    content: '/';
    margin-left: 0.4rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.breadcrumbs li:last-child::after { display: none; }

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover { color: var(--accent); }

.breadcrumbs .current {
    color: var(--text-secondary);
}

/* ─── PAGE HERO ─── */

.page-hero {
    padding: 2rem 0 4rem;
}

.page-hero--hub {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0 4rem;
    position: relative;
}

.page-hero--hub::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(122, 101, 72, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 50% 80% at 20% 80%, rgba(200, 190, 175, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.page-hero .hero-rule {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    animation: ruleReveal 1s ease 0.3s forwards;
}

.page-hero h1 {
    font-family: var(--serif);
    font-weight: 300;
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.page-hero .subtitle {
    font-family: var(--serif);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ─── SECTION HELPERS ─── */

.section-label {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 3rem;
    padding-left: 2px;
}

.section-divider {
    border: none;
    height: 1px;
    background: var(--rule);
    margin: 0;
}

/* ─── EPIGRAPH ─── */

.epigraph {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.epigraph blockquote {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    line-height: 1.7;
    color: var(--text-secondary);
    border: none;
    padding: 0;
    max-width: 640px;
}

.epigraph blockquote p {
    margin-bottom: 0.5rem;
}

.epigraph blockquote p:last-child {
    margin-bottom: 0;
}

/* ─── JOURNEY MAP ─── */

.journey-section {
    padding: 4rem 0 6rem;
}

.journey-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    text-align: center;
}

.journey-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3.5rem;
    letter-spacing: -0.01em;
}

.journey-path {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* The vertical line connecting nodes */
.journey-path::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: var(--accent-line);
}

.journey-node {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    margin-bottom: 1rem;
}

.journey-node:last-child { margin-bottom: 0; }

/* The dot on the line */
.journey-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    justify-self: center;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.journey-node:hover .journey-dot {
    background: var(--accent);
    transform: scale(1.3);
}

.journey-card {
    background: var(--bg-primary);
    border: 1px solid var(--rule);
    padding: 2rem 2.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    display: block;
}

.journey-card:hover {
    border-color: var(--accent-line);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

/* Alternate sides */
.journey-node:nth-child(odd) .journey-card {
    grid-column: 1;
    grid-row: 1;
    text-align: right;
}

.journey-node:nth-child(odd) .journey-dot {
    grid-column: 2;
    grid-row: 1;
}

.journey-node:nth-child(odd) .journey-spacer {
    grid-column: 3;
    grid-row: 1;
}

.journey-node:nth-child(even) .journey-card {
    grid-column: 3;
    grid-row: 1;
}

.journey-node:nth-child(even) .journey-dot {
    grid-column: 2;
    grid-row: 1;
}

.journey-node:nth-child(even) .journey-spacer {
    grid-column: 1;
    grid-row: 1;
}

.journey-card .level-num {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.journey-card h3 {
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.journey-card .desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.journey-card .tool-count {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--accent);
    margin-top: 0.8rem;
    display: inline-block;
}

/* Graduation bridge between SMB and SME */
.journey-bridge {
    position: relative;
    text-align: center;
    padding: 3rem 0;
    margin: 1rem 0;
}

.journey-bridge .bridge-line {
    width: 1px;
    height: 60px;
    background: repeating-linear-gradient(
        to bottom,
        var(--accent-line) 0px,
        var(--accent-line) 6px,
        transparent 6px,
        transparent 12px
    );
    margin: 0 auto 1.5rem;
}

.journey-bridge .bridge-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--text-secondary);
    padding: 0.8rem 2rem;
    background: var(--bg-secondary);
    display: inline-block;
    position: relative;
}

/* Phase nodes (SME) — wider, with matrix mini-grid */
.journey-node--phase .journey-card {
    padding: 2.5rem 2.5rem;
}

.journey-node--phase .journey-dot {
    width: 18px;
    height: 18px;
    border-width: 2.5px;
}

.phase-badge {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.55rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.25em 0.8em;
    border-radius: 2px;
    margin-bottom: 0.8rem;
}

.phase-badge--1 { background: rgba(122, 101, 72, 0.1); color: var(--phase-1); }
.phase-badge--2 { background: rgba(94, 122, 82, 0.1); color: var(--phase-2); }
.phase-badge--3 { background: rgba(74, 104, 120, 0.1); color: var(--phase-3); }
.phase-badge--4 { background: rgba(110, 84, 120, 0.1); color: var(--phase-4); }

/* ─── ASSESS CTA ─── */

.assess-cta {
    padding: 5rem 0;
    background: var(--bg-secondary);
    text-align: center;
}

.assess-cta h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.assess-cta p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1em 2.5em;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn--primary {
    color: #fff;
    background: var(--accent);
    border: 1px solid var(--accent);
}

.btn--primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn--secondary {
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent-line);
}

.btn--secondary:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ─── CARD GRIDS ─── */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.card {
    background: var(--bg-primary);
    padding: 2.5rem;
    transition: background 0.3s ease;
}

.card:hover {
    background: var(--bg-secondary);
}

.card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.card .card-num {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.card h3 {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ─── MATRIX BADGES ─── */

.matrix-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.2em 0.6em;
    border-radius: 2px;
    margin-bottom: 0.8rem;
}

.matrix-badge--cost { background: rgba(122, 101, 72, 0.08); color: #7a6548; }
.matrix-badge--speed { background: rgba(94, 122, 82, 0.08); color: #5e7a52; }
.matrix-badge--quality { background: rgba(74, 104, 120, 0.08); color: #4a6878; }

/* ─── MATRIX GRID (interactive filter) ─── */

.matrix-filter {
    max-width: 500px;
    margin: 0 auto 3rem;
}

.matrix-grid {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 2px;
    font-family: var(--sans);
    font-size: 0.72rem;
}

.matrix-grid .matrix-header {
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.8rem;
    text-align: center;
    font-size: 0.6rem;
}

.matrix-grid .matrix-row-label {
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 0.6rem;
}

.matrix-cell {
    padding: 1rem;
    background: var(--bg-secondary);
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.matrix-cell:hover {
    background: var(--bg-tertiary);
}

.matrix-cell.active {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.matrix-cell .cell-count {
    display: block;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    font-family: var(--serif);
}

/* ─── ACCORDION / PROGRESSIVE DISCLOSURE ─── */

.accordion {
    border-top: 1px solid var(--rule);
}

.accordion-item {
    border-bottom: 1px solid var(--rule);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color 0.2s ease;
}

.accordion-trigger:hover {
    color: var(--accent);
}

.accordion-trigger h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: inherit;
    letter-spacing: -0.01em;
}

.accordion-trigger .num {
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-right: 1rem;
    min-width: 2rem;
}

.accordion-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.accordion-content-inner {
    padding: 0 0 2rem 0;
}

.accordion-content-inner p {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.accordion-content-inner p:last-child { margin-bottom: 0; }

/* Nested accordions */
.accordion--nested {
    border-top: none;
    margin-left: 1.5rem;
    border-left: 2px solid var(--accent-dim);
    padding-left: 1.5rem;
}

.accordion--nested .accordion-trigger {
    padding: 1rem 0;
}

.accordion--nested .accordion-trigger h3,
.accordion--nested .accordion-trigger h4 {
    font-size: 1rem;
}

/* ─── DISCIPLINE PAGE ─── */

.discipline-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    padding: 2rem 0 6rem;
    align-items: start;
}

.discipline-sidebar {
    position: sticky;
    top: 6rem;
}

.discipline-sidebar .toc-label {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.discipline-sidebar a {
    display: block;
    font-family: var(--sans);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0;
    border-left: 2px solid transparent;
    padding-left: 1rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.discipline-sidebar a:hover {
    color: var(--text-secondary);
}

.discipline-sidebar a.active {
    color: var(--accent);
    border-left-color: var(--accent);
}

.discipline-sidebar a.toc-sub {
    padding-left: 2rem;
    font-size: 0.7rem;
}

.discipline-content section {
    margin-bottom: 3rem;
}

.discipline-content h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    padding-top: 1rem;
}

.discipline-content h3 {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.discipline-content p {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
}

.discipline-content ul,
.discipline-content ol {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

.discipline-content li {
    margin-bottom: 0.4rem;
}

/* ─── PREV/NEXT NAVIGATION ─── */

.prev-next {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 4rem;
}

.prev-next a {
    display: block;
    padding: 2rem;
    background: var(--bg-primary);
    text-decoration: none;
    transition: background 0.3s ease;
}

.prev-next a:hover {
    background: var(--bg-secondary);
}

.prev-next .direction {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.prev-next .link-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    color: var(--text-primary);
}

.prev-next .next {
    text-align: right;
}

/* ─── FOOTER ─── */

footer {
    padding: 3rem;
    border-top: 1px solid var(--rule);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ─── ANIMATIONS ─── */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes ruleReveal {
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── ASSESSMENT ─── */

.assess-section {
    padding: 4rem 0;
}

.assess-progress {
    display: flex;
    gap: 4px;
    margin-bottom: 3rem;
}

.assess-progress .step {
    flex: 1;
    height: 3px;
    background: var(--rule);
    border-radius: 2px;
    transition: background 0.3s ease;
}

.assess-progress .step.done {
    background: var(--accent);
}

.assess-progress .step.current {
    background: var(--accent-line);
}

.assess-question {
    margin-bottom: 3rem;
}

.assess-question h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.assess-question .context {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.assess-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.assess-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border: 1px solid var(--rule);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.assess-option:hover {
    border-color: var(--accent-line);
    background: var(--accent-dim);
}

.assess-option.selected {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.assess-option input {
    display: none;
}

.assess-option .radio {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--accent-line);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease;
}

.assess-option.selected .radio {
    border-color: var(--accent);
}

.assess-option.selected .radio::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Assessment results */
.assess-results {
    padding: 4rem 0;
}

.result-level {
    text-align: center;
    margin-bottom: 3rem;
}

.result-level .level-indicator {
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-level h2 {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.result-level p {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.result-bar-chart {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.result-bar {
    display: grid;
    grid-template-columns: 120px 1fr 40px;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.8rem;
}

.result-bar .bar-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    text-align: right;
}

.result-bar .bar-track {
    height: 8px;
    background: var(--rule);
    border-radius: 4px;
    overflow: hidden;
}

.result-bar .bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.result-bar .bar-score {
    font-family: var(--sans);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
}

/* ─── RESPONSIVE ─── */

@media (max-width: 900px) {
    .discipline-layout {
        grid-template-columns: 1fr;
    }

    .discipline-sidebar {
        position: static;
        display: none;
    }

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

    .prev-next {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    nav {
        padding: 1.2rem 1.5rem;
    }

    nav.scrolled {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: rgba(250, 248, 245, 0.97);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        flex-direction: column;
        justify-content: center;
        padding: 3rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        border-left: 1px solid var(--rule);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-toggle {
        display: flex;
        z-index: 101;
    }

    .container {
        padding: 0 1.5rem;
    }

    .breadcrumbs {
        padding: 5.5rem 1.5rem 0;
    }

    .page-hero--hub {
        padding: 6rem 0 3rem;
        min-height: auto;
    }

    .journey-node {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .journey-path::before {
        display: none;
    }

    .journey-dot {
        display: none;
    }

    .journey-spacer {
        display: none;
    }

    .journey-node:nth-child(odd) .journey-card,
    .journey-node:nth-child(even) .journey-card {
        grid-column: auto;
        text-align: left;
        width: 100%;
    }

    .journey-card {
        padding: 1.5rem;
    }

    .assess-cta {
        padding: 3rem 0;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        padding: 2rem 1.5rem;
    }

    .matrix-grid {
        font-size: 0.65rem;
    }

    .matrix-cell {
        padding: 0.6rem;
    }
}
