/* ==========================================================================
   ARG Insights
   Space Grotesk · Inter · JetBrains Mono
   ========================================================================== */

:root {
    --bg: #ffffff;
    --surface: #f6f6f6;
    --text: #0a0a0a;
    --text-secondary: #525252;
    --text-tertiary: #8b8b8b;
    --accent: #0a0a0a;
    --accent-hover: #404040;
    --border: #e0e0e0;
    --border-light: #ebebeb;
    --code-bg: #f6f6f6;
    --heading: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", "Courier New", monospace;
    --content-max: 1200px;
    --content-narrow: 720px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--accent);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

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

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

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    padding: 0 48px;
}

.site-nav .nav-inner {
    max-width: var(--content-max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    height: 64px;
}

.site-nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
}

.nav-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.nav-logo-text {
    font-family: var(--mono);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    font-size: 14px;
    font-weight: 450;
    color: var(--text-secondary);
    transition: color 0.15s;
}

.nav-menu a:hover {
    color: var(--text);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.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);
}

.hero {
    padding: 120px 48px 100px;
    max-width: var(--content-max);
    margin: 0 auto;
}

.hero-text {
    max-width: 860px;
}

.hero-note {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.hero-statement {
    font-family: var(--heading);
    font-size: clamp(42px, 5.5vw, 72px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    max-width: 920px;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 720px;
}

.section {
    padding: 80px 48px;
}

.section--ruled {
    border-top: 1px solid var(--border);
}

.section--surface {
    background: var(--surface);
}

.section-inner {
    max-width: var(--content-max);
    margin: 0 auto;
}

.section-label {
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.manifesto-text {
    max-width: 720px;
}

.manifesto-text p {
    font-family: var(--heading);
    font-size: 22px;
    line-height: 1.65;
    margin-bottom: 24px;
}

.manifesto-text p:last-child {
    margin-bottom: 0;
}

.pillars,
.about-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.services-grid--page {
    margin-bottom: 24px;
}

.service-card,
.process-step,
.value-item {
    padding: 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.service-title,
.process-title,
.value-title {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.service-body,
.process-body,
.value-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.process-grid,
.value-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.process-index {
    display: inline-block;
    margin-bottom: 18px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

.section--flush {
    padding-left: 0;
    padding-right: 0;
}

.cta-panel {
    max-width: 760px;
}

.cta-title {
    font-family: var(--heading);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-body {
    max-width: 620px;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.cta-link {
    font-family: var(--mono);
    font-size: 14px;
}

.pillar,
.about-detail {
    border-top: 2px solid var(--text);
    padding-top: 24px;
}

.pillar-title,
.about-detail-title {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.pillar-body,
.about-detail-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.research-grid,
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.research-card,
.project-card {
    display: flex;
    flex-direction: column;
    padding: 32px;
    color: var(--text);
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

.research-card:hover,
.project-card:hover {
    background: var(--surface);
    color: var(--text);
}

.research-card-title,
.project-title {
    font-family: var(--heading);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 10px;
}

.research-card-summary,
.project-desc {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    flex: 1;
    margin-bottom: 16px;
}

.research-card-tags,
.project-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.section--dark {
    background: var(--text);
    border-top-color: transparent;
}

.section--dark .section-label {
    color: rgba(255, 255, 255, 0.35);
}

.section--dark .flow-intro {
    color: rgba(255, 255, 255, 0.55);
}

.section--dark .flow-diagram {
    border-top-color: rgba(255, 255, 255, 0.1);
}

.section--dark .flow-row {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.section--dark .flow-tag {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.section--dark .flow-arrow {
    color: rgba(255, 255, 255, 0.25);
}

.section--dark .flow-out strong {
    color: #fff;
}

.section--dark .flow-out span {
    color: rgba(255, 255, 255, 0.5);
}

.flow-intro {
    max-width: 720px;
    font-size: 19px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 56px;
}

.flow-diagram {
    border-top: 1px solid var(--border);
}

.flow-row {
    display: grid;
    grid-template-columns: 1fr 64px 1fr;
    align-items: center;
    gap: 24px;
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.flow-in {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.flow-tag {
    display: inline-block;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--surface);
}

.flow-arrow-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-arrow {
    font-size: 22px;
    color: var(--text-tertiary);
}

.flow-out strong {
    display: block;
    font-family: var(--heading);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
}

.flow-out span {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.see-all {
    display: inline-block;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 14px;
}

.writing-list {
    list-style: none;
}

.writing-list li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 32px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-light);
}

.writing-list li:first-child {
    border-top: 1px solid var(--border-light);
}

.writing-list a {
    font-family: var(--heading);
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.writing-date {
    flex-shrink: 0;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-tertiary);
}

.inner-page {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 48px 48px 80px;
}

.page-header {
    margin-bottom: 48px;
}

.page-nav {
    margin-bottom: 16px;
}

.page-nav a,
.breadcrumb,
.post-date,
.post-tags a,
.nav-label {
    font-family: var(--mono);
}

.page-nav a,
.breadcrumb,
.post-date,
.post-tags a {
    font-size: 13px;
    color: var(--text-tertiary);
}

.page-title,
.article-title {
    font-family: var(--heading);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.page-subtitle {
    margin-top: 12px;
    max-width: 620px;
    font-size: 18px;
    color: var(--text-secondary);
}

.articles,
.page-content,
.full-article {
    max-width: var(--content-narrow);
}

.post-preview {
    padding: 32px 0;
    border-bottom: 1px solid var(--border-light);
}

.post-preview:first-child {
    padding-top: 0;
}

.post-preview h2 {
    font-family: var(--heading);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

.post-preview h2 a {
    color: var(--text);
}

.post-meta,
.article-meta,
.project-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.post-meta,
.article-meta {
    margin-bottom: 12px;
}

.article-meta {
    margin-bottom: 40px;
}

.post-summary {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.read-more {
    font-family: var(--mono);
    font-size: 13px;
}

.full-article {
    margin: 0 auto;
    padding: 48px 48px 80px;
}

.breadcrumb {
    margin-bottom: 32px;
}

.breadcrumb a {
    color: var(--text-tertiary);
}

.breadcrumb .separator {
    margin: 0 8px;
    opacity: 0.5;
}

.article-content,
.page-content {
    font-size: 17px;
    line-height: 1.75;
}

.article-content h2,
.page-content h2 {
    font-family: var(--heading);
    font-size: 28px;
    font-weight: 700;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.article-content h3,
.page-content h3 {
    font-family: var(--heading);
    font-size: 22px;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 12px;
}

.article-content p,
.page-content p,
.article-content ul,
.page-content ul,
.article-content ol,
.page-content ol {
    margin-bottom: 20px;
}

.article-content ul,
.page-content ul,
.article-content ol,
.page-content ol {
    padding-left: 24px;
}

.article-content li,
.page-content li {
    margin-bottom: 8px;
}

.article-content a,
.page-content a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article-content code,
.page-content code {
    font-family: var(--mono);
    font-size: 0.9em;
    background: var(--code-bg);
    padding: 2px 6px;
    border-radius: 3px;
}

.article-content pre,
.page-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 20px 24px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
}

.project-links {
    margin-bottom: 24px;
}

.project-link {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
    padding: 6px 14px;
    border: 1px solid var(--accent);
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}

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

.article-footer {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.article-footer .prev,
.article-footer .next {
    flex: 1;
}

.article-footer .next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.article-footer a {
    font-family: var(--heading);
    font-size: 16px;
    color: var(--text);
}

.tag-list,
.category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-list a,
.category-list a {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.site-footer {
    border-top: 1px solid var(--border);
}

.footer-mega {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 64px 48px;
    display: flex;
    justify-content: space-between;
    gap: 64px;
}

.footer-brand {
    max-width: 340px;
}

.footer-tagline {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-columns {
    display: flex;
    gap: 64px;
}

.footer-col-title {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    display: block;
    padding: 4px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.footer-bottom {
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 20px 48px;
    border-top: 1px solid var(--border-light);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-tertiary);
}

@media (max-width: 900px) {
    .pillars,
    .about-details,
    .services-grid,
    .process-grid,
    .value-list,
    .research-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .research-grid,
    .project-grid,
    .services-grid,
    .process-grid,
    .value-list {
        border-right: 1px solid var(--border);
    }

    .footer-mega {
        flex-direction: column;
        gap: 40px;
    }

    .footer-columns {
        flex-wrap: wrap;
        gap: 40px;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border-light);
        padding: 16px 24px 24px;
    }

    .nav-menu--open {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 10px 0;
        font-size: 15px;
    }

    .hero {
        padding: 72px 24px 64px;
    }

    .hero-statement {
        font-size: clamp(32px, 8vw, 48px);
    }

    .section,
    .inner-page,
    .full-article,
    .footer-mega {
        padding-left: 24px;
        padding-right: 24px;
    }

    .section {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .inner-page,
    .full-article {
        padding-top: 32px;
        padding-bottom: 64px;
    }

    .footer-mega {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .footer-bottom {
        padding: 16px 24px;
    }

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

    .flow-arrow-col {
        justify-content: flex-start;
    }

    .writing-list li,
    .article-footer {
        flex-direction: column;
    }

    .writing-list li {
        gap: 4px;
    }

    .article-title,
    .page-title {
        font-size: 32px;
    }

    .article-footer .next {
        text-align: left;
    }
}
