/* =============================================
   archetypos.dev - Isometric Technical Docs
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --grid-dark: #1e293b;
    --grid-line: #334155;
    --accent: #38bdf8;
    --violet: #a78bfa;
    --surface: #1e293b;
    --text: #e2e8f0;
    --comment: #94a3b8;
    --warning: #fbbf24;
    --success: #34d399;

    --font-display: 'Space Mono', monospace;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-code: 'IBM Plex Mono', monospace;

    --iso-matrix: matrix(0.866, 0.5, -0.866, 0.5, 0, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    color: var(--text);
    background-color: var(--primary);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

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

a:hover {
    color: var(--violet);
}

/* --- Isometric Grid Floor Background --- */
.hero-grid-floor,
.footer-grid-floor,
.iso-floor-small {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 49px,
            var(--grid-line) 49px,
            var(--grid-line) 50px
        ),
        repeating-linear-gradient(
            150deg,
            transparent,
            transparent 49px,
            var(--grid-line) 49px,
            var(--grid-line) 50px
        );
    opacity: 0.15;
    pointer-events: none;
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
    text-shadow:
        1px 1px 0 #334155,
        2px 2px 0 #334155,
        3px 3px 0 #334155,
        4px 4px 0 #2d3a4d,
        5px 5px 0 #283545,
        6px 6px 0 #23303d,
        7px 7px 0 #1e2b35,
        8px 8px 0 #19262d,
        9px 9px 0 #142125,
        10px 10px 0 #0f1c1d;
    margin-bottom: 1rem;
    animation: heroTitleIn 1s ease-out forwards;
}

@keyframes heroTitleIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--comment);
    font-weight: 400;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    animation: fadeIn 1s ease-out 0.6s both, bounce 2s ease-in-out 1.6s infinite;
    cursor: pointer;
}

.hero-scroll-hint svg {
    width: 20px;
    height: 20px;
}

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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* Hero Isometric Blocks */
.hero-iso-blocks {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.iso-block {
    position: absolute;
    width: 60px;
    height: 60px;
    transform: var(--iso-matrix);
    opacity: 0;
    animation: blockFloat 3s ease-in-out infinite, blockAppear 0.8s ease-out forwards;
}

.iso-block .face {
    position: absolute;
}

.iso-block .face.top {
    width: 60px;
    height: 60px;
    background: var(--accent);
    transform: translateZ(0);
}

.iso-block .face.left {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.7);
    transform: rotateY(-90deg) translateZ(30px);
}

.iso-block .face.right {
    width: 60px;
    height: 60px;
    background: rgba(56, 189, 248, 0.85);
    transform: rotateX(90deg) translateZ(30px);
}

/* Simpler isometric block approach using borders */
.iso-block {
    width: 0;
    height: 0;
    transform: none;
}

.iso-block .face.top,
.iso-block .face.left,
.iso-block .face.right {
    position: absolute;
    transform: none;
}

/* Redefine blocks as proper isometric cubes */
.iso-block {
    position: absolute;
    width: 80px;
    height: 92px;
    opacity: 0;
    animation: blockAppear 0.8s ease-out forwards;
}

.iso-block .face.top {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 46px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}

.iso-block .face.left {
    position: absolute;
    top: 23px;
    left: 0;
    width: 40px;
    height: 69px;
    background: rgba(56, 189, 248, 0.65);
    clip-path: polygon(0% 33% , 100% 0%, 100% 67%, 0% 100%);
}

.iso-block .face.right {
    position: absolute;
    top: 23px;
    left: 40px;
    width: 40px;
    height: 69px;
    background: rgba(56, 189, 248, 0.82);
    clip-path: polygon(0% 0%, 100% 33%, 100% 100%, 0% 67%);
}

.iso-block-1 {
    top: 15%;
    left: 8%;
    animation-delay: 0.2s;
}

.iso-block-2 {
    top: 60%;
    left: 5%;
    animation-delay: 0.4s;
}

.iso-block-3 {
    top: 25%;
    right: 10%;
    animation-delay: 0.6s;
}

.iso-block-4 {
    bottom: 20%;
    right: 8%;
    animation-delay: 0.8s;
}

.iso-block-5 {
    top: 70%;
    right: 25%;
    animation-delay: 1.0s;
}

.iso-block-1 .face.top { background: var(--violet); }
.iso-block-1 .face.left { background: rgba(167, 139, 250, 0.65); }
.iso-block-1 .face.right { background: rgba(167, 139, 250, 0.82); }

.iso-block-3 .face.top { background: var(--success); }
.iso-block-3 .face.left { background: rgba(52, 211, 153, 0.65); }
.iso-block-3 .face.right { background: rgba(52, 211, 153, 0.82); }

.iso-block-5 .face.top { background: var(--warning); }
.iso-block-5 .face.left { background: rgba(251, 191, 36, 0.65); }
.iso-block-5 .face.right { background: rgba(251, 191, 36, 0.82); }

@keyframes blockAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 0.6;
        transform: translateY(0) scale(1);
    }
}

@keyframes blockFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.iso-block {
    animation: blockAppear 0.8s ease-out forwards, blockFloat 4s ease-in-out infinite;
}

.iso-block-1 { animation-delay: 0.2s, 0.2s; }
.iso-block-2 { animation-delay: 0.4s, 0.8s; }
.iso-block-3 { animation-delay: 0.6s, 1.4s; }
.iso-block-4 { animation-delay: 0.8s, 2.0s; }
.iso-block-5 { animation-delay: 1.0s, 2.6s; }

/* =============================================
   GREEK COLUMN DIVIDER
   ============================================= */
.column-divider {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 80px;
    padding: 40px 0;
    background: var(--primary);
    position: relative;
}

.iso-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    opacity: 0.35;
    transition: opacity 0.5s ease;
}

.column-divider:hover .iso-column {
    opacity: 0.6;
}

.column-cap,
.column-base {
    width: 28px;
    height: 14px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 30%, 100% 100%, 0% 100%, 0% 30%);
}

.column-base {
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
}

.column-shaft {
    width: 18px;
    height: 12px;
    background: rgba(56, 189, 248, 0.5);
}

/* =============================================
   SPLIT-SCREEN PATTERN SECTIONS
   ============================================= */
.pattern-section.split-screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    min-height: 80vh;
    padding: 80px clamp(2rem, 5vw, 6rem);
    position: relative;
    background: var(--primary);
    border-top: 1px solid var(--grid-line);
}

.pattern-section.split-screen:nth-child(even) {
    background: var(--grid-dark);
}

.pattern-docs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 0;
}

.pattern-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--violet);
    margin-bottom: 0.75rem;
}

.pattern-name {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--text);
    margin-bottom: 0.5rem;
}

.pattern-greek {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--comment);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.pattern-greek em {
    color: var(--violet);
    font-style: italic;
}

.pattern-desc {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 2rem;
    max-width: 520px;
}

/* Code blocks */
.pattern-code {
    background: var(--primary);
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.pattern-code pre {
    margin: 0;
}

.pattern-code code {
    font-family: var(--font-code);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.code-keyword { color: var(--violet); }
.code-class { color: var(--accent); }
.code-func { color: var(--success); }
.code-string { color: var(--warning); }

/* Pattern meta tags */
.pattern-meta {
    display: flex;
    gap: 0.75rem;
}

.tag {
    font-family: var(--font-display);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    border: 1px solid;
}

.tag-stable {
    color: var(--success);
    border-color: var(--success);
    background: rgba(52, 211, 153, 0.1);
}

.tag-gang {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(56, 189, 248, 0.1);
}

/* Pattern Visualization Side */
.pattern-viz {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.iso-scene {
    position: relative;
    width: 300px;
    height: 300px;
}

.iso-floor-small {
    border-radius: 8px;
}

/* Isometric small blocks for scenes */
.iso-block-sm {
    position: absolute;
    width: 50px;
    height: 58px;
}

.iso-block-sm .face.top {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 29px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}

.iso-block-sm .face.left {
    position: absolute;
    top: 14px;
    left: 0;
    width: 25px;
    height: 44px;
    background: rgba(56, 189, 248, 0.65);
    clip-path: polygon(0% 33%, 100% 0%, 100% 67%, 0% 100%);
}

.iso-block-sm .face.right {
    position: absolute;
    top: 14px;
    left: 25px;
    width: 25px;
    height: 44px;
    background: rgba(56, 189, 248, 0.82);
    clip-path: polygon(0% 0%, 100% 33%, 100% 100%, 0% 67%);
}

/* Singleton Scene */
.singleton-tower {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.singleton-tower .iso-block-sm {
    position: relative;
    margin-top: -20px;
}

.singleton-tower .iso-block-sm:first-child {
    margin-top: 0;
}

.singleton-scene .connection-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.conn-line {
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 200;
    stroke-dashoffset: 200;
    opacity: 0.5;
    transition: stroke-dashoffset 1.5s ease;
}

.conn-line.animated {
    stroke-dashoffset: 0;
}

.ref-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.ref-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--comment);
    border: 2px solid var(--accent);
}

/* Observer Scene */
.observer-subject {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.iso-block-sm.tall {
    height: 100px;
}

.iso-block-sm.tall .face.left {
    height: 86px;
}

.iso-block-sm.tall .face.right {
    height: 86px;
}

.iso-block-sm.tall .face.top {
    background: var(--violet);
}

.iso-block-sm.tall .face.left {
    background: rgba(167, 139, 250, 0.65);
}

.iso-block-sm.tall .face.right {
    background: rgba(167, 139, 250, 0.82);
}

.observer-watchers {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.observer-watchers .watcher {
    position: relative;
}

.observer-scene .connection-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Factory Scene */
.factory-machine {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.iso-block-sm.wide {
    width: 80px;
}

.iso-block-sm.wide .face.top {
    width: 80px;
    height: 46px;
    clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
    background: var(--success);
}

.iso-block-sm.wide .face.left {
    width: 40px;
    height: 55px;
    background: rgba(52, 211, 153, 0.65);
}

.iso-block-sm.wide .face.right {
    left: 40px;
    width: 40px;
    height: 55px;
    background: rgba(52, 211, 153, 0.82);
}

.factory-products {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}

.factory-products .product {
    position: relative;
    width: 35px;
    height: 40px;
}

.factory-products .product .face.top {
    width: 35px;
    height: 20px;
}

.factory-products .product .face.left {
    top: 10px;
    width: 18px;
    height: 30px;
}

.factory-products .product .face.right {
    top: 10px;
    left: 17px;
    width: 18px;
    height: 30px;
}

.factory-scene .connection-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* =============================================
   PATTERN INDEX (CARD GRID)
   ============================================= */
#pattern-index {
    padding: 100px clamp(2rem, 5vw, 6rem);
    background: var(--primary);
    border-top: 1px solid var(--grid-line);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: var(--text);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--comment);
    text-align: center;
    margin-bottom: 4rem;
}

.pattern-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

.pattern-card {
    background: var(--grid-dark);
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
    cursor: default;
}

.pattern-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(56, 189, 248, 0.12);
}

.pattern-card.deprecated {
    border-color: rgba(251, 191, 36, 0.3);
}

.pattern-card.deprecated:hover {
    border-color: var(--warning);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.12);
}

.card-iso {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        repeating-linear-gradient(
            30deg,
            transparent,
            transparent 29px,
            var(--grid-line) 29px,
            var(--grid-line) 30px
        ),
        repeating-linear-gradient(
            150deg,
            transparent,
            transparent 29px,
            var(--grid-line) 29px,
            var(--grid-line) 30px
        );
    background-color: var(--primary);
    position: relative;
}

.iso-mini {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    position: relative;
}

.mini-block {
    width: 30px;
    height: 35px;
    position: relative;
}

.mini-block .face.top {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 17px;
    background: var(--accent);
    clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}

.mini-block .face.left {
    position: absolute;
    top: 9px;
    left: 0;
    width: 15px;
    height: 26px;
    background: rgba(56, 189, 248, 0.65);
    clip-path: polygon(0% 33%, 100% 0%, 100% 67%, 0% 100%);
}

.mini-block .face.right {
    position: absolute;
    top: 9px;
    left: 15px;
    width: 15px;
    height: 26px;
    background: rgba(56, 189, 248, 0.82);
    clip-path: polygon(0% 0%, 100% 33%, 100% 100%, 0% 67%);
}

/* Adapter mini - two blocks with connector */
.adapter-mini {
    align-items: center;
    gap: 4px;
}

.adapter-mini .mb1 .face.top { background: var(--accent); }
.adapter-mini .mb2 .face.top { background: var(--violet); }
.adapter-mini .mb2 .face.left { background: rgba(167, 139, 250, 0.65); }
.adapter-mini .mb2 .face.right { background: rgba(167, 139, 250, 0.82); }

.mini-connector {
    width: 16px;
    height: 3px;
    background: var(--accent);
    opacity: 0.7;
}

/* Strategy mini - three small blocks in a row */
.strategy-mini {
    gap: 10px;
}

.strategy-mini .mb1 { height: 45px; }
.strategy-mini .mb2 { height: 35px; }
.strategy-mini .mb3 { height: 25px; }

.strategy-mini .mb1 .face.top { background: var(--accent); }
.strategy-mini .mb2 .face.top { background: var(--violet); }
.strategy-mini .mb2 .face.left { background: rgba(167, 139, 250, 0.65); }
.strategy-mini .mb2 .face.right { background: rgba(167, 139, 250, 0.82); }
.strategy-mini .mb3 .face.top { background: var(--success); }
.strategy-mini .mb3 .face.left { background: rgba(52, 211, 153, 0.65); }
.strategy-mini .mb3 .face.right { background: rgba(52, 211, 153, 0.82); }

/* Decorator mini - core with outer wrap */
.decorator-mini {
    position: relative;
}

.decorator-mini .mb-core {
    z-index: 2;
    position: relative;
}

.decorator-mini .mb-wrap {
    position: absolute;
    width: 44px;
    height: 50px;
    top: -8px;
    left: -7px;
    opacity: 0.4;
    z-index: 1;
}

.decorator-mini .mb-wrap .face.top {
    width: 44px;
    height: 25px;
    background: var(--violet);
    clip-path: polygon(50% 0%, 100% 25%, 50% 50%, 0% 25%);
}

.decorator-mini .mb-wrap .face.left {
    width: 22px;
    height: 36px;
    top: 12px;
    background: rgba(167, 139, 250, 0.65);
}

.decorator-mini .mb-wrap .face.right {
    width: 22px;
    height: 36px;
    top: 12px;
    left: 22px;
    background: rgba(167, 139, 250, 0.82);
}

/* Command mini - block with arrow to block */
.command-mini {
    align-items: center;
    gap: 4px;
}

.mini-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid var(--accent);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    opacity: 0.7;
}

.command-mini .mb2 .face.top { background: var(--success); }
.command-mini .mb2 .face.left { background: rgba(52, 211, 153, 0.65); }
.command-mini .mb2 .face.right { background: rgba(52, 211, 153, 0.82); }

/* Composite mini - tree of blocks */
.composite-mini {
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.composite-mini .mb-root .face.top { background: var(--violet); }
.composite-mini .mb-root .face.left { background: rgba(167, 139, 250, 0.65); }
.composite-mini .mb-root .face.right { background: rgba(167, 139, 250, 0.82); }

.composite-mini .mb-leaf1,
.composite-mini .mb-leaf2 {
    width: 22px;
    height: 25px;
}

.composite-mini .mb-leaf1 .face.top,
.composite-mini .mb-leaf2 .face.top {
    width: 22px;
    height: 13px;
}

.composite-mini .mb-leaf1 .face.left,
.composite-mini .mb-leaf2 .face.left {
    width: 11px;
    height: 19px;
    top: 6px;
}

.composite-mini .mb-leaf1 .face.right,
.composite-mini .mb-leaf2 .face.right {
    width: 11px;
    height: 19px;
    top: 6px;
    left: 11px;
}

/* Prototype mini - block with ghost clone */
.prototype-mini {
    gap: 12px;
}

.prototype-mini .mb-clone {
    opacity: 0.4;
}

.prototype-mini .mb-clone .face.top { background: var(--warning); }
.prototype-mini .mb-clone .face.left { background: rgba(251, 191, 36, 0.65); }
.prototype-mini .mb-clone .face.right { background: rgba(251, 191, 36, 0.82); }

/* Card info */
.card-info {
    padding: 1.25rem 1.5rem;
}

.card-info h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.card-info p {
    font-size: 0.85rem;
    color: var(--comment);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.card-type {
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.card-deprecated {
    font-family: var(--font-display);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--warning);
    margin-left: 0.75rem;
}

/* =============================================
   DEPENDENCY GRAPH
   ============================================= */
#dependency-graph {
    padding: 100px clamp(2rem, 5vw, 6rem);
    background: var(--grid-dark);
    border-top: 1px solid var(--grid-line);
}

.graph-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

#graph-svg {
    width: 100%;
    height: auto;
}

.node-rect {
    fill: var(--primary);
    stroke: var(--accent);
    stroke-width: 1.5;
    transition: fill 0.3s ease, stroke 0.3s ease;
}

.graph-node:hover .node-rect {
    fill: rgba(56, 189, 248, 0.15);
    stroke: var(--violet);
}

.node-text {
    font-family: 'Space Mono', monospace;
    font-size: 13px;
    fill: var(--text);
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
}

.graph-line {
    stroke: var(--grid-line);
    stroke-width: 1.5;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    transition: stroke 0.3s ease;
}

.graph-line.animated {
    stroke-dashoffset: 0;
    stroke: var(--accent);
    opacity: 0.5;
}

/* =============================================
   FOOTER
   ============================================= */
#footer {
    position: relative;
    padding: 60px clamp(2rem, 5vw, 6rem) 40px;
    background: var(--primary);
    border-top: 1px solid var(--grid-line);
}

.footer-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--comment);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--comment);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--grid-line);
}

.footer-copy em {
    color: var(--comment);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    .pattern-section.split-screen {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 60px 1.5rem;
        min-height: auto;
    }

    .pattern-viz {
        order: -1;
    }

    .pattern-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .column-divider {
        gap: 40px;
    }

    .hero-iso-blocks {
        display: none;
    }

    #dependency-graph {
        padding: 60px 1rem;
    }

    .graph-container {
        overflow-x: auto;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .pattern-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
