/* tanso.markets - Mid-Century Market Gallery */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --void-black: #0A0A18;
    --aurora-green: #40E8A0;
    --aurora-purple: #A040E8;
    --aurora-blue: #4080E8;
    --card-surface: #141428;
    --card-hover: #1A1A38;
    --text-primary: #F0F0F8;
    --text-muted: #8888A0;
    --text-body: #C0C0D0;
    --leaf-color: rgba(64,232,160,0.04);
}
body {
    background: var(--void-black);
    color: var(--text-primary);
    font-family: 'Work Sans', sans-serif;
    font-size: 0.9375rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

/* Aurora Background */
.aurora-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.aurora-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    animation: auroraFadeIn 2s ease forwards;
}
.aurora-green {
    width: 500px;
    height: 500px;
    background: var(--aurora-green);
    top: 10%;
    left: 5%;
    opacity: 0;
    animation: auroraFadeIn 2s ease forwards, auroraDrift1 20s ease-in-out infinite;
}
.aurora-purple {
    width: 400px;
    height: 400px;
    background: var(--aurora-purple);
    top: 40%;
    right: 10%;
    opacity: 0;
    animation: auroraFadeIn 2s ease 0.5s forwards, auroraDrift2 25s ease-in-out infinite;
}
.aurora-blue {
    width: 450px;
    height: 450px;
    background: var(--aurora-blue);
    bottom: 10%;
    left: 30%;
    opacity: 0;
    animation: auroraFadeIn 2s ease 1s forwards, auroraDrift3 22s ease-in-out infinite;
}
@keyframes auroraFadeIn {
    to { opacity: 0.15; }
}
@keyframes auroraDrift1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(40px, 20px); }
}
@keyframes auroraDrift2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-30px, 30px); }
}
@keyframes auroraDrift3 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, -40px); }
}

/* Hero */
#hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 4rem 2rem;
}
.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    background: linear-gradient(135deg, var(--aurora-green), var(--aurora-blue), var(--aurora-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.02em;
}
.hero-meta {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 0.75rem;
    opacity: 0;
    animation: fadeIn 0.8s ease 1.5s forwards;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Portfolio Grid */
.portfolio-grid {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2px;
    position: relative;
    z-index: 1;
}

/* Market Cards */
.market-card {
    background: var(--card-surface);
    padding: 2rem;
    border: 1px solid rgba(192,192,208,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55),
                background 0.3s ease;
}
.market-card:hover {
    transform: scale(1.02);
    background: var(--card-hover);
    z-index: 2;
}
.card-wide {
    grid-column: span 2;
}
.card-tall {
    grid-row: span 2;
}
.leaf-watermark {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 120px;
    height: 120px;
    color: var(--leaf-color);
    pointer-events: none;
}
.card-geo {
    margin-bottom: 1rem;
}
.card-data {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}
.card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}
.card-body {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Section Animation */
.section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
#footer {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(192,192,208,0.08);
}
.footer-text {
    font-family: 'Inconsolata', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* Responsive */
@media (max-width: 700px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .card-wide { grid-column: span 1; }
    .card-tall { grid-row: span 1; }
}
