/* shared by the case-study pages (testing-toolkit, app-studio); index.html keeps its own inline styles */
  :root { --bg: #ffffff; --fg: #1c1917; --muted: #78716c; --line: #e7e5e4; --accent: #2563eb; --tag: #f5f5f4; }
  * { box-sizing: border-box; }
  body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.65 Inter, system-ui, -apple-system, sans-serif; }
  main { max-width: 860px; margin: 0 auto; padding: 48px 16px; }
  a { color: var(--accent); text-decoration: none; }
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
  img { max-width: 100%; display: block; }
  .back { font-size: 14px; color: var(--muted); }
  h1 { font-size: 32px; font-weight: 600; margin: 24px 0 4px; letter-spacing: -0.02em; }
  .sub { color: var(--muted); font-size: 14px; margin: 0; }
  .hero { margin: 24px 0; border-radius: 10px; border: 1px solid var(--line); }
  h2 { font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin: 48px 0 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
  h3 { font-weight: 600; margin: 0; }
  article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 36px; align-items: center; padding: 36px 0; }
  article + article { border-top: 1px dashed var(--line); }
  article:nth-of-type(even) .media { order: -1; }
  article:nth-of-type(even):not(.two) { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  /* visual + launch video: text on top, the pair side by side below */
  article.two { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  article.two .media { order: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  article.two .vis { aspect-ratio: 16 / 10; object-fit: cover; }
  .media iframe { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; border: 1px solid var(--line); border-radius: 16px; background: #f8f9fa; }
  .vis { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: #f8f9fa; transition: transform .25s ease, box-shadow .25s ease; }
  .vis:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(15, 23, 42, .08); }
  h3 { font-size: 18px; letter-spacing: -0.01em; }
  .n { display: block; font-size: 12px; letter-spacing: 0.08em; color: var(--accent); margin: 0 0 4px; }
  .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 28px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
  .stats div { background: var(--bg); padding: 16px; }
  .stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
  .stats span { color: var(--muted); font-size: 13px; }
  .logos { margin-top: 40px; text-align: center; }
  .logos p { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
  .logos img { margin: 0 auto; opacity: .75; filter: grayscale(1); transition: opacity .3s, filter .3s; }
  .logos img:hover { opacity: 1; filter: none; }
  @media (max-width: 680px) {
    article { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 28px 0; }
    article:nth-of-type(even) .media { order: 0; }
    article:nth-of-type(even):not(.two) { grid-template-columns: minmax(0, 1fr); }
    article.two .media { grid-template-columns: minmax(0, 1fr); }
    .stats { grid-template-columns: repeat(2, 1fr); }
  }
  article p { margin: 6px 0 0; font-size: 14px; }
  article ul, .behind ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
  .lead { color: var(--muted); }
  footer { margin-top: 64px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
  footer a { color: var(--muted); }
  ::selection { background: #dbeafe; }
  :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  p, li { text-wrap: pretty; }

/* logo strip from remote URLs: borderless rows like a single image; multiply drops the white backgrounds of the jpeg logos */
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 10px; margin-top: 18px; }
.logo-grid > div { flex: 0 0 calc((100% - 50px) / 6); display: flex; align-items: center; justify-content: center; height: 48px; overflow: hidden; }
@media (max-width: 680px) { .logo-grid > div { flex-basis: calc((100% - 20px) / 3); } }
.logos .logo-grid img { max-height: 40px; max-width: 84%; object-fit: contain; border-radius: 6px; mix-blend-mode: multiply; filter: none; opacity: 1; margin: 0; }
.logo-grid .zoom img { transform: scale(var(--z, 1.6)); }
video.hero { display: block; width: 100%; }
/* text + wide illustration; alternates sides like the other articles */
article.wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
article.wide:nth-of-type(even) { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 680px) { article.wide, article.wide:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); } }
