/* Dev layout study: a compact career rail with wide, factual cards. */
.experience-screens {
  overflow: visible;
}

.experience-screens::before {
  content: "";
  position: absolute;
  top: 112px;
  bottom: 44px;
  left: 27px;
  width: 1px;
  background: var(--border);
}

.experience-screens .work-screen[data-screen] {
  padding: 14px 0;
}

.experience-screens .work-screen:first-child {
  padding-top: 42px;
}

.work-screen .experience-stage {
  padding-left: 78px;
}

.work-screen .journey-kicker {
  display: none;
}

.experience-screens .work-screen:not(:first-child) .section-heading {
  display: none;
}

.experience-screens .work-screen:first-child .section-heading {
  margin-bottom: 20px;
}

.work-screen .experience-card {
  position: relative;
  overflow: visible;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 3%, var(--panel));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.work-screen .experience-card:hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--border));
  background: color-mix(in srgb, var(--brand) 5%, var(--panel));
  transform: translateY(-2px);
}

.work-screen .experience-head {
  min-height: 0;
  padding: 25px 28px 18px;
}

.work-screen .experience-head > .company-icon {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: -78px;
  width: 54px;
  height: 54px;
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 16%, var(--panel));
  box-shadow:
    0 0 0 8px var(--bg),
    0 12px 28px rgba(0, 0, 0, 0.16);
}

.work-screen .brand-zyp .company-icon img {
  width: 46px;
  height: 46px;
}

.work-screen .brand-next .company-icon img {
  width: 50px;
  height: 50px;
}

.work-screen .brand-osu .company-icon img {
  width: 29px;
  height: 36px;
}

.work-screen .experience-title {
  gap: 6px 24px;
}

.work-screen .experience-title h3 {
  font-size: 22px;
}

.work-screen .experience-title p {
  font-size: 13px;
}

.work-screen .experience-title .period {
  font-size: 10px;
}

.work-screen .contribution-list {
  padding: 3px 28px 13px;
  border-top: 0;
}

.work-screen .contribution {
  margin-bottom: 13px;
  padding-left: 24px;
}

.work-screen .contribution::before {
  left: 3px;
  color: color-mix(in srgb, var(--brand) 56%, var(--secondary));
}

.work-screen .contribution p {
  font-size: 14px;
  line-height: 1.65;
}

.work-screen .contribution-list > .subtle-link {
  margin: 4px 0 3px 24px;
}

.work-screen .experience-foot {
  justify-content: space-between;
  margin: 2px 28px 0;
  padding: 17px 0 22px;
}

.work-screen .experience-foot .tags {
  flex-wrap: wrap;
  gap: 7px;
}

.work-screen .experience-foot .skills-label {
  width: 100%;
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-screen .experience-foot .tags span {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 11px;
}

.work-screen .experience-foot .tags span:not(:last-child)::after {
  content: none;
}

.work-screen .experience-foot .work-type {
  display: block;
  align-self: flex-end;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .experience-screens::before {
    display: none;
  }

  .experience-screens .work-screen[data-screen] {
    padding: 12px 0;
  }

  .experience-screens .work-screen:first-child {
    padding-top: 34px;
  }

  .work-screen .experience-stage {
    padding-left: 0;
  }

  .work-screen .experience-card {
    border-radius: 12px;
  }

  .work-screen .experience-head {
    padding: 18px 17px 14px;
    gap: 12px;
  }

  .work-screen .experience-head > .company-icon {
    position: static;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    box-shadow: none;
  }

  .work-screen .experience-title h3 {
    font-size: 19px;
  }

  .work-screen .experience-title p {
    font-size: 12px;
  }

  .work-screen .contribution-list {
    padding: 2px 17px 10px;
  }

  .work-screen .contribution p {
    font-size: 13px;
  }

  .work-screen .experience-foot {
    align-items: flex-start;
    margin: 2px 17px 0;
    padding: 15px 0 18px;
  }

  .work-screen .experience-foot .tags span {
    padding: 5px 8px;
    font-size: 10px;
  }

  .work-screen .experience-foot .work-type {
    display: none;
  }
}
