@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=DM+Mono:wght@300;400;500&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================
   THEME VARIABLES
============================================ */
:root {
    --ink:          #0e0d0b;
    --paper:        #f5f0e8;
    --cream:        #ede7d6;
    --accent:       #c8451a;
    --accent-pale:  #f0d5cb;
    --rule:         #c5b99a;
    --muted:        #7a7060;
}

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

/* ============================================
   BASE
============================================ */
html {
    font-size: 18px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Libre Baskerville', Georgia, serif;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--paper);
    min-height: 100vh;
}

/* Subtle grain texture */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1000;
    opacity: 0.4;
}

/* ============================================
   LAYOUT
============================================ */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ============================================
   HEADER
============================================ */
header {
    position: sticky;
    top: 0;
    padding: 20px 0;
    background-color: var(--paper);
    border-bottom: 3px double var(--rule);
    z-index: 100;
    transition: box-shadow 0.3s ease;
}

.about-page header {
    background-color: var(--paper);
}

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

.logo {
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
}

.logo a {
    display: inline-block;
    line-height: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    cursor: pointer;
}

nav a {
    margin-left: 40px;
    text-decoration: none;
    color: var(--muted);
    font-family: 'DM Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a.active {
    color: var(--accent);
}

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

/* ============================================
   HERO
============================================ */
.hero {
    padding: 80px 0 50px;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    line-height: 1.15;
    max-width: 980px;
    margin: 0 auto 30px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

/* Accent-coloured italic in headings (mirrors test-case h1 em rule) */
h1 em {
    color: var(--accent);
    font-style: italic;
}

h2 em {
    color: var(--accent);
    font-style: italic;
}

.hero-kicker {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.26em;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.5em;
    opacity: 1;
}

.hero-positioning {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 0;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

.hero-sep {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 280px;
    margin: 2.2rem auto 0;
}

.hero-sep-line {
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.hero-sep-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.hero-research-link {
    margin: 16px 0 12px;
}

.hero-research-link a {
    font-family: 'DM Mono', monospace;
    font-size: 0.75rem;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    letter-spacing: 0.1em;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.hero-research-link a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.subtitle {
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-bottom: 6px;
    line-height: 1.8;
}

.subtitle.subtitle--plain {
    text-transform: none;
    letter-spacing: 0.06em;
    font-size: 0.78rem;
}

/* ============================================
   BLOG / RESEARCH HERO (list pages)
============================================ */
.blog-hero {
    padding: 70px 0 30px;
    text-align: left;
}

.blog-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 16px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.blog-hero .dek {
    margin-top: 0.5rem;
    margin-bottom: 0;
    max-width: 620px;
}

/* ============================================
   BLOG LIST & CARDS
============================================ */
.blog-list {
    padding: 10px 0 110px;
}

.blog-list-wrap {
    border-top: none;
}

.blog-list-grid {
    display: flex;
    flex-direction: column;
}

.blog-card {
    border-bottom: 1px solid var(--rule);
}

.blog-meta {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--muted);
    margin-bottom: 0;
}

.blog-card-link {
    display: block;
    text-decoration: none;
    color: var(--ink);
    padding: 32px 12px 36px;
    margin: 0 -12px;
    border-radius: 3px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.blog-card-link:hover {
    transform: translateX(4px);
    background-color: var(--cream);
}

.blog-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.blog-meta-author {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    color: var(--muted);
    text-align: center;
    margin: 20px 0 30px;
}

.blog-meta-author a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--ink);
}

.blog-card p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.9rem;
    color: var(--muted);
    max-width: 900px;
    margin-bottom: 18px;
    line-height: 1.7;
}

.blog-card-cta {
    display: inline-flex;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
}



.blog-list-empty {
    padding: 34px 0;
    font-family: 'DM Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
}

/* ============================================
   BLOG POST — wrapper & shared
============================================ */
.blog-post {
    padding: 60px 0 100px;
}

.blog-post .post-wrap {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.blog-post .post-wrap a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.blog-post .post-wrap a:hover {
    color: var(--accent);
}

/* Share bar */
.blog-share-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 12px 0 24px;
    font-size: 14px;
}

.blog-share-bar-bottom {
    margin-top: 32px;
    margin-bottom: 8px;
}

.blog-share-button {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--rule);
    background-color: var(--cream);
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-share-button:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
}

.blog-share-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.blog-share-confirmation {
    min-height: 1em;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

/* Images */
.blog-post .post-wrap img {
    display: block;
    max-width: 720px;
    width: 100%;
    height: auto;
    margin: 32px auto;
}

.blog-post .post-wrap img[src*="/assets/blog/agents-are-here-and-they-re-scaling-faster-than-anyone-expected/Figure_2.png"] {
    width: 55%;
}

.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/SCR-20260325-kcdf.png"] {
    width: 80%;
}

.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/SCR-20260325-kpnb.png"],
.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/SCR-20260325-kqmh.png"] {
    width: 60%;
}

.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/Single_Pass_-_API_vs._Self_Host_-_by_Workload.png"],
.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/High_Utilization_is_Key_to_Profitable_Self-Host.png"],
.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/Breakeven_Utilization.png"],
.blog-post .post-wrap img[src*="/assets/blog/the-tokenomics-of-open-source-llms-when-apis-beat-self-hosting-your-model-and-when-they-do-not/Multi_Step_Agenticimpat_on_Tokenomics.png"] {
    max-width: 900px;
}

.blog-post .blog-figure-caption {
    margin: -12px auto 28px;
    max-width: 720px;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
    letter-spacing: 0.06em;
}

/* Video components */
.blog-post .blog-video-wrap {
    max-width: 720px;
    width: 100%;
    margin: 32px auto;
}

.blog-post .blog-video-table {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    width: 100%;
    margin: 32px auto;
}

.blog-post .blog-video-table--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-post .blog-video-table--featured {
    max-width: 1600px;
    width: 1600px;
    gap: 32px;
    margin-left: -350px;
    margin-right: -350px;
}

@media (max-width: 1679px) {
    .blog-post .blog-video-table--featured {
        width: calc(100vw - 80px);
        max-width: 1600px;
        margin-left: calc((100% - (100vw - 80px)) / 2);
        margin-right: calc((100% - (100vw - 80px)) / 2);
    }
}

.blog-post .blog-video-cell {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.blog-post .blog-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
    background-color: var(--ink);
}

.blog-post .blog-video-caption {
    margin-top: 10px;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
    letter-spacing: 0.06em;
}

.blog-post .blog-video-table--featured .blog-video-caption {
    order: -1;
    margin: 0 0 16px;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
    text-align: center;
    min-height: 58px;
    letter-spacing: 0;
}

/* Blog post typography */
.blog-post h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900;
    margin-bottom: 15px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.blog-post p {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.blog-post ul,
.blog-post ol {
    margin: 0 0 20px 10px;
    padding-left: 30px;
}

.blog-post li {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.85;
    margin-bottom: 6px;
}

.blog-post .post-wrap h1 + p,
.blog-post .post-wrap h1 + p + p,
.blog-post .post-wrap h1 + .blog-share-bar + p,
.blog-post .post-wrap h1 + .blog-share-bar + p + .blog-meta-author + hr + p,
.blog-meta-author {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.blog-post h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.blog-post h2.blog-post-center-heading {
    text-align: center;
}

.blog-post h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    font-style: italic;
    color: var(--ink);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.blog-post hr.blog-separator {
    border: none;
    border-top: 1px solid var(--rule);
    margin: 40px 0;
    width: 100%;
}

.blog-post em {
    font-style: italic;
}

.blog-post strong {
    font-weight: 700;
}

/* ============================================
   ARTICLE HERO
   (used in why-test-time-cognition style posts)
============================================ */
.article-hero {
    max-width: 800px;
    margin: 2.5rem auto 0;
    animation: fadeUp 0.9s ease both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.article-hero h1 {
    text-align: left;
    font-size: clamp(2.4rem, 5.5vw, 4rem);
}

.blog-post .article-hero .dek {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.article-hero .byline {
    justify-content: flex-start;
}

.article-hero .byline::after {
    display: none;
}

/* ============================================
   ARTICLE BODY (narrower reading width)
============================================ */
.article-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 0 4rem;
    animation: fadeUp 1.1s ease both;
    animation-delay: 0.15s;
}

.article-body p {
    margin-bottom: 1.25rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
}

.article-body h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    margin-top: 0;
    color: var(--ink);
}

.article-body h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    font-style: italic;
    margin-top: 2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
}

/* ============================================
   STANDALONE KICKER / DEK / BYLINE
============================================ */
.kicker {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
}

.dek {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 620px;
    border-left: 3px solid var(--accent);
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.byline {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.byline a {
    white-space: nowrap;
}

.byline::after {
    content: '';
    flex: 1;
    max-width: 60px;
    height: 1px;
    background: var(--rule);
}

@media (max-width: 600px) {
    .byline {
        flex-wrap: wrap;
        gap: 0.2rem 0.5rem;
    }
    .byline::after {
        display: none;
    }
}

/* ============================================
   SECTION LABEL (kicker above headings)
============================================ */
.section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
    margin-top: 3.5rem;
}

/* ============================================
   ORNAMENTAL SECTION RULE
============================================ */
.section-rule {
    max-width: 800px;
    margin: 3rem auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-rule .line {
    flex: 1;
    height: 1px;
    background: var(--rule);
}

.section-rule .ornament {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--rule);
}

/* Diamond separator */
.masthead-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
    display: inline-block;
}

/* Hero rule — decorative ─── ◆ ─── separator for list-page heroes */
.hero-rule {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 1.1rem 0 1rem;
}

.hero-rule .hero-rule-line {
    height: 1px;
    background: var(--rule);
    flex: 1;
    max-width: 160px;
}

.hero-rule .hero-rule-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ============================================
   PULL QUOTE
============================================ */
.pullquote {
    margin: 2.5rem -2rem;
    padding: 2rem 2.5rem;
    background: var(--cream);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    position: relative;
}

.pullquote p {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
    text-align: left;
}

.pullquote .attribution {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.75rem;
    display: block;
    font-style: normal;
}

/* ============================================
   TIMELINE
============================================ */
.timeline {
    margin: 2rem 0;
    border-left: 2px solid var(--rule);
    padding-left: 1.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--paper);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-year {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--accent);
    display: block;
    margin-bottom: 0.2rem;
}

.timeline-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   THESIS / CALLOUT BOX
============================================ */
.thesis-box {
    margin: 2.5rem -2rem;
    padding: 2.5rem;
    background: var(--ink);
    color: var(--paper);
    position: relative;
    overflow: hidden;
}

.thesis-box::before {
    content: 'VOAIGE';
    position: absolute;
    right: -0.5rem;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    letter-spacing: 0.1em;
}

.thesis-box .box-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.thesis-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: var(--paper);
    margin-top: 0;
    margin-bottom: 1rem;
    font-style: italic;
    font-weight: 700;
}

.thesis-box p {
    color: rgba(245, 240, 232, 0.8);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-align: left;
}

.thesis-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pillar {
    border: 1px solid rgba(200, 69, 26, 0.4);
    padding: 1rem;
}

.pillar-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
    display: block;
}

.pillar p {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.75);
    margin: 0;
    line-height: 1.55;
}

.constraint-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

.constraint {
    border: 1px solid rgba(200, 69, 26, 0.4);
    padding: 1rem;
}

.constraint-name {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
    display: block;
}

.constraint p {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.75);
    margin: 0;
    line-height: 1.5;
}

.stack-diagram {
    margin: 2.5rem 0;
    display: flex;
    justify-content: center;
}

.stack-diagram svg {
    width: 100%;
    max-width: 480px;
    height: auto;
}

.results-intro {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

.results-intro p {
    font-size: 0.95rem;
    color: var(--ink);
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

.results-intro-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 2.5rem 0 1rem;
}

.results-comparison {
    margin: 2rem 0;
}

.results-comparison-heading {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.stack-diagram-box {
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.stack-layer {
    padding: 14px 24px;
    border-bottom: 1px solid var(--rule);
    color: var(--muted);
    background: var(--cream);
}

.stack-layer.active {
    background: rgba(200, 69, 26, 0.06);
    color: var(--accent);
    border-bottom: 1px solid rgba(200, 69, 26, 0.2);
    border-left: 3px solid var(--accent);
}

.stack-layer:last-child {
    border-bottom: none;
}

.results-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
    background: rgba(255, 251, 243, 0.5);
}

.results-comparison-table thead th {
    text-align: left;
    padding: 10px 18px 11px;
    border-bottom: 2px solid var(--ink);
    font-weight: 500;
}

.results-comparison-table tbody td {
    padding: 12px 18px;
    vertical-align: middle;
    line-height: 1.9;
}

.results-comparison-table tbody tr {
    border-bottom: 1px solid rgba(197, 185, 154, 0.9);
}

.results-comparison-table tbody tr:nth-child(even) {
    background: rgba(237, 231, 214, 0.45);
}

.results-stack {
    margin: 2rem 0;
}

.results-stack-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.8rem;
}

.results-stack-box {
    border-color: rgba(197, 185, 154, 0.95);
    border-radius: 5px;
    background:
        radial-gradient(circle at top right, rgba(243, 218, 120, 0.16), transparent 38%),
        linear-gradient(135deg, rgba(255, 251, 243, 0.94), rgba(248, 241, 228, 0.84));
    box-shadow: 0 0 0 1px rgba(197, 185, 154, 0.2), 0 16px 32px rgba(122, 112, 96, 0.06);
}

.results-stack-box .stack-layer {
    padding: 15px 18px;
    background: transparent;
    color: rgba(122, 112, 96, 0.92);
}

.results-stack-box .stack-layer.active {
    background: linear-gradient(90deg, rgba(200, 69, 26, 0.08), rgba(200, 69, 26, 0.02));
    border-left: 4px solid var(--accent);
    color: var(--accent);
}

.results-stack-caption {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 12px;
    line-height: 1.75;
}

/* ============================================
   RESULTS / DATA-VIZ PAGE
============================================ */
.results-hero {
    max-width: 800px;
    margin: 2.5rem auto 0;
    text-align: center;
    padding: 0 24px;
}
.results-hero h1 {
    text-align: center;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
}
.results-hero .dek {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    border-left: none;
    padding-left: 0;
}
.results-hero .meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 1.5rem;
}
.results-hero .pill {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid var(--rule);
    color: var(--muted);
    background: var(--cream);
}
.results-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
}
.results-section {
    padding-top: 72px;
}
.results-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}
.results-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}
.results-desc {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-size: 0.95rem;
    color: var(--muted);
    max-width: 700px;
    margin-bottom: 2rem;
    line-height: 1.75;
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 24px 28px 22px;
}
.hero-card {
    border-color: rgba(200, 69, 26, 0.35);
    background: linear-gradient(135deg, var(--cream) 70%, rgba(200,69,26,0.04));
}
.card-head { margin-bottom: 18px; }
.config-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.badge {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 3px 10px;
    border-radius: 2px;
}
.b-red    { color: #c8451a; background: rgba(200,69,26,0.08);  border: 1px solid rgba(200,69,26,0.25); }
.b-blue   { color: #1d4ed8; background: rgba(29,78,216,0.07);  border: 1px solid rgba(29,78,216,0.2); }
.b-cyan   { color: #0d9488; background: rgba(13,148,136,0.07); border: 1px solid rgba(13,148,136,0.2); }
.b-purple { color: #6d28d9; background: rgba(109,40,217,0.07); border: 1px solid rgba(109,40,217,0.2); }
.b-green  { color: #059669; background: rgba(5,150,105,0.07);  border: 1px solid rgba(5,150,105,0.2); }
.b-amber  { color: #b45309; background: rgba(180,83,9,0.07);   border: 1px solid rgba(180,83,9,0.2); }
.plus { color: var(--muted); font-size: 14px; font-weight: 400; }
.card-sub {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.chart-wrap { position: relative; width: 100%; }
.legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--rule);
}
.leg-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 0.56rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}
.sw { width: 12px; height: 12px; border-radius: 2px; flex-shrink: 0; }
.sw-base1 { background: rgba(79,142,245,0.15); border: 1px solid rgba(79,142,245,0.38); }
.sw-base  { background: rgba(79,142,245,0.35); border: 1px solid rgba(79,142,245,0.6); }
.sw-gain  { background: rgba(52,211,153,0.65); border: 1px solid rgba(52,211,153,0.9); }
.sw-loss  { background: rgba(248,113,113,0.65); border: 1px solid rgba(248,113,113,0.9); }
.sw-dca   { background: rgba(180,83,9,0.25);    border: 1px solid rgba(180,83,9,0.55); }
.insight-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--paper);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
    padding: 20px 24px;
    margin-top: 20px;
}
.i-icon { font-size: 20px; flex-shrink: 0; line-height: 1; margin-top: 2px; color: var(--accent); }
.insight-box strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 6px;
    color: var(--ink);
}
.insight-box p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.65;
    margin: 0;
}
.fig-caption {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--rule);
    line-height: 1.6;
}
.fig-caption .fig-id {
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   CONTACT BUTTON
============================================ */
.contact-button {
    margin-top: 2rem;
}

.contact-button a {
    display: inline-block;
    padding: 10px 28px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    color: var(--muted) !important;
    text-decoration: none !important;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.contact-button a:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper) !important;
}

/* ============================================
   PRINCIPLES SECTION
============================================ */
.principles {
    padding: 40px 0 80px;
}

.principles .container h1,
.principles h1 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-size: 2.2rem !important;
    font-weight: 700 !important;
    line-height: 1.3;
    margin-bottom: 20px !important;
    letter-spacing: -0.01em;
    text-align: center !important;
    color: var(--ink);
}

.principles--essay {
    padding: 24px 0 90px;
    background: var(--paper);
}

.principles--essay .container {
    max-width: 760px;
}

.principles--essay h1 {
    text-align: left !important;
    line-height: 1.2;
    margin-bottom: 24px !important;
}

.essay-heading {
    text-align: center;
    margin-bottom: 0.5rem;
}

.essay-heading-line1 {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    font-style: normal;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-transform: none;
}

.essay-heading-line2 {
    display: block;
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: none;
    color: var(--accent);
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}

.principles--essay p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    line-height: 1.85;
    color: var(--ink);
    margin-top: 1.25rem;
    letter-spacing: 0.01em;
}

.principles--essay strong {
    font-weight: 700;
}

/* ============================================
   HOMEPAGE (deploy v2)
============================================ */
.stat-strip {
    background: var(--cream);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 44px 0;
}

.stat-strip-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 0 40px;
    border-right: 1px solid var(--rule);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-number em {
    color: var(--accent);
    font-style: italic;
}

.stat-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
    line-height: 1.8;
}

.stat-sublabel {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: 4px;
    opacity: 0.8;
}

.stat-strip-cta {
    text-align: center;
    margin-top: 28px;
}

.stat-strip-cta a {
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--rule);
    padding-bottom: 2px;
    transition: color 0.3s, border-color 0.3s;
}

.stat-strip-cta a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.stack-section {
    padding: 70px 0 60px;
    border-bottom: 1px solid var(--rule);
}

.stack-section-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 40px;
}

.stack-section-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
    text-align: center;
}

.stack-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.75rem;
}

.stack-section .dek {
    text-align: center;
    margin: 0 auto 2.5rem;
    border-left: none;
    padding-left: 0;
    max-width: 580px;
}

.stack-diagram-home {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--rule);
    border-radius: 4px;
    overflow: hidden;
    max-width: 520px;
    margin: 0 auto;
}

.stack-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px 28px;
    border-bottom: 1px solid var(--rule);
}

.stack-row:last-child {
    border-bottom: none;
}

.stack-row-label {
    flex: 1;
    color: var(--muted);
}

.stack-row-sub {
    font-size: 0.52rem;
    letter-spacing: 0.1em;
    opacity: 0.65;
}

.stack-row-icon {
    font-size: 14px;
    opacity: 0.4;
    flex-shrink: 0;
    color: var(--muted);
}

.stack-row--voaige {
    background: rgba(200,69,26,0.05);
    border-bottom-color: rgba(200,69,26,0.25);
    border-left: 3px solid var(--accent);
}

.stack-row--voaige .stack-row-label {
    color: var(--accent);
}

.stack-row--voaige .stack-row-icon {
    opacity: 1;
    color: var(--accent);
}

.stack-caption {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.7;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.research-preview {
    padding: 72px 0 80px;
    background: var(--paper);
}

.research-preview-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.research-preview h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 2rem;
}

.research-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    align-items: stretch;
}

.rcard {
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 26px 24px 22px;
    background: var(--cream);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}

.rcard:hover {
    border-color: var(--ink);
    background: var(--paper);
    transform: translateY(-2px);
}

.rcard--featured {
    border-color: rgba(200,69,26,0.35);
    background: linear-gradient(135deg, var(--cream) 70%, rgba(200,69,26,0.04));
}

.rcard-type {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.6rem;
    display: block;
}

.rcard h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 0.6rem;
}

.rcard h3 em {
    color: var(--accent);
    font-style: italic;
}

.rcard p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.rcard-cta {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid var(--rule);
    padding-bottom: 1px;
    margin-top: auto;
    padding-top: 1rem;
    transition: color 0.2s, border-color 0.2s;
    align-self: flex-start;
}

.rcard:hover .rcard-cta {
    color: var(--accent);
    border-color: var(--accent);
}

.research-all-cta {
    margin-top: 2.2rem;
    text-align: center;
}

.credentials-section {
    padding: 70px 0 80px;
    background: var(--cream);
    border-top: 1px solid var(--rule);
}

.credentials-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 40px;
}

.credentials-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.credentials-section h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
    margin-bottom: 2.4rem;
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.cred-card {
    border: 1px solid var(--rule);
    border-radius: 3px;
    padding: 24px 26px;
    background: var(--paper);
}

.cred-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 4px;
}

.cred-role {
    font-family: 'DM Mono', monospace;
    font-size: 0.57rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}

.cred-detail {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
}

.cred-affils {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 14px;
}

.cred-affil {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid var(--rule);
    color: var(--muted);
    background: var(--cream);
    border-radius: 2px;
}

.cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.2rem;
}

.cta-row a {
    display: inline-block;
    padding: 11px 30px;
    border: 1px solid var(--rule);
    border-radius: 2px;
    color: var(--muted) !important;
    text-decoration: none !important;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.cta-row a:hover {
    background-color: var(--ink);
    border-color: var(--ink);
    color: var(--paper) !important;
}

.cta-row a.cta-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper) !important;
}

.cta-row a.cta-primary:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.results-home-section {
    padding: 70px 0 80px;
    background: var(--cream);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
}

.results-home-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.results-home-h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin-bottom: 0.7rem;
}

.results-home-dek {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 1.8rem;
}

.results-home-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 1.4rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.rhl-item {
    display: flex;
    align-items: center;
    gap: 7px;
}

.rhl-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}

.rhl-grey {
    background: rgba(122,112,96,0.35);
    border: 1px solid rgba(122,112,96,0.6);
}

.rhl-teal {
    background: rgba(29,158,117,0.72);
    border: 1px solid rgba(15,110,86,0.9);
}

.results-home-charts {
    display: grid;
    grid-template-columns: 1.9fr 1fr;
    gap: 28px;
    align-items: start;
}

.results-home-charts.results-home-charts--equal {
    grid-template-columns: 1fr 1fr;
}

.rhc-axis-label {
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.rhc-wrap {
    position: relative;
    width: 100%;
    height: 200px;
}

.results-home-caption {
    font-family: 'DM Mono', monospace;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-top: 14px;
    line-height: 1.7;
}

.results-home-cta {
    margin-top: 1.8rem;
}

.principle {
    padding: 50px 0 80px;
    border-top: 1px solid var(--rule);
}

.principle:first-child {
    position: relative;
    border-top: none;
}

.principle:first-child::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 1px;
    background-color: var(--rule);
}

.principle-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.principle h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
    padding-right: 40px;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.principle-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.principle-text p {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.75;
}

/* ============================================
   ABOUT PAGE
============================================ */
.about-hero {
    padding: 70px 0 50px;
    text-align: left;
    background-color: var(--cream);
}

.about-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.01em;
    margin: 0 0 20px 0;
    color: var(--ink);
}

.about-hero .subtitle {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin: 0;
    max-width: 900px;
    text-transform: none;
}

/* Team Section */
.team-section {
    padding: 50px 0 80px;
    background-color: var(--cream);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px 100px;
}

.team-member {
    text-align: left;
}

.team-member-image {
    width: 100%;
    max-width: 280px;
    margin-bottom: 20px;
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--paper);
}

.team-member-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.team-member h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.team-member h4 {
    font-family: 'DM Mono', monospace;
    font-size: 0.58rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.team-member p {
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--muted);
}

/* Investors */
.investors-section {
    padding: 80px 0;
    background-color: var(--paper);
}

.investors-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--ink);
}

.investors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 40px;
    align-items: center;
    justify-items: center;
}

.investor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.investor-logo a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.investor-logo img {
    max-width: 180px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* ============================================
   SIGNUP SECTION
============================================ */
.signup-section {
    background-color: var(--cream);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 70px 0 80px;
    text-align: center;
}

.signup-inner {
    max-width: 560px;
    margin: 0 auto;
}

.signup-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 2rem;
}

.signup-heading--homepage {
    font-size: 1.2rem;
    white-space: nowrap;
}

.signup-form {
    width: 100%;
}

.signup-input-row {
    display: flex;
    gap: 0;
    width: 100%;
    border: 1px solid var(--rule);
}

.signup-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--ink);
    background: var(--paper);
    border: none;
    outline: none;
    min-width: 0;
}

.signup-input::placeholder {
    color: var(--rule);
}

.signup-input:focus {
    background: #fff;
}

.signup-btn {
    padding: 0.75rem 1.5rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--paper);
    background: var(--ink);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.signup-btn:hover {
    background: var(--accent);
}

.signup-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.signup-message {
    margin-top: 0.9rem;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    min-height: 1.2em;
}

.signup-message--success {
    color: var(--accent);
}

.signup-message--error {
    color: #b94040;
}

@media (max-width: 767px) {
    .signup-section {
        padding: 50px 0 60px;
    }

    .signup-input-row {
        flex-direction: column;
        border: none;
        gap: 8px;
    }

    .signup-input {
        border: 1px solid var(--rule);
        width: 100%;
        text-align: center;
    }

    .signup-btn {
        width: 100%;
        padding: 0.85rem 1.5rem;
    }
}

/* ============================================
   FOOTER
============================================ */
footer {
    background-color: var(--ink);
    color: var(--paper);
    padding: 0 0 30px;
    border-top: 3px double rgba(197, 185, 154, 0.35);
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 28px 0;
    border-top: 1px solid rgba(197, 185, 154, 0.18);
}

.footer-logo-social {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: start;
}

.footer-logo {
    font-size: 20px;
    font-weight: 300;
    letter-spacing: 2px;
}

.footer-logo a {
    display: inline-block;
    line-height: 0;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    cursor: pointer;
}

.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(197, 185, 154, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rule);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 10px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.social-icons a:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--paper);
}

.footer-contact {
    justify-self: center;
}

.footer-contact a {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(197, 185, 154, 0.35);
    border-radius: 999px;
    color: var(--rule);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    line-height: 1;
    transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.footer-contact a:hover {
    color: var(--ink);
    border-color: var(--paper);
    background-color: var(--paper);
}

.footer-nav {
    display: flex;
    gap: 30px;
    justify-self: end;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-nav a.active {
    color: var(--accent);
}

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

.copyright {
    text-align: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(197, 185, 154, 0.12);
    font-family: 'DM Mono', monospace;
    font-size: 0.55rem;
    color: var(--muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

@media (max-width: 640px) {
    .results-home-charts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .stat-strip-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid var(--rule);
        padding: 0 20px 28px;
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .research-cards {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 620px) {
    .stack-section-inner,
    .credentials-inner {
        padding: 0 20px;
    }

    .signup-heading--homepage {
        white-space: normal;
    }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 720px) {
    .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
    .hero h1 {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }

    .principles h1 {
        font-size: 1.9rem !important;
        margin-bottom: 15px;
    }

    .principle h2 {
        font-size: 1.6rem;
    }

    .blog-hero h1 {
        font-size: 2.1rem;
    }
}

@media (max-width: 767px) {
    html {
        font-size: 16px;
    }

    .container {
        padding: 0 20px;
    }

    header .container {
        flex-direction: column;
        gap: 16px;
    }

    nav a {
        margin-left: 20px;
    }

    nav a:first-child {
        margin-left: 0;
    }

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

    .hero h1 {
        font-size: 2rem;
    }

    .hero-research-link {
        margin: 1.5rem 0 14px;
    }

    .about-hero h1 {
        font-size: 2.4rem;
    }

    .principles h1 {
        font-size: 1.6rem !important;
        text-align: center !important;
    }

    .principles--essay {
        padding: 24px 0 70px;
    }

    .principles--essay h1 {
        text-align: left !important;
    }

    .principle {
        padding: 30px 0 60px;
    }

    .principle-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .principle h2 {
        font-size: 1.5rem;
        padding-right: 0;
    }

    .blog-hero h1 {
        font-size: 1.8rem;
    }

    .blog-card h2 {
        font-size: 1.3rem;
    }

    .blog-card-link {
        padding: 24px 12px 28px;
    }

    .blog-post h1 {
        font-size: 1.75rem;
    }

    .blog-post .blog-video-table {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .article-hero {
        margin-top: 1.5rem;
    }

    .article-hero h1 {
        font-size: 2.2rem;
    }

    .results-intro {
        padding: 0;
    }

    .results-comparison-table thead th,
    .results-comparison-table tbody td {
        padding-left: 12px;
        padding-right: 12px;
    }

    .results-stack-box .stack-layer {
        padding: 14px 12px;
        font-size: 0.52rem;
        letter-spacing: 0.1em;
    }

    .pullquote {
        margin: 2rem -1rem;
    }

    .thesis-box {
        margin: 2rem -1rem;
    }

    .thesis-pillars {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .investors-section h2 {
        font-size: 1.6rem;
    }

    .investors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-bottom {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
