:root {
    --ink: #edf4f8;
    --muted: #a8bac7;
    --subtle: #71889a;
    --bg: #0b1826;
    --surface: #102538;
    --surface-strong: #132a3d;
    --blue: #3276a8;
    --orange: #ff6b1a;
    --line: rgba(168, 186, 199, 0.18);
    --line-strong: rgba(168, 186, 199, 0.34);
    --shadow: 0 28px 70px rgba(1, 11, 20, 0.34);
    --sans: "Aptos", "Segoe UI Variable", "Segoe UI", Helvetica, Arial, sans-serif;
    --display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Helvetica, Arial, sans-serif;
    --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
    --shell: min(100% - 2.5rem, 82rem);
    --header-height: 5.5rem;
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
    margin: 0;
    min-width: 20rem;
    background:
        radial-gradient(circle at 82% 7%, rgba(50, 118, 168, 0.14), transparent 28rem),
        var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: .14;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: #07131f; }

.shell { width: var(--shell); margin-inline: auto; }
.skip-link {
    position: fixed;
    top: .75rem;
    left: .75rem;
    z-index: 30;
    padding: .65rem 1rem;
    transform: translateY(-180%);
    background: var(--orange);
    color: #091725;
    font-weight: 700;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.site-header {
    position: relative;
    z-index: 20;
    height: var(--header-height);
    border-bottom: 1px solid var(--line);
    background: rgba(11, 24, 38, .76);
    backdrop-filter: blur(18px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: .9rem; font-weight: 650; letter-spacing: -.015em; }
.brand-mark {
    display: block;
    flex: 0 0 auto;
    width: 2.35rem;
    height: 2.35rem;
    object-fit: contain;
}
.site-nav ul { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 2.8rem); margin: 0; padding: 0; list-style: none; }
.site-nav a { position: relative; color: var(--muted); font-size: .93rem; font-weight: 520; transition: color .22s ease; }
.site-nav a::after { position: absolute; right: 0; bottom: -.5rem; left: 0; height: 2px; content: ""; transform: scaleX(0); transform-origin: right; background: var(--orange); transition: transform .28s var(--ease); }
.site-nav a:hover, .site-nav a.is-active { color: var(--ink); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; }

.hero { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(22rem, .72fr); gap: clamp(3rem, 8vw, 7.5rem); align-items: center; min-height: calc(100dvh - var(--header-height)); padding-block: clamp(5rem, 10vw, 9rem) clamp(6rem, 12vw, 10rem); }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: flex; align-items: center; gap: .72rem; margin: 0 0 1.55rem; color: var(--muted); font-family: var(--mono); font-size: .74rem; font-weight: 650; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow > span { width: 1.8rem; height: 2px; background: var(--orange); }
h1, h2, h3 { margin-top: 0; font-family: var(--display); font-weight: 670; text-wrap: balance; }
.hero h1 { max-width: 12ch; margin-bottom: 1.8rem; font-size: clamp(3.8rem, 7vw, 7rem); line-height: .93; letter-spacing: -.062em; }
.hero-lead { max-width: 37rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 1.65vw, 1.35rem); line-height: 1.55; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; gap: 2rem; margin-top: 2.6rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-width: 10.5rem; padding: .92rem 1.15rem .92rem 1.25rem; font-size: .92rem; font-weight: 700; transition: transform .24s var(--ease), background .24s ease, box-shadow .24s ease; }
.button-primary { background: var(--orange); color: #0a1723; box-shadow: .45rem .45rem 0 rgba(50, 118, 168, .4); }
.button-primary:hover { transform: translate(-2px, -2px); background: #ff7a32; box-shadow: .65rem .65rem 0 rgba(50, 118, 168, .48); }
.button:active { transform: translate(1px, 1px); }
.text-link { display: inline-flex; align-items: center; gap: .8rem; padding-block: .25rem; border-bottom: 1px solid var(--line-strong); color: var(--ink); font-size: .92rem; font-weight: 650; transition: border-color .2s ease, color .2s ease, gap .24s var(--ease); }
.text-link:hover { gap: 1.05rem; border-color: var(--orange); color: var(--orange); }

.hero-visual { position: relative; justify-self: end; width: min(100%, 31rem); }
.portrait-placeholder { position: relative; aspect-ratio: .72; overflow: hidden; background: linear-gradient(145deg, #173752, #0e2234 68%); box-shadow: var(--shadow); }
.portrait-placeholder::before { position: absolute; top: 9%; right: -11%; width: 67%; aspect-ratio: 1; border: 1px solid rgba(237, 244, 248, .22); border-radius: 50%; content: ""; }
.portrait-placeholder::after { position: absolute; right: 0; bottom: 0; width: 46%; height: 7px; content: ""; background: var(--orange); }
.portrait-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.portrait-placeholder.has-portrait::before { z-index: 1; border-color: rgba(237, 244, 248, .3); }
.portrait-placeholder.has-portrait::after { z-index: 3; }
.portrait-grid { position: absolute; inset: 0; opacity: .42; background-image: linear-gradient(rgba(237,244,248,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(237,244,248,.1) 1px, transparent 1px); background-size: 3.2rem 3.2rem; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.portrait-initials { position: absolute; right: -.08em; bottom: .03em; color: rgba(237,244,248,.055); font-family: var(--display); font-size: clamp(10rem, 23vw, 20rem); font-weight: 800; line-height: .72; letter-spacing: -.12em; }
.portrait-note { position: absolute; top: 50%; right: clamp(.8rem, 4vw, 1.4rem); left: auto; z-index: 4; max-width: calc(100% - 2rem); padding: 1rem 1.2rem; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: .72rem; font-weight: 700; line-height: 1.55; text-transform: uppercase; white-space: nowrap; box-shadow: .6rem .6rem 0 var(--orange); transform: translateY(-50%); }
.portrait-note i { display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; border-radius: 50%; background: var(--blue); }
.portrait-caption { position: absolute; right: 1.4rem; bottom: 1.25rem; z-index: 4; padding: .22rem .45rem; background: rgba(11, 24, 38, .78); color: var(--ink); font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; }

.section { padding-block: clamp(6rem, 11vw, 10rem); }
.section-posts { border-block: 1px solid var(--line); background: rgba(16, 37, 56, .48); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-heading h2, .section-heading-sticky h2 { max-width: 13ch; margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.section-link { margin-bottom: .5rem; }
.post-layout { display: grid; grid-template-columns: 1.35fr .85fr; gap: 1px; background: var(--line); }
.post-card { display: flex; flex-direction: column; min-height: 20rem; padding: clamp(1.7rem, 3vw, 2.5rem); background: var(--bg); }
.post-card-featured { grid-row: span 2; min-height: 40rem; padding: clamp(2rem, 4vw, 4rem); background: linear-gradient(145deg, rgba(50,118,168,.28), rgba(16,37,56,.92)); }
.post-meta { display: flex; justify-content: space-between; color: var(--subtle); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; }
.post-card h3 { max-width: 16ch; margin: auto 0 1.2rem; font-size: clamp(1.6rem, 3vw, 3.4rem); line-height: 1.06; letter-spacing: -.04em; }
.post-card:not(.post-card-featured) h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.post-card h3 a:hover { color: var(--orange); }
.post-card p { max-width: 52ch; margin: 0 0 2rem; color: var(--muted); }
.card-link { align-self: flex-start; margin-top: auto; color: var(--orange); font-size: .87rem; font-weight: 700; }
.journal-empty { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; min-height: 18rem; padding: clamp(2rem, 5vw, 4.5rem); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); background: linear-gradient(110deg, rgba(50,118,168,.12), transparent 50%); }
.journal-index { align-self: start; color: var(--orange); font-family: var(--mono); font-size: .72rem; }
.journal-empty h3, .journal-empty h2 { margin-bottom: .8rem; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1; letter-spacing: -.045em; }
.journal-empty p { max-width: 49ch; margin: 0; color: var(--muted); }
.journal-arrow { color: var(--blue); font-size: clamp(3rem, 8vw, 7rem); font-weight: 200; }

.topics-section { position: relative; overflow: clip; }
.topics-section::before { position: absolute; top: 20%; left: -8rem; width: 19rem; height: 19rem; border: 1px solid rgba(50,118,168,.18); border-radius: 50%; content: ""; }
.topics-grid { display: grid; grid-template-columns: minmax(18rem, .82fr) minmax(0, 1.2fr); gap: clamp(4rem, 10vw, 10rem); }
.section-heading-sticky { position: sticky; top: 3rem; align-self: start; }
.section-heading-sticky > p:last-child { max-width: 31rem; margin-top: 2rem; color: var(--muted); }
.topic-list { border-top: 1px solid var(--line); }
.topic-item { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1.2rem; padding-block: 2.25rem 2.8rem; border-bottom: 1px solid var(--line); }
.topic-item > span { padding-top: .35rem; color: var(--orange); font-family: var(--mono); font-size: .7rem; }
.topic-item h3 { margin-bottom: .6rem; font-size: clamp(1.45rem, 2.3vw, 2.15rem); letter-spacing: -.03em; }
.topic-item p { max-width: 50ch; margin: 0; color: var(--muted); }

.projects-section { border-top: 1px solid var(--line); background: var(--surface); }
.project-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 4rem); }
.project-card { background: var(--surface-strong); box-shadow: var(--shadow); }
.project-card-2 { margin-top: 7rem; }
.project-visual { position: relative; min-height: 17rem; overflow: hidden; background: linear-gradient(135deg, rgba(50,118,168,.62), rgba(11,24,38,.62)), repeating-linear-gradient(90deg, transparent 0 3.5rem, rgba(237,244,248,.09) 3.5rem calc(3.5rem + 1px)); }
.project-card-2 .project-visual { background: linear-gradient(145deg, rgba(255,107,26,.48), rgba(11,24,38,.8)), repeating-linear-gradient(0deg, transparent 0 3.5rem, rgba(237,244,248,.09) 3.5rem calc(3.5rem + 1px)); }
.project-number { position: absolute; top: 1.5rem; right: 1.5rem; color: rgba(237,244,248,.7); font-family: var(--mono); font-size: .72rem; }
.project-line { position: absolute; top: 51%; right: 15%; left: 15%; height: 1px; background: rgba(237,244,248,.55); transform: rotate(-16deg); }
.project-line::after { position: absolute; top: -.35rem; right: 0; width: .72rem; height: .72rem; border-radius: 50%; content: ""; background: var(--orange); box-shadow: 0 0 0 .5rem rgba(255,107,26,.15); }
.project-copy { padding: clamp(1.8rem, 4vw, 3.3rem); }
.project-eyebrow { margin: 0 0 1rem; color: var(--orange); font-family: var(--mono); font-size: .7rem; letter-spacing: .09em; text-transform: uppercase; }
.project-copy h3 { max-width: 15ch; margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 3rem); line-height: 1.02; letter-spacing: -.04em; }
.project-copy > p:last-child { max-width: 50ch; margin: 0; color: var(--muted); }

.about-teaser { overflow: hidden; }
.about-grid { display: grid; grid-template-columns: .2fr 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.oversize-quote { margin: -.1em 0 0; color: var(--orange); font-family: Georgia, serif; font-size: clamp(6rem, 12vw, 11rem); line-height: .7; }
.about-grid h2 { max-width: 15ch; margin: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.05em; }
.about-copy { padding-top: 3.75rem; }
.about-copy p { max-width: 39ch; margin: 0 0 2rem; color: var(--muted); font-size: 1.08rem; }
.contact-teaser { padding-block: clamp(5rem, 9vw, 8rem); background: var(--blue); color: var(--ink); }
.contact-grid { display: grid; grid-template-columns: .6fr 2fr auto; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.contact-grid .eyebrow { margin: 0; color: var(--ink); }
.contact-grid .eyebrow span { background: var(--ink); }
.contact-grid h2 { max-width: 18ch; margin: 0; font-size: clamp(2.2rem, 4.5vw, 4.4rem); line-height: 1; letter-spacing: -.05em; }

.page-shell { padding-block: clamp(5rem, 10vw, 9rem); }
.page-hero { max-width: 62rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.page-hero h1 { margin-bottom: 1.5rem; font-size: clamp(3.8rem, 8vw, 7.5rem); line-height: .93; letter-spacing: -.06em; }
.page-hero-wide { max-width: 72rem; }
.page-intro { max-width: 49rem; margin: 0; color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.55; }
.prose { max-width: 65ch; color: #d5e1e8; font-size: 1.08rem; line-height: 1.82; }
.prose > *:first-child { margin-top: 0; }
.prose h2, .prose h3 { margin-top: 3.5rem; margin-bottom: 1rem; color: var(--ink); line-height: 1.15; letter-spacing: -.035em; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); }
.prose h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.prose a { color: var(--orange); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.prose blockquote { margin: 2.5rem 0; padding: .3rem 0 .3rem 1.5rem; border-left: 3px solid var(--orange); color: var(--ink); font-size: 1.25rem; }
.prose code { padding: .15em .35em; background: var(--surface-strong); color: #f9a16f; font-family: var(--mono); font-size: .87em; }
.prose pre { overflow-x: auto; padding: 1.5rem; background: #07121d; border: 1px solid var(--line); }
.prose pre code { padding: 0; background: none; }
.prose hr { margin-block: 4rem; border: 0; border-top: 1px solid var(--line); }
.prose li::marker { color: var(--orange); }

.article-prose .article-graphic {
    margin: 2rem 0;
    padding: clamp(1rem, 2vw, 1.5rem);
    background: var(--ink);
    color: var(--bg);
    border-bottom: 3px solid var(--orange);
    box-shadow: 0 16px 32px rgba(1, 11, 20, .34);
}
.article-graphic > a { display: block; }
.article-graphic img { width: 100%; height: auto; margin: 0; }
.article-prose .article-graphic figcaption { margin-top: 1rem; color: var(--bg); font-size: .85rem; line-height: 1.5; }
.article-prose .article-graphic figcaption a { display: inline; color: var(--blue); }
.article-graphic > a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.agent-page { overflow: clip; }
.agent-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, .82fr);
    gap: clamp(3rem, 7vw, 7rem);
    align-items: center;
    min-height: calc(100dvh - var(--header-height));
    padding-block: clamp(4.5rem, 9vw, 8rem);
}
.agent-hero-copy { position: relative; z-index: 1; }
.agent-hero > * { min-width: 0; }
.agent-back-link { margin-bottom: clamp(3rem, 6vw, 5rem); }
.agent-hero h1 {
    max-width: 11ch;
    margin-bottom: 1.7rem;
    font-size: clamp(3.6rem, 7vw, 7.2rem);
    line-height: .92;
    letter-spacing: -.065em;
}
.agent-lead {
    max-width: 43rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.12rem, 1.7vw, 1.35rem);
    line-height: 1.58;
    text-wrap: pretty;
}
.agent-systems { display: flex; flex-wrap: wrap; gap: .55rem; margin: 2rem 0 2.8rem; }
.agent-systems span {
    padding: .3rem .58rem;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    font-family: var(--mono);
    font-size: .67rem;
    letter-spacing: .025em;
}
.agent-hero-figure { position: relative; margin: 0; }
.agent-hero-figure::before {
    position: absolute;
    top: -2.2rem;
    right: -2.4rem;
    width: 62%;
    aspect-ratio: 1;
    border: 1px solid rgba(50, 118, 168, .34);
    border-radius: 50%;
    content: "";
}
.agent-image-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow); }
.agent-image-frame::after { position: absolute; right: 0; bottom: 0; width: 35%; height: 6px; content: ""; background: var(--orange); }
.agent-image-frame-openclaw { transform: rotate(1.4deg); background: #05070d; }
.agent-image-frame-openclaw img { width: 100%; height: auto; }
.agent-hero-figure figcaption, .agent-proof-figure figcaption {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--subtle);
    font-family: var(--mono);
    font-size: .67rem;
    line-height: 1.55;
}
.agent-hero-figure figcaption span, .agent-proof-figure figcaption span { color: var(--orange); }

.agent-platform-section { padding-block: clamp(6rem, 11vw, 10rem); border-block: 1px solid var(--line); background: rgba(16, 37, 56, .48); }
.agent-platform-layout { display: grid; grid-template-columns: minmax(18rem, .75fr) minmax(0, 1.2fr); gap: clamp(4rem, 10vw, 10rem); }
.agent-section-heading { position: sticky; top: 3rem; align-self: start; }
.agent-section-heading h2, .agent-memory-heading h2, .agent-proof-copy h2, .agent-cta h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -.052em;
}
.agent-section-heading > p:last-child, .agent-memory-heading > p, .agent-proof-copy > p:last-child, .agent-cta-layout > div > p {
    max-width: 42rem;
    margin: 0;
    color: var(--muted);
}
.agent-platform-list { border-top: 1px solid var(--line); }
.agent-platform-row { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; padding-block: 2.5rem 3rem; border-bottom: 1px solid var(--line); }
.agent-index { padding-top: .25rem; color: var(--orange); font-family: var(--mono); font-size: .7rem; }
.agent-tools { margin: 0 0 .45rem; color: var(--subtle); font-family: var(--mono); font-size: .68rem; letter-spacing: .045em; text-transform: uppercase; }
.agent-platform-row h3 { margin-bottom: .7rem; font-size: clamp(1.7rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
.agent-platform-row > div > p:last-child { max-width: 54ch; margin: 0; color: var(--muted); }

.agent-crawl-section { padding-block: clamp(6rem, 11vw, 10rem); border-bottom: 1px solid var(--line); background: var(--surface-strong); }
.agent-crawl-layout { display: grid; gap: clamp(3.5rem, 7vw, 6rem); }
.agent-crawl-heading { max-width: 58rem; }
.agent-crawl-heading h2 {
    max-width: 14ch;
    margin-bottom: 1.5rem;
    font-size: clamp(2.7rem, 5.5vw, 5.3rem);
    line-height: .96;
    letter-spacing: -.055em;
}
.agent-crawl-heading p { max-width: 46rem; margin: 0; color: var(--muted); font-size: 1.08rem; }
.agent-crawl-flow { display: grid; grid-template-columns: 1fr 1.15fr .95fr; gap: 1px; border-block: 1px solid var(--line); background: var(--line); }
.agent-crawl-flow > div { min-width: 0; padding: clamp(1.7rem, 3vw, 2.5rem); background: var(--surface-strong); }
.agent-crawl-flow h3 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -.03em; }
.agent-crawl-flow p { margin: 0; color: var(--muted); }
.agent-crawl-figure { width: min(100%, 62rem); margin: 0 0 0 auto; }
.agent-crawl-preview { position: relative; height: clamp(37rem, 68vw, 58rem); overflow: hidden; border: 1px solid var(--line-strong); background: #d6e49a; box-shadow: var(--shadow); }
.agent-crawl-preview::after { position: absolute; inset: auto 0 0; height: 10rem; content: ""; background: linear-gradient(to bottom, transparent, rgba(16, 42, 61, .94)); pointer-events: none; }
.agent-crawl-preview img { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.agent-crawl-details { border-bottom: 1px solid var(--line-strong); }
.agent-crawl-details summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.15rem 0; color: var(--ink); font-weight: 650; cursor: pointer; list-style: none; }
.agent-crawl-details summary::-webkit-details-marker { display: none; }
.agent-crawl-details summary span { color: var(--orange); font-family: var(--mono); font-size: 1.2rem; transition: transform .24s var(--ease); }
.agent-crawl-details[open] summary span { transform: rotate(45deg); }
.agent-crawl-details > img { width: 100%; height: auto; margin-bottom: 1.25rem; border: 1px solid var(--line); }
.agent-crawl-figure figcaption { max-width: 72ch; margin-top: 1rem; color: var(--subtle); font-family: var(--mono); font-size: .67rem; line-height: 1.6; }

.agent-memory-section { position: relative; padding-block: clamp(6rem, 11vw, 10rem); }
.agent-memory-section::before {
    position: absolute;
    top: 14%;
    left: -9rem;
    width: 21rem;
    height: 21rem;
    border: 1px solid rgba(50, 118, 168, .2);
    border-radius: 50%;
    content: "";
}
.agent-memory-heading { display: grid; grid-template-columns: 1.05fr .75fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; margin-bottom: clamp(4rem, 8vw, 7rem); }
.agent-memory-heading h2 { max-width: 12ch; margin-bottom: 0; }
.agent-memory-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(23rem, .8fr); gap: clamp(3rem, 8vw, 8rem); align-items: start; }
.agent-memory-layers { border-top: 1px solid var(--line-strong); }
.agent-memory-layer { position: relative; padding: 2.2rem 1rem 2.6rem 6.5rem; border-bottom: 1px solid var(--line); }
.agent-layer-label { position: absolute; top: 2.65rem; left: 0; color: var(--orange); font-family: var(--mono); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }
.agent-memory-layer h3 { margin-bottom: .65rem; font-size: clamp(1.65rem, 2.5vw, 2.35rem); line-height: 1.05; letter-spacing: -.035em; }
.agent-memory-layer p { max-width: 57ch; margin: 0; color: var(--muted); }
.agent-knowledge-visuals { display: grid; gap: 1px; background: var(--line); box-shadow: var(--shadow); }
.agent-tool-figure { display: grid; place-items: center; min-height: 18rem; margin: 0; padding: 2rem; background: var(--surface); }
.agent-tool-figure img { object-fit: contain; }
.agent-tool-obsidian { position: relative; justify-items: start; min-height: 24rem; }
.agent-tool-obsidian img { width: min(64%, 15rem); margin-left: 8%; }
.agent-tool-pinecone { min-height: 13rem; }
.agent-tool-pinecone img { width: min(88%, 28rem); filter: invert(1); mix-blend-mode: screen; }
.agent-tool-figure figcaption { justify-self: start; align-self: end; margin-top: 1.4rem; color: var(--subtle); font-family: var(--mono); font-size: .67rem; }

.agent-proof-section { padding-block: clamp(6rem, 11vw, 10rem); border-top: 1px solid var(--line); background: var(--surface); }
.agent-proof-layout { display: grid; grid-template-columns: minmax(18rem, .65fr) minmax(24rem, 1fr); gap: clamp(4rem, 10vw, 10rem); align-items: start; }
.agent-proof-copy { position: sticky; top: 3rem; }
.agent-proof-copy h2 { max-width: 11ch; }
.agent-proof-figure { width: min(100%, 45rem); margin: 0; justify-self: end; }
.agent-image-frame-memory { background: #f4f4f4; transform: rotate(-.7deg); }
.agent-image-frame-memory::after { left: 0; right: auto; background: var(--blue); }
.agent-image-frame-memory img { width: 100%; height: auto; }

.agent-cta { padding-block: clamp(5rem, 9vw, 8rem); background: var(--blue); }
.agent-cta-layout { display: grid; grid-template-columns: .55fr 1.45fr auto; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.agent-cta-label { margin: 0; color: var(--ink); font-size: .92rem; font-weight: 650; }
.agent-cta h2 { max-width: 15ch; margin-bottom: 1rem; }

.article-list { border-top: 1px solid var(--line); }
.article-row { display: grid; grid-template-columns: 8rem 1fr 3rem; gap: clamp(1.5rem, 5vw, 5rem); padding-block: clamp(2.2rem, 5vw, 4.2rem); border-bottom: 1px solid var(--line); }
.article-row-has-image { grid-template-columns: minmax(20rem, .95fr) minmax(0, 1.05fr) 3rem; gap: clamp(1.5rem, 3vw, 3rem); }
.article-date { display: flex; flex-direction: column; justify-content: space-between; color: var(--subtle); font-family: var(--mono); font-size: .7rem; }
.article-row-has-image .article-date { grid-column: 1 / -1; flex-direction: row; }
.article-preview { align-self: start; overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid var(--line); background: #fff; }
.article-preview img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s var(--ease); }
.article-preview:hover img { transform: scale(1.025); }
.article-preview-cover { display: grid; aspect-ratio: 16 / 9; border: 0; background: var(--blue); color: var(--ink); transition: box-shadow .25s var(--ease); }
.article-preview-cover-with-photo { grid-template-columns: 51% 49%; }
.article-cover-copy { display: flex; min-width: 0; flex-direction: column; justify-content: space-between; gap: .75rem; padding: clamp(1.25rem, 2.4vw, 2rem); }
.article-cover-kicker { font-size: clamp(.68rem, .9vw, .82rem); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.article-cover-title { font-size: clamp(2rem, 3.4vw, 3.5rem); font-weight: 750; line-height: .98; letter-spacing: -.045em; overflow-wrap: anywhere; }
.article-cover-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 1.7rem; }
.article-cover-badge { padding: .35rem .5rem; background: var(--orange); color: var(--bg); font-family: var(--mono); font-size: .68rem; }
.article-cover-signature { font-size: clamp(.68rem, .9vw, .82rem); }
.article-cover-photo { position: relative; min-width: 0; overflow: hidden; background: #fff; }
.article-cover-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; }
.article-preview-cover:hover { box-shadow: 0 0 0 2px var(--orange); }
.article-preview-cover:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
@media (max-width: 400px) {
    .article-cover-copy { gap: .5rem; padding: 1rem; }
}
.article-copy { min-width: 0; }
.article-row h2 { max-width: 20ch; margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.05em; }
.article-row-has-image h2 { max-width: 22ch; font-size: clamp(1.8rem, 2.8vw, 2.75rem); letter-spacing: -.04em; }
.article-row h2 a:hover { color: var(--orange); }
.article-row p { max-width: 58ch; margin: 0; color: var(--muted); }
.article-arrow { align-self: center; color: var(--orange); font-size: 1.8rem; transition: transform .24s var(--ease); }
.article-arrow:hover { transform: translate(.3rem, -.3rem); }
.tag-list { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tag-list li { padding: .22rem .5rem; border: 1px solid var(--line-strong); color: var(--subtle); font-family: var(--mono); font-size: .65rem; }
.journal-empty-page { min-height: 23rem; }

.article-shell { padding-block: clamp(4rem, 9vw, 8rem); }
.back-link { display: inline-block; margin-bottom: clamp(4rem, 8vw, 7rem); color: var(--muted); font-size: .88rem; }
.back-link:hover { color: var(--orange); }
.article-header { max-width: 65rem; margin-bottom: clamp(4rem, 8vw, 7rem); }
.article-kicker { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; color: var(--muted); font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.article-header h1 { margin-bottom: 0; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .95; letter-spacing: -.06em; }
.article-summary { max-width: 46rem; margin: .85rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.6vw, 1.35rem); font-style: italic; font-weight: 400; line-height: 1.5; letter-spacing: .005em; text-wrap: pretty; }
.article-prose { margin-left: clamp(0rem, 12vw, 11rem); }
.article-outro {
    position: relative;
    margin-top: clamp(4rem, 8vw, 6rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--line-strong);
    background: var(--surface);
    color: var(--ink);
}
.article-outro::before { position: absolute; top: -1px; right: -1px; left: -1px; height: 4px; content: ""; background: var(--orange); }
.prose .article-outro-label { margin: 0 0 .65rem; color: var(--orange); font-family: var(--mono); font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.prose .article-outro h2 { max-width: 15ch; margin: 0 0 2rem; font-size: clamp(1.8rem, 3vw, 2.55rem); }
.article-outro-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.article-outro-card { min-width: 0; padding: 1.4rem 1.2rem 1.4rem 0; }
.article-outro-card + .article-outro-card { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.prose .article-outro-card h3 { margin: 0 0 .85rem; color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.article-outro-list { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.article-outro-list li { position: relative; padding-left: .8rem; color: var(--ink); font-size: .9rem; line-height: 1.45; }
.article-outro-list li::before { position: absolute; top: .62em; left: 0; width: .28rem; height: .28rem; border-radius: 50%; content: ""; background: var(--orange); }
.prose .article-outro-contact { margin: 1rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
.article-outro-contact .protected-email { display: inline-block; margin-top: .55rem; color: var(--ink); }
.article-outro-tools { margin-top: 1.75rem; padding: 1.2rem; background: #0a1a29; }
.prose .article-outro-tools-label { margin: 0 0 1rem; color: var(--subtle); font-family: var(--mono); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.article-outro-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.prose .article-outro-tool { display: grid; gap: .6rem; place-items: center; min-width: 0; padding: .85rem .5rem; border: 1px solid transparent; color: var(--ink); text-align: center; text-decoration: none; transition: border-color .2s ease, background .2s ease, transform .2s var(--ease); }
.prose .article-outro-tool:hover { border-color: var(--line-strong); background: rgba(50, 118, 168, .12); color: var(--ink); transform: translateY(-2px); }
.article-outro-tool img { width: 2.15rem; height: 2.15rem; object-fit: contain; }
.article-outro-tool span { overflow-wrap: anywhere; font-family: var(--mono); font-size: .66rem; line-height: 1.3; }
.prose .article-outro-next { margin: 1.5rem 0 0; color: var(--muted); font-size: .82rem; }
.article-outro-next strong { color: var(--ink); font-family: var(--mono); font-size: .68rem; letter-spacing: .07em; text-transform: uppercase; }
.article-outro-tools-grid--chain { gap: 2.4rem; }
.article-outro-tools-grid--chain .article-outro-tool { position: relative; }
.article-outro-tools-grid--chain .article-outro-tool:not(:last-child)::after { position: absolute; top: 50%; right: -1.75rem; content: "→"; color: var(--orange); font-family: var(--mono); font-size: 1.1rem; line-height: 1; transform: translateY(-50%); pointer-events: none; }

.video-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0; }
.prose .video-card { display: grid; align-content: start; min-width: 0; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: border-color .2s ease, transform .24s var(--ease); }
.prose .video-card:hover { border-color: var(--line-strong); color: var(--ink); transform: translateY(-2px); }
.video-card-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.video-card-thumb img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.video-card-thumb::after { position: absolute; right: .75rem; bottom: .75rem; padding: .3rem .55rem; border-left: 3px solid var(--orange); content: "▶ YouTube"; background: rgba(11, 24, 38, .86); color: var(--ink); font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; }
.video-card-body { display: grid; gap: .35rem; padding: .9rem 1rem 1.1rem; }
.video-card-source { color: var(--orange); font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; }
.video-card-title { font-size: .95rem; font-weight: 650; line-height: 1.35; }

.error-page { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: center; min-height: calc(100dvh - var(--header-height)); padding-block: 5rem; }
.error-code { margin: 0; color: rgba(50,118,168,.26); font-family: var(--display); font-size: clamp(9rem, 25vw, 23rem); font-weight: 800; line-height: .7; letter-spacing: -.1em; }
.error-page h1 { margin-bottom: 1rem; font-size: clamp(3rem, 6vw, 5.5rem); line-height: .95; letter-spacing: -.055em; }
.error-page > div > p:not(.eyebrow) { margin-bottom: 2rem; color: var(--muted); }

.site-footer { padding-block: 4rem 3rem; border-top: 1px solid var(--line); background: #08131f; }
.footer-grid { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.brand-footer { margin-bottom: 1.5rem; }
.footer-grid > div:first-child > p { max-width: 33rem; margin: 0; color: var(--muted); }
.footer-meta { color: var(--subtle); font-family: var(--mono); font-size: .67rem; text-align: right; }
.footer-meta p { margin: 0 0 .5rem; }
.footer-email { color: var(--ink); font-family: var(--sans); font-size: .86rem; font-weight: 600; }
.footer-email:hover { color: var(--orange); }
.protected-email-fallback { white-space: nowrap; }
.protected-email-link,
.protected-email-reveal {
    appearance: none;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    letter-spacing: inherit;
    text-decoration: underline;
    text-decoration-thickness: .08em;
    text-underline-offset: .14em;
}
.protected-email-reveal {
    padding: .36rem .68rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    line-height: 1.2;
    text-decoration: none;
}
.protected-email-reveal:hover { color: var(--orange); }
.protected-email-link:focus-visible,
.protected-email-reveal:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 4px;
}
.protected-email-glyph::before { content: attr(data-glyph); }
.footer-links { display: flex; justify-content: flex-end; gap: 1rem; }
.footer-links a:hover { color: var(--orange); }

[data-reveal] { opacity: 0; transform: translateY(1.4rem); transition: opacity .75s var(--ease), transform .75s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 58rem) {
    :root { --shell: min(100% - 2rem, 82rem); --header-height: 4.75rem; }
    .nav-toggle { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; cursor: pointer; }
    .nav-toggle-label { font-size: .82rem; }
    .nav-toggle-lines { display: grid; gap: 5px; width: 1.35rem; }
    .nav-toggle-lines i { display: block; height: 1px; background: currentColor; transition: transform .25s ease; }
    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:first-child { transform: translateY(3px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] .nav-toggle-lines i:last-child { transform: translateY(-3px) rotate(-45deg); }
    .site-nav { position: absolute; top: 100%; right: 0; left: 0; visibility: hidden; padding: 1.5rem 1rem 2rem; opacity: 0; background: rgba(8,19,31,.98); transform: translateY(-.5rem); transition: opacity .22s ease, transform .22s ease, visibility .22s; }
    .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
    .site-nav ul { align-items: stretch; flex-direction: column; gap: 0; }
    .site-nav a { display: block; padding: .85rem .3rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .site-nav a::after { display: none; }
    body.nav-open { overflow: hidden; }
    .hero { grid-template-columns: 1fr; gap: 4rem; min-height: auto; padding-block: 5rem 7rem; }
    .hero-copy { max-width: 48rem; }
    .hero-visual { justify-self: center; width: min(86%, 29rem); }
    .topics-grid, .about-grid { grid-template-columns: 1fr; }
    .section-heading-sticky { position: static; }
    .section-heading-sticky h2 { max-width: 16ch; }
    .project-grid { gap: 2rem; }
    .project-card-2 { margin-top: 4rem; }
    .oversize-quote { display: none; }
    .about-copy { padding-top: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-grid .button { justify-self: start; }
    .article-prose { margin-left: 0; }
    .article-outro-grid { grid-template-columns: 1fr; }
    .article-outro-card { padding: 1.2rem 0; }
    .article-outro-card + .article-outro-card { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .agent-hero { grid-template-columns: 1fr; min-height: auto; }
    .agent-hero-copy { max-width: 48rem; }
    .agent-hero-figure { width: min(88%, 34rem); justify-self: center; }
    .agent-platform-layout, .agent-memory-layout, .agent-proof-layout { grid-template-columns: 1fr; }
    .agent-section-heading, .agent-proof-copy { position: static; }
    .agent-memory-heading { grid-template-columns: 1fr; }
    .agent-knowledge-visuals { grid-template-columns: 1fr 1fr; }
    .agent-crawl-flow { grid-template-columns: 1fr; }
    .agent-tool-obsidian, .agent-tool-pinecone { min-height: 17rem; }
    .agent-cta-layout { grid-template-columns: 1fr; }
    .agent-cta-layout .button { justify-self: start; }
    .article-row-has-image { grid-template-columns: minmax(15rem, .9fr) minmax(0, 1.1fr) 2rem; gap: 1.5rem; }
    .article-row-has-image .article-date { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 42rem) {
    .brand-name { display: none; }
    .hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.5rem; }
    .section { padding-block: 5.5rem; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .post-layout, .project-grid { grid-template-columns: 1fr; }
    .video-cards { grid-template-columns: 1fr; }
    .article-outro-tools-grid--chain { gap: 1.5rem; }
    .article-outro-tools-grid--chain .article-outro-tool:not(:last-child)::after { right: -1.2rem; }
    .post-card-featured { grid-row: auto; min-height: 29rem; }
    .project-card-2 { margin-top: 0; }
    .project-visual { min-height: 13rem; }
    .journal-empty { grid-template-columns: auto 1fr; }
    .journal-arrow { display: none; }
    .topic-item { grid-template-columns: 2.4rem 1fr; }
    .article-row { grid-template-columns: 1fr auto; gap: 1.5rem; }
    .article-date { grid-column: 1 / -1; flex-direction: row; }
    .article-preview { grid-column: 1 / -1; width: 100%; }
    .article-copy { grid-column: 1; }
    .article-arrow { grid-column: 2; }
    .error-page { grid-template-columns: 1fr; }
    .error-code { font-size: 9rem; }
    .footer-grid { align-items: flex-start; flex-direction: column; }
    .footer-meta { text-align: left; }
    .footer-links { justify-content: flex-start; }
    .agent-hero h1 { font-size: clamp(3.25rem, 15vw, 5rem); }
    .agent-hero h1 { overflow-wrap: anywhere; hyphens: auto; }
    .agent-hero-figure { width: 100%; }
    .agent-memory-layer { padding-left: 0; }
    .agent-layer-label { position: static; display: block; margin-bottom: .8rem; }
    .agent-knowledge-visuals { grid-template-columns: 1fr; }
    .agent-tool-figure { min-height: 14rem; }
    .agent-tool-obsidian { min-height: 19rem; }
    .agent-proof-figure { width: 100%; }
    .agent-crawl-preview { height: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

@media print {
    .site-header, .site-footer, .hero-actions, .contact-teaser { display: none; }
    body { background: #fff; color: #111; }
    .prose, .page-intro, .article-summary { color: #222; }
    .article-prose .article-graphic { box-shadow: none; }
}
