@font-face {
  font-family: "Lateral";
  src: url("https://ifm.ai/blog/src/assets/fonts/LateralVariable-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lateral";
  src:
    url("https://ifm.ai/blog/src/assets/fonts/Lateral-StandardMedium.woff2") format("woff2"),
    url("https://ifm.ai/blog/src/assets/fonts/Lateral-StandardMedium.woff") format("woff");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --background: #f2f6f3;
  --surface: #ffffff;
  --ink: #111111;
  --ink-soft: rgba(17, 17, 17, 0.64);
  --line: rgba(17, 17, 17, 0.12);
  --signal: #f44900;
  --page-max: 1280px;
  --page-gutter: clamp(20px, 5vw, 64px);
  --grid-gap: clamp(12px, 1.6vw, 20px);
  --space-copy: clamp(16px, 1.5vw, 20px);
  --space-heading-copy: clamp(24px, 2.5vw, 32px);
  --space-figure: clamp(36px, 4vw, 48px);
  --space-subsection: clamp(48px, 5vw, 64px);
  --space-section: clamp(80px, 9vw, 112px);
  --focus: 0 0 0 3px var(--background), 0 0 0 5px var(--signal);
  color: var(--ink);
  background: var(--background);
  font-family: "Lateral", Arial, Helvetica, sans-serif;
  font-synthesis: none;
  line-height: 1.4;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #e8ebe9;
  scroll-padding-top: 24px;
}

body {
  min-width: 320px;
  width: 100%;
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-size: 18px;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(244, 73, 0, 0.16);
}

button {
  border: 0;
}

img,
svg {
  display: block;
  max-width: 100%;
}

figure,
h1,
h2,
h3,
h4,
p,
ul,
ol {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration-color: rgba(17, 17, 17, 0.4);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentColor;
}

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--surface);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 var(--grid-gap);
  width: min(100%, var(--page-max));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  display: flex;
  align-items: center;
  min-height: 49px;
  padding: 12px 20px;
  border-bottom: 1px solid rgba(17, 17, 17, 0.03);
  background: rgba(17, 17, 17, 0.035);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  text-decoration: none;
}

.brand img {
  width: 191px;
  height: 25px;
}

.article-header {
  padding-top: clamp(76px, 10vw, 128px);
  padding-bottom: clamp(64px, 8vw, 96px);
}

.article-header__inner {
  grid-column: 1 / -1;
}

.article-header h1 {
  max-width: 1120px;
  margin-bottom: 32px;
  font-size: clamp(54px, 6.2vw, 84px);
  font-weight: 560;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px clamp(24px, 3vw, 40px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.article-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin: 0;
  border: 0;
}

.article-actions__group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.article-actions__label {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 620;
  letter-spacing: 0.06em !important;
  line-height: 1.2;
  text-transform: uppercase;
}

.article-actions__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.meta-link {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 150ms ease, opacity 150ms ease;
}

.meta-link:hover {
  color: var(--ink);
  opacity: 0.72;
}

.meta-link__icon {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  object-fit: contain;
}

.hero-media {
  padding-top: clamp(60px, 8vw, 104px);
  padding-bottom: clamp(84px, 11vw, 144px);
}

.hero-media__inner {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  aspect-ratio: 1920 / 983;
}

.media-plate {
  margin: 0;
  padding: clamp(16px, 2vw, 28px);
  background: var(--surface);
}

.media-plate--dark {
  padding: 0;
  background: linear-gradient(90deg, #2c8a78, #8f8568);
}

.media-plate img {
  width: 100%;
  height: auto;
}

.article-figure--chart.media-plate {
  padding: 0;
  background: transparent;
}

.result-table .media-plate {
  padding: clamp(4px, 0.6vw, 8px);
  background: var(--surface);
}

.result-table .media-plate img,
.article-lightbox__image[src*="k2-full-results-"] {
  background: var(--surface);
  filter: contrast(1.1);
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.article-layout {
  align-items: start;
  padding-bottom: clamp(110px, 12vw, 168px);
}

.section-nav {
  position: sticky;
  top: 24px;
  grid-column: 1 / span 2;
  align-self: start;
  padding-right: 20px;
  font-size: 14px;
  line-height: 1.25;
}

.section-nav ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section-nav a {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: rgba(17, 17, 17, 0.64);
  text-decoration: none;
  transition: color 140ms ease;
}

.section-nav a:hover,
.section-nav a[aria-current] {
  color: var(--signal);
}

.article-body {
  grid-column: 4 / span 7;
  min-width: 0;
}

.article-body > :first-child,
.article-section > :first-child {
  margin-top: 0;
}

.article-body p,
.article-body li {
  letter-spacing: -0.012em;
}

.article-body p {
  margin-bottom: var(--space-copy);
  line-height: 1.55;
}

.article-body ul:not(.feature-list) {
  display: grid;
  gap: 10px;
  margin-bottom: var(--space-copy);
  padding-left: 1.15em;
}

.article-section {
  scroll-margin-top: 32px;
}

.article-section + .article-section {
  margin-top: var(--space-section);
}

.article-section > h2 {
  position: relative;
  max-width: 760px;
  margin-bottom: var(--space-heading-copy);
  padding-top: 24px;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 540;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}

.article-section > h2::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 64px;
  height: 4px;
  background: var(--signal);
  content: "";
}

.article-section h3 {
  max-width: 680px;
  margin-bottom: var(--space-heading-copy);
  font-size: clamp(28px, 2.7vw, 36px);
  font-weight: 560;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
}

.section-intro {
  margin-bottom: var(--space-heading-copy) !important;
  font-size: clamp(24px, 2.55vw, 34px);
  font-weight: 420;
  letter-spacing: -0.027em !important;
  line-height: 1.2;
}

.overview-intro {
  margin-bottom: var(--space-heading-copy) !important;
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.35;
}

.feature-list {
  margin: var(--space-figure) 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.feature-list li {
  padding: 24px 0 26px;
  border-bottom: 1px solid var(--line);
}

.feature-list strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 620;
}

.subsection {
  margin-top: var(--space-subsection);
}

.release-record {
  margin-top: var(--space-subsection);
  padding: clamp(28px, 4vw, 48px);
  background: var(--surface);
}

.release-record h3 {
  max-width: 520px;
}

.release-record ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px !important;
  padding: 0 !important;
  list-style: none;
}

.release-record li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.release-record > p:last-child {
  max-width: 560px;
  margin: 28px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}

.model-group {
  padding: clamp(42px, 5vw, 64px) 0;
  border-top: 1px solid var(--ink);
}

.model-group + .model-group {
  border-top-color: var(--line);
}

.article-figure {
  margin: var(--space-figure) 0;
}

.article-figure--wide {
  position: relative;
  left: 0;
  width: min(960px, 128.5714%);
}

.article-figure img {
  width: 100%;
  height: auto;
}

.article-figure__zoom-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  line-height: 0;
  cursor: zoom-in;
}

.article-figure__zoom-trigger img {
  transition: opacity 180ms ease;
}

.article-figure__zoom-trigger:hover img {
  opacity: 0.92;
}

html.has-image-lightbox,
html.has-image-lightbox body {
  overflow: hidden;
}

.article-lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: clamp(12px, 2vw, 32px);
  border: 0;
  background: rgba(6, 10, 9, 0.94);
  color: var(--surface);
  overflow: hidden;
}

.article-lightbox[open] {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: minmax(0, 1fr);
  gap: clamp(4px, 1.5vw, 20px);
  align-items: center;
  animation: lightbox-fade-in 180ms ease-out;
}

.article-lightbox::backdrop {
  background: rgba(6, 10, 9, 0.82);
  backdrop-filter: blur(6px);
}

.article-lightbox__figure {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.article-lightbox__image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 64px);
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation: lightbox-image-in 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.article-lightbox--has-caption .article-lightbox__image {
  max-height: calc(100dvh - 144px);
}

.article-lightbox__caption {
  width: min(720px, 100%);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(12px, 1vw, 14px);
  font-style: italic;
  line-height: 1.45;
  text-align: left;
}

.article-lightbox__control {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.52);
  color: var(--surface);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.article-lightbox__control:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(17, 17, 17, 0.86);
}

.article-lightbox__control svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.article-lightbox__previous {
  grid-column: 1;
  grid-row: 1;
}

.article-lightbox__next {
  grid-column: 3;
  grid-row: 1;
}

.article-lightbox__close {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes lightbox-image-in {
  from {
    opacity: 0;
    transform: scale(0.975);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

blockquote {
  margin: var(--space-figure) 0;
  padding: 6px 0 6px clamp(22px, 3vw, 34px);
  border-left: 4px solid var(--signal);
}

blockquote p {
  margin: 0 !important;
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: -0.025em !important;
  line-height: 1.24;
}

.model-hacking-figure {
  position: relative;
  left: 0;
  width: min(960px, 128.5714%);
  margin: var(--space-figure) 0;
}

.model-hacking-figure figcaption {
  max-width: 720px;
  margin-top: 12px;
  padding-inline: clamp(16px, 2vw, 28px);
  color: var(--ink-soft);
  font-size: clamp(12px, 1vw, 14px);
  font-style: italic;
  line-height: 1.45;
}

@media (min-width: 901px) {
  .article-figure--chart {
    left: -14.2857%;
    width: min(960px, 142.8571%);
  }

  .article-figure--graph,
  .article-figure--wide.model-hacking-figure {
    left: -7.1429%;
  }
}

code {
  padding: 0.1em 0.28em;
  background: rgba(17, 17, 17, 0.06);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.84em;
}

.article-section--closing {
  padding-top: var(--space-figure);
  border-top: 1px solid var(--ink);
}

.article-section--closing .section-intro {
  max-width: 720px;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  letter-spacing: -0.018em !important;
  line-height: 1.45;
}

.article-section--closing .closing-statement {
  max-width: 700px;
  margin: var(--space-figure) 0 0 !important;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 440;
  letter-spacing: -0.03em !important;
  line-height: 1.15;
  text-wrap: balance;
}

.result-table-list {
  display: grid;
  gap: var(--space-subsection);
  margin-top: 0;
}

.result-table .article-figure {
  margin: 0;
}

.site-footer {
  position: relative;
  padding: 60px var(--page-gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  background: #111;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px var(--grid-gap);
  width: min(100%, var(--page-max));
  margin: 0 auto;
}

.site-footer__brand {
  grid-column: 1 / -1;
  justify-self: start;
}

.site-footer__brand img {
  width: min(306px, 100%);
  height: auto;
  filter: invert(1);
}

.site-footer__socials {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  gap: 8px;
  align-self: end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__socials a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  color: #fff;
  transition: border-color 150ms ease, background-color 150ms ease;
}

.site-footer__socials a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.site-footer__socials svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer__legal {
  grid-column: 1;
  grid-row: 2;
  align-self: end;
}

.site-footer__legal small,
.site-footer__legal button {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.35;
}

.site-footer__legal button {
  padding: 0;
  background: none;
  cursor: pointer;
}

.site-footer__legal button:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .page-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .article-header__inner {
    grid-column: 1 / -1;
  }

  .article-header h1 {
    max-width: 760px;
  }

  .article-layout {
    row-gap: 56px;
  }

  .section-nav {
    position: sticky;
    z-index: 20;
    top: 0;
    grid-column: 1 / -1;
    margin-inline: calc(var(--page-gutter) * -1);
    padding: 12px var(--page-gutter);
    border-block: 1px solid var(--line);
    background: rgba(242, 246, 243, 0.96);
    backdrop-filter: blur(12px);
  }

  .section-nav ol {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .section-nav a {
    min-height: 36px;
    white-space: nowrap;
  }

  .article-body {
    grid-column: 1 / -1;
  }

  .article-figure--wide {
    width: 100%;
  }

  .model-hacking-figure {
    width: 100%;
  }
}

@media (max-width: 620px) {
  :root {
    --space-section: clamp(64px, 14vw, 80px);
    --space-subsection: clamp(40px, 9vw, 52px);
    --space-figure: clamp(28px, 7vw, 36px);
  }

  body {
    font-size: 17px;
  }

  .page-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: 166px;
    height: auto;
  }

  .article-header {
    padding-top: 64px;
    padding-bottom: 60px;
  }

  .article-header h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .article-meta-row,
  .article-meta {
    display: grid;
    gap: 4px;
  }

  .article-meta-row {
    gap: 10px;
  }

  .article-meta [aria-hidden="true"] {
    display: none;
  }

  .article-actions {
    gap: 8px 18px;
  }

  .article-actions__group {
    display: flex;
  }

  .article-body,
  .hero-media__inner,
  .section-nav {
    grid-column: 1;
  }

  .hero-media__inner {
    margin-inline: calc(var(--page-gutter) * -1);
  }

  .hero-media {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .article-layout {
    padding-top: 0;
  }

  .release-record ul {
    grid-template-columns: 1fr;
  }

  .model-hacking-figure__media {
    padding: 14px;
  }

  .site-footer {
    padding-block: 40px;
  }

  .site-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .site-footer__brand,
  .site-footer__socials,
  .site-footer__legal {
    grid-column: 1;
    grid-row: auto;
  }

  .site-footer__brand img {
    width: min(280px, 100%);
  }

  .article-lightbox {
    padding: 16px;
  }

  .article-lightbox[open] {
    grid-template-columns: minmax(0, 1fr) 44px 44px minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 44px;
    justify-content: center;
    gap: 12px;
  }

  .article-lightbox__figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .article-lightbox__previous,
  .article-lightbox__next {
    position: static;
    grid-row: 2;
  }

  .article-lightbox__previous {
    grid-column: 2;
    justify-self: end;
  }

  .article-lightbox__next {
    grid-column: 3;
    justify-self: start;
  }

  .article-lightbox__image {
    max-height: calc(100dvh - 88px);
  }

  .article-lightbox--has-caption .article-lightbox__image {
    max-height: calc(100dvh - 180px);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  html,
  body {
    background: var(--surface);
  }

  .section-nav,
  .skip-link {
    display: none;
  }

  .article-body {
    grid-column: 3 / span 8;
  }
}
