@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/space-grotesk-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-var-latin.woff2") format("woff2"); }

:root {
  --bg: #20242c; --bg-deep: #1a1d24; --surface: #272c35; --surface-2: #2d333d;
  --text: #eceef0; --soft: #c2c7cf; --muted: #9aa1ac; --faint: #8d94a0;
  --hairline: #343a45; --hairline-strong: #484f5c;
  --accent: #9cb6d8; --accent-soft: rgba(156, 182, 216, 0.12); --accent-line: rgba(156, 182, 216, 0.4);
  --d1: #7db3ff; --d2: #f2a65a; --d3: #62d2a2;
  --font-display: "Space Grotesk", "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Helvetica Neue", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --container: 74rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, p, ul, ol, figure, pre { margin: 0; }
a { color: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container { padding-inline: 3rem; } }
.icon { width: 0.95em; height: 0.95em; flex: none; display: inline-block; vertical-align: -0.1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--bg); font-size: 0.85rem; font-weight: 500; padding: 0.6rem 1rem; transition: top 0.2s var(--ease); }
.skip-link:focus-visible { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.eyebrow { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2rem; }
.section-heading { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 1.6rem; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.95rem; font-weight: 500; text-decoration: none; padding-bottom: 2px; background-image: linear-gradient(currentColor, currentColor); background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color 0.3s var(--ease), background-size 0.3s var(--ease); }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover { color: var(--accent); background-size: 0% 1px; }
.link-arrow:hover .icon { transform: translateX(3px); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; color: var(--soft); background: var(--bg-deep); border: 1px solid var(--hairline); padding: 0.18rem 0.55rem; }
.badge { display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 0.25rem 0.7rem; }

/* top banner: MetaFake live demo */
.demo-banner { background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); }
.demo-banner-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; padding-block: 0.6rem; }
.demo-banner-text { margin: 0; color: var(--soft); font-size: 0.9rem; flex: 1 1 18rem; }
.demo-banner-text strong { color: var(--text); font-weight: 600; }
.demo-banner-text code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text); }
.demo-banner .link-arrow { font-size: 0.9rem; white-space: nowrap; }

.site-header { border-bottom: 1px solid var(--hairline); background: rgba(32, 36, 44, 0.88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 50; }
.site-nav { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; row-gap: 0.45rem; column-gap: 2rem; padding-block: 1.1rem; }
.site-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.7rem; list-style: none; padding: 0; margin: 0; }
.nav-links a { position: relative; color: var(--soft); text-decoration: none; font-size: 0.9rem; transition: color 0.3s var(--ease); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
@media (max-width: 720px) { .nav-links { gap: 0.35rem 1.2rem; } .nav-links a { font-size: 0.85rem; } }

/* hero */
.hero { position: relative; padding-block: clamp(3.5rem, 10vh, 6.5rem) clamp(3rem, 7vh, 4.5rem); border-bottom: 1px solid var(--hairline); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px); background-size: 44px 44px; opacity: 0.22; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 70% 0%, #000 0%, transparent 75%); pointer-events: none; }
.hero > .container { position: relative; }
.social { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; color: var(--soft); border: 1px solid var(--hairline-strong); background: var(--surface); transition: color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease); }
.social a:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-2px); }
.addresses { display: flex; flex-wrap: wrap; gap: 0.35rem 1.6rem; list-style: none; padding: 0; margin: 1.2rem 0 0; font-family: var(--font-mono); font-size: 0.8rem; }
.addresses a { color: var(--muted); text-decoration: none; transition: color 0.25s var(--ease); overflow-wrap: anywhere; }
.addresses a:hover { color: var(--accent); }
.social svg { width: 1.25rem; height: 1.25rem; }
.hero-name { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.5rem, 6.4vw, 4.8rem); line-height: 1.06; letter-spacing: -0.028em; max-width: 17ch; margin-bottom: 1.5rem; }
.hero-name em { font-style: normal; color: var(--accent); }
.hero-lede { font-size: clamp(1.05rem, 1.7vw, 1.22rem); line-height: 1.6; color: var(--soft); max-width: 44rem; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem 2.2rem; list-style: none; padding: 0; margin: 0 0 3rem; }

.panel { background: var(--surface); border: 1px solid var(--hairline); }
.panel-head { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; align-items: flex-end; justify-content: space-between; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--hairline); }
.panel-title { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; letter-spacing: -0.01em; }
.panel-sub { font-size: 0.82rem; color: var(--muted); margin-top: 0.15rem; max-width: 40rem; }
.seg { display: inline-flex; border: 1px solid var(--hairline-strong); }
.seg button { font: inherit; font-family: var(--font-mono); font-size: 0.74rem; color: var(--soft); background: transparent; border: 0; padding: 0.4rem 0.9rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button + button { border-left: 1px solid var(--hairline-strong); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--bg); }
.seg button:not([aria-pressed="true"]):hover { background: var(--accent-soft); }
.chart-wrap { position: relative; padding: 0.6rem 0.8rem 0.2rem; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-mono); font-size: 13px; fill: var(--muted); }
.chart .grid { stroke: var(--hairline); stroke-width: 1; }
.chart .axis { stroke: var(--hairline-strong); stroke-width: 1; }
.chart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .mark { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 2 4; }
.chart .endlabel { font-size: 12px; font-weight: 600; }
.tip { position: absolute; pointer-events: none; z-index: 5; min-width: 11rem; background: var(--bg-deep); border: 1px solid var(--hairline-strong); padding: 0.55rem 0.75rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--soft); opacity: 0; transition: opacity 0.12s; box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.7); }
.tip.on { opacity: 1; }
.tip b { color: var(--text); font-weight: 600; }
.tip .row { display: flex; justify-content: space-between; gap: 1rem; }
.tip .sw { display: inline-block; width: 8px; height: 8px; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; list-style: none; padding: 0.4rem 1.4rem 1.1rem; margin: 0; font-size: 0.8rem; color: var(--soft); }
.legend button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.legend button[aria-pressed="false"] { opacity: 0.4; text-decoration: line-through; }
.legend .sw { width: 14px; height: 3px; display: inline-block; }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 1.4rem; }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: var(--bg); padding: 1.1rem 1.2rem 1.2rem; }
.stat-num { font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); }
.stat-num small { font-size: 0.5em; color: var(--muted); font-weight: 400; margin-left: 0.2em; letter-spacing: 0; }
.stat-label { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.45; }

/* sections */
.section { padding-block: clamp(3.5rem, 8vh, 5.5rem); border-bottom: 1px solid var(--hairline); }
.section:last-of-type { border-bottom: 0; }
.editorial { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .editorial { grid-template-columns: 4.5rem minmax(0, 1fr); gap: 2.5rem; } }
.section-index { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; color: var(--faint); border-top: 1px solid var(--hairline-strong); padding-top: 0.55rem; width: fit-content; margin-top: 0.5rem; }
.section-body { min-width: 0; }
.section-intro { color: var(--muted); max-width: 40rem; margin: -0.6rem 0 2rem; }

.flagship-stack { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .flagship-stack { grid-template-columns: 1fr 1fr; } .flagship--wide { grid-column: 1 / -1; } }
.flagship { background: var(--surface); border: 1px solid var(--hairline); padding: clamp(1.4rem, 3.5vw, 2.3rem); display: flex; flex-direction: column; gap: 0.95rem; transition: border-color 0.35s var(--ease), transform 0.35s var(--ease); }
.flagship:hover { border-color: var(--hairline-strong); transform: translateY(-2px); }
.flagship-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.flagship-category { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.flagship-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -0.02em; line-height: 1.15; }
.flagship-title a { color: var(--text); text-decoration: none; transition: color 0.3s var(--ease); }
.flagship-title a:hover { color: var(--accent); }
.flagship-tagline { color: var(--muted); max-width: 52rem; }
.flagship-highlights { list-style: none; padding: 0; display: grid; gap: 0.45rem; }
@media (min-width: 760px) { .flagship--wide .flagship-highlights { grid-template-columns: 1fr 1fr; column-gap: 2.5rem; } }
.flagship-highlights li { color: var(--soft); font-size: 0.92rem; padding-left: 1.1rem; position: relative; }
.flagship-highlights li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 0.45rem; height: 1px; background: var(--accent); }
.flagship-highlights b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-size: 0.88em; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.flagship-links { display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; list-style: none; padding: 0.7rem 0 0; margin: auto 0 0; }

/* notes */
.notes { display: grid; gap: 1.2rem; margin-top: 2.2rem; }
@media (min-width: 1000px) { .notes { grid-template-columns: repeat(3, 1fr); } }
.note { background: var(--surface); border: 1px solid var(--hairline); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.9rem; min-width: 0; }
.note h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -0.01em; }
.note p { color: var(--muted); font-size: 0.92rem; }
.note pre, .post pre { background: var(--bg-deep); border: 1px solid var(--hairline); padding: 0.9rem 1rem; overflow-x: auto; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.6; color: var(--soft); }
.note pre .c, .post pre .c { color: var(--faint); }
.bars { display: grid; gap: 0.95rem; margin-top: 0.2rem; }
.bar-label { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8rem; color: var(--soft); margin-bottom: 0.35rem; }
.bar-label span:last-child { font-family: var(--font-mono); color: var(--text); }
.bar { height: 8px; background: var(--bg-deep); border: 1px solid var(--hairline); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: var(--w); transform-origin: left; }
.js .bar i { transform: scaleX(0); transition: transform 1.1s var(--ease) 0.15s; }
.js .is-visible .bar i, .js .bar.is-visible i { transform: scaleX(1); }
.checks { list-style: none; padding: 0; display: grid; gap: 0.55rem; font-size: 0.88rem; color: var(--soft); }
.checks li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--hairline); padding-bottom: 0.5rem; }
.checks li span:last-child { font-family: var(--font-mono); color: var(--text); white-space: nowrap; }

/* lists */
.work-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hairline); }
.work-row { border-bottom: 1px solid var(--hairline); }
.work-link { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 0.4rem 1.5rem; padding: 1.15rem 0; text-decoration: none; transition: padding-left 0.3s var(--ease); }
@media (min-width: 860px) { .work-link { grid-template-columns: minmax(13rem, 1fr) 2fr 1.2rem; } }
.work-link:hover { padding-left: 0.5rem; }
.work-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.01em; color: var(--text); transition: color 0.3s var(--ease); }
.work-link:hover .work-name { color: var(--accent); }
.work-tagline { color: var(--muted); font-size: 0.9rem; }
.work-date { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); display: block; margin-bottom: 0.2rem; }
@media (max-width: 859px) { .work-tagline { grid-column: 1 / -1; order: 3; } }
.work-arrow { color: var(--faint); justify-self: end; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.work-link:hover .work-arrow { color: var(--accent); transform: translate(2px, -2px); }

.about { display: grid; gap: 2rem; align-items: start; }
.about-text { display: grid; gap: 1rem; color: var(--soft); max-width: 40rem; }
.contact-list { list-style: none; padding: 0; margin: 1.6rem 0 0; border-top: 1px solid var(--hairline); max-width: 40rem; }
.contact-list li { border-bottom: 1px solid var(--hairline); }
.contact-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.95rem 0; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: 1.05rem; font-weight: 500; letter-spacing: -0.01em; transition: color 0.3s var(--ease), padding-left 0.3s var(--ease); overflow-wrap: anywhere; }
.contact-link .icon { color: var(--faint); transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.contact-link:hover { color: var(--accent); padding-left: 0.5rem; }
.contact-link:hover .icon { color: var(--accent); transform: translate(2px, -2px); }

.site-footer { padding-block: 3rem 2.6rem; background: var(--bg-deep); border-top: 1px solid var(--hairline); }
.footer-grid { display: grid; gap: 1.8rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr auto; align-items: start; } }
.footer-name { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.footer-title { color: var(--muted); font-size: 0.85rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--soft); text-decoration: none; font-size: 0.9rem; background-image: linear-gradient(currentColor, currentColor); background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%; transition: color 0.3s var(--ease), background-size 0.35s var(--ease); padding-bottom: 2px; }
.footer-links a:hover { color: var(--accent); background-size: 100% 1px; }

/* blog */
.blog-head { padding-block: clamp(3rem, 8vh, 5rem) 2.2rem; border-bottom: 1px solid var(--hairline); }
.blog-head .hero-name { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 22ch; margin-bottom: 1rem; }
.post-list { list-style: none; padding: 0; margin: 0; }
.post-item { border-bottom: 1px solid var(--hairline); }
.post-item a { display: grid; gap: 0.5rem; padding: 1.8rem 0; text-decoration: none; transition: padding-left 0.3s var(--ease); }
.post-item a:hover { padding-left: 0.6rem; }
.post-item h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.2; transition: color 0.3s var(--ease); }
.post-item a:hover h2 { color: var(--accent); }
.post-item p { color: var(--muted); max-width: 46rem; }
.post-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; }
.post-wrap { padding-block: clamp(2.6rem, 6vh, 4rem) 4.5rem; }
.post-header { max-width: 46rem; margin-inline: auto; margin-bottom: 2.4rem; }
.post-header h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.9rem, 4.2vw, 2.9rem); line-height: 1.12; letter-spacing: -0.025em; margin: 0.9rem 0 1.1rem; }
.post-header .lede { color: var(--soft); font-size: 1.1rem; }
.back { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent); }
.post { max-width: 46rem; margin-inline: auto; color: var(--soft); font-size: 1.02rem; line-height: 1.75; }
.post > * + * { margin-top: 1.15rem; }
.post h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.65rem; letter-spacing: -0.015em; line-height: 1.2; color: var(--text); margin-top: 2.8rem; }
.post h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; color: var(--text); margin-top: 2rem; }
.post strong { color: var(--text); font-weight: 600; }
.post a { color: var(--accent); text-underline-offset: 3px; text-decoration-color: var(--accent-line); }
.post a:hover { text-decoration-color: var(--accent); }
.post ul, .post ol { padding-left: 1.3rem; display: grid; gap: 0.55rem; }
.post li::marker { color: var(--faint); }
.post code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-deep); border: 1px solid var(--hairline); padding: 0.08em 0.38em; color: var(--text); }
.post pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.post img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--hairline); padding: 0.4rem; margin-top: 0.4rem; }
.post .table-scroll { overflow-x: auto; border: 1px solid var(--hairline); }
.post table { border-collapse: collapse; width: 100%; font-size: 0.86rem; min-width: 34rem; }
.post th, .post td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.post th { color: var(--text); font-weight: 600; background: var(--surface); white-space: nowrap; }
.post td { font-variant-numeric: tabular-nums; }
.post tr:last-child td { border-bottom: 0; }
.post-foot { max-width: 46rem; margin: 3.5rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--hairline); display: flex; flex-wrap: wrap; gap: 0.8rem 2rem; justify-content: space-between; }

.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.meta-right { display: inline-flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.stars { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--soft); vertical-align: middle; }
.stars[hidden] { display: none; }
.stars .icon { color: #e3b341; width: 0.9em; height: 0.9em; }
.work-name .stars { margin-left: 0.7rem; font-weight: 400; }
.stars .gh { color: var(--soft); width: 1.05em; height: 1.05em; margin-right: 0.1rem; }

.hero-layout { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 560px) { .hero-layout { grid-template-columns: minmax(0, 1fr) clamp(9rem, 22vw, 19rem); gap: clamp(1.5rem, 4vw, 4rem); } }
.hero-copy { min-width: 0; }
.portrait-card { width: 100%; max-width: 15rem; padding: 0.6rem; background: var(--surface); border: 1px solid var(--hairline); transition: border-color 0.4s var(--ease); }
@media (min-width: 560px) { .portrait-card { max-width: none; } }
.portrait-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; filter: saturate(0.7) brightness(0.97); transition: filter 0.5s var(--ease); }
.portrait-card:hover { border-color: var(--hairline-strong); }
.portrait-card:hover img { filter: none; }

.callout { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--text); }
.callout p + p { margin-top: 0.3rem; }
.callout-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }

/* ---- Project landing pages ---- */
.lp-hero { position: relative; padding-block: clamp(4rem, 11vh, 7rem) clamp(3rem, 7vh, 5rem); border-bottom: 1px solid var(--hairline); background: radial-gradient(120% 90% at 50% 0%, rgba(156,182,216,0.10) 0%, rgba(156,182,216,0) 62%); }
.lp-hero-inner { width: 100%; max-width: 54rem; margin-inline: auto; padding-inline: 1.5rem; text-align: center; }
.lp-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.2rem; }
.lp-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 4.6rem); line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1.3rem; }
.lp-lede { color: var(--soft); font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.65; max-width: 38rem; margin: 0 auto 2.4rem; }

.lp-download { display: inline-flex; align-items: stretch; position: relative; }
.lp-btn-main { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--text); color: var(--bg-deep); font-weight: 600; font-size: 1.02rem; padding: 0.95rem 1.6rem; border-radius: 999px 0 0 999px; text-decoration: none; transition: background 0.2s var(--ease); }
.lp-btn-main:hover { background: #fff; }
.lp-icon { width: 1.1em; height: 1.1em; }
.lp-btn-meta { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400; opacity: 0.55; }
.lp-more { position: relative; }
.lp-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center; width: 3.2rem; height: 100%; background: var(--text); color: var(--bg-deep); border-left: 1px solid rgba(32,36,44,0.18); border-radius: 0 999px 999px 0; transition: background 0.2s var(--ease); }
.lp-more summary::-webkit-details-marker { display: none; }
.lp-more summary:hover { background: #fff; }
.lp-more summary svg { width: 1.1rem; height: 1.1rem; transition: transform 0.2s var(--ease); }
.lp-more[open] summary svg { transform: rotate(180deg); }
.lp-menu { position: absolute; top: calc(100% + 0.6rem); right: 0; z-index: 20; min-width: 22rem; background: var(--surface); border: 1px solid var(--hairline-strong); box-shadow: 0 18px 40px rgba(0,0,0,0.35); padding: 0.5rem; text-align: left; }
.lp-menu-head { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--hairline); margin-bottom: 0.3rem; }
.lp-menu a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0.7rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--soft); text-decoration: none; }
.lp-menu a:hover { background: var(--accent-soft); color: var(--text); }
.lp-menu-size { color: var(--faint); flex: none; }
.lp-menu-all { border-top: 1px solid var(--hairline); margin-top: 0.3rem; padding-top: 0.6rem !important; color: var(--accent) !important; }
.lp-req { margin-top: 1.4rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }

.lp-section { padding-block: clamp(3rem, 7vh, 4.5rem); border-bottom: 1px solid var(--hairline); }
.lp-wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .lp-wrap { padding-inline: 3rem; } }
.lp-h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; margin-bottom: 1.6rem; }

.lp-install { display: flex; flex-direction: column; gap: 1.1rem; }
.lp-cmd-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.45rem; }
.lp-cmd-row { display: flex; align-items: stretch; gap: 0.5rem; background: var(--bg-deep); border: 1px solid var(--hairline); }
.lp-cmd-row code { flex: 1; min-width: 0; padding: 0.85rem 1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--soft); overflow-x: auto; white-space: nowrap; }
.lp-copy { flex: none; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: transparent; border: 0; border-left: 1px solid var(--hairline); padding-inline: 1rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background 0.2s var(--ease); }
.lp-copy:hover { background: var(--accent-soft); }

.lp-points { list-style: none; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 700px) { .lp-points { grid-template-columns: 1fr 1fr; gap: 1.4rem 2rem; } }
.lp-points li { border-left: 2px solid var(--accent-line); padding-left: 1rem; }
.lp-points b { display: block; color: var(--text); font-weight: 600; margin-bottom: 0.15rem; }
.lp-points span { color: var(--muted); font-size: 0.94rem; }

.lp-releases { display: flex; flex-direction: column; gap: 1.4rem; }
.lp-release { background: var(--surface); border: 1px solid var(--hairline); padding: 1.4rem 1.6rem; }
.lp-release-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.4rem 1.2rem; margin-bottom: 0.8rem; }
.lp-release-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; }
.lp-release-meta { display: flex; gap: 1rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); }
.lp-release-meta a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); }
.lp-release-meta a:hover { color: var(--accent); border-color: var(--accent); }
.lp-release-notes { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; }
.lp-release-notes p { margin-bottom: 0.5rem; }
.lp-release-notes ul { margin: 0.4rem 0 0.6rem; padding-left: 1.1rem; }
.lp-release-notes code { font-family: var(--font-mono); font-size: 0.85em; background: var(--bg-deep); padding: 0.1rem 0.35rem; }
.lp-files { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; border-top: 1px solid var(--hairline); padding-top: 0.8rem; }
.lp-files li { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--font-mono); font-size: 0.76rem; }
.lp-files a { color: var(--soft); text-decoration: none; border-bottom: 1px solid var(--hairline-strong); overflow-wrap: anywhere; }
.lp-files a:hover { color: var(--accent); border-color: var(--accent); }
.lp-files span { color: var(--faint); flex: none; }
.lp-release-notes pre { overflow-x: auto; background: var(--bg-deep); border: 1px solid var(--hairline); padding: 0.8rem 1rem; margin: 0.6rem 0; }
.lp-release-notes pre code { background: none; padding: 0; font-size: 0.78rem; line-height: 1.55; }
.lp-release-notes table { width: 100%; border-collapse: collapse; margin: 0.7rem 0; font-size: 0.82rem; display: block; overflow-x: auto; }
.lp-release-notes th, .lp-release-notes td { border-bottom: 1px solid var(--hairline); padding: 0.35rem 0.7rem; text-align: left; white-space: nowrap; }
.lp-release-notes th { color: var(--soft); font-weight: 600; }
.lp-release-notes h1, .lp-release-notes h2, .lp-release-notes h3 { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin: 0.9rem 0 0.4rem; color: var(--text); }
.lp-release-notes a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.lp-release-notes strong { color: var(--text); }
.lp-release-notes blockquote { border-left: 2px solid var(--hairline-strong); padding-left: 0.9rem; color: var(--muted); margin: 0.6rem 0; }
.lp-release-notes img { max-width: 100%; height: auto; }
.lp-release-fold summary { cursor: pointer; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; list-style: none; }
.lp-release-fold summary::-webkit-details-marker { display: none; }
.lp-release-fold summary::before { content: "+ "; }
.lp-release-fold[open] summary::before { content: "− "; }

/* Upstream + disclaimer */
.lp-upstream { border: 1px solid var(--hairline); background: var(--surface); padding: 1.2rem 1.4rem; }
.lp-upstream-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.lp-upstream-note { color: var(--soft); font-size: 0.94rem; margin-bottom: 0.7rem; }
.lp-upstream-links { display: flex; flex-wrap: wrap; gap: 1.4rem; font-family: var(--font-mono); font-size: 0.76rem; }
.lp-upstream-links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.lp-upstream-links a:hover { border-color: var(--accent); }
.lp-disclaimer { margin-top: 1rem; font-size: 0.84rem; line-height: 1.6; color: var(--faint); border-left: 2px solid var(--hairline-strong); padding-left: 0.9rem; }

/* Benchmark tables */
.lp-bench + .lp-bench { margin-top: 3rem; }
.lp-bench { display: grid; gap: 1rem; }
@media (min-width: 900px) { .lp-bench { grid-template-columns: 17rem minmax(0, 1fr); gap: 2.5rem; align-items: start; } }
.lp-bench-title { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-bottom: 0.35rem; }
.lp-bench-note { color: var(--muted); font-size: 0.88rem; line-height: 1.6; max-width: 42rem; }
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--hairline); }
.lp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lp-table th, .lp-table td { padding: 0.8rem 1.1rem; text-align: left; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
.lp-table th { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--bg-deep); }
.lp-table td:not(:first-child) { font-family: var(--font-mono); font-size: 0.8rem; color: var(--soft); }
.lp-table tbody tr:last-child td { border-bottom: 0; }
.lp-table tr.is-highlight td { background: var(--accent-soft); color: var(--text); font-weight: 500; }

.lp-install-note { margin-top: 1rem; font-size: 0.86rem; color: var(--muted); }
.lp-all-releases { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--hairline); }

/* FAQ */
.lp-faq { display: flex; flex-direction: column; gap: 0.2rem; }
.lp-faq-item { border-bottom: 1px solid var(--hairline); }
.lp-faq-item summary { cursor: pointer; list-style: none; padding: 1rem 0; font-family: var(--font-display); font-size: 1.02rem; font-weight: 500; display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--accent); font-size: 1.1rem; flex: none; }
.lp-faq-item[open] summary::after { content: "−"; }
.lp-faq-item p { color: var(--muted); font-size: 0.94rem; line-height: 1.65; padding-bottom: 1.1rem; max-width: 46rem; }

/* Install paths — editorial two-column cards */
.lp-alt-install { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }
.lp-alt-install a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.lp-alt-install a:hover { border-color: var(--accent); }

.lp-paths { display: flex; flex-direction: column; gap: 1.8rem; }
.lp-path { display: grid; gap: 1.2rem; background: var(--surface); border: 1px solid var(--hairline); padding: 1.6rem 1.8rem; }
@media (min-width: 900px) {
  .lp-path { grid-template-columns: 16rem minmax(0, 1fr); gap: 1.4rem 3rem; padding: 2rem 2.4rem; }
}
.lp-path-head { align-self: start; }
.lp-path-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.4rem; }
.lp-path-head p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.lp-step { display: grid; grid-template-columns: 1.7rem minmax(0, 1fr); gap: 0 1rem; }
.lp-step::before { content: counter(step); counter-increment: step; font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); padding-top: 0.9rem; }
.lp-cmd-label { grid-column: 2; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.5rem; }

.lp-cmd-row { grid-column: 2; display: flex; align-items: stretch; background: var(--bg-deep); border: 1px solid var(--hairline); }
.lp-cmd-row code { flex: 1; min-width: 0; padding: 0.85rem 1.1rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--soft); white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.lp-copy { flex: none; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: transparent; border: 0; border-left: 1px solid var(--hairline); padding-inline: 1.1rem; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; transition: background 0.2s var(--ease); }
.lp-copy:hover { background: var(--accent-soft); }

.lp-step-explain { grid-column: 2; color: var(--muted); font-size: 0.85rem; line-height: 1.6; margin-top: 0.6rem; }

.lp-path-note { grid-column: 1 / -1; font-size: 0.85rem; line-height: 1.6; color: var(--faint); margin-top: 0.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); }
.lp-path-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font-family: var(--font-mono); font-size: 0.74rem; }
.lp-path-links a { color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent-line); }
.lp-path-links a:hover { border-color: var(--accent); }

/* Split download button: app on the left, CLI on the right */
.lp-split { display: inline-flex; align-items: stretch; }
.lp-split-main { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--text); color: var(--bg-deep); font-weight: 600; font-size: 1.02rem; padding: 0.95rem 1.5rem; border-radius: 999px 0 0 999px; text-decoration: none; transition: background 0.2s var(--ease); }
.lp-split-main:hover { background: #fff; }
.lp-split-cli { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--text); color: var(--bg-deep); border: 0; border-left: 1px solid rgba(32,36,44,0.2); border-radius: 0 999px 999px 0; padding: 0 1.2rem; cursor: pointer; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; transition: background 0.2s var(--ease); }
.lp-split-cli:hover { background: #fff; }
.lp-split-cli svg { width: 1rem; height: 1rem; }
.lp-split-cli.is-copied .lp-split-label { font-size: 0; }
.lp-split-cli.is-copied .lp-split-label::after { content: "copied"; font-size: 0.78rem; }
.lp-curl { margin-top: 1.1rem; display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.lp-curl-hint { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.lp-curl-cmd { font-family: var(--font-mono); font-size: 0.76rem; color: var(--soft); background: var(--bg-deep); border: 1px solid var(--hairline); padding: 0.5rem 0.9rem; cursor: pointer; max-width: 100%; overflow-x: auto; white-space: nowrap; transition: border-color 0.2s var(--ease), color 0.2s var(--ease); }
.lp-curl-cmd:hover { border-color: var(--accent-line); color: var(--text); }
.lp-curl-cmd.is-copied { color: var(--accent); border-color: var(--accent-line); }

/* UI-path steps (menu breadcrumbs instead of terminal commands) */
.lp-ui { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin: 0; }
.lp-ui-sep { color: var(--faint); font-size: 0.8rem; }

/* Path card icons and CTA */
.lp-path-icon { display: inline-flex; width: 2.3rem; height: 2.3rem; align-items: center; justify-content: center; margin-bottom: 0.8rem; color: var(--accent); }
.lp-path-icon svg { width: 100%; height: 100%; }
.lp-path-cta { margin-top: 1.1rem; }
.lp-cta { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--bg-deep); background: var(--accent); padding: 0.55rem 1rem; text-decoration: none; border-radius: 999px; transition: background 0.2s var(--ease); }
.lp-cta:hover { background: #b3c9e6; }
.lp-cta .icon { width: 0.85em; height: 0.85em; }
.lp-link-gh { width: 0.9em; height: 0.9em; margin-right: 0.4rem; vertical-align: -0.08em; color: var(--muted); }
a:hover .lp-link-gh { color: var(--accent); }

/* Readability: brighter reading text on the landing pages */
.lp-lede { color: #d8dce2; }
.lp-bench-note, .lp-path-head p, .lp-step-explain, .lp-faq-item p, .lp-release-notes { color: var(--soft); }
.lp-cmd-row code { color: var(--text); }
.lp-cmd-label, .lp-curl-hint, .lp-req, .lp-menu-head, .lp-release-meta, .lp-menu-size, .lp-files span, .lp-release-when { color: var(--muted); }
.lp-path-note, .lp-disclaimer, .lp-upstream-note { color: var(--muted); }
.lp-install-note, .lp-alt-install { color: var(--soft); }

/* ---- Rounded corners, site-wide ---- */
:root { --r-card: 14px; --r-block: 10px; --r-chip: 6px; }

/* Cards */
.flagship, .panel, .note, .callout, .portrait-card, .stats { border-radius: var(--r-card); }
.lp-path, .lp-release, .lp-upstream, .release-card, .lp-menu { border-radius: var(--r-card); }
.stats { overflow: hidden; }

/* Terminal / code blocks */
.lp-cmd-row, .lp-curl-cmd, .note pre, .post pre, .lp-release-notes pre { border-radius: var(--r-block); }
.lp-cmd-row { overflow: hidden; }
.tip { border-radius: 8px; }

/* Tables */
.lp-table-wrap, .post .table-scroll { border-radius: 12px; overflow-x: auto; overflow-y: hidden; }

/* Chips, tags, inline code */
.tag, .badge, .post code, .lp-release-notes code { border-radius: var(--r-chip); }
.skip-link { border-radius: 8px; }

/* Images and bars */
.post img { border-radius: var(--r-block); }
.portrait-card img { border-radius: 10px; }
.bar { border-radius: 999px; overflow: hidden; }

/* Controls */
.seg { border-radius: 999px; overflow: hidden; }
.seg button:first-child { border-top-left-radius: 999px; border-bottom-left-radius: 999px; }
.seg button:last-child { border-top-right-radius: 999px; border-bottom-right-radius: 999px; }
.social a { border-radius: 50%; }

/* Prominent context / memory-limit note */
.lp-note { background: linear-gradient(180deg, rgba(156, 182, 216, 0.16), rgba(156, 182, 216, 0.05) 60%); border: 1px solid var(--accent-line); border-left: 4px solid var(--accent); border-radius: 16px; padding: 1.8rem 2rem; margin-bottom: 2.6rem; }
.lp-note-kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.lp-note-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.25rem, 2.4vw, 1.6rem); letter-spacing: -0.01em; color: var(--text); margin-bottom: 0.6rem; }
.lp-note-text { color: var(--soft); font-size: 0.95rem; line-height: 1.65; max-width: 54rem; }
.lp-note-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 1.3rem 0 0.4rem; }
@media (max-width: 640px) { .lp-note-metrics { grid-template-columns: 1fr; } }
.lp-note-metric { display: flex; flex-direction: column; gap: 0.15rem; background: var(--bg-deep); border: 1px solid var(--hairline); border-radius: 10px; padding: 0.7rem 0.9rem; }
.lp-note-metric-value { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--accent); line-height: 1.1; }
.lp-note-metric-label { font-size: 0.74rem; color: var(--muted); line-height: 1.35; }
.lp-note-commands { margin-top: 1.2rem; }
.lp-note-cmd-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.4rem; }
.lp-note .lp-cmd-row { background: var(--bg-deep); }
.lp-note .lp-table-wrap { margin-top: 1.3rem; }
.lp-note-detail { margin-top: 0.9rem; font-size: 0.82rem; line-height: 1.55; color: var(--muted); max-width: 54rem; }

/* Setup recipes */
.lp-recipes-note { color: var(--soft); font-size: 0.92rem; line-height: 1.6; margin-bottom: 1.4rem; max-width: 52rem; }
.lp-recipes { display: grid; gap: 1.2rem; }
@media (min-width: 1000px) { .lp-recipes { grid-template-columns: 1fr 1fr; gap: 1.4rem; } }
.lp-recipe { display: flex; flex-direction: column; gap: 0.7rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px; padding: 1.4rem 1.5rem; }
.lp-recipe.is-highlight { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 45%); }
.lp-recipe-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.lp-recipe-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; }
.lp-recipe-detail { color: var(--soft); font-size: 0.88rem; line-height: 1.55; margin-bottom: 0.2rem; }
.lp-recipe .lp-cmd-row { border-radius: 10px; }
.lp-recipe .lp-cmd-row code { font-size: 0.76rem; padding: 0.7rem 0.9rem; }

/* What changed */
.lp-changes { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .lp-changes { grid-template-columns: 1fr 1fr; gap: 1.6rem 2.4rem; } }
.lp-change { border-left: 2px solid var(--accent-line); padding-left: 1.1rem; }
.lp-change h3 { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin-bottom: 0.3rem; }
.lp-change p { color: var(--soft); font-size: 0.88rem; line-height: 1.6; }

/* CLI-only hero (no desktop app) */
.lp-cli { max-width: 52rem; margin: 0 auto; }
.lp-cli-label { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.6rem; }
.lp-cli-row { display: flex; align-items: stretch; background: var(--bg-deep); border: 1px solid var(--hairline-strong); border-radius: 12px; overflow: hidden; }
.lp-cli-row code { flex: 1; min-width: 0; padding: 1rem 1.2rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--text); text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.lp-cli-copy { flex: none; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bg); background: var(--accent); border: 0; padding-inline: 1.3rem; cursor: pointer; transition: background 0.2s var(--ease); }
.lp-cli-copy:hover { background: #b3cae6; }
.lp-cli-copy.is-copied { background: var(--d3); color: var(--bg); }
.lp-cli-meta { margin-top: 0.65rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.lp-recipes-footer { margin-top: 1.4rem; color: var(--soft); font-size: 0.9rem; line-height: 1.6; max-width: 52rem; }

/* ============================================================
   Visual upgrade: colour, icons, depth
   ============================================================ */
:root {
  --accent-2: #f2a65a;
  --accent-3: #62d2a2;
  --accent-4: #b8a1e3;
  --accent-5: #e88ba6;
  --accent-6: #58c8d8;
  --shadow-card: 0 18px 40px -28px rgba(0, 0, 0, 0.9);
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[id] { scroll-margin-top: 5rem; }

/* brand */
.nav-gh { display: inline-flex; align-items: center; gap: 0.35rem; }
.nav-gh .icon { width: 0.95em; height: 0.95em; }

/* hero */
.hero { isolation: isolate; }
.hero::after { content: ""; position: absolute; z-index: -1; top: -18rem; right: -10rem; width: 42rem; height: 42rem; border-radius: 50%; background: radial-gradient(circle, rgba(125, 179, 255, 0.20), rgba(184, 161, 227, 0.10) 45%, transparent 68%); filter: blur(10px); pointer-events: none; }
.hero-name { background: linear-gradient(100deg, #f4f6f8 10%, #dbe7f6 55%, #9cb6d8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { .hero-name { color: var(--text); } }
.hero-layout { position: relative; }
.portrait-card { position: relative; box-shadow: var(--shadow-card); }
.portrait-card::before { content: ""; position: absolute; inset: -1.2rem; z-index: -1; border-radius: 24px; background: conic-gradient(from 140deg, rgba(125, 179, 255, 0.35), rgba(184, 161, 227, 0.25), rgba(242, 166, 90, 0.25), rgba(125, 179, 255, 0.35)); filter: blur(26px); opacity: 0.75; }
.social a.is-github:hover { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.08); }
.social a.is-linkedin:hover { color: #6cb2ff; border-color: rgba(108, 178, 255, 0.5); background: rgba(108, 178, 255, 0.1); }
.social a.is-reddit:hover { color: #ff8a5c; border-color: rgba(255, 138, 92, 0.5); background: rgba(255, 138, 92, 0.1); }

/* section icons */
.section-icon { width: 0.62em; height: 0.62em; margin-right: 0.3em; vertical-align: 0.02em; }
#work .section-icon { color: var(--d1); }
#research .section-icon { color: var(--d3); }
#more .section-icon { color: var(--accent-4); }
#benchmarks .section-icon { color: var(--d2); }
#writing .section-icon { color: var(--d1); }
#about .section-icon { color: var(--accent); }
#work .section-index { color: var(--d1); border-color: rgba(125, 179, 255, 0.45); }
#research .section-index { color: var(--d3); border-color: rgba(98, 210, 162, 0.45); }
#more .section-index { color: var(--accent-4); border-color: rgba(184, 161, 227, 0.45); }
#benchmarks .section-index { color: var(--d2); border-color: rgba(242, 166, 90, 0.45); }
#writing .section-index { color: var(--d1); border-color: rgba(125, 179, 255, 0.45); }
#about .section-index { color: var(--accent); border-color: var(--accent-line); }
.eyebrow-icon { width: 0.95em; height: 0.95em; margin-right: 0.45em; vertical-align: -0.08em; color: var(--accent); }

/* project cards */
.flagship { position: relative; overflow: hidden; box-shadow: var(--shadow-card); }
.flagship > *:not(.flagship-mark) { position: relative; z-index: 1; }
.flagship::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--card-accent, var(--accent)) 0%, color-mix(in srgb, var(--card-accent, var(--accent)) 35%, transparent) 45%, transparent 80%); }
.flagship::after { content: ""; position: absolute; z-index: 0; top: -6rem; right: -5rem; width: 16rem; height: 16rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--card-accent, var(--accent)) 18%, transparent), transparent 70%); pointer-events: none; }
.flagship:hover { border-color: color-mix(in srgb, var(--card-accent, var(--accent)) 45%, var(--hairline)); }
.flagship-mark { position: absolute; z-index: 0; top: 1.1rem; right: 1.2rem; width: 7.5rem; height: 7.5rem; color: var(--card-accent, var(--accent)); opacity: 0.07; pointer-events: none; }
.flagship--splash { --card-accent: var(--d1); }
.flagship--dstar { --card-accent: var(--d2); }
.flagship--lmstudio { --card-accent: var(--d3); }
.flagship--omlx { --card-accent: var(--accent-4); }
.flagship--metafake { --card-accent: var(--accent-5); }
.flagship--judge { --card-accent: var(--accent-6); }
.flagship:hover .flagship-title a { color: var(--card-accent, var(--accent)); }

/* tags get a coloured dot */
.tag { position: relative; padding-left: 1.15rem; }
.tag::before { content: ""; position: absolute; left: 0.5rem; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--tag-accent, var(--card-accent, var(--accent))); transform: translateY(-50%); opacity: 0.85; }
.tags .tag:nth-child(4n+1) { --tag-accent: var(--d1); }
.tags .tag:nth-child(4n+2) { --tag-accent: var(--d2); }
.tags .tag:nth-child(4n+3) { --tag-accent: var(--d3); }
.tags .tag:nth-child(4n+4) { --tag-accent: var(--accent-4); }

/* stats */
.stat { position: relative; }
.stat::before { content: ""; position: absolute; top: 0; left: 1.2rem; width: 2rem; height: 2px; border-radius: 2px; background: var(--stat-accent, var(--accent)); }
.stat:nth-child(1) { --stat-accent: var(--d1); }
.stat:nth-child(2) { --stat-accent: var(--d2); }
.stat:nth-child(3) { --stat-accent: var(--d3); }
.stat:nth-child(4) { --stat-accent: var(--accent-4); }
.stat:nth-child(5) { --stat-accent: var(--accent-5); }
.stat-num small { color: var(--stat-accent, var(--muted)); }

/* notes */
.note { position: relative; overflow: hidden; }
.note:nth-child(1) { --note-accent: var(--d1); }
.note:nth-child(2) { --note-accent: var(--d2); }
.note:nth-child(3) { --note-accent: var(--d3); }
.note::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, var(--note-accent, var(--accent)), transparent 70%); }
.note-icon { width: 0.95em; height: 0.95em; margin-right: 0.45em; vertical-align: -0.08em; color: var(--note-accent, var(--accent)); }
.bar i { background: linear-gradient(90deg, var(--d1), var(--accent-4)); }
.note:nth-child(2) .bar i { background: linear-gradient(90deg, var(--d2), var(--accent-5)); }

/* blog */
.post-item a { position: relative; }
.post-item a::before { content: ""; position: absolute; left: -1.1rem; top: 1.9rem; bottom: 1.9rem; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--d1), var(--accent-4)); transform: scaleY(0); transform-origin: top; transition: transform 0.3s var(--ease); }
.post-item a:hover::before { transform: scaleY(1); }
.post-meta .icon { width: 0.9em; height: 0.9em; margin-right: 0.35em; vertical-align: -0.08em; color: var(--faint); }
.post-meta time, .post-meta span { display: inline-flex; align-items: center; }
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--d1), var(--accent-4), var(--d2)); }
.author-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; max-width: 46rem; margin: 3rem auto 0; padding: 1.2rem 1.4rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); }
.author-card img { width: 3.4rem; height: 3.4rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--hairline-strong); }
.author-body { flex: 1 1 16rem; }
.author-name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; }
.author-bio { color: var(--muted); font-size: 0.84rem; line-height: 1.5; margin-top: 0.15rem; }
.author-link { font-size: 0.85rem; }

/* footer */
.site-footer { position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(90deg, transparent, var(--d1) 20%, var(--accent-4) 50%, var(--d2) 80%, transparent); opacity: 0.7; }
.footer-links a { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-links .icon { width: 0.95em; height: 0.95em; color: var(--faint); transition: color 0.3s var(--ease); }
.footer-links a:hover .icon { color: var(--accent); }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid var(--hairline); font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }
.footer-top { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--muted); text-decoration: none; transition: color 0.25s var(--ease); }
.footer-top:hover { color: var(--accent); }

/* landing pages: per-project accent */
.lp { --lp-accent: var(--accent); }
.lp-splash-m1 { --lp-accent: var(--d1); }
.lp-dstar { --lp-accent: var(--d2); }
.lp-eyebrow { color: var(--lp-accent); }
.lp-title { background: linear-gradient(100deg, var(--text) 55%, var(--lp-accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@supports not (background-clip: text) { .lp-title { color: var(--text); } }
.lp-hero { background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--lp-accent) 14%, transparent) 0%, transparent 62%); }
.lp-h2 { display: flex; align-items: center; gap: 0.5rem; }
.lp-h2-icon { width: 0.8em; height: 0.8em; color: var(--lp-accent); flex: none; }
.lp-note-kicker { display: flex; align-items: center; gap: 0.45rem; }
.lp-note-kicker .icon { width: 1em; height: 1em; }
.lp-note { border-color: color-mix(in srgb, var(--lp-accent) 40%, transparent); border-left-color: var(--lp-accent); background: linear-gradient(180deg, color-mix(in srgb, var(--lp-accent) 16%, transparent), color-mix(in srgb, var(--lp-accent) 5%, transparent) 60%); }
.lp-note-metric-value { color: var(--lp-accent); }
.lp-recipe.is-highlight { border-color: color-mix(in srgb, var(--lp-accent) 45%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--lp-accent) 12%, transparent), var(--surface) 45%); }
.lp-recipe.is-highlight .badge { color: var(--lp-accent); border-color: color-mix(in srgb, var(--lp-accent) 45%, transparent); background: color-mix(in srgb, var(--lp-accent) 12%, transparent); }
.lp-table tr.is-highlight td { background: color-mix(in srgb, var(--lp-accent) 12%, transparent); }
.lp-faq-item summary::after { color: var(--lp-accent); }
.lp-change { border-left-color: color-mix(in srgb, var(--lp-accent) 45%, transparent); }
.lp-change h3::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 0.5rem; border-radius: 50%; background: var(--lp-accent); vertical-align: 0.12em; }
.lp-cli-copy { background: var(--lp-accent); }
.lp-cli-copy:hover { filter: brightness(1.08); }
.lp-cta { background: var(--lp-accent); }
.lp-upstream-label, .lp-path-links a, .lp-upstream-links a, .lp-release-meta a { color: var(--lp-accent); }
.lp-path-icon { color: var(--lp-accent); }
.lp-step::before { color: var(--lp-accent); }

/* final colour touches */
.lp-h2 { align-items: flex-start; }
.lp-h2-icon { margin-top: 0.18em; }
.panel { position: relative; overflow: hidden; }
.panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; z-index: 2; background: linear-gradient(90deg, var(--d2), var(--accent-5) 45%, transparent 85%); }
.stats { background: linear-gradient(90deg, color-mix(in srgb, var(--d1) 40%, var(--hairline)), color-mix(in srgb, var(--accent-4) 40%, var(--hairline)) 50%, color-mix(in srgb, var(--d2) 40%, var(--hairline))); }
.work-link { position: relative; }
.work-link::before { content: ""; position: absolute; left: -1.1rem; top: 1rem; bottom: 1rem; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--d2), var(--accent-5)); transform: scaleY(0); transform-origin: top; transition: transform 0.3s var(--ease); }
.work-link:hover::before { transform: scaleY(1); }
@media (max-width: 859px) { .work-link::before { left: -0.6rem; } }

/* Internal linking: project pages and write-ups */
.lp-writeup { margin-top: 1.1rem; font-family: var(--font-mono); font-size: 0.76rem; }
.lp-writeup a { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--lp-accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--lp-accent) 45%, transparent); padding-bottom: 2px; }
.lp-writeup a:hover { border-color: var(--lp-accent); }
.lp-writeup .icon { width: 0.9em; height: 0.9em; }
.post-project { max-width: 46rem; margin: 2.4rem auto 0; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--hairline); border-left: 3px solid var(--accent); border-radius: 10px; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; align-items: baseline; }
.post-project-label { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.post-project a { color: var(--text); text-decoration: none; font-size: 0.92rem; border-bottom: 1px solid var(--hairline-strong); }
.post-project a:hover { color: var(--accent); border-color: var(--accent); }

/* Long URLs in prose must wrap, not stretch the page on mobile */
.post p, .post li { overflow-wrap: anywhere; }

/* Social brand colours: the rest of the row */
.social a.is-hf:hover { color: #ffd21e; border-color: rgba(255, 210, 30, 0.5); background: rgba(255, 210, 30, 0.1); }
.social a.is-kofi:hover { color: #ff7a9c; border-color: rgba(255, 122, 156, 0.5); background: rgba(255, 122, 156, 0.1); }
.social a.is-mail:hover { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }

/* ---- Projects index ---- */
.projects-head { padding-block: clamp(3rem, 8vh, 5rem) 2.2rem; border-bottom: 1px solid var(--hairline); }
.projects-head .hero-name { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 22ch; margin-bottom: 1rem; }
.projects-body { padding-block: 2rem 4.5rem; }
.projects-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.2rem; margin-bottom: 1.7rem; }
.projects-search { display: flex; align-items: center; gap: 0.55rem; flex: 1 1 17rem; max-width: 25rem; background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 0.5rem 0.95rem; transition: border-color 0.2s var(--ease); }
.projects-search:focus-within { border-color: var(--accent-line); }
.projects-search svg { width: 1rem; height: 1rem; color: var(--muted); flex: none; }
.projects-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 0.92rem; outline: none; }
.projects-search input::placeholder { color: var(--faint); }
.projects-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.projects-filters button { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; color: var(--soft); background: transparent; border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 0.38rem 0.75rem; cursor: pointer; transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease); }
.projects-filters button span { color: var(--faint); margin-left: 0.25rem; }
.projects-filters button:hover { border-color: var(--accent-line); color: var(--text); }
.projects-filters button.is-active { color: var(--bg-deep); background: var(--accent); border-color: var(--accent); }
.projects-filters button.is-active span { color: var(--bg-deep); opacity: 0.65; }
.projects-count { font-family: var(--font-mono); font-size: 0.72rem; color: var(--faint); margin-left: auto; }
.projects-grid { display: grid; gap: 1.2rem; }
@media (min-width: 900px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
.project-card[hidden] { display: none; }
.projects-empty { margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.projects-empty button { font: inherit; color: var(--accent); background: none; border: 0; border-bottom: 1px solid var(--accent-line); cursor: pointer; padding: 0; }
.projects-empty button:hover { border-color: var(--accent); }
