:root {
  color: #1c1917;
  background: #fafaf9;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fafaf9; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input { font: inherit; }

.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid #e7e5e4; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.025em; }
.brand-mark { width: 36px; height: 36px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; padding: 6px; border-radius: 12px; background: #ea580c; box-shadow: 0 1px 3px rgba(28,25,23,.14); }
.brand-mark i { border-radius: 50%; background: #fed7aa; box-shadow: inset 0 -2px 0 rgba(124,45,18,.15); }
.header-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.blog-language { display: inline-flex; align-items: center; gap: 5px; color: #78716c; }
.blog-language select { max-width: 112px; border: 0; background: transparent; color: #57534e; font: 650 12px/1.4 "Plus Jakarta Sans", sans-serif; cursor: pointer; outline: none; }
.header-nav a:not(.button) { color: #57534e; font-weight: 650; }
.header-nav a[aria-current="page"] { color: #c2410c; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 12px; background: #c2410c; color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: background .18s ease, transform .18s ease; }
.button:hover { background: #9a3412; transform: translateY(-1px); }
.button.secondary { background: #fff; color: #292524; border: 1px solid #d6d3d1; }
.button.secondary:hover { background: #f5f5f4; }

.blog-hero { padding: 80px 0 70px; border-bottom: 1px solid #e7e5e4; background: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #c2410c; font: 700 12px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: #ea580c; }
.blog-hero h1 { max-width: 780px; margin: 18px 0; font-size: clamp(42px, 7vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
.blog-hero p { max-width: 720px; margin: 0; color: #57534e; font-size: 19px; line-height: 1.75; }
.blog-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; color: #78716c; font-size: 13px; }

.posts { padding: 56px 0 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.section-head span { color: #a8a29e; font: 500 12px/1.4 "JetBrains Mono", monospace; }
.post-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); overflow: hidden; border: 1px solid #e7e5e4; border-radius: 24px; background: #fff; box-shadow: 0 4px 20px rgba(28,25,23,.04); }
.post-copy { padding: clamp(28px, 5vw, 58px); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font: 700 11px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.post-card h2 { max-width: 650px; margin: 20px 0 16px; font-size: clamp(28px, 4.2vw, 45px); line-height: 1.1; letter-spacing: -.045em; }
.post-card p { margin: 0; color: #57534e; line-height: 1.75; font-size: 16px; }
.post-card .read-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; color: #c2410c; font-weight: 750; }
.secondary-post { margin-top: 18px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 24px 26px; border: 1px solid #e7e5e4; border-radius: 18px; background: #fff; }
.secondary-post h3 { margin: 8px 0 6px; font-size: 20px; letter-spacing: -.03em; }
.secondary-post p { margin: 0; color: #78716c; font-size: 14px; line-height: 1.6; }
.secondary-post .read-link { color: #c2410c; font-size: 14px; font-weight: 750; white-space: nowrap; }
.trend-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.trend-card { overflow: hidden; border: 1px solid #e7e5e4; border-radius: 18px; background: #fff; }
.trend-card img { display: block; width: 100%; aspect-ratio: 3 / 1.55; object-fit: cover; }
.trend-card > div { padding: 22px; }
.trend-card h3 { margin: 10px 0 8px; font-size: 21px; line-height: 1.3; letter-spacing: -.03em; }
.trend-card p { margin: 0 0 16px; color: #78716c; font-size: 14px; line-height: 1.65; }
.frontier-section { margin-top: 58px; }
.frontier-intro { max-width: 680px; margin: -6px 0 24px; color: #57534e; line-height: 1.7; }
.frontier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.frontier-grid .trend-card img { aspect-ratio: 16 / 9; }
.frontier-grid .read-link { color: #c2410c; font-size: 14px; font-weight: 750; }
.post-visual { min-height: 430px; display: grid; place-items: center; padding: 34px; background: #f5f5f4; border-left: 1px solid #e7e5e4; }
.post-case-image { width: min(100%, 520px); overflow: hidden; border: 1px solid #d6d3d1; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(28,25,23,.1); }
.post-case-image img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.post-case-image figcaption { display: flex; justify-content: space-between; gap: 14px; padding: 12px 14px; color: #78716c; font: 650 10px/1.45 "JetBrains Mono", monospace; text-transform: uppercase; }
.pipeline-card { width: min(100%, 370px); padding: 18px; border: 1px solid #d6d3d1; border-radius: 20px; background: #fff; box-shadow: 0 14px 40px rgba(28,25,23,.09); }
.pipeline-head { display: flex; justify-content: space-between; margin-bottom: 18px; color: #78716c; font: 600 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
.valid { display: inline-flex; align-items: center; gap: 6px; color: #047857; }
.valid::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10b981; }
.pipeline-row { display: grid; grid-template-columns: 1fr 30px 1fr; align-items: center; gap: 8px; }
.pipeline-row > span { text-align: center; color: #ea580c; font-weight: 800; }
.mini-model { height: 120px; padding: 16px; border-radius: 14px; background: #f5f5f4; display: grid; align-content: end; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.mini-model i { display: block; border-radius: 4px; background: #78716c; box-shadow: inset 0 -3px rgba(28,25,23,.15); }
.mini-model i:nth-child(1), .mini-model i:nth-child(3) { height: 45px; }
.mini-model i:nth-child(2) { height: 78px; }
.mini-model.output { background: #fff7ed; border: 1px solid #fed7aa; }
.mini-model.output i { background: #ea580c; }
.pipeline-steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 10px; }
.pipeline-steps div { border: 1px solid #e7e5e4; border-radius: 10px; padding: 10px; font: 650 9px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; color: #78716c; }

.article-hero { border-bottom: 1px solid #e7e5e4; background: #fff; }
.article-hero-grid { min-height: 600px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 64px; align-items: center; padding: 76px 0; }
.article-hero h1 { max-width: 740px; margin: 20px 0; font-size: clamp(42px, 6vw, 64px); line-height: 1.07; letter-spacing: -.055em; }
.article-hero p { max-width: 700px; color: #57534e; font-size: 19px; line-height: 1.75; }
.hero-case-study { margin: 0; overflow: hidden; border: 1px solid #d6d3d1; border-radius: 24px; background: #fff; padding: 8px; box-shadow: 0 18px 48px rgba(28,25,23,.12); }
.hero-case-study img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; border-radius: 17px; object-fit: cover; }
.hero-case-study figcaption { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 10px 7px; color: #78716c; font-size: 11px; font-weight: 700; }
.hero-case-study figcaption span:last-child { color: #047857; font-family: "JetBrains Mono", monospace; }
.article-layout { display: grid; grid-template-columns: 200px minmax(0, 760px) 1fr; gap: 42px; padding: 70px 0 90px; }
.article-layout.localized-article { grid-template-columns: minmax(0, 760px); justify-content: center; }
.frontier-hero .article-hero-grid { min-height: 0; grid-template-columns: 1.15fr .85fr; gap: 40px; }
.frontier-hero h1 { font-size: clamp(38px, 4.8vw, 56px); }
.frontier-hero .hero-case-study img { aspect-ratio: 16 / 9; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 26px; color: #78716c; font-size: 12px; }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 3px; }
.article-cites a { color: #9a3412; font-size: 12px; font-weight: 700; text-decoration: underline; }
.article-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 16px; border: 1px solid #e7e5e4; border-radius: 14px; background: #fff; font-size: 12px; }
.article-toc strong { width: 100%; color: #78716c; text-transform: uppercase; letter-spacing: .08em; }
.article-toc a { padding: 5px 8px; border-radius: 8px; background: #f5f5f4; color: #44403c; }
.frontier-sources { display: grid; gap: 9px; padding-left: 23px; }
.frontier-sources a { color: #9a3412; text-decoration: underline; text-underline-offset: 3px; }
.article-faq section { padding: 14px 0; border-bottom: 1px solid #e7e5e4; }
.article-faq section:last-child { border-bottom: 0; }
.toc, .side-cta { position: sticky; top: 94px; align-self: start; }
.toc-title { margin-bottom: 14px; color: #a8a29e; font: 750 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .16em; }
.toc nav { border-left: 1px solid #d6d3d1; }
.toc a { display: block; padding: 8px 0 8px 15px; color: #78716c; font-size: 13px; line-height: 1.35; }
.toc a:hover, .toc a.active { color: #292524; border-left: 2px solid #ea580c; margin-left: -1px; font-weight: 700; }
.article { min-width: 0; font-size: 17px; }
.article > p, .article section > p { color: #57534e; line-height: 1.86; }
.article blockquote { margin: 22px 0 8px; padding: 18px 22px; border-left: 4px solid #ea580c; border-radius: 0 12px 12px 0; background: #fff7ed; color: #292524; font-size: 18px; font-weight: 700; line-height: 1.6; }
.article blockquote + .source-note { margin-top: 0; }
.article .lead { margin-top: 0; color: #292524; font-size: 20px; line-height: 1.65; font-weight: 650; }
.quick-answer { margin: 28px 0; padding: 22px; border-left: 4px solid #ea580c; border-radius: 0 16px 16px 0; background: #fff7ed; }
.quick-answer strong { display: block; margin-bottom: 7px; color: #9a3412; font: 750 11px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.quick-answer p { margin: 0; color: #44403c; line-height: 1.7; }
.editorial-note { margin: 0 0 30px; padding: 22px; border: 1px solid #fed7aa; border-radius: 17px; background: #fff7ed; }
.editorial-note strong { display: block; margin-bottom: 7px; color: #9a3412; font: 750 11px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.editorial-note p { margin: 0; color: #44403c; line-height: 1.7; }
.evidence-label { display: inline-flex; margin-right: 7px; padding: 4px 7px; border-radius: 6px; font: 750 10px/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.evidence-label.fact { color: #047857; background: #d1fae5; }
.evidence-label.inference { color: #9a3412; background: #ffedd5; }
.source-note { color: #78716c !important; font-size: 13px; }
.prep-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 25px 0; padding: 0; list-style: none; }
.prep-list li { padding: 15px 16px; border: 1px solid #e7e5e4; border-radius: 14px; background: #fff; color: #57534e; font-size: 14px; line-height: 1.55; }
.prep-list li::before { content: "✓"; margin-right: 8px; color: #059669; font-weight: 800; }
.case-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 28px 0; }
.case-shot { overflow: hidden; margin: 0; border: 1px solid #e7e5e4; border-radius: 15px; background: #fff; }
.case-shot img { display: block; width: 100%; height: 180px; object-fit: cover; }
.case-shot.reference img { object-position: 8% center; }
.case-shot.model img { object-position: 52% center; }
.case-shot.editor img { object-position: 91% center; }
.case-shot figcaption { padding: 11px 12px; color: #57534e; font: 650 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; }
.tutorial-step { scroll-margin-top: 90px; margin: 28px 0; padding: 22px; border: 1px solid #e7e5e4; border-radius: 17px; background: #fff; }
.tutorial-step-head { display: flex; align-items: center; gap: 13px; margin-bottom: 10px; }
.tutorial-step-head span { width: 38px; height: 38px; display: grid; place-items: center; flex: none; border-radius: 11px; background: #ea580c; color: #fff; font: 750 11px/1 "JetBrains Mono", monospace; }
.tutorial-step h3 { margin: 0; font-size: 19px; }
.tutorial-step p { margin: 8px 0 0; color: #57534e; font-size: 15px; line-height: 1.7; }
.tutorial-step code { padding: 2px 6px; border-radius: 6px; background: #f5f5f4; color: #9a3412; font: 600 12px/1.4 "JetBrains Mono", monospace; }
.related-article { margin-top: 38px; padding: 22px; border: 1px solid #fed7aa; border-radius: 17px; background: #fff7ed; }
.related-article small { color: #c2410c; font: 700 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.related-article h3 { margin: 9px 0 7px; }
.related-article p { margin: 0 0 15px; color: #57534e; font-size: 14px; line-height: 1.6; }
.related-article a { color: #c2410c; font-weight: 750; }
.article h2 { scroll-margin-top: 90px; margin: 62px 0 17px; color: #1c1917; font-size: 31px; line-height: 1.22; letter-spacing: -.04em; }
.article h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.02em; }
.section-number { margin: 56px 0 16px; display: flex; align-items: center; gap: 14px; color: #c2410c; font: 700 12px/1 "JetBrains Mono", monospace; }
.section-number::after { content: ""; height: 1px; flex: 1; background: #e7e5e4; }
.section-number + h2 { margin-top: 0; }
.comparison { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0; }
.info-card { padding: 22px; border: 1px solid #e7e5e4; border-radius: 17px; background: #fff; box-shadow: 0 1px 3px rgba(28,25,23,.04); }
.info-card p { margin: 8px 0 0; color: #78716c; font-size: 14px; line-height: 1.65; }
.info-card .stat { margin-top: 17px; padding-top: 15px; border-top: 1px solid #f5f5f4; color: #78716c; font: 500 10px/1.5 "JetBrains Mono", monospace; text-transform: uppercase; }
.info-card .stat a { color: #9a3412; text-decoration: underline; text-underline-offset: 2px; }
.flow { display: grid; grid-template-columns: 1fr 22px 1fr 22px 1fr; align-items: center; gap: 8px; margin: 28px 0; padding: 22px; border-radius: 18px; background: #292524; color: #fff; }
.flow div { padding: 15px 8px; border-radius: 12px; background: #44403c; text-align: center; font: 650 11px/1.55 "JetBrains Mono", monospace; }
.flow b { color: #fb923c; text-align: center; }
.callout { display: flex; gap: 15px; margin: 28px 0; padding: 20px; border: 1px solid #fed7aa; border-radius: 17px; background: #fff7ed; }
.callout.warn { border-color: #fcd34d; background: #fffbeb; }
.callout strong { display: block; margin-bottom: 5px; }
.callout p { margin: 0; color: #57534e; font-size: 14px; line-height: 1.65; }
.steps { display: grid; gap: 10px; margin: 28px 0; }
.step { display: grid; grid-template-columns: 45px 1fr; gap: 15px; padding: 17px; border: 1px solid #e7e5e4; border-radius: 16px; background: #fff; }
.step-num { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 12px; background: #f5f5f4; color: #44403c; font: 750 12px/1 "JetBrains Mono", monospace; }
.step.highlight { border-color: #fed7aa; background: #fff7ed; }
.step.highlight .step-num { color: #fff; background: #c2410c; }
.step.validated { border-color: #a7f3d0; background: #ecfdf5; }
.step.validated .step-num { color: #fff; background: #047857; }
.step p { margin: 4px 0 0; color: #78716c; font-size: 14px; line-height: 1.55; }
.model-table { margin: 28px 0; overflow: hidden; border: 1px solid #e7e5e4; border-radius: 17px; background: #fff; }
.model-row { display: grid; grid-template-columns: 1fr 1.1fr 1.65fr; gap: 15px; padding: 15px 17px; border-bottom: 1px solid #f5f5f4; font-size: 13px; line-height: 1.55; }
.model-row:last-child { border-bottom: 0; }
.model-row.header { background: #f5f5f4; color: #78716c; font: 750 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.model-row span:last-child { color: #78716c; }
.sources { display: grid; gap: 10px; margin: 22px 0; }
.sources a { display: flex; justify-content: space-between; gap: 20px; padding: 16px; border: 1px solid #e7e5e4; border-radius: 13px; background: #fff; font-size: 13px; font-weight: 700; }
.sources a::after { content: "↗"; color: #ea580c; }
.faq { overflow: hidden; border: 1px solid #e7e5e4; border-radius: 17px; background: #fff; }
.faq details { padding: 19px; border-bottom: 1px solid #e7e5e4; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { color: #78716c; font-size: 14px; line-height: 1.65; }
.side-cta { padding: 20px; border: 1px solid #e7e5e4; border-radius: 17px; background: #fff; box-shadow: 0 3px 14px rgba(28,25,23,.04); }
.side-cta small { color: #a8a29e; font: 700 10px/1.4 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.side-cta h3 { margin: 12px 0 7px; font-size: 17px; line-height: 1.35; }
.side-cta p { margin: 0 0 17px; color: #78716c; font-size: 13px; line-height: 1.6; }
.final-cta { background: #292524; color: #fff; }
.final-cta .eyebrow { color: #fdba74; }
.final-cta-inner { min-height: 230px; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.final-cta h2 { margin: 10px 0 0; font-size: clamp(28px,4vw,42px); letter-spacing: -.04em; }
.site-footer { padding: 28px 0; border-top: 1px solid #e7e5e4; background: #fff; color: #78716c; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px; line-height: 1.7; }

@media (max-width: 1080px) {
  .article-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .side-cta-wrap { display: none; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 32px, 720px); }
  .header-nav .nav-research { display: none; }
  .blog-language span { display: none; }
  .blog-hero { padding: 58px 0 52px; }
  .post-card { grid-template-columns: 1fr; }
  .post-visual { min-height: 340px; border-top: 1px solid #e7e5e4; border-left: 0; }
  .article-hero-grid { min-height: 0; grid-template-columns: 1fr; gap: 40px; padding: 54px 0; }
  .frontier-hero .article-hero-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; padding: 48px 0 70px; }
  .toc { display: none; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 520px); }
  .brand span:last-child { font-size: 14px; }
  .header-nav { gap: 8px; }
  .header-nav .nav-blog { display: none; }
  .header-nav .nav-about { display: none; }
  .blog-language select { max-width: 86px; }
  .button { padding: 0 13px; }
  .blog-hero h1, .article-hero h1 { font-size: 39px; }
  .blog-hero p, .article-hero p { font-size: 17px; }
  .post-copy, .post-visual { padding: 24px; }
  .post-visual { min-height: 300px; }
  .post-case-image figcaption, .hero-case-study figcaption { align-items: flex-start; flex-direction: column; }
  .pipeline-row { grid-template-columns: 1fr 20px 1fr; }
  .comparison { grid-template-columns: 1fr; }
  .case-strip { grid-template-columns: 1fr; }
  .case-shot img { height: 220px; }
  .prep-list { grid-template-columns: 1fr; }
  .secondary-post { grid-template-columns: 1fr; }
  .trend-grid { grid-template-columns: 1fr; }
  .frontier-grid { grid-template-columns: 1fr; }
  .article { font-size: 16px; }
  .article h2 { margin-top: 50px; font-size: 27px; }
  .flow { grid-template-columns: 1fr; }
  .flow b { transform: rotate(90deg); }
  .model-row { grid-template-columns: 1fr; gap: 4px; }
  .model-row.header { display: none; }
  .final-cta-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding: 48px 0; }
  .footer-inner { flex-direction: column; }
}
