/* ==========================================================================
   CORBY WENZELBACH — Portfolio v2
   Custom design system. No frameworks.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Colors */
    --color-bg:          #0a0a0f;
    --color-bg-elevated: #12121a;
    --color-bg-card:     #17172200;
    --color-bg-card-hover: #1d1d2a;
    --color-surface:     #1e1e2e;
    --color-border:      #2a2a3a;
    --color-text:        #e4e4ed;
    --color-text-muted:  #8888a4;
    --color-text-dim:    #5c5c78;
    --color-heading:     #ffffff;

    /* Accent — electric indigo / violet */
    --color-accent:        #7c5cfc;
    --color-accent-light:  #a78bfa;
    --color-accent-dark:   #5b3fd9;
    --color-accent-glow:   rgba(124, 92, 252, 0.15);

    /* Secondary accent — warm coral */
    --color-secondary:     #ff6b6b;
    --color-secondary-dim: rgba(255, 107, 107, 0.12);

    /* Typography */
    --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    --text-xs:   0.75rem;
    --text-sm:   0.875rem;
    --text-base: 1rem;
    --text-lg:   1.125rem;
    --text-xl:   1.25rem;
    --text-2xl:  1.5rem;
    --text-3xl:  1.875rem;
    --text-4xl:  2.25rem;
    --text-5xl:  3rem;
    --text-6xl:  3.75rem;
    --text-hero: clamp(2.5rem, 6vw, 5rem);

    /* Spacing */
    --space-xs:  0.25rem;
    --space-sm:  0.5rem;
    --space-md:  1rem;
    --space-lg:  1.5rem;
    --space-xl:  2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 20px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 150ms var(--ease-out);
    --transition-base: 300ms var(--ease-out);
    --transition-slow: 500ms var(--ease-out);

    /* Header */
    --header-height: 80px;
}

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

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

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-accent-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-heading);
    line-height: 1.2;
    font-weight: 600;
}

ul, ol {
    list-style: none;
}

/* ---------- Container ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--space-xl);
}

.container--narrow {
    max-width: var(--container-narrow);
}

/* ---------- Section ---------- */
.section {
    padding-block: var(--space-5xl);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-accent-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-lg);
}

.section-label::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 2px;
    background-color: var(--color-accent);
}

.section-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-lg);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
}

@media (max-width: 768px) {
    .section {
        padding-block: var(--space-3xl);
    }
    .section-title {
        font-size: var(--text-3xl);
    }
}

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-base), background var(--transition-base);
}

.site-header.scrolled {
    border-bottom-color: var(--color-border);
    background: rgba(10, 10, 15, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    text-decoration: none;
}

.logo-name {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-accent-light);
    text-shadow: 0 0 20px var(--color-accent-glow);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.logo:hover .logo-name {
    color: #fff;
    text-shadow: 0 0 24px rgba(124, 92, 252, 0.4);
}

/* Navigation */
.nav-list {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-heading);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    z-index: 1001;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

.nav-toggle.open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100dvh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transform: translateX(100%);
        transition: transform var(--transition-slow);
    }

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

    .nav-list {
        flex-direction: column;
        gap: var(--space-2xl);
    }

    .nav-link {
        font-size: var(--text-2xl);
    }
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

/* Gradient orbs for visual interest */
.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.hero-bg::before {
    width: 600px;
    height: 600px;
    background: var(--color-accent-dark);
    top: -200px;
    right: -100px;
}

.hero-bg::after {
    width: 400px;
    height: 400px;
    background: var(--color-secondary);
    bottom: -100px;
    left: -100px;
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-xl);
    max-width: 800px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 540px;
    margin-bottom: var(--space-2xl);
    line-height: 1.8;
}

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

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 24px rgba(124, 92, 252, 0.3);
}

.btn-primary:hover {
    background: var(--color-accent-light);
    color: #fff;
    box-shadow: 0 8px 32px rgba(124, 92, 252, 0.4);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--color-accent);
    color: var(--color-accent-light);
    background: var(--color-accent-glow);
}

.btn svg {
    width: 16px;
    height: 16px;
}

/* ---------- Portfolio Grid ---------- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: var(--space-xl);
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Portfolio Card ---------- */
.portfolio-card {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    text-decoration: none;
    display: block;
}

.portfolio-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--color-accent-glow);
}

.portfolio-card-image {
    aspect-ratio: 16 / 10;
    background: var(--color-surface);
    overflow: hidden;
    position: relative;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.05);
}

/* Placeholder pattern for cards without images */
.portfolio-card-image .placeholder-pattern {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, var(--color-surface) 25%, transparent 25%) -50px 0,
        linear-gradient(225deg, var(--color-surface) 25%, transparent 25%) -50px 0,
        linear-gradient(315deg, var(--color-surface) 25%, transparent 25%),
        linear-gradient(45deg, var(--color-surface) 25%, transparent 25%);
    background-size: 100px 100px;
    background-color: var(--color-bg-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card-image .placeholder-pattern .placeholder-icon {
    width: 48px;
    height: 48px;
    color: var(--color-text-dim);
    opacity: 0.5;
}

.portfolio-card-body {
    padding: var(--space-lg);
}

.portfolio-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.tag {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-accent-light);
    background: var(--color-accent-glow);
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.portfolio-card-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-fast);
}

.portfolio-card:hover .portfolio-card-title {
    color: var(--color-accent-light);
}

.portfolio-card-excerpt {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ---------- Portfolio Detail ---------- */
.project-hero {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-3xl);
}

.project-hero .section-label {
    margin-bottom: var(--space-md);
}

.project-title {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-lg);
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.project-meta-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    font-weight: 500;
}

.project-meta-value {
    font-size: var(--text-base);
    color: var(--color-text);
    font-weight: 500;
}

.project-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    margin-bottom: var(--space-4xl);
    border: 1px solid var(--color-border);
}

.project-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.project-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
}

.project-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.project-content p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    line-height: 1.8;
}

.project-content ul,
.project-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.project-content li {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    list-style: disc;
}

.project-content ol li {
    list-style: decimal;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-block: var(--space-3xl);
}

.project-gallery img {
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
    width: 100%;
}

@media (max-width: 768px) {
    .project-title {
        font-size: var(--text-3xl);
    }
    .project-gallery {
        grid-template-columns: 1fr;
    }
}

/* ---------- About Section / Page ---------- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.about-image {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    position: relative;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-heading {
    margin-bottom: var(--space-xl);
}

.about-cta {
    margin-top: var(--space-2xl);
}

/* Decorative border accent on about image */
.about-image::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius-lg);
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--color-accent), transparent 60%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.about-text p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* ---------- Experience Timeline ---------- */
.section--bordered {
    border-top: 1px solid var(--color-border);
}

.section-subtitle--spaced {
    margin-bottom: var(--space-3xl);
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.experience-header h3 {
    margin: 0;
}

.experience-meta {
    color: var(--color-accent-light);
    font-size: var(--text-sm);
    margin-bottom: var(--space-sm);
}

.tag--secondary {
    background: var(--color-secondary-dim);
    color: var(--color-secondary);
}

/* ---------- Skills ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.skill-card {
    padding: var(--space-xl);
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

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

.skill-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--color-accent-glow);
    color: var(--color-accent-light);
    margin-bottom: var(--space-md);
}

.skill-card-icon svg {
    width: 22px;
    height: 22px;
}

.skill-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
}

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

/* ---------- Contact ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
}

.contact-info h3 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.contact-info p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    background: var(--color-accent-glow);
    color: var(--color-accent-light);
    flex-shrink: 0;
}

.contact-detail-icon svg {
    width: 20px;
    height: 20px;
}

/* Form */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
}

.form-alert {
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
}

.form-alert--success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* Honeypot fields - hidden from users, visible to bots */
.form-phone,
.form-confirm-email,
.form-url {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    height: 0;
    width: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Featured / Home Sections ---------- */
.home-portfolio {
    background: var(--color-bg-elevated);
}

.featured-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.featured-heading .section-subtitle {
    margin-bottom: 0;
}

/* ---------- CTA Section ---------- */
.cta-section {
    text-align: center;
    padding-block: var(--space-5xl);
}

.cta-section .section-title {
    max-width: 600px;
    margin-inline: auto;
}

.cta-section .section-subtitle {
    max-width: 500px;
    margin-inline: auto;
    margin-bottom: var(--space-2xl);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-4xl);
    padding-bottom: var(--space-2xl);
    background: var(--color-bg);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-3xl);
}

.footer-tagline {
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    font-size: var(--text-sm);
}

.footer-links h4,
.footer-social h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
    margin-bottom: var(--space-md);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--color-accent-light);
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-dim);
}

.footer-bottom a {
    color: var(--color-text-dim);
}

.footer-bottom a:hover {
    color: var(--color-text);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ---------- Page Header (for inner pages) ---------- */
.page-header {
    padding-top: calc(var(--header-height) + var(--space-4xl));
    padding-bottom: var(--space-3xl);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: var(--color-accent-dark);
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.2;
    z-index: -1;
}

/* ---------- Privacy Policy / Text Pages ---------- */
.text-content {
    max-width: var(--container-narrow);
    margin-inline: auto;
}

.text-content h2 {
    font-size: var(--text-2xl);
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-md);
}

.text-content h3 {
    font-size: var(--text-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}

.text-content p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.8;
}

.text-content ul, .text-content ol {
    padding-left: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.text-content li {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    list-style: disc;
}

/* ---------- 404 ---------- */
.error-page {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
}

.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 12rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
}

.error-page p {
    color: var(--color-text-muted);
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
}

/* ---------- Scroll Animations ---------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(1) { transition-delay: 0ms; }
.stagger > .fade-up:nth-child(2) { transition-delay: 80ms; }
.stagger > .fade-up:nth-child(3) { transition-delay: 160ms; }
.stagger > .fade-up:nth-child(4) { transition-delay: 240ms; }
.stagger > .fade-up:nth-child(5) { transition-delay: 320ms; }
.stagger > .fade-up:nth-child(6) { transition-delay: 400ms; }

/* ---------- Back Link ---------- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-2xl);
    transition: color var(--transition-fast);
}

.back-link:hover {
    color: var(--color-accent-light);
}

.back-link svg {
    width: 16px;
    height: 16px;
}

/* ---------- Project Navigation ---------- */
.project-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding-top: var(--space-4xl);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-4xl);
}

.project-nav a {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    padding: var(--space-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-base);
}

.project-nav a:hover {
    border-color: var(--color-accent);
    background: var(--color-accent-glow);
}

.project-nav-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-dim);
}

.project-nav-title {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-heading);
}

.project-nav a:last-child {
    text-align: right;
}
