.page-main {
  display: grid;
  gap: clamp(58px, 7.5vw, 104px);
  padding-bottom: clamp(72px, 9vw, 124px);
}

.page-hero,
.page-section,
.article-page,
.not-found {
  width: var(--container);
  margin-inline: auto;
}

.page-main > .section:not(.contact-section) {
  padding-block: 0;
}

.page-hero > *,
.page-section > * {
  min-width: 0;
}

.page-hero {
  display: grid;
  gap: 0;
  padding-top: clamp(78px, 8.5vw, 126px);
  text-align: center;
}

.page-hero--compact {
  padding-top: clamp(66px, 7vw, 100px);
}

.page-hero--legal .page-title {
  font-size: clamp(28px, 5vw, 64px);
  overflow-wrap: anywhere;
  hyphens: auto;
}

.page-kicker {
  margin: 0 0 var(--space-kicker-title);
  color: var(--context-color, var(--blue));
  font-size: var(--type-kicker);
  font-weight: 620;
  line-height: 1.2;
}

.page-hero--muted-kicker .page-kicker {
  color: var(--muted);
}

.page-title,
.article-title,
.not-found h1 {
  width: min(100%, 1060px);
  min-width: 0;
  max-width: 1060px;
  margin-inline: auto;
  color: var(--ink);
  font-size: var(--type-page-title);
  font-weight: 760;
  line-height: 1.21;
  letter-spacing: 0;
}

.page-title span {
  display: block;
  padding-bottom: 0.06em;
  margin-bottom: -0.06em;
}

.page-title + .page-lead,
.article-title + .article-lead {
  margin-top: 24px;
}

.article-title {
  font-size: var(--type-article-title);
  hyphens: manual;
  overflow-wrap: anywhere;
}

.not-found h1 {
  font-size: var(--type-not-found);
}

.page-title__gradient {
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.page-title__gradient--cyan {
  background-image: var(--gradient-cyan);
}

.page-title__gradient--mag {
  background-image: var(--gradient-mag);
}

.page-title__gradient--ylw {
  background-image: var(--gradient-ylw);
}

.page-lead,
.article-lead,
.section-lead {
  width: min(100%, 880px);
  min-width: 0;
  max-width: 880px;
  margin-inline: auto;
  color: var(--muted);
  font-size: var(--type-page-lead);
  line-height: 1.45;
}

.page-section {
  display: grid;
  gap: 34px;
}

.page-section__head {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.page-section__head h2,
.article-body h2 {
  color: var(--ink);
  font-size: var(--type-section-title);
  font-weight: 760;
}

.page-section__head h2 {
  line-height: 1.2;
}

.page-section__head > p:not(.context) {
  margin-top: 16px;
  color: var(--muted);
  font-size: var(--type-page-lead);
  line-height: 1.45;
}

.page-section__head .context {
  margin: 0 0 var(--space-kicker-title);
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(42px, 6vw, 74px) clamp(36px, 6vw, 76px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.editorial-layout--reverse {
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.92fr);
}

.editorial-layout--reverse .editorial-visual {
  order: -1;
}

.editorial-copy-block {
  display: grid;
  align-content: center;
  gap: 0;
  max-width: 780px;
}

.editorial-copy-block h2 + p,
.editorial-copy-block p + p {
  margin-top: 18px;
}

.editorial-copy-block h2,
.plain-block h2 {
  color: var(--ink);
  font-size: var(--type-editorial-title);
  font-weight: 760;
  line-height: 1.2;
}

.editorial-copy-block p,
.plain-block p,
.detail-list p,
.process-step p,
.article-card p,
.utility-panel p,
.article-body p,
.article-body li {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.editorial-copy-block .actions {
  justify-content: flex-start;
}

.utility-panel {
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.editorial-visual {
  display: grid;
  place-items: center;
  justify-self: center;
  width: clamp(138px, 18vw, 230px);
  aspect-ratio: 1;
  min-height: 0;
  padding: 0;
  color: var(--accent-solid);
  background: transparent;
}

.editorial-visual .icon {
  width: 100%;
  height: 100%;
  --icon-fill: var(--accent-gradient);
}

.detail-grid,
.process-flow,
.article-grid,
.utility-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 54px);
}

.detail-list,
.process-step,
.article-card,
.utility-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.detail-list,
.process-step,
.article-card {
  padding: 0;
  background: transparent;
}

.detail-list .icon,
.utility-panel .icon {
  width: 46px;
  height: 46px;
  color: var(--accent-solid);
  --icon-fill: var(--accent-gradient);
}

.process-step .icon {
  width: 38px;
  height: 38px;
  color: var(--accent-solid);
  --icon-fill: var(--accent-gradient);
}

.detail-list h3,
.article-card :is(h2, h3),
.utility-panel h3 {
  color: var(--ink);
  font-size: var(--type-card-title);
}

.detail-list h3,
.utility-panel h3 {
  line-height: 1.2;
}

.process-step h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.22;
}

.article-card :is(h2, h3) {
  font-weight: 760;
  line-height: var(--leading-article-card-title);
}

.process-flow {
  --flow-gap: clamp(30px, 3vw, 46px);
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--flow-gap);
  align-items: stretch;
}

.process-step {
  position: relative;
  min-width: 0;
  min-height: 216px;
  padding: 22px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.process-step p {
  font-size: 16px;
  line-height: 1.43;
}

.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--flow-gap) / -2 - 16px);
  width: 32px;
  height: 32px;
  background: color-mix(in oklab, var(--accent-solid), transparent 8%);
  transform: translateY(-50%);
  -webkit-mask: url("../icons/chevron-right.svg") center / contain no-repeat;
  mask: url("../icons/chevron-right.svg") center / contain no-repeat;
}

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

.utility-panel {
  min-height: 240px;
  padding: clamp(28px, 4vw, 44px);
}

.article-grid {
  align-items: start;
}

.documentation-search-section {
  padding-block: 0;
}

.documentation-search {
  display: grid;
  gap: 18px;
  width: min(100%, 880px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.documentation-search__heading {
  display: grid;
  gap: 10px;
}

.documentation-search__heading .context {
  color: var(--accent-solid);
}

.documentation-search__heading h2 {
  color: var(--ink);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 760;
  line-height: var(--leading-article-heading);
}

.documentation-search__heading p:last-child,
.documentation-search__status,
.documentation-search__empty {
  color: var(--muted);
  line-height: 1.5;
}

.documentation-search__field {
  position: relative;
}

.documentation-search__field .icon {
  position: absolute;
  top: 50%;
  left: 18px;
  width: 22px;
  height: 22px;
  color: var(--accent-solid);
  transform: translateY(-50%);
  pointer-events: none;
}

.documentation-search__field input {
  width: 100%;
  min-height: 60px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 13px 52px;
  background: var(--surface-solid);
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.documentation-search__field input:focus {
  border-color: color-mix(in oklab, var(--accent-solid), transparent 38%);
  outline: 3px solid color-mix(in oklab, var(--accent-solid), transparent 82%);
}

.documentation-search__field input::placeholder {
  color: var(--subtle);
}

.documentation-search__status,
.documentation-search__empty {
  min-height: 1.5em;
  margin: 0;
  font-size: 15px;
}

.documentation-search__empty {
  color: var(--ink-soft);
}

.documentation-index-section .article-card .article-meta {
  color: var(--accent-solid);
  font-weight: 650;
}

.documentation-index-section [data-documentation-card][hidden] {
  display: none;
}

.article-card a {
  display: grid;
  gap: 16px;
  height: 100%;
}

.article-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  object-fit: cover;
  background: var(--surface);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--subtle);
  font-size: 14px;
}

.article-page > .article-meta--publication {
  align-items: center;
  gap: 8px 12px;
  margin-top: 20px;
}

.article-page > .article-meta--publication::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent-solid);
  content: "";
}

.article-meta__label {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-meta--publication time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.article-page {
  max-width: 880px;
  padding-top: clamp(74px, 8vw, 112px);
}

.article-title {
  line-height: var(--leading-article-title);
}

.article-page img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 34px;
  border-radius: var(--radius-xl);
  object-fit: cover;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-top: 44px;
}

.article-body > * {
  min-width: 0;
}

.article-body .article-figure {
  min-width: 0;
  margin: 12px 0;
}

.article-figure__link {
  display: block;
  border-radius: var(--radius-lg);
}

.article-figure__link:focus-visible {
  outline: 3px solid var(--accent-solid);
  outline-offset: 5px;
}

.article-body .article-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  margin: 0;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.article-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
}

.article-body h2 {
  margin-top: 26px;
  font-size: var(--type-article-h2);
  line-height: var(--leading-article-heading);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.article-body ul,
.article-body ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}

.article-table-wrap {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.article-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.article-table th,
.article-table td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.article-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Two reading columns share the existing grey reference surface. */
.article-table-wrap--reference {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 0 32px;
  padding: 8px 20px;
}

.article-table-wrap--reference th,
.article-table-wrap--reference td {
  padding: 12px 0;
}

.article-table-wrap--reference th:first-child,
.article-table-wrap--reference td:first-child {
  padding-right: 16px;
}

.shortcut-table .reference-keys {
  width: 36%;
}

.shortcut-table kbd,
.symbol-table td:first-child {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  font-size: .95em;
  font-weight: 600;
}

.shortcut-key {
  display: inline-block;
  white-space: nowrap;
}

.shortcut-join {
  display: inline-block;
  margin: 0 .35em;
  color: var(--muted);
}

.symbol-table .reference-keys {
  width: 24%;
}

.symbol-table td {
  vertical-align: top;
}

.symbol-description {
  display: block;
  margin-top: 4px;
}

@media (max-width: 900px) {
  .article-table-wrap--reference {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-table-wrap--reference table + table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .shortcut-table .reference-keys {
    width: 32%;
  }

  .symbol-table .reference-keys {
    width: 20%;
  }
}

@media (max-width: 620px) {
  .article-table-wrap--reference {
    padding: 6px 16px;
  }

  .article-table-wrap--reference th,
  .article-table-wrap--reference td {
    padding-block: 12px;
  }

  .article-table-wrap--reference th:first-child,
  .article-table-wrap--reference td:first-child {
    padding-right: 12px;
  }

  .shortcut-table .reference-keys {
    width: 40%;
  }

  .symbol-table .reference-keys {
    width: 26%;
  }

  .shortcut-join {
    margin: 0 .25em;
  }
}

.article-body a,
.page-lead a,
.section-lead a,
.editorial-copy-block a,
.detail-list a,
.process-step a,
.faq-card a,
.utility-panel a {
  color: var(--accent-solid);
  text-decoration: none;
}

.article-body a:hover,
.article-body a:focus-visible,
.page-lead a:hover,
.page-lead a:focus-visible,
.section-lead a:hover,
.section-lead a:focus-visible,
.editorial-copy-block a:hover,
.editorial-copy-block a:focus-visible,
.detail-list a:hover,
.detail-list a:focus-visible,
.process-step a:hover,
.process-step a:focus-visible,
.faq-card a:hover,
.faq-card a:focus-visible,
.utility-panel a:hover,
.utility-panel a:focus-visible {
  text-decoration: underline;
}

.article-cta,
.documentation-topic {
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.article-cta {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  padding: clamp(26px, 4vw, 44px);
}

.article-cta h2 {
  margin: 0;
  color: var(--ink);
  font-size: 34px;
  font-weight: 760;
  line-height: var(--leading-article-heading);
  hyphens: auto;
  overflow-wrap: anywhere;
}

.article-cta p:not(.context) {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.article-cta .actions {
  justify-content: flex-start;
  margin-top: 4px;
}

.article-navigation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px clamp(18px, 3vw, 28px);
  align-items: start;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.article-navigation__overview {
  align-self: start;
  white-space: nowrap;
}

.article-navigation__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.article-body .article-navigation__link {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 112px;
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: background var(--motion-fast), transform var(--motion-fast);
}

.article-body .article-navigation__link:hover,
.article-body .article-navigation__link:focus-visible {
  background: var(--surface-raised);
  text-decoration: none;
  transform: translateY(-1px);
}

.article-navigation__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-solid);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.article-navigation__icon {
  width: 16px;
  height: 16px;
  --icon-fill: currentColor;
}

.article-navigation__icon--back {
  transform: rotate(180deg);
}

.article-navigation__title {
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.28;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.documentation-topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.documentation-topic {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: clamp(22px, 3vw, 32px);
}

.documentation-topic h3 {
  color: var(--ink);
  font-size: var(--type-card-title);
  line-height: 1.2;
}

.documentation-topic p {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.5;
}

.simple-form {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}

.not-found {
  display: grid;
  place-items: center;
  min-height: calc(100svh - var(--header-h) - 220px);
  padding-top: clamp(76px, 9vw, 118px);
  text-align: center;
}

.not-found > div {
  display: grid;
  justify-items: center;
  gap: 24px;
  max-width: 760px;
  padding: clamp(34px, 6vw, 74px);
}

.not-found p {
  color: var(--muted);
  font-size: var(--type-page-lead);
  line-height: 1.45;
}

.not-found > div,
.legal-card,
.legal-document,
.response-card {
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.not-found > div > .icon {
  width: 70px;
  height: 70px;
  --icon-fill: var(--accent-gradient);
}

.privacy-text {
  display: grid;
  gap: 22px;
}

.privacy-text h2 {
  margin-top: 22px;
}

.privacy-text p,
.privacy-text li {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.privacy-text ul {
  display: grid;
  gap: 8px;
}

.legal-shell {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(22px, 4vw, 54px);
}

.legal-shell > *,
.legal-sidebar > *,
.legal-card,
.legal-document,
.legal-actions {
  min-width: 0;
  max-width: 100%;
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 14px;
}

.legal-card {
  display: grid;
  gap: 9px;
  padding: clamp(20px, 2.5vw, 28px);
}

.legal-card .context,
.response-card .context,
.not-found .context {
  margin-bottom: 4px;
}

.legal-card strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.legal-card p,
.legal-document p,
.legal-document li,
.response-card p,
.response-note {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.legal-actions {
  display: grid;
  gap: var(--action-stack-gap);
  margin-top: 4px;
}

.legal-actions .button {
  justify-content: center;
}

.legal-document {
  padding: clamp(28px, 5vw, 64px);
}

.legal-document__body {
  display: grid;
  gap: 18px;
  max-width: 860px;
}

.legal-document h2 {
  margin-top: clamp(22px, 4vw, 44px);
  color: var(--ink);
  font-size: 42px;
  font-weight: 760;
  line-height: 1.21;
}

.legal-document h2:first-child {
  margin-top: 0;
}

.legal-document h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 720;
  line-height: 1.22;
}

.legal-document h4 {
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.2em;
}

.legal-document a {
  color: var(--accent-solid);
  text-decoration: none;
}

.legal-document a:hover,
.legal-document a:focus-visible {
  text-decoration: underline;
}

.legal-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 42px);
  margin-bottom: 10px;
}

.response-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.52fr);
  gap: clamp(18px, 3vw, 34px);
}

.response-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: clamp(28px, 5vw, 58px);
}

.response-card h2 {
  color: var(--ink);
  font-size: 62px;
  font-weight: 760;
  line-height: 1.16;
}

.response-card--contact h2 {
  font-size: 42px;
}

.response-note {
  margin-top: 6px;
  border-left: 3px solid var(--accent-solid);
  padding-left: 18px;
}

.response-actions-main {
  justify-content: flex-start;
  margin-top: 10px;
}

.response-card .contact-actions {
  margin-top: 8px;
}

.response-card .contact-button {
  background: var(--surface-solid);
}

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

.tool-section {
  gap: clamp(26px, 4vw, 42px);
}

.tool-shell {
  position: relative;
  display: grid;
  gap: clamp(22px, 3.6vw, 38px);
  border: 0;
  border-radius: var(--radius-xl);
  padding: clamp(24px, 4vw, 44px);
  background: color-mix(in oklab, var(--surface), var(--surface-solid) 28%);
  box-shadow: none;
}

.tool-shell--wide {
  width: 100%;
}

.service-calculator-section {
  gap: clamp(26px, 4vw, 42px);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.service-calculator {
  --calculator-accent: var(--accent-solid);
}

.service-calculator__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(300px, 0.72fr);
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
}

.service-calculator__modules {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(16px, 2vw, 22px);
}

.service-calculator__module,
.service-calculator__summary-box,
.service-calculator__subgroup {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.service-calculator__module {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 22px;
  min-width: 0;
  padding: clamp(20px, 2.7vw, 28px);
  transition: opacity var(--motion-fast), background var(--motion-fast);
}

.service-calculator__module--wide {
  grid-column: 1 / -1;
}

.service-calculator__module.is-disabled {
  background: color-mix(in oklab, var(--surface-solid), var(--surface) 38%);
}

.service-calculator__module-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.service-calculator__module-head > div {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.service-calculator__module h3 {
  color: var(--ink);
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 730;
  line-height: 1.24;
}

.service-calculator__module-head p,
.service-calculator__subgroup p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.service-calculator__fields > .field:only-child,
.service-calculator__fields > .field:nth-child(3):last-child,
.service-calculator__fields > .field:nth-child(5):last-child {
  grid-column: 1 / -1;
}

.service-calculator__toggle,
.service-calculator__check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 680;
  cursor: pointer;
}

.service-calculator__toggle {
  flex: 0 0 auto;
  min-height: 40px;
  border-radius: var(--radius-pill);
  padding: 8px 13px;
  background: color-mix(in oklab, var(--calculator-accent), var(--surface) 91%);
  color: var(--calculator-accent);
  font-size: 14px;
}

.service-calculator__toggle input,
.service-calculator__check input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--calculator-accent);
}

.service-calculator__subgroup {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: color-mix(in oklab, var(--calculator-accent), var(--surface-solid) 96%);
}

.service-calculator__subgroup h4 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.service-calculator__summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 12px;
}

.service-calculator__summary-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 18px 20px;
}

.service-calculator__summary-box span {
  color: var(--calculator-accent);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.service-calculator__summary-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.service-calculator__summary-box output {
  color: var(--ink);
  min-width: 0;
  min-height: 1.3em;
  font-size: clamp(18px, 1.6vw, 21px);
  font-weight: 720;
  font-variant-numeric: tabular-nums;
  line-height: 1.24;
}

.service-calculator__metric-pair {
  display: grid;
  grid-template-columns: minmax(82px, 0.78fr) minmax(112px, 1.22fr);
  align-items: baseline;
  gap: 12px;
}

.service-calculator__metric-pair span {
  min-width: 0;
  white-space: nowrap;
}

.service-calculator__metric-pair span:first-child {
  color: var(--muted);
  font-weight: 650;
}

.service-calculator__summary .button {
  justify-content: center;
  width: 100%;
  margin-top: 4px;
}

.service-calculator > .tool-note {
  max-width: 900px;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--action-stack-gap);
}

.tool-actions .button,
.tool-actions .contact-button {
  min-height: 42px;
  cursor: pointer;
}

.tool-actions .icon {
  width: 17px;
  height: 17px;
}

.tool-status,
.tool-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.tool-status {
  min-height: 20px;
}

.tool-status:empty {
  display: none;
}

.kv-timebar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: end;
  gap: clamp(18px, 4vw, 36px);
}

.kv-timebox {
  max-width: 680px;
  gap: 16px;
}

.kv-timebox__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.kv-timebox label {
  font-size: 22px;
  font-weight: 720;
  line-height: 1.1;
}

.kv-timebox input[type="range"] {
  --track-color: color-mix(in oklab, var(--line-strong), transparent 10%);
  --track-active: var(--accent-solid);
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-height: 24px;
  height: 24px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0;
  background:
    linear-gradient(90deg, var(--track-active), var(--track-active)) left center / var(--range-progress, 50%) 10px no-repeat,
    linear-gradient(90deg, var(--track-color), var(--track-color)) left center / 100% 10px no-repeat;
  cursor: pointer;
}

.kv-timebox input[type="range"]:focus {
  outline: 0;
}

.kv-timebox input[type="range"]:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--accent-solid), transparent 82%);
  outline-offset: 4px;
}

.kv-timebox input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--accent-solid);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--accent-solid), transparent 62%);
}

.kv-timebox input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid var(--surface-solid);
  border-radius: 50%;
  background: var(--accent-solid);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--accent-solid), transparent 62%);
}

.kv-timebox p {
  margin: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  white-space: nowrap;
}

.kv-timebox strong {
  color: var(--ink);
  font-weight: 720;
}

.kv-import-label {
  cursor: pointer;
}

.kv-summary,
.kv-columns {
  display: grid;
  gap: clamp(16px, 2.6vw, 28px);
}

.kv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv-columns { grid-template-columns: repeat(auto-fit, minmax(min(100%, 500px), 1fr)); }

.kv-scenario-summary,
.kv-column {
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--surface-solid);
}

.kv-scenario-summary {
  --kv-state: var(--accent-solid);
  display: grid;
  gap: 7px;
  padding: clamp(18px, 2.5vw, 26px);
  transition: border-color var(--motion-fast), background var(--motion-fast);
}

.kv-scenario-summary span {
  color: var(--kv-state);
  font-size: 14px;
  font-weight: 700;
}

.kv-scenario-summary strong {
  color: var(--ink);
  font-size: 46px;
  font-weight: 760;
  line-height: 1;
}

.kv-scenario-summary p {
  color: var(--muted);
  font-size: 15px;
}

.kv-scenario-summary.kv-neutral {
  --kv-state: var(--accent-solid);
  border-color: color-mix(in oklab, var(--accent-solid), transparent 38%);
  background: color-mix(in oklab, var(--accent-solid), var(--surface-solid) 94%);
}

.kv-scenario-summary.kv-better {
  --kv-state: #32d583;
  border-color: color-mix(in oklab, var(--kv-state), transparent 35%);
  background: color-mix(in oklab, var(--kv-state), var(--surface-solid) 93%);
}

.kv-scenario-summary.kv-worse {
  --kv-state: #ff6b6b;
  border-color: color-mix(in oklab, var(--kv-state), transparent 42%);
  background: color-mix(in oklab, var(--kv-state), var(--surface-solid) 95%);
}

.kv-column {
  overflow: hidden;
}

.kv-column-inner {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  padding: clamp(20px, 3vw, 30px);
}

.kv-column-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.kv-column-head .icon {
  width: 42px;
  height: 42px;
  --icon-fill: var(--accent-gradient);
}

.kv-column-head h3,
.wizard-title {
  color: var(--ink);
  font-size: 34px;
  font-weight: 760;
  line-height: 1.21;
}

.kv-column-head p,
.kv-column-hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.kv-block {
  display: grid;
  gap: 12px;
}

.kv-block__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kv-block h4 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 720;
}

.kv-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
}

.kv-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.kv-table th,
.kv-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.kv-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.kv-table td:last-child,
.kv-table th:last-child {
  width: 50px;
  text-align: center;
}

.kv-table-once th:nth-child(1),
.kv-table-once td:nth-child(1) {
  width: 52%;
}

.kv-table-once th:nth-child(2),
.kv-table-once td:nth-child(2) {
  width: 30%;
}

.kv-table-fixed th:nth-child(1),
.kv-table-fixed td:nth-child(1),
.kv-table-licenses th:nth-child(1),
.kv-table-licenses td:nth-child(1) {
  width: 36%;
}

.kv-table-fixed th:nth-child(2),
.kv-table-fixed td:nth-child(2),
.kv-table-fixed th:nth-child(3),
.kv-table-fixed td:nth-child(3),
.kv-table-licenses th:nth-child(2),
.kv-table-licenses td:nth-child(2),
.kv-table-licenses th:nth-child(3),
.kv-table-licenses td:nth-child(3) {
  width: 22%;
}

.kv-table tbody tr:last-child td {
  border-bottom: 0;
}

.kv-table {
  --control-surface: var(--surface);
  --control-padding-inline: 10px;
  --control-font-size: 14px;
}

.kv-row-add,
.kv-row-remove,
.wizard-icon-btn,
.wizard-option {
  font: inherit;
  cursor: pointer;
}

.kv-row-add {
  min-height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.kv-row-remove {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: transparent;
  color: var(--danger);
  font-size: 0;
}

.kv-row-remove::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: url("../icons/circle-minus.svg") center / contain no-repeat;
  mask: url("../icons/circle-minus.svg") center / contain no-repeat;
}

.kv-row-add:hover,
.kv-row-add:focus-visible {
  background: var(--surface-soft);
  color: var(--ink);
}

.kv-row-remove:hover,
.kv-row-remove:focus-visible {
  background: var(--danger-soft);
  color: var(--danger);
}

.diagnose-wizard {
  padding: clamp(18px, 3vw, 28px);
}

.diagnose-wizard__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: clamp(16px, 2.8vw, 28px);
}

.diagnose-wizard__panel {
  display: grid;
  align-content: start;
  gap: 20px;
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--surface-solid);
}

.wizard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wizard-step,
.wizard-breadcrumb {
  color: var(--accent-solid);
  font-size: 13px;
  font-weight: 700;
}

.wizard-actions {
  display: flex;
  gap: 8px;
}

.wizard-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
}

.wizard-icon-btn:disabled {
  opacity: 0.38;
  cursor: default;
}

.wizard-icon-btn:not(:disabled):hover,
.wizard-icon-btn:not(:disabled):focus-visible {
  background: var(--surface-soft);
}

.wizard-icon-btn .icon {
  width: 17px;
  height: 17px;
  --icon-fill: currentColor;
}

.wizard-icon-btn--back .icon {
  transform: rotate(180deg);
}

.wizard-breadcrumb {
  min-height: 20px;
  color: var(--muted);
}

.wizard-lead,
.wizard-explain__body p,
.wizard-summary p,
.wizard-summary li {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.wizard-options {
  display: grid;
  gap: 12px;
}

.wizard-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  background: var(--surface);
  color: var(--ink);
  text-align: left;
  font-weight: 650;
  transition: transform var(--motion-fast), background var(--motion-fast), border-color var(--motion-fast);
}

.wizard-option::after {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-left: 18px;
  background: var(--accent-solid);
  -webkit-mask: url("../icons/chevron-right.svg") center / contain no-repeat;
  mask: url("../icons/chevron-right.svg") center / contain no-repeat;
}

.wizard-option:hover,
.wizard-option:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in oklab, var(--accent-solid), transparent 48%);
  background: var(--surface-soft);
}

.wizard-option--primary {
  border-color: transparent;
  background: var(--accent-solid);
  color: var(--accent-contrast);
}

.wizard-option--primary::after {
  background: currentColor;
}

.wizard-summary,
.wizard-contact {
  display: grid;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.wizard-summary[hidden],
.wizard-contact[hidden] {
  display: none;
}

.wizard-summary__title,
.wizard-explain__title {
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.wizard-summary__details {
  color: var(--muted);
  font-size: 15px;
}

.wizard-summary__list,
.wizard-bullets {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 1.2em;
}

.wizard-contact-fields .field:nth-child(3),
.wizard-contact-comment {
  grid-column: 1 / -1;
}

.wizard-contact-actions [aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
}

.typomat-layout {
  max-width: 940px;
  margin-inline: auto;
}

.typomat-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.typomat-field textarea {
  min-height: clamp(300px, 42vw, 520px);
  line-height: 1.6;
}

.typomat-toast {
  position: fixed;
  right: clamp(18px, 4vw, 38px);
  bottom: clamp(18px, 4vw, 38px);
  z-index: 120;
  max-width: min(360px, calc(100vw - 36px));
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 11px 16px;
  background: color-mix(in oklab, var(--surface-solid), transparent 3%);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  font-size: 14px;
  font-weight: 650;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--motion-fast), transform var(--motion-fast);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
}

.typomat-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .editorial-layout,
  .editorial-layout--reverse,
  .legal-shell,
  .response-grid,
  .detail-grid,
  .process-flow,
  .article-grid,
  .utility-grid,
  .documentation-topic-grid,
  .service-calculator__layout,
  .kv-timebar,
  .kv-columns,
  .diagnose-wizard__grid {
    grid-template-columns: 1fr;
  }

  .editorial-layout--reverse .editorial-visual {
    order: 0;
  }

  .legal-sidebar {
    position: static;
  }

  .service-calculator__summary {
    position: static;
  }

  .legal-card strong {
    font-size: 20px;
  }

  .legal-document h2 {
    font-size: 36px;
  }

  .legal-document h3 {
    font-size: 22px;
  }

  .response-card h2 {
    font-size: 46px;
  }

  .response-card--contact h2 {
    font-size: 34px;
  }

  .kv-scenario-summary strong {
    font-size: 38px;
  }

  .kv-column-head h3,
  .wizard-title {
    font-size: 30px;
  }

  .process-step {
    min-height: 0;
  }

  .process-step:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: calc(var(--flow-gap) / -2 - 16px);
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }

  .tool-actions,
  .typomat-toolbar {
    justify-content: flex-start;
  }

  .typomat-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .page-hero,
  .page-section,
  .article-page,
  .not-found {
    width: min(calc(100% - 32px), var(--max));
  }

  .page-title,
  .not-found h1 {
    font-size: var(--type-page-title);
    line-height: 1.21;
  }

  .article-title {
    font-size: var(--type-article-title);
    line-height: var(--leading-article-title);
  }

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

  .article-navigation__overview {
    justify-self: start;
  }

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

  .not-found h1 {
    font-size: var(--type-not-found);
  }

  .page-lead,
  .article-lead,
  .section-lead {
    font-size: var(--type-page-lead);
  }

  .legal-card strong {
    font-size: 19px;
  }

  .legal-document h2 {
    font-size: 30px;
  }

  .legal-document h3 {
    font-size: 21px;
  }

  .response-card h2 {
    font-size: 34px;
  }

  .response-card--contact h2 {
    font-size: 30px;
  }

  .kv-timebox label,
  .kv-timebox p {
    font-size: 18px;
  }

  .kv-scenario-summary strong {
    font-size: 32px;
  }

  .kv-column-head h3,
  .wizard-title {
    font-size: 28px;
  }

  .wizard-summary__title,
  .wizard-explain__title {
    font-size: 20px;
  }

  .editorial-copy-block .actions {
    justify-content: center;
  }

  .tool-shell {
    border-radius: var(--radius-lg);
    padding: 20px;
  }

  .kv-summary,
  .service-calculator__modules,
  .legal-columns {
    grid-template-columns: 1fr;
  }

  .kv-block__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .service-calculator__module--wide,
  .service-calculator__fields > .field:only-child,
  .service-calculator__fields > .field:nth-child(3):last-child,
  .service-calculator__fields > .field:nth-child(5):last-child {
    grid-column: auto;
  }

  .service-calculator__module-head {
    align-items: stretch;
    flex-direction: column;
  }

  .service-calculator__toggle {
    align-self: flex-start;
  }

  .kv-table {
    display: block;
    --control-padding-inline: 12px;
    --control-font-size: 16px;
  }

  /* Keep table semantics and column headings available to assistive tools.
     Visually, narrow screens get labelled fields instead of cramped columns. */
  .kv-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .kv-table tbody { display: block; }

  .kv-table tbody tr {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }

  .kv-table tbody tr:last-child { border-bottom: 0; }

  .kv-table tbody td[role="cell"] {
    display: grid;
    align-content: start;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .kv-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.5;
  }

  .kv-table tbody td:first-child,
  .kv-table-once tbody td:nth-child(2) {
    grid-column: 1 / -1;
  }

  .kv-table tbody td:first-child::before { padding-right: 30px; }

  .kv-table tbody td:last-child {
    position: absolute;
    top: 3px;
    right: 3px;
  }

  @supports (grid-template-rows: subgrid) {
    .kv-table tbody tr { row-gap: 8px; }
    .kv-table td[data-label] {
      grid-template-rows: subgrid;
      grid-row: span 2;
    }
  }

  .kv-row-remove {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .kv-row-remove::before {
    width: 20px;
    height: 20px;
  }

  .tool-actions .button,
  .tool-actions .contact-button {
    width: 100%;
  }

  .wizard-option {
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .kv-table tbody tr { grid-template-columns: minmax(0, 1fr); }
}

.showcase-stack {
  display: grid;
  gap: 34px;
}

.showcase-case {
  --showcase-media-width: clamp(440px, 38vw, 560px);
  scroll-margin-top: clamp(6rem, 10vw, 9rem);
  display: grid;
  grid-template-columns: var(--showcase-media-width) minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(42px, 6vw, 74px) clamp(36px, 6vw, 76px);
  border-radius: var(--radius-xl);
  background: var(--surface);
}

.showcase-case--reverse {
  grid-template-columns: var(--showcase-media-width) minmax(0, 1fr);
}

.showcase-case--reverse .showcase-case__media {
  order: -1;
}

.showcase-case__media {
  display: block;
  aspect-ratio: 16 / 10;
  width: 100%;
  max-width: var(--showcase-media-width);
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: transparent;
  justify-self: center;
}

.showcase-case__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.showcase-slideshow {
  position: relative;
  isolation: isolate;
  border-radius: 0;
}

.showcase-slideshow img[data-showcase-slide] {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 1100ms ease,
    visibility 0s linear 1100ms;
}

.showcase-slideshow img[data-showcase-slide].is-active {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.showcase-case__copy {
  display: grid;
  gap: 0;
  align-content: center;
  min-width: 0;
  max-width: 780px;
}

.showcase-case__copy .context {
  color: var(--ylw);
}

.showcase-case__copy h2 {
  color: var(--ink);
  font-size: var(--type-editorial-title);
  font-weight: 760;
  line-height: 1.2;
}

.showcase-case__copy p:not(.context) {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.showcase-case__copy h2 + p,
.showcase-case__copy p:not(.context) + p {
  margin-top: 18px;
}

.showcase-case__actions {
  justify-content: flex-start;
  margin-top: 28px;
}

.showcase-design-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
  align-items: stretch;
}

.design-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  appearance: none;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  perspective: 1200px;
}

.design-tile__inner {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.design-tile:hover .design-tile__inner,
.design-tile:focus-visible .design-tile__inner,
.design-tile.is-active .design-tile__inner {
  transform: rotateY(180deg);
}

.design-tile:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.design-tile__face {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  border-radius: inherit;
  background: var(--surface);
  backface-visibility: hidden;
}

.design-tile__face--back {
  align-content: end;
  gap: 10px;
  padding: clamp(22px, 3vw, 30px);
  transform: rotateY(180deg);
}

.design-tile__media {
  display: block;
  width: 100%;
  height: 100%;
  background: transparent;
}

.design-tile__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.design-tile__empty {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--surface-soft);
}

.design-tile__meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.2;
}

.design-tile__title {
  color: var(--ink);
  font-size: var(--type-card-title);
  font-weight: 740;
  line-height: 1.16;
}

.design-tile__text {
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.resource-page {
  gap: clamp(52px, 7vw, 92px);
}

.resource-jump-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: var(--container);
  margin-inline: auto;
  gap: 10px;
}

.resource-jump-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  color: var(--ink);
  background: var(--surface);
  font-size: 15px;
  font-weight: 650;
}

.resource-jump-links a:hover {
  color: var(--accent-solid);
  background: var(--surface-raised);
}

.resource-section {
  gap: clamp(30px, 4vw, 46px);
  scroll-margin-top: 118px;
}

.resource-app-grid,
.resource-provider-grid,
.resource-repository-grid {
  display: grid;
  gap: clamp(16px, 2.2vw, 26px);
}

.resource-app-grid,
.resource-repository-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-provider-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.resource-repository {
  min-width: 0;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.resource-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(24px, 3vw, 34px);
}

.resource-app-icon {
  display: block;
  width: 78px;
  height: 78px;
  margin-bottom: 24px;
  border-radius: 22%;
  object-fit: contain;
}

.resource-card__copy {
  min-width: 0;
}

.resource-card__copy .context,
.resource-repository__copy .context {
  margin: 0 0 8px;
}

.resource-card h3,
.resource-repository h3 {
  color: var(--ink);
  font-size: var(--type-card-title);
  font-weight: 740;
  line-height: 1.22;
}

.resource-card__copy > p:not(.context),
.resource-repository__copy > p:not(.context) {
  margin-top: 12px;
  color: var(--muted);
  font-size: var(--type-body-lg);
  line-height: 1.55;
}

.resource-card__actions {
  justify-content: flex-start;
  width: 100%;
  margin-top: auto;
  padding-top: 26px;
}

.resource-provider-card > .button {
  margin-top: auto;
}

.resource-provider-mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 112px;
  margin-bottom: 24px;
}

.resource-provider-logo {
  display: block;
  width: min(100%, 220px);
  height: 76px;
  object-fit: contain;
}

.resource-provider-logo--compact {
  width: 74px;
}

.resource-provider-logo--init7 {
  width: 108px;
  height: 42px;
}

.resource-provider-logo--raspberry-pi {
  width: 46px;
  height: 52px;
}

.resource-provider-logo--bambu-lab {
  width: 138px;
  height: 42px;
}

.resource-provider-logo--mosyle {
  width: 220px;
  height: 94px;
}

.resource-provider-logo--argio {
  width: 130px;
  height: 35px;
}

:root[data-theme="dark"] .resource-provider-logo:not([data-theme-logo-dark]) {
  filter: saturate(0.9) brightness(1.35);
}

:root[data-theme="dark"] .resource-provider-logo--mosyle {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.resource-provider-card .resource-card__copy {
  margin-bottom: 26px;
}

.resource-repository {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px;
  align-items: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 30px);
}

.resource-repository__icon {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.resource-repository__copy {
  min-width: 0;
}

.resource-repository__link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface-raised);
}

.resource-repository__link:hover {
  color: var(--page);
  background: var(--ink);
  transform: translateY(-1px);
}

.resource-repository__link .icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 1040px) {
  .showcase-case,
  .showcase-case--reverse {
    grid-template-columns: 1fr;
  }

  .showcase-case--reverse .showcase-case__media {
    order: 0;
  }

  .showcase-design-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resource-provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .showcase-case {
    padding: 28px;
  }

  .showcase-case {
    gap: 22px;
  }

  .showcase-case__media {
    aspect-ratio: 16 / 10;
  }

  .showcase-case__copy h2 {
    font-size: 36px;
  }

  .showcase-design-grid {
    grid-template-columns: 1fr;
  }

  .resource-app-grid,
  .resource-provider-grid,
  .resource-repository-grid {
    grid-template-columns: 1fr;
  }

  .resource-card {
    padding: 24px;
  }

  .resource-card__actions {
    width: 100%;
  }

  .resource-repository {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 22px;
  }

  .resource-repository__icon {
    width: 32px;
    height: 32px;
  }

  .resource-repository__link {
    grid-column: 2;
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .showcase-slideshow img[data-showcase-slide] {
    transition: none;
  }

  .design-tile__inner {
    transition: none;
  }
}
