:root {
  --ai-structure: #2f4e74;
  --ai-system: #3f628b;
  --ai-fold-light: #adc7fd;
  --ai-paper: #f2efe7;
  --ai-paper-2: #e9e5da;
  --ai-paper-3: #ddd8ca;
  --ai-ink: #11120f;
  --article-line: rgba(17, 18, 15, .19);
  --article-muted: rgba(17, 18, 15, .64);
  --article-pad: clamp(20px, 4.25vw, 68px);
  --article-max: 1248px;
  --article-copy: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ai-ink);
  background-color: var(--ai-paper);
  font-family: "Roboto", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
::selection { color: var(--ai-paper); background: var(--ai-structure); }

.research-shell {
  width: min(var(--article-max), calc(100% - var(--article-pad) * 2));
  margin-inline: auto;
}
.article-main { padding-top: var(--nav-h, 48px); }
.reading-progress {
  position: fixed;
  z-index: 101;
  top: calc(var(--nav-h, 48px) - 1px);
  left: 0;
  width: 100%;
  height: 2px;
  pointer-events: none;
}
.reading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ai-system);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.article-kicker {
  margin: 0;
  color: var(--ai-structure);
  font-size: 11px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.article-hero { padding-top: clamp(88px, 10vw, 144px); padding-bottom: 48px; }
.article-hero h1 {
  max-width: 1180px;
  margin: 26px 0 0;
  font-size: clamp(46px, 6vw, 88px);
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -.038em;
  text-wrap: balance;
}
.article-title-row { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.article-title-row h1 { flex: 1; min-width: 0; }
.article-title-mark { order: 2; flex: 0 0 auto; width: clamp(48px, 5.5vw, 76px); height: auto; }
.article-dek {
  max-width: 850px;
  margin: 42px 0 0;
  color: var(--article-muted);
  font-size: clamp(20px, 2.25vw, 32px);
  font-weight: 430;
  line-height: 1.28;
  letter-spacing: -.028em;
}
.article-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
  color: var(--article-muted);
  font-size: 10px;
  font-weight: 400;
  font-variation-settings: "wght" 400;
  line-height: 1.45;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.article-rule { height: 1px; background: var(--ai-ink); }

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--article-copy)) minmax(0, 1fr);
  justify-content: center;
  column-gap: 48px;
  padding-top: 72px;
  padding-bottom: 120px;
}
.article-aside {
  grid-column: 1;
  justify-self: end;
  width: 192px;
  position: sticky;
  top: calc(var(--nav-h, 48px) + 32px);
  align-self: start;
  padding-top: 3px;
}
.article-main-column { grid-column: 2; }
.article-aside > p {
  margin: 0 0 19px;
  color: var(--article-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.article-aside ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.article-aside li { counter-increment: toc; border-top: 1px solid var(--article-line); }
.article-aside li:last-child { border-bottom: 1px solid var(--article-line); }
.article-aside li a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 11px 0 12px;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.35;
  text-decoration: none;
}
.article-aside li a::before {
  content: "0" counter(toc);
  color: var(--ai-system);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
}
.article-aside li a:hover { color: var(--ai-ink); }
.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding: 13px 14px;
  color: var(--ai-paper);
  background: var(--ai-structure);
  border: 1px solid var(--ai-structure);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.article-cta:hover { background: var(--ai-system); border-color: var(--ai-system); }

.article-main-column,
.article-body { min-width: 0; }
.article-body > p {
  margin: 0 0 27px;
  font-size: 18px;
  line-height: 1.72;
  letter-spacing: -.008em;
  text-align: justify;
}
.article-body h2 {
  margin: 96px 0 31px;
  scroll-margin-top: calc(var(--nav-h, 48px) + 4px);
  font-size: clamp(32px, 3.5vw, 50px);
  font-weight: 560;
  line-height: 1.02;
  letter-spacing: -.048em;
}
.article-body h3 {
  margin: 58px 0 22px;
  font-size: clamp(24px, 2.3vw, 32px);
  font-weight: 560;
  line-height: 1.14;
  letter-spacing: -.03em;
}
.article-body strong { font-weight: 650; }
.article-body em { font-style: italic; }
.article-body a { color: var(--ai-structure); }
.article-body code {
  padding: .08em .3em;
  background: var(--ai-paper-2);
  font: 500 .88em/1.4 "Roboto", "Noto Sans SC", sans-serif;
}
.article-body pre {
  overflow-x: auto;
  margin: 42px 0;
  padding: 24px;
  color: var(--ai-paper);
  background: var(--ai-structure);
}
.article-body pre code { padding: 0; color: inherit; background: transparent; }
.article-body ul,
.article-body ol {
  margin: 8px 0 34px;
  padding-left: 0;
  list-style: none;
  counter-reset: article-list;
}
.article-body li {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 34px;
  border-top: 1px solid var(--article-line);
  font-size: 17px;
  line-height: 1.58;
}
.article-body li:last-child { border-bottom: 1px solid var(--article-line); }
.article-body ul li::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 2px;
  width: 13px;
  height: 7px;
  background: var(--ai-system);
  clip-path: polygon(34% 100%, 0 100%, 66% 0, 100% 0);
}
.article-body ol li { counter-increment: article-list; }
.article-body ol li::before {
  content: "0" counter(article-list);
  position: absolute;
  top: 16px;
  left: 0;
  color: var(--ai-system);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}
.article-body blockquote {
  margin: 58px 0;
  padding: 2px 0 3px 32px;
  border-left: 4px solid var(--ai-system);
}
.article-body blockquote p {
  margin: 0;
  color: var(--ai-structure);
  font-size: clamp(25px, 3vw, 40px);
  font-weight: 480;
  line-height: 1.24;
  letter-spacing: -.035em;
}
.article-body hr {
  height: 1px;
  margin: 88px 0 47px;
  border: 0;
  background: var(--ai-ink);
}
.article-figure {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 64px auto 70px;
  overflow: hidden;
}
.article-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid var(--ai-ink);
  background: var(--ai-paper-2);
}
.article-figure img[src$="framework.png"] { aspect-ratio: 16 / 9; }
.article-figure figcaption {
  max-width: 700px;
  margin-top: 13px;
  color: var(--article-muted);
  font-size: 12px;
  line-height: 1.55;
}
.article-video {
  width: 100%;
  max-width: 720px;
  min-width: 0;
  margin: 0 auto 70px;
  overflow: hidden;
}
.article-video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--ai-ink);
  background: var(--ai-paper-2);
}
.article-body > .article-figure:first-of-type {
  width: 100%;
  max-width: 640px;
}
.hardware-partner {
  min-width: 0;
  margin-top: 12px;
  padding: 15px 0 0;
  border-top: 1px solid var(--article-line);
  background: transparent;
}
.hardware-partner-card {
  display: grid;
  grid-template-columns: minmax(210px, 37%) minmax(0, 1fr);
  width: 100%;
  min-height: clamp(145px, 15vw, 175px);
}
.hardware-partner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(9px, 1.2vw, 13px) clamp(16px, 2vw, 23px) clamp(8px, 1.1vw, 12px) 2px;
}
.hardware-partner-kicker {
  margin: 0 0 clamp(7px, .9vw, 10px);
  color: var(--ai-structure);
  font-size: 9px;
  font-weight: 720;
  line-height: 1.3;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hardware-partner-logo {
  width: min(100%, 210px);
}
.hardware-partner-logo img {
  width: 100%;
  height: auto;
}
.hardware-partner-description {
  max-width: 250px;
  margin: clamp(8px, 1vw, 11px) 0 0;
  color: var(--ai-ink);
  font-size: clamp(13px, 1.3vw, 16px);
  font-weight: 330;
  font-variation-settings: "wght" 330;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.hardware-partner-product {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: clamp(8px, 1.4vw, 15px);
  overflow: hidden;
  background: rgba(173, 199, 253, .34);
}
.hardware-partner-product img {
  width: min(78%, 440px);
  height: auto;
  max-height: 130px;
  object-fit: contain;
}
.hardware-partner-rule {
  position: relative;
  height: 10px;
  margin-top: 6px;
}
.hardware-partner-rule::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 34px;
  height: 1px;
  background: var(--ai-system);
}
.hardware-partner-rule span {
  position: absolute;
  top: -5px;
  left: 0;
  width: 29px;
  height: 10px;
  background: var(--ai-system);
  clip-path: polygon(30% 0, 100% 0, 72% 100%, 0 100%);
}

@media (max-width: 980px) {
  .article-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 48px; }
  .article-aside { grid-column: 1; width: 160px; }
  .article-main-column { grid-column: 2; }
  .article-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

@media (max-width: 720px) {
  .article-hero { padding-top: 64px; }
  .article-hero h1 { font-size: clamp(38px, 10vw, 58px); }
  .article-title-row { align-items: flex-start; gap: 14px; }
  .article-title-mark { width: 44px; margin-top: 8px; }
  .article-dek { margin-top: 30px; }
  .article-meta { margin-top: 44px; }
  .article-layout { display: block; padding-top: 42px; padding-bottom: 80px; }
  .article-aside { position: static; margin-bottom: 58px; }
  .article-aside ol { display: none; }
  .article-aside > p { display: none; }
  .article-cta { width: min(100%, 280px); margin-top: 0; }
  .article-body > p { font-size: 17px; line-height: 1.68; }
  .article-body h2 { margin-top: 72px; }
  .article-figure { width: 100%; max-width: 100%; margin: 48px auto 54px; }
  .article-video { width: 100%; max-width: 100%; margin: 0 auto 54px; }
  .article-body > .article-figure:first-of-type { width: 100%; max-width: 560px; }
  .hardware-partner { margin-top: 4px; padding-top: 14px; }
  .hardware-partner-card { grid-template-columns: 1fr; }
  .hardware-partner-copy { padding: 2px 0 14px; }
  .hardware-partner-kicker { margin-bottom: 9px; }
  .hardware-partner-logo { width: min(72%, 190px); }
  .hardware-partner-description { margin-top: 10px; font-size: 14px; }
  .hardware-partner-product { min-height: 125px; padding: 11px 16px; }
  .hardware-partner-product img { width: min(82%, 400px); max-height: 108px; }
  .hardware-partner-rule { margin-top: 6px; }
}

@media (max-width: 460px) {
  .article-meta { grid-template-columns: 1fr; gap: 8px; }
  .article-body blockquote { padding-left: 20px; }
  .article-body li { padding-left: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reading-progress { display: none; }
}
