.technology-page {
  max-width: 75rem;
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3rem, 8vw, 6rem);
}

.technology-heading {
  display: grid;
  align-items: end;
  gap: 1.5rem;
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
}

.technology-heading h1,
.technology-page h2,
.technology-page h3,
.technology-example .technology-steps h4 {
  margin: 0;
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.16;
}

.technology-heading h1 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 6.5vw, 5rem);
  letter-spacing: -.065em;
  text-wrap: balance;
}

.technology-heading h1 span {
  color: var(--blue);
}

.technology-page h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.65rem);
  text-wrap: balance;
}

.technology-page h3,
.technology-example .technology-steps h4 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
}

.technology-intro p,
.technology-card p,
.technology-example p,
.technology-migration p,
.technology-contact p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.technology-intro p {
  max-width: 55ch;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.technology-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  margin-top: 1.25rem;
}

.technology-jumps a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--blue);
  font-size: .9375rem;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-color: var(--line);
  text-underline-offset: .35em;
}

.technology-jumps a:is(:hover, :focus-visible) {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.technology-stack {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.technology-stack-grid {
  margin-top: .375rem;
}

.technology-card {
  display: grid;
  height: 100%;
  align-content: start;
  gap: .75rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  scroll-margin-top: 1.5rem;
}

.technology-card:target {
  border-color: var(--blue);
}

.technology-card .technology-tools,
.technology-example .technology-example-label {
  color: var(--blue);
  font-weight: 700;
  font-size: .875rem;
}

.technology-examples,
.technology-example-slides {
  display: grid;
  gap: 1rem;
}

.technology-examples {
  scroll-margin-top: 1.5rem;
}

.technology-examples .carousel-controls:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .375rem;
  padding-inline: 0;
  border-top: 0;
}

.technology-examples .carousel-controls button {
  min-width: 0;
  padding-inline: .5rem;
}

.technology-example {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.375rem, 4.4vw, 3.125rem);
  background: radial-gradient(ellipse at 0 0, var(--surface-raised), var(--surface) 75%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.technology-example-intro {
  display: grid;
  align-content: start;
  gap: .75rem;
}

.technology-example-intro h2 {
  max-width: 17ch;
}

.technology-examples .technology-example-intro h3 {
  max-width: 21ch;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  text-wrap: balance;
}

.technology-example-intro p:last-child {
  max-width: 38ch;
}

.technology-steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-inline-start: 1.5rem;
}

.technology-steps li {
  padding: 0 0 1rem .25rem;
  border-bottom: 1px solid var(--line);
}

.technology-steps li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.technology-steps li::marker {
  color: var(--brand-text);
  font-weight: 700;
}

.technology-steps :is(h3, h4) {
  margin-bottom: .35rem;
}

.technology-migration {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-block: clamp(1.75rem, 4vw, 2.75rem);
  border-block: 1px solid var(--line);
  scroll-margin-top: 1.5rem;
}

.technology-migration:target {
  border-color: var(--blue);
}

.technology-migration p {
  max-width: 58ch;
  margin-top: .75rem;
}

.technology-contact {
  display: grid;
  justify-items: start;
  align-items: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.technology-contact p {
  max-width: 55ch;
  margin-top: .625rem;
}

.architecture-back { margin-bottom: .75rem; }
.architecture-section {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 1.5rem;
}
.architecture-section > h2 { max-width: 28ch; }
.architecture-section > p {
  max-width: 72ch;
  margin: .75rem 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.architecture-page .technology-example-intro p:last-child { max-width: 45ch; }
.technology-migration .service-link { margin-top: .375rem; }

@media (min-width: 48rem) {
  .technology-examples .carousel-controls:not([hidden]) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .technology-heading {
    grid-template-columns: 1.25fr 1fr;
    gap: clamp(1.5rem, 5vw, 4rem);
  }

  .technology-example,
  .technology-migration {
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(1.75rem, 5vw, 4rem);
  }

  .technology-contact {
    grid-template-columns: 1fr auto;
  }
}

