.practice {
  --practice-width: 78rem;
  padding: clamp(1.45rem, 3.8svh, 3.1rem) var(--lab8-pad);
  color: #f7f6fc;
  scroll-margin-top: var(--lab8-header-h);
}

.practice-intro,
.practice-path,
.practice-actions {
  max-width: var(--practice-width);
  margin-inline: auto;
}

.practice-intro {
  margin-bottom: clamp(1.05rem, 2.6svh, 1.75rem);
}

.practice-intro h2 {
  margin: 0;
  font: 500 clamp(2.1rem, min(5.25vw, 7.1svh), 4.5rem)/1.02 var(--lab8-font-display);
  letter-spacing: -.055em;
}

.practice-intro p {
  max-width: 60ch;
  margin: .6rem 0 0;
  color: #dfddff;
  font-size: clamp(1.0625rem, 1.6vw, 1.45rem);
  line-height: 1.3;
}

.practice-path {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3.6rem);
}

.practice-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.practice-steps li {
  position: relative;
  padding: 0 0 clamp(.7rem, 1.6svh, 1rem) 1.15rem;
  border-inline-start: 1px solid #9294cc;
}

.practice-steps li::before {
  position: absolute;
  inset: .25rem auto auto -.35rem;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: #a9a8ea;
  content: "";
}

.practice-steps li:last-child {
  padding-bottom: 0;
  border-color: transparent;
}

.practice-steps li:last-child::before {
  background: var(--lab8-yellow);
}

.practice-steps h3 {
  margin: 0;
  font: 600 clamp(1.125rem, 1.65vw, 1.5rem)/1.13 var(--lab8-font-display);
  letter-spacing: -.025em;
}

.practice-steps p {
  max-width: 60ch;
  margin: .32rem 0 0;
  color: #e0dff1;
  line-height: 1.4;
}

.practice-delivery {
  overflow: hidden;
  margin: 0;
  border: 1px solid #797bb1;
  border-radius: .65rem;
  background: #24274c;
}

@media (min-width: 701px) {
  .practice-delivery {
    width: min(100%, max(18rem, 66svh));
    justify-self: end;
  }
}

@media (min-width: 701px) and (max-height: 680px) {
  .practice {
    padding-block: max(1.05rem, 3svh);
  }
}

.practice-delivery figure {
  margin: 0;
}

.practice-delivery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center top;
  background: #171935;
}

.practice-gallery-image {
  display: block;
}

.practice-contact,
.practice-conversation {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .75rem;
}

.practice-gallery-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .25rem .65rem;
  padding: .2rem .85rem;
  border-top: 1px solid #797bb166;
}

.practice-gallery-controls .project-gallery-label {
  font-size: .875rem;
  color: #e0dff1;
}

.practice-gallery-controls a {
  font-weight: 600;
  text-underline-offset: .18em;
}

.practice-gallery-buttons:not([hidden]) {
  display: flex;
  gap: .25rem;
  margin-inline-start: auto;
}

.practice-gallery-buttons button {
  min-width: 44px;
  min-height: 44px;
  padding-inline: .5rem;
  border: 0;
  border-radius: .3rem;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.practice-gallery-buttons button:hover {
  background: #b9bdff26;
}

.practice-gallery-status {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  overflow: hidden;
}

.practice-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem 1.25rem;
  margin-top: clamp(.85rem, 2.1svh, 1.4rem);
}

.practice-conversation {
  color: inherit;
  text-underline-offset: .2em;
}

.practice .practice-contact {
  width: fit-content;
  padding: .55rem .9rem;
  border-radius: .2rem;
  background: var(--lab8-yellow);
  color: #101116;
  font-weight: 700;
  text-decoration: none;
}

.practice-contact:hover {
  background: #fff09d;
}

.practice a:focus-visible {
  outline: 2px solid #f7f6fc;
  outline-offset: 4px;
}

.practice .practice-gallery-image:focus-visible {
  outline-offset: -4px;
}

@media (max-width: 700px) {
  .practice-path {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .practice {
    padding-block: 1.45rem;
  }

  .practice-intro h2 {
    font-size: clamp(1.9rem, 8.3vw, 2.55rem);
  }

  .practice-steps p {
    font-size: .95rem;
  }

}
