/* Do Nothing Labs */

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

:root {
    --bg-primary: #050505;
    --bg-secondary: #0A0A0A;
    --bg-tertiary: #111111;
    --text-primary: #FFFFFF;
    --text-secondary: #A1A1AA;
    --text-tertiary: #52525B;
    --border-color: #1E1E1E;
    --border-hover: #3F3F46;
    --accent: #FFFFFF;
    --accent-dim: rgba(255, 255, 255, 0.06);
    --font-sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', Menlo, monospace;
    --hover-bg: #141414;
    --container-width: 1200px;
    --header-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
}

/* ─── Shader Background ─── */
.shader-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border: none;
    opacity: 0.35;
    pointer-events: none;
}

/* ─── Header ─── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.brand-name {
    color: var(--text-primary);
}

.brand-sep {
    color: var(--text-tertiary);
}

.brand-lab {
    color: var(--text-secondary);
}

.nav-menu {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-cta {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.2s ease;
    display: inline-block;
}

.header-cta:hover {
    background: #E5E5E5;
    transform: translateY(-1px);
}

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

.hero-content {
    max-width: 720px;
    padding: 80px 0;
}

.hero-title {
    font-size: clamp(42px, 5.5vw, 68px);
    font-weight: 300;
    line-height: 1.08;
    margin-bottom: 32px;
    letter-spacing: -0.03em;
}

.hero-accent {
    color: var(--text-secondary);
}

.hero-status {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.hero-status::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 10px;
    background: var(--text-primary);
    animation: blink 1.6s steps(2, start) infinite;
}

.hero-description {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 520px;
    text-wrap: balance;
}

.hero-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.context-item a {
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.context-item a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.context-sep {
    color: var(--text-tertiary);
}

.hero-thesis {
    font-size: 15px;
    color: var(--text-tertiary);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 560px;
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.cta-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-primary:hover {
    background: #E5E5E5;
    transform: translateY(-1px);
}

.cta-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.05em;
    border-radius: 0;
    transition: all 0.2s ease;
    display: inline-block;
}

.cta-secondary:hover {
    border-color: var(--text-primary);
    background: var(--hover-bg);
}

/* ─── Thesis Strip ─── */
.thesis-strip {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 64px 0;
}

.thesis-text {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 300;
    color: var(--text-primary);
    max-width: 860px;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.thesis-text span {
    color: var(--text-secondary);
}

/* ─── Section Common ─── */
.section-header {
    margin-bottom: 60px;
}

.section-index {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding-top: 16px;
    margin-bottom: 28px;
    border-top: 1px solid var(--border-color);
}

.section-title {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-tertiary);
}

/* ─── Projects ─── */
.projects {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: rgba(5, 5, 5, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.projects-grid--small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 40px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.project-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.project-card--featured {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.project-card--compact {
    padding: 32px;
}

.project-card--compact .project-title {
    font-size: 20px;
}

.project-logo {
    margin-bottom: 16px;
}

.project-logo img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.project-card--compact .project-description {
    font-size: 13px;
}

.project-card--compact strong {
    color: var(--text-primary);
    font-weight: 500;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.project-status {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 0;
}

.project-status--live {
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.project-status--active {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

@keyframes blink {
    to { visibility: hidden; }
}

.project-title {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    gap: 24px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.project-link {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ─── Thinking ─── */
.thinking {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--border-color);
}

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

.thinking-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 40px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

a.thinking-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.thinking-header {
    margin-bottom: 20px;
}

.thinking-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.thinking-card--published .thinking-label {
    color: var(--accent);
}

.thinking-card--coming {
    opacity: 0.6;
}

.thinking-title {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 12px;
}

.thinking-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.thinking-link {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
    margin-top: 24px;
    transition: color 0.2s;
}

a.thinking-card:hover .thinking-link {
    color: var(--accent);
}

/* ─── About ─── */
.about {
    position: relative;
    z-index: 1;
    padding: 120px 0;
    background: rgba(5, 5, 5, 0.95);
    border-top: 1px solid var(--border-color);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 80px;
}

.about-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text a {
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.about-text a:hover {
    border-color: var(--text-primary);
}

.about-offer {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.about-offer h3 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-offer p {
    margin-bottom: 24px;
}

.offer-cta {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 0;
    border: 1px solid var(--border-hover);
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-hover) !important;
}

.offer-cta:hover {
    border-color: var(--accent) !important;
    color: var(--accent);
    transform: translateY(-1px);
}

.about-meta {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-top: 60px;
}

.meta-block {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.meta-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.meta-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.meta-sub {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.meta-sub a {
    border-bottom: 1px solid var(--border-color);
}

.meta-sub a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.meta-links {
    display: flex;
    gap: 16px;
}

.meta-links a {
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.meta-links a:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Stack Accordion */
details.stack-accordion {
    margin-top: 32px;
    border: 1px solid var(--border-color);
    border-radius: 0;
    background: var(--bg-secondary);
}

details.stack-accordion summary.stack-toggle {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    padding: 16px 20px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
    margin-bottom: 0;
}

details.stack-accordion summary.stack-toggle::-webkit-details-marker {
    display: none;
}

details.stack-accordion summary.stack-toggle::before {
    content: '+';
    font-size: 18px;
    font-weight: 300;
    color: var(--accent);
    width: 16px;
}

details.stack-accordion[open] summary.stack-toggle::before {
    content: '\2212';
}

details.stack-accordion summary.stack-toggle:hover {
    color: var(--text-primary);
}

details.stack-accordion .stack-content {
    padding: 4px 20px 24px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

details.stack-accordion .stack-group-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    display: block;
    margin-bottom: 8px;
}

details.stack-accordion .stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

details.stack-accordion .stack-tag {
    font-size: 11px;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 4px 10px;
    border-radius: 0;
    letter-spacing: 0.01em;
    background: var(--bg-tertiary);
}

/* ─── Footer ─── */
.footer {
    position: relative;
    z-index: 1;
    padding: 60px 0 40px;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-secondary);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.03em;
}

/* ─── AI Mode ─── */
.ai-mode-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-tertiary);
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    z-index: 200;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.2s ease;
}

.ai-mode-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.ai-mode-view {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 2000;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 80px 40px;
}

.ai-mode-exit {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    cursor: pointer;
    font-size: 10px;
    letter-spacing: 0.1em;
    z-index: 2001;
    transition: all 0.2s ease;
}

.ai-mode-exit:hover {
    border-color: var(--text-primary);
}

.markdown-content {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-x: hidden;
}

/* ─── Mono Labels ─── */
.brand,
.nav-link,
.header-cta,
.cta-primary,
.cta-secondary,
.offer-cta,
.project-label,
.project-status,
.thinking-label,
.meta-label,
.footer-brand,
.footer-bottom,
.ai-mode-badge,
.ai-mode-exit,
details.stack-accordion .stack-group-label {
    font-family: var(--font-mono);
    font-weight: 500;
}

.project-title,
.thinking-title {
    font-weight: 400;
}

.footer-tagline {
    font-style: normal;
}

.projects--lab {
    padding-top: 0;
}

.projects-grid--rows {
    gap: 12px;
}

.project-card--row {
    display: grid;
    grid-template-columns: 220px 1fr 150px;
    grid-template-areas:
        "label desc status"
        "logo  desc status";
    column-gap: 48px;
    row-gap: 16px;
    align-items: start;
}

.project-card--row .project-header {
    display: contents;
}

.project-card--row .project-label {
    grid-area: label;
}

.project-card--row .project-status {
    grid-area: status;
    justify-self: end;
}

.project-card--row .project-logo {
    grid-area: logo;
    margin-bottom: 0;
}

.project-card--row .project-description {
    grid-area: desc;
    font-size: 14px;
    max-width: 640px;
}

.work-row-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin: 48px 0 16px;
}

.section-header + .work-row-label {
    margin-top: 0;
}

/* ─── Scroll Reveal ─── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-meta {
        padding-top: 0;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .thinking-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .nav-menu {
        display: none;
    }

    .header-cta {
        font-size: 10px;
        padding: 7px 14px;
    }

    .brand-lab {
        display: none;
    }

    .brand-sep {
        display: none;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 60px);
        padding-bottom: 60px;
    }

    .hero-content {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-context {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .context-sep {
        display: none;
    }

    .hero-cta {
        flex-direction: row;
        gap: 12px;
    }

    .cta-primary,
    .cta-secondary {
        padding: 12px 20px;
        font-size: 11px;
    }

    .projects,
    .thinking,
    .about {
        padding: 80px 0;
    }

    .projects-grid,
    .projects-grid--small {
        grid-template-columns: 1fr;
    }

    .projects--lab {
        padding-top: 0;
    }

    .project-card--row {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label status"
            "logo  logo"
            "desc  desc";
    }

    .project-card {
        padding: 32px;
    }

    .thinking-grid {
        grid-template-columns: 1fr;
    }

    .about-meta {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .footer-links a {
        white-space: nowrap;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .shader-bg {
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 30px;
    }

    .section-title {
        font-size: 26px;
    }

    .project-title {
        font-size: 20px;
    }

    .project-footer {
        flex-direction: column;
        gap: 12px;
    }
}
