:root {
    /* Color Palette - Reverted to Orange */
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-card-hover: #1c1c1c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-orange: #ff9d00;
    --accent-glow: rgba(255, 157, 0, 0.15);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(255, 255, 255, 0.2);
    --glass-bg: rgba(20, 20, 20, 0.7);

    /* Spacing Scale (4px Baseline Grid) */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-64: 64px;
    --space-96: 96px;

    /* Typography - Consolidated Universal Font */
    --font-main: 'Space Grotesk', sans-serif;
    
    /* Weight Cascading (2 steps apart) */
    --weight-bold: 700;
    --weight-medium: 500;
    --weight-light: 300;

    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-pad: clamp(16px, 4vw, 40px);
    --section-y: clamp(56px, 8vw, 112px);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    scroll-padding-top: 120px;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-weight: var(--weight-light);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

main {
    min-width: 0;
}

img, svg {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

strong {
    font-weight: var(--weight-medium);
    color: var(--text-primary);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.section-padding {
    padding: var(--section-y) 0;
}

.section-border {
    border-bottom: 1px solid var(--border-color);
}

.section-border-top {
    border-top: 1px solid var(--border-color);
}

/* Background Effects - Brutalist Grid (Orange) */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255, 157, 0, 0.03) 1px, transparent 1px), 
        linear-gradient(to bottom, rgba(255, 157, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* Typography Utility - Cascading Weights */
h1 {
    font-family: var(--font-main);
    font-weight: var(--weight-bold);
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
}

h2, h3, h4 {
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

p, li, .mono {
    font-family: var(--font-main);
    font-weight: var(--weight-light);
    overflow-wrap: anywhere;
}

.font-data {
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
}

.eyebrow {
    display: block;
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
    font-size: 11px;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-12);
    text-transform: uppercase;
    color: var(--text-secondary);
}

.accent-text {
    color: var(--accent-orange);
}

/* High-Density Components - Brutalist Refinement */
.diagnostic-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: var(--space-20);
    position: relative;
    transition: var(--transition-smooth);
    border-radius: 0;
    min-width: 0;
}

.diagnostic-card:hover {
    border-color: var(--accent-orange);
    background: var(--bg-card-hover);
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--space-16);
    padding-bottom: var(--space-12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-12);
    min-width: 0;
}

.status-badge {
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 0;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    white-space: nowrap;
}

/* Navigation - Brutalist Glass */
.glass-nav {
    position: fixed;
    top: clamp(10px, 2vw, 24px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 32px), 1400px);
    max-width: 1400px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--accent-orange);
    border-radius: 0;
    z-index: 1000;
    padding: var(--space-12) clamp(14px, 2vw, 24px);
    transition: top 0.25s ease, width 0.25s ease, background 0.25s ease;
}

.glass-nav.is-condensed {
    top: var(--space-12);
    width: min(calc(100% - 24px), 1400px);
    background: rgba(10, 10, 10, 0.9);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-24);
    min-width: 0;
}

.nav-logo {
    font-family: 'NIKEA', sans-serif;
    font-size: 20px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px clamp(14px, 2vw, 32px);
    min-width: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-weight: var(--weight-light);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--accent-orange);
    font-weight: var(--weight-medium);
}

.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    background: currentColor;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-12) var(--space-24);
    border-radius: 0;
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-main);
    min-height: 44px;
    text-align: center;
    max-width: 100%;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--accent-orange);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.btn-sm {
    padding: var(--space-8) var(--space-16);
    font-size: 12px;
}

/* Hero Section Refactor */
.hero {
    padding-top: clamp(132px, 16vw, 184px);
    min-height: min(920px, 100svh);
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
}

.hero-title {
    font-size: clamp(42px, 7vw, 84px);
    margin-bottom: var(--space-24);
    max-width: 12ch;
}

.hero-subtitle {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: var(--space-32);
}

.hero-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-16);
    margin-bottom: var(--space-32);
}

.hero-metric-card {
    min-width: 0;
}

.hero-metric-card .font-data {
    font-size: clamp(24px, 4vw, 32px) !important;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
}

/* Diagnostic Signal Visual - Reverted to Orange */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.diagnostic-signal {
    width: clamp(220px, 28vw, 380px);
    height: auto;
    aspect-ratio: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.signal-ring {
    position: absolute;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.signal-ring:nth-child(1) { 
    width: 100%; 
    height: 100%; 
    border-style: dashed; 
    border-color: rgba(255, 157, 0, 0.2);
    animation: rotate 20s linear infinite; 
}
.signal-ring:nth-child(2) { 
    width: 70%; 
    height: 70%; 
    border-color: rgba(255, 157, 0, 0.4); 
}
.signal-ring:nth-child(3) { 
    width: 40%; 
    height: 40%; 
    border-color: var(--accent-orange);
}

.signal-core {
    width: 16px;
    height: 16px;
    background: var(--accent-orange);
    border-radius: 0;
    box-shadow: 0 0 20px var(--accent-glow);
}

.signal-scanner {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--accent-glow), transparent 40%);
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections Common */
.section-header {
    margin-bottom: clamp(32px, 5vw, 64px);
    max-width: 860px;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    margin-bottom: var(--space-16);
}

.section-description {
    font-size: clamp(16px, 1.7vw, 20px);
    color: var(--text-secondary);
    max-width: 72ch;
    overflow-wrap: normal;
}

/* Concept Grid - Brutalist Grid */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.concept-card {
    background: var(--bg-card);
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin: -0.5px;
    transition: var(--transition-smooth);
    position: relative;
    isolation: isolate;
}

.concept-card:first-child {
    z-index: 2;
}

.concept-card:hover {
    border-color: var(--accent-orange);
    z-index: 3;
}

.card-chart {
    height: 80px;
    width: 100%;
    margin-bottom: var(--space-24);
    opacity: 0.8;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.card-chart svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.concept-title {
    font-size: 18px;
    margin-bottom: var(--space-12);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

.concept-card:first-child .concept-title {
    color: var(--text-primary);
    text-shadow: none;
}

.concept-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

/* Study Grid & Cards Refactor */
.study-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
}

.study-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    margin: -0.5px;
}

.study-title {
    font-size: 22px;
    margin-bottom: var(--space-8);
    font-weight: var(--weight-medium);
}

.study-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-16);
    flex-grow: 1;
}

.study-stats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-24);
    margin-bottom: var(--space-16);
    padding: var(--space-12) 0;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: var(--weight-medium);
    color: var(--accent-orange);
}

.stat-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.study-lens {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.study-lens span {
    font-size: 10px;
    padding: 2px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 0;
    color: var(--text-secondary);
}

/* Artifact Grid - Brutalist Grid */
.artifact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    margin-bottom: var(--space-48);
}

.artifact-card {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 0;
    margin: -0.5px;
}

.artifact-title {
    font-size: 16px;
    margin-bottom: var(--space-8);
}

.artifact-card p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.4;
}

.artifact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
    justify-content: center;
}

.artifact-chips span {
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 0;
    color: var(--text-secondary);
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: var(--weight-light);
    max-width: 100%;
    overflow-wrap: anywhere;
}

/* Steps - Brutalist List */
.steps-container {
    max-width: 800px;
    margin-top: var(--space-64);
    border-top: 1px solid var(--border-color);
}

.step-item {
    display: flex;
    gap: var(--space-32);
    padding: var(--space-32) 0;
    border-bottom: 1px solid var(--border-color);
}

.step-number {
    font-size: 24px;
    color: var(--accent-orange);
    font-weight: var(--weight-bold);
    font-family: var(--font-main);
}

.step-content h3 {
    font-size: 24px;
    margin-bottom: var(--space-8);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* System Architecture - Brutalist Layers */
.architecture-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.architecture-visual {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.arch-layer {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: var(--space-24);
    border-radius: 0;
    position: relative;
    margin-bottom: -1px;
    overflow-wrap: anywhere;
}

.arch-layer::before {
    content: attr(data-label);
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--bg-dark);
    padding: 0 10px;
    font-family: var(--font-main);
    font-size: 10px;
    color: var(--accent-orange);
    border: 1px solid var(--border-color);
    font-weight: var(--weight-medium);
}

.arch-mid-section {
    display: flex;
    justify-content: center;
}

.arch-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.arch-node {
    background: rgba(255, 157, 0, 0.05);
    border: 1px solid var(--border-color);
    padding: var(--space-16);
    border-radius: 0;
    position: relative;
    font-size: 13px;
    margin-bottom: -1px;
    overflow-wrap: anywhere;
}

.architecture-cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
    min-width: 0;
}

.arch-card {
    background: var(--bg-card);
    padding: var(--space-32);
    border-radius: 0;
    border: 1px solid var(--border-color);
    min-width: 0;
    overflow-wrap: anywhere;
}

.arch-card-title {
    font-size: 20px;
    margin-bottom: var(--space-24);
}

.schema-content {
    font-size: 13px;
    line-height: 1.55;
}

.schema-content p,
.schema-content span {
    overflow-wrap: anywhere;
}

.schema-group {
    min-width: 0;
}

.schema-group + .schema-group {
    margin-top: var(--space-12);
}

.schema-group label {
    display: block;
    color: var(--accent-orange);
    font-size: 10px;
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
}

.schema-footer {
    margin-top: var(--space-16);
    color: var(--text-secondary);
}

.highlight-card {
    border-color: var(--accent-orange);
    background: radial-gradient(circle at top right, var(--accent-glow), transparent);
}

.highlight-card p {
    color: var(--text-secondary);
}

.coming-soon {
    display: inline-block;
    margin-top: var(--space-24);
    padding: 4px 12px;
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
    border-radius: 0;
    font-size: 10px;
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
}

/* Analyst Brief - Brutalist Grid */
.brief-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 0;
    border-top: 1px solid var(--border-color);
    border-left: 1px solid var(--border-color);
    margin-bottom: var(--space-64);
}

.brief-card {
    background: var(--bg-card);
    padding: var(--space-32);
    border-radius: 0;
    border: 1px solid var(--border-color);
    margin: -0.5px;
}

.brief-card h3 {
    font-size: 16px;
    margin-bottom: var(--space-24);
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: var(--weight-medium);
}

.brief-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-16);
}

.bullet-list {
    list-style-position: outside;
    padding-left: 1.1rem;
    color: var(--text-secondary);
}

.bullet-list li + li {
    margin-top: var(--space-8);
}

/* About Section - Brutalist Alignment */
.about-content p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: var(--space-24);
    font-weight: var(--weight-light);
    max-width: 78ch;
}

.about-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-16);
}

/* Footer - Brutalist Grid */
footer {
    padding: var(--section-y) 0;
    background: #000;
    border-top: 2px solid var(--accent-orange);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: clamp(32px, 6vw, 80px);
    margin-bottom: var(--space-64);
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: var(--space-8);
}

.footer-logo {
    font-family: 'NIKEA', sans-serif;
    font-size: 24px;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-primary);
    display: block;
    margin-bottom: var(--space-8);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-24);
    list-style: none;
}

.footer-links span {
    display: block;
    font-family: var(--font-main);
    font-weight: var(--weight-medium);
    font-size: 10px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: var(--space-12);
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: var(--font-main);
    font-weight: var(--weight-light);
    display: block;
    margin-bottom: var(--space-8);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent-orange);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: var(--space-32);
    color: var(--text-secondary);
    font-size: 11px;
    font-family: var(--font-main);
    text-transform: uppercase;
}

.footer-bottom a {
    color: var(--text-primary);
    text-decoration: none;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-48);
    }
    
    .hero-visual {
        justify-content: flex-start;
    }

    .hero-title {
        max-width: 13ch;
    }

    .architecture-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    html {
        scroll-padding-top: 96px;
    }

    .glass-nav {
        width: min(calc(100% - 24px), 1400px);
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: var(--space-8);
        background: rgba(10, 10, 10, 0.96);
        border: 1px solid var(--accent-orange);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
    }

    .nav-links.is-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-links li {
        min-width: 0;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 var(--space-12);
        border: 1px solid var(--border-color);
        margin: -0.5px;
        white-space: normal;
    }

    .mobile-menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: var(--section-y) 0;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
    }

    .hero-content {
        gap: var(--space-40, 40px);
    }

    .hero-title {
        font-size: clamp(38px, 12vw, 58px);
        max-width: 10ch;
    }

    .hero-metrics-grid {
        grid-template-columns: 1fr;
    }

    .card-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .diagnostic-signal {
        width: min(72vw, 280px);
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-actions, .cta-buttons, .brief-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .step-item {
        gap: var(--space-16);
    }

    .brief-card,
    .concept-card,
    .arch-card {
        padding: var(--space-24);
    }

    .arch-layer::before {
        left: 12px;
        max-width: calc(100% - 24px);
        overflow-wrap: anywhere;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-48);
    }
}

@media (max-width: 680px) {
    .nav-links {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: clamp(28px, 9vw, 38px);
    }
}

@media (max-width: 520px) {
    .nav-logo {
        font-size: 17px;
    }

    .hero {
        padding-top: 112px;
    }

    .hero-title {
        font-size: clamp(34px, 13vw, 46px);
        max-width: 100%;
    }

    .hero-subtitle,
    .section-description {
        line-height: 1.6;
    }

    .diagnostic-card,
    .study-card,
    .artifact-card,
    .brief-card,
    .arch-layer,
    .arch-node {
        padding: var(--space-16);
    }

    .study-stats,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .study-stats {
        display: grid;
        gap: var(--space-12);
    }

    .artifact-chips {
        justify-content: flex-start;
    }

    .step-item {
        flex-direction: column;
    }
}
