/* ============================================
   Project Table - Retro Terminal Style
   ============================================ */

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 80px 0 20px;
    max-width: 700px;
    position: static;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 0 20px rgba(212, 168, 85, 0.15);
}

.hero-journey {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-gold);
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0.85;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
    margin-bottom: 12px;
    align-items: flex-start;
}

/* ─── Today's To Do (terminal style) ─── */
.todo-terminal {
    margin: 24px 0 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 14px 18px;
    font-family: var(--font-heading, 'Space Mono', monospace);
    position: relative;
}

.todo-live {
    position: absolute;
    top: 12px;
    right: 14px;
}

.studio-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    padding: 3px 14px;
    border-radius: 3px;
    text-decoration: none;
}

.studio-badge.live {
    color: #ff3b3b;
    background: rgba(255, 59, 59, 0.08);
    border: 1px solid rgba(255, 59, 59, 0.25);
}

.studio-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.studio-badge.live .studio-dot {
    background: #ff3b3b;
    animation: studio-pulse 1.5s ease-in-out infinite;
}

@keyframes studio-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(255, 59, 59, 0.5); }
    50% { opacity: 0.6; box-shadow: 0 0 0 5px rgba(255, 59, 59, 0); }
}

.todo-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--neon-green, #39ff14);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.todo-prompt {
    color: var(--accent-gold, #d4a855);
    margin-right: 4px;
}

.todo-list {
    padding-left: 6px;
}

.todo-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    padding: 4px 0;
    font-size: 0.7rem;
    line-height: 1.6;
}

.todo-branch {
    color: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    font-size: 0.75rem;
}

.todo-task-title {
    color: var(--text-primary, #e8e0d4);
    font-weight: 700;
    white-space: nowrap;
}

.todo-task-title.has-desc::after {
    content: ':';
    color: var(--text-secondary, #a09882);
}

.todo-task-desc {
    color: var(--text-secondary, #a09882);
    font-weight: 400;
    font-size: 0.6rem;
}

@media (max-width: 768px) {
    .todo-line {
        flex-direction: column;
        gap: 0;
        padding: 4px 0 8px;
    }
    .todo-task-desc {
        padding-left: 24px;
        line-height: 1.5;
        word-break: break-word;
    }
}

.todo-cursor {
    color: var(--neon-green, #39ff14);
    font-size: 0.7rem;
    margin-top: 6px;
    animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ─── Live Chat (terminal style) ─── */
.todo-chat {
    margin-top: 10px;
    border-top: 1px solid rgba(57, 255, 20, 0.15);
    padding-top: 8px;
}

.todo-chat-label {
    color: var(--neon-green, #39ff14);
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.7rem;
    margin-bottom: 8px;
    opacity: 0.8;
}

.todo-chat-messages {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 8px;
}

.todo-chat-msg {
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.7rem;
    line-height: 1.5;
    margin-bottom: 4px;
    word-break: break-word;
}

.todo-chat-msg-visitor {
    color: var(--neon-green, #39ff14);
}

.todo-chat-msg-admin {
    color: var(--neon-blue, #00d4ff);
}

.todo-chat-msg-who {
    font-weight: 700;
}

.todo-chat-input-row,
.todo-chat-name-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.todo-chat-name-label {
    color: var(--neon-green, #39ff14);
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.7rem;
    white-space: nowrap;
}

.todo-chat-input {
    flex: 1;
    background: rgba(57, 255, 20, 0.05);
    border: 1px solid rgba(57, 255, 20, 0.25);
    border-radius: 4px;
    padding: 6px 10px;
    color: var(--neon-green, #39ff14);
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.7rem;
    outline: none;
}

.todo-chat-input:focus {
    border-color: var(--neon-green, #39ff14);
    box-shadow: 0 0 6px rgba(57, 255, 20, 0.2);
}

.todo-chat-input::placeholder {
    color: rgba(57, 255, 20, 0.35);
}

.todo-chat-send {
    background: rgba(57, 255, 20, 0.12);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 4px;
    padding: 6px 12px;
    color: var(--neon-green, #39ff14);
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.15s;
}

.todo-chat-send:hover {
    background: rgba(57, 255, 20, 0.25);
}

/* ─── Task completed pop (floats up like coins) ─── */
.todo-completed-pop {
    position: absolute;
    z-index: 9999;
    pointer-events: none;
    font-size: 2rem;
    color: var(--neon-green, #39ff14);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.6), 0 0 24px rgba(57, 255, 20, 0.3);
    transform: translate(-50%, 0) scale(0.3);
    opacity: 0;
    transition: none;
}

.todo-completed-pop.animate {
    animation: todo-pop-float 1.8s ease-out forwards;
}

@keyframes todo-pop-float {
    0% {
        opacity: 0;
        transform: translate(-50%, 0) scale(0.3);
    }
    15% {
        opacity: 1;
        transform: translate(-50%, -10px) scale(1.2);
    }
    30% {
        transform: translate(-50%, -20px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -80px) scale(0.8);
    }
}

/* Blue glowing "See All Projects" button */
.hero-btn-blue {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    background: rgba(0, 212, 255, 0.12);
    color: #00d4ff;
    border: 1px solid #00d4ff;
    animation: blue-glow 2s ease-in-out infinite;
    transition: all 0.3s;
}

.hero-btn-blue:hover {
    background: rgba(0, 212, 255, 0.25);
    transform: translateY(-1px);
    animation: none;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.5), 0 4px 20px rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    text-shadow: none;
}

@keyframes blue-glow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(0, 212, 255, 0.3), 0 0 20px rgba(0, 212, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 212, 255, 0.6), 0 0 40px rgba(0, 212, 255, 0.2);
    }
}

/* Hero inline subscribe form */
.hero-subscribe-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
}

.hero-subscribe-form input[type="email"] {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hero-subscribe-form input[type="email"]:focus {
    border-color: var(--accent-gold-dim);
}

.hero-subscribe-form input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.hero-subscribe-form button {
    height: 42px;
    padding: 0 22px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    background: var(--accent-gold);
    color: var(--bg-dark, #0a0a0f);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    animation: gold-pulse 2s ease-in-out infinite;
}

.hero-subscribe-form button:hover {
    background: #e8bc60;
    animation: none;
    box-shadow: 0 0 30px rgba(212, 168, 85, 0.5), 0 4px 20px rgba(212, 168, 85, 0.3);
}

@keyframes gold-pulse {
    0%, 100% {
        box-shadow: 0 0 8px rgba(212, 168, 85, 0.3), 0 0 16px rgba(212, 168, 85, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(212, 168, 85, 0.7), 0 0 40px rgba(212, 168, 85, 0.3);
    }
}

.hero-subscribe-msg {
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.hero-subscribe-msg.success {
    color: var(--neon-green, #39ff14);
}

.hero-subscribe-msg.error {
    color: #e74c3c;
}

/* ===== BIZ SUBSCRIBE (hero) ===== */
.hero-section .biz-subscribe-row {
    display: flex;
    align-items: center;
    gap: 14px;
    max-width: 520px;
    margin: 16px 0 0;
}

.biz-subscribe-arrow {
    font-size: 1.8rem;
    color: var(--accent-gold);
    animation: arrow-bounce 1s ease-in-out infinite;
    text-shadow: 0 0 12px rgba(212, 168, 85, 0.5);
    flex-shrink: 0;
}

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

.biz-subscribe-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.biz-subscribe-form input[type="email"] {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.biz-subscribe-form input[type="email"]:focus {
    border-color: var(--accent-gold);
}

.biz-subscribe-form input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.biz-subscribe-form button {
    padding: 12px 28px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.biz-subscribe-form button:hover {
    background: rgba(212, 168, 85, 0.1);
    box-shadow: 0 0 15px rgba(212, 168, 85, 0.2);
}

@keyframes gold-pulse-biz {
    0%, 100% { box-shadow: 0 0 8px rgba(212, 168, 85, 0.3); }
    50% { box-shadow: 0 0 20px rgba(212, 168, 85, 0.6), 0 0 40px rgba(212, 168, 85, 0.2); }
}

.biz-subscribe-msg {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    margin-top: 10px;
    text-align: center;
}

.biz-subscribe-msg.success { color: var(--neon-green, #39ff14); }
.biz-subscribe-msg.error { color: #e74c3c; }

/* ===== SECTION LABELS ===== */
.section-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e8e0d4;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* ===== FEATURED PROJECTS ===== */
.featured-section {
    padding-top: 20px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.featured-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.featured-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold-dim);
    box-shadow: 0 4px 24px rgba(212, 168, 85, 0.1);
    color: var(--text-primary);
    text-shadow: none;
}

.featured-card-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.featured-card-body {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.featured-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.featured-card:hover .featured-card-title {
    color: var(--neon-blue);
}

.featured-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.featured-card-meta .badge {
    font-size: 0.6rem;
    padding: 2px 8px;
    min-width: 0;
}

.featured-card-earnings {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--accent-gold);
}

.featured-card-year {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.featured-card-excerpt {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
}

/* ===== LIVE CARD ACTIONS ===== */
.live-card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.live-card-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.live-card-visit {
    color: var(--neon-blue);
}

.live-card-visit:hover {
    color: var(--neon-pink);
}

.live-card-story {
    color: var(--text-secondary);
}

.live-card-story:hover {
    color: var(--accent-gold);
}

.live-card-coming-soon {
    color: var(--text-secondary);
    opacity: 0.5;
    font-style: italic;
}

/* ===== BLOG TEASERS ===== */
.blog-teasers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.blog-teaser-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 0;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}

.blog-teaser-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-gold-dim);
    box-shadow: 0 4px 24px rgba(212, 168, 85, 0.1);
    color: var(--text-primary);
    text-shadow: none;
}

.blog-teaser-img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.blog-teaser-body {
    padding: 20px 24px 24px;
    flex: 1;
}

.blog-teaser-date {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.blog-teaser-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-teaser-card:hover .blog-teaser-title {
    color: var(--neon-blue);
}

.blog-teaser-excerpt {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.section-more {
    margin-top: 20px;
    text-align: center;
}

.section-more .btn {
    font-size: 0.8rem;
    padding: 8px 20px;
}

/* ===== SUBSCRIBE SECTION ===== */
.subscribe-section {
    padding: 40px 0;
}

.subscribe-box {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background: var(--bg-card);
}

.subscribe-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 8px;
}

.subscribe-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.subscribe-form {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 380px;
    margin: 0 auto;
}

.subscribe-form input[type="email"] {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.subscribe-form input[type="email"]:focus {
    border-color: var(--accent-gold-dim);
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.subscribe-form button {
    height: 38px;
    padding: 0 18px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    background: rgba(212, 168, 85, 0.15);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.subscribe-form button:hover {
    background: rgba(212, 168, 85, 0.3);
    box-shadow: 0 0 10px rgba(212, 168, 85, 0.2);
}

/* ===== TABLE INTRO (replaces old site-intro) ===== */
.table-intro {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ===== RESPONSIVE: NEW SECTIONS ===== */
@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 24px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-journey {
        font-size: 0.7rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-actions {
        margin-top: 20px;
        width: 100%;
    }

    .hero-btn-blue {
        font-size: 0.8rem;
        padding: 10px 20px;
        text-align: center;
    }

    .hero-subscribe-form {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
    }

    .hero-subscribe-form input[type="email"] { width: 100%; }
    .hero-subscribe-form button { width: 100%; text-align: center; }

    .hero-section .biz-subscribe-row {
        max-width: 100%;
    }

    .biz-subscribe-form button {
        font-size: 0.8rem;
        padding: 10px 20px;
        text-align: center;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .blog-teasers-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .subscribe-box {
        padding: 24px 16px;
    }

    .subscribe-form {
        flex-direction: column;
        max-width: 100%;
    }

    .subscribe-form input[type="email"] { width: 100%; }
    .subscribe-form button { width: 100%; text-align: center; }
}

/* Intro text (legacy — kept for table intro subscribe msg) */
.site-intro {
    color: #b0a78e;
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.intro-subscribe-cta {
    color: #fffefa;
    font-family: var(--font-body);
    font-size: 0.78rem;
    margin: 16px 0 8px;
}

/* Intro subscribe */
.intro-subscribe {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    margin-bottom: 24px;
}

.intro-subscribe input[type="email"] {
    flex: 1;
    height: 35px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.intro-subscribe input[type="email"]:focus {
    border-color: var(--accent-gold-dim);
}

.intro-subscribe input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.intro-subscribe button {
    height: 35px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    background: rgba(212, 168, 85, 0.15);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.intro-subscribe button:hover {
    background: rgba(212, 168, 85, 0.3);
    box-shadow: 0 0 10px rgba(212, 168, 85, 0.2);
}

.intro-subscribe-msg {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.intro-subscribe-msg.success {
    color: var(--neon-green, #39ff14);
}

.intro-subscribe-msg.error {
    color: #e74c3c;
}

/* No-reflow typewriter: text reserves space, chars invisible until revealed */
.site-intro.desktop-typing .tc {
    color: transparent;
}
.site-intro.desktop-typing .tc.v {
    color: inherit;
}

/* Typewriter cursor */
.site-intro.typing::after {
    content: '|';
    color: var(--accent-gold, #d4a855);
    animation: blink-cursor 0.7s step-end infinite;
    font-weight: 300;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.project-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-heading);
}

.project-table thead {
    border-bottom: 1px solid var(--accent-gold-dim);
}

.project-table th {
    padding: 12px 16px;
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

/* Header text: full on desktop, short on mobile */
.th-short { display: none; }

.project-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.project-table th.sortable:hover {
    color: var(--accent-gold);
}


.project-table td {
    padding: 14px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.project-table tbody tr.project-row {
    transition: background 0.2s;
    cursor: pointer;
}

.project-table tbody tr:hover {
    background: var(--bg-card-hover);
}

/* Title column */
.project-table .project-title-cell {
    width: 35%;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.project-table .project-title-cell a {
    color: var(--text-primary);
    text-decoration: none;
}

.project-table .project-title-cell a:hover {
    color: var(--neon-blue);
}

.project-table .title-badge {
    font-size: 0.55rem;
    padding: 2px 5px;
    vertical-align: middle;
    margin-left: 6px;
}

/* Year column */
.project-table .project-year {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Earnings column */
.project-table .project-earnings {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
}

.project-table .undisclosed {
    opacity: 0.4;
    font-style: italic;
    font-size: 0.8rem;
}

.project-table .earnings-negative {
    color: #e74c3c;
}

.project-table .earnings-positive {
    color: var(--accent-gold, #d4a855);
}

/* Upvote cell */
.upvote-cell {
    white-space: nowrap;
}

.upvote-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: transparent;
    border: 1px solid var(--accent-gold);
    border-radius: 4px;
    color: var(--text-secondary);
    font-size: 10px;
    cursor: pointer;
    transition: all 0.2s;
    vertical-align: middle;
    line-height: 1;
    padding: 0;
    animation: glow-upvote 2s ease-in-out infinite;
}

@keyframes glow-upvote {
    0%, 100% {
        box-shadow: 0 0 4px rgba(212, 168, 85, 0.2);
        border-color: rgba(212, 168, 85, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(212, 168, 85, 0.5), 0 0 20px rgba(212, 168, 85, 0.2);
        border-color: var(--accent-gold);
    }
}

.upvote-btn:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    box-shadow: 0 0 8px rgba(212, 168, 85, 0.25);
}

.upvote-btn.voted {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
    background: rgba(212, 168, 85, 0.15);
    animation: none;
    box-shadow: none;
}

.upvote-count {
    display: inline-block;
    margin-left: 4px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    vertical-align: middle;
    min-width: 1ch;
}

/* Expand button */
.expand-btn {
    width: 28px;
    height: 28px;
    background: rgba(212, 168, 85, 0.1);
    border: 1px solid var(--accent-gold-dim);
    border-radius: 4px;
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.expand-btn:hover {
    background: rgba(212, 168, 85, 0.2);
    box-shadow: 0 0 10px rgba(212, 168, 85, 0.15);
}

.expand-btn.expanded {
    background: var(--accent-gold);
    color: var(--bg-dark);
}

/* Expanded row */
.project-expanded {
    display: none;
}

.project-expanded.show {
    display: table-row;
}

.project-expanded td {
    padding: 0 16px 20px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.project-excerpt {
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-excerpt .excerpt-thumb {
    width: 220px;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-top: 12px;
    margin-bottom: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-excerpt .excerpt-thumb[src] {
    opacity: 1;
}

.project-excerpt .excerpt-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-excerpt .read-more {
    display: inline-block;
    margin-top: 8px;
    color: #00e5ff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.project-excerpt .read-more.pulse {
    animation: readmore-pulse 2s ease-in-out infinite;
}

.project-excerpt .project-website-link {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary, #a09882);
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}

.project-excerpt .project-website-link:hover {
    color: #00e5ff;
}

@keyframes readmore-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; text-shadow: 0 0 10px rgba(0, 229, 255, 0.5); }
}

.project-excerpt .read-more:hover {
    color: var(--neon-pink);
    animation: none;
    opacity: 1;
}

.project-excerpt .tech-pills {
    margin-top: 10px;
}

/* Excerpt insights (homepage preview) */
.excerpt-insights {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.excerpt-insight-row {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary, #a09882);
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.excerpt-insight-row .insight-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.excerpt-insight-row .insight-win { background: #2ecc40; }
.excerpt-insight-row .insight-loss { background: #ff2d95; }
.excerpt-insight-row .insight-takeaway { background: #d4a855; }

.excerpt-insight-row .insight-win-text,
.excerpt-insight-row .insight-loss-text,
.excerpt-insight-row .insight-takeaway-text {
    font-family: var(--font-heading, 'Space Mono', monospace);
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.excerpt-insight-row .insight-win-text { color: #2ecc40; }
.excerpt-insight-row .insight-loss-text { color: #ff2d95; }
.excerpt-insight-row .insight-takeaway-text { color: #d4a855; }

.excerpt-insight-row .insight-box {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #ddd;
}

.excerpt-insight-row .insight-box-win {
    background: rgba(46, 204, 64, 0.1);
    border: 1px solid rgba(46, 204, 64, 0.2);
}

.excerpt-insight-row .insight-box-loss {
    background: rgba(255, 45, 149, 0.1);
    border: 1px solid rgba(255, 45, 149, 0.2);
}

.excerpt-insight-row .insight-box-takeaway {
    background: rgba(212, 168, 85, 0.1);
    border: 1px solid rgba(212, 168, 85, 0.2);
}

.project-table .earnings-label {
    font-size: 0.75rem;
    font-style: italic;
    opacity: 0.7;
}

/* Sub-project rows */
.sub-project-row {
    background: rgba(212, 168, 85, 0.03);
}

.sub-project-row:hover {
    background: rgba(212, 168, 85, 0.08) !important;
}

.project-table td.sub-project {
    padding-left: 32px;
    font-size: 0.88rem;
    opacity: 0.85;
}

.project-table td.sub-project::before {
    content: '└';
    color: var(--accent-gold-dim, #b8943f);
    margin-right: 6px;
    opacity: 0.6;
}

/* Under-development tag */
.dev-tag {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.55rem;
    font-weight: 400;
    color: var(--text-secondary, #a09882);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    vertical-align: middle;
    opacity: 0.7;
}

/* Disabled upvote (coming-soon) */
.upvote-btn.disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
    animation: none;
    border-color: rgba(212, 168, 85, 0.2);
    box-shadow: none;
}

/* Coming-soon expanded row content */
.coming-soon-cta {
    padding: 8px 0;
}

.coming-soon-cta .coming-soon-msg {
    color: #fffefa;
    font-family: var(--font-body);
    font-size: 0.78rem;
    margin: 16px 0;
}

.coming-soon-visit {
    display: inline-block;
    margin-bottom: 12px;
    color: #ff930f;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s, text-shadow 0.2s;
}

.coming-soon-visit:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px rgba(255, 45, 149, 0.3);
}

.coming-soon-subscribe {
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: 400px;
    margin-bottom: 12px;
}

.coming-soon-cta .tech-pills {
    margin-top: 10px;
}

.coming-soon-subscribe input[type="email"] {
    flex: 1;
    padding: 7px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.coming-soon-subscribe input[type="email"]:focus {
    border-color: var(--accent-gold-dim);
}

.coming-soon-subscribe input[type="email"]::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.coming-soon-subscribe button {
    padding: 7px 16px;
    border-radius: 4px;
    border: 1px solid var(--accent-gold);
    background: rgba(212, 168, 85, 0.15);
    color: var(--accent-gold);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.coming-soon-subscribe button:hover {
    background: rgba(212, 168, 85, 0.3);
    box-shadow: 0 0 10px rgba(212, 168, 85, 0.2);
}

.coming-soon-success {
    color: var(--neon-green, #39ff14);
    font-family: var(--font-heading);
    font-size: 0.85rem;
}

.coming-soon-error {
    color: #ff4d4d;
    font-family: var(--font-body);
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Projects section spacing */
.section-projects {
    padding-top: 40px;
}

/* Empty state */
.table-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    /* Less top padding on mobile */
    .section-projects {
        padding-top: 20px;
        padding-bottom: 16px;
    }

    /* Reclaim hidden expand column — auto layout works better on mobile */
    .project-table {
        table-layout: auto;
    }

    /* Near full width — small side padding */
    .project-table-wrapper {
        margin: 0 -12px;
        padding: 0 4px;
    }

    /* Reduce heading gap */
    .neon-heading {
        margin-bottom: 12px;
    }

    /* Smaller intro text with breathing room */
    .site-intro {
        font-size: 0.8rem;
        line-height: 1.6;
        margin-top: 4px;
        margin-bottom: 10px;
    }

    .intro-subscribe {
        flex-direction: column;
        max-width: 100%;
        margin-bottom: 16px;
    }

    .intro-subscribe input[type="email"] { width: 100%; height: 35px !important; min-height: 35px !important; }
    .intro-subscribe button { width: 100%; height: 35px; text-align: center; }

    /* Bracketed part of title on own line */
    .title-paren {
        display: block;
    }

    /* Title badge — plain text on own line, keep blue colour, centered */
    .title-badge {
        display: block !important;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        color: #00e5ff !important;
        font-size: 0.5rem !important;
        width: auto !important;
        min-width: 0 !important;
        text-align: center !important;
    }

    /* No-reflow typewriter: chars invisible until revealed */
    .site-intro.mobile-typing .tc {
        color: transparent;
    }
    .site-intro.mobile-typing .tc.v {
        color: inherit;
    }

    /* Blinking cursor that follows the text */
    .type-cursor {
        display: inline;
        color: var(--accent-gold, #d4a855);
        animation: blink-cursor 0.7s step-end infinite;
        font-weight: 300;
    }

    /* Shorten header text on mobile */
    .th-full { display: none; }
    .th-short { display: inline; }

    /* Allow headers to wrap, tighter padding */
    .project-table th {
        padding: 8px 3px;
        font-size: 0.5rem;
        letter-spacing: 0.02em;
        white-space: normal;
    }

    /* Narrower project column on mobile */
    .project-table .project-title-cell {
        width: 28%;
    }

    .project-table td {
        padding: 10px 3px;
        font-size: 0.65rem;
    }

    .project-table .project-title-cell {
        font-size: 0.7rem;
    }

    .project-table .project-year,
    .project-table .project-earnings {
        font-size: 0.65rem;
    }

    /* Hide year range — just show start year */
    .year-range {
        display: none;
    }

    /* Compact upvote — hide count to save space */
    .upvote-btn {
        width: 18px;
        height: 18px;
        font-size: 7px;
    }

    .upvote-count {
        display: none;
    }

    /* Hide expand button column — tap row instead */
    .expand-col {
        display: none;
    }

    .project-table .badge {
        font-size: 0.5rem;
        padding: 2px 4px;
        white-space: nowrap;
        min-width: 0;
        width: 52.38px;
        text-align: center;
        box-sizing: border-box;
        display: inline-block;
    }

    .project-table .earnings-label {
        font-size: 10.4px;
    }

    /* Expanded content — full width */
    .project-expanded td {
        padding: 0 6px 14px 6px;
    }

    .project-excerpt {
        font-size: 0.8rem;
    }

    /* Show full image on mobile */
    .project-excerpt .excerpt-thumb {
        width: 100%;
        height: auto;
        max-height: none;
    }

    .project-excerpt .read-more {
        font-size: 0.8rem;
    }

    /* Compact insights */
    .excerpt-insights {
        gap: 3px;
    }

    .excerpt-insight-row {
        font-size: 0.68rem;
        gap: 3px;
    }

    .excerpt-insight-row .insight-dot {
        width: 5px;
        height: 5px;
    }

    .excerpt-insight-row .insight-win-text,
    .excerpt-insight-row .insight-loss-text,
    .excerpt-insight-row .insight-takeaway-text {
        font-size: 0.68rem;
    }

    .excerpt-insight-row .insight-box {
        font-size: 0.68rem;
        padding: 1px 5px;
    }

    .tech-pills {
        margin-top: 6px;
    }

    .tech-pill {
        font-size: 0.6rem;
        padding: 2px 6px;
    }

    /* Sub-project mobile */
    .project-table td.sub-project {
        padding-left: 18px;
        font-size: 0.65rem;
    }

    .project-table td.sub-project::before {
        margin-right: 3px;
    }

    /* Coming-soon mobile */
    .coming-soon-subscribe {
        flex-direction: column;
        max-width: 100%;
    }

    .coming-soon-subscribe input[type="email"] {
        width: 100%;
    }

    .coming-soon-subscribe button {
        width: 100%;
        text-align: center;
    }

    .coming-soon-cta .coming-soon-msg {
        font-size: 0.8rem;
    }

    .coming-soon-visit {
        font-size: 0.75rem;
    }

    .coming-soon-success {
        font-size: 0.75rem;
    }
}

/* ===== ROAD TO 100 STICKER — shared ===== */
.biz-sticker {
    position: fixed;
    z-index: 50;
    visibility: hidden;
    display: block;
    text-decoration: none;
}

.biz-sticker-img {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

@keyframes sticker-glow {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(255, 0, 64, 0.4)) drop-shadow(0 0 20px rgba(255, 102, 0, 0.2)); }
    50% { filter: drop-shadow(0 0 20px rgba(255, 0, 64, 0.7)) drop-shadow(0 0 40px rgba(255, 102, 0, 0.4)); }
}

@keyframes sticker-wobble {
    0%, 100% { transform: rotate(-14deg); }
    50% { transform: rotate(-6deg); }
}

@keyframes sticker-intro-shake {
    0% { transform: rotate(0deg) scale(1); }
    15% { transform: rotate(-12deg) scale(1.05); }
    30% { transform: rotate(10deg) scale(1.05); }
    45% { transform: rotate(-8deg) scale(1.02); }
    60% { transform: rotate(6deg) scale(1.02); }
    75% { transform: rotate(-3deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* ===== STICKER — desktop (>768px) ===== */
@media (min-width: 769px) {
    .biz-sticker {
        animation: sticker-wobble 2s ease-in-out infinite, sticker-glow 3s ease-in-out infinite;
        transition: top 0.5s ease, right 0.5s ease, width 0.5s ease, height 0.5s ease;
    }
    .biz-sticker:hover {
        transform: rotate(0deg) scale(1.1);
        animation: none;
        filter: drop-shadow(0 0 30px rgba(255, 0, 64, 0.8))
                drop-shadow(0 0 60px rgba(255, 102, 0, 0.6));
    }
}

/* ===== STICKER — mobile (<=768px) ===== */
@media (max-width: 768px) {
    .biz-sticker {
        /* JS controls animation and transition on mobile */
        transition: none;
    }
}

/* ===== LIVE TICKER ===== */
.live-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    height: 48px;
    background: #63b1ff;
    border-top: 2px solid #000;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

.live-ticker-label {
    flex-shrink: 0;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.75rem;
    font-weight: 900;
    color: #fff;
    background: #c00;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.12em;
    position: relative;
    z-index: 2;
    border-right: 3px solid #000;
    animation: live-label-pulse 2s ease-in-out infinite;
}

@keyframes live-label-pulse {
    0%, 100% { background: #c00; }
    50% { background: #e00; }
}

.live-ticker-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: ticker-dot-pulse 1s ease-in-out infinite;
}

@keyframes ticker-dot-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px #fff, 0 0 12px rgba(255,0,0,0.5); }
    50% { opacity: 0.2; box-shadow: none; }
}

.live-ticker-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.live-ticker-scroll {
    display: flex;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    gap: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


.live-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px 16px;
    margin: 0 8px;
    text-decoration: none;
    flex-shrink: 0;
    background: #fff;
    border: 2.5px solid #000;
    border-bottom-width: 4px;
    border-right-width: 4px;
    border-radius: 0;
    transition: transform 0.15s;
}

.live-ticker-item:hover {
    transform: translateY(-1px);
    background: #fffbe6;
}

.live-ticker-item:hover .ticker-title {
    color: #000;
}

.ticker-type {
    font-family: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 0;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    transform: skewX(-4deg);
    display: inline-block;
}

.ticker-type-newsletter {
    background: #000;
    color: #fff;
}

.ticker-type-announcement {
    background: #ff4fca;
    color: #fff;
}

.ticker-type-digest {
    background: #9918f5;
    color: #fff;
}

.ticker-type-project {
    background: #187bf5;
    color: #fff;
}

.ticker-type-new_project {
    background: #18dbf5;
    color: #fff;
}

.ticker-type-purchase {
    background: #23cf2f;
    color: #fff;
}

.ticker-type-coffee {
    background: #fff700;
    color: #000;
}

.ticker-type-video {
    background: #c00;
    color: #fff;
}

.ticker-type-reel {
    background: #ffaa17;
    color: #fff;
}

.ticker-type-signup {
    background: #e040fb;
    color: #fff;
}

.ticker-type-working_on {
    background: #06b6d4;
    color: #fff;
}

.ticker-title {
    font-family: 'Impact', 'Arial Black', 'Helvetica Neue', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
    color: #000;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ticker-date {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 0.55rem;
    font-style: italic;
    color: #666;
}

.ticker-sep {
    display: none;
}

@media (max-width: 768px) {
    .live-ticker {
        height: 42px;
    }
    .live-ticker-label {
        font-size: 0.6rem;
        padding: 0 10px;
    }
    .ticker-title {
        font-size: 0.75rem;
    }
    .ticker-date {
        display: none;
    }
}
