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

body {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container - Golden ratio padding: 89px (55 + 34) */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 89px 55px;
}

/* Name - Golden ratio: 13 * 1.618² ≈ 34px */
.name {
    font-family: 'Instrument Serif', serif;
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin-bottom: 55px;
    color: #0a0a0a;
    line-height: 1.1;
    font-style: normal;
}

/* Content */
/* Content width - Golden ratio: ~610px (rounded) */
.content {
    max-width: 610px;
    width: 100%;
    transition: opacity 0.3s ease;
}

.story {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.6;
    text-align: justify;
    letter-spacing: -0.01em;
    font-weight: 400;
}

.line {
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border-bottom: 1px solid transparent;
    font-style: normal;
}

.line:hover {
    border-bottom-color: #000;
    color: #000;
    transition: all 0.15s ease;
}

/* Line detail */
/* Line details - Golden ratio: 13 ÷ 1.618 ≈ 8px */
.line-detail {
    display: block;
    font-size: 8px;
    color: #444;
    margin: 21px 0;
    animation: fadeIn 0.3s ease;
    line-height: 1.4;
    letter-spacing: 0.01em;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}

/* Special handling for expanded content */
.expanded-content.hidden {
    display: grid !important;
    visibility: hidden;
    pointer-events: none;
}

/* Click state */
.line.clicked {
    background: rgba(0, 0, 0, 0.02);
    padding: 3px 8px;
    margin: 0 -8px;
    border-radius: 2px;
}

/* Responsive - maintain golden ratio scaling */
@media (max-width: 640px) {
    .container {
        padding: 55px 34px;
    }
    
    .name {
        font-size: 21px;
        margin-bottom: 34px;
    }
    
    .md-section h2 {
        font-size: 16px;
        margin-bottom: 21px;
    }
    
    .content {
        max-width: 100%;
    }
}

/* More button */
/* More button - Golden ratio: 13 ÷ 1.618 ≈ 8px */
.more-button {
    margin-top: 34px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
    cursor: pointer;
    padding: 5px 13px;
    margin-left: -13px;
    margin-right: -13px;
    border-radius: 3px;
    transition: all 0.15s ease;
    position: relative;
}

.more-button:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #333;
}

.more-button.active {
    color: #000;
}

.more-button.active .chevron {
    transform: rotate(180deg);
}

.chevron {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
}

/* Expanded content wrapper */
/* Expanded content - Golden ratio spacing: 34px + 21px = 55px */
.expanded-content {
    margin-top: 55px;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-content.visible {
    grid-template-rows: 1fr;
}

.expanded-content > div {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1),
                transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.expanded-content.visible > div {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll arrow indicator */
.scroll-arrow {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(calc(300px + 40px));
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
    z-index: 100;
    color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 768px) {
    .scroll-arrow {
        transform: translateX(calc(150px + 20px));
    }
}

.scroll-arrow.visible {
    opacity: 1;
}

.scroll-arrow svg {
    display: block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0);
        opacity: 0.6;
    }
    50% { 
        transform: translateY(4px);
        opacity: 1;
    }
}

.expanded-content:not(.visible) .md-section {
    animation: fadeOutSection 0.4s ease forwards;
}

@keyframes fadeOutSection {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Markdown sections */
/* Section spacing - Golden ratio: 55px */
.md-section {
    margin-bottom: 55px;
    opacity: 0;
    transform: translateY(13px);
    animation: fadeInSection 0.8s ease forwards;
}

.md-section:nth-child(1) { animation-delay: 0.2s; }
.md-section:nth-child(2) { animation-delay: 0.35s; }
.md-section:nth-child(3) { animation-delay: 0.5s; }
.md-section:nth-child(4) { animation-delay: 0.65s; }

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

.md-section:last-child {
    margin-bottom: 0;
}

/* Section headings - Golden ratio: 13 * 1.618 ≈ 21px */
.md-section h2 {
    font-family: 'Instrument Serif', serif;
    font-size: 21px;
    font-weight: 400;
    margin-bottom: 34px;
    color: #111;
    letter-spacing: -0.01em;
    line-height: 1.2;
    font-style: normal;
}

.md-hash {
    color: #999;
    margin-right: 13px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
}

/* Links */
.links-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Link pills - Golden ratio: 8px font */
.link-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 13px;
    background: #f8f8f8;
    border-radius: 13px;
    font-size: 8px;
    color: #444;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    letter-spacing: 0.01em;
}

.link-pill:hover {
    background: #f0f0f0;
    border-color: #e0e0e0;
    color: #000;
}

/* Link tag indicators */
.link-tag {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #999;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Tag styles - using shapes instead of colors */
.link-pill[data-tag="social"] .link-tag {
    background: #999;
    border-radius: 50%;
}

.link-pill[data-tag="blog"] .link-tag {
    background: #999;
    border-radius: 0;
}

.link-pill[data-tag="guide"] .link-tag {
    background: #999;
    border-radius: 2px;
    transform: rotate(45deg);
}

.link-pill[data-tag="personal"] .link-tag {
    background: transparent;
    border: 1px solid #999;
    border-radius: 50%;
    width: 3px;
    height: 3px;
}

/* Hover states - monochrome emphasis */
.link-pill:hover .link-tag {
    background: #333;
    transform: scale(1.5);
}

.link-pill[data-tag="guide"]:hover .link-tag {
    transform: rotate(45deg) scale(1.5);
}

.link-pill[data-tag="personal"]:hover .link-tag {
    background: transparent;
    border-color: #333;
}

/* Metrics Visualization */
.metrics-visualization {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 120px;
    margin-bottom: 40px;
    padding: 60px 0 40px 0;
}

.metric-chart {
    position: relative;
    height: 220px;
    opacity: 0;
    animation: fadeInChart 1s ease forwards;
}

.metric-chart:nth-child(2) {
    animation-delay: 0.2s;
}

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

.chart-canvas {
    width: 100% !important;
    height: 100% !important;
    filter: contrast(0.9);
}

.chart-title {
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Chart hover effects */
.metric-chart:hover .chart-canvas {
    filter: contrast(1);
    transition: filter 0.3s ease;
}

/* Dot Matrix Visualization */
.dot-matrix {
    margin-top: 40px;
}

.matrix-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

.matrix-label {
    font-size: 11px;
    color: #444;
    text-align: right;
}

.dots-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    max-width: 20px;
}

.matrix-dot {
    width: 2px;
    height: 2px;
    background: #000;
    border-radius: 50%;
    opacity: 0;
    animation: fadeInDot 0.5s ease forwards;
}

.matrix-percentage {
    font-size: 12px;
    color: #333;
    font-weight: 300;
}

.matrix-row:hover .matrix-label {
    color: #000;
}

.matrix-row:hover .matrix-dot {
    transform: scale(1.5);
    transition: transform 0.2s ease;
}

/* Vertical Spectrum Visualization */
.spectrum-chart .spectrum-wrapper {
    position: relative;
    height: 200px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.spectrum-line {
    position: relative;
    width: 40px;
    height: 100%;
    background: rgba(0, 0, 0, 0.02);
    overflow: visible;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.03);
    transform-origin: center;
}

.spectrum-segment {
    position: absolute;
    width: 100%;
    left: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.spectrum-segment::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.1) 2px,
        rgba(255, 255, 255, 0.1) 3px
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spectrum-segment::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spectrum-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    height: 100%;
    text-align: right;
}

.spectrum-label {
    font-size: 11px;
    color: #444;
    opacity: 0;
    animation: fadeInLabel 0.8s ease forwards;
    transition: all 0.3s ease;
}

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

.spectrum-scale {
    display: none;
}

/* Hover effects */
.spectrum-wrapper:hover .spectrum-segment {
    transform: scaleX(1.05);
}

.spectrum-wrapper:hover .spectrum-segment::before {
    opacity: 1;
}

.spectrum-wrapper:hover .spectrum-segment::after {
    opacity: 1;
}

.spectrum-segment:hover {
    opacity: 1 !important;
    z-index: 10;
    transform: scaleX(1.1);
}

.spectrum-segment:hover + .spectrum-segment::after {
    opacity: 0;
}



/* Insights */
.insights-container {
    position: relative;
    padding: 40px 0;
}

.matrix-axes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.axis-label {
    position: absolute;
    font-size: 9px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.axis-label.x-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.axis-label.x-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    transform-origin: center;
}

.axis-label.y-top {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-label.y-bottom {
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
}

.axis-line {
    position: absolute;
    background: #f0f0f0;
}

.axis-line.horizontal {
    left: 10%;
    right: 10%;
    height: 1px;
    top: 50%;
}

.axis-line.vertical {
    top: 10%;
    bottom: 10%;
    width: 1px;
    left: 50%;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    position: relative;
    z-index: 2;
    padding: 30px 0;
}

.insight-quadrant {
    padding: 20px;
    transition: all 0.2s ease;
    position: relative;
    cursor: default;
}

.insight-quadrant:hover {
    transform: scale(1.02);
}

.insight-quadrant:hover h3 {
    color: #000;
}

.insight-quadrant:hover p {
    color: #333;
}

.quadrant-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 8px;
    color: #bbb;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* Insight titles - same as base for subtle hierarchy */
.insight-quadrant h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 13px;
    color: #0a0a0a;
    letter-spacing: -0.005em;
    line-height: 1.3;
    font-style: normal;
}

.insight-quadrant p {
    font-size: 11px;
    line-height: 1.6;
    color: #444;
    letter-spacing: -0.01em;
}

/* Skills */
.skills-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.skill-pill {
    position: relative;
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0, 0, 0, calc(0.03 + var(--intensity) * 0.12));
    border-radius: 10px;
    font-size: 10px;
    color: rgba(0, 0, 0, calc(0.4 + var(--intensity) * 0.6));
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 24px;
    vertical-align: top;
}

.skill-pill:hover {
    background: rgba(0, 0, 0, calc(0.05 + var(--intensity) * 0.12));
}

.skill-pill.expanded {
    max-height: 80px;
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.8);
}

.skill-details {
    display: block;
    margin-top: 4px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 9px;
    line-height: 1.3;
}

.skill-pill.expanded .skill-details {
    opacity: 1;
    height: auto;
    margin-top: 5px;
}

.skill-value {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.9);
    display: block;
}

.skill-category {
    color: rgba(0, 0, 0, 0.6);
    text-transform: capitalize;
    display: block;
    margin-top: 2px;
    font-size: 8px;
}

.skill-name {
    display: block;
    transition: all 0.3s ease;
    line-height: 1.2;
}

.skill-pill.expanded .skill-name {
    font-weight: 500;
}

/* Responsive updates */
@media (max-width: 640px) {
    .insight-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        gap: 6px;
    }
    
    .skill-pill {
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Print */
@media print {
    .more-button {
        display: none;
    }
}